TGP5_RS232_071706

Embed Size (px)

Citation preview

  • 7/29/2019 TGP5_RS232_071706

    1/12

    Technical Documentation

    RS-232 Protocol

    TGP-5

    Version 1.1, 17 July 2006

    Contact Information: 1920 Bickford Avenue Snohomish, WA 98290 (425) 335-4748

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 1 / 12

  • 7/29/2019 TGP5_RS232_071706

    2/12

    Revision History:

    17 November 2005 internal release17 J uly 2006 first public release

    Notes:

    Version Check:To check the version on the unit, please follow the procedure below.

    1. Turn on the unit.2. Press DISPLAY + STANDBY/ON buttons.3. Two versions will be displayed sequentially. Check the first version "MSxxxxx".

    The version number shows the date (ymdd) in which the firmware was created. Here, X, Y

    and Z in month mean Oct, Nov and Dec respectively.

    Version Date Contents

    Date ContentsModel

    1.01.1

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 2 / 12

  • 7/29/2019 TGP5_RS232_071706

    3/12

    SUNFIRE RS-232 Protocol, v1.1

    1 Hardware Overview

    3wire RS-232C protocol19200 or 9600 baud / 8 data bits / 1 stop bits / no parity / no flow control (baud is selectable via OSD9 pin female D type connector (pin 2 is transmit, pin 3 is receive, pin 5 is signal ground)Use a straight-thru cable to connect to your control system or PC.

    9600 baud

    8 data bits

    No parity

    No flow control

    2 Protocol Overview

    1st 2nd-4th 6th-Nth last

    End Character*

    [CR] = "0x0D" hex or "13" decimalCommand Parameter

    (of variable length)Start Character

    * Some control systems use a special character (such as " \r" or " \n") to represent a carriagereturn, [CR]. Please check with your control system provider if you are not sure what

    character or string they use.

    Sunfire's RS-232 protocol is a very sophisticated, yet simple to use interface to 3rd party control

    systems such as Elan, Crestron, AMX, and others. Each command is structured as outlined

    below:

    The start character ("*") tells the Sunfire unit that a command is about to follow. The command +

    parameter instruct the unit to perform a certain operation. The unit will then execute that action

    upon receiving the [CR] string.

    O NP W R [CR]*

    GND

    RX

    TX

    DB9 Male to plug

    into Sunfire

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 3 / 12

  • 7/29/2019 TGP5_RS232_071706

    4/12

    SUNFIRE MAIN ZONE RS-232 Protocol, v1.1

    General Commands

    Category - Code Description TGP-5

    Power"*PWROF" Power Off (standby) yes

    "*PWRON" Power On yes

    "*PWRTG" Power Toggle yes"*PWRST" Gets Power Status yes

    Returns "*PWROF" or "*PWRON"

    Volume*"*VOLABnnn" Sets Volume Level (0-100) yes

    "*VOLUP" Volume Level Up yes

    "*VOLDN" Volume Level Down yes

    "*VOLST" Gets Volume Level yes

    Returns "*VOLnnnn", where "nnnn" is decimal value

    * Limited by Main Zone Max Volume Setting in Menu

    Muting"*MUTOF" Audio Muting Off yes

    "*MUTON" Audio Muting On yes

    "*MUTTG" Audio Muting Toggle yes"*MUTST" Gets Muting Status yes

    Returns "*MUTOF" or "*MUTON"

    Amp On/Off (Receivers Only)"*AUXSB" Receiver Amplifier CH 6-7 to side backs no

    "*AUXSD" Receiver Amplifier CH 6-7 to side axis no

    "*AUXZ2" Receiver Amplifier CH 6-7 to Zone2 out no

    "*AUXST" Receiver Amplifier CH 6-7 Status no

    Returns "*AUXSB", etc."*AMPON" Receiver Amplifier On no

    "*AMPOF" Receiver Amplifier Off no

    "*AMPTG" Receiver Amplifier Toggle no

    "*AMPST" Gets Receiver Amplifier Status no

    Returns "*AMPON", etc.OSD Operation

    "*SETM2" SETS VID2 OUT as Mon2 yes

    "*SETV2" SETS VID2 OUT as Vid2 rec out yes

    "*KEY00" Use with KEY10 to select 10,20,30,40 yes

    "*KEY01" Selects Tuner Preset 1 if Input is Tuner yes

    "*KEY02" Selects Tuner Preset 2 if Input is Tuner yes

    "*KEY03" Selects Tuner Preset 3 if Input is Tuner yes

    "*KEY04" Selects Tuner Preset 4 if Input is Tuner yes

    "*KEY05" Selects Tuner Preset 5 if Input is Tuner yes

    "*KEY06" Selects Tuner Preset 6 if Input is Tuner yes

    "*KEY07" Selects Tuner Preset 7 if Input is Tuner yes

    "*KEY08" Selects Tuner Preset 8 if Input is Tuner yes

    "*KEY09" Selects Tuner Preset 9 if Input is Tuner yes"*KEY10" Sends Key +10 to use with keys abov yes

    "*OSDMN" Enter Setup menu yes

    "*OSDUP" UP, navigation in Setup menu yes

    "*OSDDN" DOWN, navigation in Setup menu yes

    "*OSDRT" RIGHT, navigation in Setup menu yes

    "*OSDLT" LEFT, navigation in Setup menu yes

    "*OSDEN" ENTER, navigation in Setup menu yes

    "*OSDEX" EXIT, leaves Setup menu yes

    "*OSDST" Gets OSD Status (is OSD currently displayed?) yes

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 4 / 12

  • 7/29/2019 TGP5_RS232_071706

    5/12

    SUNFIRE MAIN ZONE RS-232 Protocol, v1.1

    Returns "OSDON" or "OSDOF"

    Source Commands

    Category - Code Description TGP-5

    Input Source Selection"*SRC00" CD yes

    "*SRC01" TAPE yes

    "*SRC02" TUNER - LAST BAND yes

    "*SRC03" PHONO yes

    "*SRC04" 8CH yes

    "*SRC05" VCR yes

    "*SRC06" VID2 yes

    "*SRC07" VID1 yes

    "*SRC08" SAT yes

    "*SRC09" DVD yes

    "*SRC10" TUNER - DIRECT AM yes

    "*SRC11" TUNER - DIRECT FM yes

    "*SRCUP" Next Input yes"*SRCDN" Previous Input yes

    "*SRCST" Gets Current Input Source yes

    Returns "*SRCnn" as listed above.

    DSP Listening Mode Commands

    Category - Code Description TGP-5

    DSP Listening Modes"*DSP00" STEREO yes

    "*DSP01" SOURCE DIRECT yes

    "*DSP02" PRO LOGIC LEGACY yes

    "*DSP03" J AZZ CLUB yes"*DSP04" PARTY yes

    "*DSP05" DTS ES On yes

    "*DSP06" DTS ES Off yes

    "*DSP07" DTS NEO:6 MUSIC yes

    "*DSP08" DTS NEO:6 CINEMA yes

    "*DTSLM" DTS LFE MUSIC yes

    "*DTSLC" DTS LFE CINEMA yes

    "*DTSLS" DTS LFE STATUS yes

    Returns "*DTSLM" or "*DTSLC""*DSP11" DOLBY DIGITAL EX On yes

    "*DSP12" DOLBY DIGITAL EX Off yes

    "*DSP13" DOLBY/DTS SUB MODE Up yes

    "*DSP14" DOLBY/DTS SUB MODE Down yes"*DSP16" PLII2x MUSIC yes

    "*DSP17" PLII2x CINEMA yes

    "*DSP18" PLII2 MATRIX yes

    "*HOLON" HOLOGRAPHIC On yes

    "*HOLOF" HOLOGRAPHIC Off yes

    "*HOLTG" HOLOGRAPHIC Toggle yes

    "*HOLST" HOLOGRAPHIC Status yes

    Returns "*HOLON" or "*HOLOF""DSP22" PLII MUSIC yes

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 5 / 12

  • 7/29/2019 TGP5_RS232_071706

    6/12

    SUNFIRE MAIN ZONE RS-232 Protocol, v1.1

    "DSP23" PLII CINEMA yes

    "*DSPUP" DSP MODE Up yes

    "*DSPDN" DSP MODE Down yes

    "*DSPST" Gets Current DSP Listening Mode yes

    Returns "*DSPnn", etc"*DTSST" Gets DTS SUB MODE yes

    Returns "*DSPnn", etc"*DDSST" Gets DOLBY SUB MODE yes

    Returns "*DSPnn", etc

    Audio Signal Type"*ASTST" Gets Detected Audio Signal Type yes

    Returns "*ASTnn", nn=00=Analog,01=Digital,02=DD Lock,03=DTS Lock,04=PCM

    "*AUTON" Auto Signal Switch On yes

    "*AUTOF" Auto Signal Switch Off yes

    "*AUTST" Auto Signal Switch Status yes

    Side Axis Speakers"*SASON" Side Axis On yes

    "*SASOF" Side Axis Off yes

    "*SASTG" Side Axis Toggle yes

    "*SASST" Gets Side Axis State yes

    Returns "*SASON" or "*SASOF"

    Tuner Commands

    Category - Code Description TGP-5

    Tuning*"*TUNABnnnnn" DIRECT TUNE (must be 5 digits) ** yes

    "*TUNUP" Tune Step Up yes

    "*TUNDN" Tune Step Down yes

    "*TUNAM" Change to AM band yes"*TUNFM" Change to FM band yes

    "*SCNUP" Scan Up (start/stop) yes

    "*SCNDN" Scan Down (start/stop) yes

    "*TUNST" Gets Current Tuning Frequency yes

    Returns "*TUNbbnnnnn"bb=AM,FM nnnnn = frequency

    * TUNER function is shared by both MAIN and ZONE 2** Must select AM/FM band first using source command or direct command listed abov

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 6 / 12

  • 7/29/2019 TGP5_RS232_071706

    7/12

    SUNFIRE MAIN ZONE RS-232 Protocol, v1.1

    Preset*"*PRSRCnn" Recall Preset "nn" (decimal) yes

    "*PRSUP" Next Preset yes

    "*PRSDN" Previous Preset yes

    "*PRSABnn" Assign Current Station to Preset "nn" ** yes

    "*PRSDSxxnnnnnm" Direct Store Preset *** yes

    "*PRSST" Gets Current Preset No.yes

    Returns "*PRSnn", if no preset then nn=00* TUNER function is shared by both MAIN and ZONE 2** Also stores band and noise reduction mode.*** Direct Store Preset: direct storing of any station to any preset

    "xx"=preset #, "nnnnn"=freq., "m"=mode (0=mono, 1=stereo, 2=stereo w/ NEx: "*PRSDS12107502" stores FM107.5 into preset 12 as stereo +NREx: "*PRSDS05008000" stores AM800 into preset 5 as mono (mode ignore

    Advanced System Commands

    Category - Code Description TGP-5

    Speaker Level Trims*"*CNTUP" CENTER Up yes

    "*CNTDN" CENTER Down yes

    "*CNTRS" CENTER Zeroed (reset to 0dB) yes

    "*CNTABnn" Set CENTER (00=-20dB, 40=0dB, 60=+10dB)** yes

    "*SUBUP" SUB Trim Up yes

    "*SUBDN" SUB Trim Down yes

    "*SUBRS" SUB Zeroed (reset to 0dB) yes

    "*SUBABnn" Set SUB (00=-20dB, 40=0dB, 60=+10dB)** yes

    "*SURUP" SUR Up yes

    "*SURDN" SUR Down yes

    "*SURRS" SUR Zeroed (reset to 0dB) yes

    "*SURABnn" Set SUR (00=-20dB, 40=0dB, 60=+10dB)** yes

    "*SBKUP" SUR BACK Up yes"*SBKDN" SUR BACK Down yes

    "*SBKRS" SUR BACK Zeroed (reset to 0dB) yes

    "*SBKABnn" Set SUR BACK (00=-20dB, 40=0dB, 60=+10dB)** yes

    "*RGPUP" REAR GROUP Up (Surround+SurrBack) yes

    "*RGPDN" REAR GROUP Down (Surround+SurrBack) yes

    "*RGPRS" REAR GROUP Zeroed (reset to 0dB) yes

    "*CNTST" Gets CENTER Trim Value yes

    Returns "*CNTST-n.n" (see above)"*SUBST" Gets SUB Trim Value yes

    Returns "*SUBST-n.n" (see above)"*SURST" Gets SUR Trim Value yes

    Returns "*SURST-n.n" (see above)"*SBKST" Gets SUR BACK Trim Value yes

    Returns "*SBKST-n.n" (see above)"*RGPST" Gets REAR GROUP Trim Value yes

    Returns "*RGPST-n.n" (see above)* Trim memory may be assigned in setup menu to be reset to zero when unit is shut d** Half dB steps

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 7 / 12

  • 7/29/2019 TGP5_RS232_071706

    8/12

    SUNFIRE MAIN ZONE RS-232 Protocol, v1.1

    Tone Controls"*BASUP" BASS Up yes

    "*BASDN" BASS Down yes

    "*BASRS" BASS Zeroed (reset to 0dB) yes

    "*BASABnn" Set BASS (00=-10dB, 10=0dB, 20=+10dB) yes

    "*TRBUP" TREBLE Up yes

    "*TRBDN" TREBLE Downyes

    "*TRBRS" TREBLE Zeroed (reset to 0db) yes

    "*TRBABnn" Set TREBLE (00=-10dB, 10=0dB, 20=+10dB) yes

    "*BASST" Gets BASS Value yes

    Returns "*BASnn" (see above)"*TRBST" Gets TREBLE Value yes

    Returns "*TRBnn" (see above)

    Subwoofer Mode"*SMDNM" SUBWOOFER MODE Normal yes

    "*SMDEN" SUBWOOFER MODE Enhanced yes

    "*SMDST" Gets SUBWOOFER MODE Status yes

    Returns "*SMDNM" or "*SMDEN""*DDSUP" DOLBY SUB TRIM Up yes

    "*DDSDN" DOLBY SUB TRIM Down yes

    "*DDSRS" DOLBY SUB TRIM Zeroed yes

    "*DTSUP" DTS SUB TRIM Up yes

    "*DTSDN" DTS SUB TRIM Down yes

    "*DTSRS" DTS SUB TRIM Zeroed yes

    Speaker Setup"*SLRLG" MAIN SPEAKERS Set to Large yes

    "*SLRSM" MAIN SPEAKERS Set to Small yes

    "*SCNLG" CENTER SPEAKER Set to Large yes

    "*SCNSM" CENTER SPEAKER Set to Small yes

    "*SCNOF" CENTER SPEAKER Set to Off yes

    "*SSRLG" SURROUND SPEAKERS Set to Large yes

    "*SSRSM" SURROUND SPEAKERS Set to Small yes

    "*SSROF" SURROUND SPEAKERS Set to Off yes

    "*SSBL1" SURR BACK SPEAKERS Set to 1 Large yes

    "*SSBL2" SURR BACK SPEAKERS Set to 2 Large yes

    "*SSBS1" SURR BACK SPEAKERS Set to 1 Small yes

    "*SSBS2" SURR BACK SPEAKERS Set to 2 Small yes

    "*SSBOF" SURR BACK SPEAKERS Set to Off yes

    "*SUBON" SUB Set to On yes

    "*SUBOF" SUB Set to Off yes

    "*SPKST" Gets Speaker Config Settings yes

    Returns "SPKSTMnCnSnBnLnM=Mains: n=0=Small,1=LargeC=Center: n=0=Small,1=Large,2=OffS=Surrounds: n=0=Small,1=Large,2=OffB=SurrBacks: n=0=2 Small,1=2 Large,2=Off,

    3=1 Small,4=1 LargeL=Sub (LFE): n=0=Off,1=On

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 8 / 12

  • 7/29/2019 TGP5_RS232_071706

    9/12

    SUNFIRE MAIN ZONE RS-232 Protocol, v1.1

    System Resets"*RST00321" System Reset (does not reset to factory default) yes

    "*RST01123" Restore to Factory (ALL SETTINGS WILL BE LOS yes

    "SWFDL" Software Firmware Download Initiate (RS232) yes

    "ZZZZZ" Hex dump of all Flash Eeprom User Settings yes

    Unsolici ted Feedback

    "*FBKON" Turn On Unsolicited Feedback (default) yes"*FBKOF" Turn Off Unsolicited Feedback yes

    "*FBKST" Feedback Status Returns FBON, FBKOF yes

    System Status"*BCANA" Return after DSP change - analog content yes

    "*BCDIG" Return after DSP change - digital content yes

    "*BCDBY" Return after DSP change - Dolby content yes

    "*BCDTS" Return after DSP change - DTS content yes

    "*BCPCM" Return after DSP change - PCM digital content yes

    "*GSWRV" Get current firmware revision for main Flash yes

    returns _x.xx"*GFPST" Gets current front panel display text (9 char) yes

    "*GMZST" Gets Main Zone System Status yes

    Returns "*GMZPnSnnDnPnnMnVnnnnInnOnn"P=Power State: n=0=Off,1=OnS=Source: n=00=CD,01=TAPE,02=TUNER,

    03=PHONO,04=8CH,05=VCR,06=VID2,07=VID1,08=SAT,09=DVD,10=TUNER-AM,11=TUNER-FM

    D=Decoder: n=0=Direct,1=Analog,2=PCM,3=Dolby Digital,4=DTS

    P=DSP Mode: n=00=Source,01=Mono,02-Stereo04=ProLogic,05=Party,06=Jazz Club,07=Neo6Music,08=Neo6Cinema,09=Dolby5.1,10=DolbyEX,11=DTS5.1,12=DTS ES Matrix,13=DTS ES Discrete,14=ProLogicII Music,15= ProLogicII Movie,16= ProLogicII Matrix,17= ProLogicIIx Music,18= ProLogicIIx Movie

    M=Muting: n=0=Unmuted,1=MutedV=Volume: nnnn=0000 to 1000I=# channels in source material, nn=20=2.0,21=2.1,

    41=4.1,50=5.0,51=5.1O=# output channels, nn=20=2.0,21=2.1,

    41=4.1,50=5.0,51=5.1

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 9 / 12

  • 7/29/2019 TGP5_RS232_071706

    10/12

    SUNFIRE ZONE 2 RS-232 Protocol, v1.1

    General Commands

    Category - Code Description TGP-5

    Zone2 Power"*ZPWOF" Power Off (standby) yes

    "*ZPWON" Power On yes

    "*ZPWTG" Power Toggle yes"*ZPWST" Gets Power Status yes

    Returns "*PWROF" or "*PWRON"

    Zone2 Volume*"*ZVLABnnn" Sets Volume Level (0-100) yes

    "*ZVLUP" Volume Level Up yes

    "*ZVLDN" Volume Level Down yes

    "*ZVLST" Gets Volume Level yes

    Returns "*ZVLnnnn", where "nnnn" is decimal value* Limited by Zone2 Max Volume Setting in Menu

    Zone2 Muting"*ZMTOF" Audio Muting Off yes

    "*ZMTON" Audio Muting On yes

    "*ZMTTG" Audio Muting Toggle yes"*ZMTST" Gets Muting Status yes

    Returns "*MUTOF" or "*MUTON"

    Source Commands

    Category - Code Description TGP-5

    Zone2 Input Source Selection"*ZSR00" CD yes

    "*ZSR01" TAPE yes

    "*ZSR02" TUNER - LAST BAND yes

    "*ZSR03" PHONOyes

    "*ZSR04" MAIN COPY (match main zone source) yes

    "*ZSR05" VCR yes

    "*ZSR06" VID2 yes

    "*ZSR07" VID1 -

    "*ZSR08" SAT -

    "*ZSR09" DVD -

    "*ZSR10" TUNER - DIRECT AM -

    "*ZSR11" TUNER - DIRECT FM -

    "*ZSRUP" Next Input yes

    "*ZSRDN" Previous Input yes

    "*ZSRST" Gets Current Input Source yes

    Returns "*ZSRnn" as listed above.* Tuner function is shared w/ main zone

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 10 / 12

  • 7/29/2019 TGP5_RS232_071706

    11/12

    SUNFIRE ZONE 2 RS-232 Protocol, v1.1

    Tuner Commands

    Category - Code Description TGP-5

    Tuning*"*TUNABnnnnn" DIRECT TUNE (must be 5 digits) ** yes

    "*TUNUP" Tune Step Up yes

    "*TUNDN" Tune Step Down yes"*SCNUP" Scan Up (start/stop) yes

    "*SCNDN" Scan Down (start/stop) yes

    "*TUNST" Gets Current Tuning Frequency yes

    Returns "*TUNbbnnnn"bb= AM, FM nnnnn = frequency

    * TUNER function is shared w/ main zone** Must select AM/FM band first using source command or direct command listed above

    Preset*"*PRSRCnn" Recall Preset "nn" (decimal) yes

    "*PRSUP" Next Preset yes

    "*PRSDN" Previous Preset yes

    "*PRSABnn" Assign Current Station to Preset "nn" ** yes

    "*PRSDSxxnnnnnm" Direct Store Preset *** yes"*PRSST" Gets Current Preset No. yes

    Returns "*PRSnn", if no preset then nn=00* TUNER function is shared w/ main zone** Also stores band and noise reduction mode.*** Direct Store Preset: direct storing of any station to any preset

    "xx"=preset #, "nnnnn"=freq., "m"=mode (0=mono, 1=stereo, 2=stereo w/ NR)Ex: "*PRSDS12107502" stores FM107.5 into preset 12 as stereo +NREx: "*PRSDS05008000" stores AM800 into preset 5 as mono (mode ignored for AM)

    Advanced Setup Commands

    Category - Code Description TGP-5

    Zone2 Balance*"*ZBLLT" BALANCE Left One Increment yes

    "*ZBLRT" BALANCE Right One Increment yes

    "*ZBLRS" BALANCE Zeroed (reset to center) yes

    "*ZBLABnnn" Set BALANCE (000=-100 left, 0=0, 100=+100 right) yes

    "*ZBLST" Gets BALANCE yes

    Returns "*ZBLnnnn" (see above)* Zone 2 balance: 0=full left, 25=center, 50=full right

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 11 / 12

  • 7/29/2019 TGP5_RS232_071706

    12/12

    SUNFIRE ZONE 2 RS-232 Protocol, v1.1

    Zone2 System Status"*GZ2ST" Gets Zone2 System Status yes

    Returns "*GZ2PnSnnDnPnnMnVnnnnInnOnn"P=Power State: n=0=Off,1=OnS=Source: n=00=CD,01=TAPE,02=TUNER,

    03=PHONO,04=8CH,05=VCR,06=VID2,

    07=VID1,08=SAT,09=DVD,10=TUNER-AM,11=TUNER-FMD=Decoder: n=0=Direct,1=Analog,2=PCM,

    3=Dolby Digital,4=DTSP=DSP Mode: n=00=Source,01=Mono,02-Stereo

    04=ProLogic,05=Party,06=Jazz Club,07=Neo6Music,09=Dolby5.1,10=DolbyEX,11=DTS5.1,12=DTS ES Matrix,13=DTS ES Discrete

    M=Muting: n=0=Unmuted,1=MutedV=Volume: nnnn=0000 to 1000I=# channels in source material, nn=20=2.0,21=2.1,

    41=4.1,50=5.0,51=5.1O=# output channels, nn=20=2.0

    Support: 425.335.4748 Copyright 2006 Sunfire Corporation 12 / 12