Dear Dialog Team,
is there any possibility to set the new custom or random BD address at every restart when OTP is not used? The method, decribedhere, which involves the modification ofaddr_typeandaddrmembers of theuser_gapm_confstructure, didn't work. The BD address is always set from the CFG_NVDS_TAG_BD_ADDRESS define.
Also, could you clarify the role ofnvds_get_func()(caseNVDS_TAG_BD_ADDRESS) from nvds.c?
Thank you and best regards!
Device:
Hi moguilevski,
Thanks for your post online. If I understood correctly; you would like to advertise with a different DB address when the device boot. Please correct me if I a mistake. You could use a Random Static BD Address, so you should change the USER_CFG_ADDRESS_MODE macro in user_config.h header file to APP_CFG_ADDR_STATIC.
Thanks, PM_Dialog
Hello PM_Dialog,
thank you for the reply. It works fine with the Random Static BD address. However, wenn I read the BD adderss from the NVDS it is still the public address defined by CFG_NVDS_TAG_BD_ADDRESS.
Should the addresses of the both type be stored in the device memory? Then where is the random static address stored?
Dear Dialog Team,
我们有几乎相同的案例——公共BD地址我s received via UART right after power-on and needs to be set programmatically, overriding CFG_NVDS_TAG_BD_ADDRESS define.
Using the following does not work (public_address variable is 6-byte buffer with received Public BD Address):
Despite the fact that when reading it afterwards
the new address is actually set (resp_addr.addr == public_address), but when advertising is started afterwards, DA14585 advertises with old address.
Bases onCYibin's comment, the above shall work, but I suspect that only if set in user_app_init(). How to change the address later on - anytime?
EDIT: For anyone wondering, I have just discovered the working way. For setting public address, the following
must be replaced with
read-back stays the same
Hello bojanpotocnik,
thank you very much for your contribution.
Hi bojanpotocnik,
Thanks for your inputs and for your indication.
Thanks, PM_Dialog