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.

CC2640: Setting up Host-Test in Peripheral Advertising mode.

Part Number: CC2640

Hi,

I have Host-Test running on a CC2640. An EXTERNAL microcontroller is communicating with CC2640 over a Serial interface.

I am attempting to put the Host-Test in Peripheral Advertising mode. My question is;

What is the exact command sequence to put Host_Test in Peripheral Advertising mode?

...Any help will be greatly appreciated.

Kesr

  • Hi Kesr,

    I will have to get back with you to look into this further for this version of the BLE Stack, but I the following sequence should be similar to what you will need to configure host_test in a peripheral mode:

    1. Send GAP_DeviceInit command with the peripheral GAPRole. (You may have to send a reset device command before this)
    2. Send GAP_MakeDiscoverable command.
    3. Send GAP_UpdateAdvertisingData command.

    There might be more steps, but hopefully that can get you started until I can check this out further. I would recommend looking at the simple_peripheral example to see how the peripheral GAP role and advertisement data is setup in that example. You can then map the commands in simple_peripheral.c and peripheral.c to the necessary HCI commands that you will need use in your application.

    Regards,
    Michael