I am trying to charge the tablet while in USB host mode. I have purchased a number of y-splitters and usb hubs but nothing appears to work. Whichever usb cable I plug into the splitter/hub first is what the tablet recognizes. So for example if I plug in a printer first the tablet prints but doesn't charge or if I plug in the power first it charges but doesn't print.
Unless there is a setting that I am missing it appears that there is no way to charge the device while it is in usb host mode. As a result I am looking at trying to dynamically change the host mode only when a print command is sent from my application. The application would switch the usb mode from peripheral to host, print, and the switch the usb mode back to peripheral.
it appears as though this is theoritically possible by executing the following commands on a rooted tablet:
# echo host > /sys/devices/platform/musb_hdrc/mode
# echo otg > /sys/devices/platform/musb_hdrc/mode
However, despite the device being rooted I do not appear to have write access to the sys folder.
Does anybody know how to gain write access to this folder on the Archos (or how to charge the tablet while in host mode)?
Related
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
KnightRid said:
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
Click to expand...
Click to collapse
PC mode possibly? could be debugginf mode? try all the modes we have if one works then there you go. I have never heard of USB host mode
Here is the link - http://forum.xda-developers.com/showthread.php?t=1202082 to the DSLR program I am talking about. Something about some phones can enable the USB host for communication between the phone and external devices while others cant.
I'm assuming you aren't sure how to enable USB Host mode? If that is correct, here is how to ensure it's enabled. This will work if you are on stock or a custom ROM (unless the custom ROM removed it which I doubt):
Click the Menu button and select Settings
Scroll down until you see Applications and select it
Select the Developer menu item in the Application settings menu you are currently in.
Ensure USB Debugging is checked. This is necessary and important.
After that, you can pull down the notification bar and you should see a "USB connection" option. You can select that and you'll get a new window with radio button choices. Mine has the following (running Eclipse 1.3):
PC Mode
USB Mass Storage
Phone as Modem
Charge Only
PC Mode allows you to access the SD Care from Windows and within ADB shell. In this mode, it allows access to what is on your internal and external SD card in the same window.
USB Mass Storage mode means that it will mount the internal and external SD cards as separate drives on your windows machine and your phone won't have access to them until you either disconnect the phone from the PC or else, go to a different USB mode.
Phone as Modem - I never use this but it allows you to use your phone as a modem for your PC. Ahh, the old days of modems. I remember running 300 baud. When I went to 1200 baud, I thought I was styling!
Charge Only - In this mode, it's only using the USB connection as a charger. You won't have access to the sd cards from within Windows, but they will be accessible from your phone.
It sounds like you want the "USB Mass Storage" mode from what you've stated.
Hopefully this helps.
KnightRid said:
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
Click to expand...
Click to collapse
First of all you need a kernel which has usb host mode enabled and a terminal.
You can check out this for information on USB OTG cables:http://tech2.in.com/how-to/accessor...sb-otg-cable-for-an-android-smartphone/319982
As, Levprez has pointed out you will need a kernel (not a ROM!) with USB OTG support.
Once, you have USB OTG support (and it is enabled) you can plug a device into the normal usb connector on the USB OTG cable...if it works at all...it should detect and setup the device like normal.
I recently test OTG support on my DX2, and it appears to be working. (firmware is 4.5.1A-DTN-150-30, kernel is 2.6.32.9-00005-g2440aba)
To verify status of USB OTG support, check if /proc/config.gz (compessed configuration file used for building kernel that currently installed in device) has 'CONFIG_USB_TEGRA_OTG=y' in it. If so, your kernel supports otg mode.
However, in order to connect usb device to phone you need a special otg cable with support of external +5V power. Phone itself doesn't provide required power for connected devices, which may be bad - you need additional power source for usb devices - or good - while connecting other devices you can also charge phone from external source.
Initially supported various HIDs (keyboards, mice and some gamepads) and mass storage devices (flash drives, external hdds and such), though flash drives require manual mounting within scripts or terminal emulator and, obviously, require root. Alternatively, you can add other drivers (because it's linux and source code of kernel available) to support any device you need, for example drivers for other android device xD
Droid x2 to control camera
Levprez said:
First of all you need a kernel which has usb host mode enabled and a terminal.
Click to expand...
Click to collapse
hi please let me know if you figure this out? because i also have a droid x2 and a rebel t3i and have the same idea in mind! it works on my transformer prime, but that is too big to be useful on the go. I don't think too many devices support the usb host mode except very new ones?
When you plug a USB thumbdrive to the phone, it first recognises the drive name but doesn't show any options to use it (even in file manager).
Maybe it's due to the connection type (MTP only)...
Any ideas?
Can you access your files in your USB thumbdrive using the file manager?
I'm using Astro Manager to access, and play my video files directly from the USB thumbdrive.
In fact, I just realised I can access if I keep pushing the cable to the phone... Maybe the cable connection isn't that good. I'll buy a new one.
New mission will be to enable wake using volume key which might be more difficult...
Thank you for your answer!
On my tablet , I use USB host ( full usb connection ) , which means I can plug in a pen drive , keyboard , mouse etc...
Can I do this on the Xperia S ???
With a micro usb adaptor I assume ??
Just found a Vid : The answer to my question is yes !
http://www.xperiablog.net/2012/03/09/xperia-s-usb-otg-demonstrated-video/
This will enable you to use USB on the go (OTG) feature that comes with Android 3.1 on our Jetstream. However, I for one don't think its truly on the go because you do need an external power source for it to work. But it allows me to connect my hard disk and work with it without the intervention of a computer which is more than great for me. But would surely like it if you could directly plug in a pen drive (not yet possible I think as far as I could search).
I have note made any of these, have just researched, tried a lot and managed to get it to work on my Jetstream and am just compiling the steps and methods I followed here.
Thanks to sztupy for his thread http://forum.xda-developers.com/showthread.php?t=1450298 for giving the basic idea.
Thanks to hellcat82 for his software NTFS Mount found at http://forum.xda-developers.com/showpost.php?p=13337600
Pre-requisites:
1. Must be rooted with Superuser and Busybox loaded
2. NTFS Mount software (use version 1.2 as 1.3 has some issues with Busybox as per the above mentioned thread and personal experience) - alternate is USB Mount by the same developer available on the Play store at https://play.google.com/store/apps/details?id=au.dach.drivemount (however I have not had success with it)
Hardware Requirements:
1. USB OTG Cable. Can be found at http://www.ebay.com/itm/Micro-USB-H...370670?pt=PDA_Accessories&hash=item3a731ccdae
Just a sample, costs around $ 2. I got mine from a local hardware store for Rs. 300 ($6)
2. USB Y cable. Can be found at http://www.ebay.com/itm/USB-2-0-Min...552?pt=LH_DefaultDomain_0&hash=item1e624b8dd0
Just a sample, costs around $ 2. I had one lying around at home.
3. USB Charger. Can be found at http://www.ebay.com/itm/Black-Plug-...er_MP3_Player_Accessories&hash=item1c254df23a
Just a sample, cousts again around $ 2. I got mine from a local hardware store for Rs. 170 ($3)
4. USB Hub (OPTIONAL) - this will enable you to connect more than 1 device at a time. If plan on using this, then you can get one with an external power source and skip the USB Charger.
Procedure:
1. 1st, after obtaining root, confirm that USB Host more is enabled on the Jetstream by checking the build.prop under /system using Root Explorer found towards the end of the screen. It should read as:
# support USB Host
rp.usb_host = 1
If not, then you must enable it by allowing R/W mode.
2. Next step would be to set up the hardware in the right manner. Note this must be done before connecting anything to the tablet.
The USB Y cable comes with 2 male USB ports and a single female USB port. The USB device to be connected must be attached to female port. The USB power charger must be attached to the side Male port and the USB OTG (micro USB to USB female) goes to the main Male port. With this all necessary connections are made. Refer to the attached picture (thanks to sztupy again) for details on other ways of connecting and using including with USB Hub (I personally have not tried the hub).
3. Put on the power source that is connected to the entire system and in case the external hard disk also uses one, that needs to be put on as well.
4. Lastly, connect the Micro USB cable with all the above connected to it to the tablet.
5. In order for the device to read/write or access the USB storage, next step depends on if the device is FAT32/NTFS
a) for FAT32 - you can go to the settings, storage and scroll down to USB storage. You will be able to see the details of the connected hardware and can click on Mount to mount and use. Unmount later to disconnet.
b) for NTFS - you must open NTFS Mount software. From the drop down list of devices, select a device (mine always shows sda1) and click on mount. Unmount from here itself later when done.
By following this, you would be able to access your USB external storage (pen drive/hard disk) with ease from your tablet directly.
Note: in order to access the files, you must use Root Explorer/Astro File Manager.
FAT32 device appear under USB folder of sdcard (i.e inbuilt memory)
NTFS devices appear under /mnt/sda1
Attachments:
1. usbhost_2.jpg - a diagram with the detailed setup (thanks to sztupy)
2. NTFSMount1_2.apk - NTFS Mount (thanks to hellcat82)
Hope this helps.
Is it truly necessary to have the OTG usb cable? I currently have a powered hub. Shouldn't I be able to use the provided JetStream usb cable and tie the devices together through the hub?
Sent from my HTC PG09410 using xda premium
aka.karasawa said:
Is it truly necessary to have the OTG usb cable? I currently have a powered hub. Shouldn't I be able to use the provided JetStream usb cable and tie the devices together through the hub?
Sent from my HTC PG09410 using xda premium
Click to expand...
Click to collapse
Hi, sorry for delay, was out for an exam.
I don't know if or not it will work. As I said I have just researched and seen what others have implemented and put it together.
Perhaps you could try and let us all know because I don't have a USB Hub (powered or otherwise) and hence have not tried it out.
This all seems a little much for OTG support considering it was just plug and play with my SGS2 and also my SGS4G. I am hoping to see some more development in this area as this type of support is nice to have on a tablet of this caliber.
aka.karasawa said:
Is it truly necessary to have the OTG usb cable? I currently have a powered hub. Shouldn't I be able to use the provided JetStream usb cable and tie the devices together through the hub?
Sent from my HTC PG09410 using xda premium
Click to expand...
Click to collapse
Tried this... it didn't work
I want my android device (os:mashmallows) to get charged and host other usb devices at the same time via type-c usb.
Now I have an android device (huawei p9) , a charged usb hub with usb devices (keyboard etc.) and type-c usb cable.
The type of usb ports and cables are all type-c.
When I connect the android to the usb hub via type-c usb, I can switch the android between a data transmission host and a charged device (device),
but it can't both get charged and host other devices at the same time.
while host, it always is charging and vice versa.
how can i realize the two funcitons ?
i have knowed a lot of pins of type-c usb cable , compared with type-A,B usb cable so it must achieve both at the same time.
note:
how to swith the funcitons as host(charging) or device(charged)
host: echo dfp > /sys/class/dual_role_usb/otg_default/mode
device:echo ufp > /sys/class/dual_role_usb/otg_default/mode
While android being host or device, i can't write on the file as bellow despite being the root and having the write privirage,
echo source > /sys/class/dual_role_usb/otg_default/power_role
echo sink > /sys/class/dual_role_usb/otg_default/power_role
i want to know how to switch power_role ( to sink ) while android being host (dfp).
In advance thank you for your help.
Hi All,
I hope someone here can help me with the issue I have been facing with my LG G7 from the last two weeks.
Earlier my phone used to show me the MTP options each time I connected it to my laptop using the cable. For some reason, the phone does not show me the MTP options anymore and only charges when connected to the laptop.
I have done the below to try & fix but nothing has helped.
Cleaned the charging port on my phone
Tried a different USB cable
Tried USB debugging
I also did a factory reset on the phone
While researching on the internet, I read about the three dots on the storage tab, I don't have that. Also in developer options the Select USB configuration does not pop-up and when I click it 5 to 6 times a window pops-up and vanishes in a fraction of a second.
Any leads on what needs to done to fix the issue I'm facing?
yuvrajsp said:
Hi All,
I hope someone here can help me with the issue I have been facing with my LG G7 from the last two weeks.
Earlier my phone used to show me the MTP options each time I connected it to my laptop using the cable. For some reason, the phone does not show me the MTP options anymore and only charges when connected to the laptop.
I have done the below to try & fix but nothing has helped.
Cleaned the charging port on my phone
Tried a different USB cable
Tried USB debugging
I also did a factory reset on the phone
While researching on the internet, I read about the three dots on the storage tab, I don't have that. Also in developer options the Select USB configuration does not pop-up and when I click it 5 to 6 times a window pops-up and vanishes in a fraction of a second.
Any leads on what needs to done to fix the issue I'm facing?
Click to expand...
Click to collapse
I am having the exact same issue. I even replaced the USB port thinking it was a hardware issue but it keeps happening. Have you had any luck getting this fixed?
MTP mode requires an USB Type-C cable
jwoegerbauer said:
MTP mode requires an USB Type-C cable
Click to expand...
Click to collapse
I know what type of cable it requires. I have tried several cables, done a factory reset, and even replaced the usb port. I still cannot select anything under usb configuration in the developer options menu. The only thing it wants to do is charge when I connect it to my computer.
You use ADB
To switch to MTP mode
Code:
adb devices
adb shell "svc usb setFunctions mtp"
To switch to ADB mode ( default )
Code:
adb devices
adb shell "svc usb setFunctions adb"
Can I use adb if my phone cannot connect to my computer through usb? The connection isn't recognized and it only charges. I don't know anything about using adb but I thought you needed a USB connection to use it.
bryascot said:
Can I use adb if my phone cannot connect to my computer through usb? The connection isn't recognized and it only charges. I don't know anything about using adb but I thought you needed a USB connection to use it.
Click to expand...
Click to collapse
To make use of ADB requires
the USB-driver provided by your phone's manufacturer/carrier is installed on your computer
In phone's Developer options USB Debugging is turned on
The ADB command
Code:
adb devices
tries to establish the USB connection.
I downloaded it and ran all the commands that you listed but it still cannot establish a connection with my phone. It still only charges when I connect it to my computer.
@bryascot
If your phone 's Android is a user-build and it's rooted then install a Terminal Emulator app if not done yet, start a Terminal Session and enter the following commands one by one
Code:
su
mount -o remount,rw / -t auto
echo "persist.service.adb.enable=1" >> /default.prop
echo "persist.service.debuggable=1" >> /default.prop
echo "persist.sys.usb.config=mtp,adb" >> /default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
and afterwards re-boot phone.
No other clues by me. May be others are willing to help to solve your issue. Good luck.
It's not rooted.