Reference
HDfury Diva RS232- og IP/Telnet-styring: kabling, parametre og syntaks
Alt hvad webserveren kan, kan også gøres over RS232 og over IP, så Diva kan styres fra en computer med serielport eller fra et styresystem på netværket. Syntaksen er den samme i begge tilfælde på nær én detalje.
RS232-jackstikket
Diva tager seriel styring på et 3,5 mm jackstik frem for en DB9, med det medfølgende kabel. Signalerne i stikket er:
- TIP
- TX, som sender data ud fra Diva.
- RING
- RX, som modtager data ind i Diva.
- SLEEVE
- Stel.
Forbindelsen kører ved 19200 baud, ingen paritet, én stopbit og uden handshake. Bruger du et styresystem, der vil have det opgivet hver for sig, er det 19200, n, 1. Siden om jackforbindelser dækker de medfølgende DB9-til-jack-kabler, og CEC- og RS232-afsnittet har et testfelt, så du kan sende en kommando fra browseren og bekræfte kablingen, før du skriver noget.
Styring over IP og Telnet
Det samme kommandosæt kan nås over netværket. Standard-IP-porten er 2210, så du ville åbne en session til noget i retning af 192.168.1.100:2210. Både porten og adressen sættes i CONFIG-afsnittet, og en ændring af nogen af dem træder i kraft efter en genstart.
Sådan er en kommando bygget op
Over RS232 starter hver kommando med headeren #diva og slutter med enten et vognretur eller et linjeskift. Over IP og Telnet er afslutningen den samme, men der er ikke brug for #diva-headeren. Hvert svar, Diva sender tilbage, har både vognretur og linjeskift sat på til sidst, i formen <cr><lf>, så en parser kan regne med en ensartet linjeafslutning. Brug kun små bogstaver hele vejen igennem.
Der er to generiske former. Til at skrive en værdi:
- #diva set x y, hvor #diva er headeren der starter hver RS232-kommando, set angiver at en værdi skal skrives til Diva, x er det mål der skrives til, og y er værdien eller værdierne.
- #diva get x, hvor get angiver at en værdi skal læses fra Diva, og x er det mål der læses.
- De samme to kommandoer over IP ser præcis sådan ud, blot uden #diva-headeren.
Når du har de to mønstre, handler resten af kommandolisten om at kende navnene på målene og deres tilladte værdier. Nogle mål tager mere end én værdi, for eksempel når en enkelt kommando sætter begge udgange på én gang, og listen nedenfor angiver det interval, hver enkelt tager imod, sammen med et gennemarbejdet eksempel.
Den fulde kommandoliste
Hver kommando, Diva forstår, er listet nedenunder, og tabellen kan søges i, så det er hurtigere at søge efter det, du vil ændre, end at læse den igennem. Den samme liste kan hentes, og en kopi følger med som tekstfil i hver firmwarepakke. Brug den kopi, der fulgte med den firmware du faktisk kører, for der kommer kommandoer til over tid.
| Kommando | Værdier | Hvad den gør | Eksempel |
|---|---|---|---|
#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 |
Intet matcher det filter.