marcel
4d9767edda
|
11 months ago | |
---|---|---|
.. | ||
__pycache__ | 11 months ago | |
README.md | 11 months ago | |
config.json | 11 months ago | |
epever_control.py | 11 months ago | |
weather_station_rs485_client.py | 11 months ago |
README.md
Python ModBus test program
A simple test program to test ModBus peripherals connected to a serial port. It is a copy/paste job based on the ModBus client which runs on the Solar Generator (https://www.meezenest.nl/mees-elektronica/solar-generator.html). Therefore, it is a bit rough around the edges. Works fine though...
It reads all known registers of the weather_station and displays its values.
Configuration
Edit config.json. Only the two values given below are needed.
"RS485_port": "/dev/ttyACM0",
"RS485_address": 14,
Serial settings are hard coded in the source: 9600bd 8N1
As the program is just a quick hack based on the Solar Generator software you can only run the program with the following command. All other options do not work!
python3 ./weather_station_rs485_client.py --c config.json
Requirements
- Python3
- minimalmodbus
- retrying
License
Copyright (C) 2023 M.T. Konstapel
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.