cancel
Showing results for 
Search instead for 
Did you mean: 

Extended Advertising and Coded PHY in Broadcast Role

DLoza.2
Associate III

Hello,

I'm trying to program a STEVAL-IDB011V1 board with the Broadcast Role, Extended Advertising and Coded PHY. When I run my program, I got this error:

Error in aci_gap_set_advertising_configuration() 0x82

I know that this error is: Invalid parameters passsed at Host layer. But I don't know what I'm doing wrong.

These are my configurations:

// Init the GAP:

aci_gap_init(GAP_BROADCASTER_ROLE, 0x00, 0x08, PUBLIC_ADDR, &service_handle, &dev_name_char_handle, &appearance_char_handle);

// Gap adv configuration

status = aci_gap_set_advertising_configuration

(

0,

GAP_MODE_BROADCAST,

0,

333*0.635,

333*0.635,

ADV_CH_ALL,

PUBLIC_ADDR,

NULL,

ADV_NO_WHITE_LIST_USE,

127,

LE_CODED_PHY,

0,

LE_CODED_PHY,

0,

0

);

Thanks,

Daniel

3 REPLIES 3
Sebastien DENOUAL
ST Employee

Hi @DLoza.2​ ,

There is a code example for advertising extension usage in BlueNRG-LP SDK.

> Beacon project - Select "ExtendedAdv" configuration.

Also, to activate Extended extension, you may have to take care about BLE Stack configuration.

Indeed, to save RAM/FLAH you can select your BLE stack config and associated BLE features.

FYI, here are possible BLE stack config :

  • BLE_STACK_FULL_CONF => Possible
  • BLE_STACK_BASIC_CONF => not possible
  • BLE_STACK_SLAVE_DLE_CONF => not possible
  • BLE_STACK_SLAVE_DLE_LE_2M_CODED_CONF => not possible
  • BLE_STACK_CUSTOM_CONF (need to enable CONTROLLER_EXT_ADV_SCAN_ENABLED flag) - custom definition in custom_ble_stack_conf.h

Regards,

Sebastien.

DLoza.2
Associate III

Hello again Sebastien,

Thanks for your answer. I was already editing the program that you have recommend me. Also I have defined EXT_ADV_PHY, LE_CODED_PHY and BLE_STACK_FULL_CONF, so I don't think the problem is in the stack configuration.

I have changed some GAP config parameters of the code, but I still have the same error:

Error in aci_gap_set_advertising_configuration() 0x82

My new GAP config:

// Gap adv configuration

status = aci_gap_set_advertising_configuration

(

1,

GAP_MODE_BROADCAST,

0,

(333*1000/625),

(333*1000/625),

ADV_CH_ALL,

PUBLIC_ADDR,

NULL,

ADV_NO_WHITE_LIST_USE,

127,

LE_CODED_PHY,

0,

LE_CODED_PHY,

1,

0

);

I know that this error is: Invalid parameters passsed at Host layer. But I don't know what I'm doing wrong.

Regards,

Daniel

ajeet
Associate II

Hi @Sebastien DENOUAL​ can I use same extended advertisement example code for STM32WB55?