如何改变德维克e mac address

Learn MoreFAQsTutorials

9 posts / 0 new
Last post
Zhangkui
Offline
Last seen:7 months 2 weeks ago
加入:2014-12-31 07:20
如何改变德维克e mac address

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

约翰

Device:
PM_Dialog
Offline
Last seen:1 day 15 hours ago
工作人员
加入:2018-02-08 11:03
Hi Zhangkui,

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

Zhangkui
Offline
Last seen:7 months 2 weeks ago
加入:2014-12-31 07:20
Hi 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

约翰

Zhangkui
Offline
Last seen:7 months 2 weeks ago
加入:2014-12-31 07:20
Hi PM_Dialog,

Hi PM_Dialog,

The problem has been solved, thanks for support.

约翰

PM_Dialog
Offline
Last seen:1 day 15 hours ago
工作人员
加入:2018-02-08 11:03
Hi Zhangkui,

Hi Zhangkui,

Glad that you figured your issue out. If you have any other question, please raise a new forum ticket.

Thanks, PM_Dialog

ianlerner
Offline
Last seen:3 weeks 6 days ago
加入:2020-03-02 01:52
I have the same issue. Can

I have the same issue. Can you share how you were able to set the BD (MAC) address programmatically?

thanks,

Anacove

CYibin
Offline
Last seen:3 months 4 weeks ago
工作人员
加入:2017-12-14 02:48
Hi ianlerner,

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

附件:
ianlerner
Offline
Last seen:3 weeks 6 days ago
加入:2020-03-02 01:52
Thank you. What h_file is

Thank you. What h_file is needed to find the ..f_data_init() function?

MHv_Dialog
Offline
Last seen:2 weeks 6 days ago
工作人员
加入:2013-12-06 15:10
You only need the first to

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