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.

RTOS/CC2564CSTBTBLESW: PowerSaving in Connected mode

Part Number: CC2564CSTBTBLESW
Other Parts Discussed in Thread: CC2564C, CC2564

Tool/software: TI-RTOS

Hi Everybody,

I am Currently Working On STM32F411RE With CC2564 Controller Combined Project.

In Advertising Mode, there is no problem.

Here i am facing some problem in CONNECTED MODE Power consumption. 

Recreation:

1. I started advertising in my controller.

2. I connected SPP and BLE to iPhone.

3. After Connected, I am getting Peak Pluse every 30ms.


I tried to find the reason. But i am unable to find it.

Can i know, Why i am getting this peak pluse after connected.

And Please help me to find this reason and to solve this Problem.

.

  • Mano,

    By initial observation, it appears that the device could still be advertising once connected.

    You may refer to the BLE Stack. There should be a setting to stop advertising once connected.

    I will also have this thread moved so you can get better assistance.

    Derrick
  • Hi Mano,

    Also to add to Derrick's comment above, this could be also due to the BLE connection interval set between the SPPLEDemo and the iPhone. You can find out the negotiated connection interval using the etLE_Connection_Parameter_Updated event of the GAP_LE_Event_Callback.

    If this connection interval was 30ms for the connection between the SPPLEDemo and iPhone, it would explain the peak every 30 ms. In BLE connection, the 2 devices will wake up and communicate every connection interval. So forcing a larger connection interval is one of the tricks to bring overall power consumption down.

    Hope this helps.

    Best regards,
    Vihang

  • Hi Vihang,

    Thanks for your Valuable reply,

    Here the following parameters used by me..!!

    /* Initialize the connection parameters. */
    ConnectionParameters.Connection_Interval_Min = 120;
    ConnectionParameters.Connection_Interval_Max = 240;
    ConnectionParameters.Minimum_Connection_Length = 0;
    ConnectionParameters.Maximum_Connection_Length = 10000;
    ConnectionParameters.Slave_Latency = 4;
    ConnectionParameters.Supervision_Timeout = 500;

    is this parameters are correct?

    if its not or if i miss understood- Please help me, where exactly i want to change please..

    Thanks in advance.

  • Hi Vihang,

    I am still waiting for your Valuable reply...

    Please update us at the earliest.

  • Hi Vihang,

    I am also stuck with the similar issue. can you please help us to resolve this at the earliest.

    Thanks,

    Best,

    Krish

  • Hi Vihang,

    I am still waiting for your Valuable reply...

    Please update us at the earliest.

  • Mano,

    Sorry for the delay. Looking at the connection parameters above, it looks like the connection interval is not 30ms. In this case, can you please capture the CC2564C Firmware logs? We can look for any other periodic process (i.e. page scan/inquiry scan) running that could cause this.

    CC256x Logger User's Guide : 

    Best regards,

    Vihang

  • Hi Vihang,

    Thanks for your valuable reply,

    As you suggested, I capture the CC2564C Firmware logs. Here i attached the log file. Kindly Please look at it. And help us to solve this issue.

    I am waiting for your reply.

    Logger.rar

  • Mano,

    Did you capture the logs using the correct settings documented in the User's Guide? Either the COM port settings were incorrect or the correct ili and xml files were not selected when capturing these logs.

    I am not able to get any information from this capture.

    Best regards,
    Vihang
  • Hi Vihang,

    Thanks for your valuable reply,

    As you suggested,

    Again i checked it.

    And again I capture the CC2564C Firmware logs.

    Here i attached the new log file.

    Kindly Please look at it. And help us to solve this issue.

    This is new log file.

    I am waiting for your reply.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/538/LoggerWorkspace_5F00_ini_5F00_xml_5F00_File.ini       

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/538/LoggerWorkspace_5F00_ini_5F00_xml_5F00_File_5F00_criteria.ini

    TiLogFile4.rar

  • Hi,

    These logs are not in correct format. Please make sure you are capturing the logs from the TX_DBG pin of the CC256x like mentioned in the Users Guide.

    For example, please see the attached capture. This is how the capture should be.

    5545.Example.zip

    Best regards,

    VIhang

  • Hi Vihang,

    Thanks for your valuable reply,

    As you suggested, I capture the new  CC2564C Firmware logs. Here i attached the log file. Kindly Please look at it. And help us to solve this issue.

    I am waiting for your reply.

    Logger_23.03.2017.rar

  • Mano,

    These spikes every 30ms are because of the Connection Interval (CI) of the BLE connection. The CI is negotiated between the 2 devices when making connection and it is 30ms in this case.

    Best regards,
    Vihang
  • Hi Vihang, 

    Thanks for your valuable reply.

    I gone through my code as per your suggestion. But i did't configure Connection Interval 30 ms.

    My configuration goes like this:

    /* Initialize the connection parameters. */
    ConnectionParameters.Connection_Interval_Min = 120; //50;
    ConnectionParameters.Connection_Interval_Max = 240; //300;
    ConnectionParameters.Minimum_Connection_Length = 0;
    ConnectionParameters.Maximum_Connection_Length = 10000;
    ConnectionParameters.Slave_Latency = 4;
    ConnectionParameters.Supervision_Timeout = 500; //6000;

    Kindly Please help me to solve this issue.

  • Hi,

    The above settings are used when initiating the connection from the CC2564. When a remote device (i.e.) the phone initiates the connection, these values of the CI are note used.

    In order to increase the connection interval, you will need to use the GAP_LE_Update_Connection_Parameters() API.

    Mano Kutty said:
    Kindly Please help me to solve this issue.

    This is a non-issue. If you have a connection, the device will consume power to communicate with the remote device at every connection interval.

    Best regards,
    Vihang