Page 1 of 1
QR Scanner
Posted: Tue Oct 10, 2017 4:49 pm
by KubaData
Hi, I am doing a project where I need to connect a barcode scanner to my raspberry pi but I do not know how to get my scanner to work in my respberri.
that I have to do and where to look for the driver of my scanner to work on my raspberry
the scanner you buy is this
https://www.amazon.com/Desktop-Barcode- ... B073JMB34T
thank you very much
sorry for my English
Re: QR Scanner
Posted: Wed Oct 11, 2017 1:10 pm
by topguy
Most USB barcode scanners are either detected as a HID (Keyboard) device or as a usb-serialport.
Since this scanner is advertised as "plug and play" it is very likely (but not guaranteed) that it will be detected by the Linux kernel in Raspbian without any additional drivers. But then you need to integrate it into the software.
Re: QR Scanner
Posted: Fri Oct 13, 2017 5:24 pm
by KubaData
In windows works perfect as plug and play and looks like a HID device, like a keyboard and works as such, in a text editor if I scan a code I write it without problems.
but when I plug it in my raspberry is not working.
I'm testing it in the fastest and easiest way it is by opening a text editor and when I scan some QR code it does not write anything to me
I really do not know what else to do
Thank you for the answer, I will try to investigate further.
Re: QR Scanner
Posted: Sat Oct 14, 2017 2:16 pm
by topguy
It was not clear to me if you had the scanner yet or just planning to buy one.
To gather more relevant information about the device:
* Boot the Pi without the scanner plugged in.
* Open a terminal window.
* Plug in the scanner.
* type in the command "dmesg"
The last lines of the output from dmesg is messsages from the kernel when trying to identify the scanner. Posting those line here might give us enough information to give further advice.
Re: QR Scanner
Posted: Thu Jun 20, 2019 12:47 am
by strokine
I have exactly the same problem. Here is what I've got in the log:
[2075943.979894] usb 1-1.4.2: new full-speed USB device number 8 using dwc_otg
[2075944.112182] usb 1-1.4.2: New USB device found, idVendor=1eab, idProduct=8203
[2075944.112199] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[2075944.112208] usb 1-1.4.2: Product: HidKeyBoard
[2075944.112216] usb 1-1.4.2: Manufacturer: NewLand
[2075944.115832] input: NewLand HidKeyBoard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4.2/1-1.4.2:1.0/0003:1EAB:8203.0001/input/input1
[2075944.181082] hid-generic 0003:1EAB:8203.0001: input,hidraw0: USB HID v1.10 Keyboard [NewLand HidKeyBoard] on usb-3f980000.usb-1.4.2/input0
p
Cannot get any input from the device. On Windowns it works fine.
Re: QR Scanner
Posted: Thu Jun 20, 2019 8:18 am
by topguy
How have you tested it on the Pi ? What is your end-goal ?
My suggestions..
- open an editor on the desktop and then scan a code.
- press "ctrl+alt+F2" to open the console, log in there and then scan a code.
- on the console or in a terminal window use the program "evtest" to check events from this specific device.