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.

error returning from VS_Update_UART_Baud_Rate function

I am using  the TI Bluetooth stack with PAN1326B module.  The stack is initialized successfully with  any  baud rate with OpenStack. call However If I try to chage the baud rate after the stack is initialized and running using VS_Update_UART_Baud_Rate function  it come back with an error. I found that if I change the HCI Serial  protocol to cpUART_RTS_CTS from  cpHCILL_RTS_CTS the problem goes way. What could be the problem here.  I need to change the baud rate between high speed and low speed to save power during idle time. Do I need to use the HCILL protocol.

Thanks

Murshed

  • Hi Murshed,

    Can you tell me what error you are getting with the VS_Update_UART_Baud_Rate() call?

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Thanks for looking into the issue. The error message that I am  getting is -14. If I look into the definition of error code in BTError.h this means as follws:

    #define BTPS_ERROR_HCI_DRIVER_ERROR                             (-14)

    This problem happens with cpHCILL_RTS_CTS and not with cpUART_RTS_CTS.

    Looking further into it I found any attempt change the baud rate after download of the Patch  HCILLPatch will cause this error.

    Thanks

    Murshed

  • Hi Murshed,

    Can you try the "SetBaudRate" command from one of the sample apps (SPPLEDemo for example) and see if that works?
    I tried the same, and did not see any issue with changing the baud rate.

    Btw, which MCU is this, and which SDK release?

    Regards,
    Gigi Joseph.