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: CC2564 connection sleep

Part Number: CC2564

Hi,

I'm using the PAN1326B module (based on the CC2564 chipset) with the SPP profile. Everything works fine, but I've noticed that as the SPP connection is established and there is no activity for roughly 20 seconds, the Bluetooth goes in some kind of sleep. Connection is still working fine, yet it takes about 2 seconds to recover as the link becomes active (e.g. some bytes are received). I've already tried without success to disable this through "VS_Enable_Sleep_Mode" and by commenting out the definition of SUPPORT_TRANSPORT_SUSPEND. Can anybode help me out?

Additional info: I'm using STM32F411 as MCU.


Thank you,

Daniele

  • Hi Daniele,

    This could be caused by the sniff mode. Can you please change the following in your openstack() function to disable the sniff mode and see if this delay goes away?

    Change: 

                if(HCI_Command_Supported(BluetoothStackID, HCI_SUPPORTED_COMMAND_WRITE_DEFAULT_LINK_POLICY_BIT_NUMBER) > 0)
                   HCI_Write_Default_Link_Policy_Settings(BluetoothStackID, (HCI_LINK_POLICY_SETTINGS_ENABLE_MASTER_SLAVE_SWITCH|HCI_LINK_POLICY_SETTINGS_ENABLE_SNIFF_MODE), &Status);

    to : 

                if(HCI_Command_Supported(BluetoothStackID, HCI_SUPPORTED_COMMAND_WRITE_DEFAULT_LINK_POLICY_BIT_NUMBER) > 0)
                   HCI_Write_Default_Link_Policy_Settings(BluetoothStackID, (HCI_LINK_POLICY_SETTINGS_ENABLE_MASTER_SLAVE_SWITCH), &Status);

    More reference can be found on this relevant thread : e2e.ti.com/.../1951268

    Best regards,

    Vihang

  • Thank you, that did work out.

    Best,

    Daniele