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.

CC2640R2F: Simple Serial Socket - Latency for 1 Byte at 100ms

Part Number: CC2640R2F

Hi,

i have two CC2640R2 Launchpads, one as client and one as server with TI Simplelink SDK 3.30.00.20 and Simple Serial Socket example.

  1. How do i know if they are communicating with 2mbps?
  2. Can i set the speed to be 2mbps on application side?
  3. Is there a way to minimize the latency time? (Time from RX UART Launchpad1 to TX UART Launchpad2) 

I set up a simple python serial application to open both UART and send and read 1 byte. Using the oscilloscope, i notice that the latency from the time that UART RX (Launchpad1) arrives and is send to UART TX (Launchpad2) takes over 50ms.

Is it possible to reduce this value below 1ms? How can i speed up the communication and reduce the latency?

  • Hi,

    Given your questions, I assume you are using the BLE5 example. Let me know if I am wrong.

    1- I don't think the devices are communicating using the 2M PHY. At least, the OOB example only uses the 1M PHY.

    2- You can modify the embedded code in order to only use the 2M PHY. Please review the simple_peripheral example to see how to change the PHY.

    3- A few ideas: increase the UART baud rate, use shorter UART buffers, use a faster PHY, use a smaller connection interval. That being said, and considering the minimal connection interval is 7.5ms, it is NOT possible to have a latency around 1ms.
    I think 20ms is a more realistic goal.

    I hope this will help,

    Regards,

  • Hi Clement,

    thank you for your answer. So CC2640R2 will not work for my application i guess.

    Do you know if TI has any RF front end that has high data output rate with low latency( Below 1ms or 100us or 10us)?

    I dont have to be compatible with other devices, i can do my own dummy stack to send and receive, but i need low latency and at least 230,4 kbps.

    Best regards,

    Michael