Moxa MPC-2240Z [61/64] Bzz buzzer control

Moxa MPC-2247X [61/64] Bzz buzzer control
MPC-2240 Hardware Manual UART Commands for Display Control
B-3
BZZ: Buzzer Control
Users can send this command to turn the buzzer on or off. The default value is OFF.
If the data and data checksum of sending are incorrect, the data field of replying is current buzzer status.
LEN=one byte.
0x00 Turn the buzzer OFF
0xFF Turn the buzzer ON
Example
Turn the buzzer ON.
0x07 0xFF 0x42 0x5A 0x5A 0x01 0x02 0xFF 0x00
ACK
0x06 0xFF 0x42 0x5A 0x5A 0x01 0x03 0xFF 0x00
DLN: Download ECDIS RGB Package
This command commands the computer to read the current ECDIS RGB file loaded in the EEPROM and return
it via the UART. This command cannot be used on non-ECDIS models. Before using the DLN command, you will
need to query the system using the DL? command (see below), to see how many packets will be needed to
transmit the full file.
To receive the full file over the UART interface will require downloading a series of 32 byte packets. Each packet
is numbered, and contains only 30 bytes of data, so a 4k RGB file would be transmitted require a series of 134
packets for complete transmission. Packets must be requested consecutively, by their packet number. To find
out how many packets will be required to transmit the full file, use the DL? query shown just below.
Every packet is numbered according to its order in the series; this number is contained as a header in byte 7 ,
with byte 8 encoding an ASCII "-". The 30 bytes that follow are all data, so if the packet is fully loaded the data
will be located in bytes 9 to 38.
Example:
Commands to read packets 0, 1, and 2.
0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x00 0xFF
0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x01 0xFF
0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x02 0xFF
Acknowledgement and transmission of packet 0, the first packet of the RGB file:
0x06 0xFF 0x44 0x4C 0x4E 0x20 0xFC 0x00 - Data IDCHK
DL?: ECDIS RGB Package Query
Use this command to determine how many packets will be needed to transmit the full ECDIS RGB file contained
in the EEPROM. This command cannot be used on non-ECDIS models. The total number of packets required will
equal the size of ECDIS RGB file in bytes divided by 30, so querying a system using a 4k RGB file should require
134 packets to successfully transmit.
Example:
Send DL? command to query total number of packets needed to encode the RGB file:
0x07 0xFF 0x44 0x4C 0x3F 0x00 0x2A
The system acknowledges, and returns an answer of 255 packets:
0x06 0xFF 0x44 0x4C 0x3F 0x01 0x2A 0xFF 0x00
ETC: Elapsed Time Counter Query
This command returns the elapsed time since the MPC-2240 was last booted up. The MCP-2240 will reply to this
command with an ACK packet. The largest byte will be transmitted first.
The maximum indicator for this function is 99999 hours (defined into 5 bytes, numbers 0 to 9 each), equivalent
to 11 years. If this number is reached, the ETC will stop counting, and the ETC command will always reply with
maximum number of hours (99999).
Example:

Содержание

Скачать