30 Apr 2010 14:33
mimic a printer for capturing to file
Uwe Sander <uvosa <at> gmx.de>
2010-04-30 12:33:16 GMT
2010-04-30 12:33:16 GMT
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.
RSS Feed