This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Extended Header & Extended Advertisement settings

Hello,

I was able to use the "ble_app_rscs" and modify it for the Non-Connectable, Non-Scannable, Undirected advertisement, by setting in line 317 of ble_advertising.c.  (I set using the following: BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED).  However, I did not find it very intuitive, maybe I lack some crucial understanding of the code layour.  I say that because I have been also, trying to adjust the content of the Extended Header ( i.e. Extended Header Flags, AdvA, TargetA ... ACAD) and have not been able to find the knobs to fiddle with it.  (I am using an Ellisys sniffer to see the advertisment data).   Can you kindly point or show me how to add/remove the content of the Extended Header.

Thank you in advance, for your assistance.

ftariq.  

  • Hi. 

    I'm afraid that isn't possible. There is no API available to change this. Not in the HCI-API in the spec. either. 

    You can take a look at the Core Specification - Vol 2, Part E - 7.8.53 LE Set Extended Advertising Parameters command; 

    The spec. only defines different advertising types, which again defines how the header should look like. 

    Best regards, 
    Joakim.

  • Hello,

    Thank you for replying back.  It is appreciated.  

    I am not really looking for an API.   What I want to know is, what  do I need to do, to the Nordic example code to send the advertisement of my choosing (I am not asking for a dynamic switch of advertisement type).  I just want to make sure I advertise what I want, correctly.

    For example I am using the NORDIC "ble_app_rscs" and lets say I want to do an Extended-Nonconnectable-NonScannable-Undirected advertisment and I see on a BLE-Sniffer that the data gets displayed in AUX_ADV_IND (as I described in my first post above).  What do I do if I want to fragment the data and show it on AUX_CHAIN_IND as well?    Another scenario would be, lets say I want to repurpose the above code for ADV_IND only? (which is way different from ADV_EXT_IND->AUX_ADV_IND)  WHAT and WHERE do I need to make changes to the code, to do a successful Advertisement of my liking?

    Thanks

    Faisal

Related