Setting the MAC address from NVPARAM

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
dsandbue
Offline
Last seen:1 year 9 months ago
加入:2017-02-15 14:09
Setting the MAC address from NVPARAM

Hello there,

首先,比k you very much for your help and effort in this forum, your support is truly outstanding.

I'm working with the pxp-reporter demo (SUOTA enabled) as the basis, and I've developed an application with it that I now want to test on about 100 DA14680s. I will give every device a unique MAC address via the program_qspi_nvparam-script.

So, my question now: is there some code example/could you provide me some code example on how to change the MAC address of the device from the NVPARAM? I'd like to change the defaultBLE_STATIC_ADDRESS to the one from flash.

Thank you in advance,
Philipp

Device:
JK_Dialog
Offline
Last seen:1 month 4 weeks ago
Staff
加入:2016-08-22 23:07
嗨,你可以改变这一点

嗨,你可以改变这一点programatically using

own_address_t *my_addr = OS_MALLOC(sizeof(own_address_t));

ble_gap_address_set(my_addr, 15000);

This is available in ble_gap.h.

I would suggest doing this before you start your peripheral.

//Jon

dsandbue
Offline
Last seen:1 year 9 months ago
加入:2017-02-15 14:09
Thank you very much! Works

Thank you very much! Works flawlessly.

JK_Dialog
Offline
Last seen:1 month 4 weeks ago
Staff
加入:2016-08-22 23:07
This can also be set is the

This can also be set is the Smart Snippets Tooblox using QSPI_NVPARAMS tool.

//Jon