Hi all,
I monitored the communication between eZ430-Chronos and Control Center Software (CC) and found some information about the protocol.
Firstly CC opens the port corresponding to "TI CC1111 Low-Power RF to USB CDC Serial Port" using the settings 115200,1,N,8. I think CC firstly search for COM ports matching some criteria and opens it.
After that it continuously send ping requests in the background even when he reads any acc data in order to know that AP is working and not disconnected.
When you push the button "Start Access Point" it sends a request to let AP know that. After that it begins polling the AP for valid acc data.
While we are waiting for TI to release some documentation or source code it may be useful for impatient guys.
Packet format:
PC-to-Ap: 2 byte command + 1 byte packet length + n byte packet load
AP-to-PC: 2 byte command + 1 byte packet length + n byte packet load
Some commands:
Background polling
----------------------------------------------------------------------
PC to AP : ff 20 07 00 00 00 00
Response : ff 06 07 xx xx xx xx
xx xx xx xx: 4 byte watch address
Start Access Point:
----------------------------------------------------------------------
PC to AP : ff 07 03
Response: ff 06 03
Command before each Request Acc. data (functionality not known):
----------------------------------------------------------------------
PC to AP: ff 00 04 00
Response : ff 06 04 03
It may be returning the state of the watch or AP
Request Acc. data:
----------------------------------------------------------------------
PC to AP: ff 08 07 00 00 00 00
Response: ff 06 07 tt xx yy zz
tt: data type (ff: no data, 01: valid acc data)
xx, yy, zz : acc data
Acc Reading sequence:
1. Open the port using the settings 115200,1,N,8.
2. Send background ping requests (Optional)
packet : ff 20 07 00 00 00 00
3. Send "Start Access Point" command
packet: ff 07 03
4. Send the acc data request command
packet : ff 08 07 00 00 00 00
5. if you want to get new acc data go to step 4