3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Android G1 Serial to USB Cable

Step 4Verify the Data Wire Connections

Verify the Data Wire Connections
«
  • g1_serial_connection.jpg
  • g1_serial_minicom_settings.jpg
  • g1_serial_debug.jpg
  • g1_serial_debug_ps.jpg
  • g1_serial_debug_ps_results.jpg
= 1. If needed, install any drivers necessary for the USB to 2.8v serial adapter you used.
= 2. Download a serial console app for your computer. For OS X/Linux users, the command line minicom or screen are good choices. I will be using minicom under Ubuntu.
= 3. Plug in the converter you made into a USB port on your computer. Do NOT plug it into the phone yet.
= 4. Open up your serial console app and see if the device is detected. For me it shows up under /dev/ttyUSB0 and minicom picked it up automatically. You may need to configure your software.
= 5. With the serial port now recognized, now you need to change the baud rate/stop bits, and flow control. To change these in minicom, type Ctrl-a then type Shift-O (O as in Obama). A configurations dialogue will pop up. You should choose "serial port setup", hit enter then change the values to be the following:
  • Bps/Par/Bits: 115200 8N1
  • Hardware Flow Control: No
  • Software Flow Control: No

= 6. Close settings and wait for a connection now. You can exit settings in minicom by hitting the escape button.
= 7. Go grab your G1 Phone and make sure it has a good charge. Once it does, you should go to Settings->Sounds and Display->Screen Timeout and increase it to 10 Minutes or Never Timeout. From preliminary tests, It seems serial doesn't work with the display off.. but this has not been verified.
= 8. Plug the HTC ExtUSB connector into the phone.. if you smell anything funny or see sparks, quickly disconnect the connector from the phone then the USB cable and review the prior steps to see what you missed.

= 9. If all looks and smells ok, take a look at the serial console output, it should say "debug>" immediately. This reflects that you at least soldered the GND and RX wires correctly, woo!**
= 10. Try typing "ps" and hit enter, if you see ps appear and lots of text scrolls by when you hit enter, that means you cable works fine. Neat!**

**If you do not see the expected "debug>" text or you don't see what you type, hit enter a few times. Sometimes the communications can get garbled since no software/hardware flow control is used. If that doesn't work, you can try restarting your console app, verifying serial communication settings, unplug/plug in the phone, and finally double checking what you soldered.

= 11. Trim the excess wires off both boards.
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Jan 25, 2010. 10:26 PMmranalytical says:
The best way for me to see the phone sending commands to the PC was to type the following:

$ su
# echo 'hello' > /dev/ttyMSM2

It is also helpful to type 'ash' in so that you can recall commands:

$ su
# ash
/ # echo 'hello' > /dev/ttyMSM2

Then you can use ALT+trackball-up to recall previous commands.
Feb 18, 2010. 8:19 PMandrecosta2005 says:
Dude,

  how to dump the data on PC side ? tks
Feb 20, 2010. 11:58 AMmranalytical says:
 I had PuTTY open as a serial client on the PC. Other serial apps should work too but I've had issue with the built-in Hyperterminal so I prefer PuTTY.
Feb 22, 2010. 1:34 PMandrecosta2005 says:
thanks dude!!! any tip for linux (ubuntu) env ?
Feb 24, 2010. 1:09 PMWiebel says:
minicom or
screen /dev/ttyUSB0 (or whatever)
Jan 23, 2010. 7:24 PMmranalytical says:
Step 5 mentions 115200bps but that wasn't working for the Sparkfun CP2102 device. I used 9600bps and it then worked like a charm.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
1
Author:macpoddotnet