sclavel / homebridge-modbus

Homebridge plugin to interface with any modbusTCP
8 stars 14 forks source link

Modbus Settings #13

Open Pu2pl3 opened 1 month ago

Pu2pl3 commented 1 month ago

Hi, I’m messing around with a Siemens Logo modbus Connection but cannot find the right settings. Is homebridge working as a modbus master or slave here? I tried both and get different errors. Can you pls help me out or is it so obvious? Thanks a lot.

Best regards Seb

eliziox commented 1 month ago

Hi,

HB is the master then your plc is the slave

Plugins works easily with my old twido and with new M251


De : Pu2pl3 @.> Envoyé : Thursday, May 16, 2024 6:51:06 PM À : sclavel/homebridge-modbus @.> Cc : Subscribed @.***> Objet : [sclavel/homebridge-modbus] Modbus Settings (Issue #13)

Hi, I’m messing around with a Siemens Logo modbus Connection but cannot find the right settings. Is homebridge working as a modbus master or slave here? I tried both and get different errors. Can you pls help me out or is it so obvious? Thanks a lot.

Best regards Seb

— Reply to this email directly, view it on GitHubhttps://github.com/sclavel/homebridge-modbus/issues/13, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP3TLZOQMU3E6CB3NEJX66LZCTPXVAVCNFSM6AAAAABH2TB5QWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDAOBZGIYDKNQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Pu2pl3 commented 1 month ago

Hi eliziox, thank you for your immediate response. i set up the siemens logo plc as the slave and a blank modbus configuration:

{ "platform": "Modbus", "ip": "192.168.188.222", "port": 502, "pollFrequency": 10000, "accessories": [] }

the following error is reported in status of the hb (iterative reconnects)

[5/16/2024, 8:07:35 PM] [Modbus] true [5/16/2024, 8:07:35 PM] [Modbus] Connection lost [5/16/2024, 8:07:40 PM] [Modbus] Reconnecting to 192.168.188.222 [5/16/2024, 8:07:40 PM] [Modbus] Socket connected [5/16/2024, 8:07:40 PM] [Modbus] Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read'

when configurating e.g. a switch for coil 1 the error is the same.

somebody any ideas on this?

thank you in advance