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.

CC2564: sleep mode

Part Number: CC2564

I am using STM32F4 + CC2564 to debug SPPdemo. There is a problem with sleep mode:
>>The current sleep mode, CC2564 will automatically go to sleep when there is no connection, automatically wake up after connection
How to change to the following sleep mode:
>>CC2564 don't sleep automatically, I let it sleep by sending HCI command, is there any control method?

  • user524543 said:
    >>The current sleep mode, CC2564 will automatically go to sleep when there is no connection, automatically wake up after connection
    How to change to the following sleep mode:

    What you are referring to is eHCILL sleep protocol. You can turn it off by changing the following in the main.c of the SPPDemo.

    Original : 

       /* Configure the UART Parameters.                                    */
       HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, HAL_HCI_UART_MAX_BAUD_RATE, cpHCILL_RTS_CTS);

    Disable HCILL :

       /* Configure the UART Parameters.                                    */
       HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, HAL_HCI_UART_MAX_BAUD_RATE, cpUART_RTS_CTS);

    user524543 said:
    I let it sleep by sending HCI command, is there any control method?

    The sleep mechanism is automatic. It can be either turned off or on. But there is no control command to put CC2564 into sleep mode the way you described. 

    Best regards,

    Vihang

  • Thank you very much for your reply. I understand this question.
    There is another problem. After the CC2564 sleeps, it will wake up periodically to send broadcast messages, and will sleep again after sending.

    In order to reduce the current consumption, I want to adjust the relevant time:

    1. Can the time interval of CC2564 wake-up be modified?
    2. Can the broadcast time be modified?

  • user524543 said:

    In order to reduce the current consumption, I want to adjust the relevant time:

    1. Can the time interval of CC2564 wake-up be modified?
    2. Can the broadcast time be modified?

    Some of the timing parameters can be adjusted using the following vendor specific HCI command.

    http://processors.wiki.ti.com/index.php/CC256x_VS_HCI_Commands#HCI_VS_HCILL_Parameters_.280xFD2B.29

    Since the HCILL protocol requires both host and controller to communicate in order to change state, setting aggressive timing (for lower power consumption) may result in race conditions. So you may need to experiment with the parameters in your system to find a good balance.

  • Ok, let me see how to change it, thank you very much again.