Extended connectable Advertising and Scan Response Data Setup Failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Extended connectable Advertising and Scan Response Data Setup Failed

跳至解决方案
3,675 次查看
nidhintomy
Contributor IV

I am using 'frdmkw38_adv_ext_peripheral_bm' example.

I tried to add scanresponse data in connectable advertising. But returns 'gAdvertisingCommandFailed_c'.

How to implement scan response data with connectable advertising in extended advertising feature ?

Best Regards,                                                                                                                                                 Nidhin

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
3,637 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello,

Your understanding is correct. According to the Bluetooth 5.0 Specification, advertising cannot be scannable and connectable at the same time for this type of advertisement.

EduardoZamora_0-1667238794182.png

Regards,
Eduardo.

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,662 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello,

gAdvertisingCommandFailed_c event is received when advertising could not be enabled or disabled. Reason should be contained in gapAdvertisingEvent_t.eventData.failReason.

Also, please take a look at the Bluetooth Low Energy Demo Application User's Guide, section 5.15 Extended Advertising Peripheral and Extended Advertising Central; and Bluetooth Low Energy Application Developer's Guide, section 4.2.1 Advertising (Peripheral setup). You can find these documents inside the KW38 SDK doc folder > docs > wireless > Bluetooth.

Regards,
Eduardo.

0 项奖励
回复
3,657 次查看
nidhintomy
Contributor IV

Hi @EduardoZamora 

I think i found the answer.

 

 

 

bleResult_t Gap_SetExtAdvertisingData
(
uint8_t handle,
gapAdvertisingData_t* pAdvertisingData,
gapScanResponseData_t* pScanResponseData
);

 

 

 

Either of the pAdvertisingData or pScanResponseData parameters can be NULL, but not both. For extended advertising (BIT4 = 0) only one must be different than NULL – the scannable advertising bit (BIT1) indicates whether pAdvertisingData (BIT1 = 0) or pScanResponseData (BIT1 = 1) is accepted. The total amount of Advertising Data shall not exceed 1650 bytes.
Application should wait for a gExtAdvertisingDataSetupComplete_c event in the Generic Callback.

So it is either connectable advertising or scannable advertising.

Also from BLE SIG V5.3 Doc i found this->

Screenshot (69).png

So What i understand is we can't use both connectable and scannable in BLE Extended advertising.

Could you please confirm this ?

 

Best Regards,

Nidhin

 

0 项奖励
回复
3,638 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello,

Your understanding is correct. According to the Bluetooth 5.0 Specification, advertising cannot be scannable and connectable at the same time for this type of advertisement.

EduardoZamora_0-1667238794182.png

Regards,
Eduardo.

 

0 项奖励
回复
3,627 次查看
nidhintomy
Contributor IV

Hi @EduardoZamora 

Thanks for confirming.

 

Best Regards,

Nidhin

 

0 项奖励
回复