Arduino and USB Hub

Have say 5 or more rfid readers all the same pid vid no serial number. Uses HiD
Need to ID each reader with port number. When
each read done the port number will be prefixed Then when put into Excel it can manipulate . Seems win7 cannot do this.
Can Arduino do this. Would need SD card and maybe a USB shield.
On reading tag the data on the way to SD card the port number would be prefix or suffix
Excel will then import the text data including prefix
Main problem is Arduino to do the port number prefix
Comments on feasibility. Thankyou

The Ardiono UNO connects directly to USB. No extra boards needed. It can also handle SD. A serial monitor within the developement environment, Arduino IDE, can read data from the USB. Then copy and paste could do the rest. Any help?

Thanks Railroader.

I need to know the reader which transmitted the data. Each reader is in a different location.

In Excel I can then determine which tags belong to which location or area.

Each reader is USB with HID, so will need a hub of some sort to plug in.

Thanks

Charles

Ok. I thought You wanted to build an Arduino Hub collecting the rfid and then sending them to a pc. Then it is more of a pc matter then an Arduino.

Hi Railroader

Yes I agree. But after a lot of searching etc I have found no way for
Windows to do this, hence I thought I would try a workaround using Arduino.

Charles

I'm by far a specialist regarding HIDs. I think an Arduino with a USB host shield that can handle e.g. 4 USB ports will suffer from the same problem. My solution would be one Arduino per reader; that way you can manipulate the data that you receive from a reader (add an area) before sending it to the PC.

Hi sterretje

Yes I agree one arduino (maybe a teensie or TTiny?) per usb rfid reader. The reader would plug in usb on board. The software would have the 'area' code #, put this unique number when setting up each arduino for each reader. then the combined reader sent to pc via the usb into an open spreadsheet.

Sending the combined data to pc does code have to have the file path or does it place where the cursor focus is ?

Can you refer me online to a suitable code to receive the data from reader, I will get that showing up in terminal first and then move to next step. (I am retired and newbie and this is model railroad project) That is to read code then check in terminal.

What is the simplest and cheapest micro to use and do I need to have a shield on each one, can the simple ATTINY do it? with no shield.

Thanks
Charles
New Zealand

sswcharlie:
Sending the combined data to pc does code have to have the file path or does it place where the cursor focus is ?

I think that you're referring to HID functionaility; if so, you can use
Arduino Leonardo, Micro, Zero, Due
Sparkfun pro micro
Pololu A-star 32U4
Teensy (I think all of them)

Those can act as a HID keyboard so can send text to e.g. a textbox and move a mouse. But you will still have a problem because, when they act as a keyboard, the keystrokes will go to whichever textbox has the focus at that moment.

It might be easier to use normal serial communication (in which case you can basically use any micro) and have a PC application that knows what to do when it sees e.g. 'reader 1', 'reader 2' etc. in the data.

The Leonardo, Zero and Due take shields (PCBs that you can stick on top), the others not (so you need to wire). The Due can act as a USB host as well; see Arduino - USBHost so you don't need a shield.

sswcharlie:
Can you refer me online to a suitable code to receive the data from reader, I will get that showing up in terminal first and then move to next step. (I am retired and newbie and this is model railroad project) That is to read code then check in terminal.

Unfortunately not. I have no experience with either USB devices nor with USB host shields. The USB reader might identify itself as a keyboard in which case you can try a search for USB host shields that come with example code for keyboards. The below will probably have some form of support / examples (I did not dig too deep)
https://store.arduino.cc/arduino-usb-host-shield

sswcharlie:
What is the simplest and cheapest micro to use and do I need to have a shield on each one, can the simple ATTINY do it? with no shield.

For the micro, see the list above. You will need a 'shield' or 'breakout board' for each micro. I suspect that you need quite a bit of horse power to do this with a micro that does not support USB.

sswcharlie:
Thanks
Charles
New Zealand

If you see my wife, say hi to her :slight_smile: She's currently visiting our daughter in Christchurch and touring NZ for 3 months. Be careful when you encounter her, her nickname is Xtra Mad Granny :smiley:

PS
From an Arduino perspective, readers that make use of the hardware in the micro (Serial, I2C or SPI) are far easier to use. If you're in the early states of your project, you might be able to decide to use one of those (and count your losses).