pyusb-keyboard-alike
pyusb-keyboard-alike copied to clipboard
Handler for keyboards and keyboard-alike devices like bar code scanners, RFID readers
Full log: root@raspberrypi:/home# python3 rfid.py Traceback (most recent call last): File "/home/rfid.py", line 13, in reader.initialize() File "/home/keyboard_alike/reader.py", line 40, in initialize raise DeviceException('No device found, check vendor_id and product_id')...
Read method in the module written in infinite while loop, it waits for new data. However it causes the stuck when it uses another class such tkinter. Maybe it could...
I stumbled across https://github.com/marcelser/pyusb-keyboard-alike/commit/b4cea917bdfa698dced6d1c73937ee3c6b857fd2 and it has a different check for shift. def raw_to_key(key): if key[0] == 2: # original if key[0] == 32: # code from https://github.com/marcelser/pyusb-keyboard-alike/commit/b4cea917bdfa698dced6d1c73937ee3c6b857fd2 I do...
This result of Raw Data= ('Raw data', [1, 0, 30, 1, 0, 31, 1, 0, 35, 1, 0, 34, 1, 0, 30, 1, 0, 34, 1, 0, 31, 1, 0,...
Tested with pyusb version 1.0.2 and 1.2.1
Traceback (most recent call last): File "D:/pyusb-keyboard-alike-master/pyqt_example.py", line 65, in myapp = StartQT4() File "D:/pyusb-keyboard-alike-master/pyqt_example.py", line 30, in __init__ self.rfidreader.initialize() File "D:\pyusb-keyboard-alike-master\keyboard_alike\reader.py", line 37, in initialize self._device = usb.core.find(idVendor=self.vendor_id, idProduct=self.product_id)...
I'm getting this ``` Traceback (most recent call last): File "/home/pi/DosapacMirror/app.py", line 1, in from keyboard_alike import reader File "/home/pi/DosapacMirror/keyboard_alike/reader.py", line 1, in import usb.core ImportError: No module named 'usb'...
Im interested if your code overrideses rfid scanners keyboard behaviour. I would like to use several programs at the same time, and the scanner should not interfere with them.
I could make it work, but when I put it on a multi-window app, i run the main app, and i run this in a new qwidget, i close the...