This is an old revision of the document!


Secure your node

To secure your nodes you have to upload in your Arduino board or bare ATmega microcontroller the SecurityPersonalizer.ino sketch that comes pre-installed with the MySensors library in the Arduino IDE.

The only operations that you have to do is to modify the following lines in the sketch:

  • #define MY_HMAC_KEY
  • #define MY_AES_KEY
  • #define MY_SOFT_SERIAL

inserting your personal keys and then upload the modified sketch to your Arduino board or bare ATmega microcontroller.
In the serial monitor of the Arduino IDE, if nothing is go wrong, you should see a success message. Now your node is able to communicate with the gateway in a secure way. Save your modified SecurityPersonalizer.ino sketch to easily secure other nodes

If you wont to delete the keys from the eeprom of your board, run the ClearEepromConfig.ino sketch that comes pre-installed with the MySensors library in the Arduino IDE.

  • how_to/mysensors/sign_your_node.1553283753.txt.gz
  • Last modified: 2019/03/22 19:42
  • by 127.0.0.1