I have the problem that i can use mbpoll to control my AC via Modbus.
The AC is connected to a USB/Serial Adapter.
I can "forward" said adapter via mbusd and control it with QModBus over the network.
When i try to write register, everything works like expected.
For example, control the fan speed:

Which results in a the raw modbus command [01][06][00][02][00][04].
But i cant convert the raw command to a mbpoll call:
root@climate:~# mbpoll -v -a 1 -f 6 -r 4 -v 3 -b 9600 -P rtu /dev/ttyUSB0
debug enabled
iGetIntList(1)
Integer found: 1
iCount=1
mbpoll: Unrecognized option or missing option parameter ! Try -h for help.
root@climate:~# mbpoll -m rtu -b 9600 -d 8 -p none -s 1 -a 1 -r 2 -w 03 /dev/ttyUSB0
Copyright © 2015-2019 Pascal JEAN, All rights reserved.
mbpoll is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
mbpoll is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with mbpoll. If not, see <http://www.gnu.org/licenses/>.
What i am missing?
For context, via netcat & mbusd i can control the fan speed like this:
# - echo -n -e '\x00\x01\x00\x00\x00\x06\x01\x06\x00\x02\x00\x02' | nc -q 1 climate.lan 502 = Medium 1
# - echo -n -e '\x00\x01\x00\x00\x00\x06\x01\x06\x00\x02\x00\x03' | nc -q 1 climate.lan 502 = Medium 2
# - echo -n -e '\x00\x01\x00\x00\x00\x06\x01\x06\x00\x02\x00\x04' | nc -q 1 climate.lan 502 = High
Datasheet of the modbus module: https://www.mitsubishi-les.info/database/servicemanual/files/BA_ME_AC_MBS_1.pdf
I have the problem that i can use mbpoll to control my AC via Modbus.
The AC is connected to a USB/Serial Adapter.
I can "forward" said adapter via mbusd and control it with QModBus over the network.
When i try to write register, everything works like expected.
For example, control the fan speed:
Which results in a the raw modbus command
[01][06][00][02][00][04].But i cant convert the raw command to a mbpoll call:
What i am missing?
For context, via netcat & mbusd i can control the fan speed like this:
Datasheet of the modbus module: https://www.mitsubishi-les.info/database/servicemanual/files/BA_ME_AC_MBS_1.pdf