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: Adv_create command issue during coded phys are used

Part Number: CC2640R2F

Hi,

I am using SDK 2.20.00.49 with host test example.

I want to test BT5 functionality for advertisement purpose. So i used one of the command "GapAdv_create" to make adv packet setting and i am doing S8 coded phy for both primary and secondary, but when i set multiple properties in this command like scannable,connectable & legacy then this command is not working but when i use single property at a time like connectable then it works.

1) Send_GapAdv_create 0x0001, 160, 1600, 0x07, 0x01, "00:00:00:00:00:00", 0x00, 127, 0x03, 0x03, 0 

Working

2)Send_GapAdv_create 0x0013, 160, 1600, 0x07, 0x01, "00:00:00:00:00:00", 0x00, 127, 0x03, 0x03, 0

Not working

Regards,

Bhavin

  • Hi Bhavin

    If you set the advertising type to Legacy, it will not use 2M or coded phy. It will default automatically to the 1M phy as legacy advertising can not be done on the 2m or coded phys.

    When you send the command Send_GapAdv_create 0x0013, 160, 1600, 0x07, 0x01, "00:00:00:00:00:00", 0x00, 127, 0x03, 0x03, 0 you have activated legacy thus not working since the spec doesn't allow it.
  • Hi Evan,

    Ok but if i set connectable and scannable at same time even though it returns INVALID parameter ( Status = 0x02 ).

    Following is the command

    Send_GapAdv_create 0x0003, 160, 160, 0x07, 0x01, "00:00:00:00:00:00", 0x00, 127, 0x03, 0x03, 0

    Regards,
    Bhavin
  • Bhavin,

    With your settings, I don't see Status = 0x02 i get Status =0x12.

    Also, if you want to test extended advertising, you could try it out in simple_peripheral in the CC26x2 SDK? There is a second advertising set that is long range connectable. You could follow that, use that to evaluate and if you wish to use host test, follow the same code settings in simple_peripheral for btool.

    Also, for more inforomation on extended advertising, i recommend this video: training.ti.com/what-bluetooth-5-and-when-do-i-use-it
  • Hi Evan,

    Thanks for response.

    Ok i cant say why you are getting 0x12.. meanwhile its no matter as it is not success.

    I can't use simple peripheral example because my design of application it self is such that we need to use host test only.

    So question is is it possible to set both characteristics scannable and connectable simultaneously ?

    Regards,
    Bhavin
  • Hi Bhavin,

    If you're using extended advertising (i.e. not legacy), the Bluetooth Core Spec does not allow advertisement packets that are both connectable and scannable.

    You will have to choose either:
    - legacy, scannable and connetable or
    - extended (not legacy) and scannable or
    - extended (not legacy) and connectable