Bouni / max-cube-protocol

A attempt to write down the protocol of the eQ3 / ELV MAX! Cube
MIT License
119 stars 36 forks source link

R message #46

Open fensoft opened 5 years ago

fensoft commented 5 years ago

Looks like an R message permit the cube to reboot:

https://github.com/openhab/openhab2-addons/blob/43726b47c78a61040f09f2ef3f337d6742962153/addons/binding/org.openhab.binding.max/src/main/java/org/openhab/binding/max/internal/command/UdpCubeCommand.java#L81

marcelrv commented 5 years ago

This is not a generic command that you can issue in a telnet session. This is command is packed in a message to the UDP port instead. Like type of discovery packet

BraiNi666 commented 2 years ago

how can i send a message to the cube to get the answer ?

This is the data (19 Byte) one must broadcast or multicast to UDP port 23272 to get an answer from the cube.

0000000000: 65 51 33 4D 61 78 2A 00 2A 2A 2A 2A 2A 2A 2A 2A eQ3Max*.**** 0000000010: 2A 2A 49 **I

I tryed like this

echo -en "\x65\x51\x33\x4D\x61\x78\x49\x45\x57\x30\x30\x30\x36\x36\x31\x32\x52" | nc -w1 -u -b 192.168.188.255 23272 echo -e "\x65\x51\x33\x4D\x61\x78\x49\x45\x57\x30\x30\x30\x36\x36\x31\x32\x52" | nc -w1 -u -b 192.168.188.255 23272

AndyP2 commented 2 years ago

You need to send that as a udp message to the cube. To do this you would usually use a networking library for the language you are using. I have also seen netcat used to do this from the command line; there are several pages out there that show how to do it.