QN9020: how to change the advertising address in my code.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

QN9020: how to change the advertising address in my code.

2,080 次查看
Doomer
Contributor II

I'd like to know how to change the advertising address in my code.

I tried to use __nvds_put to replace the BD_ADDRESS tag in NVDS with my new address before calling the advertise function. It worked (I checked the NVDS configurator) but the board continued to advertise with the old address and can only use the new address after rebooting.

So is it possible to read the new address during the program?

0 项奖励
回复
4 回复数

1,996 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. You would need to set the status of the tag to invalid, write the tag, and then read the NVDS.

 

Regards,

Ricardo

Best Regards,
Ricardo
0 项奖励
回复

1,985 次查看
Doomer
Contributor II

Could you give me the specific function to read the NVDS?

0 项奖励
回复

1,956 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

You should use the nvds_get to look for a specific tag and return, the DATA part of the TAG.

 

Regards,

Ricardo

Best Regards,
Ricardo
0 项奖励
回复

1,952 次查看
Doomer
Contributor II

The BD_ADDRESS tag in nvds was successfully changed while the board still advertised with the old addresse.

0 项奖励
回复