Author Topic: How To Identify Usb Host Cable?  (Read 18282 times)

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
How To Identify Usb Host Cable?
« on: March 25, 2006, 05:10:40 pm »
I have a C1000.  I've read that the difference between the USB host cable and regular USB cable is the connector on the end causes the Z to behave differently depending on which one is inserted.

I've also read that you can get the USB-host adaptor in a kit you can buy at Walgreens.

I bought a Universal USB adaptor kit before I bought by C1000.  I've noticed that it has a couple of different types of mini-USB connector.   I was wondering how you can tell if any of them are the host (USB OTG) type connector? (Is there a closeup image anywere?)   Are there any other giveaways?  Or if you plug it into the Z, is there any command you can use to check?

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
How To Identify Usb Host Cable?
« Reply #1 on: March 25, 2006, 05:50:22 pm »
Yep the kit from walgreens includes the host adapter.
It's a 6-in-1 kit, made by G.E. (General Electric)
It's behind the camera counter and is in a red bubble package which hangs from a peg.
I've enclosed a pic of the "GoldEX" brand of USB 'B' & 'A' fittings, (not the walgreens ones, these are basically the same).
The 'A' (on the right) is the host fitting.
The 'B' (on the left) is a fitting like a sync cable that most Palms use.
The 'A' fitting is used to connect external drives, mice, keyboards, ect. (Host)
The 'B' fitting is used to connect your zaurus to a PC and browse the drive/cards on the Zaurus from your PC.
« Last Edit: March 25, 2006, 05:59:06 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
How To Identify Usb Host Cable?
« Reply #2 on: March 25, 2006, 06:15:23 pm »
Quote
Yep the kit from walgreens includes the host adapter.
It's a 6-in-1 kit, made by G.E. (General Electric)
It's behind the camera counter and is in a red bubble package which hangs from a peg.
I've enclosed a pic of the "GoldEX" brand of USB 'B' & 'A' fittings, (not the walgreens ones, these are basically the same).
The 'A' (on the right) is the host fitting.
The 'B' (on the left) is a fitting like a sync cable that most Palms use.
The 'A' fitting is used to connect external drives, mice, keyboards, ect. (Host)
The 'B' fitting is used to connect your zaurus to a PC and browse the drive/cards on the Zaurus from your PC.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120236\"][{POST_SNAPBACK}][/a][/div]

I do have a connector that looks like the 'A' plug.   When I plug it into the Z, and run 'dmesg', I see messages that it detected a USB hub, with two ports.   Is that the kind of message that the USB host cable generates?

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
How To Identify Usb Host Cable?
« Reply #3 on: March 25, 2006, 06:57:33 pm »
I've never used dmesg with just the host cable.
Try hooking up an external drive to it.
I have an external drive enclosure, (which has it's own power).
It shows this in the files tab in Cacko 1.23
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
How To Identify Usb Host Cable?
« Reply #4 on: March 26, 2006, 02:58:48 am »
The cable itself won't get you anything with a dmesg.  It's just a cable.  Now if you have anything attached to the other end, you'll get something.  Might not be a supported device but the usb spec says it has to identify itself.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
How To Identify Usb Host Cable?
« Reply #5 on: March 26, 2006, 11:03:56 am »
Quote
The cable itself won't get you anything with a dmesg.  It's just a cable.  Now if you have anything attached to the other end, you'll get something.  Might not be a supported device but the usb spec says it has to identify itself.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120273\"][{POST_SNAPBACK}][/a][/div]

Well, this is what shows up in dmesg when I plug in the mystery adaptor:

hotplug_schedule_bh: schedule bh
usbh: hotplug_bh:
usbh: udc_connected: ACTIVE_LOW: 1<7>usbh: monitor_connected: 1
usbh: monitor_restore: RESTORE_LOADED
usbh: monitor_hotplug: agent: usbh interface: monitor action: restore-loaded
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xfe000000, IRQ 3
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF c3f3aa60, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB OHCI Root Hub
SerialNumber: fe000000
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: individual port over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 8ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface c3f3aa60
usb.c: kusbd: /sbin/hotplug add 1
usbhmonitor: warning - hotplug script timed out
hotplug_bh:
monitor_connected: 1
monitor_restore: RESTORE_LOADED
monitor_hotplug: agent: usbd interface: monitor action: restore-loaded
usbdcore: usbdcore 0.1 035 2002-06-12 20:00 (dbg="")
net_fd 0.1 035 2002-06-12 20:00 (dbg="",alwaysup=0,OUT=64,IN=64)
vendorID: 4dd productID: 9031
pxa27x_bi 0.1-alpha 035 2002-06-12 20:00 (dbg="")
bi_modinit: call udc_startup_events
bi_device_event: call udc_enable
bi_device_event: call udc_all_interrupts
udc_connect: host cable connected.


And then if I plug a device into the other end (In this case, a D-LInk ethernet adaptor):

hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 103, change 10, 12 Mb/s
hub.c: USB new device connect on bus1, assigned device number 2
usb.c: kmalloc IF c3f81480, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 2 default language ID 0x409
Manufacturer: D-LINK CORPORAION
Product: DUB-E100
SerialNumber: 01
usb.c: unhandled interfaces on device


So it appears to be working as a USB host cable.   Does the real USB host cable not generate any messages at all?

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
How To Identify Usb Host Cable?
« Reply #6 on: March 26, 2006, 03:37:05 pm »
Quote
So it appears to be working as a USB host cable.   Does the real USB host cable not generate any messages at all?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120315\"][{POST_SNAPBACK}][/a][/div]


It shouldn't.  Like I said it's just a cable.  There shouldn't be any electronics in it.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

TRIsoft

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
    • http://www.trisoft.de
How To Identify Usb Host Cable?
« Reply #7 on: March 27, 2006, 03:18:40 am »
Hi all,

the best of the USB-OTG specification is the color-coding.
Looking at the color of the jack/plug you can see what type it is:

Jack:
Black = Client (like a camera)
Gray = Client/Host capable (Zaurus)
White = Host only (like SL-6000)

Plug:
Black = Client cable
White = Host cable

///TRIsoft

Marc Stephan

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
How To Identify Usb Host Cable?
« Reply #8 on: March 27, 2006, 02:03:36 pm »
Quote
Hi all,

the best of the USB-OTG specification is the color-coding.
Looking at the color of the jack/plug you can see what type it is:

Jack:
Black = Client (like a camera)
Gray = Client/Host capable (Zaurus)
White = Host only (like SL-6000)

Plug:
Black = Client cable
White = Host cable

///TRIsoft

Marc Stephan
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120405\"][{POST_SNAPBACK}][/a][/div]

I've never seen a color other than grey in the stores.  Though to be honest, I've never seen a usb otg device.  The last cable I had was one of the gold-x cables that I hacked to be about 4 inches long that I kept in my Z's pouch.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Identify Usb Host Cable?
« Reply #9 on: March 27, 2006, 08:21:14 pm »
Quote
Quote
Hi all,

the best of the USB-OTG specification is the color-coding.
Looking at the color of the jack/plug you can see what type it is:

Jack:
Black = Client (like a camera)
Gray = Client/Host capable (Zaurus)
White = Host only (like SL-6000)

Plug:
Black = Client cable
White = Host cable

///TRIsoft

Marc Stephan
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I've never seen a color other than grey in the stores.  Though to be honest, I've never seen a usb otg device.  The last cable I had was one of the gold-x cables that I hacked to be about 4 inches long that I kept in my Z's pouch.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120512\"][{POST_SNAPBACK}][/a][/div]

yep, they are all white except the gold x one

[a href=\"http://users.on.net/~hluc/myZaurus/myUSBHub.jpg]http://users.on.net/~hluc/myZaurus/myUSBHub.jpg[/url]
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

uth

  • Full Member
  • ***
  • Posts: 106
    • View Profile
How To Identify Usb Host Cable?
« Reply #10 on: March 27, 2006, 10:00:43 pm »
Well, this particular adaptor that appears to function as a USB host cable is grey, same color as all the other adaptors in the kits.

The good news is the USB host cable that was supposed to come with my Zaurus (but was backordered) finally arrived.  So the question is moot now.   It does generate similar dmesg output to the mystery adaptor (yes, it's detected as a hub with two ports!)

Anyway, it looks like these USB OTG adaptors are more common than you might think, even if they are colored wrong and unlabeled as such.   Mine came in a cheap universal USB cable kit I got at big lots.  It's not the same kit Walgreens sells.

TRIsoft

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
    • http://www.trisoft.de
How To Identify Usb Host Cable?
« Reply #11 on: March 28, 2006, 03:05:28 am »
Hi all,

looks like some misunderstanding.
What i mean (and what's in the specs) is the color of the
plastic at the inside of the jack/plug where the contacts
are located.

Check a Zaurus (grey inside, because host+client), look
at the Zaurus PC cable (black inside, because client cable),
look a host cable (white inside).

That's it.

///TRIsoft

Marc Stephan

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
How To Identify Usb Host Cable?
« Reply #12 on: March 28, 2006, 03:44:12 am »
I have the Walgreens kit, and what Marc said applies to my kit.
The host fitting has white plastic inside where the contacts are.
The other one, (I call it a sync fitting), is has black plastic inside where the contacts are.
My Palm sync cable, is also black on the inside.
I recived 2 "Host" cables from StreamlineCPUs when I ordered my SL-C3100, and the inside plastic is also white.
The shape also gives them identification, if you look at it under a good light.
Also, it's hard to remember, just by the shape of the plug.
(That pic I attached above is the only pic I had. I don't have a "good" digital camera)
Jon
« Last Edit: March 28, 2006, 03:49:59 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

chyang

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • http://mail.ustc.edu.cn/~chyang/
How To Identify Usb Host Cable?
« Reply #13 on: April 01, 2006, 07:40:59 am »
Quote
Hi all,

looks like some misunderstanding.
What i mean (and what's in the specs) is the color of the
plastic at the inside of the jack/plug where the contacts
are located.

Check a Zaurus (grey inside, because host+client), look
at the Zaurus PC cable (black inside, because client cable),
look a host cable (white inside).

That's it.

///TRIsoft

Marc Stephan
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120632\"][{POST_SNAPBACK}][/a][/div]

Cool!  
How do you know this? Specification covers?
Thanks.
SL-C3200+Symbol CF WIFI+Corsair 2GB SD
SL-5500+Sharp-3.13 ROM+Viking 512MB CF+Kinston 256MB SD
[img]http://sunsetyang.googlepages.com/c3200.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://sunsetyang.googlepages.com/5500.gif\" border=\"0\" class=\"linked-sig-image\" /]
Socket CF Bluetooth + EagleTec CF Lan Card + EagleTec CF Modem
Histroy:
[SL-C3000 Cacko 1.23 Beta 1] Sold on 2006/07/27
MA701 CF WIFI + EagleTec CF Bluetooth + D-Link DCF-660W WIFI
[SL5500+Sharp-3.13 ROM+SimpleTech 64MB CF+Hagiwara 128MB SD] Lost on 18,March,04

TRIsoft

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
    • http://www.trisoft.de
How To Identify Usb Host Cable?
« Reply #14 on: April 01, 2006, 11:50:34 am »
Hi Chyang,
Quote
How do you know this? Specification covers?
the color coding is indeed part of the specification.
Go to http://www.usb.org/developers/onthego/.
This is the source for all USB-OTG related things.
In the download section (scroll down) get the file
"OTG Supplement (zip, 2.27 MB) - Revision 1.0a, 07-09-2003"
You'll find it on page 18, paragraph 4.3 "Color Coding"  

///TRIsoft

Marc Stephan