Step 4Verify the Data Wire Connections
= 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
= 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 Step | Download PDFView All Steps | Next Step » |















































$ 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.
how to dump the data on PC side ? tks
screen /dev/ttyUSB0 (or whatever)