My device:
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
My problem:
Warning: usb_bulk_read expected to read 0x40 (read 0x%x bytes).
(where %x is the number of bytes it actually got)
My assumption:
It's about the speed, not about having too few data.
My solution:
The error is thrown by libthinkfinger.so.0 in function _libthinkfinger_usb_read, where it uses USB_TIMEOUT for usb_bulk_read.
It is defined at the top of libthinkfinger/libthinkfinger.c
Give it some extra time, recompile (default prefix for the sf.net sources is /usr/local/, maybe you'll need --prefix=/usr for Ubuntu), sudo make install and it works.
My device:
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
My problem:
Warning: usb_bulk_read expected to read 0x40 (read 0x%x bytes).
(where %x is the number of bytes it actually got)
My assumption:
It's about the speed, not about having too few data.
My solution: _usb_read, where it uses USB_TIMEOUT for usb_bulk_read. libthinkfinger. c
The error is thrown by libthinkfinger.so.0 in function _libthinkfinger
It is defined at the top of libthinkfinger/
@@ -35,7 +35,7 @@
#define USB_PRODUCT_ID 0x2016
-#define USB_TIMEOUT 5000
+#define USB_TIMEOUT 25000
#define USB_WR_EP 0x02
Give it some extra time, recompile (default prefix for the sf.net sources is /usr/local/, maybe you'll need --prefix=/usr for Ubuntu), sudo make install and it works.
... at least for me.