Beijer Electronics SCOM Protocol User Manual

MAEN975, 2009-02
SCOM Protocol
Manual
English

Foreword

SCOM Protocol
Foreword
Some of the major extensions are:
• Ethernet support by encapsulating the SCOM protocol within UDP packets.
• Special purpose command set available with the new SCOM command “LAU”.
• Extended address field functionality, which enables monitor grouping, allowing a total count of 240 monitors in a network (15 groups, 16 monitors in each group).
© Beijer Electronics AB, MAEN975, 2009-02
All examples in the manual are intended solely to increase understanding of the software’s functionality and use. Beijer Electronics AB bears no responsibility if these examples are used in actual applications. Because of the large number of application areas for this software, users must acquire the appropriate knowl­edge to use the software properly for their specific applications. Persons responsible for the application must themselves ensure that each application is in compliance with all relevant requirements, standards and legisla­tion in respect to configuration and safety. Beijer Electronics AB assumes no responsibility for damages that may occur during installation or use of the software. Beijer Electronics AB hereby forbids all modification of the software.
Beijer Electronics, MAEN975
Contents
1 Interface Configuration 7
2 Ethernet Communication 8
UDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
WINS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Sample Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Message Format and Description 11
Contents
4 Monitor Addressing 13
5 Protocol Description and Timings 14
Conditions for Response Message . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6 Command Reference 17
6.1 BRT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Backlight Brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.2 MAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Manufacturer ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.3 VER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Unit ID and Model / Version Number . . . . . . . . . . . . . . . . . . . . . . 21
6.4 POT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Local Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.5 MCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Unit Control Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.6 MCC_BRIGHTNESS (0x81) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.7 MCC_CONTRAST (0x82) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.8 MCC_SCALINGMODE (0x8C). . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Scaling Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
6.9 MCC_GAMMAVALUE (0x9D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Gamma Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.10 MCC_COLOURTEMP (0xB3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Color Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Beijer Electronics, MAEN975 I
Contents
6.11 MCC_REDLEVEL (0xB4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Red Channel Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
6.12 MCC_GREENLEVEL (0xB5). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
Green Channel Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
6.13 MCC_BLUELEVEL (0xB6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
Blue Channel Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
6.14 TYP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
Unit Type and Model Number . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
6.15 ETC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
Elapsed Time Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
6.16 LAU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
Lauer Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
6.17 LAU_CONFIG_GETFWVERSION (0x0101) . . . . . . . . . . . . . . . . . .52
Firmware Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
6.18 LAU_CONFIG_GETHOSTNAME (0x0102) . . . . . . . . . . . . . . . . . .53
Host Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53
6.19 LAU_CONFIG_GETIFNAME (0x0103) . . . . . . . . . . . . . . . . . . . . . .54
Internal Network Interface Name . . . . . . . . . . . . . . . . . . . . . . . . . . .54
6.20 LAU_CONFIG_GETMACADR (0x0104) . . . . . . . . . . . . . . . . . . . . .55
MAC (Ethernet) Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
6.21 LAU_CONFIG_GETIPADR (0x0105). . . . . . . . . . . . . . . . . . . . . . . .56
Static IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
6.22 LAU_CONFIG_GETIPMASK (0x0106) . . . . . . . . . . . . . . . . . . . . . .57
Subnet Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
6.23 LAU_CONFIG_GETGWADR (0x0107) . . . . . . . . . . . . . . . . . . . . . .58
Gateway Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
6.24 LAU_CONFIG_GETDHCPMODE (0x0108). . . . . . . . . . . . . . . . . .59
DHCP Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
6.25 LAU_CONFIG_GETDHCPTIMEOUT (0x0109) . . . . . . . . . . . . . .60
DHCP Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
6.26 LAU_CONFIG_GETUDPRCVPORT (0x010A). . . . . . . . . . . . . . . .61
UDP Receive Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
6.27 LAU_CONFIG_GETUDPSNDPORT (0x010B). . . . . . . . . . . . . . . .62
UDP Send Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
6.28 LAU_CONFIG_GETMANUFACTURER (0x010C). . . . . . . . . . . . .63
Manufacturer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
6.29 LAU_CONFIG_GETDEVICENAME (0x010D) . . . . . . . . . . . . . . . .64
Device Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64
6.30 LAU_CONFIG_GETDILMODE (0x010E). . . . . . . . . . . . . . . . . . . .65
DIL Switch Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
6.31 LAU_CONFIG_GETDISPLAYADR (0x010F) . . . . . . . . . . . . . . . . .66
Monitor Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
II Beijer Electronics, MAEN975
Contents
6.32 LAU_CONFIG_GETCOMSERMODE (0x0110) . . . . . . . . . . . . . . 67
SCOM Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.33 LAU_CONFIG_GETCOMBAUD (0x0111) . . . . . . . . . . . . . . . . . . 69
SCOM Serial Interface Baudrate . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.34 LAU_CONFIG_GETC118BAUD (0x0112). . . . . . . . . . . . . . . . . . . 70
Internal Video Controller Serial Interface Baudrate . . . . . . . . . . . . . 70
6.35 LAU_CONFIG_GETPOTMODE (0x0113). . . . . . . . . . . . . . . . . . . 71
POT Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.36 LAU_CONFIG_GETECDISMODE (0x0114) . . . . . . . . . . . . . . . . . 72
ECDIS Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
6.37 LAU_CONFIG_GETECDISBACKLIGHT (0x0115). . . . . . . . . . . . 73
ECDIS Default Backlight Level . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
6.38 LAU_CONFIG_GETECDISCONTRAST (0x0116) . . . . . . . . . . . . 74
ECDIS Default Contrast Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6.39 LAU_CONFIG_GETECDISCOLOURTEMP (0x0117) . . . . . . . . . 75
ECDIS Default Color Temperature . . . . . . . . . . . . . . . . . . . . . . . . 75
6.40 LAU_CONFIG_GETECDISREDVALUE (0x0118). . . . . . . . . . . . . 76
ECDIS Default Red Channel Value . . . . . . . . . . . . . . . . . . . . . . . . 76
6.41 LAU_CONFIG_GETECDISGREENVALUE (0x0119) . . . . . . . . . . 77
ECDIS Default Green Channel Value . . . . . . . . . . . . . . . . . . . . . . 77
6.42 LAU_CONFIG_GETECDISBLUEVALUE (0x011A) . . . . . . . . . . . 78
ECDIS Default Blue Channel Value . . . . . . . . . . . . . . . . . . . . . . . . 78
6.43 LAU_CONFIG_GETECDISGAMMA (0x011B) . . . . . . . . . . . . . . . 79
ECDIS Default Gamma Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
6.44 LAU_CONFIG_GETREMOTECONTROL (0x011C) . . . . . . . . . . 80
Remote Control Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6.45 LAU_CONFIG_GETUSEBROADCAST (0x011D). . . . . . . . . . . . . 81
Remote Control Broadcast Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.46 LAU_CONFIG_GETADDRESSLIST (0x011E). . . . . . . . . . . . . . . . 82
Remote Control Address List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
6.47 LAU_CONFIG_GETANALOGTOBRT (0x011F). . . . . . . . . . . . . . 84
Analog to Brightness Routing Mode . . . . . . . . . . . . . . . . . . . . . . . . 84
6.48 LAU_CONFIG_GETLCDCONTROLDISABLE (0x0120) . . . . . . . 85
Video Controller Control Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
6.49 LAU_CONFIG_GETDINCONFIG (0x0121) . . . . . . . . . . . . . . . . . 86
Digital Input Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
6.50 LAU_CONFIG_GETBRTRANGEDELTAM (0x0122) . . . . . . . . . . 88
Backlight Level Down Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.51 LAU_CONFIG_GETBRTRANGEDELTAP (0x0123). . . . . . . . . . . 90
Backlight Level Up Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.52 LAU_CONFIG_GETSERIALNUMBER (0x0125). . . . . . . . . . . . . . 92
Serial Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Beijer Electronics, MAEN975 III
Contents
6.53 LAU_CONFIG_GETDISPLAYGROUP (0x0127). . . . . . . . . . . . . . .93
Monitor Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
6.54 LAU_CONTROL_ECDISMODE (0x0201) . . . . . . . . . . . . . . . . . . .94
ECDIS Mode Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
6.55 LAU_CONTROL_BUZZER (0x0202). . . . . . . . . . . . . . . . . . . . . . . .96
Buzzer Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
6.56 LAU_CONTROL_DIGITALOUT (0x0203) . . . . . . . . . . . . . . . . . . .98
Digital Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98
6.57 LAU_CONTROL_ANALOGTOBRT (0x0204) . . . . . . . . . . . . . . .100
Analog to Brightness Routing Control . . . . . . . . . . . . . . . . . . . . . .100
6.58 LAU_CONTROL_LCDCONTROLDISABLE(0x0205) . . . . . . . . .102
Video Controller Mode Control . . . . . . . . . . . . . . . . . . . . . . . . . . .102
6.59 LAU_CONTROL_DINCONFIG (0x0206). . . . . . . . . . . . . . . . . . .104
Digital Input Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
6.60 LAU_STATUS_IPADR (0x0301) . . . . . . . . . . . . . . . . . . . . . . . . . . .106
Current IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
6.61 LAU_STATUS_DISPLAYADR (0x0302) . . . . . . . . . . . . . . . . . . . . .107
Current Monitor Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
6.62 LAU_STATUS_SCOMSERMODE (0x0303). . . . . . . . . . . . . . . . . .108
Current SCOM Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . .108
6.63 LAU_STATUS_POTMODE (0x0304). . . . . . . . . . . . . . . . . . . . . . .110
Current POT Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
6.64 LAU_STATUS_ECDISMODE (0x0305) . . . . . . . . . . . . . . . . . . . . .111
Current ECDIS Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
6.65 LAU_STATUS_BUZZER (0x0306) . . . . . . . . . . . . . . . . . . . . . . . . .112
Current Buzzer State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
6.66 LAU_STATUS_BACKLIGHT (0x0307) . . . . . . . . . . . . . . . . . . . . .113
Current Backlight State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
6.67 LAU_STATUS_DIGITALOUT (0x0308) . . . . . . . . . . . . . . . . . . . .114
Current Digital Output Pin State . . . . . . . . . . . . . . . . . . . . . . . . . .114
6.68 LAU_STATUS_DIGITALIN (0x0309). . . . . . . . . . . . . . . . . . . . . . .116
Current Digital Input Pin State . . . . . . . . . . . . . . . . . . . . . . . . . . .116
6.69 LAU_STATUS_ANALOGIN (0x030A) . . . . . . . . . . . . . . . . . . . . . .117
Current Analog Input Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
6.70 LAU_STATUS_ANALOGTOBRT (0x030B). . . . . . . . . . . . . . . . . .118
Current Analog to Brightness Routing Mode . . . . . . . . . . . . . . . . .118
6.71 LAU_STATUS_LCDCONTROLDISABLE (0x030C). . . . . . . . . . .119
Current Video Controller Control State . . . . . . . . . . . . . . . . . . . . .119
6.72 LAU_STATUS_DINCONFIG (0x030D). . . . . . . . . . . . . . . . . . . . .120
Current Digital Input Configuration . . . . . . . . . . . . . . . . . . . . . . .120
6.73 LAU_STATUS_CFGWRITECOUNTER (0x030E). . . . . . . . . . . . .122
Configuration Write Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122
7 Sample Communication Application 125
IV Beijer Electronics, MAEN975
Interface Configuration

1 Interface Configuration

A command can be sent either using the serial interface (RS232 or RS485) or the Ethernet interface via UDP.
This is the default configuration for the two interfaces:
Interface type Default configuration
Serial (RS232 or RS485) 9600 bits/second, 8 data bits, 1 sta r t bit, 1 st op bit Ethernet UDP receive port 10000, UDP send port 10001
Although the Beijer Electronics MT230 Nautic Monitor supports serial port data transfer speed at different rates and configurable UDP ports for the Ethernet com­munication, the given default configuration should be used for compatibility issues.
Related information
Ethernet Communication
Beijer Electronics, MAEN975 7
Ethernet Communication

2 Ethernet Communication

In addition to serial communication via the built-in RS232- and RS485 interfaces, Beijer Electronics MT230 Nautic Monitor also supports Ethernet communication for remote controlling, device configuration and firmware update.
For a wide range of software support, the firmware includes standard network proto­cols such as TCP/IP, HTTP, UDP and WINS. The main communication channel uses UDP (User Datagram Protocol), which is a connectionless and simple protocol. Using broadcast addressing, Beijer Electronics MT230 Nautic Monitor can be ac­cessed within a network without complicated configuration, or even automatically detected with simple software support. Once connected to the device, detailed con­figuration data, such as IP address or subnet mask for TCP/IP communication, can be queried by using the special Lauer command set.
SCOM packets are encapsulated within UDP packets. For the UDP communica­tion, two configurable UDP ports are used to send and receive data.
The following network protocols are supported:
Protocol Description Configuration Default factory setting
UDP Connectionless
protocol used as the main protocol for communication.
Please refer to section UDP for details.
TCP/IP Supports high
level protocols, such as HTTP.
Please refer to section TCP/IP for details.
HTTP Provides HTML-
based configuration pages, exposed through the integrated web server.
Please refer to section HTTP for details.
WINS Allows using a
unique name (host name), mapped to an IP­address.
Please refer to section WINS for det a il s.
The UDP ports can be configured using the built-in HTML configuration pages.
Current UDP settings can be queried using the Lauer command set.
A TCP/IP address and the corresponding subnet mask can be assigned dynamically or statically.
Static and current TCP/IP settings can be querie d using the Lauer command set.
No separate configuration can be made, except for password configuration, since the protocol is stacked above TCP/IP.
No configuration can be made, except for the host name that can be changed.
The host name can be queried using the Lauer command set.
UDP receive port: 10000
UDP send port: 10001
Static IP-address:
192.168.0.1 Static subnet mask:
255.255.255.0
HTTP port: 80
Password: admin
Host name: LAU+[last two bytes of the MAC-address as ASCII coded hexadecimal value]
8 Beijer El ectr onics, MAEN97 5
Ethernet Communication
UDP
UDP (User Datagram Protocol) is a connectionless protocol.
SCOM messages are encapsulated within UDP, which allows sending and receiving them via Ethernet.
Connectionless means that no individual destination address is specified. Instead, UDP packets are sent to the predefined broadcast address 255.255.255.255, at which any Beijer Electronics MT230 Nautic Monitor listens. Individual addressing is done in the upper protocol layers, such as SCOM and TCP/IP.
Po rts Used to Send and Receive Data
Two ports are used to send and receive data:
•UDP receive port
•UDP send port
From the Beijer Electronics MT230 Nautic Monitor perspective, commands are re­ceived from the receive port and responses are sent to the send port. Thus, a remote controller software must send commands to the receive port and receive responses from the send port. If a Beijer Electronics MT230 Nautic Monitor acts as a remote controller, it also sends commands to the receive port, because remote controlled monitors always listen to this port to get commands.

TCP/IP

In contrast to UDP, TCP/IP (Transmission Control Protocol/Internet Protocol) uses a network address assigned to each participant in a network. Beijer Electronics MT230 Nautic Monitor implements TCP/IP to support high level protocols, such as HTTP.
A TCP/IP address and the corresponding subnet mask can be assigned dynamically or statically.
Dynamic Addressing
Dynamic TCP/IP addressing is made using an by an external DHCP-server.
Static Addressing
Static TCP/IP addressing is made using the built-in HTML configuration pages.

HTTP

Beijer Electronics MT230 Nautic Monitor uses HTTP (Hypertext Transfer Proto­col) to provide HTML-based configuration pages. These pages are exposed through the integrated web server.
There is no separate configuration option available, since the protocol is stacked above TCP/IP.
The only option that can be configured is a password, which can be used to protect some configuration pages.
Beijer Electronics, MAEN975 9
Ethernet Communication

WINS

WINS (Windows Internet Naming Service) allows a Beijer Electronics MT230 Nau­tic Monitor to register a unique name (host name) and map it to its IP-address. Once registered, the Beijer Electronics MT230 Nautic Monitor can be accessed using this configurable name, without the knowing its IP-address.
Definition of Host Name
By default, the host name of a Beijer Electronics MT230 Nautic Monitor is defined using the last two bytes of its MAC-address, converting it to its hexadecimal ASCII representation and finally succeeding the three characters “LAU”.
Example
A Beijer Electronics MT230 Nautic Monitor with the MAC-address 00-30-AC-10­17-1A has the host name “LAU171A”, if it is not changed by the user.
Related information
Command Reference

Sample Application

The sample communication application chapter shows the full source code of a sim­ple command line application, developed in plain ANSI-C, including necessary pro­gram snippets to communicate with a Beijer Electronics MT230 Nautic Monitor via Ethernet. The sample code can be ported to any operating system supporting ANSI­C with none or little development effort.
Related information
Sample Communication Application
10 Beijer Electronics, MAEN975
Message Format and Description

3 Message Format and Description

A SCOM message is a stream of bytes, containing the destination, type of message and the corresponding data, if available. The complete stream is protected by two checksums. Data transfer is initiated by sending a command message. Depending on the command, a response message may be sent back. Some commands may contain sub-commands and data, which are sent in the data field of the message.
SCOM Message Basic Format
Byte Field
01234567...7 + [LEN]
ATN ADR CMD LEN ICHKH DATA ICHKD
Each field of the message is described in the following table:
Byte Field Value Size Description
0ATN
1ADR
2 34CMD
0x07 (BELL):
Command
0x06 (ACK):
Acknowledge
0x15 (NAK):
Negative Acknowledge
0x00 to 0xEF:
Monitor group/ address
0xFF:
Broadcast address 0xF0 to 0xFE:
Unused address range
0x42 0x52 0x54:
“BRT”
0x4D 0x41 0x4E:
“MAN”
0x56 0x45 0x52:
“VER”
0x50 0x4F 0x54:
“POT”
0x4D 0x43 0x43:
“MCC”
0x54 0x59 0x50:
“TYP”
0x45 0x54 0x43:
“ETC”
0x4C 0x41 0x55:
“LAU”
1 byte
1 byte
3 bytes
Identifies the start of a new me ssage. Th e type of message is given by its value. Data transfer is always initiated by using the Command message type. Depending on the command, a response message of type Acknowledge or Negative Acknowledge may be sent back by the destination.
Defines the destination of a command message or the source of the response message. A unique monitor group/address can be assigned to each monitor in a network, and then individually addressed using this field. By default, all monitors also suppor t th e Br o adcast address an d can be controlled simultaneously. In this case, no response messages are sent.
Contains the main command supported in the current firmware version.
Please refer to section Command
Reference for a description of commands
and sub-co mmands.
Beijer Electronics, MAEN975 11
Message Format and Description
Byte Field Value Size Description
5LEN
6ICHKH... 1 byte
7
DATA ...
...
7 + [LEN] ICHKD ... 1 byte
0 to 74 (0x00 to 0x4A)
1 byte
0 to 74 bytes
82 bytes
The size of the DATA-field in bytes.
To protect the message header (bytes 0 to 5), a simple 8-bit checksum is calculated as follows:
Calculate the sum of bytes 0 to 5.
1. Reduce the sum width to 8 bits
2. (AND 0xFF).
3.
Invert all bits. The result is ICHKH.
The checksum is verified as follows:
Calculate the sum of bytes 0 to 6.
1. Reduce the sum width to 8 bits (AND
2. 0xFF).
3.
The result should be 0xFF.
Optional field. If the LEN-field is not 0, this f ield contains sub-commands and/or data for the specified command. If the LEN-field is 0, no data is available.
Optional field. On l y sent if data is available (LEN 0). T o protect the data (bytes 7 to 7+(LEN-1)), a simple 8-bit checksum is calculated as follows:
1.
Calculate the sum of bytes 7 to 7+(LEN-1)
2.
Reduce the sum width to 8 bits (AND 0xFF)
3.
Invert all bits. The result is ICHKD.
The checksum is verified as follows:
1.
Calculate the sum of bytes 7 to 7+LEN
2.
Reduce the sum width to 8 bits (AND 0xFF)
3.
The result should be 0xFF
As shown in the table, the DATA field is optional, if the used command does not re- quire any data. In this case the value of LEN is 0 and the minimum size of a SCOM message 7 bytes (bytes 0 to 6), because field ICHKD is not sent.
If a command requires data to be sent, the maximum size of a SCOM message is 82 bytes. This means, that the last field ICHKD is located at the offset of the first data byte plus the value of the LEN field.
The maximum value of the LEN field is 74, which is calculated as:
[LEN] = max. message size - (min. message size + ICHKD size)
or
82 - (7 + 1) = 74
12 Beijer Electronics, MAEN975
Monitor Addressing

4 Monitor Addressing

By default, a Beijer Electronics MT230 Nautic Monitor supports the standard SCOM addressing scheme, which allows a total count of 16 monitors within a net­work. The address of a monitor is set with four DIP switches. If a SCOM command is sent to a monitor, the ADR field must contain either the broadcast address 0xFF, or the address of the destination device set by the DIP switches. To eliminate this lim­it, a new addressing scheme is introduced first with Beijer Electronics MT230 Nautic Monitors.
According to the previous chapter, the width of the ADR field is 1 byte (or 8 bits). The standard SCOM addressing scheme uses only the lower 4 bits of this field (only in case of the broadcast address, all bits are used), allowing a maximum of 16 address­es.
Related information
Message Format and Descri pt i on
The new addressing scheme, implemented in Beijer Electronics MT230 Nautic Monitor, uses also the 4 upper bits. To distinguish between the standard and new ad­dressing scheme, these bits are called “group bits” or simply “group”. Based on this definition, the following table shows field ADR in more detail:
ADR bits 7...4 ADR bits 3...0
Group (0 … 14)
Address (0 … 15)
As shown in the table, a group between 0 and 14 can be specified. Group 15 is not supported, to avoid address collision with the broadcast address. Thus, together with the address field, a total count of 15 x 16 = 240 monitors can be connected to one network.
Monitor grouping is activated only, if the monitor is set up to use the software con­figured address, instead of the hardware address specified by the DIP switches. If the monitor uses the hardware address, the group address is automatically set to 0, re­gardless of the group configuration.
Beijer Electronics MT230 Nautic Monitor addresses are always given in a dotted no­tation as “group.address”. This means, if a monitor belongs to group 7 and its address is 3, the resulting address will be 7.3, which is 115 (0x73). In the standard mode (i.e. DIP switch address is used), the monitor address will be 0.3 (or simply 3) for the giv­en example, because the group bits are set to 0.
If a Beijer Electronics MT230 Nautic Monitor is configured as remote controller, it addresses always monitors within its own group. By definition, a Beijer Electronics MT230 Nautic Monitor cannot remote control monitors in another group.
Beijer Electronics, MAEN975 13
Protocol Description and Timings

5 Protocol Description and Timings

The protocol used for transferring SCOM messages and receiving response messages is optimized for easy software implementation. Regardless of the type of interface, a connected monitor is always passive and listening for a command to be received by any available communication interface. A monitor never sends SCOM messages by itself, unless it is configured as a remote controller.
If a monitor receives a SCOM message from any interface, it verifies the message and checks the address field ADR. In case of an address match between the received ad­dress and the monitor address, the command is processed.
If the broadcast address 0xFF is received, a command is always processed by any monitor in the network. Depending on the received address and the type of the in­terface, a response message (ACK or NAK) might be sent back to the interface, from which the command was received.
If a monitor is individually addressed and a serial port (RS232 or RS485) is used, the next command shall not be sent until a delay time called Inter-message gap. The Inter-message gap depends on the baud rate and is calculated as shown below:
5 x 10
Ti =
b
Ti: Inter-message gap [s] b: Baud rate [bits/second]
Example
Inter-message gap at 9600 baud: Ti = 5 x 10 / 9600 0.0052 s = 5.2 ms
14 Beijer Electronics, MAEN975
Protocol Description and Timings

Conditions for Response Message

The conditions for a response message generated by the monitor are described below:
Interface Address condition Co mmand status Response
RS232 Address does not match
monitor address Address matches monitor
address Address is Broadcast
address (0xFF)
RS485 Address does not match
monitor address Address matches monitor
address Address is Broadcast
address (0xFF)
Ethernet Address does not match
monitor address Address matches monitor
address Address is Broadcast
address (0xFF)
Delayed Response
not EXECUTED No response not EXECUTED No response if COMPLETED ACK if FAILED NAK if COMPLETED ACK if FAILED NAK not EXECUTED No response not EXECUTED No response if COMPLETED ACK if FAILED NAK if COMPLETED Delayed ACK if FAILED No response not EXECUTED No response not EXECUTED No response if COMPLETED ACK if FAILED NAK if COMPLETED No response if FAILED No response
If a monitor receives a SCOM message with a broadcast address from the RS485 in­terface and the command is completed, the generated response message is sent after a delay time. This is required, because many monitors can be attached to the RS485 bus, but only one monitor can claim the line for its communication. The delay guar­antees that each response message is sent one after one, even if all monitors have re­ceived the broadcast message and processed it at the same time, avoiding a collision on the RS485 bus.
The length of the delay time depends on the monitor address and maximum length of a response message, and is calculated according to the following formula:
(2.5 + Lr) x 10 x N
Te =
b Te: Broadcast command response [s] Lr: Maximum length of response message N: Monitor address + 1 b: Baud rate [bits/second]
Beijer Electronics, MAEN975 15
Protocol Description and Timings
The Lr value depends on the command, for which the response message is generated. Detailed information and the “Maximum Lr value” for each response message can be found in Command Reference chapter.
Note:
The given “Maximum Lr value” is specified for a valid command. If an invalid command with a data field exceeding the specification is sent, the Lr value will grow accordingly.
Related information
Command Reference
Example
Broadcast command response for command BRT, sent by monitor with address 7 at 9600 baud: Te = (2.5 + 9) x 10 x 8 / 9600 0.0958 s 95.8 ms
The delay time Te is inserted by the monitor automatically, only if the RS485 inter­face is selected for the communication. If the RS232 interface is used, the response message is generated and sent as fast as possible. This is true also for the Ethernet communication, but the time when the response message is received depends actually on the network load and speed.
The RS232 communication does not require a delay time due to the point-to-point communication, where only two devices can be attached to the line (i.e. host and monitor or monitor and monitor). Ethernet communication is similar to the RS485 communication, where many monitors can be attached to the same line. However, in contrast to the RS485 interface, a collision is handled by the Ethernet architecture and software, so there is no need for anti-collision support within the monitor.
16 Beijer Electronics, MAEN975
Command Reference

6 Command Reference

The Lauer SCOM protocol exposes many commands for remote control of a Beijer Electronics MT230 Nautic Monitor by a dedicated software. It supports all standard SCOM commands, as well as the new Lauer command set for special purpose func­tions.
This chapter describes each SCOM command and sub-commands for the following currently available monitor: Beijer Electronics MT230 Nautic Monitor
Beijer Electronics, MAEN975 17
Command Reference

6.1 BRT

Backlight Brightness

Sets the backlight level to the given value. This command affects only the brightness of the backlight lamp or LED array, not the brightness value of the video controller.
Supported since Firmware Version
MT230 Nautic Monitor: 1.0
Command Stream
0 1 2 3 4 5 6 7 8
0x07 ADR 0x42 0x52 0x54 0x01 ICHKH Backlight level ICHKD
Backlight level
Value: 0: dark … 255: bright Type: Byte Length: 1 Descript i on: New backlight level
Response Message (Ack n o wledge)
0 1 2 3 4 5 6 7 8
0x06 ADR
Backlight level
0x42 0x52 0x54 0x01 ICHKH Backlight level ICHKD
Value: 0: dark … 255: bright Type: Byte Length: 1 Descript i on: Cur r ent backlight level
Response Message (Negati v e Ack n owl ed g e)
0 1 2 3 4 5 6 7 8
0x15 ADR
Backlight level
0x42 0x52 0x54 0x01 ICHKH Backlight level ICHKD
Value: 0: dark … 255: bright Type: Byte Length: 1 Description: Last backlight level
18 Beijer Electronics, MAEN975
Command Reference
Maximum Lr for this Command
9
Example 1
Set the backlight level of monitor at address 0.7 (group 0, address 7) to 130 (0x82):
0 1 2 3 4 5 6 7 8
0x07 0x07
0x42 0x52 0x54 0x01 0x08 0x82 0x7D
Monitor at address 0.7 (group 0, address 7) has acknowledged the new backlight level 130 (0x82):
0 1 2 3 4 5 6 7 8
0x06 0x07
0x42 0x52 0x54 0x01 0x09 0x82 0x7D
Example 2
Send an invalid “BRT” command to the monitor at address 0.7 (group 0, address 7). The command has two data bytes, but “BRT” accepts only one byte:
0 1 2 3 4 5 6 7...8 9
0x07 0x07
0x42 0x52 0x54 0x02 0x07 0xFF 0xFF 0x01
Monitor at address 0.7 (group 0, address 7) has not accepted the command. Instead, it sent a negative acknowledge with the current backlight level 128 (0x80). The length of the response message exceeds the specified value 9, because of the invalid data field length:
0 1 2 3 4 5 6 7...8 9
0x15 0x07
0x42 0x52 0x54 0x02 0xF9 0x80 0x00 0x7F
Beijer Electronics, MAEN975 19
Command Reference

6.2 MAN

Manufacturer ID

Requests the manufacturer ID from the monitor. The manufacturer ID is a short, max. 7 character ASCII-string containing the manufacturer specific code. For monitors manufactured by Beijer Electronics, the returned code is always “LAU”.
Supported since Firmware Version
MT230 Nautic Monitor: 1.0
Command Stream
0 1 2 3 4 5 6
0x07 ADR
0x4D 0x41 0x4E 0x00 ICHKH
(This command has no data)
Response Message (Ack n o wledge)
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x06 ADR
Manufacturer ID
0x4D 0x41 0x4E LEN ICHKH Manufacturer ID ICHKD
Value: ASCII character s Type: String Length: 0...7 Description: ASCII-string containing the manufacturer ID
Response Message (Negati v e Ack n owl ed g e)
Under normal operation conditions, a device never sends a negative acknowledge in response to this command.
Maximum Lr for this Command
15
Example
Query the manufacturer ID of the monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6
0x07 0x07 0x4D 0x41 0x4E 0x00 0x15
The monitor at address 0.7 (group 0, address 7) has returned “0x4C 0x41 0x55”, which represents the ASCII-string “LAU”, indicating that the monitor is manufac­tured by Elektronik-Systeme Lauer GmbH & Co. KG:
0 1 2 3 4 5 6 7...9 10
0x06 0x07
20 Beijer Electronics, MAEN975
0x4D 0x41 0x4E 0x03 0x13 0x4C 0x41 0x55 0x1D
Command Reference

6.3 VER

Unit ID and Model / Version Number

Requests the preassigned unit ID and model code, and the version of the serial communications interface software. For compatibility reasons, this code is always static and does not return information specific to Beijer Electronics Nautic Monitors. To get device informations specific to Beijer Electronics Nautic Monitors, such as firmware version etc., use the Lauer Extension command “LAU”.
Supported since Firmware Version
MT230 Nautic Monitor: 1.0
Command Stream
0 1 2 3 4 5 6
0x07 ADR 0x56 0x45 0x52 0x00 ICHKH
(This command has no data)
Response Message (Acknowledge)
0 1 2 3 4 5 6 7...9 10
0x06 ADR
Unit ID / Version
0x56 0x45 0x52 0x03 ICHKH Unit ID / Version ICHKD
Value: 0…255 each byte Type: Byte array Length: 3 Description: Static unit ID, model and version number
Response Message (Negative Acknowledge)
Under normal operation conditions, a device never sends a negative acknowledge in response to this command.
Maximum Lr for this Command
11
Example
Query the unit ID, model and version number of the monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6
0x07 0x07 0x56 0x45 0x52 0x00 0x04
The monitor at address 0.7 (group 0, address 7) has returned “0x01 0x01 0x00”, which indicates model 1, version 1.0:
0 1 2 3 4 5 6 7...9 10
0x06 0x07 0x56 0x45 0x52 0x03 0x02 0x01 0x01 0x00 0xFD
Beijer Electronics, MAEN975 21
Command Reference

6.4 POT

Local Control

Enables or disables the local backlight level control. If the local backlight control is enabled, the backlight level can be changed using the front panel buttons and by re­mote control (serial or Ethernet interface, analog or digital input). If the local back­light control is disabled, the backlight level cannot be changed using the front panel buttons. It can be still changed by any remote control option.
Supported since Firmware Version
MT230 Nautic Monitor: 1.0
Command Stream
0 1 2 3 4 5 6 7 8
0x07 ADR 0x50 0x4F 0x54 0x01 ICHKH Local control ICHKD
Local control
Value: 0x00: Disable loca l control 0xFF: Enable local control Type: Byte Length: 1 Description: New local control configuration
Response Message (Ack n o wledge)
0 1 2 3 4 5 6 7 8
0x06 ADR
Local control
0x50 0x4F 0x54 0x01 ICHKH Local control ICHKD
Value: 0x00: Local control disabled 0xFF: Local control enabled Type: Byte Length: 1 Description: Current local control configuration
Response Message (Negati v e Ack n owl ed g e)
0 1 2 3 4 5 6 7 8
0x15 ADR
Local control
22 Beijer Electronics, MAEN975
0x50 0x4F 0x54 0x01 ICHKH Local control ICHKD
Value: 0x00: Local control disabled 0xFF: Local control enabled Type: Byte Length: 1 Description: Last local control configuration
Command Reference
Maximum Lr for this Command
9
Example 1
Disable the local control of monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6 7 8
0x07 0x07
0x50 0x4F 0x54 0x01 0xFD 0x00 0xFF
Monitor at address 0.7 (group 0, address 7) has acknowledged, that the local control is disabled:
0 1 2 3 4 5 6 7 8
0x06 0x07
0x50 0x4F 0x54 0x01 0xFE 0x00 0xFF
Example 2
Send an invalid “POT” command to the monitor at address 0.7 (group 0, address 7). The command uses an invalid value 0x90 for “Local control”:
0 1 2 3 4 5 6 7 8
0x07 0x07
0x50 0x4F 0x54 0x01 0xFD 0x90 0x6F
Monitor at address 0.7 (group 0, address 7) has not accepted the command. Instead, it sent a negative acknowledge with the current local control mode 255 (0xFF):
0 1 2 3 4 5 6 7 8
0x15 0x07
0x50 0x4F 0x54 0x01 0xEF 0xFF 0x00
Beijer Electronics, MAEN975 23
Command Reference

6.5 MCC

Unit Control Command

This command is used for remote configuration of the video controller within the monitor. The video controller is an independent device, which controls the LCD panel. Because each monitor model can be equipped with different kind of LCD panel (size, resolution, type etc.), the used video controller can be also different from model to model.
The MCC command is a container for video controller specific commands. These so called sub-commands and their parameters, if available, are encapsulated within the DATA field of the command stream. The base command stream is always the same on each monitor model, while the specific video controller commands and parame­ters are hardware dependant and may not be supported by any model.
A MCC sub-command may specify an operation type as its parameter, which actually indicates what to do. An operation type is an optional parameter. Generally, the fol­lowing operation types are available:
Operation type Parameter value Description
ABSOLUTE An ASCII-encoded
hexadecimal value
INC “+” Increments the current value of the selected
DEC “-” Decrements the current value of the selected
RESET “r” or “R” Resets the value of the selected video controller
QUER Y “?” Queries the current value of the selected video
Sets the selected video controller setting to the given value.
video controller setting.
video controller setting.
setting to an internally predefined value.
controller setting.
If an absolute value is specified as parameter, it is always encoded as an hexadecimal ASCII-string. This applies also to the returned response messages, whenever a value is available. The returned response message contains always the sub-command and its parameter, which was sent with the command stream. Additional data is simply appended by the monitor after the sub-command and parameter.
Thus, for any MCC sub-command, the following command and response streams are generally common:
Command Stream
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x07 ADR
SCMD / Param
24 Beijer Electronics, MAEN975
0x4D 0x43 0x43 LEN ICHKH SCMD Param ICHKD
Video controller specific sub-command and parameter(s ), if av aila ble
Command Reference
Response Message (Acknowledge)
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x06 ADR 0x4D 0x43 0x43 LEN ICHKH SCMD Param Ret ICHKD
SCMD / Param
Video controller specific sub-command and parameter(s), sent with the command stream
Ret
Data returned by the monitor, i.e. current value of the selected video controller setting
Response Message (Negative Acknowledge)
Under normal operation conditions, a device never sends a negative acknowledge in response to this command.
MCC Sub-commands
All supported MCC sub-commands are described in the following sections.
Beijer Electronics, MAEN975 25
Command Reference

6.6 MCC_BRIGHTNESS (0x81)

Brightness

Adjusts or queries the brightness value of the video controller. This command affects only the brightness of the video controller, not the brightness of the backlight lamp or LED array.
Supported since Firmware Version
MT230 Nautic Monitor: 1.0
Command Stream
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x07 ADR
Param: ABSOLUTE
Value: “00”: dark … “FF”: bright Type: Two-digit ASCII-encoded hexadecimal number Length: 2 Description: New brightness level
Param: INC
V alue: “+” (0x2B) Type: ASCII character Length: 1 Description: Increment the current brightness value
Param: DEC
Value: -” (0x2D) Type: ASCII character Length: 1 Description: Decrement the current brightness value
Param: RESET
Value: “R” or “r” (0x52 or 0x72) Type: ASCII character Length: 1 Description: Reset the brightness to an internally predefined value
Param: QUERY
Value: ?” (0x3 F) Type: ASCII character Length: 1 Description: Query the current brightness value
0x4D 0x43 0x43 LEN ICHKH 0x81 Param ICHKD
26 Beijer Electronics, MAEN975
Command Reference
Response Message (Acknowledge)
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x06 ADR 0x4D 0x43 0x43 LEN ICHKH 0x81 Param Ret ICHKD
Ret
Value: “00”: dark … “FF”: bright Type: Two-digit ASCII-encoded hexadecimal number Length: 2 Description: Current brightness value
Maximum Lr for this Command
13
Example 1
Set the brightness level of monitor at address 0.7 (group 0, address 7) to 200 (the hexadecimal value of 200 is 0xC8, which is represented in ASCII as “C8” and split into two ASCII codes as 0x43 0x38):
0 1 2 3 4 5 6 7...9 10
0x07 0x07
0x4D 0x43 0x43 0x03 0x1B 0x81 0x43 0x38 0x03
Monitor at address 0.7 (group 0, address 7) has acknowledged the new brightness lev­el 130 (0x82):
0 1 2 3 4 5 6 7...11 12
0x06 0x07
0x4D 0x43 0x43 0x05 0x1A 0x81 0x43 0x38 0x43 0x38 0x7D
Example 2
Query the current brightness level of monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6 7...8 9
0x07 0x07
0x4D 0x43 0x43 0x02 0x1C 0x81 0x3F 0x3F
Monitor at address 0.7 (group 0, address 7) has returned the current brightness level 200 (0xC8):
0 1 2 3 4 5 6 7...10 11
0x06 0x07
0x4D 0x43 0x43 0x04 0x1B 0x81 0x3F 0x43 0x38 0xC4
Beijer Electronics, MAEN975 27
Command Reference
Example 3
Increment the current brightness level of monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6 7...8 9
0x07 0x07 0x4D 0x43 0x43 0x02 0x1C 0x81 0x2B 0x53
Monitor at address 0.7 (group 0, address 7) has returned the new brightness level 201 (0xC9):
0 1 2 3 4 5 6 7...10 11
0x06 0x07 0x4D 0x43 0x43 0x04 0x1B 0x81 0x2B 0x43 0x39 0xD7
Example 4
Reset the brightness level of monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6 7...8 9
0x07 0x07
0x4D 0x43 0x43 0x02 0x1C 0x81 0x52 0x2C
Monitor at address 0.7 (group 0, address 7) has returned the default brightness level 128 (0x80):
0 1 2 3 4 5 6 7...10 11
0x06 0x07
0x4D 0x43 0x43 0x04 0x1B 0x81 0x82 0x38 0x30 0xC4
28 Beijer Electronics, MAEN975
Command Reference

6.7 MCC_CONTRAST (0x82)

Contrast

Adjusts or queries the contrast value of the video controller.
Supported since Firmware Version
MT230 Nautic Monitor: 1.0
Command Stream
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x07 ADR
Ext:
Param: ABSOLUTE
Param: INC
Param: DEC
Param: RESET
Param: QUERY
0x4D 0x43 0x43 LEN ICHKH 0x82 Ext Ret ICHKD
Value: A” or “a” (0x41 or 0x61) Type: ASCII character Length: 1 Description: Command extension.
Value: “00”: low … “FF”: high Type: Two-digit ASCII-encoded hexadecimal number Length: 2 Description: New contrast value
Value: “+” (0x2B) Type: ASCII character Length: 1 Description: Increment the current contrast value
Value: “-” (0x2D) Type: ASCII character Length: 1 Description: Decrement the current contrast value
Value: “R” or “r” (0x52 or 0x72) Type: ASCII character Length: 1 Descripti o n: Reset the contr a st to an internally pr edefined val ue
Value: ?” (0x3F) Type: ASCII character Length: 1 Description: Query the current contrast value
This character must be always sen t as part of t h e sub ­command.
Beijer Electronics, MAEN975 29
Command Reference
Response Message (Ack n o wledge)
0 1 2 3 4 5 6 7...7+[LEN]-1 7+[LEN]
0x06 ADR 0x4D 0x43 0x43 LEN ICHKH 0x82 Ext Param Ret ICHKD
Ret
Value: “00”: low … “FF”: high Type: Two-digit ASCII-encoded hexadecimal number Length: 2 Description: Current contrast value
Maximum Lr for this Command
14
Example 1
Set the contrast level of monitor at address 0.7 (group 0, address 7) to 150 (the hexa­decimal value of 150 is 0x96, which is represented in ASCII as “96” and split into two ASCII codes as 0x35 0x41):
0 1 2 3 4 5 6 7...10 11
0x07 0x07
0x4D 0x43 0x43 0x04 0x1A 0x82 0x41 0x39 0x36 0xCD
Monitor at address 0.7 (group 0, address 7) has acknowledged the new contrast level 100 (0x64):
0 1 2 3 4 5 6 7...12 13
0x06 0x07
0x4D 0x43 0x43 0x06 0x19 0x82 0x41 0x39 0x36 0x39 0x36 0x5E
Example 2
Query the current contrast level of monitor at address 0.7 (group 0, address 7):
0 1 2 3 4 5 6 7...9 10
0x07 0x07
0x4D 0x43 0x43 0x03 0x1B 0x82 0x41 0x3F 0xFD
Monitor at address 0.7 (group 0, address 7) has returned the current contrast level 197 (0xC5):
0 1 2 3 4 5 6 7...11 12
0x06 0x07
0x4D 0x43 0x43 0x05 0x1A 0x82 0x41 0x3F 0x43 0x35 0x85
30 Beijer Electronics, MAEN975
Loading...
+ 101 hidden pages