Openhab 3 control rollershutters Onviz MR-2234F/Dooya Dt82tv/AKKO AM72E via COM port

Hi

I have a rollershutters Onviz with motor MR-2234F. As I understand, it’s a full analog of Dooya Dt82tv and Akko AM72E.
How can I connect it to the OH3 and control via COM port by Item in OH3. I want to open/close rollershutters and open on some persent.

It have uncorrect modbus protocol to control it.
If I want to open it I want to send via COM port next bytes:
55 02 FE 03 01 89 74 when
55 - is a prefix
02 - adress rollershutter (can be any from 01-FF)
FE - group of rollershutter (can be any from 01-FF)
03 - system code of write to rollershutter
01 - open command
89 74 - CRC16 modbus in reverse order

If I want to close it I want to send via COM port next bytes:
55 02 FE 03 02 C9 75

If I want to close it on some persent - I want to send via com port next bytes:
55 02 FE 03 04 1E [reverse CRC16], where:
1E - 30% of close

And rollershutters can give information by persent of close/ For it I want send in COM port text bytes:
55 02 FE 01 01 [reverse CRC16]
And they answer:
55 02 FE 01 01 14 [reverse CRC16], where:
14 - is a 20% of close.

How can I do it on OH3 with send and read data on COM port.
Openhub installed on linux system and I have one free COM potr on /dev/tty2

Thank you all in advance.

1 Like