Terminal Command VA-1838

70
Terminal Command VA-1838 Instruction Manual Ver.1.01

Transcript of Terminal Command VA-1838

Page 1: Terminal Command VA-1838

Terminal Command

VA-1838

Instruction Manual

Ver.1.01

Page 2: Terminal Command VA-1838
Page 3: Terminal Command VA-1838

Terminal Command

VA-1838 Instruction Manual

2014.10

Ver.1.01

ASTRODESIGN,Inc

Page 4: Terminal Command VA-1838
Page 5: Terminal Command VA-1838

i

Contents

Contents ....................................................................................................................................................................... i

Concerning the configuration of this manual .............................................................................................................. iii

Concerning the terminal commands .................................................................................................................................... 1

1.1 Overview ....................................................................................................................................................... 1

1.2 Communication specifications ....................................................................................................................... 1

1.2.1 LAN .............................................................................................................................................. 1

1.2.2 USB .............................................................................................................................................. 1

1.3 Connection configurations ............................................................................................................................. 2

1.3.1 LAN .............................................................................................................................................. 2

1.3.2 USB .............................................................................................................................................. 3

1.4 Transmission control characters, data and error commands ......................................................................... 4

1.4.1 Concerning BCC (Block Check Code) .......................................................................................... 4

1.5 Error codes .................................................................................................................................................... 5

1.6 Command formats ......................................................................................................................................... 6

1.6.1 When sending the setting commands. ......................................................................................... 6

1.6.2 When sending acquisition commands .......................................................................................... 6

1.7 Communication protocols .............................................................................................................................. 7

1.7.1 Type 1 .......................................................................................................................................... 7

1.7.2 Type 2 .......................................................................................................................................... 8

1.7.3 Type 3 .......................................................................................................................................... 9

1.7.4 Type 4 ........................................................................................................................................ 10

1.7.5 Type 5 ........................................................................................................................................ 11

1.7.6 Type 6 ........................................................................................................................................ 12

1.8 Concerning timeouts ................................................................................................................................... 13

VA-1838 setting commands ............................................................................................................................................... 15

2.1 [0x20 0x40]: Designation of send/receive file .............................................................................................. 15

2.2 [0x30 0x40]: Acquisition of folder name or filename on designated path ..................................................... 17

2.3 [0x20 0x41]: EDID setting ............................................................................................................................ 18

2.4 [0x30 0x41]: EDID reading .......................................................................................................................... 19

2.5 [0x20 0x42]: Config setting .......................................................................................................................... 20

2.6 [0x30 0x42]: Config reading ........................................................................................................................ 21

2.7 [0x30 0x43]: USB flash memory connected/no connected .......................................................................... 22

2.8 [0x30 0x44]: VA version acquisition ............................................................................................................. 23

2.9 [0x20 0x45]: SETUP setting ........................................................................................................................ 24

2.10 [0x30 0x45]: SETUP reading ....................................................................................................................... 25

2.11 [0x30 0x46]: File send ................................................................................................................................. 26

2.12 [0x20 0x47]: Config Inc/Dec setting ............................................................................................................. 27

2.13 [0x20 0x48]: Mode setting ........................................................................................................................... 28

2.14 [0x20 0x49]: HDCP Config setting ............................................................................................................... 29

2.15 [0x20 0x4A]: CEC Address setting .............................................................................................................. 30

Page 6: Terminal Command VA-1838

ii

VA-1838 measurement commands ................................................................................................................................... 31

3.1 [0x30 0x50]: Video Timing reading .............................................................................................................. 31

3.2 [0x30 0x51]: Audio Timing reading .............................................................................................................. 33

3.3 [0x30 0x52]: Packet reading ........................................................................................................................ 35

3.4 [0x30 0x53]: Channel Status Bit reading ..................................................................................................... 36

3.5 [0x30 0x54]: HDCP Status reading .............................................................................................................. 37

3.6 [0x30 0x55]: ARC Status reading ................................................................................................................ 38

3.7 [0x30 0x56]: DDC Line monitor reading ...................................................................................................... 39

3.8 [0x30 0x57]: CEC Line monitor reading ...................................................................................................... 41

3.9 [0x30 0x58]: Video Data reading ................................................................................................................. 42

VA-1838 operation commands .......................................................................................................................................... 43

4.1 [0x20 0x60]: Hot Plug Pulse execution ........................................................................................................ 43

4.2 [0x30 0x61]: Hot Plug Status reading .......................................................................................................... 44

4.3 [0x20 0x61]: Receiver Sence execution ...................................................................................................... 45

4.4 [0x20 0x62]: Log execution ......................................................................................................................... 46

4.5 [0x20 0x63]: CEC Command sending ......................................................................................................... 47

4.6 [0x30 0x64]: DDC Output Access ................................................................................................................ 48

4.7 [0x20 0x65]: Audio Return Channel execution ............................................................................................ 49

4.8 [0x30 0x65]: Audio Return Channel Setting reading .................................................................................... 50

4.9 [0x20 0x66]: Generate execution ................................................................................................................ 51

4.10 [0x30 0x66]: Generate Setting reading ........................................................................................................ 53

4.11 [0x20 0x67]: Generate Video Timing setting ................................................................................................ 55

4.12 [0x30 0x67]: Generate Video Timing Setting reading .................................................................................. 56

4.13 [0x20 0x68]: Generate Packet setting ......................................................................................................... 57

4.14 [0x30 0x68]: Generate Packet Setting reading ............................................................................................ 58

4.15 [0x20 0x69]: Generate Audio setting ........................................................................................................... 59

4.16 [0x30 0x69]: Generate Audio Setting reading .............................................................................................. 60

Page 7: Terminal Command VA-1838

iii

Concerning the configuration of this manual

This is the terminal command instruction manual for the VA-1838 series. Using the configuration given below, it provides details of the setting methods, precautionary items and other information. Read carefully through this manual to ensure that the operations and settings will be performed correctly.

Read this first!

Chapter 1 Concerning the terminal commands

This chapter presents an overview of the terminal commands.

Terminal commands for the VA-1838 series

Chapter 2 VA-1838 setting commands

This chapter describes the VA-1838 standard commands.

Chapter 3 VA-1838 measurement commands.

This chapter describes the VA-1838 measurement commands.

-----------------------------------------------------------------------------------------------------------------------------------------------------

Chapter 4 VA-1838 operationcommands

This chapter describes the VA-1838 operation commands.

Page 8: Terminal Command VA-1838

iv

Page 9: Terminal Command VA-1838

1

11 Concerning the terminal commands

1.1 Overview

This manual describes the commands which are required to operate the HDMI protocol analyzer (hereafter referred to as the VA-1838) from an external computer (such as a personal computer), and it explains the transmission and reception of these commands and data. The commands and data are sent and received via the serial input/output port LAN or USB peripheral.

1.2 Communication specifications

1.2.1 LAN

Communication conditions • 10BASE-T, 100BASE-TX • UDP/IP

Connector RJ-45

1.2.2 USB

Communication conditions • USB2.0

Connector • B connector

Page 10: Terminal Command VA-1838

2

1.3 Connection configurations

1.3.1 LAN

When connecting the unit via a hub

Fig. 1.3-1

When connecting the VA and PC directly without going through a hub

Fig. 1.3-2

With a LAN connection, use a straight cable when connecting the unit through a hub. Use a crossover cable when connecting the VA and PC directly.

When connecting the VA and PC directly, select the desired IP address, subnet mask and default gateway settings rather than automatically acquiring the IP addresses using the internet protocol of the PC.

Host computer

Straight cable

Straight cable

Hub

Host computer

Crossover cable

Page 11: Terminal Command VA-1838

Chapter 1 Concerning the terminal commands

3

1.3.2 USB

Fig. 1.3-3

Installing the USB drivers 1) When the connection to the VA-1838 has been made for the first time, the system recognizes the

VA-1838, and the “Add New Hardware Wizard” dialog box appears. Click on the [Next] button. 2) Select “Locate and install driver software (recommended)” as the search method, and click on the [Next]

button. 3) Insert the VA-1838 utility installation CD into the CD drive, check “CD drive” or “Specify location,” select

the driver inside the USB – WIN2K or USB – WIN98 folder on the disk, and click on the [Next] button. 4) Check that “ITFUSBDV.sys” has been found. Then click on [Next] to start the installation. 5) Follow the on-screen instructions.

*) When installing the driver in Windows XP, the following dialog box appears prompting authorization from Microsoft, but simply click on the [Continue] button.

Host computer

A connector B connector

Page 12: Terminal Command VA-1838

4

1.4 Transmission control characters, data and error commands

Symbol HEX code Description

STX 0x02 Start of text (command) to be transmitted

ETB 0x17 End of text (data) to be transmitted (followed by data)

ETX 0x03 End of text (command, data) to be transmitted

ENQ 0x05 Request to start terminal mode

EOT 0x04 Request to end terminal mode

ACK 0x06 Positive acknowledgment character

NAK 0x15 Negative acknowledgment character

TRDT 0x10 Data transmission

ESTS 0x11 Error status transmission

BCC Any code Refer to “1.4.1 Concerning BCC (Block Check Code).”

1.4.1 Concerning BCC (Block Check Code)

BCC is used to check the validity of the command.

When commands are sent, the total data from setting command CMD1 to ETX (ETB) in the commands to be sent is calculated, and 1 byte is sent immediately after ETX (ETB). The VA-1838 now checks the data, and if the data and BCC do not match, BCC_ERR is returned from the VA-1838.

When commands are received, the total data from CMD1 to ETX (ETB) of the received command is calculated, and the validity of the data is checked using BCC of the received command and the calculated BCC.

Example of creating BCC

0x30, 0x42: When loading and sending Pixel Color Pattern

STX 0x02

CMD1 0x30

CMD2 0x42 BCC is created for these.

PARM 0x01

ETX 0x03

BCC 0x76 Checksum

Page 13: Terminal Command VA-1838

Chapter 1 Concerning the terminal commands

5

1.5 Error codes

Symbol HEX code Description

PARM_SIZE_ERR 0x01 The parameter size is incorrect.

Alternatively, the data length and volume of data sent do not match (only when sequence type 5 or type 6 is used).

PARM_DATA_ERR 0x02 The parameter value is not correct.

CMD_EXEC_ERR 0x03 Execution of the processing instructed by the command failed.

BAD_CMD_ERR 0x04 The command is not correct. (CMD1, CMD2)

BCC_ERR 0x05 The checksum does not match.

CEC_SEND_HAND 0x10 Error Handling was returned for the CEC send command.

CEC_SEND_BUSSF 0x11 The CEC command cannot be sent because the bus is not free.

CEC_SEND_ARB 0x12 An arbitration error occurred in the CEC send command. (In the Start or Initiator part)

CEC_SEND_ACK 0x13 ACK was not returned for the CEC send command.

CEC_SEND_IMP 0x14 An arbitration error occurred in the CEC send command. (In a part other than the Start or Initiator part)

Page 14: Terminal Command VA-1838

6

1.6 Command formats

1.6.1 When sending the setting commands.

Transmission of commands from computer to VA-1838 (PC -> VA)

STX CMD1 CMD2 ETX BCC

Or

STX CMD1 CMD2 PARM ETX BCC

Value returned from VA to computer after command transmission (PC <- VA)

ACK

Or

STX ESTS ErrorCode ETX BCC

If data is required, it is sent as follows only when the command is sent and the return value is ACK (PC -> VA)

STX TRDT PARM ETB BCC

Or

STX TRDT PARM ETX BCC

Value returned from VA to computer after command transmission (PC <- VA)

ACK

Or

STX ESTS ErrorCode ETX BCC

1.6.2 When sending acquisition commands

Transmission of commands from computer to VA-1838 (PC -> VA)

STX CMD1 CMD2 ETX BCC

Or

STX CMD1 CMD2 PARM ETX BCC

Value returned from VA to computer after command transmission (PC <- VA)

ACK

Or

STX ESTS ErrorCode ETX BCC

When ACK is returned, the data is received as follows (PC <- VA)

STX TRDT PARM ETB BCC

Or

STX TRDT PARM ETX BCC

Page 15: Terminal Command VA-1838

Chapter 1 Concerning the terminal commands

7

1.7 Communication protocols

1.7.1 Type 1

This sequence is used when terminal commands are started.

1PC

VA2

Fig. Type 1

Sequence no. Command Send/receive direction

1 ENQ Send

2 ACK Receive

Page 16: Terminal Command VA-1838

8

1.7.2 Type 2

This sequence is used when sending commands with only CMD (command) and PARM (parameter) parts (if necessary).

PC

VA

1

2a or 2b

Fig. Type 2

Sequence no. Command Send/receive direction

1 STX CMD* (PARM) ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

*) It is assumed that the following two codes are contained in the CMD (command) part.

CMD1 CMD2

Page 17: Terminal Command VA-1838

Chapter 1 Concerning the terminal commands

9

1.7.3 Type 3

This sequence is used for receiving the VA data.

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Sequence no. Command Send/receive direction

1 STX CMD*1 (PARM) ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

3 STX TRDT PARM ETX BCC Receive

4 ACK Send

*1) It is assumed that the following two codes are contained in the CMD (command) part.

CMD1 CMD2

*2) If a failure occurs in 2b, the sequence flow is ended at that point.

Page 18: Terminal Command VA-1838

10

1.7.4 Type 4

This sequence is used for sending the VA data.

PC

VA

1

2a or 2b

3

2a or 2b

Fig. Type 4

Sequence no. Command Send/receive direction

1 STX CMD*1 (PARM) ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

3 STX TRDT PARM ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

*1) It is assumed that the following two codes are contained in the CMD (command) part.

CMD1 CMD2

*2) If a failure occurs in 2b, the sequence flow is ended at that point.

Page 19: Terminal Command VA-1838

Chapter 1 Concerning the terminal commands

11

1.7.5 Type 5

This sequence is used for receiving the VA data. PARM (parameter) must be received for the desired number of times.

PC

VA

1

2a or 2b 3

4

………

5

4

Fig. Type 5

Sequence no. Command Send/receive direction

1 STX CMD*1 (PARM) ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

3 STX TRDT PARM ETB BCC Receive

4 ACK Send

3 and 4 repeated here for the desired number of times

5 STX TRDT PARM ETX BCC Receive

4 ACK Send

*1) It is assumed that the following two codes are contained in the CMD (command) part.

CMD1 CMD2

*2) If a failure occurs in 2b, the sequence flow is ended at that point.

*3) The configuration of the data in PARM of sequence no. 3 or 5 is shown below.

Data Length1 Data Length2 Packet No. (Data) … (Data)

Item Description

Data Length The number of bytes for PARM in the sequence number concerned is stored here. (3 + number of data bytes sent)

Packet No. The “n” in the nth time the data in the sequence number concerned is being sent is stored here. (Number of times sent – 1)

Data The receive data is stored here.

Page 20: Terminal Command VA-1838

12

1.7.6 Type 6

This sequence is used for sending the VA data. PARM (parameter) must be sent for the desired number of times.

PC

VA

1

2a or 2b

………

3

2a or 2b

4

2a or 2b

Fig. Type 6

Sequence no. Command Send/receive direction

1 STX CMD*)1 (PARM) ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

3 STX TRDT PARM ETB BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

3, 2a or 2b repeated here for the desired number of times

4 STX TRDT PARM ETX BCC Send

2a (success) ACK Receive

2b (failure) STX ESTS ErrorCode ETX BCC Receive

*1) It is assumed that the following two codes are contained in the CMD (command) part.

CMD1 CMD2

*2) If a failure occurs in 2b, the sequence flow is ended at that point.

*3) The configuration of the data in PARM of sequence no. 3 or 5 is shown below.

Data Length1 Data Length2 Packet No. (Data) … (Data)

Item Description

Data Length The number of bytes for PARM in the sequence number concerned is set here. (3 + number of data bytes sent)

Packet No. The “n” in the nth time the data in the sequence number concerned is being sent is set here. (Number of times sent – 1)

Data The receive data is set here.

Examples of the commands in section ”2.3 [0x20 0x41]: EDID setting” are shown.

Data in two blocks (256 bytes) is set in increments of 128 bytes.

• Return command sent for the first time (sequence no.3)

STX 1 byte 0x02

TRDT 1 byte 0x10

PARM 0x03F9 byte

Data Length 2 byte 0x0083

Packet No 1 byte 0x00 <- The (number of returns – 1) data is stored here.

Byte 1 data 2 byte 0x0000 to 0x0FFF

:

Byte 128 data 2 byte 0x0000 to 0x0FFF

ETB 1 byte 0x17 <- Not all the data could be sent so ETB is stored here.

Page 21: Terminal Command VA-1838

Chapter 1 Concerning the terminal commands

13

BCC 1 byte Checksum

• Return command sent for the second time (sequence no.4)

STX 1 byte 0x02

TRDT 1 byte 0x10

PARM 0x03F9 byte

Data Length 2 byte 0x0083

Packet No 1 byte 0x01 <- The (number of returns – 1) data is stored here.

Byte 129 data 2 byte 0x0000 to 0x0FFF

:

Byte 256 data 2 byte 0x0000 to 0x0FFF

ETX 1 byte 0x03 <- This is the last return command so ETX is stored here.

BCC 1 byte Checksum

1.8 Concerning timeouts

After a command has been sent, a disconnection or other problem may prevent an acknowledgment from being returned from the VA-1838 or the transmission of a command may be terminated before the end of that command. For such cases, provide a timeout 3 seconds after the computer sends the command.

Page 22: Terminal Command VA-1838

14

Page 23: Terminal Command VA-1838

15

22 VA-1838 setting commands

2.1 [0x20 0x40]: Designation of send/receive file

Function: This command is used to set the path of the files to be sent from the VA or received.

Sequence: Type 6

PC

VA

1

2a or 2b

………

3

2a or 2b

4

2a or 2b

Fig. Type 6

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x40

Mode 1 byte 0x00: Create File (file creation)

0x01: Create Directory (directory creation)

0x02: Read File (preparation to read file)

0x03: Write File (preparation to write file)

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Send command (sequence no.3/4)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Designated path character string

2 to variable Example: "c:Data/EDID/EDID_001/Data001.ddc"

*) The following is repeated if there is any remaining data.

Send command (sequence no.3/4)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Designated path character string

2 to variable Example: "c:Data/EDID/EDID_001/Data001.ddc "

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Page 24: Terminal Command VA-1838

16

*) Before sending data to the VA, the filename whose data is to be sent (or received) must be designated using the [0x20 0x40] command.

*) When using the [0x20 0x40] command as the send command, set only the Config file (.cfg).

*) An error results if the filename has not been set even though “0x00: Create File,” “0x02: Read File” or “0x03: Write File” has been selected as the Mode setting.

Page 25: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

17

2.2 [0x30 0x40]: Acquisition of folder name or filename on designated path

Function: This command is used to acquire the folder name (or filename) on the designated path inside the VA main unit.

Sequence: Type 5

PC

VA

1

2a or 2b 3

4

………

5

4

Fig. Type 5

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x40

PARM 1 byte

Operation mode 1 byte 0x00: Acquisition of only folder information

0x01: Acquisition of only filename inside designated folder

Designated path character string

2 to variable Example: "C:Data¥EDID"

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3/5)

PARM Data Length byte

Data Length 2 byte 0x0001 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Character string Variable Example: All the folder information (or filenames) on one level below the “EDID” folder of the above sent PARM is acquired.

*) When 0x00 is set as the operation mode (folder name acquired)

"EDID_001" : Folder name

"," : Delimiter (0x2C)

"EDID_002" : Folder name

"," : Delimiter (0x2C)

"EDID_003" : Folder name

"," : Delimiter (0x2C)

"EDID_004" : Folder name

*) When 0x01 is set as the operation mode (file name acquired)

"test001.ddc" : File name

"," : Delimiter (0x2C)

"test002.ddc" : File name

"," : Delimiter (0x2C)

"test003.ddc" : File name

"," : Delimiter (0x2C)

"test004.ddc" : File name

Page 26: Terminal Command VA-1838

18

2.3 [0x20 0x41]: EDID setting

Function: This command is used to set the EDID of the VA-1838. Up to 2048 bytes (16 blocks) can be set for the EDID.

Sequence: Type 6

PC

VA

1

2a or 2b

………

3

2a or 2b

4

2a or 2b

Fig. Type 6

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x40

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Send command (sequence no.3/4)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Data 1 byte 0x00 to 0xFF

:

Data 1 byte 0x00 to 0xFF

*) For instance, if 130 bytes of data have been sent, only the first 128 bytes (1 block) will be sent, and the 2 bytes left over will be deleted.

*) The EDID data is sent to the file specified by the [0x20 0x40] command ahead of time.

EDID must be set for all the blocks without fail. (The number of valid blocks is determined by the set data amount.) If data has been sent in an amount which cannot be divided by 128 bytes (1 block),

the data left over will be deleted. *

CAUTION

Page 27: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

19

2.4 [0x30 0x41]: EDID reading

Function: This command is used to read EDID of the VA-1838. The size of the EDID which can be received depends on the amount of data which was set using the “0x20 0x41: EDID setting” command. However, the maximum size is 2048 bytes (16 blocks).

Sequence: Type 5

PC

VA

1

2a or 2b 3

4

………

5

4

Fig. Type 5

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x40

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3/5)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Data 1 byte 0x00 to 0xFF

:

Data 1 byte 0x00 to 0xFF

*) The EDID data of the files specified by the [0x20 0x40] command ahead of time is received.

Page 28: Terminal Command VA-1838

20

2.5 [0x20 0x42]: Config setting

Function: This command is used to establish the Config setting of the VA-1838. The total amount of data is 0x5000 bytes.

Sequence: Type 6

PC

VA

1

2a or 2b

………

3

2a or 2b

4

2a or 2b

Fig. Type 6

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x42

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Send command (sequence no.3/4)

PARM 0x03FB byte

*) The total amount of data is 0x5000 bytes, but the amount of data sent at one time is 0x03FB bytes.

Data Length 2 byte 0x0002 to 0x03FB

Packet No 1 byte 0x00 to 0x14

Data 1 byte 0x00 to 0xFF

:

Data 1 byte 0x00 to 0xFF

*) The following is repeated until data equivalent to 0x5000 bytes has been sent

Send command (sequence no.3/4)

PARM 0x03FB byte

*) The total amount of data is 0x5000 bytes, but the amount of data sent at one time is 0x03FB bytes.

Data Length 2 byte 0x0002 to 0x03FB

Packet No 1 byte 0x00 to 0x14

Data 1 byte 0x00 to 0xFF

:

Data 1 byte 0x00 to 0xFF

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

*) The Config data file with the filename specified by the [0x20 0x40] command ahead of time is created. If the same file exists, it is overwritten.

Page 29: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

21

2.6 [0x30 0x42]: Config reading

Function: This command is used to read Config of the VA-1838. The total amount of data received is 0x5000 bytes.

Sequence: Type 5

PC

VA

1

2a or 2b 3

4

………

5

4

Fig. Type 5

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x42

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3/5)

PARM *) The total amount of data is 0x5000 bytes, but the amount of data received at one time is 0x03FB bytes.

Data Length 2 byte 0x0003 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Data 1 byte 0x00 to 0xFF

:

Data 1 byte 0x00 to 0xFF

*) The following is repeated until data equivalent to 0x5000 bytes is received.

Return command (sequence no.3/5)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03FB

Packet No 1 byte 0x00 to 0xFF

Data 1 byte 0x00 to 0xFF

:

Data 1 byte 0x00 to 0xFF

*) The Config file data specified by the [0x20 0x40] command ahead of time is received.

Page 30: Terminal Command VA-1838

22

2.7 [0x30 0x43]: USB flash memory connected/no connected

Function: This command is used to ascertain whether a USB flash memory is connected to the VA-1838 main unit.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x43

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 1 byte

Connected/no connected

1 byte 0: USB flash memory not connected

1: USB flash memory connected

Page 31: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

23

2.8 [0x30 0x44]: VA version acquisition

Function: This command is used to acquire the version of the VA main unit.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x44

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 14 byte

Firmware version 2 byte 0x0000 to 0xFFFF

FPGA Ver (CPU) 2 byte 0x0000 to 0xFFFF

FPGA Ver (HDMII)

2 byte 0x0000 to 0xFFFF

Calibration 8 byte "0.000000" to "9.999999"(character string)

Page 32: Terminal Command VA-1838

24

2.9 [0x20 0x45]: SETUP setting

Function: This command is used to set up the setting of VA-1838.

The total amount of data is 256 byte.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x45

PARM 256byte

Setup Data 256byte

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

*) This command will create Setup data file specified by [0x20 0x40] Command beforehand. If there is a file in

the same name, the newly created file will overwrite the old one.

PC

VA

1

2a or 2b

Page 33: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

25

2.10 [0x30 0x45]: SETUP reading

Function: This command is used to read Setup data of VA-1838. The total amount of the data to be

received is 256byte.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x45

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 256byte

Setup Data 256byte

PC

VA

1

2a or 2b 3

4

Page 34: Terminal Command VA-1838

26

2.11 [0x30 0x46]: File send

Function: This command is used to send files from VA-1838.

Sequence: Type5

Fig. Type5

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x46

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3/5)

PARM *) The todal data size is not fixed. The maximum data size to receive

at a time is 0x03FB byte

Data Length 2 byte 0x0003~0x03FB

Packet No 1 byte 0x00~0xFF

Data 1 byte 0x00~0xFF

:

Data 1 byte 0x00~0xFF

*) The following process is repeated until the whole data is completely received.

Return command (sequence no.3/5)

PARM Data Length byte

Data Length 2 byte 0x0003~0x03FB

Packet No 1 byte 0x00~0xFF

Data 1 byte 0x00~0xFF

:

Data 1 byte 0x00~0xFF

PC

VA

1

2a or 2b 3

4

………

5

4

Page 35: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

27

2.12 [0x20 0x47]: Config Inc/Dec setting Function: This command is used to increment/decrement Config File.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x47

PARM 1 byte

Mode 1 byte 0:Inc 1:Dec

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 36: Terminal Command VA-1838

28

2.13 [0x20 0x48]: Mode setting

Function: This command is used to configure Mode

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x48

PARM 1 byte

Mode 1 byte 0:Rcv 1:Rep 2:THR

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 37: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

29

2.14 [0x20 0x49]: HDCP Config setting

Function: This command is used to configure HDCP Config.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x49

PARM 90 byte

HDCP Disable 1 byte 1: HDCP Disable 0: HDCP Enable

Incorrect BKSV 1 byte 0: Correct 1: Incorrect

Incorrect R0’ 1 byte 0: Correct 1: Incorrect

Incorrect Ri’ 1 byte 0: Correct 1: Incorrect

Incorrect V’ 1 byte 0: Correct 1: Incorrect

Output Short Read Access 1 byte 0: Combined Access 1:Short Read Access

Virtual Repeater Mode 1 byte 0: OFF 1:ON

Device Count 1 byte 0~16 : Device Count

0x80 :Max device Exceeded

Depth 1 byte 0~7 : Depth Count

0x08 :Max Cascade Exceeded

Execution Time 1 byte 0~99( x 100)ms

KSV List 80 byte

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 38: Terminal Command VA-1838

30

2.15 [0x20 0x4A]: CEC Address setting

Function: This command is used to configure CEC Address.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x4A

PARM 24byte

Emulate Device1 6byte

Emulate Device Enable 1 byte 0: Disable 1: Enable

Logical Address Type 1 byte 0: TV 1: Recording Device 2:Tuner 3:Playback

Device 4:Audio System 5:Direct Address

Direct Logical Address 1 byte 0x00 ~ 0x0F

Physical Address Type 1 byte 0: VA-1838 Address 1: Direct Address

Direct Physical Address 2 byte 0x0000 ~ 0xFFFF

Emulate Device2 6byte

Emulate Device3 6byte

Emulate Device4 6byte

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 39: Terminal Command VA-1838

31

33 VA-1838 measurement commands

3.1 [0x30 0x50]: Video Timing reading

Function: This command is used to read the video timing data.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x50

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 45 byte

Pixel Clock 4 byte 0x00000000 to 0xFFFFFFFF (= Pixel Clock×10000)

H Freq. 2 byte 0x0000 to 0xFFFF (= H Frequency×100)

V Freq. 2 byte 0x0000 to 0xFFFF (= V Frequency×100)

H Total 2 byte 0x0000 to 0xFFFF

H Active 2 byte 0x0000 to 0xFFFF

H Sync 2 byte 0x0000 to 0xFFFF

H Back Porch 2 byte 0x0000 to 0xFFFF

H Front Porch 2 byte 0x0000 to 0xFFFF

H Sync Polarity 1 byte 0x00: Nega 0x01: Posi

V Total Line 2 byte 0x0000 to 0xFFFF

V Active TOTAL 2 byte 0x0000 to 0xFFFF

V Active Field1 2 byte 0x0000 to 0xFFFF

V Sync Field1 2 byte 0x0000 to 0xFFFF (= V Sync x 2)

V Back Porch Field1

2 byte 0x0000 to 0xFFFF (= V Back Porch x 2)

V Front Porch Field1

2 byte 0x0000 to 0xFFFF (= V Front Porch x 2)

HV Sync OffSet Field1

2 byte 0x0000 to 0xFFFF

V Active Field2 2 byte 0x0000 to 0xFFFF

V Sync Field2 2 byte 0x0000 to 0xFFFF (= V Sync×2)

Page 40: Terminal Command VA-1838

32

V Back Porch Field2

2 byte 0x0000 to 0xFFFF (= V Back Porch×2)

V Front Porch Field2

2 byte 0x0000 to 0xFFFF (= V Front Porch×2)

HV Sync OffSet Field2

1 byte 0x0000 to 0xFFFF

V Sync Polarity 1 byte 0x00: Nega 0x01: Posi

Interlace 4 byte 0x00: NON-Interlace 0x01: Interlace

e.g.) when receiving 640x480@60Hz

PC:

Data 0x02 0x30 0x50 0x03 0x83

Code STX CMD1 CMD2 EXT BCC

VA:

Data 0x02 0x10 0x00 0x03 0xD7 0x66 0x0C 0x4B 0x17 0x6A

Code STX TRDT Pixel Clock = 25.1750MHz

(0x0003D765 = 251750 )

H Freq.=31.47kHz

(0x0C4B = 3147)

V Freq=59.94Hz

(0x176A = 5994)

0x03 0x20 0x02 0x80 0x00 0x60 0x00 0x30 0x00 0x10 0x00

H Total

(0x320=800)

H Active

(0x0280=640)

H Sync

(0x0060=96)

H Back Porch

(0x0030=48)

H Front Porch

(0x0010=16)

H Sync Polarity=

Nega

0x02 0x0D 0x01 0xE0 0x01 0xE0 0x00 0x04 0x00 0x42

V Total Line

(0x02D0=720)

V Active TOTAL

(0x01E0=480)

V Active Field1

(0x01E0=480)

V Sync Field1= 2.0dot

(0x0004= 4)

V Back Porch Field1 =

33.0dot (0x0042=66)

0x00 0x14 0x00 0x00 0x01 0xE0 0x00 0x04 0x00 0x42

V Front Porch Field1

=10.0dot (0x0014= 20)

HV Sync OffSet

Field1=0dot

V Active Field2

(0x01E0=480)

V Sync Field2= 2.0dot

(0x0004= 4)

V Back Porch Field2=

33.0dot (0x0042=66)

0x00 0x14 0x00 0x00 0x00

V Front Porch Field2=10.0dot

(0x0014= 20)

HV Sync OffSetField2=0dot V Sync Polarity= Nega

0x00 0x03 0xD6

Interlace=

NON-Interlace

ETX BCC

Page 41: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

33

3.2 [0x30 0x51]: Audio Timing reading

Function: This command is used to read the audio data.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x51

Return command (sequence no.2a)

ACK 1 byte 0x06: ACK Positive acknowledgment

0x15: NAK Negative acknowledgment

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 31 byte

Audio Error 1 byte 0bit 1:Audio PLL is not locked

1bit 1:Audio FIFO has Overflow

2bit 1:Audio FIFO has Underflow

Audio Type 1 byte 0x00: Audio Sample

0x01: One Bit Audio

0x02: High Bitrate Audio

0x03: NULL

0x04: AC-3

0x05: Refer to SMPTE 338M

0x06: Pause

0x07: MPEG1-L1

0x08: MPEG1-L2,L3 or MPEG2 without extension

0x09: MPEG2 extension

0x0A: MPEG2 AAC

0x0B: MPEG2-1

0x0C: MPEG2-2

0x0D: MPEG2-3

0x0E: DTS type1

0x0F: DTS type2

0x10: DTS type3

0x11: ATRAC

0x12: ATRAC2

Page 42: Terminal Command VA-1838

34

0x13: ATRAC-X

0x14: DTS HD

0x15: WMA pro

0x16: MPEG2 AAC half

0x17: MPEG2 AAC quarter

0x18: DD+

0x19: Dolby True HD

0x1A: Reserved

0x1B: Reserved

0x1C: Reserved

0x1D: Reserved

0x1E: Refer to SMPTE 338M

0x1F: Refer to SMPTE 338M

0x20: Refer to SMPTE 338M

0x21: Refer to SMPTE 338M

0x22: Extended data type

N 2 byte 0x0000 to 0xFFFF

CTS 3 byte 0x000000 to 0xFFFFFF

1CH Volume 3 byte 0x000000 to 0xFFFFFF

: :

8CH Volume 3 byte 0x000000 to 0xFFFFFF

Page 43: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

35

3.3 [0x30 0x52]: Packet reading

Function: This command is used to read the packets.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x52

PARM 1 byte

Packet Type 1 byte 0x03: GC Packet

0x04: ACP Packet

0x05: ISRC1 Packet

0x06: ISRC2 Packet

0x0A: Gamut Metadata Packet

0x81: Vendor Specific InfoFrame

0x82: AVI InfoFrame

0x83: SPD InfoFrame

0x84: Audio InfoFrame

0x85: MPEG InfoFrame

0xF0: Channel Status Bit

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x02: PARM_DATA_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 31 byte

Packet Type 1 byte 0x00 to 0xFF (0x00: Designated packet cannot be received.)

Header-1 1 byte 0x00 to 0xFF

Header-2 1 byte 0x00 to 0xFF

Data0 1 byte 0x00 to 0xFF

: :

Data27 1 byte 0x00 to 0xFF

Page 44: Terminal Command VA-1838

36

3.4 [0x30 0x53]: Channel Status Bit reading

Function: This command is used to read the Channel Status Bit.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x53

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 5 byte

Data0 1 byte 0x00 to 0xFF

: :

Data4 1 byte 0x00 to 0xFF

Page 45: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

37

3.5 [0x30 0x54]: HDCP Status reading

Function: This command is used to read the HDCP Status.

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x54

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 266 byte

Input AN 8 byte

Input Aksv 5 byte

Input Bksv 5 byte

Input Ri 2 byte

Input V 20 byte

Input KSV FIFO 80 byte

Input Count 1 byte

Input Depth 1 byte

Output AN 8 byte

Output Aksv 5 byte

Output Bksv 5 byte

Output Ri 2 byte

Output Ri’ 2 byte

Output V 20 byte

Output V’ 20 byte

Output KSV FIFO 80 byte

Output Count 1 byte

Output Depth 1 byte

Page 46: Terminal Command VA-1838

38

3.6 [0x30 0x55]: ARC Status reading

Function: This command is used to read the ARC Status (TX side).

Sequence: Type 3

PC

VA

1

2a or 2b 3

4

Fig. Type 3

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x55

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 18 byte

1CH Volume 4 byte 0x00000000 to 0xFFFFFFFF

2CH Volume 4 byte 0x00000000 to 0xFFFFFFFF

CH1 Data0 1 byte 0x00 to 0xFF

: :

CH1 Data4 1 byte 0x00 to 0xFF

CH2 Data0 1 byte 0x00 to 0xFF

: :

CH2 Data4 1 byte 0x00 to 0xFF

Page 47: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

39

3.7 [0x30 0x56]: DDC Line monitor reading

Function: This command is used to monitor of the DDC Line.

Sequence: Type 5

PC

VA

1

2a or 2b 3

4

………

5

4

Fig. Type 5

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x56

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3/5)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03F9

Packet No 1 byte 0x00 to 0xFF

Data Type* 1 byte 0bit ack (0: yes, 1: no)

1bit 1: Stop

2bit 1: Start

3bit 0: Other trigger

1: DDC trigger

4bit 0: Empty

5bit 0: FULL

6bit 0: HPD Low

7bit 0: SCDT Low

Data* 1 byte 0x00 to 0xFF

TimeStamp 4 byte 0x00000000 to 0xFFFFFFFF(/0.5ms)

Data Type* 1 byte 0bit ack (0: yes, 1: no)

1bit 1: Stop

2bit 1: Start

3bit 0: Other trigger

1: DDC trigger

4bit 0: Empty

5bit 0: FULL

6bit 0: HPD Low

7bit 0: SCDT Low

:

Data* 1 byte 0x00 to 0xFF

TimeStamp 4 byte 0x00000000 to 0xFFFFFFFF(/0.5ms)

* Depending on the values of [Full], [Start] and [Stop], either enable (O) or disable (x) is determined for the [Data Type] and [Data] parameters.

Page 48: Terminal Command VA-1838

40

[Full] [Start] [Stop] [ack] [Data]

1 × × × ×

0 1 × × ×

0 × 1 × ×

0 0 0

Page 49: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

41

3.8 [0x30 0x57]: CEC Line monitor reading

Function: This command is used to monitor the CEC Line.

Sequence: Type 5

PC

VA

1

2a or 2b 3

4

………

5

4

Fig. Type 5

Commands:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x57

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3/5)

PARM Data Length byte

Data Length 2 byte 0x0003 to 0x03F9

Packet No 1 byte 0x00 to 0xFF

Data Type* 1 byte Bit 0: Ack (0: logic 0, 1: logic 1) 1bit: EOM 2bit: Start 3bit:error

Data* 1 byte 0x00 to 0xFF

TimeStamp 4 byte 0x00000000 to 0xFFFFFFFF(/0.5ms)

Data Type* 1 byte Bit 0: ack (0: yes, 1: no) 1bit: Start 2bit: EOM 3bit:error

:

TimeStamp 4 byte 0x00000000 to 0xFFFFFFFF(/0.5ms)

* Depending on the value of [error], either enable (O) or disable (x) is determined for the [Data Type] parameter.

[error] [EOM] [Start] [ack]

0 (= not error)

1 (= error) × × ×

* The significance of the [Data] parameter differs depending on the value of [error].

[error] [Data]

0 (= not error) “Information bit” part of the CEC command

1 (= error) 0x01: The bit timing is invalid. (The bit period is too long.)

0x02: The bit timing is invalid. (The bit period is too long.)

0x04: Error handling has occurred.

0x08: Due to an error in a command destined to the VA-1838, the VA-1838 executed Error Handling.

0x10: There was an event (other than Start) on the CEC line before the CEC command was started (was recognized).

0x20: An overflow occurred in the FIFO where the CEC command is stored.

Page 50: Terminal Command VA-1838

42

3.9 [0x30 0x58]: Video Data reading

Function: This command is used to read Video Timing.

Sequence: Type5

Fig. Type5

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x58

PARM 5 byte

Type 1 byte 0 : Line 1 : Pixel

X axis 2 byte 0x0000 ~ 0xFFFF

Y axis 2 byte 0x0000 ~ 0xFFFF

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x04: CMD_EXEC_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM Data Length byte

Data Length 2 byte 0x0003~0x03FB

Packet No 1 byte 0x00~0xFF

Data 1 byte 0x00~0xFF

:

Data 1 byte 0x00~0xFF

PC

VA

1

2a or 2b 3

4

………

5

4

Page 51: Terminal Command VA-1838

43

44 VA-1838 operation commands

4.1 [0x20 0x60]: Hot Plug Pulse execution

Function: This command is used to execute Hotplug Pulse.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x60

PARM 2 byte

Type 1 byte 0:Pulse 1:Manual

Status

Pulse 1 byte

1 ~ 200 (ms)

Manual 0:Low 1: High

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 52: Terminal Command VA-1838

44

4.2 [0x30 0x60]: Hot Plug Status reading

Function: This command is used to read HotPlug Status.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x60

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 2byte

Input 1 byte 0:Low 1:High

Output 1 byte 0:Low 1:High

PC

VA

1

2a or 2b 3

4

Page 53: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

45

4.3 [0x20 0x61]: Receiver Sense execution

Function: This command is used to configure Receiver Sense.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x61

PARM 1 byte

Status 1 byte 0:Low 1: High

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 54: Terminal Command VA-1838

46

4.4 [0x20 0x62]: Log execution

Function: This command is used to execute/stop Log

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x62

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 55: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

47

4.5 [0x20 0x63]: CEC Command sending

Function: This command is used to send CEC Command.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x63

PARM 20yte

Initiation Address 1 byte 0x00 ~0x0F

Destination Address 1 byte 0x00 ~0x0F

OP Code 1 byte

Data Length* 1 byte 0x00 ~0x11

Data 16byte

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

*)Data Length includes that of OP Code. When Data Length =0 is given, OP Code will not be sent.

PC

VA

1

2a or 2b

Page 56: Terminal Command VA-1838

48

4.6 [0x30 0x64]: DDC Output Access

Function: This command is used to execute I2C access via VA-1838’s output.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x64

PARM 23 byte

Type 1 byte 0 : Read 1 : Write

Speed 1 byte 0 : 20KHZ

1 : 40KHZ

2 : 60KHZ

3 : 80KHZ

4 : 100KHZ

5 : 150KHZ

6 : 200KHZ

7 : 250KHZ

8 : 300KHZ

9 : 350KHZ

10 : 400KHZ

Command 1 byte 0 : Combined 1 : Short Access

Clear Add 1 byte 0 : Clear not add 1 : Clear add

Slave Address 1 byte 0x00~0xFF

Offset Address 1 byte 0x00~0xFF

Length 1 byte 0x00~0x10

Data 16byte

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM Length byte

Data

PC

VA

1

2a or 2b 3

4

Page 57: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

49

4.7 [0x20 0x65]: Audio Return Channel execution

Function: This command is used to execute/stop ARC from VA-1838’s input side.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x65

PARM 36 byte

Output 1 byte 0 : OFF 1 : ON

Type 1 byte 0 : Generate Data 1 : COAX Input

Sampling Frequency 1 byte 0:32kHz 1:44.1kHz 2:48kHz 3:88.2kHz

4:96kHz 5:176.4kHz 6:192kHz

Sampling Length 1 byte 0:16Bit 1:20Bit 2:24Bit

Audio Frequency 2 byte 1 ~ 99 ( x 100Hz)

Audio Volume 4 byte 0x0000 ~ 0x7FFF

Channel Enable 8 byte 0 : OFF 1 : ON

Channel Type 8 byte 0 : Type1 1 : Type2

ARC N Auto 1 byte 0:OFF 1:ON

ARC N Value 3 byte 0x00000 ~ 0xFFFFF

Channel Status Bit 5 byte

Initiate Request

Mode

1 byte 0 : Request Short Audio & ARC Initiation

1 : Request ARC Initiation

2 : No Request

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 58: Terminal Command VA-1838

50

4.8 [0x30 0x65]: Audio Return Channel Setting reading

Function: This command is used to acquire ARC settings of VA-1838’s input side.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x65

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 36 byte

Output 1 byte 0 : OFF 1 : ON

Type 1 byte 0 : Generate Data 1 : COAX Input

Sampling Frequency 1 byte 0:32kHz 1:44.1kHz 2:48kHz 3:88.2kHz

4:96kHz 5:176.4kHz 6:192kHz

Sampling Length 1 byte 0:16Bit 1:20Bit 2:24Bit

Audio Frequency 2 byte 1 ~ 99 ( x 100Hz)

Audio Volume 4 byte 0x0000 ~ 0x7FFF

Channel Enable 8 byte 0 : OFF 1 : ON

Channel Type 8 byte 0 : Type1 1 : Type2

ARC N Auto 1 byte 0:OFF 1:ON

ARC N Value 3 byte 0x00000 ~ 0xFFFFF

Channel Status Bit 5 byte

Initiate Request

Mode

1 byte 0 : Request Short Audio & ARC Initiation

1 : Request ARC Initiation

2 : No Request

PC

VA

1

2a or 2b 3

4

Page 59: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

51

4.9 [0x20 0x66]: Generate execution Function: This command is used to execute/stop Generate

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x66

PARM 24 byte

Generate Video 1 byte 0 : OFF 1 : 8bit 2 : 10bit 3 : 12bit

Generate Audio 1 byte 0 : OFF 1 : ON

Generate HDCP 1 byte 0 : OFF 1 : ON

Set AV Mute 1 byte 0 : OFF 1 : ON

Clear AV Mute 1 byte 0 : OFF 1 : ON

LipSync 1 byte 0 : OFF 1 : ON

LipSync Mode 1 byte 0 : Auto 1 : Manual

LipSync Delay Type 1 byte 0 : Video 1 : Audio

LipSync Delay Time 2 byte 0 ~ 1000ms

Generate AVI Info 1 byte 0 : OFF 1 : ON

Generate SPD Info 1 byte 0 : OFF 1 : ON

Generate Audio Info 1 byte 0 : OFF 1 : ON

Generate MPEG Info 1 byte 0 : OFF 1 : ON

Generate Vendor Info 1 byte 0 : OFF 1 : ON

Generate Gamut 1 byte 0 : OFF 1 : ON

Generate ACP 1 byte 0 : OFF 1 : ON

Generate ISRC 1 byte 0 : OFF 1 : ON

Generate Other 1 byte 0 : OFF 1 : ON

Generate Pattern 1 byte 0 : Color Bar

1 : H Ramp

2 : V Ramp

3 : Frame

4 : W Raster

5 : R Raster

6 : G Raster

7 : B Raster

8 : Window

9 : Random Color Bar

10 : 3D Checker

11:Cross Hatch

3D Checker Size 1 byte 1~200

Cross Hatch Size 1 byte 1~200

PC

VA

1

2a or 2b

Page 60: Terminal Command VA-1838

52

Scroll Horizontal 1 byte 0 : OFF 1 : ON

Scroll Vertical 1 byte 0 : OFF 1 : ON

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Page 61: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

53

4.10 [0x30 0x66]: Generate Setting reading

Function: This command is used to acquire Generate settings

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x66

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 24 byte

Generate Video 1 byte 0 : OFF 1 : 8bit 2 : 10bit 3 : 12bit

Generate Audio 1 byte 0 : OFF 1 : ON

Generate HDCP 1 byte 0 : OFF 1 : ON

Set AV Mute 1 byte 0 : OFF 1 : ON

Clear AV Mute 1 byte 0 : OFF 1 : ON

LipSync 1 byte 0 : OFF 1 : ON

LipSync Mode 1 byte 0 : Auto 1 : Manual

LipSync Delay Type 1 byte 0 : Video 1 : Audio

LipSync Delay Time 2 byte 0 ~ 1000ms

Generate AVI Info 1 byte 0 : OFF 1 : ON

Generate SPD Info 1 byte 0 : OFF 1 : ON

Generate Audio Info 1 byte 0 : OFF 1 : ON

Generate MPEG Info 1 byte 0 : OFF 1 : ON

Generate Vendor Info 1 byte 0 : OFF 1 : ON

Generate Gamut 1 byte 0 : OFF 1 : ON

Generate ACP 1 byte 0 : OFF 1 : ON

Generate ISRC 1 byte 0 : OFF 1 : ON

Generate Other 1 byte 0 : OFF 1 : ON

PC

VA

1

2a or 2b 3

4

Page 62: Terminal Command VA-1838

54

Genearte Pattern 1 byte 0 : Color Bar

1 : H Ramp

2 : V Ramp

3 : Frame

4 : W Raster

5 : R Raster

6 : G Raster

7 : B Raster

8 : Window

9 : Random Color Bar

10 : 3D Checker

11 : Cross Hatch

3D Checker Size 1 byte 1~200

Cross Hatch Size 1 byte 1~200

Scroll Horizontal 1 byte 0 : OFF 1 : ON

Scroll Vertical 1 byte 0 : OFF 1 : ON

Page 63: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

55

4.11 [0x20 0x67]: Generate Video Timing setting

Function: This command is used to configure Timing to be generated.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x67

PARM 2byte

Generate Video Code 1 byte 1~64 (1 to 4 when Generate Type is 4Kx2K)

Generate Type 1 byte 0:2D

1:Frame Packing

2:Side by Side (Half)

3:Top and Bottom

4:4Kx2K

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 64: Terminal Command VA-1838

56

4.12 [0x30 0x67]: Generate Video Timing Setting reading

Function: This command is used to acquire Generate Video Timing settings.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x67

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 2byte

Generate Video Code 1 byte 1~64 (1 to 4 when Generate Type is 4Kx2K)

Generate Type 1 byte 0:2D

1:Frame Packing

2:Side by Side (Half)

3:Top and Bottom

4:4Kx2K

PC

VA

1

2a or 2b 3

4

Page 65: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

57

4.13 [0x20 0x68]: Generate Packet setting

Function: This command is used to configure Packet to be generated.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x68

PARM 31 byte

Packet Type 1 byte 0x04 : ACP Packet

0x05 : ISRC Packet

0x0A : Gamut MetadataPacket

0x81 : Vendor Specific InfoFRAME

0x82 : AVI InfoFRAME

0x83 : SPD InfoFRAME

0x84 : Audio InfoFRAME

0x85 : MPEG InfoFRAME

Other than 0x01 to 0x05, 0x07 to 0x0A, 0x81 to

0x83 : Other Packet

Header-1 Header-1

Header-2 Header-2

Data0 Data0

: :

Data27 Data27

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 66: Terminal Command VA-1838

58

4.14 [0x30 0x68]: Generate Packet Setting reading

Function: This command is used to acquire Generate Packet setting values.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x68

PARM 1 byte

Packet Type 1 byte 0x04 : ACP Packet

0x05 : ISRC Packet

0x0A : Gamut MetadataPacket

0x81 : Vendor Specific InfoFRAME

0x82 : AVI InfoFRAME

0x83 : SPD InfoFRAME

0x84 : Audio InfoFRAME

0x85 : MPEG InfoFRAME

Other Packet set by command 0x20 0x68

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 31 byte

Packet Type 1 byte Packet Type

Header-1 Header-1

Header-2 Header-2

Data0 Data0

: :

Data27 Data27

PC

VA

1

2a or 2b 3

4

Page 67: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

59

4.15 [0x20 0x69]: Generate Audio setting

Function: This command is used to configure Audio to be generated.

Sequence: Type2

Fig. Type2

Command:

Send command (sequence no.1)

CMD1 1 byte 0x20

CMD2 1 byte 0x69

PARM 33 byte

Sampling Frequency 1 byte 0:32kHz 1:44.1kHz 2:48kHz 3:88.2kHz

4:96kHz 5:176.4kHz 6:192kHz

Sampling Length 1 byte 0:16Bit 1:20Bit 2:24Bit

Audio Frequency 2 byte 1 ~ 99 ( x 100Hz)

Audio Volume 4 byte 0x0000 ~ 0x7FFF

Channel Enable 8 byte 0 : OFF 1 : ON

Channel Type 8 byte 0 : Type1 1 : Type2

ARC N Auto 1 byte 0:OFF 1:ON

ARC N Value 3 byte 0x00000 ~ 0xFFFFF

Channel Status Bit 5 byte

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

PC

VA

1

2a or 2b

Page 68: Terminal Command VA-1838

60

4.16 [0x30 0x69]: Generate Audio Setting reading

Function: This command is used to acquire Generate Audio setting values.

Sequence: Type3

Fig. Type3

Command:

Send command (sequence no.1)

CMD1 1 byte 0x30

CMD2 1 byte 0x69

Return command (sequence no.2b)

ErrorCode 1 byte 0x01: PARM_SIZE_ERR

0x05: BCC_ERR

Return command (sequence no.3)

PARM 33 byte

Sampling Frequency 1 byte 0:32kHz 1:44.1kHz 2:48kHz 3:88.2kHz

4:96kHz 5:176.4kHz 6:192kHz

Sampling Length 1 byte 0:16Bit 1:20Bit 2:24Bit

Audio Frequency 2 byte 1 ~ 99 ( x 100Hz)

Audio Volume 4 byte 0x0000 ~ 0x7FFF

Channel Enable 8 byte 0 : OFF 1 : ON

Channel Type 8 byte 0 : Type1 1 : Type2

ARC N Auto 1 byte 0:OFF 1:ON

ARC N Value 3 byte 0x00000 ~ 0xFFFFF

Channel Status Bit 5 byte

PC

VA

1

2a or 2b 3

4

Page 69: Terminal Command VA-1838

Chapter 2 VA-1838 setting commands

61

Page 70: Terminal Command VA-1838

VA-1838 Terminal Command Instruction Manual

NOTICE

An incorrectly collated manual or a manual with missing pages will be replaced.

All copyrights pertaining to this product are the property of Astrodesign.

This manual may not be used or copied in whole or in part without permission.

The contents of this manual are subject to change without notice due to improvements.

The manufacturer will not be liable for any outcome which results from incorrect operation.

All inquiries concerning this product should be addressed to your dealer or Astrodesign.

The products and product names mentioned in this manual are the trademarks and registered trademarks of the companies concerned.

T0241