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.

Write characteristic value to CC2541

Other Parts Discussed in Thread: CC2541

Hi, I am new for CC2541.

I have CC2541 keyfob kit with loaded in the keyfob demo firmware.

I mange to communicate keyfob with Btools and trigger the buzzer.

Currently, I am testing CC2541 keyfob with android phone. With android BLE reference example, I able to establish the pairing and get the characteristic uuid from each service. I would like to write the characteristic value to keyfob to trigger on the buzzer, but I failed to do so.

Would like to seek some guidance and reference coding on how to write to ble server.

THANKS.

  • Hello,

    You can reference the sample Android app source code which can be found here: git.ti.com/sensortag-20-android

    Although this code is for the SensorTag, it does show you how to write characteristic values. You can use this to apply it to your custom app.

    Best wishes
  • Hi JXS,

    Thanks for the reply and guidance.
    I have another question, what is the data format to send out information from android phone to CC2541?
    From BTools, it sends out 01 92 FD 05 00 00 28 00 02 to trigger the buzzer, do I need to send this code instead too instead of just sending the characteristic UUID and value (0x02)?
    Thanks.