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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,082件の閲覧回数
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,998件の閲覧回数
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,987件の閲覧回数
Doomer
Contributor II

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

0 件の賞賛
返信

1,958件の閲覧回数
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,954件の閲覧回数
Doomer
Contributor II

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

0 件の賞賛
返信