[Linux-parport] Negotiating IEEE1284_MODE_EPP
hallo at gerhard-bertelsmann.de
Wed May 26 05:29:09 EDT 2004
Tim Waugh wrote:
>On Tue, May 25, 2004 at 06:19:50PM +0200, Gerhard Bertelsmann wrote:
>>OK let's say I want to set IEEE1284_MODE_EPP. How can I do this ?
>>Is there a similar function in parport like ppdev ioctl (pport,
>>PPSETMODE, &mode) ?
>>Didn't find it.
>Just use the parport_ieee1284_epp_* functions. SETMODE doesn't do
>anything to the device.
mode = IEEE1284_MODE_EPP;
ioctl (pport, PPSETMODE, &mode);
the ppdev example is not working (IMHO is doing something
but not IEEE1284 compliant). I'm using write (in ppdev example code)
to transfer bytes.
I've tried to (modul code using parport)
but this seems to be not enough for setting up the right mode.
>>I've tried pdev->port=PARPORT_MODE_EPP but this changed nothing.
>>BTW: is parport_read_data/ parport_write_data doing the IEEE1284
>>setup correctly to IEEE1284 mode ?
>Don't use those, since your device is not fully IEEE 1284 compliant
>(it doesn't negotiate). Use the parport_ieee1284_epp_* functions.
Right now using parport_ieee1284_epp_data_write in my code
is influencing the SELECT line of parallel port (PIN 17 set to high),
which is bad for my little circuit.
Thanks for your help,
More information about the Linux-parport