Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC2630: How do I change the current time in the destination device?

$
0
0

Part Number:CC2630

Tool/software:TI-RTOS

Hello!

I use the CC2630 as the end device and the СС2530 as a router and coordinator.

I use Z-Stack Home 1.2.2.

I want to change the current time in the end device and in router and coordinator.

To get the time, I use the code:

timestamp=Timestamp_get32();
Timestamp_getFreq(&freq);
seconds=(float)timestamp/freq.lo;

After reset, the timestamp is always 0.
1. How do I set (change) the timestamp to the current time?
2. I want to change the current time on the coordinator using UART, how can I do this? Is there a standard function?
3. I want to change the current time on the end device with the help of the coordinator. How can i do this?


Viewing all articles
Browse latest Browse all 262198

Trending Articles