volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
BSD 3-Clause "New" or "Revised" License
229 stars 81 forks source link

ORNO WE-516 not working #273

Closed mkmt closed 1 year ago

mkmt commented 2 years ago

I have ORNO WE-516 configured on address 1. I also have two ORNO 504 configured as 2 and 3.

No matter how I connect them (just one, or two or three) WE-516 doesn't work. Same RS485 adapter connected to windows computer and using orno software works on all devices, so hardware is OK, connection is OK.

mbmd can't communicate with WE-516. Here is command I'am using:

mbmd run -a /dev/tty.usb-1.3 -d ORNO3P:1,ORNO1P504:2,ORNO1P504:3

here is output:

2022/08/31 04:06:46 device ORNO3P1.1 did not respond (1/3): read failed: serial: timeout 2022/08/31 04:06:47 device ORNO3P1.1 did not respond (2/3): read failed: serial: timeout 2022/08/31 04:06:49 device ORNO3P1.1 did not respond (3/3): read failed: serial: timeout

What can I do to make it work?

andig commented 2 years ago

Maybe @bilbolodz or @ochykysh would know?

ochykysh commented 2 years ago

Looks like you are missing the "--comset 8E1" part.

Aka:

mbmd run -a /dev/ttyUSB1 -d orno1p:1,orno1p:31 --raw --comset 8E1 --api 0.0.0.0:8083 or similar

bilbolodz commented 2 years ago

Sorry no idea

ochykysh commented 2 years ago

@ochykysh meaning I should compile with this option?

no, mbmd run -a /dev/tty.usb-1.3 -d ORNO3P:1,ORNO1P504:2,ORNO1P504:3 --comset 8E1

mkmt commented 2 years ago

@ochykysh with this option ORNO3P works fine but ORNO1P504 doesn't work. Any way to make both run at the same time?

Or is there any way to make just one run, so I can run a script reading 516 stopping then reading 504.

Can't place another cable there, need to do both meters on a same cable.

ochykysh commented 2 years ago

It depends how your meters are configured. You can set the speed and mode with the windows software. Check that all of them use the same settings(with different IDs). Mbmd only supports setting speed and mode on the port level, not per device.

mkmt commented 2 years ago

@ochykysh can set speed not the parity in windows.

ochykysh commented 1 year ago

@mkmt just connect them to two different USB-RS485 adapters, so you will have different port settings. Or replace the WE504 with a WE514

andig commented 1 year ago

Seems this might have been resolved, closing.