Open Kentrp opened 11 months ago
Hi Kentrp,
I did promise to help you but I am in the middle of house move.
I never used modbus slave library in production. I did run few tests and it did behavie as expected.
Do you have RS485 to USB cable for debugging? Do you have a logic analyser? Do you have another Modbus device for comparison?
We need to excude hardware problem first.
First would be a baudrate check, then try to add bias resistors or use common ground. RS485 can be problematic sometimes.
Regards Jack
Hi! I have a problem with rs485 connection after power of slave board stop working on modbus protocol, i have to reflash them with modbus: and modbus controller: on the first time after that's i modbus: and modbus controller: off and connection begin work ok, can you help me how to repair it?
substitutions: device_name: Garden irrigation 2 ############################### device_ip: 192.168.1.62 ###############################
esphome: name: garden-irrigation-2 ##################### name_add_mac_suffix: true on_boot: priority: -100 then:
esp32: board: esp32dev framework: type: arduino
external_components:
wifi: !include includes/wifi.yaml captive_portal: api: !include includes/api.yaml ota: !include includes/ota.yaml
<<: !include includes/web.yaml
logger: level: debug baud_rate: 0 debug: update_interval: 5s text_sensor:
time:
i2c: sda: 4 scl: 5 scan: true id: bus_a frequency: 400kHz
uart: id: mod_bus tx_pin: 1 rx_pin: 3 baud_rate: 115200 stop_bits: 1
data_bits: 8 parity: none debug: direction: BOTH
modbus:
modbus_controller:
modbus_server: