[Linux-parport] Negotiating IEEE1284_MODE_EPP

Gerhard Bertelsmann 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.
>  
>
Hmm.
Strange.

Without:
  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)
pdev->port->ieee1284.mode=IEEE1284_MODE_EPP

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 
>>handshaking if
>>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.

>Tim.
>*/
>  
>
Thanks for your help,
regards

Gerd



More information about the Linux-parport mailing list