Android Question UsbSerial library 2.0 question

vetteman

Member
Licensed User
Longtime User
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:

B4X:
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

 

agraham

Expert
Licensed User
Longtime User
"Serial : FT9"
Why are only three digits available?
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

Member
Licensed User
Longtime User

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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…