Materiały referencyjne
Sterowanie HDfury Diva po RS232 i IP/Telnet: okablowanie, parametry i składnia
Każde sterowanie dostępne w serwerze WWW jest też dostępne po RS232 i po IP, więc Divą pokierujesz z komputera z portem szeregowym albo z systemu sterowania w sieci. Składnia jest w obu przypadkach ta sama poza jednym szczegółem.
Gniazdo RS232
Diva przyjmuje sterowanie szeregowe na gnieździe jack 3,5 mm, a nie na DB9, przez dołączony kabel. Sygnały na wtyku to:
- TIP
- TX, czyli dane wysyłane z Divy.
- RING
- RX, czyli dane przyjmowane przez Divę.
- SLEEVE
- Masa.
Łącze pracuje z prędkością 19200 baud, bez parzystości, z jednym bitem stopu i bez sprzętowej kontroli przepływu. Jeśli używasz systemu sterowania, który oczekuje tego osobno, to jest 19200, n, 1. Strona o połączeniach jack opisuje dołączone kable DB9 na jack, a sekcja CEC i RS232 ma pole testowe, którym wyślesz komendę z przeglądarki i potwierdzisz okablowanie, zanim cokolwiek napiszesz.
Sterowanie po IP i Telnet
Ten sam zestaw komend jest dostępny przez sieć. Domyślny port IP to 2210, więc otworzysz sesję do czegoś w rodzaju 192.168.1.100:2210. Port i adres ustawia się w sekcji CONFIG, a zmiana każdego z nich działa po restarcie.
Jak zbudowana jest komenda
Po RS232 każda komenda zaczyna się nagłówkiem #diva i kończy powrotem karetki albo znakiem nowej linii. Po IP i Telnet znak kończący jest ten sam, ale nagłówek #diva nie jest potrzebny. Każda odpowiedź Divy ma dopisany zarówno powrót karetki, jak i znak nowej linii, w postaci <cr><lf>, więc parser może liczyć na spójne zakończenie wiersza. Używaj wyłącznie małych liter.
Są dwie ogólne postacie. Żeby zapisać wartość:
- #diva set x y, gdzie #diva to nagłówek rozpoczynający każdą komendę RS232, set oznacza, że wartość zostanie zapisana w Divie, x to zapisywany cel, a y to wartość lub wartości.
- #diva get x, gdzie get oznacza, że wartość zostanie odczytana z Divy, a x to odczytywany cel.
- Te same dwie komendy po IP wyglądają dokładnie tak samo, tyle że bez nagłówka #diva.
Gdy masz już te dwa wzorce, reszta listy komend sprowadza się do znajomości nazw celów i dopuszczalnych wartości. Niektóre cele przyjmują więcej niż jedną wartość, na przykład gdy jedna komenda ustawia oba wyjścia naraz, a poniższa lista podaje dla każdego zakres, jaki przyjmuje, wraz z gotowym przykładem.
Pełna lista komend
Poniżej wypisano każdą komendę, którą Diva rozumie, a tabelę można przeszukiwać, więc szybciej wyszukasz to, co chcesz zmienić, niż przeczytasz całość. Ta sama lista jest do pobrania, a jej kopia jest dołączana jako plik tekstowy do każdej paczki aktualizacji firmware. Korzystaj z kopii dostarczonej z firmware, na którym faktycznie pracujesz, bo komendy z czasem przybywają.
| Komenda | Wartości | Co robi | Przykład |
|---|---|---|---|
#diva set insel tx0 tx1 | tx0 and tx1 is [0-3] input port, or [4] for follow | Set tx0 to input 2 and tx1 to input 3 | #diva set insel 2 3 |
#diva set inseltx0 x | x is [0-3] input port, or [4] for follow | Set tx0 to input 1 and keep tx1 as is | #diva set inseltx0 1 |
#diva set inseltx1 x | x is [0-3] input port, or [4] for follow | Set tx0 to input 1 and keep tx0 as is | #diva set inseltx1 1 |
#diva set ipaddr xxx.xxx.xxx.xxx | Sets the static IP address. Active when dhcp is turned off. | #diva set ipaddr 192.168.1.222 | |
#diva set ipmask xxx.xxx.xxx.xxx | Sets the static IP network mask. Active when dhcp is turned off. | #diva set ipmask 255.255.255.0 | |
#diva set ipgw xxx.xxx.xxx.xxx | Sets the static IP gateway address. Active when dhcp is turned off. | #diva set ipgw 192.168.1.1 | |
#diva set dhcp x | x is [on / off] | Set the dynamic or static IP address selection. Dynamic = dhcp on | #diva set dhcp off |
#diva set tcpport x | Set the TCP port to be listened to for commands. Default is 2200 Requires a reboot to be applied. | #diva set port 2201 | |
#diva set autosw x | x is [on / off] | Enables or disables the autoswitch feature | #diva set autosw off |
#diva set autoswprio x | x is [on / off] | Enables or disables the autoswitch priority feature | #diva set autoswprio off |
#diva set edidmode x | x is [automix / custom / fixed / copytx0 / copytx1] | #diva set edidmode automix | |
#diva set edid audio x | x is [stereo / 51 / full / native / tx1] | Sets the automix EDID audio flag | #diva set edid audio native |
#diva set edid bt2020 x | x is [on / off] | Sets the automix EDID bt2020 capability addition Will not remove if existing on the sink - only adds if missing | #diva set edid bt2020 on |
#diva set edid yuvremove x | x is [on / off] | Sets the automix EDID YUV/YCbCr capability force Controls if the source sees a YCbCr capable sink | #diva set edid yuvremove on |
#diva set edid hdr10 x | x is [on / off] | Sets the automix EDID hdr10 capability Will not remove if existing on the sink - only adds if missing | #diva set edid hdr10 on |
#diva set edid hlg x | x is [on / off] | Sets the automix EDID hlg capability Will not remove if existing on the sink - only adds if missing | #diva set edid hlg on |
#diva set edid dv x | x is [on / off] | Sets the automix EDID Dolby Vision capability Will not remove if existing on the sink - only adds if missing | #diva set edid dv on |
#diva set edid dvremove x | x is [on / off] | Sets the automix EDID to remove DV capability | #diva set edid dvremove on |
#diva set edid dvlimit x | x is [on / off] | Sets the automix EDID Dolby Vision frequency capability to 300Mhz max | #diva set edid dvlimit on |
#diva set edid 3dremove x | x is [on / off] | Sets the automix EDID to remove 3D capability Controls if the source sees a 3D capable sink | #diva set edid 3dremove on |
#diva set hdcp x | x is [14 / auto] | Sets the hdcp level in auto mode, depending on sink capability uses hdcp 1.4 or 2.2 | #diva set hdcp auto |
#diva set scale x | x is [auto / custom / none] | Sets the scaling style for tx0 (tx1 is always automatic) In auto mode, optimizes according to the best sink capabilities | #diva set scale auto |
#diva set autonoupscale x | x is [on / off] | Sets the mode for upscaling in tx0 output. Applies in "scale auto" mode only. In "scale auto" mode enables/disables upscaling of 1080p content automatically to 4k. | #diva set autonoupscale off |
#diva set edidtableinp0 x | |||
#diva set edidtableinp1 x | |||
#diva set edidtableinp2 x | |||
#diva set edidtableinp3 x | x is [1 - 100] for edidtableinp0 and [0 - 100] for others | Sets the custom EDID for corresponding input port For ports 1-3 table number 0 indicates copy port 0 table | #diva set edidtableinp0 11 |
#diva set edidalgo x | x is [0 - 4] | Sets the automix algorithm 0 = Min video, min audio 1 = Min video, max audio 2 = Tx0 priority 3 = Tx1 priority 4 = Max video, max audio [default] | #diva set edidalgo 4 |
#diva set hdrcustom x | x is [on / off] | Starts to output custom HDR metadata and ignores any input received HDR metadata. Overrides all other hdrcustom options | #diva set hdrcustom on |
#diva set hdrcustomhdr10only x | x is [on / off] | Starts to output custom HDR metadata if and only if the input is HDR10. This setting is used to replace the incoming HDR10 metadata. | #diva set hdrcustomhdr10only on |
#diva set hdrcustomhlgonly x | x is [on / off] | Starts to output custom HDR metadata if and only if the input is HLG. This setting is used to replace the incoming HLG metadata. | #diva set hdrcustomhlgonly on |
#diva set hdrcustomhlgonlyauto x | x is [on / off] | Starts to output custom HDR metadata if and only if the input is HLG and the sink has no HLG support. This setting is used to replace the incoming HLG metadata. Useful when turning on/off HLG capable sink while non-HLG sink is also connected. | #diva set hdrcustomhlgonlyauto on |
#diva set hdrdisable x | x is [on / off] | Stops sending any HDR metadata content | #diva set hdrdisable on |
#diva set hdrdisablehdr10only x | x is [on / off] | Stops sending any HDR metadata content if the input is HDR10 | #diva set hdrdisablehdr10only on |
#diva set hdrdisablehlgonly x | x is [on / off] | Stops sending any HDR metadata content if the input is HLG | #diva set hdrdisablehlgonly on |
#diva set avicustom x | x is [on / off] | Starts to output custom AVI infoframe and ignores any input received AVI metadata. | #diva set avicustom on |
#diva set avidisable x | x is [on / off] | Stops sending any AVI infoframe content | #diva set avidisable on |
#diva set cec x | x is [on / off] | Sets the CEC engine | #diva set cec on |
#diva set cecla x | x is [video / audio] | Sets the CEC engine logical address. For video [14] and for audio [5]. | #diva set cecla audio |
#diva set archbr x | x is [on / off] | Sets the ARC capability to include DD+ / ATMOS over DD+ capability. | #diva set archbr on |
#diva set oled x | x is [on / off] | Sets the OLED display visibility | #diva set oled on |
#diva set oledrev x | x is [on / off] | Sets the OLED display reversed colors | #diva set oledrev on |
#diva set oledrot x | x is [on / off] | Sets the OLED display rotation | #diva set oledrot on |
#diva set oledpage x | x is [0-4] | Sets the OLED display page | #diva set oledpage 0 |
#diva set oledfade x | x is [0-255] | Sets the OLED display fade timer in seconds. After this time OLED goes blank 0 = no fade | #diva set oledfade 60 |
#diva set osd x | x is [on / off] | Enables / disables osd | #diva set osd on |
#diva set osdloc x y | x is [1 - 1920] and y is [1 - 1080] | Sets the OSD information location coordinates. For 4k the values are 4x | #diva set osdloc 50 850 |
#diva set osdfg x | x is [1 - 31] | Sets the OSD foreground color | #diva set osdfg 20 |
#diva set osdbg x | x is [1 - 31] | Sets the OSD background color | #diva set osdbg 20 |
#diva set osdlevel x | x is [0 - 7] | Sets the OSD opacity level | #diva set osdlevel 4 |
#diva set osdfade x | x is [0-255] | Sets the OSD fade timer in seconds. After this time OSD info disappears 0 = no fade | #diva set osdfade 20 |
#diva set osdfield x y | x is [source / video / videoif / hdr / hdrif / audio / rxhdrforce | rxvideoforce / ignoremetadata] and y is [on / off] Sets the OSD field parameter visibility | #diva set osdfield videoif off |
#diva set osdmaskloc x y x1 y1 | x and x1 are [1 - 1920] and y and y1 are [1 - 1080] | Sets the OSD mask information location coordinates. For 4k the values are 4x | #diva set osdmaskloc 50 850 1900 900 |
#diva set osdmask x | x is [on / off] | Enables / disables osdmask | #diva set osdmask on |
#diva set osdmasklevel x | x is [0 - 7] | Sets the OSD opacity level | #diva set osdmasklevel 4 |
#diva set osdmaskgray x | x is [0 - 15] | Sets the OSD gray level | #diva set osdmaskgray 4 |
#diva set osdtextloc x y | x is [1 - 1920] and y is [1 - 1080] | Sets the OSD text location coordinates. For 4k the values are 4x | #diva set osdtextloc 50 20 |
#diva set osdtextneverfade x | x is [on / off] | Osd text typically fades together with normal OSD. This setting can disable fading. | #diva set osdtextneverfade on |
#diva set osdtextstr x | x max 64 characters | Defines the specific text string to be displayed. Must be in enlosed in quotation | #diva set osdtextstr "HDFury 2019" |
#diva set osdtext x | x is [on / off] | Enables / disables osdtext | #diva set osdtext on |
#diva set mutetx0audio x | x is [on / off] | Mute the tx0 hdmi audio output | #diva set mutetx0audio on |
#diva set mutetx1audio x | x is [on / off] | Mute the tx1 hdmi audio output | #diva set mutetx1audio on |
#diva set analogvolume x | x is [-30 to +10] | Sets the analog L/R audio jack output volume in dB. | #diva set analogvolume -10 |
#diva set analogbass x | x is [-10 to +10] | Sets the analog L/R audio jack output bass level in dB. | #diva set analogbass 5 |
#diva set analogtreble x | x is [-10 to +10] | Sets the analog L/R audio jack output treble level in dB. | #diva set analogtreble -2 |
#diva set reboot | Reboots the unit, does not clear any settings | ||
#diva set factoryreset x | x is [1, 2, 3] | 1 = Erase all settings but retain the custom EDID tables 2 = Erase custom EDID tables but retain other settings 3 = ERASE all settings and EDID tables | #diva set factoryreset 3 |
#diva set jvcmacro x | x is [on / off] | Enables / disables JVC macro sending | #diva set jvcmacro on |
#diva set jvcmacrosync x | x is [on / off] | Enables / disables JVC macro sending on every sync instead of just at start once | #diva set jvcmacrosync on |
#diva set jvcmacrodelay x | x is [0 - 255] | Sets the delay between a mode change and sending the macro command via RS232 | #diva set jvcmacrodelay 25 |
#diva set jvcmacrohdr10mode x | x is [0 - 4] | 0 = auto 1 = ignore metadata 2 = semiautomatic 3 = custom Sets the current JVC macro mode | #diva set jvcmacrohdr10mode 0 |
#diva set hdrprofile x | x is [0-5] | Sets the HDR to SDR conversion tone mapping profile. 0 = OFF. Applies to only when the input is HDR10. | #diva set hdrprofile 2 |
#diva set ledprofilevideo x | x is [0-5] | 0 = off 1 = follow active video 2 = custom static color 3 = custom blinking color 4 = custom pulsating color 5 = rotating colors Sets LED profile used under active video condition | #diva set ledprofilevideo 1 |
#diva set ledprofilesync x | x is [0-5] | 0 = off 1 = follow active video 2 = custom static color 3 = custom blinking color 4 = custom pulsating color 5 = rotating colors Sets LED profile used while signal is resyncing | #diva set ledprofilesync 4 |
#diva set ledspeedrotate x | x is [1-50] | Sets the speed of the rotating colors effect | #diva set ledspeedrotate 125 |
#diva set ledspeedpulsate x | x is [1-50] | Sets the speed of the blinking/pulsating led effect | #diva set ledspeedpulsate 25 |
#diva set ledgamma x | x is [0-3] | 0 = Gamma 2.2 1 = Gamma 2.0 2 = Gamma 1.8 3 = Gamma 1.6 Sets the gamma of the LED elements during active video mode | #diva set ledgamma 0 |
#diva set ledsynckeep x | x is 0, 1 | Sets the flag to keep LED effect active forever under sync condition when no displays/sources are connected | #diva set ledsynckeep 1 |
#diva set ledcolorred x | x is [0-255] | Sets the custom RED color value | #diva set ledcolorred 100 |
#diva set ledcolorgreen x | x is [0-255] | Sets the custom GREEN color value | #diva set ledcolorgreen 100 |
#diva set ledcolorblue x | x is [0-255] | Sets the custom BLUE color value | #diva set ledcolorblue 100 |
#diva set ledredgain x | x is [0-31] | Sets the global RED led calibration amplitude value | #diva set ledredgain 31 |
#diva set ledgreengain x | x is [0-31] | Sets the global GREEN led calibration amplitude value | #diva set ledgreengain 31 |
#diva set ledbluegain x | x is [0-31] | Sets the global BLUE led calibration amplitude value | #diva set ledbluegain 31 |
#diva set lagtesttarget x | x is [0-2] | 0 = left top corner 1 = center 2 = bottom right corner Sets the location of the lag test measurement | #diva set lagtesttarget 1 |
#diva set lagtestenable x | x is 0, 1 | Enables/disables the lag tester display | #diva set lagtestenable 1 |
#diva set lagteststart | Starts the lag test measurement | #diva set lagteststart |
Nic nie pasuje do filtra.