Rs 232 Protocol

Embed Size (px)

Citation preview

  • 7/31/2019 Rs 232 Protocol

    1/35

    Sony Amplifier/Receiver

    RS-232C Control Protocol Specification

  • 7/31/2019 Rs 232 Protocol

    2/35

    1.IntroductionThis specification describes the RS232C communication protocol between anAmplifier and a Host Controller.

    2. OutlineFrom the system controller, a command is transmitted to the Amplifier from theHost Controller, and the Amplifier / Receiver. A received command changes aninternal state according to the contents of the message, or answers the HostControllers requested Status.

    3. Communication format

    It is Based on RS-232C format.

    Baud Rate : 9600bpsData Bits : 8bitParity : NoStop Bits : 1

    4. Regulation on communication

    -Amplifier must return a message of less than 500m sec onreception of a command from Host Controller.

    -Host Controller must not transmit the following command, beforereceiving the reply from the Amplifier to a transmitting command.

    -Host Controller must not open 10 or more m seconds of sending-outintervals of each byte in a transmitting message.

    -As long as there is no request from Host Controller, even ifAmplifier changes internal status etc., it must not transmita message to Host Controller.

    5. Data Format (Host Controller Amplifier)

    STX + BC + PDC + CMD + Data1 + ----- + DataN + CS

    The terminological definition is as follows.

    STX 02 H : Start of text code

    BC : Byte Count(Number of bytes of until before CS from PDC.)

    PDC : Product Code

    CMD : Command (Opecode)

    DataN : Data Block ( 0 < M + FAH )

    CS : Check SumA value from which 8 bits of low ranks of the sum

    from BC to CS are set to 0.

  • 7/31/2019 Rs 232 Protocol

    3/35

    As an exception,

    ACK 0xFD HNACK 0xFE H

    are defined as a 1byte reply message from Amplifier, and it is usedwhen the value of CMD in the command transmitted from Host Controlleris 0x00 to 0x7f.

    If a reply from the Amplifier is other than ACK/NACKIt assumes that a request is answered in the form of the specified protocol and the details

    are the specifications of each category.When a command cannot be executed, or when there is no function to acommand, it assumes that the following 4-byte command request has been answered.

    NO-EXECUTABLE .... STX + BC + xxH(PDC) + 0E HNO-FUNCTION .... STX + BC + xxH(PDC) + 0F H

    NO-EXECUTABLE is answered, when as follows.Although OPECODE(CMD) is understood,

    -The contents of an argument have mistaken.-Amplifier does not correspond to the contents of an argument.-A command cannot be executed in the present state.

    NO-FUNCTION is answered when Amplifier cannot recognize a command on

    an OPECODE(CMD) level.

    6. About the specifications of each categoryThe contents from PDC to DATAN are described on the specifications

    of each category.

    STX + BC + PDC + CMD + Data1 + -------- + DataN + CS|____________________________________|

    7. Operation in POWER OFF.When amplifier is powered off, only the following commands can be received.

    -Amplifier Category - POWER ON Command

    -Amplifier Category - STATUS REQUEST Command

    About the command of others from Host Controller, amplifier answers NACK.

  • 7/31/2019 Rs 232 Protocol

    4/35

    Pr odu ct Code Li s t

  • 7/31/2019 Rs 232 Protocol

    5/35

    Sony Amplifier/Receiver

    Amp Category

    RS-232C Control Protocol Specification

  • 7/31/2019 Rs 232 Protocol

    6/35

    AMP Comma nd Li s t ( 0x A0* *)

  • 7/31/2019 Rs 232 Protocol

    7/35

    Amp St a t us Li s t ( 0x A8* *)

  • 7/31/2019 Rs 232 Protocol

    8/35

    Ampl i f i e r a ns we r s ACK/ NACK t o t he f ol l owi ng Comma nd.

  • 7/31/2019 Rs 232 Protocol

    9/35

    Cat e gor y 0xa 0

    CODE: 0x82

    f unct i on:

    f or ma t :

    Cat e gor y 0xa 8

    CODE: 0x82f unct i on:

    f or ma t :

    St a t us Re q

    Ope r a ndLen gt h Cont e nt s

    St a t us _Da t a

    Ope r a ndCont e nt sLen gt h

  • 7/31/2019 Rs 232 Protocol

    10/35

    Ca t eg or y 0xa0

    CODE: 0x92f unc t i on:

    f or ma t :

    Ca t eg or y 0xa8CODE: 0x92 Vol ume St a t u s Da t a

    f unc t i on:

    f or ma t :

    Vol ume St a t u s Re q

    Ope r an dLengt h

    Cont ent s

    Ope r an dLengt h Cont ent s

  • 7/31/2019 Rs 232 Protocol

    11/35

    Ca t eg or y 0xa0

    CODE: 0x42f unc t i on:

    f or ma t :

    I nput Se l ec t

    Ope r an dLengt h

    Cont e nt s

  • 7/31/2019 Rs 232 Protocol

    12/35

    Ca t eg or y 0xa0

    CODE: 0x53f unc t i on:

    f or ma t :

    Mut e Se t

    Ope r an dLengt h Cont e nt s

  • 7/31/2019 Rs 232 Protocol

    13/35

    Ca t eg or y 0xa0

    CODE: 0x60f unc t i on:

    f or ma t :

    Ope r an dLengt h Cont e nt s

    Powe r Se t

  • 7/31/2019 Rs 232 Protocol

    14/35

    Cat e gor y 0xa0

    CODE: 0x52f unct i on:

    f or ma t :

    Vol ume Se t

    Ope r a ndLen gt h Cont ent s

  • 7/31/2019 Rs 232 Protocol

    15/35

    Ca t eg or y 0xa0

    CODE: 0x43f unc t i on:

    f or ma t :

    Lengt h

    Cont e nt s

    12V Tr i gg e r

    Ope r an d

  • 7/31/2019 Rs 232 Protocol

    16/35

    Invalid

    32766

    32765

    256

    2

    1

    0

    -1

    -2

    -256

    -32766

    -32767

    Reserved8

  • 7/31/2019 Rs 232 Protocol

    17/35

    Ca t eg or y 0xa8

    CODE: 0x0e

    f unc t i on:

    f or ma t :

    Ca t eg or y 0xa8

    CODE: 0x0f

    f unc t i on:

    f or ma t :

    No- Exe c ut a bl e

    No- Func t i on

  • 7/31/2019 Rs 232 Protocol

    18/35

    Sony Amplifier/Receiver

    Sound Adaptor Category

    RS-232C Control Protocol Specification

  • 7/31/2019 Rs 232 Protocol

    19/35

    SOUND Ada pt or Comma nd Li s t ( 0x A3* *)

  • 7/31/2019 Rs 232 Protocol

    20/35

    Sound Ada pt or St a t us Li s t ( 0x

  • 7/31/2019 Rs 232 Protocol

    21/35

    Ampl i f i e r a ns we r s ACK/ NACK t o t he f ol l owi ng Comma nd.

  • 7/31/2019 Rs 232 Protocol

    22/35

    Ca t eg or y 0xa3

    CODE: 0x82f unc t i on:

    f or ma t :

    Ca t eg or y 0xab

    CODE: 0x82

    Lengt h

    SF St a t us Re q

    Ope r an d Cont e nt s

    SF St a t us Da t a

  • 7/31/2019 Rs 232 Protocol

    23/35

    Ca t eg or y 0xa3

    CODE: 0x42f unc t i on:

    f or ma t :

    Lengt h

    SF Se l e c t

    Ope r an d Cont ent s

  • 7/31/2019 Rs 232 Protocol

    24/35

    Ca t eg or y 0xab

    CODE: 0x0e

    f unc t i on:

    f or ma t :

    Ca t eg or y 0xab

    CODE: 0x0f

    f unc t i on:

    f or ma t :

    No- Func t i on

    No- Exe c ut a bl e

  • 7/31/2019 Rs 232 Protocol

    25/35

    O O O O

    O O O O

    O O O O

    O O O O

    O O O OO O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    O O O O

    X X X X

    X X X X

    X X X X

    O NOT

    X

  • 7/31/2019 Rs 232 Protocol

    26/35

    Sony Amplifier/Receiver

    Audio Tuner Category

    RS-232C Control Protocol Specification

  • 7/31/2019 Rs 232 Protocol

    27/35

    am

    f m

    Audi o Tune r Comma nd Li s t ( 0xA1**)

  • 7/31/2019 Rs 232 Protocol

    28/35

    Audi o Tune r St a t us Li s t ( 0xA9**)

  • 7/31/2019 Rs 232 Protocol

    29/35

    Ampl i f i e r a ns we r s ACK/ NACK t o t he f ol l owi ng Comma nd.

    manua l _t uni n g+

    manua l _t uni n g-

    a m

    f m

  • 7/31/2019 Rs 232 Protocol

    30/35

    Ca t eg or y 0xa1

    CODE: 0x82f unc t i on:

    f or ma t :

    Ca t eg or y 0xa9

    CODE: 0x82

    Lengt h

    St a t us Re q

    Ope r an d

    St a t us Da t a

    Cont ent s

  • 7/31/2019 Rs 232 Protocol

    31/35

    Cat e gor y 0xa1

    CODE: 0xa3f unct i on:

    f or ma t :

    Lengt h

    Cat e gor y 0xa9

    CODE: 0xa3

    Lengt h

    Pr e s e t Da t a Re q

    Pr e s e t Da t a

    Ope r an d Cont e nt s

    Ope r an d Cont e nt s

  • 7/31/2019 Rs 232 Protocol

    32/35

    Ca t eg or y 0xa1

    CODE: 0x42f unc t i on:

    f or ma t :

    Lengt h

    Pr e s e t Se l e c t

    Ope r an d Cont ent s

  • 7/31/2019 Rs 232 Protocol

    33/35

    Ca t eg or y 0xa1

    CODE: 0xa4f unc t i on:

    f or ma t :

    Lengt h

    Ca t eg or y 0xa9

    CODE: 0xa4

    Lengt h

    Pr e s e t Na me Re q

    Pr e s e t Na me Da t a

    Ope r an d Cont e nt s

    Ope r an d Cont e nt s

  • 7/31/2019 Rs 232 Protocol

    34/35

    Ca t eg or y 0xa9

    CODE: 0x0e

    f unc t i on:

    f or ma t :

    Ca t eg or y 0xa9

    CODE: 0x0f

    f unc t i on:

    f or ma t :

    No- Func t i on

    No- Exe c ut a bl e

  • 7/31/2019 Rs 232 Protocol

    35/35

    Lengt h

    PRESET Da t a :

    BANK t yp e = SHI FT ( SHI FT_ DATA)

    Cont en t s

    BANK Ty pe = BAND ( BAND_DATA)BANK t ype