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.

assign Unique Code for MSP430

Hey guys

I am using ez430 RF2500 development board for my project. I am using few nodes in this project so i have to assign unique code to each of this nodes.

Basically each node would transfer its id to the main server so then the application on the server would know if a node is on Online or Offline . Could anyone please help me this.

 

Thank you

  • Al said:
    I am using few nodes in this project so i have to assign unique code to each of this nodes.

    one possible implementation is to include a random number generation function in your code that creates a random ID for each node.  this functionality was already implemented in the eZ430-RF2500 sensor monitor demo code. have you checked this code out yet?

     

  • I have looked at the code but the problem is that, the system(my project) is designed for rescuing people. Therefore each device(node) has to register with the server with its unique code so then later on the server would be able to check the node status.

     

    Thank you for you help

  • Some Programmer (e.g., Elprotronic FET-Pro430) can automatically put a sequential serial number into the device it programs.

  • Great but it's quite expensive to get this application!!!

    Is anyway I could assign a unique code to the flash of the device(node)?

    This is my University project so I have zero money!!!!:DD:

    Thx buddy

  • Al said:
    I have looked at the code but the problem is that, the system(my project) is designed for rescuing people. Therefore each device(node) has to register with the server with its unique code so then later on the server would be able to check the node status.

    i don't understand why this would be a limiting factor.  the device would generate it's unique ID on first startup, it's stored in flash and wouldn't be generated again. it would associate with the server to register it's ID, and then the device could be deployed to the field.

  • Would this ID change of the device go offline(powerd down!)? because I want each node to have fixed ID.For example, node A register at X at time XX and if it doesnt respond in some calculated time to Y,therefore  Y knows node A is missing.The problem is that If node A register in server X with some id and then register in Y with another Id, the system wont work. But if there is a fix number in flash then I want to register that number in the database, so all the servers know the device by that specific number.

    One more thing please,

    How could I get the random address from the chip flash,(after assiging the random number how can i find out that number).

    Thank you

  • Al said:
    Would this ID change of the device go offline(powerd down!)?

      no.  it would be stored in flash and could be retrieved on the next power up.  the contents of flash are retained unless you explicitly erase is.

    Al said:
    How could I get the random address from the chip flash,(after assiging the random number how can i find out that number).

      it would be as simple as reading the content of a specific location in memory.  reading from flash is no different than reading from any other location in memory.

  • Thank you  for you help buddy

    I will check it out

  • I posted code that extracts unique data already in the MSP430 memory space for use as a MAC address here:

    http://e2e.ti.com/support/microcontrollers/msp430/f/166/p/19506/1059511.aspx#1059511

    cheers,

    Mark

**Attention** This is a public forum