[2013.04.11][2.3.1+] USB Host Diagnostics v1.3

Search This thread

emelie

Senior Member
Jul 4, 2010
327
14
Vienna
Hey chainfire, thanks for your work on this!
As always much appreciated!

Only one thing: would be great if you could make the headers of the results table clickable to have the table sorted by e.g. Report count or fingerprint.
 

vomitian

New member
Feb 19, 2012
3
0
HongKong
automatic removed thumb drive

Great job.
When I start it, it detech my thumb drive, but then it said my SD card is remove or demage and cannot read. Same problem after reboot. I am using GS2 @XXLPB.
 

bpxssj

New member
Mar 5, 2012
1
0
High Speed supported?

Hi,
I'm new to the forum and I'm going to write drivers for high speed usb devices.
I would like to know if USB Host Diagnostics v1.2 supports detection of high speed.
I mean, I found some hardware with USB 2.0 but they didn't support high speed (480 mb/s) transfers in host mode. Does USB Host Diagnostics v1.2 check for this issue?

I have another question... I would like to buy a TF201 to start writing software for USB devices; is anyone aware if it supports high speed USB transfers? How fast is USB on this device? And in other Android devices?

Thank you so much in advance!
Giorgio
 

bsnguy

Member
Sep 8, 2009
42
0
No answer for ten days. :eek:

I have the same issue. The Samsung Galaxy S2 with the latest two ICS builds (the "official" release as well as the leaked one previous to that) seem to not work with my high-speed hardware, now (the early February release DID work). Flash drives and such work so I know the port is, physically, OK.

This is an important test. Can it be done? Somewhere the system needs to know and I would hope report if the port is in full- or high-speed mode.

And if anyone from Samsung is listening... fix that damn phone! The Nexus works (4.0.2), great, but you broke the S2.

---------- Post added at 08:25 AM ---------- Previous post was at 08:21 AM ----------

Hi,

I have another question... I would like to buy a TF201 to start writing software for USB devices; is anyone aware if it supports high speed USB transfers? How fast is USB on this device? And in other Android devices?

I would think so. I don't know of a tablet that does not. If looking for a phone, the Galaxy Nexus works in high-speed (about 160 Mb/s from my tests). be aware that you may not get the full 400 Mb/s bandwidth with these resource constrained devices.
 

l3pr3ch4un

New member
Feb 5, 2011
1
0

colin.jones

Member
Jun 20, 2010
20
1
Wonder if anyone has any advice or knows the problem I am experiencing.

I have a GNex GSM. One of the specific features I wanted was USB Host Mode (already using it on my TF101). Was obviously disappointed when I found out 4.0 and 4.0.1 didn't work. Eventually I upgraded the phone to 4.0.2 - the first version that had this fixed. Again stumped - didn't realise the requirement for an OTG cable when not using a full sized port. Got that cable instead - bingo, keyboard and mouse worked perfectly.

Disappointed again on the USB stick issue - but understand the mount/root requirement, so unrelated to the actual USB Host Mode functionality.

But.... a couple of weeks later I wanted to use it again... now it doesn't work. I recently upgraded to 4.0.4, and then the small update to 4.0.4 - neither of those worked either. None of the USB tools on the market detect any device any more. And your app says Claims support/APIs/Kernel - Yes, but all devices detected say No.

I know I didn't have to enable anything to get it working, but am I overlooking something else? Or are there any apps I may have installed that could be interfering? (seems unlikely given not even the kernel seems to see anything)

Nothing is logged in logcat (again not really surprising if the Kernel isn't seeing anything). I took a look at dmesg - when I connect a device using the OTG cable I get:
Code:
         <4>[ 6146.450744] omap_hsi omap_hsi.0: Disabling clocks with HST FSM not IDLE !
<6>[ 6146.874053] fsa9480 4-0025: cable detect change, from 'unknown/none' to 'u
sb-host'
<6>[ 6160.714385] fsa9480 4-0025: cable detect change, from 'usb-host' to 'unkno
wn/none'
<4>[ 6160.717529] fsa9480 4-0025: irq fired, but nothing happened
<6>[ 6160.719085] fsa9480 4-0025: nothing attached, keeping ownership of port
<6>[ 6161.740081] max17040 4-0036: online = 1 vcell = 3998750 soc = 91 status =
2 health = 1 temp = 330 charger status = 0

When I connect to a PC for MTP mode, I get:

Code:
<6>[ 6319.683776] fsa9480 4-0025: cable detect change, from 'unknown/none' to 'u
sb-peripheral'
<6>[ 6320.111816] android_work: sent uevent USB_STATE=CONNECTED
<6>[ 6320.119384] android_work: sent uevent USB_STATE=DISCONNECTED
<6>[ 6320.205841] android_work: sent uevent USB_STATE=CONNECTED
<6>[ 6320.723571] max17040 4-0036: online = 1 vcell = 4057500 soc = 90 status =
1 health = 1 temp = 310 charger status = 0
<6>[ 6320.815460] android_usb gadget: high speed config #1: android
<6>[ 6320.815948] android_work: sent uevent USB_STATE=CONFIGURED
<6>[ 6321.444488] mtp_open

So it seems to be detecting a state change with the OTG and identifying it as Host Mode, but can't see any device....

Any help at all would be greatly appreciated!
 

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
That's weird, I would try completely reflashing and reupdating your device. I'm running my Galaxy Nexus on 4.0.4 as well, and at least DSLR Controller is working. StickMount had an issue I'll look into later, but DSLR Controller working does prove USB support is working on my device.
 

colin.jones

Member
Jun 20, 2010
20
1
UPDATE: cable just this second arrived! Sorry to bother you - it was the cable's fault :)

thanks - it was completely reflashed going to 4.0.3, doing it again is a pain cos I don't want to root so that I can backup apps/config, and as I'm on Voda Australia which uses 850 and needs a specific baseband, so its fiddling around a bit.

Since this, I've convinced myself that its the cable. No idea how it could have become damaged, but I persuaded someone else to reflash to 4.0.4 and they had the same experience with this cable, so I've ordered a new one to see if that fixes it :)
 
Last edited:

ArvoTroN

Member
Dec 28, 2010
10
1
Chennai
Hi Chainfire,

Thanks for the app. Im using a Micromax P300 ICS tablet and pendrives and mice seem to work fine, and the app is able to detect and display all the info.

I was playing around with a "non-standard" USB device which enumerates as a CDC class device, and am able to see the VID/PID in your app. However, the device fails to work with the Micromax P300.

The same device works fine on a Sony Tablet P, when tested with the same app.

Here are the differences between the tabs as diagnosed by your app:

Verdict:
Sony Tablet S - All "YES"
Funbook(P300) - Claims Support and Device detected - "NO"

I noticed a "Rooted" result under Third-Party Apps column.

Does this mean that in order to get a non-standard device working, my app has to request for SU permission?

Any pointers on how this can be done will be appreciated :)

Thanks!
 

ArvoTroN

Member
Dec 28, 2010
10
1
Chennai
Hi Chainfire,

Thanks for the app. Im using a Micromax P300 ICS tablet and pendrives and mice seem to work fine, and the app is able to detect and display all the info.

I was playing around with a "non-standard" USB device which enumerates as a CDC class device, and am able to see the VID/PID in your app. However, the device fails to work with the Micromax P300.

The same device works fine on a Sony Tablet P, when tested with the same app.

Here are the differences between the tabs as diagnosed by your app:

Verdict:
Sony Tablet S - All "YES"
Funbook(P300) - Claims Support and Device detected - "NO"

I noticed a "Rooted" result under Third-Party Apps column.

Does this mean that in order to get a non-standard device working, my app has to request for SU permission?

Any pointers on how this can be done will be appreciated :)

Thanks!

Android API: Claims Support = YES
Rooted API: Claims Support = NO

Can anyone throw some light on this?

What is a Rooted API? What permissions does my app need to ask to access USB devices?

Please help.
 

mtrax

Senior Member
Nov 24, 2008
177
2
I have just run the diagnostics against a USB device which did work in the previous GB version on the Samsung Galaxy S2, but after the ICS upgrade my device won't mount.
I just tried a custom ROM and I get the same issue, is there a way forward or do I have to just wait till google get it right?

You would have thought USB mounting would be easy right?
 

os2baba

Senior Member
May 4, 2009
311
24
Nexus 7

I checked with the Nexus 7 and it can't recognize a USB keyboard or mouse. But a flash drive is recognized. Which is exactly the opposite of what AnandTech reviews suggested. This seems to be borne out by http://usbhost.chainfire.eu/.

The problem is that even though it recognizes the USB drive, I can't see it in any file explorer. I do see a /usbdrive, but it's empty.

I can see the drive using the same OTG cable in a Galaxy Nexus with Stick Mount. Haven't rooted the Nexus 7 yet, so can't test that yet.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    USB Host Diagnostics determines your device's USB host capabilities.

    USB host is a very powerful feature of recent Android based smartphones and tablets, but on many firmwares (both stock and custom) the feature is somewhat broken.

    For example, at launch the Galaxy Nexus told all the apps and the Market that it supported USB host, but USB host did not actually work (this was fixed in the Android 4.0.2 update). This broke several apps.

    That is just one example of many. There are even cases where OEMs advertise USB host support, but the device does not support it at all. It appears as if USB host support isn't tested by Google or the OEMs when they push out new firmwares and devices at all.

    As we cannot depend on Google or the OEMs to correctly provide information regarding USB host support, and the Android framework will regularly lie about it to both the Market as well as Android apps, this application was created so you can test your device's USB host capabilities for yourself.

    If you allow it, the app will also submit your results to my website, so together we can create a complete database of devices and firmwares and their USB host support.

    This tool may also come in handy for those porting firmwares.

    Requirements:
    - Android 2.3.1 or newer
    - (Optional) Root
    - USB OTG cable (unless your device has a fullsize USB port)
    - USB memory stick, or another USB device to test the connection with

    The result database is available here:
    http://usbhost.chainfire.eu/

    The download can be found on Market here:
    http://pkg.to/eu.chainfire.usbhostdiagnostics

    It is also attached: DO NOT REDISTRIBUTE

    (v1.2: 9284)
    5
    Changelog for v1.3:

    - Detects some common issues with firmwares that can cause apps to be unable to use USB host, and if you are rooted, offers to (try to) fix the problem
    - Gives you a unique code that can be used to locate your result, if uploaded to server
    - Added option to follow me
    - Fixed some more crashes
    - Disabled rooted API for Jelly Bean and newer
    - API 14 and higher get Holo look now
    5
    What about Galaxy S5 Mini G800F with Lollipop 5.1.1?

    Testet my S5 mini with your app and an android endoscope camera.
    Despite Kernel and API claims "yes" the camera isn't recognized. See following screenshots. Is the OS the Problem?

    3a4d189b109fcbba0eeda4c12e9f4101.jpg


    9ff4eefdfa8757b4a50f997b4203c827.jpg


    Gesendet von meinem SM-G800F mit Tapatalk
    3
    galaxys2 GT-I9100 IML74K samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPB:user/release-keys Custom 2 Yes Yes Yes Yes Yes Yes Yes Yes Full

    USB Sticks fail to detect the only thing I can get working is your DSLR application.

    Try my StickMount app from the Market, it's actually for the G.Nexus. Your build just doesn't have automounting and such enabled... doesn't mean USB host isn't working :)
    2
    Try my StickMount app from the Market, it's actually for the G.Nexus. Your build just doesn't have automounting and such enabled... doesn't mean USB host isn't working :)

    Sweet that works!! Detects FAT32 SD cards but didnt detect NTFS USB stick.

    Is that something the CM9 devs can change to enable it by default?