USB Library questions

AndyDroid2012

Member
Licensed User
Longtime User
Ongoing to my education about android, I am now looking at USB.

I have been looking at the USB library and trying to test some hardware.
What I have is an android tablet with USB-on-the-go cable and a USB memory stick and also a USB audio cassette player (which works fine on Vista with its DLL) The cassette player is self powered and when plugged into vista usb the windows program writes the audio to mp3 files.
I am using it simply as an unknown device which presumably has a VendorID, ProductID and a device response when interrogated.


When I plug in a memory stick, android detects and mounts the media and files can be seen. If I go into settings I can unmount (disable only memory media devices ???) so now the memory stick can be removed and re-inserted and android ignores it.

Now I run the b4a application USBExample testing both devices, one at a time,
but I never see any devices enumerated.

manager.Initialize

InRequests.Initialize

OutRequests.Initialize

usbdevices = manager.GetDevices

seems to be absolutely the first step in any USB activity, correct ?

Even if I could not go further I had expected it to at least detect that something was plugged in.

Can you help me understand why ?
 

AndyDroid2012

Member
Licensed User
Longtime User
more info

More info to the original question.
I now have an Epson V500 page scanner connected - with the same results.

Then I downloaded the app from Google Play, USB Device Info and ran it, with the same results.

What's going on ? The USB port connects happily to the USB keyboard which came with the tablet and sees any RAM media dongle connected to the USB-on-the-go cable but no other device info of any kind.

Both the b4a app and the USB Device Info app report no devices. Connected to Vista with their respective drivers the audio-cassette, Epson scanner and RAM dongle all work fine.
 
Upvote 0
Top