Skip to content

Minimalistic setup tool for the Eastron sdm120 wattmeter

License

Notifications You must be signed in to change notification settings

nopap/eastron_setuptool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Updated to support SET Amps on registry 4005 for CT1 Amps

Eastron setuptool

Minimalistic setuptool for the Eastron sdm120 wattmeter. Its primary usecase is the setup of the ID and the baudrate.

Note that this tool is more minimalistic than gianfrdp/SDM120C and just supports changing the modbus setup values.

PreRequirements

  • python3, python3-minimalmodbus
    • e.g. pip3 install minimalmodbus

Usage Example

Call the help page: ./setuptool.py --help

Check connectivity of meter with ID==2, baudrate==2400 (default)
./setuptool.py --meterID=2

Note that currently it's not able to set the meterID and baudrate to a new value at the same time, due to the nature of the meter which changes the value immediately.
To change both values one has to follow this example

Set the Baudrate to 9600 of meter with ID==2
./setuptool.py --meterID=2 --setBaudrate=2

Set meterID to 42 of meter with currentID==2
./setuptool.py --serialBaudRate=9600 --meterID=2 --setMeterID=42

Set AMPS to 60 amps instead of defautl 5 Amps
./setuptool.py --setCT1=60

About

Minimalistic setup tool for the Eastron sdm120 wattmeter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%