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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,595 次查看
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

标签 (4)
标记 (3)
0 项奖励
回复
1 解答
1,888 次查看
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 项奖励
回复
5 回复数
1,888 次查看
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 项奖励
回复
1,888 次查看
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 项奖励
回复
1,888 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi Emmanuel,

Did the steps you mentioned work?

Best Regards,

Alejandro

0 项奖励
回复
1,889 次查看
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 项奖励
回复
1,888 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help to  attend this case?

0 项奖励
回复