主题 : 我用usb的打印机!求救!! 复制链接 | 浏览器收藏 | 打印
加油
级别: 新手上路
UID: 16582
精华: 0
发帖: 26
金钱: 130 两
威望: 26 点
综合积分: 52 分
注册时间: 2010-03-19
最后登录: 2013-07-09
楼主  发表于: 2010-04-13 10:06

 我用usb的打印机!求救!!

管理提醒: 本帖被 qq2440 从 micro2440技术交流专区 移动到本区(2013-11-18)
我用usb的打印机。。没有反应。。
麻烦指点下。。
用的是linux你们自带的系统,在fedora12上用的arm-linux-gcc 4.3.0(自带)编译的libusb.0.12的库。。。
现在usb打印机能找到pid。vid。。等信息。
(usb打印机中用的是pl2305)
现在就是打印得不到返回信号。。

但是同样的程序,在pc机的x86上。用fedora12上的gcc编译程序(同时编译libusb.0.12)。可以打印。。

你们有经验,谢谢提醒问题会出在哪。。。




用网上流行的测试程序。。。显示没有错误。。。
[root@FriendlyARM /]# ./testbin
bus/device idVendor/idProduct
001/002 067B/2305
- Manufacturer : Prolific Technology Inc.
- Product : IEEE-1284 Controller
wTotalLength: 78
bNumInterfaces: 1
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: a0h
MaxPower: 50
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 1
bInterfaceClass: 7
bInterfaceSubClass: 1
bInterfaceProtocol: 1
iInterface: 0
bEndpointAddress: 01h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0
bInterfaceNumber: 0
bAlternateSetting: 1
bNumEndpoints: 2
bInterfaceClass: 7
bInterfaceSubClass: 1
bInterfaceProtocol: 2
iInterface: 0
bEndpointAddress: 01h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0
bEndpointAddress: 82h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0
bInterfaceNumber: 0
bAlternateSetting: 2
bNumEndpoints: 3
bInterfaceClass: 255
bInterfaceSubClass: 0
bInterfaceProtocol: 255
iInterface: 0
bEndpointAddress: 01h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0
bEndpointAddress: 82h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 0
bRefresh: 0
bSynchAddress: 0
bEndpointAddress: 83h
bmAttributes: 03h
wMaxPacketSize: 4
bInterval: 1
bRefresh: 0
bSynchAddress: 0
级别: 新手上路
UID: 63936
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
综合积分: 2 分
注册时间: 2012-02-27
最后登录: 2012-02-27
1楼  发表于: 2012-02-27 09:40
请问您的问题解决了吗?