16 serial/ethernet communication (scom) interface, Dln" - download ecdis package table x – Hatteland Display 26 inch - HD 26T21 MMC (Widescreen) User Manual

Page 16

Advertising
background image

16

Serial/Ethernet Communication (SCOM) Interface

IND100084-14

"DLN" - Download ECDIS package table x

Before sending this command, use "DL?" to retrieve how many packets are actually available in the ECDIS table.

If you request a download package from a empty slot or above the available packets in memory, you will get a NAK

response.

The "DLN" command shall be sent to the unit to request a specific data packet stored in the unit's memory.

The DATA field shall contain the packet number being requested; the byte in the DATA field represents a hexadecimal

word (00 to FF) identifying the block of data to be downloaded.

If the data checksum and packet number is valid, the unit shall reply to this command with an ACK attention code, the

hexadecimal packet number, a separator (‘-‘), and the ASCII packet data. The maximum DATA field size for a packet

of data shall be 74 bytes per message; therefore the DATA field in the reply shall be a maximum length of 74 bytes.

The DATA field of the message is not required to be of maximum length (it may be smaller than 74 bytes).

Example:

Command to read package number 1,2,3,4 (0x00, 0x01, 0x02, 0x03) from Slot ID 0x01 (VGA slot, MMD):

0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x00 0xFF
0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x01 0xFE
0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x02 0xFD
0x07 0xFF 0x44 0x4C 0x4E 0x01 0x1A 0x03 0xFC

.... until the end of available packages.

ECDIS table 0 is stored first and read with only packed nr. To read from other table, another byte is added for table nr. The DATA field shall

contain the packet number being requested and table nr; the first byte in the DATA field represents a hexadecimal word (00 to FF) identifying the

block of data to be downloaded.

The second byte in the DATA represents the table nr from 1-x. If the data checksum and packet number is valid, the unit shall reply to this

command with an ACK attention code, the hexadecimal packet number, a separator (‘-‘), and the ASCII packet data. The maximum DATA field

size for a packet of data shall be 74 bytes per message; therefore the DATA field in the reply shall be a maximum length of 74 bytes. The DATA

field of the message is not required to be of maximum length (it may be smaller than 74 bytes).

Acknowledge Example of a successful DLN query (4 first packages illustrated, actual ASCII text begins at WHITE colored cells):

0x06 0xFF 0x44 0x4C 0x4E 0x20 0xFC 0x00 0x2D 0x56 0x42 0x31 0x30 0x30 0x30 0x31 0x34 0x2D
0x31 0x20 0x42 0x75 0x69 0x6C 0x64 0x20 0x6E 0x75 0x6D 0x62 0x65 0x72 0x3A 0x20 0x56 0x65
0x72 0x73 0x69 0x9A

0x06 0xFF 0x44 0x4C 0x4E 0x20 0xFC 0x01 0x2D 0x6F 0x6E 0x3A 0x20 0x33 0x2E 0x30 0x2E 0x30

0x2E 0x31 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20

0x31 0x38 0x2E 0xB5

0x06 0xFF 0x44 0x4C 0x4E 0x20 0xFC 0x02 0x2D 0x30 0x39 0x2E 0x32 0x30 0x31 0x34 0x0A 0x48
0x44 0x31 0x39 0x54 0x32 0x31 0x4D 0x4D 0x44 0x4D 0x41 0x31 0x46 0x41 0x47 0x41 0x20 0x2D
0x31 0x30 0x32 0x2F

0x06 0xFF 0x44 0x4C 0x4E 0x20 0xFC 0x03 0x2D 0x32 0x31 0x0A 0x0A 0x5B 0x47 0x72 0x61 0x70
0x68 0x69 0x63 0x61 0x6C 0x20 0x49 0x6E 0x74 0x65 0x72 0x66 0x61 0x63 0x65 0x5D 0x0A 0x4D
0x61 0x74 0x72 0xC6

ASCII Contents of package 1,2,3,4 (reference example above) received is, 111 bytes:

VB100014-1 Build number: Version: 3.0.0.1 18.09.2014
HD19T21MMDMA1FAGA -10221

[Graphical Interface]
Matr

Advertising