Uwe Sander | 30 Apr 2010 14:33
Picon
Picon

mimic a printer for capturing to file

Hello,

 sorry for my english, german is my native language.

Have a strange problem when reading from the parallel port in a
poll()-ioctl(fd, PPRDATA, &data)-loop:

- It seems the driver does a buffered read in 4 Kb blocks.
- When i read from the port the first byte is hold back and send at the
end of the current 4k-block.
- When the transfer ends, the first byte ist placed at the last write
position.

Does anybody know this behaviour? Any hint?

I am using Ubuntu 9.10 (2.6.31-21-generic) and Debian 4.

Thanks a lot!

Uwe.
Uwe Sander | 2 May 2010 23:44
Picon
Picon

Re: mimic a printer for capturing to file

Hi,

Am Freitag, den 30.04.2010, 14:33 +0200 schrieb Uwe Sander:
> Have a strange problem when reading from the parallel port in a
> poll()-ioctl(fd, PPRDATA, &data)-loop: ...

nobody an idea? Do need more information?

Thanks, Uwe.

Gmane