Your Universal Remote Control Center
RemoteCentral.com
RS-232 & IP Control Forum - View Post
Previous section Next section Previous page Next page Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Page 3 of 3
Topic:
control of a HDMI Matrix via RS232
This thread has 34 replies. Displaying posts 31 through 35.
Post 31 made on Monday March 28, 2011 at 03:27
sunnyngo
Lurking Member
Joined:
Posts:
March 2011
1
Hi, I'm newbie..maybe in future, i'll need your help!
Game over
Post 32 made on Friday August 3, 2012 at 10:30
davidrule
Lurking Member
Joined:
Posts:
June 2010
3
I've created a Homeseer plugin for the Monoprice HDMI Matrix switch. If anyone's interested, you can d/l from here: [Link: forums.homeseer.com]
Post 33 made on Friday November 21, 2014 at 19:47
DoCDooM
Lurking Member
Joined:
Posts:
March 2013
2
The product documentation available on the OEM manufacturer's website syvio.com.cn as well as more recently on the Monoprice and CMICables (the replacement for syvio) websites include a many times copied drawing describing connecting the +5 volt power supply lead directly to pin 4, enabling DTR continuously.

The serial port is fully RS-232C compliant, the RS-232 protocol itself has been a wild west show of interpretations since 1969 so minor changes and variations are seen all across the board from one device to the next.

The issue that many have been running into is getting that DTR signal on pin 4 to stay high, this is because the manufacturer of this otherwise excellent product used a port and UART chip wired as a host instead of a terminal port, so using a regular null modem cable results in pins 4 and 6 being reversed, the host chip in the switcher is constantly sending a DTR "high" from the terminal device (the switcher), had they used a port wired as a terminal device instead of a host then the DTR signal would come from device to the PC or AV control system when the switcher is ready for the next command and the host device would set the DSR pin 6 high and wait for the DTR signal from  the switcher, all as per the RS-232 protocol.

Picture if you will, for the sake of argument, trying to plug the flat USB A connector into the square USB B connector on your printer, or plugging one of those useless dual USB A cables from one PC to another and expecting the PCs USB hubs to deal with a device that thinks it is the master rather than the slave.

This situation results in being able to send data and control the switcher but with no data being returned from the device, hence the supplied software failing to connect.

This solution worked, one can either custom wire the db9 connector with a connection to a +5 volt supply on pin 4 or and wire it internally on the board and you will have stable, two way serial communications, if somewhat slowed down by the constant feedback from the device.

Here is a link to the Monoprice website pdf describing the DTR solution wiring that is necessary for this device to work.

[Link: monopricehub.com]

The best solution I found (and I tried them all by the way) is to solder up a partial null modem cable for basic software flow control, RX+TX+DTR+DSR+RTS+CTS+Ground;

Wire Pin 2 to pin 3, pin 3 to pin 2, pin 4 to pin 4, pin 6 to pin 6, pin 7 to pin 7 and pin 8 to pin 8, this meets the basic RS-232 hardware definition established in 1962 for use with teletypewriter devices and allows a PC running a good terminal emulator such as Crestron viewport or the less comprehensive but still usable EventGhost suite or an automation system such as Pronto, Control4, AMX or Crestron to control the switcher reliably.

Notes:

Putty is of no use whatsoever with this product.

I found that DSR pin 6 had no appreciable effect on 3rd party communications.

I did find that in order to operate the switcher's host software "matrix.exe", the RTS and CTS leads MUST be connected, pin 7 to pin 7 and pin 8 to pin 8 as well as the DSR (pin 6) and DTR (pin 4) connections.

Thus far I have seen that commands will not be reliably received and executed by the device if they are sent to it any faster than one command per 500ms.

I hope this helps everyone out.

Yours

Dan

On February 11, 2011 at 21:13, dheiskell said...
I just finished writing a driver for the monoprice 4x2 switcher with RS232 control.

The cable required is odd. pins 2,3 are swapped but all other pins especially 4 DTR are connected straight through.

The DTR pin is important. Without DTR on the monoprice provides no status back. RTS,CTS,DSR,CD have no effect and can be connected or disconnected, they should be wired straight through if connected.

Finally the status is continuously sent back while dtr is asserted.

If the switcher is not powered on, it still sends status back, however it won't switch. Since the status includes whether it is on/off you can look at the status and if it is off send the power toggle command 0x10, 0xEF, 0xD5, 0x7B to turn it on.

 
Nothing is impossible, we just don't know how to do it;
Yet.
Post 34 made on Friday August 7, 2015 at 22:56
WhiteRau
Lurking Member
Joined:
Posts:
July 2015
1
i know it's been a few years and many great products since these posts, but this unit is proving to be very stable for even mid-range installations. for those looking for an even easier solution using the RJ45-RS232 black adapters that RTI sends with the XP6/8/&c. just swap pins 5&6 on the Cat5e connector and BAM! works perfectly. and i mean rock steady. no need for +5v crossovers or special null cables. you will need a female-to-female converter for 90% of your stuff though...don't know why RTI still sends out male versions when we all know devices are male...

anyway. thought this might be useful.
Post 35 made on Wednesday August 12, 2015 at 06:42
bambam_101
Long Time Member
Joined:
Posts:
February 2008
201
Why do you guys not test your RS232 wiring properly before trying to send commands to a device? It takes all of 10 seconds with a multimeter to check your TX/RX wiring to make sure it isnt reversed.

I see it all the time with my techs and programmers. Spending so much time trying to send commands over a serial cable that is wired incorrectly. 10 seconds with a multimeter and you take the guesswork of "is it my string or is it the cable?" out of the equation.

Rant off.

(Note: Im actually just pissed at the moment cos my techs just wired a 4x4 videowall, nearly 3 storeys off the ground and of 16 hand soldered 232 cables, 6 were correct. Very annoying!)
Page 3 of 3


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse