I'd like to change the Bluetooth device address using e2cmd or similar command line tool. How do I do this? It seems like I should be able to issue e2cmd -norun -trans "SPITRANS=USB SPIPORT=0" write <addr> <value>, but I'm not sure what addresses to use.
The relative section of my .keyr file is as follows:
// (0001) - Bluetooth device address
&BDADDR = 0002 cc00 24d2
// (0002) - Crystal frequency trim
&CRYSTAL_FTRIM = 0020
// (0022) - Battery low threshold voltage
&BATTERY_THRESHOLD = 0834
You supposed to buy a group/rang of BT address from https://www.bluetooth.com/
Sorry, I phrased my question ambiguously. What I meant to ask is what is the proper address in the EEPROM to write to when I want to change the BDADDR address? I believe I need to issue 'e2cmd -norun -trans "SPITRANS=USB SPIPORT=0" write <addr> <value>' , so I need to know what <addr> should be. I tried reading from 0x0001, but it did not return part of the default BDADDR (0002 cc00 24d2), so I'm guessing the BDADDR is stored at some other offset.
For example, if I want to set the BDADDR to 1111 2222 3333, I would assume I should issue these 3 commands:
Is there an address map for the EEPROM somewhere?
Are there utilities built into the SDK for this?
Have a look at CsConfig. There is a GUI and command line tool with the SDK. For help please look at C:\CSR_uEnergy_SDK-188.8.131.52\tools\bin\help\csconfig.chm.
You can do this using e2cmd. The brute force way to do it will to be to take a memory dump and see which locations have the Address (sometimes its more than one location) and change them using e2cmd.
Another method would be to update your keyr file and use "csconfigcmd merge" to merge the keyr with the img file and then program the new img file.
But the better approch is to using the Production Programming Command Line tool (uEnergyProdTest.exe). Using the -b argument allows your to change the Address and -f allows you to point to to binary to be programmed. -e 1 will erase the eeprom before programming.
> uEnergyProdTest.exe -b 0x111122223333 -f CSR1010.img -e 1
This can be found in CSRmesh_Node_Tools.WIN.2.1 Installer (https://createpoint.qti.qualcomm.com/tools/#suite/2282/10702)