This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Random addresses for end device on ez430-rf2500

Other Parts Discussed in Thread: SIMPLICITI

Hi...

I'm using ez430-rf2500. and working with the temperature sensor demo program.

There is slight confusion between the "this device address --> in ED's configuration file and ED creating random address in the code itself.

Are "This Device address" ----> in configuration file & Createrandomaddress function in code doing the same thing , ie setting the address for the end device.

and if so, why do we need it in two places.

we can assign different address in configuration file and that's it.

Can anyone please explain it and make it more clear ?

thank you

  • The demo was made to work out of the box with multiple ED. So the ED chooses a random address on initial power up and stores it "permanently" to flash memory. If you are recompiling the code yourself, you can remove the random address code generation entirely and manage the addresses yourself, using "This Device address" in the cfg file. Or, since InfoA flash memory can be changed independent of main memory, you could reserve InfoA memory for address storage and program an address after the code has been loaded.

  • Hi

    Does "this device address" in the cfg file re-writes the address of end device whenever you load the program?

    Accidentally I reprogrammed many end devices with the same address in the cfg file ,but still those ED's are able to connect to the access point . what does this mean? do all the end devices have the same address?

    My idea is that if two end devices have the same address then they wont be able to connect to AP at the same time. Is this true?

    with best regards

    saket

  • The "this device address" value in the .cfg file is a default value used by SimpliciTI. The Sensor demo code has additional code that forces the generation of a random address and sets this new address after the SimipliciTI init process uses the default value, so it overwrites the default value. You have to remove the random address generation code in order for the Sensor Demo code to use the default address. Easy way to do that is to comment out the SMPL_Ioctl call that writes the address loaded from flash memory. The drawback is that you have to recompile the code with a different default address for each device you are using.

  • Hi

    thanks a lot for making things crystal clear..!

    with best regards

    saket