Commands To and From the MKP
0x10 - Connection
During start-up and during changes to the IP Link, this message is sent automatically.
The message is sent over the serial interface, even if the UART has not been enabled (0x23, byte 15 bit 6). It is also sent over Ethernet using the broadcast address (i.e., 192.168.1.255), if an IP Link has been established.
During power down the MKP will attempt to send this message before the power is lost.
The MAC address is included to be able to identify the sending unit in a multi-unit network.
To send a Connection command to the MKP, send ONLY the 2 first bytes. The MKP will respond with the full message.
Table 5. 0x10 - To/From MKPByte#
Value
Description
1
0xFF
Start Byte (Note 1)
2
0x10
Connection (Note 1)
3
0 (LSB)
IP Link Available
1
simMKP Starting (See Note 1)
2
simMKP Powering Down (See Note 1)
3
4
5
6
7 (MSB)
4
(See Note 2)
IPAddress 1(111.222.333.444)
5
IPAddress 2
6
IPAddress 3
7
IPAddress 4
8
Port (MSB)
9
Port (LSB)
10
MACAddress 0(00 : 11 : 22 : 33 : 44 : 55)
11
MACAddress 1
12
MACAddress 2
13
MACAddress 3
14
MACAddress 4
15
MACAddress 5
Note
1) Only send the two first bytes to trigger a MKP response.
Note
2) This is the IP Address and port used by the MKP.
0x11 - EEPROM Info
This message is sent in response to a client’s Query EEPROM Info command.
This message contains the EEPROM configuration information, including IP address (zeros in all octets indicates the simMKP will acquire an address through DHCP), port (all zeros indicate the simMKP will use the default port), MAC address, and transmit/display options.
See 0x23 – Set Transmit Mode for explanations of the individual fields.
Table 6. 0x11 - FROM MKP - Response From 0x20, 0x21, 0x22, 0x23Byte#
Value
Description
1
0xFF
Start Byte
2
0x11
EEPROM Info
3
IPAddress 1(111.222.333.444)
4
IPAddress 2
5
IPAddress 3
6
IPAddress 4
7
Port (MSB)
8
Port (LSB)
9
MACAddress 0(00 : 11 : 22 : 33 : 44 : 55)
10
MACAddress 1
11
MACAddress 2
12
MACAddress 3
13
MACAddress 4
14
MACAddress 5
15
0 (LSB)
Enable Real-time Reporting
1
Enable Periodic Reporting
2
3
4
Enable Real-time Broadcast
5
Enable Periodic Broadcast
6
Enable UART reporting
7 (MSB)
16
0 (LSB)
Report Button/Switch State (0x14)
1
Report Model State (0x18)
2
Report Rear Input (0x1A)
3
Report Rear Output (0x1E)
4
Report ARINC (0x1F)
5
6
7 (MSB)
17
(See Note 1)
Reporting IP Address 1 (111.222.333.444)
18
IP Address 2
19
IP Address 3
20
IP Address 4
Note
1) Real-time and Periodic reports are sent to this address.
0x14 - Switch State
This message is sent in response to a client’s Request Status command.
Table 7. 0x14 - FROM MKP - Response From 0x24Byte#
Value
Description
1
0xFF
Start Byte
2
0x14
Switch Status
3
0(LSB)
SYSPressed
1
CDUPressed
2
INFOPressed
3
CHKLPressed
4
COMMPressed
5
NDPressed
6
1 Pressed
7(MSB)
4
0(LSB)
2Pressed
1
3Pressed
2
4Pressed
3
5Pressed
4
6 Pressed
5
7 Pressed
6
8Pressed
7(MSB)
5
0(LSB)
9 Pressed
1
DOTPressed (.)
2
0Pressed
3
PMPressed (+/-)
4
ENTER Pressed
5
A Pressed
6
BPressed
7(MSB)
6
0(LSB)
CPressed
1
DPressed
2
EPressed
3
FPressed
4
G Pressed
5
H Pressed
6
I Pressed
7(MSB)
7
0(LSB)
JPressed
1
KPressed
2
LPressed
3
MPressed
4
N Pressed
5
O Pressed
6
PPressed
7(MSB)
8
0(LSB)
QPressed
1
RPressed
2
SPressed
3
TPressed
4
U Pressed
5
V Pressed
6
WPressed
7(MSB)
9
0(LSB)
XPressed
1
YPressed
2
ZPressed
3
SPPressed
4
DEL Pressed
5
SLASH Pressed (/)
6
CLRPressed
7(MSB)
10
0(LSB)
PREV PAGE Pressed
1
NEXT PAGE Pressed
2
EXECUTE Pressed
3
Encoder Button Pressed
4
Execute LED (1: On, 0: Off)
5
Execute LED (1: Hi, 0: Low)
6
7(MSB)
11
0(LSB)
Number of “Clicks” since last report: Bit 0
1
Number of “Clicks” since last report: Bit 1
2
Number of “Clicks” since last report: Bit 2
3
Number of “Clicks” since last report: Bit 3
4
Number of “Clicks” since last report: Bit 4
5
Number of “Clicks” since last report: Bit 5
6
Left Rotation (0: Right Turn, 1: Left Turn)
7(MSB)
12
PWM 1 – Low Byte
13
PWM 1 – High Byte
14
PWM 2 – Low Byte
15
PWM 2 – High Byte
16
PWM 3 – Low Byte
17
PWM 3 – High Byte
0x19 - Build Info
This message contains software revision information.
Table 8. 0x19 - FROM MKP - Response From 0x29Byte#
Value
Description
1
0xFF
Start Byte
2
0x19
Build Info
3
Major Version
4
Minor Version
5
Minor MinorVersion
6
Build Year
7
Build Month
8
Build Date
0x1E - Rear Discrete Outputs
This message allows the controlling client to get the rear discrete outputs.
Table 9. 0x1E - FROM MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x1E
Get Rear Discrete Outputs
3
0 (LSB)
ENTER (J1-7)
1
PWM Power Enabled (J1-5, J1-6, J1-11)
2
3
4
5
6
7 (MSB)
4
PWM 1 – Low Byte (J1-6)
5
PWM 1 – High Byte (J1-6)
6
PWM 2 – Low Byte (J1-9)
7
PWM 2 – High Byte (J1-9)
8
PWM 3 – Low Byte (J1-12)
9
PWM 3 – High Byte (J1-12)
0x1F - ARINC Word
This message allows the controlling client to get a received ARINC word. Only allowed received labels over ARINC are reported.
This message is sent when byte 4, bit 4 of the Transmit Mode (0x23) command has been set.
This message is only reported using Real-time Reporting or Broadcast Real-time Reporting. If only Periodic Reporting is enabled, this message will not be reported.
Table 10. 0x1F - FROM MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x1F
Get ARINC Word
3
Reserved
4
MSB
ARINC Byte 1 (bit 31 – 24)
5
ARINC Byte 2 (bit 23 – 16)
6
ARINC Byte 3 (bit 15 – 8)
7
LSB
ARINC Byte 4 (bit 7 – 0)
0x20 - Reset EEPROM
The simMKP contains an EEPROM holding configuration data, including static IP address and port, and transmit/display modes.
Receipt of the Reset EEPROM command will clear the EEPROM and revert to default values.
Table 11. 0x20 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x20
Reset EEPROM
0x21 - Get EEPROM Info
This command will cause the simMKP to report its saved configuration.
Table 12. 0x21 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x21
Query EEPROM Info
0x22 - Set Static IP Address / Port
This command allows the simMKP to be configured with a static IP address, or to acquire an IP address via DHCP.
Setting all IP address octets to zero will cause the simMKP to acquire an address via DHCP.
Setting the port to zero will cause the simMKP to transmit over the default port (49480).
Table 13. 0x22 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x22
Set Static IP Address/Port
3
(See Note 1)
IP Address 1 (111.222.333.444)
4
IP Address 2
5
IP Address 3
6
IP Address 4
7
(See Note 2)
Port (MSB)
8
Port (LSB)
Note
1) To acquire an IP address via DHCP, set all address octets to zero.
Note
2) To use MKP default Port:49480, set to zero.
0x23 - Set Transmit Mode
This command sets the transmit and display modes of the MKP.
The MKP will always transmit the current state on the active communication channel in response to a client request. Any response to a received command will be sent back to the same IP address or to the serial interface. However, if Real-time and Periodic reporting is set, it reports to the “Reporting IP address”. This address can be the same or different than the active communication channel.
The MKP will transmit changes in real-time and will transmit the state on a periodic basis (1 second intervals). This behavior can be inhibited by setting bits 0 and 1 in byte 3.
Optionally, the MKP can be configured to broadcast real-time changes and periodic state reports to the IP broadcast address. This behavior can be enabled by setting bits 4 and 5 in byte 3.
All mode configurations are saved in EEPROM and will resume immediately at start-up.
Table 14. 0x23 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x23
Set Transmit Mode
3
0 (LSB)
Enable Real-time Reporting
1
Enable Periodic Reporting
2
3
4
Enable Real-time Broadcast
5
Enable Periodic Broadcast
6
Enable UART Reporting
7 (MSB)
4
0 (LSB)
Report Button/Switch State (0x14)
1
2
3
Report Rear Output (0x1E)
4
Report Received ARINC (0x1F)
5
6
7 (MSB)
5
Reporting IP Address 1 (111.222.333.444) (See Note 1)
6
IP Address 2
7
IP Address 3
8
IP Address 4
Note
1) Real-time and Periodic reports are sent to this address.
0x24 - Get Status Mode
The simMKP will report the different states checked in command 0x23 byte 4. If nothing is selected, the Button/Switch state is reported (0x14).
The generated report will be sent back to where 0x24 was received from. The report is not sent to the Reporting IP address set in 0x23.
Table 15. 0x24 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x24
Request Status
0x25 - Set Remote Button
A button can be pushed remotely from the controlling client. This command will instruct the simMKP to push the indicated button.
Only send one button push at a time. The simMKP will only push the first button found in the packet.
Table 16. 0x25 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x25
Set Remote Button
3
Button # (if Rotation, fill byte 4, if not byte 4 = 0)
4
0(LSB)
Number of “Clicks” since last report: Bit 0
1
Number of “Clicks” since last report: Bit 1
2
Number of “Clicks” since last report: Bit 2
3
Number of “Clicks” since last report: Bit 3
4
Number of “Clicks” since last report: Bit 4
5
Number of “Clicks” since last report: Bit 5
6
Left Rotation (0: Right Turn, 1: Left Turn)
7(MSB)
Table 17. 0x25 - TO MKP - Button MappingButton #
Button
0
SYS
1
CDU
2
INFO
3
CHKL
4
COMM
5
ND
6
1
7
2
8
3
9
4
10
5
11
6
12
7
13
8
14
9
15
Dot
16
0
17
Pm
18
ENTER
19
A
20
B
21
C
22
D
23
E
24
F
25
G
26
H
27
I
28
J
29
K
30
L
31
M
32
N
33
O
34
P
35
Q
36
R
37
S
38
T
39
U
40
V
41
W
42
X
43
Y
44
Z
45
SP
46
DEL
47
Slash
48
CLR
49
P.PAGE
50
N.PAGE
51
EXEC
52
Ann.Off
53
Ann.Lo
54
Ann.Hi
55
Rot.Btn.
56
Rotation
0x29 - Get Build Info
This command causes the simMKP to report on the current Build Info of the device.
Table 18. 0x29 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x29
RequestBuild Info
0x2B - Set Rear Discrete Outputs
To override and set the rear discrete outputs this command can be used. Please note that once this command has been sent, the simMKP will not set the rear outputs automatically until reset. The discrete outputs are now completely controlled by the remote client.
Table 19. 0x2B - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x2B
Set Rear Discrete Outputs
3
0 (LSB)
ENTER (J1-7)
1
PWM Power (J1-5, J1-8, J1-12)
2
3
4
5
6
7 (MSB)
4
PWM – High Byte
5
PWM – Low Byte
0x2D - Send ARINC Word
This command will send a word over ARINC.
Table 20. 0x2D - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0x2D
Send ARINC Word
3
Reserved
4
MSB
ARINC Byte 1 (bit 31 – 24)
5
ARINC Byte 2 (bit 23 – 16)
6
ARINC Byte 3 (bit 15 – 8)
7
LSB
ARINC Byte 4 (bit 7 – 0)
0xF0 - Reset CPU
Resets CPU.
Table 21. 0xF0 - TO MKPByte#
Value
Description
1
0xFF
Start Byte
2
0xF0
Reset CPU