USB Device Serial number Pull Via USB Host

Dear All,

I sincerely require your help with this one because I am a bit confused so I would like you to clarify please.:

  1. What Arduino version is best for USB Host applications

  2. How can I "pull" the serial number of the USB devise I Connect on the USB of the USB host of the Arduino , because I would like to use this information for Identifying who is who instead of NFC and Other methods because I think is is more Secure ,

If you Have any other ways to deal with this problem I would be glad to hear them ,

Thank you in advance

Alexs40

It sounds like you want the Arduino to act as a USB Host and identify the USB device that is plugged into a USB Host port.

If that is correct you will need a USB Host Shield and probably an Arduino UNO.

What type of USB device are you trying to get the serial number from?

Dear Johnwasser

Most of USB memory sticks(storage devises) have a unique Serial number embedded in the chip with no way to change it "I think" I may be wrong , if yes Please elaborate on this topic :slight_smile:

And all this hassle is to plug a Memory stick into my Arduino , Read the Serial number and then compare it with some database that I have (most probably a large array) and then do something , like unlock a door or what ever , or after that go into secondary verification and What not ,

Now , My experience with the USb host board with UNO was kind of a fail , so I would like an Out o fthe box arduino with an already working and fully compatible USB host.

Other than that , is there a way to get that USB serial number from the Memory stick though Arduino host ? or there is no dedicated function for this very task ?

Thank you in advance

Alexs40

I wonder would a Yun be a better idea. The USB host is part of the Linux side with a lot more computing power and ready made utilities.

I know that USB devices have a type ID like ID 1d6b:0002 but AFAIK that is by no means unique. All similar devices will have the same ID.

...R

See this example from the USB Host Shield 2.0 library:

Part of the printing of the USB device descriptions is to print the serial number.

I believe that most USB devices, including Mass Storage devices, are based on general purpose processors and can be re-programmed, including the serial number. That is how unscrupulous people change an 8GB flash drive to report itself as a 128GB flash drive and charge ten times as much for it.

Dear Robin2 ,

Well , Now that you mentioned it , I will have to go for broke , I will create the USB as a security token with encryption so it has to be kind of powerful in order to match the keys together , I think an Adruino may not be sufficient , for this kind of work like a 4096-bit rsa encryption key would be easily manged by a linux machine ,

more over i will still implement the USB serial just for a second verification protocol ,

and lastly use some User password , or I don't know yet ,

So tell us more about this "Yun" How you program it , how it works what is the benefit and the inner workings

I was also considering a Raspberry Pi , but I have no clue how to work with it

Thank you in advance

Alexs40

Dear johnwasser

It looks like an interesting Code , I will try to see how it outputs everything and try to get the part I want ,

more over as you mentioned and also our Dearest friend Robin2 mentioned about the serial number not being unique and changing the firmware and all that sort of Jazz ,

So I presume It would be a more sensible approach to go with some security token solution that I just encrypt and format the USB key with a 4096-bit encryption key and then compare it with a public key or something like that ,

further more I will still implement the serial number technique just in case , and lastly some User password or what not ,

Now I may go with the "Yun" but I was thinking if it's ruining Linux why not use a raspberry Pi instead but I have no idea how to use that so I will wait to see how though the Yun programming will be and If it's worth the effort why not , if not , i think is more sensible to use a raspberry Pi due to is more readily available for testing and all that Jazz ,

Tell us your thoughts and ideas on this manner ,

Thank you in advance

Alexs40

ALEXS40:
So tell us more about this "Yun" How you program it , how it works what is the benefit and the inner workings

Look up the Products section of the website and look at the Forum section dedicated to the Yun.

...R

Dear Robin2 ,

I will do that , now , I did some digging and I found a respectable company that had authentication keys , that they wore meant to be for authentication periscopes , and I am now looking for the python or c++ code to read them , does anyone have a clue how to do that ?

the name of the company is .:yubico

Thank you in advance

Alexs40

ALEXS40:
I am now looking for the python or c++ code to read them , does anyone have a clue how to do that ?

Most suppliers of equipment intended to be used by a computer have demonstration code to show to use their product.

...R