I am trying to run some demo code for the Thingmagic USBPro RFID reader using the C version of the Mercury API on the R Pi.
The extract of my terminal is below.
I need to find the URI of my USB device to use it. I ran the 'lsusb' command, and discovered it is in Bus 1 Device 004, so I though the URI would be 'tmr:///dev/USB004' (it is the only device without a name, this must be it)
You can see below it doesn't work though, I get the same error if I just put in nonsense, leading me to think it has a completely different path.
I also tried it with USB00X for every device just to be sure
Anybody know what this path is? Or how to find it?
I am also wondering if I should have installed some sort of driver, is this only a windows thing or should this have been done? (I am a linux noob)
Code: Select all
[email protected]:~/c/src/api $ ./demo Usage: demo reader-uri <command> [args] (URI: 'tmr:///COM1' or 'tmr://astra-2100d3/' or 'tmr:///dev/ttyS0') [email protected]i:~/c/src/api $ lsusb Bus 001 Device 004: ID 2008:1004 Bus 001 Device 006: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0 Bus 001 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [email protected]:~/c/src/api $ ./demo reader-tmr:///dev/USB004 Error creating reader: Invalid argument [email protected]:~/c/src/api $ ./demo reader-tmr:///dev/aaaaaa Error creating reader: Invalid argument