Hi Shakthi, Apologies for the delayed response, filter problems with GMail when changing from digest to single email mode.
2009/9/29 Shakthi Kannan <[email protected]>: > --- On Mon, Sep 28, 2009 at 5:43 PM, - <[email protected]> wrote: > | I'm trying to access barcodes scanned and saved in a scanner's flash > | memory. > | > | but the interface is > | actually serial rather than "native" USB. > \-- > > What are you referring to as "native" here? Hmm, it's tough to explain, but by native I mean a device that does not need to masquerade as a serial interface. > --- > | Device Descriptor: > | bNumConfigurations 1 > | Configuration Descriptor: > | ... > \-- > > The device exports one configuration. > > --- > | bNumInterfaces 1 > | Interface Descriptor: > | ... > \-- > > That has one interface. > > --- > | Endpoint Descriptor: > | bEndpointAddress 0x81 EP 1 IN > | Transfer Type Bulk > | Synch Type None > | Usage Type Data > | wMaxPacketSize 0x0040 1x 64 bytes > | bInterval 5 > \-- > > And one Bulk IN data transfer endpoint. So, if you send BULK IN > requests from the USB host system, you will receive data from the > scanner. Aha, that sounds exactly like the command I need. > --- > | In MS Windows, the Opticon driver has to be configured to point to one > | of COM1-3. > \-- > > In your case, it is /dev/ttyUSB0 as seen from the output. Right. > --- > | It then slurps the data into a default file containing the > | barcode, the type of barcode format, and a timestamp. There is also a > | settings option to configure the scanner (turn off timestamps, e.g.). > \-- > > You can use libusb library to send specific requests to the device and > read the responses. > http://www.libusb.org/ > > Also refer their developers' guide: > http://libusb.sourceforge.net/doc/function.usbbulkread.html > > If you have a USB (hardware) analyzer, you can capture the USB packets > for this particular endpoint, or you can use the one (software) > provided with the Linux kernel. No h/w USB analyser, but will check out the kernel analyser when I get a chance. I wasn't aware such a thing existed. Googling only pointed me to a snoop analyser on Windows. Thanks much, Sameer _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
