marcin1j / esp8266-modbus-gateway Goto Github PK
View Code? Open in Web Editor NEWESP8266 Modbus TCP to RTU gateway
License: MIT License
ESP8266 Modbus TCP to RTU gateway
License: MIT License
By default D1 (GPIO5, you can change this in main.py) is used for driver enable control and needs to be connected to converter's DE (active high) and RE (active low) pins.
Do I understand correctly that you connected GPIO5 to both DE and RE pins at the same time? So that DE and RE on the converter are connected?
I am not yet familiar with these RS-485 TTL converter modules and am looking to try out your example, but that just seems a bit strange
Hi,
first of all, thanks for your effort! I want to integrate our home sauna with Home Assistant, unfortunately the only interface provided by the sauna is an actual 3-wire Modbus interface, so this project will be my chance to get the integration running.
Currently, I'm experiencing some problems... Doing some polls usually works fine, but sometimes I'm getting the following error:
INFO:modbus:Starting to serve 192.168.128.252:35040
WARN:modbus:RTU read: short read 3/4
INFO:modbus:Served 192.168.128.252:35040
INFO:modbus:New connection from ('192.168.128.252', 35054)
INFO:modbus:Starting to serve 192.168.128.252:35054
WARN:modbus:RTU read: short read 3/4
INFO:modbus:Served 192.168.128.252:35054
Any idea what could cause this "short read" and how to prevent that?
I'm running your code on a Wemos D1 Mini, with the following UART settings:
UART(0, 19200, bits=8, parity=None, stop=1, timeout=1000, timeout_char=10, rxbuf=1024)
Would be great if you could give me some hints here... Thanks!
Best regards
Matthias
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.