Hi ,
I have seen manufaturer specific data in advertsising data of ble in ble scanner app.
1.what is it,is it needed to send via advt data,if yes why and for what purpose
2.I found Advertising Data types in app_adv_data.h..what are they..for what purpose they defined
for example,ADV_TYPE_COMPLETE_LIST_16BIT_SERVICE_IDS mean in advt data
3.explain about ADV_TYPE_DEVICE_ID in that data types
pl explain clearly what is what and what is for what purpose..
Device:
Hi MADHUSF,
The manufacturer specific data can be used to add any custom data into advertising. The data that will be stored into the advertising string is up to you and according to your application. You could not use the manufacturer specific data if you don’t like to populate any custom data. The ble_app_barebone example of the SDK stores the manufacturer specific data into the advertising string. Please check the mnf_data_update() function. Let me give you an example for how to use the ADV_TYPE_MANUFACTURER_SPECIFIC_DATA
The advertising string should have a specific format. You can use the ADV_TYPE_MANUFACTURER_SPECIFIC_DATA flag and append the MAC address into the manufacturer data of the advertising string.
For example let’s say that your MAC address is: x00 x01 x02 x03 x04 x05 So your advertising data will be like below
#define BLE_MAC_ADDR "\x00\x01\x02\x03\x04\x05"
#define BLE_MAC_ADDR_LEN "\x07"
#define USER_ADVERTISE_DATA BLE_MAC_ADDR_LEN\
ADV_TYPE_MANUFACTURER_SPECIFIC_DATA\
BLE_MAC_ADDR
The ADV_TYPE_DEVICE_ID is used for adding the device ID into the advertising string.
Thanks, PM_Dialog
Hi,
Thank you for reply
1.what is CFG_NVDS_TAG_BD_ADDRESS..what is the important of these.i have seen format on web..
it tells first 3 bytes are from OUI.. which companies can fall under OUI...for what companies the IEEE provides the OUI..is it needed for healthcare products companies??
2.what is the MAC address of the chip..i mean every ble chip should have unique id what is that?? from which register it is available ,how can i read in the code?
pl help in detail about BD address to define it..
Ηi MADHUSF,
Apologies for the confusion, but with my MAC address I meant the BD address. SO, the example was how to add the BD address in the advertising data. According to Bluetooth SIG, the BD address is a unique 48-bit identifier assigned to each Bluetooth device by the manufacturer, which is usually displayed as 6 bytes written in hexadecimal and separated by colons (example - 00:11:22:33:FF:EE). Please refer to Bluetooth specification for getting more information. Did you check the tutorial below?
//www.wsdof.com/sites/default/files/advertising_concept.pdf
Thanks, PM_Dialog
Hi,
Yes i have gone through it..
my question is
1.what is the way of adding BD address
it has 6 bytes,out of 3 are the OUI(rganizationally Unique Identifier)
the format is 6 bytes.check these link ---https://macaddresschanger.com/what-is-bluetooth-address-BD_ADDR
my question is for which oganisations that OUI is needed or how to define the 6 bytes..as any standard we should follow
Hi MADHUSF,
Please check the forum post below:
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/full-device-reset
Thanks, PM_Dialog