Script Result Question and the DIY Interface is Cool
Sean Lavigne
sean at houselavigne.us
Wed Dec 28 14:23:41 EST 2022
James,
Here’s the website for the particular 4x4 HDMI Matrix I have: http://nohassleav.com/support/matrix_hdmi_4x4_4k_hdr/
That page has a link to the Simplified RS-232 and IP Commands which reads as follows:
Baud Rate: 115200
Data width: 8
Parity: None
Stop: 2Bit
Power On: \xA5\x5B\x08\x0B\x0F\x00\x0F\x00\x00\x00\x00\x00\xCF
Power Off: \xA5\x5B\x08\x0B\xF0\x00\xF0\x00\x00\x00\x00\x00\x0D
Reboot: \xA5\x5B\x08\x0D\x00\x00\x00\x00\x00\x00\x00\x00\xEB
Output1
Input1: \xA5\x5B\x02\x03\x01\x00\x01\x00\x00\x00\x00\x00\xF9
Input2: \xA5\x5B\x02\x03\x02\x00\x01\x00\x00\x00\x00\x00\xF8
Input3: \xA5\x5B\x02\x03\x03\x00\x01\x00\x00\x00\x00\x00\xF7
Input4: \xA5\x5B\x02\x03\x04\x00\x01\x00\x00\x00\x00\x00\xF6
Output2
Input1: \xA5\x5B\x02\x03\x01\x00\x02\x00\x00\x00\x00\x00\xF8
Input2: \xA5\x5B\x02\x03\x02\x00\x02\x00\x00\x00\x00\x00\xF7
Input3: \xA5\x5B\x02\x03\x03\x00\x02\x00\x00\x00\x00\x00\xF6
Input4: \xA5\x5B\x02\x03\x04\x00\x02\x00\x00\x00\x00\x00\xF5
Output3
Input1: \xA5\x5B\x02\x03\x01\x00\x03\x00\x00\x00\x00\x00\xF7
Input2: \xA5\x5B\x02\x03\x02\x00\x03\x00\x00\x00\x00\x00\xF6
Input3: \xA5\x5B\x02\x03\x03\x00\x03\x00\x00\x00\x00\x00\xF5
Input4: \xA5\x5B\x02\x03\x04\x00\x03\x00\x00\x00\x00\x00\xF4
Output4
Input1: \xA5\x5B\x02\x03\x01\x00\x04\x00\x00\x00\x00\x00\xF6
Input2: \xA5\x5B\x02\x03\x02\x00\x04\x00\x00\x00\x00\x00\xF5
Input3: \xA5\x5B\x02\x03\x03\x00\x04\x00\x00\x00\x00\x00\xF4
Input4: \xA5\x5B\x02\x03\x04\x00\x04\x00\x00\x00\x00\x00\xF3
While trying to figure out the hex codes I did write to the nohassleav support address and received this reply:
"So if this is the one that is identical to the one in our support site, you'll need to download a program like "Packet Sender"
Type in the IP of the matrix in the IP field
Type in 8000 in the ports field
Copy and paste the Ip commands in the HEX field
Then click send”
It was after downloading a packet sending tool that I figured out that I needed to convert the “\x” in the above documentation to “&h” and then I just experimented with how to separate the hex codes in the script until I heard the HDMI Matrix give me a successful beep after sending one of the commands:
\xA5\x5B\x02\x03\x01\x00\x01\x00\x00\x00\x00\x00\xF9
Became:
send data bytes {"&ha5", "&h5b", "&h02", "&h03", "&h01", "&h00", "&h01", "&h00", "&h00", "&h00", "&h00", "&h00", "&hf9"} interface "4x4 HDMI Matrix”
While searching the net for other examples, it does seem that some other HDMI switches use similar hex codes:
https://assets.touchboards.com/assets/1/26/hdm-4x1sw_hex_codes.pdf
hdm-4x1sw_hex_codes
PDF Document · 48 KB
I haven’t seen anything documented about what the HDMI Matrix was sending back after completing a command.
I’m happy to help in any way I can.
Cheers,
Sean
> On Dec 28, 2022, at 9:30 AM, James Sentman <james at sentman.com> wrote:
>
> I may have bitched and moaned about text encoding and the problems it creates with processing non-printable characters now days ;) Which is why I had to add the binary data available event in the first place! In any case does this device have a documented protocol or are you hacking it out to control it?
>
> If you can find documentation or if you can hack out how to operate it yourself via the DIY plugin I would be happy to help convert that info into a real plugin to control the thing. It might be of use to others as well.
>
>
>
>> On Dec 28, 2022, at 8:28 AM, Sean Lavigne <sean at houselavigne.us <mailto:sean at houselavigne.us>> wrote:
>>
>> Thanks James! When I clicked edit on the Interface Script, that command, and others appeared on their own. The dataAvailble event gave me a -1700 error, but then a bit farther down was the onBinaryDataAvaiable event which worked great. I capture that in the log and it looks like the HDMI Matrix sends the same binary data for each input change for a given output. Thank you again!
>
> Thanks,
> James
>
>
> James Sentman http://www.PlanetaryGear.org <http://www.planetarygear.org/> http://MacHomeAutomation.com <http://machomeautomation.com/>
>
>
>
>
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20221228/54a01c55/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview.png
Type: image/png
Size: 243758 bytes
Desc: not available
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20221228/54a01c55/attachment.png>
More information about the XTensionList
mailing list