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: simple_serail_socket_demo

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

Hello team,

  1. What do I need to do for change "simple_serail_socket_server" example (https://github.com/ti-simplelink/ble_examples/tree/simplelink_cc2640r2_sdk-2.20/examples/rtos/CC2640R2_LAUNCHXL/bleapps) from SDK 2.20.01.01 to lates 3.10? Could you please instruct me how can I use this example on most upgraded SDK? Actually, I don't know which sources or/and libraries I must copy to the latest SDK project…
  2. Advertisement -  I would like to control the advertisement start and stop. According to "TI BLE5-Stack API documentation" I must use:  GapAdv_create() , GapAdv_disable(),GapAdv_enable() . I didn't find this API's in "simple_serail_socket_server" example project which was sent by you. I succeeded run this example – and used found(and connected) the example code advertisement, but I don't know how can I control the advertisement in code. Could you describe the advertised sending method on the example, please?
  3. Could you instruct me about add encryption (bonding) to the example? I tried to add the encryption according to "…docs/ble5stack/ble_user_guide/html/ble-stack-5.x/gapbondmngr.html#selection-of-pairing-method", but didn't succeed add "gapbondmgr.c" and "gapbondmgr.h" as it describes in the document.

I'll really appreciate your kind support, Thanks in advance.

Best regards,

Shai

  • Hi Shai,
    1. I suggest you review the migration guides in SDKv2.30/2.40/3.10 to understand the necessary changes.
    2. The example is based on blestack, not ble5stack, so those commands does not apply. Please look at the BLE-Stack UG.
    3. Again, try with blestack instead.