FORUMS

LEO USB Host

881 posts
Thanks Meter: 5,472
 
By Cotulla, Retired Senior Recognized Developer on 24th February 2010, 10:01 PM
Post Reply Email Thread
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
The Following User Says Thank You to Cotulla For This Useful Post: [ View ] Gift Cotulla Ad-Free
24th February 2010, 10:07 PM |#2  
appelflap's Avatar
Inactive Recognized Developer
Flag Utrecht
Thanks Meter: 834
 
10
More
Fantastic!! You're a genius.
24th February 2010, 10:09 PM |#3  
Senior Member
Thanks Meter: 8
 
More
Thumbs up
wow! first HSPL, now USB Host! Legend!
24th February 2010, 10:10 PM |#4  
samsamuel's Avatar
Senior Member
Thanks Meter: 1,056
 
More
nice job, keep it up!
24th February 2010, 10:26 PM |#5  
appelflap's Avatar
Inactive Recognized Developer
Flag Utrecht
Thanks Meter: 834
 
10
More
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
24th February 2010, 11:14 PM |#6  
eDaniel's Avatar
Senior Member
Thanks Meter: 1
 
More
Thumbs up
This is great! Wait... not just great - this is insane!!!

Keep up the good work!
24th February 2010, 11:24 PM |#7  
Senior Member
Flag munich
Thanks Meter: 36
 
More
Hahaha epic win. Dude you gave us HSPL, now this... wtf comes next?? TV OUT? FM radio transmitter or RDS?
24th February 2010, 11:30 PM |#8  
quserdy's Avatar
Member
Thanks Meter: 1
 
More
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
24th February 2010, 11:46 PM |#9  
Member
Thanks Meter: 0
 
More
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
24th February 2010, 11:52 PM |#10  
dcordes's Avatar
Retired Senior Recognized Developer
Thanks Meter: 259
 
Donate to Me
More
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
25th February 2010, 12:10 AM |#11  
Cotulla's Avatar
OP Retired Senior Recognized Developer
Thanks Meter: 5,472
 
More
Quote:

Hahaha epic win. Dude you gave us HSPL, now this... wtf comes next?? TV OUT? FM radio transmitter or RDS?

built in coffee-maker?

Quote:

where do you have the knowledge from? where do you work??
are these "creations" hobby - based?
keep up your work, its really fantastic

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...

Quote:

miniusb connector" (htc uses a microusb)

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...

Quote:

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?).

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.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes