Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding modbus bridge TCP #16073

Closed
wants to merge 1 commit into from
Closed

Conversation

jeroenst
Copy link
Contributor

@jeroenst jeroenst commented Jul 25, 2022

Description:

Added Modbus Bridge TCP

User can start a TCP server on a port, client can connect to this and communicate with modbus RTU devices by using the modbus TCP protocol. (example: https://www.manualslib.com/manual/1708763/Accuenergy-Axm-Web2.html?page=27#manual)

Tasmota Documentation is already updated.

Related issue (if applicable): fixes #9586 (comment)

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with Tasmota core ESP32 V.2.0.4 (TasmotaModus is not available for ESP32)
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

Removed (u)int8 because modbus registers are always 16 bits and changed bit8 to bit
Solved memory leak, changed logging
Improved initialisation and configuring serial port
Solved bug that addresses above 4 didn't reply
Removed logging
Added mandatory comment to USE_MODBUS_TCP_BRIDGE
Using TasmotaModbus->Begin instead of begin
Added bytecount to modbus tcp reply message
Added comments
Put modustcp variables in ModbusBridgeTCP struct.
@jeroenst jeroenst closed this Jul 25, 2022
@jeroenst
Copy link
Contributor Author

Wrong define, changing..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModBus RTU to TCP gateway
1 participant