Unix Programming - USB Barcode Device -Please Help !

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2004 > USB Barcode Device -Please Help !





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author USB Barcode Device -Please Help !
yuval

2004-06-18, 1:39 pm

Hello,
I have a SUN , BLADE-150 (Solaris-8).
I'm requested to build an application which reads
data from a USB Barcode Reader Device.
I' ve updated the latest patches from SUN (for multiple kyboards support).
I should address the Barcode-Reader device as an additional keyboard.


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

I' ve installed DDK.0.9 from http://wwws.sun.com/software/downlo...s/3fe8d3b9.html
And run a small 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 read the actual data (The scanned barcode) from the USB device ?
(How can I read data from a "Raw Device Interface" ?)

Thank's.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com