This is an Arduino Library for the multi-functional energy meter SDM120 Modbus.
- Installed the lastest version of Arduino
- git
- Open
cmd, enter
cd %userprofile%\Documents\Arduino\libraries &&
git clone https://github.com/ngharry/SDM120-Modbus
to download SDM120 Modbus library.
- Wait until the downloading process finishes.
[TODO] Add tutorial for Linux here.
See examples/ConstructCommands.
See examples/GetRawData.
See examples/GetData.
| HEX | DEC | Name | Description |
|---|---|---|---|
| 0x00 | 0 | STATUS_ERROR | General errors |
| 0x01 | 1 | STATUS_SUCCESS | Function runs successfully, no errors |
| 0x02 | 2 | ERR_READ_RS485 | No data read from RS485 communication |
| 0xFA | 250 | ERR_FUNC | Unrecognised function sent to SDM120 |
- Add terminology table.
- Add more error codes (as specified in
doc/SDM120 PROTOCOL.pdf). - Add intalling process for Linux (I love Linux).