ich habe meine Russound Multiroomanlage bisher nur rudimentär angebunden über RS232, das funktioniert auch sehr gut und zuverlässig, nun möchte ich gern erweitern.
Ich hätte gern den Status in Loxone dargestellt. Russound beschreibt das mit seinem Protokoll so:
7.12 Get All Zone info
As stated previously, a message can be used to request all of a particular Zone's parameter values
at once. This can be very useful for updating panel displays. The following is an example of
how to request Zone information for a particular Zone and what the return message would look
like.
7.12.1 Get State
This is the Request message for the parameter values of the selected Zone.
Byte # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Value F0 cc 00 7F 00 00 70 01 04 02 00 zz 07 00 00 xx F7
cc = controller number -1
zz = zone number -1
xx = checksum
The return message would look like the following.
Byte # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Value F0 00 00 70 cc 00 7F 00 00 04 02 00 zz 07 00 00 01 00 0C 00 ## ## ##
Byte # 24 25 26 27 28 29 30 31 32 33 34
Value ## ## ## ## ## ## ## ## 00 xx F7
cc = controller number -1
zz = zone number -1
xx = checksum
The parameter values are depicted in bytes 21 – 31. These values will change depending on the
state of the selected Zone. The above example shows the parameter values for a Zone
configured and being used as follows:
Byte #21 = Current Zone On/Off state (0x00 = OFF or 0x01 = ON)
Byte #22 = Current Source selected -1
Byte #23 = Current Volume level (0x00 - 0x32, 0x00 = 0 Displayed … 0x32 = 100 Displayed)
Byte #24 = Current Bass level (0x00 = -10 … 0x0A = Flat … 0x14 = +10)
Byte #25 = Current Treble level (0x00 = -10 … 0x0A = Flat … 0x14 = +10)
Byte #26 = Current Loudness (0x00 = OFF, 0x01 = ON )
Byte #27 = Current Balance level (0x00 = More Left … 0x0A = Center … 0x14 = More Right)
Byte #28 = Current System On state (0x00 = All Zones Off, 0x01 = Any Zone is On)
Byte #29 = Current Shared Source (0x00 = Not Shared 0x01 = Shared with another Zone)
Wie verarbeite ich nun diese Informationen mit Loxone weiter? Wenn ich eine Statusabfrage starte, schickt mir die Anlage einen String zurück, aber wie kann ich die einzelnen Paramter auslesen und einzelnen Variablen zuweisen?
Als nächstes möchte ich dann auch Informationen auf dem Display darstellen, Raumtemperatur und Aussentemperatur z.B., aber wie bekomme ich so einen komplexen String mit berechneter Prüfsumme und variablen Temperaturen dargestellt?
Vielen Dank für eure Hilfe
Kommentar