HEX, ASCII, BIN and Character table ..............................................30
Revision History .......................................................................................... 35
IND100130-27
4
4
Serial Communication (SCOM) Interface
Introduction
This document denes the electrical interface, serial data format, and communication protocol of the Serial
Communication Control Interface. The purpose of this interface is to enable a computer application to control one or
more units. Units refer to either displays or panel computers.
Serial Interface Conguration
The serial interface can have different congurations, selected by the OSD menu. The congurations are dened as
follows:
RS-232One computer controls one unit, no individual address
4-wire RS-485/RS-422One computer controls max 16 units, each with individual address.
2-wire RS-485One computer controls max 16 units, each with individual address.
Cables
A cable with an overall shield terminated at the back shell should be used.
Electrical Interface
Electrical signals shall conform to RS-485, RS-422 or RS-232. Only Receive Data, Transmit Data, and Signal Ground
are used. The same conditions apply for both 4-wire and 2-wire, and will just be referred to as RS-485 in this document.
Hardware handshake is only supported by loopback handshake for RS-232.
- Display (Maritime Multi Display - MMD) based units with Multifunction Cable (VSD100692 series):
• SCOM RS-232 : 1 x 9P DSUB (female) COM1 RS232
• SCOM RS-422/485 : Multifunction Cable customized/optional on request
- Display (Industrial Standard Display - STD) based units with Multifunction Cable (VSD100692 series):
• SCOM RS-232 : 1 x 9P DSUB (female) COM1 RS232
• SCOM RS-422/485 : Multifunction Cable customized/optional on request
- Panel Computer (Maritime Multi Computer - MMC) based units are by factory default manufactured with:
• COM RS-232 : Internal Virtual COM 3 (No pin-out assignments needed, handled by OS/Driver)
Internal Virtual COM x (VCOM), where x is OS/conguration dependent. This Virtual COM port enables you to
send commands TO the same unit that you are sending FROM, which means there is no need to differentiate
between local control or remote control for communicating through physical ports such as RS-232, RS-485 /
RS-422 towards other units located externally.
Communication Interface
IND100084-11
5
Serial Communication (SCOM) Interface
Pin Assignments - Multifunction Cable Outputs
Pin Assignments - 9P Serial COM RS232
Pin 01 - CTRL(+) Buzzer Control (+) (+12V input for driving the buzzer)
Pin 02 - TXTransmit Data
Pin 03 - RXReceive Data
Pin 04 - DTRData Terminal Ready
Pin 05 - GNDGround
Pin 06 - DSRData Set Ready
Pin 07 - RTSRequest To Send
Pin 08 - CTSClear To Send
Pin 09 - CTRL (-) Buzzer Control (-) (Pull low to activate buzzer)
5 4 3 2 1
9 8 7 6
Connectors that are commonly available on the Multifunction Cable or customized cable.
Connectors are seen from users Point Of View (POV).
Pinout Assignments
For Display Units (MMD/STD w/Multifunction Cable - RS-232).
Pinout Assignments
Display Units (MMD/STD w/Multifunction Cable - RS-422 / RS-485, 4-wire and 2-wire).
1N/CN/C
2RxD- (Receive Data Negative)N/C
3TxD+ (Transmit Data Positive)TxD+ (Transmit Data Positive)
4N/CN/C
5GND (Ground)GND (Ground)
6N/CN/C
7RxD+ (Receive Data Positive)N/C
8TxD- (Transmit Data Negative)TxD- (Transmit Data Negative)
9N/CN/C
NOTE: N/C (Not Connected) pins may be internally connected. Do not connect these without consulting Hatteland Display.
Communication Interface
IND100084-11
6
Serial Communication (SCOM) Interface
ECOM
EVX
USART0
USART1
USART2
UART0
RS232
RS485
FWP
Block Diagram
Communication Interface
IND100084-11
7
Serial Communication (SCOM) Interface
Data Rates
The unit is congured to transmit and receive data at 9600 bits/second (Serial mode)
Data Format Serial Mode
Data shall be transmitted with no parity, 8 data bits, one start bit and one stop bit.
Message Format
The basic message format shall be as follows:
Byte #01234567, etc8 or 7+DATA=END
ATTNADDRCMD CMDCMDLENIHCHKDATAIDCHK
The minimum message size is 7 bytes (0x07). The maximum message size is 82 bytes (0x52), consistent with the
EN61162-1 standard. Colors will be used throughout this manual to indicate byte positions. Every byte sent are viewed
in this document as HEX values and are based on standard characters in the ASCII table (0 to 255) to send or receive
messages in a human readable input/output. No further decoding or decrypting functionality is needed or required.
Every command sent and received should always end with a 0x00 (null byte terminator).
ATTN
Attention (ATTN)
This single byte is used to identify a start of message. 3 values are possible:
ATTNDescription
0x07Command, also known as ASCII BELL
0x06Acknowledge, also known as ASCII ACK
0x15Negative Acknowledge, also known as ASCII NAK
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.
NOTE: A complete HEX, ASCII, BIN and Character table overview are available in the APPENDIX chapter.
ADDR
Address (ADDR)
This single byte is used to specify a particular unit to receive a Command and to identify the unit responding (ACK
or NAK) to a Command. All units will support the broadcast address. The factory default adress is 0x00, while in this
manual illustrated throughout as 0xFF.
The Address eld shall have the following values:
ADDRDescription
0xFFBroadcast - Addressed to all units
0x00 to 0x0FAddress of a specic unit, 0 to 15 (max 16 units)
Communication Interface
IND100084-12
8
Serial Communication (SCOM) Interface
CMD
Message Commands and Queries (CMD) Contents
The command can be one of the following values and consists always of 3 bytes in positions 2,3,4:
Byte 2 Byte 3 Byte 4 ASCIIDescriptionI/OUnit Type Page
0x420x520x54"BRT"User Brightness ControlWall11
0x420x5A0x5A"BZZ"Buzzer ControlWall11
0x450x540x43"ETC"Elapsed Time Counter QueryRall12
0x440x4C0x4E"DLN"Query available ECDIS packagesRxxD12
0x440x4C0x3F"DL?"Download ECDIS package table xRxxD13
0x440x530x54“DST”Display StateWxxD13
0x4D0x410x4E“MAN”Manufacturer ID CodeRxxD14
0x500x4F0x54"POT"Potentiometer Control Wall14
0x530x4E0x42"SNB"Serial Number QueryRall15
0x530x570x49"SWI"ECOM Software Version ID QueryRall15
0x530x570x4B"SWK" Keypad Software Version QueryRall15
0x540x4D0x50"TMP"Temperature Sensor QueryRxxD16
0x540x590x50"TYP"Type/Model Number QueryRall16
0x560x450x52"VER"Unit ID Model/Version Number Rall17
0x4D0x430x43"MCC" OSD Control Functionality (*1)
with key global commands:
"?" = Query OSD value
"R" = Reset OSD value
"r" = Reset OSD value
"+" = Increase OSD value
"-" = Decrease OSD value
R/WxxD18
Notes:
I/O = R=Read, W=Write.
Unit Type = xxD = MMD/STD, xxC = MMC units, all = MMD/STD/MMC
Page # = Page number in this manual where command is detailed.
(*1) “MCC" = command is not supported on Maritime Multi Computer (MMC) units, due to no OSD menu
available. The “MCC” command also features a Query “?” mode, “R” or “r” reset mode to factory default, increase +1 from current value “+” and decrease -1 from current value “-”. Details and
usage of these commands are available later in this manual.
(*2) "DL?/DLN" = Command not available on units manufactured before May 2009.
Communication Interface
IND100084-12
9
Serial Communication (SCOM) Interface
LEN
Data Length (LEN)
This single byte denes the length of DATA in the message in bytes. The maximum value for this eld is 74 bytes (0x4A
in HEX). The minimum value is 0 bytes (0x00 in HEX).
IHCHK
Inverse Header Checksum (IHCHK)
This single byte is a simple 8-bit checksum of the header data, message bytes 0 to 5 on which a bit-wise inversion has
been performed. The checksum shall be initialised to 0. The 8-bit sum (without carry) of bytes 0, 1, 2, 3, 4, 5 and 6 shall
be 0xFF (255 in value). If the unit receives a message with an incorrect checksum, the unit will reply with the attention
code set to NAK and no data eld. This does not apply to Broadcast messages in RS-485 mode, in which case there
will be no reply.
DATA
Data Field (DATA)
The single byte is the DATA eld which shall only be transmitted if LEN is greater than 0. This eld depends on the CMD
transmitted.
IDCHK
Inverse Data Checksum (IDCHK)
This single byte shall only be transmitted if LEN is greater than 0. This is a simple 8-bit checksum of the data eld,
message bytes 7 to 7+(LEN-1) on which a bit-wise inversion has been performed.
The checksum shall be initialised to 0. The 8-bit sum (without carry) of bytes 7 through 7+LEN inclusive shall be 0xFF.
The receiver will reply to any message that the checksum has failed with the attention code set to NAK.
This requirement does not reply to broadcast messages in RS-485 (for units that support it) mode, in which case there
will be no reply. Basically this byte is located at the very end of a received stream.
NOTE: A complete HEX, ASCII, BIN and Character table overview are available in the APPENDIX chapter.
Communication Interface
IND100084-12
10
Serial Communication (SCOM) Interface
“BRT” - User Brightness Control
This command is sent to the unit to command the backlight brightness control setting.The brightness value shall be sent
as one byte in the DATA eld. A setting of 0x00 will indicate off. A setting of 0xFF (255 in value) will indicate maximum
brightness. Intermediate values will control brightness over the range from minimum to maximum luminance.
LEN = one data byte.
After any power cycle the BRT will be set to 100%.
If the data checksum is valid and the brightness was set, the unit will reply to this command with an ACK attention code.
The DATA eld in the reply shall indicate the resulting brightness control setting. If an invalid checksum was received
and the message was not Broadcast and RS-485, the unit will reply with an NAK attention code. The DATA eld in the
reply will indicate the current brightness control setting.
Example:
If BRT is 100%, the user can adjust the brightness from 0-100%. If the BRT is set to 60%, the visual brightness is set to
60%. The user can adjust the brightness from 0-100% within the 60% set by BRT. If the user sets the potensiometer to
half, the visual brightness will be 30% (half of 60%). If BRT is set back to 100%, the visual brightness will be 50% (half
of 100%).
Command to set 60% Brightness:
0x070xFF0x420x520x540x010x100x990x66
Acknowledge was set to 60% Brightness:
0x060xFF0x420x520x540x010x110x990x66
Negative Acknowledge 40% Brightness:
0x150xFF0x420x520x540x010x020x660x99
“BZZ” - Buzzer Control
This command is sent to the unit to control buzzer on/off if there is a buzzer present. LEN = one data byte.
0x00
0xFF
If the data checksum is valid, the unit will reply to this command with an ACK attention code. The DATA eld will indicate
the buzzer state. If an invalid data checksum was received and the message was not broadcast and RS-485, the unit
will reply with a NAK attention code and the current control setting.
Example:
Command to set Buzzer Enable: 0xFF
Turn the buzzer off
Turn the buzzer on
0x070xFF0x420x5A0x5A0x010x020xFF0x00
Acknowledge Buzzer status was set to Enable: 0xFF
0x060xFF0x420x5A0x5A0x010x030xFF0x00
Communication Interface
IND100084-12
11
Loading...
+ 25 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.