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.

CC2541 Firmware Code

Other Parts Discussed in Thread: CC2541

dear all

who can tell me, we need function 

put button long time(5~8 Sec), the CC2541 chip can to Sleep, another put button long time(5~8 Sec),the CC2541 can wake up.

  • Hello Jerry,

    The best way would be to look at the examples of the keyfob and simplePeripheral.  In the KeyFob _HandleKeys function you can put your code to handle a held down key.  You can also add an IF statement that would do what you want when two keys are pressed at the same time.  That way you would not need to worry about timing.

    Thanks,

  • hi greenja

     

    1. we wnat to know, how to write this function, can you provide sample code, put button long time(5~8 Sec), the CC2541 chip can to Sleep, another put button long time(5~8 Sec),the CC2541 can wake up. we need to know how to do sleep mode, then how to do wake up. thanks.

  • Sure buddy!

    I can even come to your location, install it and show you how to use it!

    I will have to add you to my list of other people that I am writing their code for them as well as all the other work they should be doing for themselves.  The estimated delivery time for your particular code would be January 25, 2021.

    I would suggest that while you are waiting, you go through the sample code in BLE v1.3.  You just might be able to do it yoursef before I do.

  • hi greenja

     

    we only need example code or technology file, how to do , use CC2541 go to sleep mode and wake up.

  • Hi Jerry,

    I think the Greenja has given you all the information you actually need to do what you want, you just have to look a bit around on the TI web pages to find what he is recommending.

    You can start off by downloading the BLE stack here: http://www.ti.com/tool/ble-stack

    Cheers,

    Fredrik