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/LAUNCHXL-CC2640R2: HostTest Example not receiving Frame from UART

Part Number: LAUNCHXL-CC2640R2

Tool/software: TI-RTOS

Hello,

I'm attempting to combine the ProjectZero and HostTest projects so that I have my own BLE Profile but also UART duplex communications. When testing the HostTest project I can write fine to the UART using the NPITask_sendToHost() function. However, if I send characters via the UART I do get the NPITASK_TRANSPORT_RX_EVENT event but never the NPITASK_FRAME_RX_EVENT which eventually calls the callback function in HostTest.

The HostTest project has been left unaltered. And I am simply using the XDS110 Class Application/User UART port connected to Putty with the standard config and now flow control.

Is there an additional step I am forgetting to signal the end of a Frame with NPI over UART?

Or, should I be using SDI as represented in the SPP_BLE_Server and Client Examples?

The SDI examples do forward my UART received chars to the application.

Thanks for your time!

Regards,

Brett

  • Hi Brett,

    If you wish to develop a fully embedded standalone SoC application with UART communication added, then I do not recommend using HostTest at all. HostTest is the BLE network process implementation and expects that the host processor will perform some basic initialization to before use.

    Instead, I would recommend staring from your existing solution using project zero and modifying to add in the UART functionality.

    Just FYI the reason for the issues with Host Test is that NPI expectes all data to be be wrapped in a HCI frame over UART. SDI is a slightly modified NPI layer to not enforce the framing restriction.
  • Thanks for the reply Sean,

    SDI is working great with ProjectZero example.

    Regards,

    Brett