CC2541 的keyfob程序中怎么去修改设备的MAC地址?
Hi TI的工程师,
我现在在开发防丢器的时候用的是keyfob的程序,用的是CC2541F256的芯片;请问下面图片中的Address地址代码中哪里可以修改,我用的是ble-cc254x-1.3.2的协议栈。有的人跟我说是可以用SmartRF Flash Programmer软件来修改,但我没有找到在哪里弄?
SmartRF Flash Programmer
Every CC2540/41 device comes pre-programmed with a unique 48-bit IEEE address. This is referred to as
the device’s “primary address”, and cannot be changed. It is also possible to set a “secondary address” on
a device, which will override the primary address upon power-up. Flash Programmer can be used to read
the primary address, as well as to read or write the secondary address.
我想问问如果我修改了secondary address 那我用lightblue测试的时候显示的就是我新设定的secondary address的地址了吧?
我通过Viki Shi 提示我用 Flash Programmer软件去读primary address如图1
然后去写secondary address 如图2
然后通过lightblue看到地址如图3
所以primary address地址固定的是不能改变的,secondary address是可以变的,可以修改的,并且在lightblue软件显示的地址就是secondary address地址。
只能修改secondary address,primary address是芯片的唯一地址,与网卡地址类似,不能修改。
请问如何在代码中修改secondary address,不知道其在内存中地址是多少,