[HOWTO] Milestone USB-Host mode & using USB devices - Motorola Milestone Android Development

Motorola Milestone - USB OTG - USBHost Mode
Found on Chris Paget's blog and since there isn't anything related, I'm postin' it here for xda-devs (with some clarifications and corrections in his words).
You’ll need to make two things, a micro-dongle to enable the USBHost mode (that you'll plugin during boot time) and a cable with the right connectors on each end (for connecting your peripheral).
To do this you’ll need three cables:
- A car charging cable (off-the-shelf at the Verizon store)
- A Micro-USB cable (as above)
- A USB extender cable (the tiny ones that sometimes come free with USB keys work great)
Start with the car charging cable. Break open the micro-usb connector (it comes apart fairly easily) and look at the little PCB inside – there should be a single tiny surface-mount resistor and two wires from the charger cable. Unsolder both wires and the resistor, and then bridge the pads where the resistor used to be so that it’s completely shorted.
The end result should look something like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(Micro Dongle)
Next up, you need to make your connector cable. Cut the end off the USB extender cable, you want to keep the socket end and discard the plug. Cut the micro-usb cable as well, but on this one you want to keep the plug and discard the socket. You should now have a micro-usb plug that’ll fit into your droid and a usb socket that you could plug a memory stick into. Strip the wires off the ends of both cables and join them to each other, connecting like colours (and the shield) together. When it’s finished it should look something like this:
For using USB-Host mode and your USB peripherals you have to do the following:
- Turn your Milestone off
- Plug the micro-dongle into the USB port
- Turn the Milestone on
- Unplug the micro-dongle as soon as the Motorola logo disappears (when the Android bootscreen is appearing).
Once your Milestone is booted, pull up a terminal and look at dmesg – after plugging in your USB peripheral using the cable you made earlier you should see the usual kernel notifications about new USB devices being connected; they’ll also turn on (or start charging) if they’re powered by USB.
You’ll only be able to plug in one peripheral before the port reverts to peripheral mode and you’ll have to reboot with the micro-dongle if you want to go back into host mode.
Also, if you leave the micro-dongle plugged in too long it triggers another bug, the port gets stuck supplying power to devices but not actually recognising them. Hopefully the drivers are sufficiently open-source that these are easy bugs to squash, and that dynamically switching between host mode and peripheral mode won’t be too hard to add either.
USB external storage won't work, but USB Keyboards are working. Anyway, we can compile a module for making the Linux kernel to recognize all we want since we can insmod as root.
--kholk

and the same text are here

Is it possible to load a module witch allows usb memory sticks?
Sent from my Milestone using XDA App

I made a USB host cable based on Gowthamj reply on the same blog.

Anyone sell this on ebay?

rizdroid said:
I made a USB host cable based on Gowthamj reply on the same blog.
Click to expand...
Click to collapse
Hi,
Some schematics or blueprint that you can upload here?. Look great!!!
EDIT: Got it!: http://sites.google.com/a/gowthamj.com/www/

i do host cable with blueprint from post #6 and... Something work
I'dont have any classic usb keybord (only wireless), but i try with usb storage.
After reboot and pressing button red led on pendrive blink a few times, after i release button (after M logo) they turned black.
It means that cable is ok, in dmesg i saw notification of connecting USB Device. But without drivers in kernel we can put this in our... boxes with accesories... kernel is locked, host usb is IMO only a funny feature of Motorola Milestone

Cant we use the modules they use to connect usb memory sticks to their N1s?
Would this work?
Sent from my Milestone using XDA App

royalcs said:
Cant we use the modules they use to connect usb memory sticks to their N1s?
Would this work?
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
No, because the N1 uses a different kernel and modules as to the Motorola Milestone.

Is there a chance for external USB sound card to work?

bump!
I'm not a linux guy so anyway - do the drivers for usb host HAVE to be compiled in kernel? As on milestone the kernel can't be modified this implies the usb host on milestone works just with - usb keyboards?
Is there any way to use other usb devices? I'm asking because if not it seems it isn't worth to make the "micro usb host + switch" cable...

there is no way untill we can put or own kernel signed by owrselves on the milestone
Live long and prosper- tapatalk

thx but we all know that.

MuF123 said:
thx but we all know that.
Click to expand...
Click to collapse
so.. we all know that the only included driver available is for keyboard, no one has ever reported anything but, and yet... there is a post asking about it, isnt it?
Live long and prosper- tapatalk

Khul said:
so.. we all know that the only included driver available is for keyboard, no one has ever reported anything but, and yet... there is a post asking about it, isnt it?
Live long and prosper- tapatalk
Click to expand...
Click to collapse
could you please read what you post?
Khul said:
there is no way untill we can put or own kernel signed by owrselves on the milestone
Live long and prosper- tapatalk
Click to expand...
Click to collapse
You said kernel is locked.
We all know that.
And if being smarta*s is the only thing you can do here I think noone is interested in your posts Bye.

Please ppl don't become offensive...Just ignore some posts and let's continue to be productive about the topic

we can try to load modules for the kernel. no need for custom kernel. just compile the module sources against the milestone kernel and present libs (for ex. the now famous kernel 2.6.32.9-ge635aa4

so it is possible, but requires better knowledge of linux stuff like compiling etc - that I as a windows user don't know... however - for a person who knows how to do that - is it possible without much effort to do that? or do you need to code your own driver or what
edit> what do we need to do that? let's say I will come to my friend to do the compiling for me - what does he need to do that? how will I then use those drivers? is it same as in linux so will some guide for linux apply to android?

MuF123 said:
if being smarta*s is the only thing you can do here I think noone is interested in your posts.
Click to expand...
Click to collapse
wow jumpi huh? no need to mate, not being smarta*, just returning your "we all know that" right back at ya. nothing more, its all good.
anyways, i didnt think you could actually add more drivers and get them to load properly... thats nice to hear.
Live long and prosper- tapatalk

Awesome!!Nice guide!!! Thank you!!!

Related

[Q] [HELP] OTG not working on my Note 10.1

Hello,
I have the N8010 version with stock samsung XSA firmware and I bought a OTG cable last week and it does not work.
I am rooted. I tried to attach mice and keyboards and other devices like a pen drive but it does not work. when i connect the otg cable by it self, it shows the USB connector attached notification but it goes away in few seconds. Usb Host Controller (https://play.google.com/store/apps/details?id=hu.sztupy.android.usbhostcontroller) app does not show any device connect. I have tried connecting devices with USB debugging enabled and also it being disabled.
I also flashed cm10 and it does not show anything at all when I connect the OTG cable. I dont think there is a issue with the cable. Please help me out here. Devs, please make a kernel like the SiyahKernel (for SGS2 and SGS3)
:crying:
:crying:
:crying:
:crying:
:crying:
:crying:
hiruna said:
Hello,
I have the N8010 version with stock samsung XSA firmware and I bought a OTG cable last week and it does not work.
I am rooted. I tried to attach mice and keyboards and other devices like a pen drive but it does not work. when i connect the otg cable by it self, it shows the USB connector attached notification but it goes away in few seconds. Usb Host Controller (https://play.google.com/store/apps/details?id=hu.sztupy.android.usbhostcontroller) app does not show any device connect. I have tried connecting devices with USB debugging enabled and also it being disabled.
I also flashed cm10 and it does not show anything at all when I connect the OTG cable. I dont think there is a issue with the cable. Please help me out here. Devs, please make a kernel like the SiyahKernel (for SGS2 and SGS3)
:crying:
:crying:
:crying:
:crying:
:crying:
:crying:
Click to expand...
Click to collapse
Otg cable works with my stock N8010 WALI6 Rom from sammobile. Am also rooted.
Sent from my GT-N8010 using Tapatalk 2
Depends on the Adaptor but check if it has a small switch on it. I have one that switches from memory card reader to usb adaptor as it has both...
Might be of help to you but might not...
Sounds like a faulty adapter to me. The icon should stay when it is plugged in.
Otg cable works with my stock N8010 WALI6 Rom from sammobile. Am also rooted.
Click to expand...
Click to collapse
mine doesnt work...
Depends on the Adaptor but check if it has a small switch on it. I have one that switches from memory card reader to usb adaptor as it has both...
Might be of help to you but might not...
Click to expand...
Click to collapse
mine is just a cable.. heres the link where i bought it : http://www.ebay.com.au/itm/USB-OTG-...AU_MobilePhoneAccessories&hash=item4abbcc741a
thats the exact cable on the image that i have
Sounds like a faulty adapter to me. The icon should stay when it is plugged in.
Click to expand...
Click to collapse
ye thats what i thought, but then again how come it gives power to my usb hub (the light on usb hub lights up as it shud) but it dsnt show on the n8010 ... should I try to return as a faulty cable ?
otg works fine
got the cheapast OTG from amazon and works fine ... tested with stock n custom roms
Get the original Samsung otg adapter, it works the best.
true that
mdalacu said:
Get the original Samsung otg adapter, it works the best.
Click to expand...
Click to collapse
about time i buy a original OTG cable
I'm having an issue with OTG as well, and am wondering if anyone has experienced similar issues:
I purchased 2 different OTG connectors from eBay
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I received them today, and decided to give them a try. Plugging the OTG connector in displays the message "USB connector connected", and in the case of the Card Reader+Hub turns the power light on on the hub. However, in both cases no matter what I plug into the OTG connector (mouse, keyboard, thumbdrive, SD card) my Note 10.1 mounts the connected device, and then immediately dismounts it, and continues doing so in an endless loop.
I've tried rebooting the Note (several times), plugging the OTG connector in and then the USB device, plugging the USB device into the OTG connector and then attaching that to the Note, disabling/enabling USB Debugging. Nothing has worked so far.
I haven't come across this issue being reported elsewhere, and I do find it odd that this would occur with two different OTG connectors in exactly the same fashion.
I am running Team Union ROM on an N8010, so it's possible it could be that. But otherwise I'm not sure.
Have the same cardreader + hub OTG adaptor, works fine with memory card and flashdrives, won't work with a HDD as it requires external power and haven't tried a mouse or keyboard.
I'm using Dr Akrims JB rom....
Has anyone with the standard 4.1.1 (German leak) firmware had success with any adapters? I almost bought one and then read about issues, so I'm hesitant to buy something if it won't work. Thank you!
Fixed the issue :d
Hey guys,
sorry for this late reply, been busy
BUT,
After posting the thread, i decided to crack open the 30 pin connector (correct me if im wrong) and see if anythings wrong. so found that it was cheaply built and a wire was not soldered. i didnt return it, instead bought a new one with a card reader and one usb port. bought 2 of them just in case. both works, its great
thank you all for participating
P.S check out my facebook page @ https://www.facebook.com/pages/Samsung-Galaxy-Note-101/126675490838688 and like.

[KERNEL] [4.2.2 CM10.1][m4xx3d0ut][kexec,ath9k,rtl8187,USBhost][5/2/13]

so i thought this kernel may be helpful to others so i decided to post it. its a recompiled version of the cm10.1 kernel with Tasssadar's kexec patch applied (thanks Tasssadar!), added support for ath9k, and added support for rtl8187.
this will allow you to use TWRP multirom and boot android or pwnie express's pwn pad backup in which ever order you prefer.
also you may allow them to share the kernel and use (for example) an Alfa AWUS036H or a TP-link TL-WN722N usb wifi adapter with both.
it will allow multiple radios to be used at the same time via a usb hub (pictured) and packet injection works as well.
this is the part that i say "attempting to crack the key to a wireless network on which you are not authorized to is ILLEGAL and i do not condone such actions"
i am a security researcher and only conduct tests on my own networks or ones i am authorized to do so on, i recommend you do the same.
also, if anyone has an ubertoothone or some an industrial bluetooth adapter let me know if they work. if they do not i will recompile and we can retest, i intend on purchasing one as soon as i have the extra funding.
please let me know how it works and ill keep this thread updated with any optimizations i make in the future. enjoy!
edit: NEW UPDATE!!! kernel now implements host mode charging (charges with usb devices connected, power injection cable required) thanks Timur!!!
also i have designed a new power injection cable with a toggle switch for host mode charging.
it allows for a hub, external nic's, or whatever you want to be powered 1 of 3 ways.
1.) with an external power source (in this case the usb battery pack) sending power only to the external devices, therefore not adversely affecting the battery life of the nexus 7.
2.) switch flipped to the other position, nexus 7 will power attached devices and work as a normal usb cable plugged into otg.
3.) both nexus 7 and external devices will be powered by external source
first pic is n7 with 2 wireless nic's, a 4 port hub, and a usb battery pack
second pic is the switchable host power injection cable
third pic is screenshot of second wireless device up and charging icon on
fourth pic is basic schematic for power injection cable (note mine has extra female usb for 1 device at a time)
then last few are some picks from airmon-ng and aireplay-ng in a kali chroot
edit: NEW UPDATE 12/21/13!!! V3 NOW INCLUDES RT2800 AND SYSVIPC! POSTGRESQL NOW WORKING IN KALI!!!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
just recompiled today with some new features. last week i whipped up a nifty new power injection cable. enjoy!
Nice
Sent from my Nexus 7 using XDA Premium HD app
Super nice! I was going to build my extra cables tonight as well, but realized I was out of small heat shrinks. I need to order more.
"What do you tell a man with two black eyes? Nothing. He has already been told twice."
the cable is working out just as expected, gonna do some testing this week (ie- plug it in and test reaver against wps and leaving it plugged in on my network and launch some reverse shells from remote locations)
m4xx3d0ut said:
the cable is working out just as expected, gonna do some testing this week (ie- plug it in and test reaver against wps and leaving it plugged in on my network and launch some reverse shells from remote locations)
Click to expand...
Click to collapse
Looking forward to hearing some results. I still need to order my ext wifi, so it will be a bit before I can get started.
"What do you tell a man with two black eyes? Nothing. He has already been told twice."
i recommend TP-link TL-WN722N. its only $20 and it uses an atheros chip. as far as i have seen it yields the best all around results, it can also operate in master mode if you want to turn your ride into a wifi hot spot
m4xx3d0ut said:
i recommend TP-link TL-WN722N. its only $20 and it uses an atheros chip. as far as i have seen it yields the best all around results, it can also operate in master mode if you want to turn your ride into a wifi hot spot
Click to expand...
Click to collapse
Sounds good. I dont need a hotsopt though. I have an old linksys router loaded with dd-wrt in my car and set up as a wireless bridge.
Once I get the tp link, I want to add it to my small parabolic setup. I want some RANGE on the go, lol.
"What do you tell a man with two black eyes? Nothing. He has already been told twice."
funny you should say that, i was gonna set up a parabolic on my roof and a yagi for my adapters and see if i could get my network from the beach (only 1 block). they are next on my list so ill run some long range test too and post results.
For my house, I just jacked up my router tx to 210 mW, from 71. I can pick it up about 2 blocks from my house with little issue. Granted, I live in a more rural area and my "block" may very well be much smaller than yours. I have also thought about making a parabolic for here. I have a large 2 story and there is already a vacant dish network stand on the peak. I have an los of about 3 miles, so I think I could really get out there.
Btw: We talked about host mode charging on Ubuntu for N7. Looks like they released 13.10 Suacy Salamander today. Gonna see if they finally got it into thier kernel.
"What do you tell a man with two black eyes? Nothing. He has already been told twice."
Wow!
Could you please add support for the rt2800 driver? This driver allows dozens of compatible usb wifi devices based on the following ralink chipsets: rt3070 (ALFA AWUS036NH), rt5370, rt2770+rt2750(ALFA AWUS051NH/AWUS052NH), rt8070 (nano sized usb wifi superior to 8192cu-based edimax 7811).
Basically, the rt2800 driver seems to have far wider hardware support, including wifi cards with dual band, 5ghz capability.
Here are a couple of lists of compatible devices:
http://wireless.kernel.org/en/users/...800usb/devices
http://wiki.debian.org/rt2800usb
The rtl8187 is great but BG only and has a tendency to get warm (even hot). The AR9271 adds N but lacks the range and still 2GHz only. Don't get me wrong, I have both of these cards (I have four 036H Alfas, two AR9271-based cards, one is tplink 722n).
looking into it, ill pick up an adapter to test with asap
Hi all, just refered to this thread (thanks), I have the pwpad nexus 7 , community free image, it flashed ok and works as it should, I have the correct TPLink wifi, and bluetooth dongle(not ubertooth) as per pwniee site, incedentally I have it on the 16g wireless only model and it states req'd 32g and 3g, it doesnt seem to matter tho... the only think holding me back so far is lack of linux knowledge(learning fast...) as its new to me. I'm trying to have the TPlink usb wifi usable in both andriod and linux software and leave the internal chip wifi asleep forever...its range isnt good and it doesnt inject etc.So I was refered here and am delighted to see your work, Ive downloaded the kernel and will now 'swat up' on proceedures to flash it, will this do what I want?
Regards
Jay
well I flashed the kernel and it hasnt allowed the android aps to 'see' or use the ext TPLink wifi dongle, the functionality is the same as my previous custom kernel from pawnie, except I now have a few errors cropping up, more research required from me I guess and a flash back to the orig kernel to I know some more.
Regards
Jay
Hi,
could you please explain how to flash it with multirom ?
I would like to continu using my Kernel with Android Roms, and your Kernel with the Pwnpad community build
Many Thanks in advance
I don't believe you can flash it with multirom
vertab7 said:
well I flashed the kernel and it hasnt allowed the android aps to 'see' or use the ext TPLink wifi dongle, the functionality is the same as my previous custom kernel from pawnie, except I now have a few errors cropping up, more research required from me I guess and a flash back to the orig kernel to I know some more.
Regards
Jay
Click to expand...
Click to collapse
I'm not sure why you needed to flash this kernel since the Pwnie PwnPad image is supposed to support the rtl8187 and ar9271.
vertab7 said:
I don't believe you can flash it with multirom
Click to expand...
Click to collapse
I understood it should work according to the OP.
m4xx3d0ut said:
with Tasssadar's kexec patch applied (thanks Tasssadar)
this will allow you to use TWRP multirom and boot android or pwnie express's pwn pad backup in which ever order you prefer.
Click to expand...
Click to collapse
Sent from my Nexus 7 using xda premium
you can flash kernels with multirom, just use the option to inject current boot sector then select the image.
i say this kernel is usable with multirom because is was compiled to support kexec system calls (google kexec). this allows one running kernel to boot into another without shutting down. its a requirement of multirom.
as for android apps seeing your adapter i dont know of any that will, other than android pcap seeing an rtl8187. you need to manipulate your adapters from the command line. best way is with a chroot. you can use them to connect to ap's using tools like wpa supplicant, and any command line scanning tool will see them as long as you manually bring the interface up.
I mistakenly thought it may give fuctionality for the android tools to also use the ext TPLink dongle, not just the liux apps, my mistake. I have a few android tools (ie: Z-Anti, Dsploit) and want them to use wlan1 not onboard wlan0.
Learning fast...
Jay
---------- Post added at 11:06 PM ---------- Previous post was at 11:02 PM ----------
I can bring up wlan1/tplink ok in a terminal window/ssh, and scan, see ap's etc. but if I fire up an android app it says not connected .... is a little beyond me, at the moment. Not sure how android finds its device... maybe a question for an android dev forum.
regards
Jay

[Q] GT-N8013 + Powered Hub + USB Stick. No Dice.

Hey all,
I've been perusing these forums for a bit as a guest and have slowly accumulated a bank of information regarding the use of usb sticks on my Note 10.1.
I have the official OTG from Samsung. However, I've never managed to get any of my USB sticks (all less than 4GB and FAT32) to work on my Note. Sometimes the 'high power' message comes up, other times nothing.
I gandered that I have to get a powered usb hub. I bought a belkin model, the following image is the hub:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The hard drive is on there to show that there's enough power running through the hub to run all of them. That little USB with the red light is the one I am trying really hard to access.
Here's the kicker. My Note 10.1 STILL doesn't recognise any of the sticks (I don't expect it to recognise the HDD).
Anyone have any ideas?
Thanks.
vika09 said:
Hey all,
I've been perusing these forums for a bit as a guest and have slowly accumulated a bank of information regarding the use of usb sticks on my Note 10.1.
I have the official OTG from Samsung. However, I've never managed to get any of my USB sticks (all less than 4GB and FAT32) to work on my Note. Sometimes the 'high power' message comes up, other times nothing.
I gandered that I have to get a powered usb hub. I bought a belkin model, the following image is the hub:
The hard drive is on there to show that there's enough power running through the hub to run all of them. That little USB with the red light is the one I am trying really hard to access.
Here's the kicker. My Note 10.1 STILL doesn't recognise any of the sticks (I don't expect it to recognise the HDD).
Anyone have any ideas?
Thanks.
Click to expand...
Click to collapse
I was able to get the 10.1 to recognize my usb drives by using the otg cable and the usb otg helper app that can be found on the Google play store. I bought a nice little 7 port powered usb hub from eBay, trying to get multiple usb devices to work simultaneously on the note 10.1 but havent been able to get ANY usb devices to be recognized by the note 10.1 through the powered usb hub.
Does anyone know of a usb hub that acts as a Bluetooth device? It would be cool to use usb devices as Bluetooth devices via some type of hardware medium.
I bought a cable from Amazon & bought a 64gb stick from Wal-Mart. My note recognizes it with no problem.
Sent from my SCH-I605 using xda app-developers app
Itbelikedat said:
I was able to get the 10.1 to recognize my usb drives by using the otg cable and the usb otg helper app that can be found on the Google play store. I bought a nice little 7 port powered usb hub from eBay, trying to get multiple usb devices to work simultaneously on the note 10.1 but havent been able to get ANY usb devices to be recognized by the note 10.1 through the powered usb hub.
Does anyone know of a usb hub that acts as a Bluetooth device? It would be cool to use usb devices as Bluetooth devices via some type of hardware medium.
Click to expand...
Click to collapse
Where exactly are you looking for your devices to show up. Also when you use the USB application and it finds your devices, can you manualy at the same time find the devices using something like es file explore.
shaun298 said:
Where exactly are you looking for your devices to show up. Also when you use the USB application and it finds your devices, can you manualy at the same time find the devices using something like es file explore.
Click to expand...
Click to collapse
I use astro or es explorer to browse through my files. If you use usb otg helper, there will be a button that says "mount" at the bottom of the screen. Plug your usb drive into you otg cable, plug your otg cable into your tablet, and then tap the mount button on your screen. Once your usb drive is mounted, use astro or es explorer to access your usb drive. If you still can't seem to find your usb drive, open up es file explorer or astro, go to the root folder, then tap on the mnt folder. You should see your usb drive in the mount folder, if you properly mounted your usb drive using the usb otg helper app.
Itbelikedat said:
I was able to get the 10.1 to recognize my usb drives by using the otg cable and the usb otg helper app that can be found on the Google play store. I bought a nice little 7 port powered usb hub from eBay, trying to get multiple usb devices to work simultaneously on the note 10.1 but havent been able to get ANY usb devices to be recognized by the note 10.1 through the powered usb hub.
Does anyone know of a usb hub that acts as a Bluetooth device? It would be cool to use usb devices as Bluetooth devices via some type of hardware medium.
Click to expand...
Click to collapse
That app if for rooted devices. I haven't rooted my Note yet.
I will do so in some time, but I want to figure out why this is happening. I mean, logic dictates that once the power is externalized, all the Note has to do is read the USB.
Yet, mine doesn't even manage to do that.
Are there any specific brands of USB flash drives that are more successful?
Reboot your Note.
Put the USB stick in the OTG adapter, and stick the adapter in the Note.
Does a message "USB Connector connected" appear?
But no USB device (you should have a USB symbol in the status line)?
Try a keyboard or a mouse: still no device?
What ROM are you using (Settings > About device > Build number)?
I have this USB connector that works fine on my unrooted Note 10.1, it lets you connect a single USB thumb drive. I do not believe you can get a USB hub to work on an unroot Note 10.1. As stated in post 7 you get better results if you connect the adaptor before starting tablet or connect adaptor and then restart Note 10.1.
You can find my adaptor here for $5.99 US http://www.ebay.com/itm/OEM-SAMSUNG-USB-CONNECTOR-P30PIN-EPL-1PLOBEGXAR-FREE-SHIPPING-/111160387393?pt=US_Cell_Phone_PDA_Cables_Adapters&hash=item19e1ace741
Sorry, I mustn't have use the term 'cable'. I have the same adapter as #8. Still doesn't work on all my sticks.
I will try the solution you have posted #7,

[Q] simultaneous slimport and otg, not possible?

I had visions of building a dock that would connect the nexus 5 both to:
1. a monitor (or tv)
2. usb hub (allowing access to keyboard, mouse, ext hd, etc.)
but...
my couple of hours of research is looking like this isn't possible, as there isn't a way to run slimport and otg hosting simultaneously. (at least my poking around the nexus 4 and nexus 7 forums has yet to bear fruit). in fact one slimport paper i found describes how pins 2, 3 and 4 would toggle between the two (usb otg and slimport). I'm not confident how such switching would be happening "on the fly".
anyone know of any "successful" threads I'm missing? or is the vision screwed from the go?
Thanks!
*BUMP*
Anyone have a copy of that service manual that leaked? I would love to know what it has to say about simultaneous USB OTG and HDMI, if anything. I know GS3/4 can do this because they have a special 11 pin USB/MHL connector but I can't find anything about USB OTG & HDMI at the same time on SlimPort....
Thanks,
Kevlar
KevlarTheGreat said:
*BUMP*
Anyone have a copy of that service manual that leaked? I would love to know what it has to say about simultaneous USB OTG and HDMI, if anything. I know GS3/4 can do this because they have a special 11 pin USB/MHL connector but I can't find anything about USB OTG & HDMI at the same time on SlimPort....
Thanks,
Kevlar
Click to expand...
Click to collapse
Here's a relevant block diagram:
pau11y said:
I had visions of building a dock that would connect the nexus 5 both to:
1. a monitor (or tv)
2. usb hub (allowing access to keyboard, mouse, ext hd, etc.)
but...
my couple of hours of research is looking like this isn't possible, as there isn't a way to run slimport and otg hosting simultaneously. (at least my poking around the nexus 4 and nexus 7 forums has yet to bear fruit). in fact one slimport paper i found describes how pins 2, 3 and 4 would toggle between the two (usb otg and slimport). I'm not confident how such switching would be happening "on the fly".
anyone know of any "successful" threads I'm missing? or is the vision screwed from the go?
Thanks!
Click to expand...
Click to collapse
From my understanding this is not possible. However, it isn't necessary either since the slimport protocol allows for simultaneous transport of data, audio, and video.
The real question isn't whether we can do both USB otg and slimport at the same time, but rather, when will a slimport dock with a USB hub be released??
Checkout this article:
http://web.luxshare-ict.com/en/NewsDetail.php?ctype=1&autono=11
Edit:
Also see:
http://en.wikipedia.org/wiki/DisplayPort#SlimPort
Notice that it says "support conversion to DisplayPort." If you read up on DisplayPort you will understand more on the potential of slimport. I can't wait until the next generation of smart phones are released with USB 3.0 and the respective slimport iteration.
Hi,
I'm interested in connecting keyboard and display at the same time. You said "Next generation with USB 3.0". If I connect my Nexus 5 to my computer it sais "this supports USB 3.0, I just have to plug it in an usb3 port. I did, but maybe a special cable is neccessary. It seems like our Nexus supports USB3.
When I said USB 3 I was just referring to the fact that it theoretically could handle a higher bandwidth of data over slimport. I didn't realize the nexus 5 was USB 3.0 compatible. In any case the slimport dock would have to be designed to utilize the 3.0 spec and that won't happen unless the slim port standard supports USB 3. Whether or not it does already support it, or if plans exist to upgrade the standard is unclear.
Sent from my Nexus 5 using xda app-developers app
---------- Post added at 04:14 PM ---------- Previous post was at 04:09 PM ----------
Brom2 said:
Hi,
I'm interested in connecting keyboard and display at the same time. You said "Next generation with USB 3.0". If I connect my Nexus 5 to my computer it sais "this supports USB 3.0, I just have to plug it in an usb3 port. I did, but maybe a special cable is neccessary. It seems like our Nexus supports USB3.
Click to expand...
Click to collapse
You can currently use wireless display and USB otg simultaneously. No special docks required... In fact you could use wireless display and a Bluetooth mouse and keyboard and get the desired functionality without having to plug anything into the phone.
Sent from my Nexus 5 using xda app-developers app
I am almost positive when I faced the same problem with the nexus 4 analogix had plans of creating a adapter that covered this, I will defiantly start researching this more once I get my N5.
.....
this article echos michaelmab88's statements, basically saying simultaneous otg-slimport can't happen "now" ("now" being last May when the article was written), but that such things should be expected "next year".
Does anyone know which slimport chip version we (nexus 5 users) have? been having trouble tracking that down.
Analogix's latest Slimport chips (the ANX7808) are, for example:
DisplayPort 1.2, MyDP 1.0, HDMI 1.4a
...compliant, and refers to things like "Seamless switching between USB and MyDP 1.0", which of course may just mean "when you swap plugs".
EDIT:
It is the ANX7808.
Here's a nice breakdown of nexus 5 components.
and..... poop.
The ANX7808's detailed product info pdf states:
"The same connector on the device can be used for USB when a SlimPort® receiver is not connected."
So I guess it's looking like, unless some clever Slimport trickery is conceived, Miracast is the "out of the box" way to go get the video data to the monitor and have simultaneous otg hosting.
pau11y said:
and..... poop.
The ANX7808's detailed product info pdf states:
"The same connector on the device can be used for USB when a SlimPort® receiver is not connected."
So I guess it's looking like, unless some clever Slimport trickery is conceived, Miracast is the "out of the box" way to go get the video data to the monitor and have simultaneous otg hosting.
Click to expand...
Click to collapse
pau11y,
We now know that we can't use the USB functionality whilst using SlimPort for DisplayPort video, however, can the Nexus 5 use the USB channel that should be possible over DisplayPort?
As I've replied to farmerbb in this post, I'm very keen on a solution for the Nexus 5 where I can use a wired display, keyboard and preferably mouse for a Bring Your Own Device (BYOD) functionality where the office worker should only need their Nexus 5 (or other phone) to do all their work (with the work place only needing to supply the MyDP adapter, monitor, keyboard and mouse).
DisplayPort 1.2 even supports multiple displays (by MST) and that would be great if standard Android could grow to support multiple monitors and simultaneous apps in use (ala Samsung Galaxy Note 3).
I'll have to read up on MyDP 1.0 to see if it excludes any functionality of DisplayPort 1.2 (e.g. the USB channel).
Regards,
Matt
The padfone infinity kind of does that between the phone and tablet station wich are connected with a micro usb port.
The tablet station has a screen, a touch screen, speakers, light sensors, microphones, front camera, and all this works through a micro usb port.
I don't know what protocol it exactly uses, but I know it supports slimport, and usb host.
So I wonder what magic Asus used to managed to output fullhd video on the tablet, and still manage to redirect devices inputs and outputs to the phone.
When docked in the tablet, we can't use the tablet micro usb port for usb on the go.
Guys, would something like this work?
http://www.ebay.com/itm/For-LG-G3-G...448165?hash=item1a0294aea5:g:u~IAAOSw-vlVlj7V
It has all the ports needed, but I don't know how it behaves... My guess is that only one at a time would work, but I wonder what would happen if you plug the HDMI in and after that a USB keyboard for example.
Nice. I would like to see Ethernet and displayport too.
Today I would desire to stick to Samsung:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://www.amazon.es/dp/B00FXSVVNE/ref=twister_B00DS4F1E0?_encoding=UTF8&psc=1

OTG + Charging using USB ACA (Accessory charging adaptor) on my Moto G (XT1032)

I was interested in getting USB OTG + Charging to work, and discovered that an "Accessory charging adaptor" was designed to serve such a purpose, the adapter is described in "Battery Charging Specification" Revision 1.2.
Here is a simple diagram of such an adapter (this design does not fully comply to the specifications):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The code in 'drivers\usb\otg\msm_otg.c' suggests that the device can operate in the following 3 modes:
ID_FLOAT: Configure device to act as peripheral and allow charging if VBUS is present, else move it to LPM (low power mode).
ID_GROUND: Configure device to act as host and supply VBUS.
ID_A: Configure device to act as host and don't supply VBUS. In this state the device can charge as well.
So I built the adapter, and compiled my XT1032 kernel with CONFIG_USB_MSM_ACA,
unfortunately, (as far as I can tell) the hardware cannot detect the 124K resistor (so it does not automatically switch to ID_A).
Plan B:
It is possible however to modify 'msm_otg.c' and force ID_A (OTG + Charging mode), I was able to find an automatic method that works for me:
If you connect the ACA cable to a power source and a peripheral device and THEN connect your phone, the adapter will be detected as USB_PROPRIETARY_CHARGER (a dedicated charging port shorts the D+ and D- pins, and a flash drive does not),
so I simply assumed that USB_PROPRIETARY_CHARGER should activate ID_A.
I tested the patch (attached) using two Moto G XT1032 phones:
One manufactured in 2013-12-19 and have BOOTLOADER = 0x3 (with fastboot 41.13)
The other was manufactured in 2015-02-13 and have BOOTLOADER = 0x2 (with fastboot 41.18).
(the latest BOOTLOADER version is 0x4 with fastboot 41.1A, you can read the BOOTLOADER fuse using 'fastboot oem read_sv')
Other than the bootloader and MF date, the phones are Identical, same kernel, same system.
oddly, each behaved differently with the modified kernel and ACA cable:
With both phones, most USB peripheral devices were able to work when connected through a cheap (unpowered) USB 2.0 hub, this is the only hub out of the 3 tested that worked properly with the ACA cable.
The newer phone (but not the older one) had connectivity issues when devices were connected directly to the ACA cable.
To sum it up: I was able to use USB devices and charge at the same time using this patch.
maybe using two power adapters would have solved some of the minor issues I encountered (e.g. I could see the USB hub LED brightness fluctuate in some cases - it's not supposed to happen)
p.s. Using this patch, the phone exits ID_A mode once the charger is disconnected, and will provide power to OTG devices, so the patch does not interfere with the regular operation of the phone (unless you happen to have a real "USB_PROPRIETARY_CHARGER").
Components for the adapter:
USB 2.0 Male To Female Extension Cable
124K Ohm resistor (optional)
Micro USB Male to Female Extension Cable
Update:
I have bought the Acasis H027 and together with my patch I can use USB peripheral devices (connected to the hub) + charge at the same time.
p.s. USB Device Info shows the connected USB devices
This is great info! I'm a complete rookie when it comes to developing but I've jumped in. I'm trying to get my XT1060 (2013 Motorola Moto X Verizon Developer Edition) to do OTG and charging at the same time. I've downloaded the source from Motorola (here) and tried to enable ACA in the menu but I couldn't get it to compile. I then tried using source from @tycoo and @army9000 and their modified kernel (here) to enable this and recompile but again, I'm getting errors. I must be doing something wrong, either not enabling other items in the menuconfig that are required or I'm missing a lot more of the actual "meat" of the mods and just enabling an item in menuconfig. I know I've got my Ubuntu and toolchain all set up right because I can successfully recompile (using msm8960_defconfig only for some reason, msm8960-perf_defconfig and full_msm8960-perf_defconfig fail compile, some error about "this error is dumb" and acpulock-krait?) the source kernels (after a lot of work!) Think you could help me out? I'd greatly appreciate it.
I have a Nexus 7 tablet running Timur's USB Host kernel and a custom made USB OTG cable with power spliced it. Works great on the Nexus 7 but need it for the Moto X!
Unrelated to this topic, also trying to enable CIFS filesystem so I can mount a Windows network share in the device. Can't get that to work either I thought just enabling it in menuconfig.
Thanks,
Mike
Hey Mike, Did you unpack an existing boot image using Android Image Kitchen and replaced the kernel binary (zImage) with the one you built? that's the way to go.
Even with the XT1032 I'm having a few compilation errors that needs fixing due to different build environment, use the official source and search for solution to the compilation issues.
You don't have to change anything in the menuconfig at all.
Yes, I'm using the zip file from @army9000 kernel and replacing the zimage and modules to flash my recompiled kernels, works well!
I'm using source, both stock from Motorola as well as the one from @army9000, to build from. I'll have to see if I can figure out a solution with the info from your patch.
Yes! I can't believe my dumb arse got this working! Thanks so much @tal.aloni for your patch. I had to tweak it and I just manually edited my msm_otg.c file because I was afraid the patch would work with fuzz because the reference lines weren't the same. Like you said, I didn't change a single thing in menuconfig, just tweaked msm_otg.c and recompiled and flashed! The one thing I noticed is that it says its charging on USB, not AC. Hopefully the device doesn't slowly drain the battery due to lack of charging current, will have to troubleshoot. Thanks so much! And thanks @army9000 and @tycoo for the source to work with!
I have no idea how to use git and repositories, but credit goes to the above XDA members. Attached is the modified msm_otg.c file that has @tal.aloni's patch in it but modified for the Verizon Wireless XT1060 Developer Edition Motorola Moto X that I used to compile @army9000's 5.1 kernel (here).
Also, no idea why, but this seems to be the "process" for me to get my Moto X to properly do OTG and charging.
1. Boot up the Moto X
2. With powered OTG cable NOT powered, plug micro-B USB into phone
3. Plug in OTG device (usb-to-ethernet)
4. Plug in ethernet cable to adapter
5. NOW plug in USB power charger for power
6. Unplug micro-B USB from phone
7. Plug in micro-B USB to phone
8. Phone should have ethernet AND be charging (USB)
FYI, I'm also trying to get CIFS support working with this same kernel in the post for that (here).
OTG+CHARGING at same time
dear
tal.aloni and Mike7143,
thanks for your post and reply,
i am trying to do the same,
I am using
Kernel: github.com/akhilnarang/whyred
it does not has /usb/otg/ folder, so where to look for "otg+charging"
i try and test otg+charging on redmi note 4 (codename:MIDO) on lineage14.1
but i did not change anything in kernel,
just using instructables.com/id/DIY-Cable-to-Use-OTG-and-Simultaneously-Charge-the/
and it works fine,
*weblink is not allowed so i remove www
please guide.
thanks and regards.
jacob19 said:
dear
tal.aloni and Mike7143,
thanks for your post and reply,
i am trying to do the same,
I am using
Kernel: github.com/akhilnarang/whyred
it does not has /usb/otg/ folder, so where to look for "otg+charging"
i try and test otg+charging on redmi note 4 (codename:MIDO) on lineage14.1
but i did not change anything in kernel,
just using instructables.com/id/DIY-Cable-to-Use-OTG-and-Simultaneously-Charge-the/
and it works fine,
*weblink is not allowed so i remove www
please guide.
thanks and regards.
Click to expand...
Click to collapse
I don't know why there's no /drivers/usb/otg folder. Paging @akhilnarang to the thread, perhaps he can help you? Heck, maybe he can help improve the hack job I did for the XT1060 so my Wifi works and maybe CIFs as well! Doesn't hurt to ask!
thanks for quick reply dear,
I try and test
github.com/LineageOS/android_kernel_xiaomi_msm8953/tree/cm-14.1
for MIDO(xiaomi redmi note 4), it also has not usb/otg folder,
i did not change anything in kernel, but still it supports charging+otg ,
but then also it works,
Dear Sir,
I am using MSM8953 and Android 9, that I could not use ACA mode to charge and USB data transfer at the same time. Is there any comment for me?
Thank you.
Hi!
Is it possible to somehow enable that ID_A mode in kernel by just passing whatever parameter to kernel via terminal command line?

Categories

Resources