LEO USB Host

Search This thread

Cotulla

Retired Senior Recognized Developer
Sep 8, 2007
881
5,449
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 :D )
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
 
  • Like
Reactions: icebergadilmoin

quserdy

Member
Jan 19, 2009
49
1
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:)
 

antoniof

Member
Jun 21, 2007
32
0
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
 

dcordes

Retired Senior Recognized Developer
Nov 20, 2007
707
254
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
 
Last edited:

Cotulla

Retired Senior Recognized Developer
Sep 8, 2007
881
5,449
Hahaha epic win. Dude you gave us HSPL, now this... wtf comes next?? TV OUT? FM radio transmitter or RDS?
built in coffee-maker? :D

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

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

farokh

Member
Jun 6, 2008
28
0
Pilsen
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?
 

antoniof

Member
Jun 21, 2007
32
0
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
 

farokh

Member
Jun 6, 2008
28
0
Pilsen
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...

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.
 
Last edited:
P

pongothemagnificent

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

antoniof

Member
Jun 21, 2007
32
0
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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 :D )
    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
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone