Chinaunix

标题: USB driver for Bar Code -Can you please help [打印本页]

作者: uv    时间: 2004-06-15 05:16
标题: USB driver for Bar Code -Can you please help
I have a SUN , BLADE-150 (Solaris-8).
I'm requested to build an application which reads
data from a USB Barcode Device.
I' ve updated the latest patches.

I have a directory called : dev/usb/5e0.28a/0
And it contains the files :cntrl0@ , cntrl0stat@, devstat@ , 0in1@ , if0in1stat@

I' ve installed DDK.0.9 from http://wwws.sun.com/software/download/products/3fe8d3b9.html
And run a sample program file , which came with the DDK.0.9 kit.

The program is using ugen(7D) to read a device descriptor:

>;devdescr /dev/usb/5e0.28a/0

The output was:

Device descriptor: VID:05e0, PID:028a
Device release:0x204, USB release:0x110
Descriptor Length:18, Type:1
Device Class:0, Subclass:0, Protocol:0, Num Cfgs:1


My question is : How can I get the actual data barcode (The scanned number) from the USB device ?

Thank's.
UV.
作者: uv    时间: 2004-06-16 18:37
标题: USB driver for Bar Code -Can you please help
....?
作者: uv    时间: 2004-06-17 22:27
标题: USB driver for Bar Code -Can you please help
How can I access the data of the USB device ?

Thank's again.
UV.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2