Hallo zusammen,
ich möchte gerne einen UI16 Mixer über LAN ansteuern.
In der Beschreibung steht:
[i]The control device sends a normal HTTP request over the port 80 for
http://MIXER_IP/raw ("GET /raw HTTP1.1
" over the port 80 is enough)
After the basic http negotiation is over, the connection turns into a
normal socket (not a web socket).
Commands are separated by the UNIX newline 0A character ("
" in C++).
In order to receive data updates, the control device should send ‚ALIVE‘ command every couple of seconds or so.
If the server does not receive ALIVE from the client for around 5 seconds, it stops sending updates (that’s when iPads go to sleep). [/i]
Wenn ich das richtig verstehe muss ich erst das WebUI des Mixers aufrufen um eine Verbindung aufzubauen.
Dann alle x Sekunden einen „ALIVE“ senden um die Verbindung aufrecht zu halten.
Ich habe also folgendes versucht:
1. WebUI aufrufen
//URL aufrufen um Kommunikation zu beginnen
$url = 'http://192.168.70.22'; // UI16
print_r(get_headers($url, 1));
Ergebnis:
Array
(
[0] => HTTP/1.1 200 OK
[Content-type] => text/html
[Connection] => Keep-Alive
[Content-Length] => 2276
[Expires] => Fri, 03 Apr 2009 14:49:11 GMT
)
2. ALIVE senden
RegVar_SendText(25411,"ALIVE
");
Zyklisch alle 3 Sekunden.
Jetzt hätte ich eigentlich eine Reaktion seitens Mischer erwartet.
Es sieht aber so aus als wäre Symcon mit dem „ALIVE“ Alleinunterhalter :rolleyes:
Zumindest laut dem Debug der RegisterVariablen:
TXT: 07.06.2020, 15:03:33 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:33 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:36 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:36 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:39 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:39 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:42 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:42 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:45 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:45 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:48 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:48 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:51 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:51 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:54 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:54 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:03:57 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:03:57 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:04:00 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:04:00 | TRANSMIT | 41 4C 49 56 45 0A
TXT: 07.06.2020, 15:04:03 | TRANSMIT | ALIVE<LF>
HEX: 07.06.2020, 15:04:03 | TRANSMIT | 41 4C 49 56 45 0A
Hat jemand eine Idee was ich noch testen könnte?
Gruß Isi