[GLLUG] Parallel Port

Arief Ardhana ardhanaa at hotmail.com
Wed Jul 2 15:23:28 EDT 2003


Hi All,

I'm using debian with kernel 2.4.10 under Vmware, and i asscociate the 
parallel port to a txt file lets just say Output.txt .

I have succeeded accessing the parallel port using the command 
open("/dev/lp0",1) and write. The result of what i've written can be 
seen at Output.txt. For example I state write(theport,"11",2), then the 
Output.txt will has "11"

What i did not succeed is i cannot access the parallel port (0x378) 
using the command outb(). I try the code from 
http://www.embeddedlinuxinterfacing.com/chapters/07/snowmakingcontrol.c 
it compiles OK with -02 and it didn't give me any errors but file 
Output.txt is empty.

Does anybody have an idea what went wrong ?

TIA

-Arief-





More information about the linux-user mailing list