HTC Serial Cable without extUSB - G1 Android Development

Hi guys,
I bricked my G1 recently and am going to try to Unbrick using the guide on cyanogen's wiki.
One requirement is the debug serial cable, but here in India I haven't been able to get my hands on the ExtUSB breakout. I do have a mini usb breakout. Could I use that instead?
The pins I need are:
1 VCC
2 Ground
3 tx
4 rx
The pins available on the mini usb breakout are:
A +5V
B -Data
C +Data
D N/C
E Ground
Pretty obviously:
1 -> A
2 -> E
Goggling tx and rx, I think they mean data in and out but not sure. Anybody have any advice?
Unbrick guide on cyanogen:
wiki.cyanogenmod.com/index.php?title=JTAG_for_Dream/Magic
ExtUSB breakout:
sparkfun.com/products/9167

Post questions in the questions section!!!

ExtUSB is backwards compatible with mini USB: http://en.wikipedia.org/wiki/Universal_Serial_Bus
I have several mini USB cables, some with a Type A male connector on the other end, others with a wall plug end, and still some with the cigarette lighter adapter end. They all work with the G1. The 2 extra pins on the ExtUSB are for sound only.

Xsite_01 said:
It's compatible just for charging and file tranfer but for serial interface are not compatible. You are accesing serial interface trough extra audio pins, so you can buy G1 headphones and make htc serial cable. Headphone yes, charger no.
Click to expand...
Click to collapse
Ah, when I saw serial I thought, "why is he calling a USB cable by only part of it's name" (universal serial bus). I misunderstood the post and did not think he was talking about an actual serial/RS232 connection.
So as to try to contribute something to OP, have you tried looking at this? http://www.instructables.com/id/Android-G1-Serial-Cable/

I was doing some study connect my serial GPS (gives TTL level serial signals) to HTC P3400 WM. Found out about G1 cable in instructables and other materials that explained how to use serial ports in HTC mobiles. I came across a very cheap "adapter" in a roadside shop in Chennai - one end of this one goes into the mini usb and the other end provides a 3.5mm stereo audio jack. I grabbed one of them and surprised to find that it did not have the moulded rubber connector. I opened the plastic case and found that I can easily solder pins 7,8 and 9. I will be testing this over the week end!

Thanks for the info Xsite_01, i think i can find some headphones to cut up and give it a try.
If smpncrc's adaptor works, i'd love to get my hands on it in delhi.
Thanks for all the info guys

Related

RJ11 to Mini USB

I have just purchased a holder for my XDA2 which has a mini USB port on it and I want to connect my TomTom GPS receiver RJ11 connector it.
Does anybody have the same problem or a lead which i can use?
Thanks
if the rj11 connector have all the same connections and signal protocol as usb and maybe even a normal usb connector in the other end then you can buy a normal usb to miniUsb converter
The TomTom reciever has a RJ11 connector and i can not seem to find a converter from RJ11 to anything i.e. USB, Mini USB, etc.
Do you know of any places?
Pratik
well rj11 is a phone connector right ?
and you are sure it's even usb compatible signals running in it ?
i mean if it's analog modem data stuff then converting that signal to something which usb can work with would be a pile of work and end up being more expensive then getting a new gps
True.
RJ11 is a phone connector, but the information from the gps reciever is just being passed to the PDA holder which has a Mini USB connector in it, so I don't think any data conversion is necessary.
The RJ11 has 4 wires in it and the Mini USB has 5, maybe i need to open it up and desolder the mini USB and put in a RJ11 female connector, this then brings me down to pin-out etc.
Do you have any information regarding hte pin-outs?
Pratik
you can get a cable with a mini usb in one end and normal usb in the other if you can get a cable with a mini usb in one end and a female usb in the other then you can connect the usb to xda connector cable that way
of cause that way is way too long but it should make it rather possible to connect the xda to the holder then that is unless
the pda holder and miniUSB connector's signaling require the pda to be a usb host which the xda1 and 2 is not able to be
Maybe we are getting the wires crossed.
The following is a link to the holder
http://www.pdamods.com/proddetail.asp?prod=SPKXDA2&cat=75
The XDA2 sits in the holder just fine and charges at the same time, as it has a connector on the holder, the problem is the GPS connector.
I don't understand your responce to the XDA being a host?
Pratik
RJ-11 to Mini USB Adaptor
I have a pocket, USB Modem at home, and it is RJ-11 on one end, and Mini USB on the other.
Have you tried looking into something like this for a solution?

Simultaneous micro usb to 3.5 mm audio out while charging possible?

A similar question has been asked on modaco but I don't think a solution was found. Therefore I am going to ask if this would work here.
Is it possible to connect a micro usb (male) to mini usb (female) adapter up to this thing (HTC 4 in 1 adapter: I can't post link because I am a new user but just search it on youtube). This would connect to the tg01 micro usb and provide a 3.5 mm audio out in addition to a mini usb connection where one could potentially hook up a charger. I was thinking of testing this out as it would cost about 10-15 dollars but I do not want to damage my phone in the process. I have no electrical engineering knowledge but maybe someone else can explain if this would work before I order anything.
On a side note: I order samsung WEP870 bluetooth headphones on sale as an alternative to this. Note sure how sound quality is but I will try answer any questions you guys might have.
Any input is welcome.
mobius8 said:
Is it possible to connect a micro usb (male) to mini usb (female) adapter up to this thing (HTC 4 in 1 adapter: I can't post link because I am a new user but just search it on youtube). This would connect to the tg01 micro usb and provide a 3.5 mm audio out in addition to a mini usb connection where one could potentially hook up a charger.
Click to expand...
Click to collapse
I was heavily involved in the discussion running on MoDaCo you refered to; unfortunately there has been no breakthrough on this issue to date.
I did look into the the HTC adapter you mention, but it actually uses the proprietary HTC ExtUSB plug on the input end (connecting to the phone) and NOT a normal mini-USB. The ExtUSB has 11 pins which include a discrete audio output (being used to feed the 3.5mm jack socket) and also hard-wired power (used to accept the charger input).
In the case of the TG01 uUSB socket, it is too 'intelligent' for its own good. Every function, charging, audio out, USB data transfer, etc., is under procesor control. Different functions are triggered by the device 'seeing' a certain resistance across the sense pin and ground; depending on this the processor then configures the use of the socket pins accordingly.
I am after what you are trying to achieve also; there is a chip supposedly available which is intended to fulfil exactly this functionality, but I've been unable to find any devices on the market which use it and attempts to contact the manufacturer with a view to getting a few samples to try and build an interface have so far been unsuccessful.
I've attached a couple of documents which explain the uUSB Charger Adapter and also the chip spec sheet for reference.
View attachment MC34825.zip View attachment batt_charging_1_1.zip
If anyone else knows anything to help move this one forward, will be much appreciated !
Thanks for the nice explanation,
Hopefully one day there will be an adapter that can make this possible.

[Q] micro usb cable help (pinout++)

I bought some really cheap retractable cables of ebay. When I got them they didn't work at all. I opened and rewired the micro-usb connector - the cables were connected all wrong, but after a little soldering I think they're correct.
Now the cables are working fine with my Nokia N82, but when I connect them to my Desire and Desire HD my computer won't recognize it as USB devices, only charging.
I've looked at the pinout here http://www.kineteka.com/microusb-b.aspx - should pin 4 be connected to GND to use it with HTC?
Any tips?
I was curious of the pinout, thanks for the link.
As far as wether the pin should be grounded, well... if it's not working ATM ground it and see if it works? Since you're successfully charging the phone you know you connected the +5 correctly, grounding any other pins won't cause damage...
Cheers
P.S. Also sometimes good to check the obvious, did you enable the Mass-Storage option in Android?
I've had similar issues with USB 1.1 ports.
Are you connecting it to a USB 2 port??

Solving usb port mistery

Hello everyone! My name is Patryk Andrzejewski (don't try to read my name if you're not polish), and this is my first thread on XDA.
I am studing electronics on university of technology so i'm pretty well with all kind of electronic stuff.
What i'm trying to do is "x-ray" the usb port in our TG01.
My basic targets is to find way to charge the device while using USB HUB or while listening music. If it's even possible to do.
Right now I know how to connect TG01 to amplifier by 3.5mm plug. Generaly most amplifiers have high impedance input while tg01 expect low impedance earphones to switch usb port to audio output. So what we need to do is take two resistors with the same resistance around 10k Ohm and connect them both between ground and both signal channels in male 3.5mm plug of the amplifier. This should do the trick. You can experiment with resistance but it should be as high as possible to not interfere in sound quality, but if it be to big output won't swich or sound would chop on high volume.
Basic usb cable have four wires plus ground. While micro usb plug have five pins. This extra pin is used to tell device what cable is connected, hub earphones charger or pc. It can be done by two ways, in each cable this extra pin is shorted to diferent other pins. Or it's connected by resistor to ground or Vcc.
What i need to do is determine how it is in our devices and if it would be done make a cable what will allow to charge while using usb to other purposes.
I can also help with porting microusb-3.5mm cables from other devices to TG01, just what i need is this cable, it's schematic, connection route with insides picture or small donation to buy it for tests.
Or eventualy I can make solution how to do it yourself.
Right now I waiting for a pack with new empty microusb male and female plugs to do some tests.
If someone have some experience with this please share.
Also it would be great if someone will port me on to usb switch driver.
Feel free to talk to me on priv.
Thread will be updated...
Hi @patryk,
Welcome to the TG01 Forum.... especially on this particular topic - if you can find a way to get multiple function via the uUSB port simultaneously, that will be great
There have been various attempts at this before, but in practice the only route seems to be using Bluetoth for audio while either charging or using the port in host mode.
I did a piece on Brighthand a while ago on connecting an external hard drive; there have also been discussions on MoDaCo and later on XDA (down the Accessories thread.... one is here and I think there may be some earlier than that). There is a link in the XDA post to a Freescale Smiconductor chip schematic. This is supposed to be able to (externally) support multi-function usage - ntended to be used by 3rd Party manufacturers in eg. a car kit, but as yet I am not aware of any such accessories having been released. If/when available would be suitable for any of the modern crop of uUSB based evices, though I think many car makers have opted for Bluetooth connectivity instead of the older style fixed car kits with cables.
Acording to pdf from your link I'm right, its all about one resistor. It's entire possibly to do this.
Tomorrow morning tests...
Thanks
oh I cant wait so:
rid_f: >220 kOhms
rid_a: 122-126 kOhms <-- this is what we're interest in
rid_b: 67-69 kOhms
rid_c: 36-37 kOhms
rid_g: 1 kOhm
These res val has small tolerance and ar not typical.
rid_a resistance is used to switch to charge device from charger and use usb for earphones or hub!
earphones - yes, but headset - not sure I must check first where mic is connected
here it is Dummy cable schematic:
Here are some related illustrations:
Schematic of the uUSB standard audio accessory control:
View attachment 505996
Picture of the supplied Toshiba earphone adaptor pcb:
View attachment 505997
The mic is connected to pins 1 and 2 (White and bare Cu)
I have made up several 3.5mm audio adapters using Neutrik 3.5mm jacks with 10k resistors fitted from D+ and D- to 0V common:
View attachment 506008
This ensures it will switch to audio out when connecting to external speakers with or without a ground-loop isolator transformer where typically the external device will have too low an impedance for the TG01 to recognise.
Shorting out D+ (Pin 2) and D- (Pin 3) causes the TG01 to go into Charging mode.
An R from ID (Pin 4) to 0V (Pin 5) causes the TG01 to go into Host mode.
I check all of these Rid's and it seems they don't work on Tg01. No matter how i try there is working only charging or earphones never both same time.
As you say device can be forced to charge when resistor < 200 ohm is connected between D+ and D- and they are floating.
There also must be other way to do this by the driver of usb charging becouse pc link charges only when TG is on.
In TG mic an switch of headset are connected to ID pin. So this first schematic of yours is about Toshiba accesory ?
Technicaly charging while using audio out is possible becouse VBUS pin is free in headset.
I'll do some other tests tomorrow..
Hi!
Any news since February?
I will find answers on many questions by reading this document
djtonka said:
I will find answer on many question by reading this document
Click to expand...
Click to collapse
It is a good document, but iunfortunately leaves many questions unanswerable.
In Section 6.4 it shows a schematic of an Accessory Charger Adapter which is essentially what we need to achieve simultaneous charging and audio out (or other functions). It does not however give enough detail to implement. I have previously identified a Freescale chip which has been designe dto do this job, but hae been unable to identify any source from which to obtain one. In essence this is aimed at the peripheral manufacturers' -who might wish to design and market eg. a hands free car kit to which you could connect a microUSB On The Go spec device. However so far as I can discover there are no manufactureres who have as yet brought any related device to market. If anyone happens to have found anything somewhere across the globe - please shout !
Regards,
Kevin

[Q] HTC Micro USB to 30 PIN devices

Is there a connector that will enable plugging the Micro USB receptor on the bottom of an HTC One to device with a male 30 Pin plug.
like iHome radios etc....
HTC Micro USB to 30 PIN devices
tito2013 said:
Is there a connector that will enable plugging the Micro USB receptor on the bottom of an HTC One to device with a male 30 Pin plug.
like iHome radios etc....
Click to expand...
Click to collapse
First off, please excuse the lack of links in this response. I am a newb and not allowed to post them.
Unfortunately there is no simple answer to your question, so we have to break it down into parts.
1) If you are looking to simply charge your device through the 30-pin connector then life is good - google "micro usb to 30 pin female" and pretty much whatever you find there should suit your charging needs
2) if you are looking to play audio over your iHome (which I'm sure you must be), then it gets a bit dicey.
Audio over usb on the HTC One was confirmed in this xda-developer post, but you will be more likely to have a working system if you use an audio jack to 30-pin converter. Google "android adapter for ihome" and near the top should be a GottaBeMobile link should have a review that will give you some ideas.
best of luck!

Categories

Resources