This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Chronos watch code

Other Parts Discussed in Thread: SIMPLICITI

Hi there TI community, 

I have been working with the Chronos watch code. I would like to have a visual display of the acceleration data onto the watch face while at the same time transmitting the acceleration data with the "ACC" function. I have looked at the "RFsimplicity" code and it seems that if I was able to just change line 1 from displaying the clock data, to then change it to displaying the "ACC" data. I changed the following lines of code in the "rfsimplicity" file:

(CODE LINE 220) :

void start_simpliciti_tx_only(simpliciti_mode_t mode)

{

    // Display time in line 1

    clear_line(LINE1);

    fptr_lcd_function_line1(LINE1, DISPLAY_LINE_CLEAR);

    display_acceleration(LINE1, DISPLAY_LINE_UPDATE_FULL); //edit line. 

     // dislplay_time(LINE1, DISPLAY_LINE_UPDATE_FULL); // this line was the original code

....

I also edited this line so that the Acceleration data will be refreshed every second instead of the clock

....

(line 429):

    // Update clock every 1/1 second

    if (display.flag.update_time)

    {

        display_acceleration(LINE1, DISPLAY_LINE_UPDATE_PARTIAL); edit line

        display.flag.update_time = 0;

 

        // Service watchdog

        WDTCTL = WDTPW + WDTIS__512K + WDTSSEL__ACLK + WDTCNTCL;

    }

....

the watch will display the acceleration data normally before the watch starts the transmission, 

LINE1: Y0.00

LINE2: acc

once i press the transmit button (down arrow) the clock no longer appears on line 1 goes away and is replaced with

LINE1 : (BLANK)(BLANK) . (BLANK)(BLANK)  which is the format of the "acceleration.c" function but it does not display any numbers. 

LINE2: ACC 

can anyone tell me why the acceleration data is not being displayed while i transmit?

Thanks for the help

--David

 

  • I recently discovered why this was not working for me. For anyone with the same problem I did the following:

    Before I was just executing the "ACC" on the watch face and it would make sure there was a receiver before it would transmit any type of data. However it would not go into displaying the acceleration data because I did not have a receiver active to kick the watch out of "looking for a receiver" loop. Once I plugged the USB receiver into my computer and started the wireless access point the acceleration data was then displayed onto the watch face. 

     

**Attention** This is a public forum