pboschi / HCPBridgeMqtt

emulates Hoermann HAP 1 HCP (HCP2) on ESP8622, ESP32 and Arduino.
16 stars 3 forks source link

RS485 Enable Pin - RS485 Max #5

Open lugg8 opened 1 year ago

lugg8 commented 1 year ago

Hey, I am using the HW-097 Converter and I am wondering how to modify the code to get the RS485 communication working. somewhere I must add the Enabler PIN (5) to the code. may you assist here?

Many thanks in advance.

14yannick commented 1 year ago

I'm working on a rewrite of this code with the modbus implementation from this repository. https://github.com/kfroeschl/HCPBridgeHomeAssistant/tree/rewrite Kfroeschl use ModbusRTU where you can submit your enabler pin in the setup. Will publish an experimental branch im my repository as soon it's ready.

14yannick commented 1 year ago

Hey @lugg8 I pushed an experimental build here. https://github.com/14yannick/HCPBridgeMqtt/tree/development There you can enter your enabler pin /src/hoermann.h line 216 put mb.begin(&RS485, 5); Untested and without warranty. Best regards