Freak4x
30. Dezember 2011 um 11:44
1
Hallo zusammen,
ich habe mir folgende „HDMI Matrix “ zugelegt, welcher sich u.a. über RS-232 steuern läßt.
Nun meine Frage: Wie kann ich die HDMI Matrix per RS-232 mit IPS steuern bzw. einbinden?
In der Anleitung von dem Gerät steht zu RS-232 nur folgendes:
Binary Table:
ASCII | Select Input | Byte
1 | A | 0x00 0x01
2 | B | 0x00 0x02
3 | C | 0x00 0x04
4 | D | 0x00 0x08
Note: send out the 2 bytes circulary, the valid input will be sent to corresponding output port orderly
RS-232 Setting:
BPS: 9600
Data bits: 8
Stop Bits: 1
CRC bits. keine
Flow Control: keine
Schon Mal vielen Dank im vorraus…
Gruß
Freak4x
Freak4x
31. Dezember 2011 um 11:52
2
Ich habe dafür nun doch noch selber eine Lösung gefunden und es ähnlich wie im Post „http://www.ip-symcon.de/forum/144000-post48.html “ gemacht.
Falls sich jemand auch zu ein Teil anschafft, hier mein erster erfolgreicher Test:
$id_com = 37259 /*[HDMI Matrix Port]*/ ;
switch ($IPS_VALUE)
{
case "1":
$Output = ("A");
SetValue($IPS_VARIABLE,50);
break;
case "2":
$Output = ("B");
SetValue($IPS_VARIABLE,50);
break;
case "3":
$Output = ("C");
SetValue($IPS_VARIABLE,50);
break;
case "4":
$Output = ("D");
SetValue($IPS_VARIABLE,50);
break;
}
#COMPort_SendText($id_com, "B");
COMPort_SendText($id_com, $Output);
?>
Die Ports können aber scheinbar nicht direkt angesteuert werden. Es muss der Kanal (z.B. Ausgang 1) dann so oft betätigt werden, bis die richtige Quelle angewählt ist.
Eine direkte Anwahl von z.B. Quelle 3 auf Ausgang 1 ist wohl leider nicht vorgesehen.
Gruß
Freak4x