[Q] Homemade USB hub? (no soldering!) - HD2 Ubuntu Q&A, Help & Troubleshooting and General

I posted this on Plopper's thread here(http://forum.xda-developers.com/showthread.php?t=923864) but thought it might be better here as I might get a quicker reply
"I have bought a 4 way USB hub which has a usb socket on its input lead. This can be plugged into your PC or into a usb mains charger or usb car charger.
If the input lead is plugged into one of the four output sockets and the lead is cut open and the red and black wires are exposed, a 2A 5v charger can be connected to these wires by twisting together and taping.
This then powers both sides of the hub with 2A supply and by-passes the protection.
It does sacrifice 1 output socket but HD2 +keyboard+mouse= happy Ubuntu
Will this work?"
I am dying to try it but thought I'd check with tech savvy types first.
Edit; I am thinking now that the green and white data cables in the input leads may have to be cut and the ends taped, but it may not matter(?)

Have attached photo of the hub and the charger
The charger is an old Nokia one and has a lump of plastic near the end which I assume houses a fuse of sorts.
Reading through Plopper's thread again I am sure this is OK, but am unwilling to brick my HD2!
You could get a 7 way usb hub and add things like external HDD or (my favourite) a usb fan to cool down your HD2!

Working
OK over 300 views of this thread and no reply!
this usually means the idea is a dud or its been done before!
I have searched around but can only find y-cables, which supply extra 500mA from another USB socket but only allow 1 device connection.
If this has been done before, I apologise.
However, I got bored of waiting and went ahead with cutting up leads and splicing wires. I flashed WM6.5 and loaded Ubuntu 0.3 (only one with USB host that I can find!)
AND IT WORKS!!!!!
I had to buy a micro USB cable because I didn't want to cut my stock one (get a data cable because a charging cable only has 2 wires in it).
Note on cable colours, apparently there may be variation on some manufacturer's cable core colours, take care to identify by tracing circuits on the hub and checking continuity from the pins to each core.
Also, being an electrician, I am wondering what the current carrying capacity of the tiny core cables are, I will have to look it up at some point (adiabatic equation) meanwhile check for overheating.
Enjoy! (something to do on wet weekend!)

Homemade USB
i made this, unfortunately i can't use it with 0.3 bucouse i installed magldr and i use Android, and linit tutorial doesn't work for me
http://i54.tinypic.com/2dquiwo.jpg
http://i54.tinypic.com/2zsxz6b.jpg

Impressive!
It sure beats the above from me.
What do you use it with?
What else might support USB hosting?
I prefer to use WP7 and Android too (see sig)

i made it for HD2 for use it with Ubuntu, i hope that the v0.4 come out soon and with usb host support...

Doh!
467 views after first posting this and after re-reading plopper's thread again I have realised what plopper and Mister B were saying in their last posts.
There is no protection in unpowered usb hubs, so no need to bypass it!
I have over-complicated everything.
It is only necessary to change the hub lead plug to a microUSB one and then connect the charger to the usb plug which you have just cut off, then plug it into one of the spare ports.
Oh well never mind!

i take a photo with HD2 on it http://i53.tinypic.com/34dr96v.jpg

很好很强大!

nice... ...but, don't smoke so much....

Guys,
For those using Android, you can try Dorimanx's latest 2.9.9 ROM which claims to have USB Host enabled. I don't have a USB OTG cable to try it on, but let us know if having a self-powered USB hub works on it. Thanks

nikola360 said:
i take a photo with HD2 on it i53.tinypic.com/34dr96v.jpg
Click to expand...
Click to collapse
OMG this thing is amazing! I really want to make something like this, got any pointers on how to do it?

wow thats the crazyest mod ever you should move to hardware moding scection! maby you will get more help!

bever86 said:
OMG this thing is amazing! I really want to make something like this, got any pointers on how to do it?
Click to expand...
Click to collapse
Thanks!....unfortunately i haven't a tutorial, i made it only with my fantasy, i saw 2 DVD cases and i made it.
Guys,
For those using Android, you can try Dorimanx's latest 2.9.9 ROM which claims to have USB Host enabled. I don't have a USB OTG cable to try it on, but let us know if having a self-powered USB hub works on it. Thanks
Click to expand...
Click to collapse
i tried it (XB V.19 that is based on it, with the same kernel USBH enabled) but unfortunately it doesn't work, i saw in the system partition of this rom and i saw that there aren't any driver for USB hardwares support (USB Keyboard, mouse, USB Flash memory...)...so i think that the problem is this (no drivers support)

nikola360 said:
i take a photo with HD2 on it http://i53.tinypic.com/34dr96v.jpg
Click to expand...
Click to collapse
This looks really cool, you should produce it and offer it, I guess I would buy it

Related

LEO USB Host

LEO USB Host
0. The start
haha, USB host can work on HTC Leo, but with external 5V (VBUS) supply.
I already able to finish some proof-of-concept and it's working
1. About cable
First of all, about my cable: I made my own cable by hands.
You must have external 5V supply, I used output from PC USB (not mobile, but good for testing)
photo of my cable:
scheme of my cable:
(actually miniUSB have 5pins, but it doesn't matter here)
2. Software
You need USBH driver, otherwise USB Host won't work!
I am developing my own driver, based on EHCI standard.
Driver doesn't available for community yet, because it's BUGGY.
3. Some testing
I was able to connect and use:
1)USB Reader with SD card
2)USB Keyboard
3)USB Mouse
4)USB Stick memory
At the end you can connect any USB device, if you have CE USB drivers for it, of course.
Leo display driver doesn't support mouse cursor, so mouse is working without cursor...
Because Windows CE support only FAT filesystem, NTFS partitions can't be used.
Also HTC's XT9 not very friendly for USB keyboard input.
4. Look
Some videos (haha, the Flame's camera is too bad and I couldn't use Leo's camera, because it's main object in my small cinema )
so, sorry for bad quality.
http://www.youtube.com/watch?v=wwq8Ia3o0UE
http://www.youtube.com/watch?v=1XrCUS_WDaU
5. Status
At this moment the USBH stuffs are not stable. Sometimes device can hang, so you need perform soft reset. Sometimes it can't detect any device. Also you can't switch mode back from Host to Client...
When I make it at least usable, I will release it
-CotullaCode
Fantastic!! You're a genius.
wow! first HSPL, now USB Host! Legend!
nice job, keep it up!
Is there theoretically a limit on the size of the SD card that can be used? Can I order my 64 Gb card already? lol
This is great! Wait... not just great - this is insane!!!
Keep up the good work!
Hahaha epic win. Dude you gave us HSPL, now this... wtf comes next?? TV OUT? FM radio transmitter or RDS?
damn nice!!!
where do you have the knowledge from? where do you work??
are these "creations" hobby - based?
keep up your work, its really fantastic
Well done Cotulla!
unfortunatelly i cannot understand well your suggestions regarding the cable.
In the drawing in fact you show a "miniusb connector" (htc uses a microusb) , a "usb plug" [that seems being a male usb connector] and a sort of "power injector" adapter.
On the contrary in the images (and in the videos) we can see see two "female usb" connectors and a "male usb" connector (i understand that is to get power from the pc. is this correct?).
Can you please clarify/better explain pin connections.
Looking forward to have the chance to test your new driver
i would in fact like to start testing your cable with available ones.
thanks
with the linux sources of the QSD8* driver available it's a good base.
wait until we have linux working on the leo. then you can also make use of all those devices you attach
e.g. you can use mass storage devices with all file systems known to man, any input device.. etc
Hahaha epic win. Dude you gave us HSPL, now this... wtf comes next?? TV OUT? FM radio transmitter or RDS?
Click to expand...
Click to collapse
built in coffee-maker?
where do you have the knowledge from? where do you work??
are these "creations" hobby - based?
keep up your work, its really fantastic
Click to expand...
Click to collapse
I am still studing Yes, it's my hobby
but I already have big experience with CE hacking/coding (few years...), so it's possible for me do such things...
miniusb connector" (htc uses a microusb)
Click to expand...
Click to collapse
this scheme is old. It was designed for Diamond. (Dmd have MiniUSB, not MicroUSB) but my diamond died later (oh, I will remember him in my heart when I got leo I continue to develop USBH...
On the contrary in the images (and in the videos) we can see see two "female usb" connectors and a "male usb" connector (i understand that is to get power from the pc. is this correct?).
Click to expand...
Click to collapse
yes. my cable have two female usb connectors and one male usb connector.
I connect USB device (mouse, kbd, reader) to one female and connect HTC MicroUSB -> USB cable to another female connector.
Male connector used as power source from PC.
clear? if not, I can make better scheme....
Also maybe instead of such cable we can use USB self powered Hub.
Woow, you know I have only two words: YOU ROCK !!!
Thumbs up, wish you fix the driver bugs soon and thanks for the great news.
P.S.: Might sound stupid, but do you think there's any chance, that other chipsets like QC MSM7500 have the hidden USB-host function too?
thank you for quick and kind answer.
A clearer full scheme of your cable as is (don't worry of microusb) would be welcome. i would like to understand which wires are connected to which pin and which are eventually unused.
I have tested various "powered" test connections [and also a powered hub) with some old drivers i still have from my old pda's and recently also with Zeno USB Host Drivers v6.0a (2009-02-12) but without any success.
regards
antoniof said:
A clearer full scheme of your cable as is (don't worry of microusb) would be welcome. I would like to understand which wires are connected to which pin and which are eventually unused...
Click to expand...
Click to collapse
At the first scheme it looks easy. You just connect the to DATA wires from a female-USB to a microUSB DATA wires and then to get the external power you need to rip up a USB male cable and connect the black and the red wire to the black & the red wire of the USB female. Data wires of the male USB remain unsused. Hope I understood it right.
Hey cotulla were did you find these hidden usb host functionalities? on what dll? is it specific to qsd8xxx devices? i would like to study it, see if i can find it on my acer s200.
thank you farokh, but i'm afraid some piece of info is still missing:
a) are the data wires in the picture "straight" (standard microusb data pin to standard female usb data pin) or eventually crossed
b) what about power wires between microusb and the female usb? have they to be connected or not.
Since the handmade cabling by Cotulla seems to be working i would highly appreciate to have from him his very scheme female/female/plug with specification of the used pinouts of each connector to try exactly replicating it.
as alexnvidia said, your a legend ,,,,, thnx... will be waiting to give it a try
wow you kick htc's a**, you are our hero
great work looking forward for final release ...
Very nice work you are doing there. Keep up the good work!

How To Make Your Own OTG Cable : Video Tutorial and Demo of USB Mouse

So if you are like me. Waiting a week for your OTG cable to come to your doorstep is not an option. Especially if I can make one with existing cords and equipment I have laying around. If soldering happens to be one of your skills then this is the guide for you.
This is what you need.
Micro USB Cable … Really you need the Micro USB Head
Female USB Cable Head … Pulled mine out of an old computer
USB Cable … to connect the two heads … I used the cable from the Micro USB
Solder Kit … connect the Heads to cords
But this video puts everything in context and you also can see how the mouse works on 3.1
http://youtu.be/COkLEJGo6vo
Orrr get a bluetooth mouse
Sent from my 4G LTE Thunderbolt using XDA Premium
DroidHam said:
Orrr get a bluetooth mouse
Sent from my 4G LTE Thunderbolt using XDA Premium
Click to expand...
Click to collapse
True. Which I have, the USB mouse was just to show it works.
Nice to see you here too sleeplessninja!
Followed your tut, gonna do my update, I can't wait for my OTG cable from china to arrive, its almost half way but I can't wait any longer! thanks dude. Off to flashing some updates.
EDIT:
Finished installing the update, all fine and dandy!! tried the camera with the xoom, F-awesome! kinda slow but thats what you get off 18Mpix pics, tried a mouse, kb, all worked perfect...
DroidHam said:
Orrr get a bluetooth mouse
Sent from my 4G LTE Thunderbolt using XDA Premium
Click to expand...
Click to collapse
Can't use bluetooth for flash drives or the ps3 and xbox game controllers (or the other ones the 3.1 update lets you use) XD
I think I'll try this guide when I get home tonight.
sleeplessninja said:
So if you are like me. Waiting a week for your OTG cable to come to your doorstep is not an option. Especially if I can make one with existing cords and equipment I have laying around. If soldering happens to be one of your skills then this is the guide for you.
This is what you need.
Micro USB Cable … Really you need the Micro USB Head
Female USB Cable Head … Pulled mine out of an old computer
USB Cable … to connect the two heads … I used the cable from the Micro USB
Solder Kit … connect the Heads to cords
But this video puts everything in context and you also can see how the mouse works on 3.1
Click to expand...
Click to collapse
I haven't watched the video yet, but couldn't you also just use a USB extension cable instead of a separate usb cable and female usb port? Using an extension cable instead you could just replace the male end with the male micro usb and use heat shrink to make it more aesthetically pleasing.
Congrats to OP for the DIY job. My preferred method would be not to cut up the cable, but by shorting pin 4 to pin 5 directly at the shell. This is easiest if all 5 pins are present (sometimes either pin 4 or 5 is missing), as you can simply bridge the two pins with a bit of solder, and quickly apply heat to the connector shell to melt it in place. If one of the pins is missing, then things get a bit more difficult.
The solder bridge wouldn't last for too many insertions, but it should be more than good enough until the real host cable gets to you.
Made the cable well kinda i used a adapter to convert male to female should this still work or does it need to go straight to female?
brilliant guide, used a different style on mine but this guide is solid gold, thanks very much
Great post, i used your method with good results
Probably more expensive than an OTG adapter, yet I found a supplier of micro usb plugs with solder tags, more useful perhaps in a DIY dock?
http://ntcdistributing.com/products/usb-connectors.htm?gclid=CNnGtN-U7K0CFZQgfAodLQvL5g
machina77 said:
Great post, i used your method with good results
Probably more expensive than an OTG adapter, yet I found a supplier of micro usb plugs with solder tags, more useful perhaps in a DIY dock?
http://ntcdistributing.com/products/usb-connectors.htm?gclid=CNnGtN-U7K0CFZQgfAodLQvL5g
Click to expand...
Click to collapse
if you have the bits lying around then its very useful. If your having to buy the components then its cheaper to buy the cable. Like many of others on here, i have thousands of usb cables so was easy for me.

D.i.y usb otg adapter/cable

Hi,
I made my own usb otg adapter from a plain usb a to micro b adapter. You have to connect pin 4 /which is not connected/ to ground to fire up host mode.
Edit: It is not easy to dismantle a usb connector or adapter and it requires soldering. So I guess anybody with the necessary skills will find the pin on his own. I will not post photos because my solution is far from being pretty.
For everybody else: the nokia USB OTG cable is wired the same way so it is very likely that it will work. (on Hungarian forums I saw references that it works, but I can not guaratee it.)
Tommorow I will go buy one and report.
USB Host mode will allow to connect USB pendrive, mouse, keyboard etc. to the SGS II.
Sent from my GT-I9100 using XDA App
richyy74 said:
Hi,
I made my own usb otg adapter from a plain usb a to micro b adapter. You have to connect pin 4 /which is not connected/ to ground to fire up host mode.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
this is very useful for people like me who knows how to solder things, but for the people who have absolutly no Idea what you are talking about, you should add more details/pictures to the OP so the people who doesen't know much about electronics know what you are talking about, and what benefits it brings for them.
I myself will probably make one or more, so I don't have to always take my USB OTG with me all the time.
kaukassus said:
this is very useful for people like me who knows how to solder things, but for the people who have absolutly no Idea what you are talking about, you should add more details/pictures to the OP so the people who doesen't know much about electronics know what you are talking about, and what benefits it brings for them.
I myself will probably make one or more, so I don't have to always take my USB OTG with me all the time.
Click to expand...
Click to collapse
May be you dint know about this thread
http://forum.xda-developers.com/showthread.php?t=1092493
This was explained with pics a long time ago
Yeah sorry. I never saw that. Thanks.
richyy74 said:
Yeah sorry. I never saw that. Thanks.
Click to expand...
Click to collapse
Why be sorry. This forum is to help each other out.
OTG Cable USB (B) to Micro USB (A) Powered with AAA batteries
As one knows, Samsung has promised a HMI Cable
You noticed it is not only a cable but a box out of which you may plug in an extra power supply.
The obvious reason is if the passive monitor does not furnish 5V, the phone will rapidly be out of power.
Now you know that to obtain video rather than anything less, Pin 4 (sense) and 5 (Ground) of micro USB (male A) must be connected with a 365K resistance.
I suppose the dock Samsung is selling for I9100 (yes, I have it) is grounded at 1000K as it provides audio with remote, and yes, the dock provides power supply via extra micro USB as well.
I come to my point: If I want to access any USB data On the Go, I need a cable OTG with 2 ports: USB 2.0/3.0 (female, B sided) to a micro USB (male, A sided, grounded but with no resistance = 0K). Many of them exist on the market out there.
But it is quite impossible to use because of lack of power supply in the passive device (let’s say a handy 1T HDD usually powered via Host connexion !
Would it be possible to insert some sort of receptacle for AAA battery in the middle of such a cable to provide for power while you are for a long time out of access to an electric plug ? Does such a cable exist somewhere to buy ? What would be the sheme to mount this ? HELP !
Instead of shorting pin 4 and 5 from within the cable head, would it also be viable to short them from within the device itself? Say if I disassembled the phone to access the back of the female usb micro connector and soldered the pins. Would there be any damage caused if the permanently shorted pins 4 and 5 (within the device) is connected to a charging adapter/PC?

diy mircousb hub

hi folks,
i would to like to build a micro usb hub.
e.g. 1 male connector and 2 female connector.
does anybody have experience in micro usb to stabilize the voltage and current?
thanx
KindsKoPP said:
hi folks,
i would to like to build a micro usb hub.
e.g. 1 male connector and 2 female connector.
does anybody have experience in micro usb to stabilize the voltage and current?
thanx
Click to expand...
Click to collapse
That would be interesting to see, I think your gonna need drivers for that as well because your gonna need a switch to cycle back and forth on what connector your using, and thats gonna be hard to do from scratch. I was contemplating doing something similar to that but wound up at a dead end. If you figure it out let me know.
it won´t need a driver. i want to build as a host hub. but the current is too low i think, so it is difficult to stabilizise the current,,
mbm262 said:
That would be interesting to see, I think your gonna need drivers for that as well because your gonna need a switch to cycle back and forth on what connector your using, and thats gonna be hard to do from scratch. I was contemplating doing something similar to that but wound up at a dead end. If you figure it out let me know.
Click to expand...
Click to collapse
It's not a question of stabilizing the current.
It's supposed to be 5 volts throughout the USB spec.
If you are using a cell phone as the host, that already produces regulated 5 volts through a charge pump.
The amount of current out of a cell phone is maybe around 100 mA.
That's what you have to work with.
If it's not sufficient for what you want then you need an external power source, not a regulator.
Hubs can be power hogs.
The spec says that a hub can take up to 100 mA all by itself.
To make a micro USB you can either take an existing hub and change the connectors.
Of course since the PCB pattern will not match up you'd have to wire the connectors in discreetly.
If you really wanted to make a real job out of this, buy a hub IC for $3,
lay out a PCB, slap on a 24 MHz crystal and connectors.
???
the idea is to build an mobile hub for tablets or smartphones for plugin external devices like sd card reader or usb stick and
mouse and keybord. hub will stick in a phone and plug in the external devices. i already had tried with a keyboard and mouse with standard usb and it works. i had already build some devices with micro usb connector. so i would like to use all devices at the same time and outdoor. i try to solve the idea without a lot of adapter..
if the usb give all devices 5v and 100mA at the same time, that would be great, without an additional IC power supplier..
thats all
i found out thats not possible to use more than 2 gadgets at the same time cause of the voltage without an external power supplier. keyboard and mice work at the same time but i f u want to plug in a 3rd gadget then wont work. 1 solution could be a mobile battery with 5v connecting with the hub. or make a built in battery in the hub..
@ renate. maybe u have an suggestion?
I have a jig for measuring current consumed by USB peripherals: http://forum.xda-developers.com/showpost.php?p=30668417&postcount=26
I use USB with only low power things like a keyboard or else
with a powered hub (also back-powering the Android).
The second option is more like a docking station.
KindsKoPP said:
hi folks,
i would to like to build a micro usb hub.
e.g. 1 male connector and 2 female connector.
does anybody have experience in micro usb to stabilize the voltage and current?
thanx
Click to expand...
Click to collapse
The 2 female connectors don't make much sense i think, because:
I can't think of any device you would like to connect with your phone as host that has a µusb connector..? You would need 2 additional OTG-cables in almost all cases
You would need OTG capability for security reasons: Imagine you hub is pluggend in you phone and you connect you computer to the hub too -> Data crash + 2 power sources in parallel -> risk of damage
I would use a normal tiny usb hub and only change the cable
u did not read my post above attentively or?
quote:
i had already build some devices with micro usb connector. so i would like to use all devices at the same time and outdoor. i try to solve the idea without a lot of adapter..
and the gadget are already automatically OTG. I already thought all about that before!
-schumi- said:
The 2 female connectors don't make much sense i think, because:
I can't think of any device you would like to connect with your phone as host that has a µusb connector..? You would need 2 additional OTG-cables in almost all cases
You would need OTG capability for security reasons: Imagine you hub is pluggend in you phone and you connect you computer to the hub too -> Data crash + 2 power sources in parallel -> risk of damage
I would use a normal tiny usb hub and only change the cable
Click to expand...
Click to collapse

What exactly is up with the USB-C charging port?

Hello,
I've tried to find a clear, straight answer online and while I have found info regarding the USB-C standard, I can't find an answer to my question.
I use a mirco usb plug to charge both my current mobile phone and my android tablet.
Does the smaller port in the OnePlus Two use the same sized micro-usb port for charging? I understand that the USB-C port is the larger port on the other end of the cable. Maybe I am wrong about that.
Right now I have several micro usb chargers that I use to charge my phone and my tablet, and I'd like to know if they will be able to charge a OnePlus Two. I don't mind if the charging is slower, but I'd just like to know if it will fit and charge.
Thanks!
No in my sense,as far as my knowlege goes, USB-Type C is altogether a different technology,so you will need a special adapter for OTG too..
Azharkanorwala said:
No in my sense,as far as my knowlege goes, USB-Type C is altogether a different technology,so you will need a special adapter for OTG too..
Click to expand...
Click to collapse
That's what I thought. Thanks!
Vincent Vegas said:
Hello,
I've tried to find a clear, straight answer online and while I have found info regarding the USB-C standard, I can't find an answer to my question.
I use a mirco usb plug to charge both my current mobile phone and my android tablet.
Does the smaller port in the OnePlus Two use the same sized micro-usb port for charging? I understand that the USB-C port is the larger port on the other end of the cable. Maybe I am wrong about that.
Right now I have several micro usb chargers that I use to charge my phone and my tablet, and I'd like to know if they will be able to charge a OnePlus Two. I don't mind if the charging is slower, but I'd just like to know if it will fit and charge.
Thanks!
Click to expand...
Click to collapse
No.....a big No....the port they are using is nothing more than a new plug on the phone side of the cord. The other end of the cable will plug into all your old USB ports. So you will need to use the OP2 cable but the end that does not plug into the phone will plug into any current USB port.
They did not include any of the good things that come with USB C, they just put the USB C plug in the phone and on one end of the cable.
bp328i said:
No.....a big No....the port they are using is nothing more than a new plug on the phone side of the cord. The other end of the cable will plug into all your old USB ports. So you will need to use the OP2 cable but the end that does not plug into the phone will plug into any current USB port.
They did not include any of the good things that come with USB C, they just put the USB C plug in the phone and on one end of the cable.
Click to expand...
Click to collapse
Thanks, friend. That's clear. This is a drag. Right now I have several charging cables that power all my stuff. Now if I get the OP2, I'll need two cables for home and two for the office. That's a negative in my book
Thanks!
Vincent Vegas said:
Thanks, friend. That's clear. This is a drag. Right now I have several charging cables that power all my stuff. Now if I get the OP2, I'll need two cables for home and two for the office. That's a negative in my book
Thanks!
Click to expand...
Click to collapse
Based on the release video they said an adapter would be available older USB cables so that might be an option for you.
Good to know. If the adapter is small and inexpensive, that would help a lot! Thanks!
Vincent Vegas said:
Good to know. If the adapter is small and inexpensive, that would help a lot! Thanks!
Click to expand...
Click to collapse
You can find them on eBay:
http://www.ebay.com.sg/itm/USB-3-1-...088?pt=LH_DefaultDomain_0&hash=item2354402058
MasK said:
You can find them on eBay:
http://www.ebay.com.sg/itm/USB-3-1-...088?pt=LH_DefaultDomain_0&hash=item2354402058
Click to expand...
Click to collapse
Thanks! Very simple and affordable!

Categories

Resources