How to setup basic USB printing system with LPD / Qt on Vybrid

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to setup basic USB printing system with LPD / Qt on Vybrid

Jump to solution
1,519 Views
Nouchi
Senior Contributor II

Hello,

I'm trying to set-up a basic printing system with LPD provided by BusyBox.

I compiled kernel with USB printer support and works fine, cat myfile.txt >/dev/lp0 outputs something (without CR).

But, I can't start lpd daemon, it seems busybox lpd is different from the BSD lpd.

I'm looking for a good tutorial or any help.

Regards,

Emmanuel

Labels (4)
Tags (3)
0 Kudos
1 Solution
812 Views
Nouchi
Senior Contributor II

Hello Alejandro,

Yes, it works fine with HP laserjet, and Qt application using Printer/QPainter classes.

Cups is probably more suitable if you want to use non postscript printers, but seems to be a little bit painful to configure.

Best Regards,

Emmanuel

View solution in original post

0 Kudos
5 Replies
812 Views
timesyssupport
Senior Contributor II

Hello Emmanuel,

Can you tell me a little more about the error you encountered? Also, can you try using the 'cups' package provided by Factory?

Thanks,

Timesys Support

0 Kudos
812 Views
Nouchi
Senior Contributor II

Hello,

Cups seems to be a little bit heavy for my needs, I found more explanations in busybox sources (lpd.c in printutils):

- create /var/spool/ directory

- create symlink to /dev/lp0 and name it "lp"

- lauch lpd as background process and listen to port 515: tcpsvd -E 0 515 lpd /var/spool &

- just send file with lpr: lpr myFile

Emmanuel

0 Kudos
812 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi Emmanuel,

Did the steps you mentioned work?

Best Regards,

Alejandro

0 Kudos
813 Views
Nouchi
Senior Contributor II

Hello Alejandro,

Yes, it works fine with HP laserjet, and Qt application using Printer/QPainter classes.

Cups is probably more suitable if you want to use non postscript printers, but seems to be a little bit painful to configure.

Best Regards,

Emmanuel

0 Kudos
812 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help to  attend this case?

0 Kudos