Extended connectable Advertising and Scan Response Data Setup Failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extended connectable Advertising and Scan Response Data Setup Failed

Jump to solution
1,073 Views
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

Labels (2)
Tags (2)
0 Kudos
1 Solution
1,035 Views
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.

 

View solution in original post

0 Kudos
4 Replies
1,060 Views
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 Kudos
1,055 Views
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 Kudos
1,036 Views
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 Kudos
1,025 Views
nidhintomy
Contributor IV

Hi @EduardoZamora 

Thanks for confirming.

 

Best Regards,

Nidhin

 

0 Kudos