Arduino Uno firmware to emulate the P1 telegram output of DSMR-compatible digital meters.
Instructions below are for use with the P1-dongle.
- Compile the
DSMR-test.ino
code in the Arduino IDE and upload to the Uno at 115200bps - Connect the
GND
pins of the Arduino and the P1 dongle - Connect pin
3
of the Arduino to theRx
pin of the P1-dongle
Optionally, you can also connect the 5V pins of the Arduino and the dongle to provide power to the dongle. Do not do this if you are powering the dongle through USB. If you are powering the Arduino through USB, it's possible the Arduino will not be able to provide enough power for the dongle to work reliably.
Every 2 seconds, the firmware will output a meter telegram based on the eMUCs – P1 V1.7.1 specification and the DSMR 5.0.2 P1 Companion Standard. The values for actual power are randomised and the values for energy offtake increment continously, allowing end-to-end data pipeline verification. When the telegram is being sent, the Arduino LED will light up.
If using the P1-dongle, the dongle LED will stop flashing if the dongle has succesfully received and verified the meter telegram. See Basic LED signals.