Generic USB-Slave to USBhost converter - General Accessories

Quite a lot PDAs supporting USB-host, but for only a few an adapters or appropriate cables from the manufactures are available.
As these devices support USB-Slave as well I would like to know if there's a way to convert the USB male connector (used as slave e.g. for sync with the PC) to a USB-host female in order to connect accessories (keyboard, mass-storage devices...).
According to wikipedia the configuration of the pins shouldn't differ too much for slave and host mode.
Pls. see attachement, that's what I found regarding this question. It's a picture showing a similar configuration (as new user I'm not allowed to post external links, thanks to ab21cn
from xdaflameusers)
But it's a male-to-male converter and furthermore a converter from "big usb" to micro (mini?) usb. As there're already standard converters for the different sizes of USB I would like to start with the biggest size and to buy the appropriate converter as needed.
Does anyone has a circuit diagram or any other idea for such a generic converter?

Try adapters made for Nokie N800 series
I had a Nokia 770 a couple of years ago. It came as USB device only with mini USB connector, but online I found how to upgrade the software to USB host, and use a cable adapter. The plans I found online involved a 9V battery and 5V voltage regulator inside a metal case (they used a penguin mints case). I built one of those, even using the penguin mints case, and it worked fine.
I have never seen any indication that my HTC phone would work the same, but I am guessing that it might, if the USB host drivers are available.
Google couldn't locate the penguin mints-based converter I originally found, but this seems to be a similar circuit diagram.
Edit: Found it!

thx
thanks for the links. but i'm a little bit afraid of connecting something to my pda which has an own power supply, the risk of a burn-out is given. i've got a nautiz x5 with 4400mA battery which should have enough energy to supply usb-power to connected devices.
I think I'm going to contact the manufacture of my device, maybe this works for me, but a generic adapter would be of use for anyone.
the chips used for usb should be of the shelf as i don't think each manufacture develops an own logic for usb... but this doesn't imply that the cabeling is standard too.
what the heck makes manufactures providing features in their products which the users can't take advantage of?

do you mean using keyboards and so on on ppc?
because it's so simple if ur phone has a mini usb plug (the one u plug the power adapter into). i found a cable that plug into that and plugs a normal usb cable in on the other side and blam been typing on my phone using a desktop keyboard. it depends how much power your device requires however. i wish there was some software to feed a video line out so i could watch videos on pair of vizors that wud be rad. all i can find is a mini-sd card converter now whats the point of that. guess i need an itouch

yes
primary i want to connect usb mass storage devices to my pocket pc. gamecontroller or keyboard would be a good thing too.
my devices doesn't have a standard usb plug, the only thing i got is a adapter from the properitary plug of my device to standard usb male connector, but this is meant for usb-slave use only.
the underlying qeustion is, if there's a way to convert usb-slave to usb-host using the same pins. if it needs an additonaly pin then i don't see a way to convert it as i don't know anything about the pins cableing of my properitary plug.
a week ago i found an adapter which was able to convert the male usb to another male usb... but it didn't work.
the problem is compareable to datatransfer between two pcs via usb - it's possible, but only using properiatry hardware and drivers...
so i think there's no way to solve this problem in a generic way.

out of interest, do you already have windows CE drivers for the device to act as a host and mass storage? I wouldnt mind them if you can point me somewhere..

how to check if my htc (touch2) ca use usb host?

Related

Mini USB Accessories

I'm not very up on how USB works. Is it completely standard?
I was just wondering if there is a mini-usb full-sized keyboard or any other accessories that might work with the universal?
Do PDA's just need drivers and an interface and they can run anything like a PC? With the mini USB port on the Universal is it likely that any mini-usb accessory could work? I saw somewhere that it works with an IBM external HDD, would this also apply to the ZIP disks and stuff?
This is interesting BTW: http://en.wikipedia.org/wiki/Universal_Serial_Bus
you can get cables which have mini usb in one end and any type of usb connector in the other
yes pda's require drivers just like pc's
but that may not be enough
if the pda dont support host mode it would be like trying to connect your
external harddisk with your usb mouse
http://forum.xda-developers.com/viewtopic.php?t=26742&highlight=usb+host
http://forum.xda-developers.com/viewtopic.php?t=28477&highlight=usb+host
Bummer
Oh well.
I'm quite happy if someone wants to delete this thread by the way.

[Q] Desire HD USB OTG Host cable

Hi,
I've been wanting to hook up my desire hd to usb hosting and have not been able to find a cable for it.
I was wondering would it be ok if i connected a micro usb (male) to usb b (printer version) (female) adapter
to a,
standard printer cable with usb female at the end?
This would result in one end being a micro usb male and the other end a female usb
I look forward to your answers
Thanks alot for reading
That probably wont work.
I in fact saw an article yesterday, but can't recall the link. (Will look now).
IIRC, you need to modify the USB cable somewhat to get the DHD's USB port to detect an OTG connection.
Edit:
Here we go: http://gigaom.com/mobile/how-to-add-a-usb-keyboard-to-an-android-phone/
I think if the software supports usb host mode, with a 'micro usb type a' to 'usb type b' cable you can connect to a usb device. That is if the DHD is equiped with 'micro usb type ab' receptacle.
oh wow, ok thanks ever so much!!,
however, i just need to confirm what three cables you need so i can go out and buy them, i need:
Car charging cable (which one is this?)
Micro-usb cable (is this with the microusb male on one end and a standard usb male on the other end?)
USB extender cable (is this with one usb male and usb female on the other end?)
thanks
leppie said:
That probably wont work.
I in fact saw an article yesterday, but can't recall the link. (Will look now).
IIRC, you need to modify the USB cable somewhat to get the DHD's USB port to detect an OTG connection.
Edit:
Here we go: http://gigaom.com/mobile/how-to-add-a-usb-keyboard-to-an-android-phone/
Click to expand...
Click to collapse
oh wow, ok thanks ever so much!!,
however, i just need to confirm what three cables you need so i can go out and buy them, i need:
Car charging cable (which one is this?)
Micro-usb cable (is this with the microusb male on one end and a standard usb male on the other end?)
USB extender cable (is this with one usb male and usb female on the other end?)
thanks
I have no idea really, but if you are successful, let us know
I'm just having trouble understanding what cables are needed.
On the website you gave me, it says i need:
a car charging cable, a micro USB cable and a USB extender cable.
Is this effectively two micro usb cables and a USB extender cable?
or does one HAVE to come from a car charging kit?
please help!!
thanks
Found some more info @ http://www.tombom.co.uk/blog/?p=124
maybe this will work. www dealextreme com/p/micro-usb-on-the-go-host-otg-adapter-pair-50774
destructor542 said:
maybe this will work. www dealextreme com/p/micro-usb-on-the-go-host-otg-adapter-pair-50774
Click to expand...
Click to collapse
Nice find! I did see the mini one only
Gonna order and try it out. No great financial loss if it does not work.
Obviously we will need a USB Host module for the kernel if not already present. Will check tonite.
i've finally made my host cable!!!
i now need micro-usb dongle host module. Is this where you have to get hold of a car charger and get the end of it and unsolder bits?
The USB Host module is software. It is loaded by the Linux kernel.
ok well i need to get that too.
Also, whats the bit with the car charging cable? what that for?
I'd be really interested in this as well. Would be awesome if i could just connect a usb drive or my camera to my phone to copy data.
So does anyone know if a host driver is available for the desire hd.
I really have no idea how it would work, but it should, as loads of tablets are able to use 3G-Sticks to connect.
Today I recieve my USB Host adapter cable for the DHD.
When I plug it into the DHD and connect a USB Hub the car panle ("Auto Bedienfeld") starts.
Connecting a USB Keyboard to the USB Hub doesn't show any impact. But this is what I have expected. Next I try to integrate the patch from sonic74 to a kernel for the DHD.
http://sven.killig.de/android/N1/2.2/usb_host/
At the moment I use Android Revolution HD 2.0.9
Any progress?
I really like the USB host future on my Desire HD,
I want to connect my USB Drive to my DHD if this is possible? So i have 16GB More storage if needed ;D
I've ordered the converter thing from dealextreme, someone that could make a flashable zip to enable usb host functions?
Was also quite interested on this.
My wish is to connect my dSLR to the phone, and move all jpgs/nefs from there to a internal card. Or copy, and use the device for better visualisation.
As the camera has its internal battery, power shouldn't be a issue. It would be awesome
I am still working on this.
At the moment it is working for a short time, but then there a same errores.
This meens it should be possible, but same more research must be done.
My Kernel is based on the BUZZ 1.3.7 Kernel, and following patches:
http://forum.xda-developers.com/showthread.php?t=694427
http://forum.xda-developers.com/showthread.php?t=751535
Here is a dmesg log:
my log file was to big
Quick Q: What did you connect? Or you didn't connect anything ?

[Q] USB host? Is it possible with the a100?

Hello friends, I am new to this forum, but certainly not new to the tablet world. I purchased the iconia a100 a few weeks ago and I must say it is a superb tablet in almost everyway. That being said, I am trying to come up with a solution for the lacking usb host on this tablet. I am certainly not a dev, but I am wondering if there is anything in the works for a working usb host? Does anyone know if acer has any plans to offer an adapter or even a different docking station with the usb host working from the 40 pin? If anyone has any ideas or would like to start a project i will be glad to help in anyway I can. While i was researching this usb host problem i see that there was a very sinilar situation with the galaxy which has since been resolved. Any suggestions? Thanks
Not yet possible, but you can pretty much count on it to be baked into a custom ROM when we get the ability to fully unlock and root this device. Root is already possible, and done. Unfortunately, we cant really do much development on it right now due to the encrypted bootloader. Most devs are waiting for the ics update in January to get the ball rolling on tweaks and hacks to the a100.
Sit tight, they'll have you up and running in no time
ummmmm............ could you repeat that?
This is also #1 on my wishlist. However, I don't know if that is even possible with a custom ROM; it requires the hardware to support it and I don't recall seeing any teardown that states that it would be possible.
I've seen it done in various phones, but don't know if its been posted on any here, but I'm sure a search on the forum would help find them. Its a matter of reconfiguring the port in the programming and getting an adapter from micro USB to standard USB.
But don't quote me on any of this, I could be mistaken with other devices. There has been talk about USB hosting on the a100 before.
ummmmm............ could you repeat that?
Yes, you would need something called an OTG (on the go) adapter. The hardware in the device has to support host, so it is not JUST software.
I can confirm that i have tried the otg adapter as well as other adapters...and it only works as slave. I would just like someone to confirm that usb host is possible [that the harware supports host capabilities]. I am just glad to see there are more people interested in fixing this problem as this tablet is superfast and top quality in every other way in my opinion. Thanks again
Maybe something comes out of
http://www.circuitsathome.com/mcu/programming/android_adk_compatible_usb_host_library_release
I ordered an OTG cable and once it comes I will take a look at enabling USB host mode.
I am guessing that the hardware supports USB host, but will need a kernel module and some scripts to enable it.
I also suspect that the USB port will not supply power to an attached device. If this is the case, the workaround is to attach a powered USB hub to the OTG cable.
Crossing my fingers, and waiting for that OTG cable to come in the mail...
flar2 said:
I ordered an OTG cable and once it comes I will take a look at enabling USB host mode.
I am guessing that the hardware supports USB host, but will need a kernel module and some scripts to enable it.
I also suspect that the USB port will not supply power to an attached device. If this is the case, the workaround is to attach a powered USB hub to the OTG cable.
Crossing my fingers, and waiting for that OTG cable to come in the mail...
Click to expand...
Click to collapse
USB host is enabled in the kernel. Hardware does support USB host.
Acer left it off the board entirely, so I doubt much can be done without hardware modding, which I'm all for lol.
Tapatalked from my Galaxy S II.
Sounds grim if the hardware connection is not there, are we sure that the port is just not supplying power?
do the kernel modules load? (e.g. usb-hid, usb-storage)
Has anyone actually tried to:
a) insmod the correct modules
b) force change to host mode (the device probably has to be either slave or host, not both at once)
c) connect something (e.g. a mouse or a thumbdrive) through the otg cable and a powered usb hub?
At least I won't have to build a kernel to test this out.
flar2 said:
Sounds grim if the hardware connection is not there, are we sure that the port is just not supplying power?
do the kernel modules load? (e.g. usb-hid, usb-storage)
Has anyone actually tried to:
a) insmod the correct modules
b) force change to host mode (the device probably has to be either slave or host, not both at once)
c) connect something (e.g. a mouse or a thumbdrive) through the otg cable and a powered usb hub?
At least I won't have to build a kernel to test this out.
Click to expand...
Click to collapse
I know this comes up every now and then, I really dont know how far anyone gets before giving up. Feel free to try out whatever you want, while I don't care about USB host I know a lot of people do and would love an update on any progress anyone can make. Even if its just things that don't work.
Acer is generally lazy and cheap, we use the same kernel source as the a500 which has host, which is why we also have it. It could be modules, though I doubt its so simple. Also a powered hub would be needed, there is no power supplied to the port that anyone has found. This could be remedied with some hardware work I'm sure. The hub would also need to be one way, meaning not dumping power to host as I doubt the a100 will take it and without protection would likely suffer damage if the power pins are even hooked up.
The system itself runs at 12v though I'm sure there's a 5v rail someplace but if it can support powering anything past maybe a flash drive is unknown.
Take a visit to iconia-dev on free node, they'll know more of this then probably anyone here does lol
Tapatalked from my Galaxy S II.
The A500 does not implement USB otg, but rather a standard USB port. In other words, USB otg is not necessary for the A500 since it has a standard port. The USB otg standard allows a the port to act as both master and slave depending on the connection. In the A100 service manual, the schematic shows only one connection to the chipset (client), host is unconnected, which could be a problem. However, it is known that the Tegra 2 can support otg connections. I'm not certain, but it may be possible that by shorting pins 4 and 5 in the micro usb connector (ie, using an otg cable) and with the proper kernel level support, the A100 could still act as a USB host, albeit with no power supply to the micro USB port.
I'll continue to investigate this once I have a chance to build otg support into the kernel and recieve the otg cable.
flar2 said:
The A500 does not implement USB otg, but rather a standard USB port. In other words, USB otg is not necessary for the A500 since it has a standard port. The USB otg standard allows a the port to act as both master and slave depending on the connection. In the A100 service manual, the schematic shows only one connection to the chipset (client), host is unconnected, which could be a problem. However, it is known that the Tegra 2 can support otg connections. I'm not certain, but it may be possible that by shorting pins 4 and 5 in the micro usb connector (ie, using an otg cable) and with the proper kernel level support, the A100 could still act as a USB host, albeit with no power supply to the micro USB port.
I'll continue to investigate this once I have a chance to build otg support into the kernel and recieve the otg cable.
Click to expand...
Click to collapse
Thanks for that, but one thing, its already in the kernel. However Linux society and/or waydownsouth would know more about what's in there, I just know it isn't blocked there. Modules etc I don't know. I look forward to seeing some progress on this topic.
Tapatalked from my Galaxy S II.
Pulled the kernel config from my tablet, you are correct, otg support is built into the kernel.
I'm using ezterry's kernel, almost everything is built in, there are only a few modules that have nothing to do with this.
I tested with an OTG cable, which shorts pins 4 and 5 in the micro usb connector. As expected, this did not enable USB host mode.
I tested wtih 5V going into the micro usb connection, as some of the non-powered devices need that voltage applied to activate the port, still nothing. (and no damage!)
I added a few other things to the kernel, the dmesg output changed slightly compared ezterry kernel
When connecting otg cable with 5V, dmesg shows:
tegra-otg tegra-otg: SUSPEND --> PERHIPHERAL
vbus connected, lock wakelock
tegra-otg tegra-otg: PERHIPHERAL --> SUSPEND
tegra_usb_phy_power_off(inst:0), phy->regulator_on: 1, line : 2754
tegra_usb_phy_power_off(inst:0), tegra_get_revision(): 0
vbus disconnected, unlock wakelock
android_work: did not send uevent (0 0 (null))
In the possibility that USB host is not possible on the micro usb port, a hardware mod could be done. There are points for a mini PCI-E connector on the motherboard (this is where the 3G module would be for A101). Solder wires to pins 36 and 38 for USB data, 4 for ground and connect them to a usb port. The PCI-E only gives 3.3V, but power could be supplied by a powered hub instead. There is even space inside the unit to mount a micro usb connector on the end with the power button.
The main roadblock is that the solder points are on the back side of the pcboard so you have to fully disassemble the unit to remove the motherboard. It would actually be fairly easy to do if the points were showing when you remove the back cover.
I don't think I have the nerve to actually try this.
flar2 said:
In the possibility that USB host is not possible on the micro usb port, a hardware mod could be done. There are points for a mini PCI-E connector on the motherboard (this is where the 3G module would be for A101). Solder wires to pins 36 and 38 for USB data, 4 for ground and connect them to a usb port. The PCI-E only gives 3.3V, but power could be supplied by a powered hub instead. There is even space inside the unit to mount a micro usb connector on the end with the power button.
The main roadblock is that the solder points are on the back side of the pcboard so you have to fully disassemble the unit to remove the motherboard. It would actually be fairly easy to do if the points were showing when you remove the back cover.
I don't think I have the nerve to actually try this.
Click to expand...
Click to collapse
Well if you want to play it like that, you can use a mini pci-e > usb adapter, which is also available with and without sata too lol. It would, maybe, depending on the board used, even line up with the sim slot, so minimal case cutting would be needed to make it accessible for usb. Straight drop in for an A101, though we lack the actual slot for it. Might be something I'll try later on.
Edit: I forget, does the sim slot line up with the pci-e slot? Been awhile since I saw the inside of one, so I may be wrong on that point.
There isn't an actual mini pci-e connector in my tab, it's just the solder points, so you would have to solder on a connector to use the adapter. The sim slot doesn't line up. But it looks like the empty sim slot is not high enough for a micro usb port to fit anyway.
I tried the hardware mod. Unfortunately the mini pci-e is not hooked up to the system. In other news, the motherboard is very easy to remove and reinstall.
there is a ROM in which they have implemented the usb otg?
Inviato dal mio Galaxy Nexus con Tapatalk 2

[Q] Flash Drive with MicroUSB connection (not USB)

I can connect USB sticks to my phone using a USB On The Go (OTG) cable which is basically a microUSB to USB adaptor.
That's great but I am looking cleaner solution. Is there a flash drive (such as USB stick) that has a microUSB male connector and can plug straight into the microUSB socket of my phone. There are plenty of adaptors and microUSB card readers but no microUSB flash drives, it seems.
I have seached all over the internet to no avail. has anyone come across such a thing?
bump, i really want one of these
BUMP!!!
I imagine a tiny flash drive where you can remove the USB plugin/cover, and underneath, see that it is meant to connect to a microUSB port.
Would be awesome for Android (Nexus, Skyrocket, etc...)
I found this thread since I am about to get my first nexus device but have literally never thought about this before now. That may give you some indication of how small the market is since most phones come with expandable memory. However, when I consider how many random ass devices and connectors you can find strolling through an electronics store, I honestly can't understand why someone hasn't built this yet.

[Q] USB flash drive connector

Hi, not managed to find any info regarding whether the OPO can act as a USB host using the micro-USB connector and an adapter (micro-USB male to full size USB female) cable.
I've an i9300 adapter cable - generic brand, not Samsung - which works perfectly on my S3, can connect USB flash drives and it also powers 2.5" disks without any problem.
Don't want to risk plugging the adapter cable into the OPO unless I'm sure its wired correctly, and havent found any OPO adapter cables for sale anywhere...... so wondered if anyone knows the pin assignments of the connector, or has tried an external disk adapter cable?
Give it a try and see what happens, worst thing that can happen is that it won't work, I have made one a few years back and then replaced it with a Nokia OTG cable and works fine (I've used this cables on all the phones on the signature). I don't see why it will be wired differently from any other, companies work with "standards" so things like this are compatible across all phones, unless its Apple.
Thanks for the reply... you've solved my problem, I hadn't included "OTG" in my search terms. Oneplus do have a cable listed, and other sellers list a single cable claiming compatibility with just about all phones - including i9300 and Oneplus.
Plugged it in and it works fine with a FAT-32 card Doubt whether ext / reiserfs support is there, but may have been compiled in to a custom kernel.....
Doesn't manage too well where disks have more than one partition - if the first is reiserfs and the second FAT32 it fails to mount. Assume first partition must be FAT

Categories

Resources