V vetteman Member Licensed User Longtime User Mar 28, 2019 #1 Hi, I am trying to get the full serial number of a USB device. I programmed an FTDI dongle with their own software as FT93452. When I re-read the serial number with the FTDI software it reads back the complete S/N. When I run this command: Code: Dim data As String data = usb.DeviceInfo(i+1) ToastMessageShow(data, True) I get this for the serial number: "Serial : FT9" Why are only three digits available? It would also be nice if the serial number was made available??? Thanks
Hi, I am trying to get the full serial number of a USB device. I programmed an FTDI dongle with their own software as FT93452. When I re-read the serial number with the FTDI software it reads back the complete S/N. When I run this command: Code: Dim data As String data = usb.DeviceInfo(i+1) ToastMessageShow(data, True) I get this for the serial number: "Serial : FT9" Why are only three digits available? It would also be nice if the serial number was made available??? Thanks
thetahsk Active Member Licensed User Longtime User Mar 28, 2019 #2 Have you also tried the felusbserial library ? https://www.b4x.com/android/forum/threads/felusbserial-alternative-usb-serial-library.62216/ Upvote 0
Have you also tried the felusbserial library ? https://www.b4x.com/android/forum/threads/felusbserial-alternative-usb-serial-library.62216/
V vetteman Member Licensed User Longtime User Mar 28, 2019 #3 I have not, will it provide the serial number of a connected usb device? Upvote 0
agraham Expert Licensed User Longtime User Mar 28, 2019 #4 vetteman said: "Serial : FT9" Why are only three digits available? Click to expand... I've dug out up the source from six years ago and the serial number is returned as a C style zero terminated string from a location determined by the Raw Descriptors of the UsbDeviceConnection provided by the Android UsbManager for the device. So it seems that is what the Android API is returning. Upvote 0
vetteman said: "Serial : FT9" Why are only three digits available? Click to expand... I've dug out up the source from six years ago and the serial number is returned as a C style zero terminated string from a location determined by the Raw Descriptors of the UsbDeviceConnection provided by the Android UsbManager for the device. So it seems that is what the Android API is returning.
V vetteman Member Licensed User Longtime User Apr 20, 2019 #5 agraham said: I've dug out up the source from six years ago and the serial number is returned as a C style zero terminated string from a location determined by the Raw Descriptors of the UsbDeviceConnection provided by the Android UsbManager for the device. So it seems that is what the Android API is returning. Click to expand... Okay thanks, the fact that it's three char's still gets me a long way for the number of devices that can be filtered when connected. Upvote 0
agraham said: I've dug out up the source from six years ago and the serial number is returned as a C style zero terminated string from a location determined by the Raw Descriptors of the UsbDeviceConnection provided by the Android UsbManager for the device. So it seems that is what the Android API is returning. Click to expand... Okay thanks, the fact that it's three char's still gets me a long way for the number of devices that can be filtered when connected.