I want to associate my smart home system with OpenHab.
I have several devices “Smart Bus HDL”.
I have a protocol description.
Communication takes place via UDP.
Needed:
When the OH starts - program to poll the status of devices.
When SmartBus sends that state has changed.
Manage devices from the OH.
Protocol: https://drive.google.com/drive/folders/0B4jqteaVA5tcT0RfMTh4aTV6eDA?usp=sharing
My friend did a program on Java.
I understand the protocol and the system.
You will be with me easily.
For example.
If sending UDP command c0a801FA48444C4D495241434C45AAAA1001040079003101070600000003f806 lamp in hall is off. c0a801FA48444C4D495241434C45 - header (in ASCII it is HDLMIRACLE). Then follows a command
maraySendUDPBuf[0]:=mbytIPPart1;{eg. IP: 192.168.18.5, so mbytIPPart1=192}
maraySendUDPBuf[1]:=mbytIPPart2;( instead of the second local IP, here is 168)
maraySendUDPBuf[2]:=mbytIPPart3; (instead of the third local IP, here is 18 )
maraySendUDPBuf[3]:=mbytIPPart4; (instead of the fourth local IP, here is 5 )
maraySendUDPBuf[4]:=$48;{H}
maraySendUDPBuf[5]:=$44;{D}
maraySendUDPBuf[6]:=$4C;{L}
maraySendUDPBuf[7]:=$4D;{M}
maraySendUDPBuf[8]:=$49;{I}
maraySendUDPBuf[9]:=$52;{R}
maraySendUDPBuf[10]:=$41;{A}
maraySendUDPBuf[11]:=$43;{C}
maraySendUDPBuf[12]:=$4C;{L}
maraySendUDPBuf[13]:=$45;{E}
maraySendUDPBuf[14]=$AA; { leading code }
maraySendUDPBuf[15]=$AA; { leading code}
maraySendUDPBuf[16]=$0F; {data package length}
maraySendUDPBuf[17]=$01; {original subnet ID}
maraySendUDPBuf[18]=$FA; {original device ID}
maraySendUDPBuf[19]=$FF; {original device type: higher then 8 }
maraySendUDPBuf[20]=$FE; { original device type: lower then 8 }
maraySendUDPBuf[21]=$00; { operate code: higher then 8 }
maraySendUDPBuf[22]=$31; { operate code: lower then 8}
maraySendUDPBuf[23]=$01; {subnet ID of targeted device }
maraySendUDPBuf[24]=$44 { device ID of targeted device }
maraySendUDPBuf[25]=$01; { additional, channel No }
maraySendUDPBuf[26]=$46; { additional, intensity }
maraySendUDPBuf[27]=$00 { additional, channel running time, higher then 8 }
maraySendUDPBuf[28]=$00; { additional, channel running time, lower then 8 }
How much is it? Who how many it will take to do so?
In advance thank you very much.
Please Help!