![]() Since reading/writing the USB devices is not allowed with the standard pi user, don’t forget to grant access to those devices as described on the flow-page in the setction “How to use”. ![]() If you haven’t installed npm yet on your raspberry pi, you find a quick solution here. We install the flow with the following command: npm install node-red-contrib-usbhid Nevertheless, we will use the flow node-red-contrib-usbhid to interface the usb reader. With current raspbian images, Node-RED is already pre-installed. Raspberry Pi (affiliate link) USB RFID Reader (affiliate link) Preparations I will not go too much into detail regarding the format of the byte arrays and the HID message format in general, the approach is more straight forward to get to a result quickly. With Node-RED, you can easily prototype this parsing in a conveniant way, which will be described in that tutorial. ![]() ![]() On the left hand side, when connected to my Windows Laptop, you directly get the ID, whereas on the right hand side we see the byte arrays.
0 Comments
Leave a Reply. |