Barcode Scanner: Difference between revisions

From Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
== Barcode Scanner under Linux ==
== Barcode Scanner under Linux ==
* Using a Keyboard-HID scanner
* https://raspberrypi.stackexchange.com/questions/82418/how-to-route-barcode-tty-input-to-python
<pre>
* https://raspberrypi.stackexchange.com/questions/82418/how-to-route-barcode-tty-input-to-python
* https://stackoverflow.com/questions/19732978/how-can-i-get-a-string-from-hid-device-in-python-with-evdev


</pre>


== Testing ==
== Testing ==
Line 9: Line 9:
apt install evtest
apt install evtest
</pre>
</pre>


<pre>
<pre>
sudo evtest --grab /dev/input/event0
sudo evtest --grab /dev/input/event0
</pre>
</pre>
== Disable barcode scanner from going to console ==
* use "EVIOCGRAB", for exclusive grab of input device




[[Category:Hardware]]
[[Category:Hardware]]

Revision as of 13:06, 19 December 2021