I sincerely require your help with this one because I am a bit confused so I would like you to clarify please.:
What Arduino version is best for USB Host applications
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 ,
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
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 ?
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.
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
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 ,
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 ?