Hi,

I'm using a Bering 1.0-Stable box connected to a label printer and a sort of serial terminal (I've built it) to print labels in a factory.
Everything is working, the only problem I have is with the printer.

I've installed the parport.o, parport_pc.o, and lp.o drivers and insmod gives no errors.
if i use the command insmod i can see:

Module pages Used by
lp 5580 0 (Unused)
parport_pc 15476 1
parport 12096 1 (lp parport_pc)

I have the /dev/lp0 file:

crw-rw-rw root root 6, 0 ....... /dev/lp0

If I use the command: "find /proc/ -name 'parport*' " I get:

/proc/sys/dev/parport
/proc/sys/dev/parport/parport0

if I do: echo P1 > /dev/lp0
the printer print 1 �abel (it is ok)

In the software I wrote I open /dev/lp0 with fopen("/dev/lp0","w"), and it hang up while sending data to the printer (with fputc)
I'm I doing something wrong?

I'm developing the software using Linux Mandrake 9.0. Which is the right distribution to develop for LRP ??

Thank you for your help, Paolo



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to