Hi Dialog,
I am using DA14531 in a project, and the firmware version is DA14531_585_DSPS_v_6.150.3.45. I have a problem, by changing CFG_NVDS_TAG_BD_ADDRESS [], I can only change the MAC address of the device statically. I changed a mechanism, the MAC address information is now stored in a EEPROM chip , the data can be read out correctly, but i do not konw how to set it as the MAC address of the device, did not figure out when or where
CFG_NVDS_TAG_BD_ADDRESS [] was assigned to nvds_data_storage in the firmware,
Thanks and Regards
约翰
Keywords:
Device:
Hi Zhangkui,
Please check out the “BLE Advertising on DA14585/DA14586 and DA14531 devices“ tutorial (link is provided below) and section “2.1. Setting the BD Address”
http://lpccs-docs.dialog-semiconductor.com/DA145xx_Advertising_Tutorial/index.html
Could you please indicate what is your requirement? If you configure the CFG_NVDS_TAG_BD_ADDRESS, the device will start advertising with that BD address. What type of BD address you would like to use?
Thanks, PM_Dialog
Hi PM_Dialog,
Thanks for reply,
My design goal is that each device has a uniquely determined mac address, so an extra chip EEPROM chip is added. Start from address 0xFA, the chip stores the world ’s only 6 bytes of ID data. I want to use this data as the MAC address of DA14531, in this way, the DA14531 can burn the same firmware during production, and read the MAC address data from EEPROM every time when it is powered on, which can ensure that each device has a fixed and unique MAC address.
Can you tell me when and where
CFG_NVDS_TAG_BD_ADDRESS was assigned to nvds_data_storage in DA14531_585_DSPS_v_6.150.3.45.
Thanks
约翰
Hi PM_Dialog,
The problem has been solved, thanks for support.
约翰
Hi Zhangkui,
Glad that you figured your issue out. If you have any other question, please raise a new forum ticket.
Thanks, PM_Dialog
I have the same issue. Can you share how you were able to set the BD (MAC) address programmatically?
thanks,
Anacove
Hi ianlerner,
Assuming you are using a public device address, you can modify the address by referring to the method shown in the attached picture
Br, Yibin
Thank you. What h_file is needed to find the ..f_data_init() function?
You only need the first two lines of the init function. The remaining code is applicable only to the example from which the snippet was copied.
/MHv