In order to learn what it is that the windows tools are doing with the
data cable I installed action on the serial port using the serial port
snooping util Portmon. I
had to select the "show hex data" option to get the hex values of
non-ASCII chars.
charger.exe
Charger.exe is the small tool to enable the built-in charger. The
captured log (portmon-charge.LOG) shows the
Windows tool reading and setting to port parameters. Essentially this
is what goes on:
- Set parameters
- Set RTS and DTR high
- Set RTS high and DTR low
- Send 'U' 'U' 'U' 'U' 0x4 0x1
- Close port
PhMgr.exe
PhMgr.exe is the tool that manages the phone book, calendar, ring tones,
etc. from the PC. It seems to more of the same RTS/DTR toggling
nonsense:
- Set parameters (rate 115200, 9600)
- clear RTS, clear DTR
- Set parameters
- clear RTS, set DTR
- Set parameters
- set RTS, set DTR
- Write \r "ATE0" \r
- Flush
- set RTS, clr DTR
- Write "UUUU" 0x05
- Flush
- Read (11): "UU" 0xA5 \b "MA-CABLE"
- set RTS, clr DTR
- Write "UUUU" 0x06
- Flush
- Read (9): U 0xA5 0x06 0x03 0x00 0x01 0xFF 0x06
- set RTS, clr DTR
- Write UUUU 0x07
- Flush
- Write (16): DB 68 D2 D3 C0 1D CB E3 E5 F1 C2 DF 88 7D 00 C1
(an other run returned 1B E2 B9 24 C4 2E 3F 8F CA 84 46 9E 6C 77 21 2C)
- Flush
- Read (12): 55 A5 09 46 BB 93 DB F1 94 4E DC 6B
(an other run returned 55 A5 0C DF 08 C9 63 16 0C 42 81 FB 02 F6 42 )
- Close
- Open
- Set parameters: chars same, timeout different, rate: 115200
- ATZ
- AT+CGMM
Resources