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.

CC2640R2F: CC2640R2

Part Number: CC2640R2F
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2, BLE-STACK

Hi everyone,

I have some queries related to CC2640R2 software coding.

1) I guess the Frame Format response that we are sending  in ble to communicate from controller to application is {HANDLE,UUID,VALUE} (as from SimpleLink Academy training) , if it is so then what is the Request we are receiving from Application.

2) In LAUNCHXL-CC2640R2, we can access UART from USB probe. If we remove the jumper connection we can use from DIO2 & DIO3 pins for TX,RX operation. Are these pins Software Coded? if so, can we use different GPIO for UART transmission.

3) LAUNCHXL-CC2640R2 is of from part number CC2640R2FRGZ, if i want to use CC2640R2FRSM part number, in CC2640R2 BLE-STACK do i need to change anything in the code.

please let me know regarding these topics.

~Sretha

  • Hey Sretha,

    For the first question, check out The Connections Module through SimpleLink Academy. I think it does a good job of explaining communication between devices. Usually, you'd want to keep the format similar when communicating between devices.

    Secondly, you can remove the jumper from the USB probe and use DIO2 and DIO3 for UART. They are defined in the CC2640R2 LaunchXL Board header files. You may also use other GPIO pins for UART too, just be sure the pins you select are not being used for another purpose.

    Lastly, you do not need to change the BLE-STACK when using a different package. Just modify the application side.

  • Thank you Ammar for your reply,

     I went through the document you suggested, it is describing only till the device is connected. But i want after getting connected, when we press Read Data Button in the Application (in-order to read the data from the device), what is the Request (Frame Format ) it is giving , and what is the response(Frame format) we are sending for Simple_Peripheral SDK example.

    I want the Frame Format of both request and response for reading a value.

    Thanks & Regards

    ~Sretha

  • Hey Sretha,

    I'm a little confused as to what you're asking. There is no mandatory frame format when setting a GATT Characteristic value, you can essentially send any information in any format. Once the connection is established, you can send a notification to the GATT Client every time you update a particular characteristic's value. Once the notification is received, simply read the characteristic's value.

    This is explained in more detail in the Custom Profile Simple Link Academy Module.

    Does that help?

  • what i understood is, when we press the Read Button in the Mobile Application (BLE Scanner), it is sending a pointer which is getting updated in ReadAttrCB (read attribute callback function) and the updated value is getting displayed in the Characteristic value. Am I correct?

  • Hey Sretha,

    Yes, you're on the right track!

    Please let me know if you have any further questions I can answer for you.

  • Thank You Ammar For your help.