Miranda CR3232 Protocol
Hi,
I need some help from you guys, having trouble to understand the protocol of this HD-SDI Switcher. I just need the switching command.
Thanks guys
I need some help from you guys, having trouble to understand the protocol of this HD-SDI Switcher. I just need the switching command.
Thanks guys
0
Comments
Hi, i've been reading this manual for days and still cant really get it. Thanks before hand.
0x0000000C - Router Control Protocol
0x00000001 - Sequence Number
0x00000024 - Byte Count (Totla Byte Count)
0x00000050 - Take Command
0x00000001 - Number of Takes in message
-- Start of Take Data --
0x000000xx - Level Number
0x0000F000 - LPR ID (Fixed value indicating Generic 3rd Party control)
0x000000xx - Source
0x000000xx - Destination
-- End of Take Data --
-- End of Message --
Yielding in AMX style:
$00,$00,$00,$0C,$00,$00,$00,$01,$00,$00,$00,$24,$00,$00,$00,$50,$00,$00,
$00,$01,$00,$00,$00,$xx,$00,$00,$F0,$00,$00,$00,$00,$xx,$00,$00,$00,$xx
I think sequence number will have to change for every message, byte count will have to be set based on message length (this one would be 36 decimal, or "0x00000024" for the message, and xx's will have to be set based on what is required in Hex not decimal). You should be able to put a bunch of Take commands in one message as long as you set the Num of Takes and Byte Count properly and your message is not longer than 8176 bytes. At least ther is no checksum as far as I can tell!
Hi Jason, you are my savior. The switching protocol works!!!!!!! I'm not that good with bit operation, still i will try to sort it out. I just need to control its routing as well as querying its current input status, in case operator did a manual switch from the unit itself.
Here is a function that will take 4 bytes and convert it to a long. Lsb = Least significant byte, NLsb = Next Least significant byte, NMsb = Next Most significant byte, Msb = Most significant byte.
But it looks like most of the time in this protocol you can deal directly with the Lsb. I have never tried putting a long value directly into a message, I'm not sure how it would format it. It might be worth a try. Let me know if I can help you with anything else.
Thank you so much Jason, i'll try it out. You've been very helpful