2022-02-25 01:51 AM
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
2022-02-25 03:20 AM
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 :
Regards,
Sebastien.
2022-03-15 04:14 AM
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
2022-03-22 08:43 AM
Hi @Sebastien DENOUAL can I use same extended advertisement example code for STM32WB55?