管理提醒: 本帖被 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