JhonControl / Arduino_ESP8266_Modbus_Industrial_Applications

Arduino ESP8266 Modbus Industrial Applications modbus TCP IP and Modbus RTU
78 stars 51 forks source link

How to integrate into Home Automation (Home Assistant)? #1

Open Jojo-A opened 6 years ago

Jojo-A commented 6 years ago

Hi, first of all I like to thank you for your effort und your tutorials about Modbus and ESP8266! This is highly appreciated! Due to my lag of knowledge about Modbus stuff, I just can't figure out a plan how to use your codes to integrate my actual Modus device into my Home Automation System. Here is what I have:

Now I'd like to use an ESP board as a fully transparent ModbusTCP-to-ModbusRTU gateway, that just forward/converts all traffic from ModbusTCP-to-ModbusRTU and vise versa. But as I understand your code, you use a predefined amount of registers (ten for each direction) and fix addresses.

As I said, my Modbus knowledge is very limited so sorry in advance for the following questions:

  1. Why do you use a predefined amount of registers and fix addresses?
  2. Would it be possible to modify it that way, that it is really a pure "stupid" converter from ModbusTCP-to-ModbusRTU, so that it does just forward addresses, data, CRC, etc.?
  3. Does your code eventually already support what I want but I just missed it?
robermf commented 6 years ago

Hi. Did you get something?

Jojo-A commented 6 years ago

@robermf Sorry for the late response! As @JhonControl did not respond at all, I did not continue to watch this repo. What I did: I took this repo https://github.com/MaxKravt/WiFi-Modbus-TCPtoRTU and modified it a bit ( use bitbang UART to keep HW UART free, kick telnet stuff, added WiFi manager...). But generally, the project from @MaxKravt work mostly ootb.

MimbaMonkeyHouse commented 4 years ago

@jojo-a: did you post that code anywhere?