Hi, i have to deploy the same kind of board (an arduino clone based on 328p + several sensors) that is running the same sketch on about 20 locations. I collect data over (xbee) radio and serial lines.
Since i have to receive and classify data from quite a few sources, I'd like to be able to distinguish between particular physical boards in some (preferably hardwired by hardware) way.
Currently i have about two ideas:
- Use a script that pre-generates some ID, modifies and recompiles the sketch on upload. use the ID in communicaton
pros: simple, easy to do
cons: way too easy to mismanage, laborious to detect error
- use the radio module HW address
pros: seems to work well with xbee
cons: won't work in transparent mode, for serial connections, for alternative radio (e.g. BT).
As far as I can see, the atmega chip doesn't have a unique ID one can use.
Has anyone hit similar problem? How did you manage to solve it?
TIA