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.

Send data Android -> CC2541 -> External MCU. Need to modify HostTestRelease firmware or not ?

Other Parts Discussed in Thread: CC2541

Hello,

I want to send data with my Android Smartphone to CC2541 (via BLE), and the cc2541 transfer this data over UART to my external MCU.

My question is simple : We need to modify the HostTestRelease Firmware or not ?

I have one other questions, can we modify the device name via Btool ?

Thanks and kind regards,

Steeve.S

  • Hi Steeve


    Likely, yes, you will need to modify the firmware. In this setup, is the Android the Central and the CC2541 the Peripheral?

    Assuming you maintain the same HW layout as used by the the CC2541EM Host Test Release SDK project (i.e. same UART pin config, etc.), then no, you don't need to modify the FW. However, if you are intending to support a profile or maintain a GATT database, you'll need to rebuild with option to have the GATT database off-chip. You can see some more details on the wiki:

    Also keep in mind that the default FW does not enable power management, this may or may not be an issue for your design.

    Best wishes

  • In this setup, the CC2541 need to be discoverable (so Peripheral), and my Android is the Central (he just need to communicate with my CC2541).
    I have flashed this FW : www.lsr.com/.../tiwi-ub1 (HostTestApp (v1.3.2)).

    I want to do this :
    - My smartphone connect to CC2541.
    - I send a number, like "5".
    - My number is transfered over UART between CC2541 and my external MCU.
    - On my external MCU, i test if number receive from UART is equal to 5 (for example)
    - If number is equal, then a led Turn ON.

    On my smartphone, i can see if led is ON/OFF.

    For this miniproject, do you think i need to modify firmware ?

    Thank you again JXS

    Regards,
    Steeve
  • Hi Steeve,

    Are you using the HostTestApp from TI or LSR? If using from LSR, then you'll need to contact them for what is supported.
    I think it would be best to use a CC2540USB dongle and BTool, then model your setup with the default firmware.

    Best wishes