Hi everybody, i'm just starting a new project: I want to connect a RFID Reader (a third party one) through my USB Host Shield from Sparkfun attached on an Arduino UNO r3.
As many of you suggested I installed the Oleg's libraries, and after some issues I figured out how get these to work. At this point i ran the "board_qc" (quality test) sketch and it seems to work without problem as it recognized many usb peripherals including my RFID reader. After that I load the "USB_desc" sketch and it provided my all the info about my RFID reader (I will post below the results).
At this point I think that my hardware is ok. What i want to do now is communicate with my RFID reader. What library should I use to read the data that passes through my USB host (and print that to serial monitor maybe)? There's some developers references somewhere?
I would like to do something simple (I though), something like:
Power supply ---> Arduino UNO ---> USB Host Shield <--- RFID Reader
and when a card passes through the reader i want to read that data (make some checks I think) and print to serial monitor (or whatelse).
I am asking two things mainly:
- Is my hw config ok?
- Where can I find some useful info about read usb's data?
There is the result of USB_desc:
Start
01
--
Device descriptor:
Descriptor Length: 12
Descriptor type: 01
USB version: 0200
Device class: 00
Device Subclass: 00
Device Protocol: 00
Max.packet size: 08
VendorĀ ID: 076B
Product ID: 5321
Revision ID: 0520
Mfg.string index: 01
Prod.string index: 02
Serial number index: 05
Number of conf.: 01
Configuration descriptor:
Total length: 005D
Num.intf: 01
Conf.value: 01
Conf.string: 03
Attr.: A0
Max.pwr: 7D
Interface descriptor:
Intf.number: 00
Alt.: 00
Endpoints: 03
Intf. Class: 0B
Intf. Subclass: 00
Intf. Protocol: 00
Intf.string: 00
Unknown descriptor:
Length: 36
Type: 21
Contents: 0001000703000000C0120000401F000004002A0000E74C06006AFE0000000700000000000000B00301000F010000FFFF000000010705
Endpoint descriptor:
Endpoint address: 83
Attr.: 03
Max.pkt size: 0008
Polling interval: 18
Endpoint descriptor:
Endpoint address: 84
Attr.: 02
Max.pkt size: 0040
Polling interval: 00
Endpoint descriptor:
Endpoint address: 05
Attr.: 02
Max.pkt size: 0040
Polling interval: 00
Addr:1(0.0.1)
Thank you all very much, all help is appreciated. (I'm Italian, so don't expect a perfect english (I didn't check grammar errors ) )