NEC RS-232C manual Power control procedure, Power status read

Models: RS-232C

1 72
Download 72 pages 50.57 Kb
Page 36
Image 36

7. Power control procedure

7.1 Power status read

1) The controller requests the monitor to reply a current power status.

 

Header

Message

Check code

Delimiter

SOH-'0'-Monitor ID-'0'-'A'-'0'-'6'

STX-'0'-'1'-'D'-'6'-ETX

BCC

CR

Header

 

 

 

SOH

(01h): Start Of Header

 

 

 

'0'

(30h): Reserved

 

 

 

Monitor ID: Specify the Monitor ID from which you want to get status. Ex.) If Monitor ID is '1', specify 'A'.

'0' (30h): Message sender is the controller.

'A' (41h): Message Type is "Command".

'0'-'6' (30h, 36h): Message length is 6 bytes.

Message

STX (02h): Start of Message

'0'-'1'-'D'-'6': Get power status command.

ETX (03h): End of Message

Check code

BCC: Block Check Code

Refer to the section 4.5 “Check code” for a BCC calculation.

Delimiter

CR (0Dh): End of packet

2) The monitor returns with the current power status.

Header

Message

Check code

Delimiter

SOH-'0'-'0'-Monitor ID-'B'-'1'-'2'

STX-'0'-'2'-'0'-'0'-'D'-'6'-'0'-'0'-'0'

BCC

CR

-'0'-'0'-'4'-'0'-'0'-'0'-'1'-ETX

Header

SOH (01h): Start Of Header

'0' (30h): Reserved

'0' (30h): Message receiver is the controller.

Monitor ID: Indicate a replying Monitor ID.

Ex.) When this byte is set to 'A', the replying Monitor ID is '1'.

'B' (42h): Message Type is "Command reply".

'1'-'2' (31h, 32h): Message length is 18 bytes.

Message

STX(02h):Start of Message '0'-'2' (30h, 32h): Reserved data '0'-'0' (30h, 30h): Result code

00:No Error.

01:Unsupported.

'D'-'6'(44h, 36h): Display power mode code

'0'-'0' (30h, 30h): Parameter type code is "Set parameter".

'0'-'0'-'0'-'4' (30h, 30h, 30h, 34h): Power mode is 4 types.

'0'-'0'-'0'-'1' (30h, 30h, 30h, 31h): Current power mode <Status>

0001: ON

0002: Stand-by (power save)

0003: Suspend (power save)

0004: OFF (same as IR power off)

ETX (03h): End of Message

Check code

BCC: Block Check Code

Refer to the section 4.5 “Check code” for a BCC calculation.

Delimiter

(36/72)

Page 36
Image 36
NEC RS-232C manual Power control procedure, Power status read