Moxa MPC-2247X [56/64] Command format details

Moxa MPC-2247X [56/64] Command format details
MPC-2240 Hardware Manual Display Control Interface
6-4
Command Format Details
ATTN (Attention)
This byte is used to identify a start of message, and it can be one of three values:
ATTN Description
0x07 Command (ASCII BELL) packet
0x06 Acknowledge (ASCII ACK) packet
0x15 Negative ACK (ASCII NAK) packet
A device shall send a command using the 0x07 Attention Code. The unit will respond to the command with
either an ACK if the command completed successfully, or a NAK if the command failed.
ADDR (Address)
This byte is used to specify the address where a command will be sent. Please note that the MPC-2240 only
supports a broadcast address, so the address field only uses the following value:
ADDR Description
0xFF Broadcast the command to all units
CMD (Message Commands and Queries)
The command portion of the message will be one of the following values. For details, refer to Appendix B:
UART Commands for Display Control.
CMD 0
CMD 1
CMD 2
ASCII
Description
0x42
0x52
0x49
BRI Sets minimum possible brightness for the display panel
0x42
0x52
0x4D
BRM Sets maximum possible brightness for the panel
0x42
0x52
0x54
BRT Restricts the brightness range for the display panel
0x42
0x4C
0x49
BLI Sets the panel brightness.
0x50
0x4F
0x54
POT [DISABLED]
0x45
0x54
0x43
ETC Queries the system uptime
0x42
0x5A
0x5A
BZZ Buzzer control
0x44
0x4C
0x4E
DLN Returns a copy of the ECDIS RGB file from the EEPROM
0x44
0x4C
0x3F
DL? Queries the size of the ECDIS RGB file
0x45
0x4D
0x53
EMS Sets the ECDIS brightness mode
0x42
0x52
0x55
BRU Sets LED brightness for the display controls
0x42
0x52
0x4C
BRL Sets LED brightness for the display controls
0x47
0x4D
0x42
GMB Sets minimum possible brightness for display controls
0x53
0x57
0x4B
SWK Queries the display controls’ firmware version
0x53
0x57
0x49
SWI Query the firmware version of the scalar board
0x41
0x44
0x46
ADF Detects if the AC power input is connected
0x41
0x44
0x3F
AD? Returns whether AC detection is enabled or disabled
0x44
0x55
0x46
DUF This disables all or selected UART commands; if all are
disabled, the machine is reset to factory defaults
LEN (Data Length)
This byte defines the length of data in the message in bytes. The maximum value for this field is 74 bytes, and
the minimum value is 0.
IHCHK (Inverse Header Checksum)
This is a simple 8-bit checksum of the first six bytes of the packet (bytes 0 to 5) after a bitwise inversion has
been performed on them. This means the 8-bit sum (without carrying) of bytes 0, 1, 2, 3, 4, 5, and 6 is 0xFF.

Содержание

Скачать