hf-files-oregon.s3.amazonaws.com · web view*return data size: total length between return data1...

15
RS-232C PROTOCOL MANUAL (Revised, 12/August/2015) For BRAVIA 2015 Android TV models

Upload: duongdat

Post on 27-May-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

RS-232C PROTOCOL MANUAL (Revised, 12/August/2015)

For BRAVIA 2015 Android TV models

Page 2: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

1. Serial communication protocol.....................................................................................................31.1 Sub microcomputer settings....................................................................................................31.2 RS-232C communication specification......................................................................................31.2.1 Communication parameter...................................................................................................31.2.2 Pin Configuration..............................................................................................................41.2.3 Communication basis.........................................................................................................41.2.4 Communication data format.................................................................................................5

2. Corresponding command............................................................................................................7

Page 3: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

1. Serial communication protocolSerial communication protocol is designed to work in conjunction with external host by RS-232C

1.1 Sub microcomputer settingsThe port used for RS-232C communication is the following terminal. Level is changed by RS-232C transceiver

IC on small board for service. Hence communication to external host is achieved

Table 1-1 Hotel specification control pinItem Pin Use Function Description Note

rs232_rxd * UART Receiving datars232_txd * UART Sending data

* Pin must be referred to Pin assign spec.

1.2 RS-232C communication specification

1.2.1 Communication parameterCommunication related specification is defined as follows

Table 1-2-1 Communication parameterItem Specification

Communication Method RS-232CSynchronous Method Asynchronous Communication

Bit Rate 9600bpsNo. of character 8bits

parity n/aStart bit 1bitStop bit 1bit

Flow control n/a

Page 4: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

1.2.2 Pin Configuration

1.2.3 Communication basis1. Send control command after 20 seconds or more of power on.2. Strictly keep to send next command after receiving answer response from Display.3. Set the command interval to 500ms or more. (When you use CBX-H10/H11, please set it to 700ms or more)4. Value range for direct command is same as user can change by menu.5. When set is at standby mode, only receives Power ON or Power Enquiry command.6. To turn on the set, first set standby command as Enable. After this, the set can receive Power ON command.

Page 5: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

1.2.4 Communication data formatCommunication data format related specification is defined as follows. TV can support Enquiry Command for corresponding command.

(1) Control (write request from host to display)

Table 1-2-2 Write request for Control (host to display)No. Item Value1 Header 0x8C:Control2 Category 0x00 (fixed)3 Function 0xXX4 Length 0xXX (= X + 1 byte)5 Data1 0xXX: : 0xXX: : 0xXX

X+4 Data X 0xXXX+5 Check Sum 0xXX

* Length: Total Length from Data1 to Check Sum.* Check Sum: Total sum from #1 to #X+4. If it is over 255(1 byte), last 1 byte of data is used.

(2) Read request for Enquiry (host to display)

Table 1-2-3 Read request for Enquiry(host to display)No. Item Value1 Header 0x83:Enquiry2 Category 0x00 (fixed)3 Function 0xXX4 Data1 0xFF (fixed)5 Data2 0xFF (fixed)6 Check Sum 0xXX

* Check Sum: Total sum from #1 to #5. If it is over 255(1 byte), last 1 byte of data is used

(3) Reply to Answer (display to host)

(3)-1. Answer on control request

Table 1-2-4 Answer on Control requestNo. Item Value1 Header 0x70:Answer2 Answer* 0x00:Completed (Normal End)

0x01:Limit Over (Abnormal End – over max value)

0x02 : Limit Over (Abnormal End – under min value)

0x03:Command Canceled (Abnormal End)0x04:Parse Error (Data Format Error)

3 Check Sum 0Xxx

Page 6: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from
Page 7: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

* 0x00:Completed packet is received normally and process is completed normally0x01:Limit Over packet is received normally but the data value exceeds the upper limit 0x02:Limit Over packet is received normally but the data value exceeds the lower limit0x03:Command Canceled packet is received normally but either the data is incorrect or

request is not acceptable in current host value0x04:Parse Error Packet is not received properly (undefined format data) or Check sum error.

But it will be returned “Limit over”(0x01 or 0x02) in the case.* Check Sum: Total sum from #1 to #2. If it is over of 255(1 byte), last 1 byte of data is used

(3)-2. Answer on Enquiry request (Normal End)

Table 1-2-5 Answer on Enquiry request(Normal End)No. Item Value1 Header 0x70:Answer2 Answer 0x00:Completed

0x01: Reserved0x02: Reserved(0x03: Command Canceled)(0x04: Parse Error (Data Format Error) )

3 Return Data Size 0xXX (= X + 1 byte)4 Return Data1 0xXX: : 0xXX: : 0xXX

X+3 Return Data X 0xXXX+4 Check Sum 0xXX

* 0x00:Completed packet is received normally and processing is completed normally * 0x03:Command Canceled

The demand has not been permitted in a present host though the packet was normally received. (See (3)-3)

* 0x04:Parse ErrorThe packet cannot be normally received or the data not defined is received or the CheckSum error. (See (3)-3)

*Return Data Size: Total Length between Return Data1 to Check Sum.* Return Data returns the read value * Check Sum:Total sum from #1 to #X+3. If it is over 255(1 byte), last 1 byte of data is used.

(3)-3. Answer on Enquiry (Abnormal End)

Table 1-2-6 Answer on Enquiry request (Abnormal End) No. Item Value1 Header 0x70:Answer2 Answer* 0x03:Command Canceled

0x04 : Parse Error (Data Format Error)

3 Check Sum 0xXX* 0x03: Command Canceled Packet is received normally but request is not allowed at

current host status.* Check Sum: Total sum of #1 and #2. If it exceeds the value of 255(1 byte), last 1 byte of data is used.

Page 8: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

2. Corresponding commandFor corresponding commands, refer to the command list.

byte1: byte2-n:Syntax Code Syntax Code Syntax&code

0x02 OFF 0x00 OFF is always EnableON is Enable When StandbyCommand(0x02) receivedEnable(0x01)

0x02 ON 0x010x02 Disable 0x00 Disable command only works

via CBX.

0x02 Enable 0x01

0x02 Toggle 0x00 select input same as RCcontrol.0x02 TV 0x01 Program No.

(Only used forQuery)

0xnn select last TV channel

#1 0x01#2 0x02#3 0x03

#1 0x01#2 0x02#3 0x03

#1 0x01#2 0x02#3 0x03#4 0x04#5 0x05

#1 0x01

#1 0x01Up 0x00Down 0x01Terr Digital 0x01

Terr Analoue 0x02

CATV 0x03

BS Digital 0x04

CS Digital 0x05

DVB-S 0x06DVB-S2 0x07Cable Analog 0x0ACable Digital 0x0BUp 0x00Down 0x01

0x03 Direct 0x01 values 0xnn values which are supported isdefined as for each regionalspec.

0x02 Toggle 0x00 values in cycle:UnmutingMuting

Unmuting 0x00Muting 0x01

Language

0x07

0x05 reserved 0x00 Lowercase LetterISO639-2

3byte Language Code

Uppercase Letterex "CHT" "CHS"

sony internal definition

Power

0x00 yes yes Enable

Enable

Syntax Code Control

Enquiry

Standby

PowerOn

byte0: Detail[a] Function Command [b]Length

(IncludeCheckSum)

[c] Range/ Switch Code

Enable

Input Select

0x02 yes Yes Disable

Enable

Standby Command

0x01 yes no Disable

0x03 Video / SCART 0x02 values which are supported isdefined as for each regional

spec.

0x03 Component 0x03

0x03 Shared Input 0x07

0x03 HDMI 0x04

0x03 PC 0x05

0x03 UpDown 0x00 select program(channel) sameas RC control.

Program Select

0x04 yes yes Disable

Enable

0x0d Direct 0x01 byte2-byte11(10 byte Fixlength, includeterminator)Channel number the followingvalue can beset.: 0x00-0x09,0x2c,0xFF(terminator)

In CATV (US)case, set 0x2cas "."In JP-DigitalTerr,set 0x2c beforethe branchnumber.

If all values arefulled

In DVB(AEP/GA)case set 3 or 4digits andreminders arefilled by 0xFF.

when Last channel isSelectted(all 0xff) ,last from allmedia. not relation with theirinput.

Volume Control

0x05 yes yes Disable

Enable

0x03 UpDown

Disable

Enable0x06 yes no

0x00

Please refer 'Language list"

0x03 Direct 0x01

Muting

ModeControl

Page 9: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

byte1: byte2-n:Syntax Code Syntax Code Syntax&code

0x02 Toggle 0x00 values in cycle are defined aseach regional spec.

0x03 Direct 0x01 timer offset 0xnn 0-255, values which aresupported is defined as foreach regional spec.

0x02 Toggle 0x00 values in cycle are defined aseach regional spec.

OFF 0x00ON 0x01

0x02 Toggle 0x00 order is different by Model eachOFF(Only usedfor Query)

0x00

Text(Only usedfor Query)

0x01

MIX-Text(Onlyused for Query)

0x02 some model

Display

0x0F yes no Disable

Enable

0x02 Toggle 0x00 same as display (info) key

0x02 Toggle Display 0x00 toggle between Off and OnDirect Display 0x01 OFF 0x00

ON 0x01Direct Setting 0x02 CC1 0x01

CC2 0x02CC3 0x03CC4 0x04Text1 0x05Text2 0x06Text3 0x07Text4 0x08Service1 0x01Service2 0x02Service3 0x03Service4 0x04Service5 0x05Service6 0x06CC1 0x07CC2 0x08CC3 0x09CC4 0x0a

0x02 Toggle 0x00 values in cycle are defined asbelow.

Vivid 0x00Standard 0x01Cinema 0x02Custom 0x03Cine2 0x06Sports 0x07Game 0x08Graphics 0x09

0x02 Toggle 0x00 values in cycle are defined asbelow.

Standard 0x01Cinema 0x04Sports 0x05Music 0x06Game 0x07

0x02 Toggle 0x00OFF 0x00ON 0x01

Off Timer(SLEEP)

0x0C yes no Disable

Enable

Picture Off

0x0D yes no Disable

Enable

Teletext

0x0E yes yes Disable

Enable

0x03 Direct 0x01

0x03 Direct 0x01

0x03

0x04 Analog 0x00

Degital 0x01

Picture Mode

0x20 yes no Disable

Enable

0x03

Closed Caption

0x10 yes no Disable

Enable

Direct 0x01

0x03 Direct 0x01

Sound Mode

0x30 yes no Disable

Enable

Speaker Off0x36 yes no Dis

ableEnable

Picture

Sound

[a] Function Command [b]Length(Include

CheckSum)

[c] Range/ Switch CodeSyntax Code Con

trolEnquiry

Standby

PowerOn

byte0: Detail

0x03 Direct 0x01

Page 10: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

byte1: byte2-n:Syntax Code Syntax Code Syntax&code

Up 0x00Down 0x01plus 0x00minus 0x01Up 0x00Down 0x01plus 0x00minus 0x01

Up 0x00Down 0x01plus 0x00minus 0x01

0x02 Toggle 0x00 values in cycle are defined asfor each regional spec.

Wide Zoom 0x00Full 0x01Zoom 0x02Normal 0x03PC_Normal 0x05PC_Full1 0x06PC_Full2 0x07

0x02 Toggle 0x00OFF 0x00ON 0x01

0x02 Toggle 0x00values in cycle are defined asNormal 0x04

Wide Zoom 0x03Off 0x00

Off 0x00

Auto 0x01Up 0x00Down 0x01

0x03 Direct 0x01 values 0xXX max / min values are definedas for each regional spec.

Up 0x00Down 0x01

0x03 Direct 0x01 values 0xXX max / min values are definedas for each regional spec.

Up 0x00Down 0x01

0x03 Direct 0x01 values 0xXX max / min values are definedas for each regional spec.

Red 0x00 Up 0x00Green 0x01 Down 0x01Red 0x00

Green 0x01

Up 0x00Down 0x01

0x03 Direct 0x01 values 0xXX max / min values are definedas for each regional spec.

SIRCSSupport

Sircs emulation 0x67 yes no Disable

Enable

0x03 SIRCS Category 0xnn SIRCS Data 0xnn

ID Command 0x6f no yes Disable

Enable

0x03 0xff 0xff

product info1 0x6e no yes Disable

Enable

0x03 0xff 0xff

product info2 0x6d no yes Disable

Enable

0x03 0xff 0xff

product info3 0x6c no yes Disable

Enable

0x03 0xff 0xff

C4Special

Status change

0x66 no yes Disable

Enable

0x03 Status1 (reserved) 0xnn(0x00)

Status2

Bit 0 - Input 1 - Channel 2 - Volume 3 - Mute 4 - 15 -Reserved

0xnn Two bytes status for changingvalue in each items is returned.(upper 12 bits are reserved as0)

This command only workswhen the "RS232CControl"(RS232C extension)sets to "On" in the settingsmenu.

0x03 UpDown 0x00 values which are supported isdefined as for each regionalspec.0x04 Direct 0x01 values 0xnn

0x00 values which are supported isdefined as for each regionalspec.0x01 values 0xnn

values which are supported isdefined as for each regionalspec.

V Size

0x42 yes no Disable

Enable

0x03 UpDown

H Shift

0x41 yes no Disable

Enable

0x04 Direct

0xnn

Wide

0x44 yes no Disable

Enable

0x03 UpDown 0x00

0x04 Direct 0x01 values

V Shift

0x43 yes no Disable

Enable

Auto Wide0x45 yes no Dis

able

0x03 Direct 0x01

Enable 0x03 Direct 0x01

0x03 Direct 0x01

Picture Cine Motion(Cinema Drive) 0x2A yes no Dis

able

Enable

4:3 Mode

0x46 yes no Disable

Screen

0x03 UpDown 0x00

Enable

0x02 change only current Inputvalues which are supported isdefined as for each regionalspec.

Enable

Brightness

0x24 yes no Disable

Picture

0x23 yes no Disable

Color (Colour)

0x25 yes no Disable

Enable

0x03 UpDown 0x00

Hue

0x26 yes no Disable

Enable

0x03 UpDown 0x00

values 0xnnEnable

0x04 UpDown 0x00 max / min values are definedas for each regional spec.

SignageCommand

0x03 UpDown 0x00Sharpness

0x28 yes no Disable

Enable

0x04 Direct 0x01

Syntax Code Control

Enquiry

Standby

PowerOn

byte0: Detail[a] Function Command [b]Length

(IncludeCheckSum)

[c] Range/ Switch Code

Page 11: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

BRAVIA SIRCS code list1 012 013 014 015 016 017 018 019 010 01

CC(Only U/C/M/LA) A4VOLUME UP 01

VOLUME DOWN 01MUTING 01

CH/PROG UP 01CH/PROG DOWN 01

JUMP 01

Page 12: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

Language listHungarian "hun"Indonesian "ind"Italian "ita"Japanese "jpn"Kazakh "kaz"Latvian "lav"Lithuanian "lit"Norwegian "nor"Persian "per"Polish "pol"Portuguese "por"Romanian "rum"Russian "rus"Slovak "slo"Slovenian "slv"Spanish "spa"Swahili "swa"Swedish "swe"Thai "tha"Turkish "tur"Ukrainian "ukr"Vietnamese "vie"

Page 13: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

AppendixFollowing commands that past models support are not supported in FY15 BRAVIA.

[a] Function [c] Range/Switch CodeSyntax Code byte0: byte1: byte2-n:

Syntax Code Syntax Code Syntax&codeInput Select 0x02 yes yes 0x03 DM Port 0x06

#1 0x01Sound Treble

0x32 yes no

0x03 UpDown 0x00 Up 0x00Down 0x01

0x04 Direct 0x01 plus 0x00 values

minus 0x01

Bass

0x33 yes no

0x03 UpDown 0x00 Up 0x00Down 0x01

0x04 Direct 0x01 plus 0x00 values

minus 0x01

Screen H Size

0x40 yes no

0x03 UpDown 0x00 Up 0x00Down 0x01

0x04 Direct 0x01 plus 0x00 valuesminus 0x01

Picture 0x2A yes no 0x02 Auto1 0x02Auto2 0x03

Advanced Iris 0x2B yes no 0x02 Min 0x00Low 0x01Mid 0x02High 0x03

Command [b]Length(Include

CheckSum)Control

Enquiry

Standby

PowerOnMode

ControlDisable

Enable

Disable

Enable

Disable

Enable

Disable

Enable

Cine Motion(Cinema Drive)

Disable

Enable

Disable

Enable

FAQ

- RS232C command is not sometimes accepted.

BRAVIA doesn’t occasionally accept RS232C command. BRAVIA cannot accept it after about 20 seconds or more on

power on.

BRAVIA cannot accept it while stand-by, if status of “Stand by Command” is not enable. The status can be changed by

RS232C command. Please refer to Stand-by Command.

- Some mode (e.g. Animation) cannot be selected at Picture Mode / Sound Mode Command.

Only modes described in the command list can be selected. Please refer to Picture Mode Command and Sound Mode

Command.

Page 14: hf-files-oregon.s3.amazonaws.com · Web view*Return Data Size: Total Length between Return Data1 to Check Sum. * Return Data returns the read value * Check Sum:Total sum from

The material contained in this manual consists of

information that is the property of Sony Corporation.

Sony Corporation expressly prohibits the duplication of

any portion of this manual or the use thereof for any

purpose other than the operation of the equipment

described in this manual without the express written

permission of Sony Corporation.