Other Parts Discussed in Thread: SIMPLICITI
Hi,
recently I have bought eZ430-Chronos-868 (with wite pcb) on Chronos Black Friday Deal. It is my first contact with microcontrollers and RF, so please forgive me my possibly unintelligible questions. I don't have Windows installation, so I focused on using Chronos on
Linux Ubuntu. I just downloaded "Linux Joystick & Mouse driver" (http://processors.wiki.ti.com/index.php/Linux_Joystick_%26_Mouse_driver) to try out the PC-Chronos communication. Unfortunately it did not work - RF AP was plugged to USB port (when plugged, green diode light up for a second and then turned off) and Chronos watch could not connect to RF AP (down button in Acc mode). Then I downloaded software containing eZ430 Chronos Control Center fo linux (http://www.ti.com/lit/zip/slac388) and it worked. In the SimpliciTI Acc/PPT tab, after pressing Start Access Point button, the green LED on RF AP started to blink, I managed to connect Chronos Watch by pressing the down button and finally I have seen the accelerometer charts. Blue Robin Heart Rate Simulator did also work. Then I returned to "Linux Joystick & Mouse driver" and it also started to work.
I have done some investigation and find out that it is probably a problem with initialization of communication with RF AP. The only significant difference is that, Control Center invokes the following code after opening the port /dev/ttyACM0
# Reset hardware
BM_Reset
after 20
# Flush channel
for {set i 0} {$i < 10} {incr i} {
BM_GetStatus
after 10
}
where BM_Reset and BM_GetStatus are functions that send [FF 01 03] and [FF 00 04 00] respectively. That is OK, but why for ten times.
Further, to isolate the problem, I have used gtkterm (gtkterm is a simple GTK+ terminal used to communicate with the serial port) to open port with proper settings (115200,1,N,8) and send commands directly to RF AP. When I send [FF 07 03] which is intended to start AP, nothing happens -- no green LED blinking and no response from AP -- I should receive [FF 06 03]. But after sending [FF 07 03] for 21 times it start to work -- I get replay [FF 06 03] and LED is blinking -- AP is ready for communication with Chronos watch. After that RF AP is fully responsible for commands -- [FF 09 03] to stop AP, [FF 08 07 00 00 00 00] to receive accelerometer data, etc.
It is probably connected with the number of bytes send and not with the actual number of commands send 21 x [ff 07 03].
Is there something wrong with my AP? Is it specific to CC1011 (white pcb)? Should it work just after the first [FF 07 03]? Or possibly this is just the charm of the serial port communication? I will be very grateful for any help with this...
Thanks,
Sebastian