[fpc-pascal] SNAPI Driver and USB HID
Johann Glaser
Johann.Glaser at gmx.at
Mon Sep 6 22:28:35 CEST 2010
Hi Luca!
> > As I'm not very confident that such a driver does exist, I've also
> > evaluated the USB descriptors and such stuff. The scanner offers an USB
> > HID class interface.
>
> From the manual I see that it also offers com port emulation. In that
> case it should provide a serial interface (e.g. /dev/ttyUSB0) that you
> can simply read with synaser or another serial port library.
> I don't know (yet) how the usb model works, but the plain serial one can
> be configured to send the barcode terminated with cr+lf, and that's easy
> to read.
Thank you for looking this up. I also investigated this, but
unfortunately there is no "driver" for the /dev/ttyUSB0. A year ago I
used a DataLogic scanner which uses the /dev/ttyACM0 interface, which is
a standardized interface defined by the USB organization.
Unfortunately, /dev/ttyUSB0 is not standardized but requires different
drivers for every chip (e.g. cp2101, ft232, ...). For the MS4407 scanner
I didn't yet find a serial driver. So, unfortunately, the RS232
emulation does not work too. :-(
Thanks
Hansi
More information about the fpc-pascal
mailing list