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.

LAUNCHXL-CC1352R1: How to control chip sleep & wakeup timing?

Part Number: LAUNCHXL-CC1352R1


Greetings,

I'm using example "dmm_wsnnode_remote_display_cc1352r1lp_app". While debugging, I noted that the chip goes sleeping some times even inside loops.

1. What causes the chip to sleep if it's inside a loop? is there some function that is called each iteration in the background that I need to check?
2. How do I control the timing of sleep & wakeup of chip? Is there a function that I can call to sleep immediately and wakeup after sometime?

* James *

  • Hello,

    This is going based on the application that it is running (in this case wsn and ble), you will need to look into these tasks and see whenever it is "pending" on an event , semaphore, or message queue. Whenever it is sleeping its because there are no processes to execute, if what you are trying to control advertisement time or frequency of sending messages, then you will need to change the #defines of each task.

    Regards,
    AB
  • Thanks AB for your reply.

    Which #defines do I need to change to control wakeup & sleep?

    Also, I need the chip to sleep immediately in a specific time & wakeup in a specific time. How can I do this if there is no function to sleep directly?

    * James *
  • The #defines can be found on the main application source(simple_peripheral.c or simple broadcaster.c or simple_central.c)
    If you need to sleep at a specifici time, you can call the sleep(usec) API.

    Regards,
    AB