Hey all. Eyes are burning from the reading I’ve done over the past few hours
This feels like it should be simple, but I sure seem to be at a loss. Maybe I’m just overtired!!
I want to just send a string of hex values out to an end device through the USB to Serial adapter I have plugged in to switch inputs on an old video matrix. Its a Monoprice Blackbird 4x4 21905. Support is terrible as expected
I can get this working using a tool (CommWatch) and can switch the OPs just fine
I have the output from HA tied over to CommWatch to see the packets
the “switch” is not really what I want (rather this just be a 1 shot type command. Feedback looks like a pain with this device. Proof of concept first and this find a better method (unless you have something better in mind than “switch” that is!)
Device expects HEX
Sending this specific string changes output 1 to input 1
50 56 54 02 03 01 00 01 00 00 00 00 00 00 00 00 00 01
Sending this specific string changes output 1 to input 2
50 56 54 02 03 02 00 01 00 00 00 00 00 00 00 00 00 02
This works flawlessly from CommWatch
These are the ASCII version of my intended message, so the command_line is definitely sending ASCII
How do I get this to go out as the HEX line that I’m trying to send
I’ll roll with this and post a thread when done for all the coding in case someone else can make use of it
Next hurdles:
Make this more like a button push (not a switch)
Status command of output #1:
– Send “\x50\x56\x54\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFE”
– Receive 50 56 54 02 01 01 00 02 00 00 00 00 00 00 00 00 00 00
– 8th byte in return is the value for what output is currently selected
– Take that 2 and display the current input on output 1
I don’t know if you have any thoughts for those two things?
This is how I ended up. Shell Command was pretty straight forward.
I think getting the byte of interest out of a string return may just be a little out of my league for now. gonna need to run though a lot more learning prior to that