ibabu
Posts: 2
Joined: Sun Jun 29, 2014 9:11 pm

Making usb device work with custom Python app

Thu Mar 05, 2015 4:54 pm

I'm working on a project with rfid tags, I ordered the rfid reader/writer from Amazon, it is usb device and comes with drivers only. Id like to write my own Python app that can write and Read data to rfid tags using this reader. How would I go about it to get my app to talk to this device ? From what I have been reading you basically just have to send command to USB device that it recognizes.

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: Making usb device work with custom Python app

Fri Mar 06, 2015 7:17 am

Depends what you have bought. Many USB reader/writer are USB-UART devices and you could use them by doing UART (serial) connection and sending/reading data specified in the SDK/docs. Other option is to use pyusb, you can check my examples: https://github.com/riklaunim/pyusb-keyboard-alike

Return to “Python”