USB OTG (hosting) - General Questions and Answers

Sorry if this already have been discused.
I'm working for some time to make my O1 Usb host capable and yesturday i found this app on the market (sorry, can't post links cuz i'm new, you cand find it on the market with a simple search), USB Mode switcher of Xvision. Xvision i figured is a rom from alex163 (correct me if I'm wrong).
My question is if somebody tried this already. Because obviously i don't want to install that ROM. The USB Mode app is very simple, once launched you get 2 options: USB Host & USB Slave ( +3 lines of japanese description on both of them which i don't understand and didn't managed to translate ), once clicked on one of them it says: "Switching USB mode. Your device will reboot shortly, please wait!" (nothing happens). I want to know if somebody tried it, or can translate it to me.
If this will not work, next week i'll try with a Male microUSB B + Female USB A + one beagle joined to 4st and 5nd pad with a switch for boot kicking usb into host mode.
For those who don't know what is USB host mode
Your pc is a host, you phone is a client
result:connect a keyboard,mouse,memory stick,gamepad,etc. to your phone
(unfortunately the chipset of my phone is not capable of giving power to devices
Sorry for my bad english

Related

Raphael - USB Host?

I am wondering whether or not the Raphael has USB Host functionality? I read this on some internet sites, but searching the Wiki and other avaliable informative websites couldn't bring light to this issue. I know that HTCs ExtUSB only is a proprietary connector, enhancing the USB Port with audio and video functionality. This is not what I'm talking about!
Host USB allows devices to act as an USB host (like a computer) and as such access USB-Devices like harddrives or USB sticks, which is more than convinient. As some other Pocket PC have it, I'm hoping deeply my future playmate has it also.
Maybe some of the lucky users could verify?
Thanks!
Doesn't look like it'll have any host facility no. The only HTC device ive seen with host are the bigger HTC Advantage's which have a normal USB port. I dont think the Qualcomm chipset offers USB host either.
This would be a nice thing to have...
I am still owner of a PocketLoox 720 which is capable of accessing USB sticks and USB HD.
It'd be nice. But I guess it would eat the battery.
I think I saw somewhere a USB bluetooth thingy that enables you to read USB sticks via Bluetooth.
well to be precise both the diamond and raphael have some interesting host ability - in SPL you can set usb host to read NBH file off usb. however you need the right adapter cable, so I haven't tried that yet on the diamond (and no raphael yet).
cmonex said:
well to be precise both the diamond and raphael have some interesting host ability - in SPL you can set usb host to read NBH file off usb. however you need the right adapter cable, so I haven't tried that yet on the diamond (and no raphael yet).
Click to expand...
Click to collapse
What an interesting feature... Maybe it's for service centres to unbrick warranty returns easily?
Rory
cmonex said:
well to be precise both the diamond and raphael have some interesting host ability - in SPL you can set usb host to read NBH file off usb. however you need the right adapter cable, so I haven't tried that yet on the diamond (and no raphael yet).
Click to expand...
Click to collapse
Have you tried with the Athena USB host cable?
Pantaloonie said:
Have you tried with the Athena USB host cable?
Click to expand...
Click to collapse
oh hmm. does that cable plug in the miniusb port of the athena?
cmonex said:
oh hmm. does that cable plug in the miniusb port of the athena?
Click to expand...
Click to collapse
Yes it does, I was hoping it would work with the Diamond and Raphael.
Pantaloonie said:
Yes it does, I was hoping it would work with the Diamond and Raphael.
Click to expand...
Click to collapse
mm, thought it plugged in the other port on the athena...because it also handles vga out (the 4 in 1 cable). and this other port (beside the miniusb sync port) has the icons vga out and usb host.
that is clearly not the same socket as the miniusb (i.e. the sync port).
the diamond & raphael unfortunately only have this miniusb (which is for the sync on athena).
You're right - It's been so long since I used the USB host on the Athena I'd forgotten which port it uses.
Back to the drawing board on that one I guess.
Pantaloonie said:
You're right - It's been so long since I used the USB host on the Athena I'd forgotten which port it uses.
Back to the drawing board on that one I guess.
Click to expand...
Click to collapse
yeah, I also have the 4 in 1 somewhere in the drawer
I only got it to have all cool accessories for my Athena.
anyway, I'll update the thread if I find out more about the cable needed for diamond/raphael
I read in the Diamond service manual (foeund somewhere on the forum here) about using an USB SD-card reader on the sync port on the Diamond. It is used when servicing the phone to upload firmware and test software to the internal storage.
On the picture it looks just like a normal sd card reader that is plugged into a standard USB port on one of the ends on the cable. it is a Y cable where one end is power, one USB and one mini usb to plug in the phone.
I am just doing some tests on this now. I made a usb cable with mini usb in one end and normal usb in the other end. On the on ememstick I have here in the office nothing happens.I will continue to look into this matter.
holy moses. I got something working here!!!!!!!!!!!!!
I had to rebuild my cable a little bit here to get this working.
The new external USB port is now powered from a 5Volts source. I have cut the 5 volts connection between my Diamond and my USB memory.
I am using a standard USB flash memory which i got at some commercial stuff long time ago.
I formatted the USB stick to FAT32 on my computer first.
The thing I tried was:
downloade a custom firmware.
copied the xxx.nbh file to the flash
renamed it to "DIAMIMG.NBH" Capital letters!!
Started up the phone holding VOLUME DOWN and RIGHT button down while giving the power button a short push.
It fired up the Olimex boot scene and asked me to push power button to confirm flashing.
After that it flashed my phone for about 10 minutes (from the USB flash memory)
So there is NO DOUBT, the Diamond has USB master capabilities!!!!!!!!!!!!!!!
When I am in file explorer I still can't get in contact with the memory.
Anyone that has the USB drivers from som larger HTC device????
Can anyone try to flash a phone with an un signed firmware or a firmware from wrong region on a phone that has the original bootloader using this method?
Does anyone know how to use external memory by usb hosting
zeb crs said:
holy moses. I got something working here!!!!!!!!!!!!!
I had to rebuild my cable a little bit here to get this working.
The new external USB port is now powered from a 5Volts source. I have cut the 5 volts connection between my Diamond and my USB memory.
I am using a standard USB flash memory which i got at some commercial stuff long time ago.
I formatted the USB stick to FAT32 on my computer first.
The thing I tried was:
downloade a custom firmware.
copied the xxx.nbh file to the flash
renamed it to "DIAMIMG.NBH" Capital letters!!
Started up the phone holding VOLUME DOWN and RIGHT button down while giving the power button a short push.
It fired up the Olimex boot scene and asked me to push power button to confirm flashing.
After that it flashed my phone for about 10 minutes (from the USB flash memory)
So there is NO DOUBT, the Diamond has USB master capabilities!!!!!!!!!!!!!!!
When I am in file explorer I still can't get in contact with the memory.
Anyone that has the USB drivers from som larger HTC device????
Can anyone try to flash a phone with an un signed firmware or a firmware from wrong region on a phone that has the original bootloader using this method?
Click to expand...
Click to collapse
heh, you were faster at building the cable congrats.
btw, what special modifications did you need to make? just the 5V source?
anyway, this just confirms what i found in bootloader disassembly then.
not sure on the availability of usb host drivers. maybe we will need to implement it ourselves
and sorry, but i do not understand the question about flashing unsigned stuff. the stock bootloader will not accept unsigned NBH, no matter where it comes from, sorry to disappoint you.
EDIT: I downloaded the service manual now, thanks. wasn't aware this was out in the open
anyway, the text mentions you must plug in AC power for the USB host. what a shame.
zeb crs said:
When I am in file explorer I still can't get in contact with the memory.
Anyone that has the USB drivers from som larger HTC device????
Click to expand...
Click to collapse
Just an idea, have you tried to start WM5torage on Diamond ?
It lists the MovieNAND and the system partition. OK, you can't take access to it, but maybe WM5torage recognizes the USB stick from OS.
If it does, maybe a modified version of WM5torage can do these job ?
For short test download here:
WM5torage
Ok, WM5torage isn't the right way to test the access from OS, because it needs at last a running driver.
Qualcomm was running Oxford Semiconductor solutions, maybe the integrated USB OTG is a license from this company ?
@cmonex:
Is it possible to adapt the integrated bootloader driver to WM ?
USB drive is HTC supported
I just read through the US user manual and Section 1.13 Using you Device as a USB Drive. http://member.america.htc.com/downl...al/HTC_Touch_Pro/HTC_Touch_Pro_English_UM.pdf
Quote:
To easily carry media and other files with you, you can use your device’s storage
card as a USB flash drive. Touch Start > Settings > Connections tab > USB to PC
and then select Disk Drive mode. This allows you to copy files from your computer
to the device’s storage card and vice versa faster.
Note You need to have a storage card installed on your device to be able to use your device
as a disk drive.
When Disk Drive mode is used:
You will not be able to use your device to access files from the storage card
or run applications that are installed on the storage card while the device is
connected to your PC.
Your PC will only connect to the device’s storage card. When you access your
device from the PC, you will only see the contents of the device’s storage card.
Remember to change back to ActiveSync mode when you need to synchronize
data between your device and your PC.
USB Host is different.
Mechanicaldan said:
I just read through the US user manual and Section 1.13 Using you Device as a USB Drive. http://member.america.htc.com/downl...al/HTC_Touch_Pro/HTC_Touch_Pro_English_UM.pdf
Quote:
To easily carry media and other files with you, you can use your device’s storage
card as a USB flash drive. Touch Start > Settings > Connections tab > USB to PC
and then select Disk Drive mode. This allows you to copy files from your computer
to the device’s storage card and vice versa faster.
Note You need to have a storage card installed on your device to be able to use your device
as a disk drive.
When Disk Drive mode is used:
You will not be able to use your device to access files from the storage card
or run applications that are installed on the storage card while the device is
connected to your PC.
Your PC will only connect to the device’s storage card. When you access your
device from the PC, you will only see the contents of the device’s storage card.
Remember to change back to ActiveSync mode when you need to synchronize
data between your device and your PC.
Click to expand...
Click to collapse
Sorry to dissapoint you, but this is just the other way arround. This enables you to use your phone as a flash drive from a PC. In this thread they want to access a flash drive (USB stick/HD etc) from their phone

[Q] USB OTG Does not work anymore

Hello Gents,
I purchased a USB OTG for my 7+ last week, all was working. the USB drives works, mouse works.
But this morning, when I tried to use the same mouse/usb drives. The tab does not seem to recognized the USB, I can see the LED on the USB blinks for a few moment and then turn off. Like it's getting power but then stop.
I tried the following.
1. reboot the tab. power on , power off. No go.
2. reboot from factory default ( yes it drives me nuts, but I did it anyway) Power Volume Up. Factory reset, data wipe. No go.
3. tried a new OTG USB cable, still does not work.
I had the Tab root before, but after the system reset, it gone back to stock firmware. The only thing I can think of is I did the latest Samsung Patch after my initial test.
When I look at the "dmesg"
s5p-ehci: detected XactErr len 0/8 retry
tspdrv: ImmVibeSPI_ForceOut_AmpEnable (1)
ImmVibeSPI_ForceOut_AMpDisable...
Does anyone have solution for this problem?
Thank
P.S. these are not the OEM Samsung USB cable. But they were working before.
Also, when I plug in an portable external HDD, it does say, High power device not supported.
hi,,,
try to connect all tools to usb otg hub first before you conect it to GTab. i mean if you want to connect a flash disk or a mouse, connect them to the usb otg hub first before connect it to GTab.
for hdd, you have to connect a power supply to usb otg to make it readable on GTab. i use my old nokia charger to power the usb otg hub device.
hope it help and sorry for my bad english.
dan
edit : i use this device as usb otg hub
http://db.tt/fmw1MhTY
I have the same error.
I have the same error but when I reboot my Tab, it's ok, before reboot I do not disconnect USB from my tab!You can try!

[Q] USB OTG with rooted ACE 2 ?

Hi!
I've rooted my Ace2 and tried to get USB OTG to work in order to connect external storage and to use DSLR Dashboard. USB Host diagnostics gives the following information (s. attachment). Neither external storage nor DSLR dashboard works. Is there a way to activate USB-OTG by editing config files? In that post I've read that the /etc/volt.fstab hat some lines commented out related to USB OTG.
EDIT: Replaced wrong screenshots
Any ideas? Wrong forum? Any suggestions?
You are using a specifically OTG cable to connect?
The cable must ground the ID pin on the USB connector of your ACE 2.
Many devices will work correctly (and automatically) when they receive the interrupt from the grounding.
See if you can get a USB keyboard to work first.
I used this (Amazon de Product B0068CEUAA) USB OTG cable.
I am not sure but in another post on xda I read that one need a new kernel where usb otg support is compiled in. I checked dmesg while connecting an usb drive, nothing happens there.
Has anyone with any USB OTG cable got this function to work on the Ace 2 (GT-I8160)?

[WORKING][USBOTG][STOCK] - Atrix 2 USB OTG Host Mode and USB Accessory acquisition

04/11/2014 - 01:41AM - Central Time
USB OTG does work on the Motorola Atrix 2.
I post this because there are no defining topics listing all the requirements and caveats of making this work currently as of the date. Just alot of help topics to sift through. I got a little obsessive in my search to make this work so this is pretty much a knowledge dump.
Started from original help threads here on the forums (various many... lots), figured things out from there through conversations with Chainfire. Ultimitely fixed with lots of research and use of his USB Host Diagnostics App.
Requirements:
Motorola Atrix 2 Stock 4.0.4 - Rooted [stock kernel as well]
(what drove me insane on this was that in USB HOST Diagnostics App it showed kernel support, and API support up to Device detected)
USB OTG Y cable, usb 2.0 (I was concerned about this in the beginning however mine appears to be usb 2.0, got it off amazon.)
(Through research it concerned me that a usb 3.0 would not work. Have not tested this)
USB Drive, usb 2.0
- Tested with a Sandisk Cruzer Micro 1gb
(I assume others will work although there have been some help topics mentioning problems with certain usb drives)
[NOTE]
Must be formatted fat32 - I have noticed a few threads I researched mentioning exfat is not supported for certain devices
(have not confirmed as of post date if exfat is supported for Atrix 2 Stock)
[NEEDED] For USB Host AutoMount
Usb 2.0 Hub (I have an old one i cut apart originally. Dont remember the make, and I lost the housing for it, but hey it works)
---------------
USB Host Diagnostics App by Chainfire
(v1.3 as of post date)
Get it at Play Store [link]
Click to expand...
Click to collapse
Instructions (i.e. my exact process)
I came from testing a multitude of custom roms. None of them worked. I have a help thread on it here. Unconfirmed if any of them work at all I had no success. If you are wondering the post thread is here.
- Flash to stock ICS 4.0.4 (if you are not already)
- Root the Atrix 2
Not sure if the relevant (but this is the exact process I took)
-Install BMM
-Installed Busybox (1.22.1)
-Installed USB Host Diagnostics App
(get your host cable and usb drive ready)
-Ran the app
(Follow the instructions it will ask you at the end if you wish to attempt to fix the issue)
- Say yes to try to fix it.
- Follow instructions (go for a reboot)
- Open up usb diagnostics app.
- Run again to confirm
Congrats!
Click to expand...
Click to collapse
This will not make it automount.
- You do not need a separate program to do this.
Grab your USB hub, plug the USB Drive into the hub and plug it in. To my surprise it automounted.
Chainfire had mentioned checking out a certain file when I was trying to find custom roms that would work. The file was there but they did not work. I gather that file was added by his program and made it work on stock ICS 4.0.4.
There are alot of other threads for other devices. Samsung requires shorting the last 2 pins on the USB connection. This is not needed for Motorola, but keep this in mind if you are randomly searching for USB OTG answers.
---------------
Thanks: Chainfire
Couldn't have figured this out without his help. I highly recommend his apps, he definitely has a deep knowledge of the android system.
Hopefully that should clear things up a bit for anyone searching for the Atrix 2 USB OTG help. I'm moving on to hopefully port from ICS USB OTG host features to a custom rom like Cyanogen. Ill update a link if I come up with anything.
Hello, maybe someone can guide me for final results and find solution. My plans was watch Tv on lapdock 500pro, after i find dvb-t reciever for android. the model was ]CSL - mini DVB-T Stick (from amazon)
requriments of device informs that phone needs android 4.0 or high, dual core cpu (neon support) and usb otg
i have atrix2 mb865 with stock 4.0.4 +root and text inside /proc/cpuinfo returns - "Features: swp half thumb fatmult vfp edsp neon vfpv3"
last one what i need must be usb otg support, so after i get device i connect it direct to microusb and run installed Air Dtv app, it returns "Device not found" then i find this topic and install Busybox and USB Host Diagnostics and run app. I rush to make it quickly so when start diagnostics app asks me connect usb device but i have no any usb device and otg cable also. so i just plug charge cable in lapdock`s usb and connect it to phone, app little think then ask me to Fix usb otg support and after ask to reboot system. After reboot i try again connect directly that device but app again returns "Device not found" - then i check topic again and start to build otg cable.
After cable was complete i check it by connecting to external power (wall adaptor) then i have results.I run USB Host Diagnostics, start test connect device by otg cable, and app returns me (see pic)
Also, when i connect device by otg cable now system popup "By which programm you want use device" and give choice to Air Dtv or Idtv Mobile, 2 apps. But Air Dtv returns me "Device initialisation failed, unplug device and connect after few seconds" another app cant find device also. (see pic)
Also i install Usb Device info app, and able to see connected device info, system shows me that stick is connected to phone. (see pic)
Also i able to mount usb stick to phone by otg cable with external power, and can view files in it. Means i suggest that otg cable and otg in system works
My final point was view Tv on lapdock but at this step i cant run it on phone, Air Dtv also returns me "device not found" when i try to connect it to lapdock by microusb female - usb male extension (included in package of Tv stick)
Also that device works on pc, i install windows software and check it. Mean stick works and shows tv channels. can be for sure that device works
Hope for your help and support!
That solves my problem sort of, I'm going to try to install NUMA and see what results I get. Ill update my post once I'm done

Asus Z380KL Cant switch to MTP

Hello first sorry for my bad english, second i just got an older Asus Z380KL (runing Android 6.0.1 latest update from Asus) and its working fine for the most part. I just cant connect it to my PC (Windows 7/10) using USB. When i plug it in to my PC in device manager i dont see any new device but the Tablet is charging.
The tablet is in charging mode and i cant switch it to MTP. In Setting>Storage there is no option to change the USB mode, i dont get any notification in the pull down bar, in Developer menu i enabled USB debuging and tested the option to switch the USB configuration but if i change to MTP,PTP or RNDIS it always says Charging. I know the USB connector on the tablet is OK just tested my OTG cable and connected a mouse and it was working. Also i used 5 diferent USB cables that work when i try whit my Phone. Also tested all my USB2 and USB3 ports on my PC and laptop.
If anyone can help i wold be very grateful
Edit: Just tried it on Ubuntu 16.04 Live and MTP is working fine, Tablet connects i get the popup in the status bat saying i can pick if i want charging, MTP or PTP but on Windows 7/10 i cant get it to work its always in charging mode and i cant change it.

Categories

Resources