Go to advanced search

by Mudi
Wed Aug 21, 2019 11:11 pm
Forum: Beginners
Topic: How to read and process the input from Barcode Scanner/USB Port
Replies: 8
Views: 822

Re: How to read and process the input from Barcode Scanner/USB Port

Make, model and a link to the specs of your barcode reader would help... While it's beem quite some time since I last did anything with barcode readers it was my experience that most appeared on the system as USB keyboard devices though things may have changed since then. Back then pretty much all ...
by Mudi
Wed Aug 21, 2019 10:49 pm
Forum: Beginners
Topic: How to read and process the input from Barcode Scanner/USB Port
Replies: 8
Views: 822

Re: How to read and process the input from Barcode Scanner/USB Port

Bluetooth Laser Barcode Scanner from Tao Tronics (www.taotronics.com) Model TT-BS022 Raspberry Pi 4 detects it as a keyboard and I can see /dev/hidraw2 appearing and disappearing after connecting and disconnecting the barcode reader respectively. import sys hid = { 4: 'a', 5: 'b', 6: 'c', 7: 'd', 8:...
by Mudi
Fri Aug 09, 2019 10:29 am
Forum: Beginners
Topic: How to read and process the input from Barcode Scanner/USB Port
Replies: 8
Views: 822

How to read and process the input from Barcode Scanner/USB Port

Goal: Read using Barcode-scanner and process the information (Check the received code is correct and take decisions accordingly) Problems: Error 13: permission denied opening/dev/hidraw0 [which can be solved with sudo permission ] import sys fp = open('/dev/hidraw0', 'rb') simply display the number ...

Go to advanced search