Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Byte #

Name

Description

0

Packet start (3Ah)

Data packet start

1

OpenMATID byte 1

Contains the low byte of the OpenMAT ID of the sensor to be communicated with. The default value of this ID is 1. The host sends out a GET / SET request to a specific LPMS sensor by using this ID, and the client answers to request also with the same ID. This ID can be adjusted by sending a SET command to the sensor firmware.

2

OpenMAT ID byte 2

High byte of the OpenMAT ID of the sensor.

3

Command # byte 1

Contains the low byte of the command to be performed by the data transmission.

4

Command # byte 2

High byte of the command number.

5

Packet data length byte 1

Contains the low byte of the packet data length to be transmitted in the packet data field.

6

Packet data length byte 2

High byte of the data length to be transmitted.

x

Packet data(n bytes)

If data length n not equal to zero, x = 6+1, 6+2…6+n.

Otherwise x = none.

This data field contains the packet data to be transferred with the transmission if the data length not equals to zero, otherwise the data field is empty.

7+n

LRC byte 1

The low byte of LRC checksum. To ensure the integrity of the transmitted data the LRC checksum is used. It is calculated in the following way:

LRC = sum(OpenMAT ID, Command, Package data length, and packet data byte no. 1 to no. x)

The calculated LRC is usually compared with the LRC transmitted from the remote device. If the two LRCs are not equal, and error is reported.

8+n

LRC byte 2

High byte of LRC check-sum.

9+n

Termination byte 1

0Dh

10+n

Termination byte 2

0Ah

...

Parameter settings

Resulting channel message setup

Channel mode = Sequential

Value mode = 16-bit fixed point (signed)

StartID = 514h

IMU ID = 1

CAN message #1:

Code Block
CAN ID = 514h
1st 16 bits: Channel 1 data
2nd 16 bits: Channel 2 data
3rd 16 bits: Channel 3 data
4th 16 bits: Channel 4 data

CAN message #2:

Code Block
CAN ID = 515h
1st 16 bits: Channel 5 data
2nd 16 bits: Channel 6 data
3rd 16 bits: Channel 7 data
4th 16 bits: Channel 8 data

CAN message #3:

Code Block
CAN ID = 516h
1st 16 bits: Channel 9 data
2nd 16 bits: Channel 10 data
3rd 16 bits: Channel 11 data
4th 16 bits: Channel 12 data

CAN message #4:

Code Block
CAN ID = 517h
1st 16 bits: Channel 13 data
2nd 16 bits: Channel 14 data
3rd 16 bits: Channel 15 data
4th 16 bits: Channel 16 data

Channel mode = Sequential

Value mode = 32-bit floating point

Start ID = 514h

IMU ID = 1

CAN message #1:

Code Block
CAN ID = 514h
1st 32 bits: Channel 1 data
2nd 32 bits: Channel 2 data

CAN message #2:

Code Block
CAN ID = 515h
1st 32 bits: Channel 3 data
2nd 32 bits: Channel 4 data

CAN message #3:

Code Block
CAN ID = 516h
1st 32 bits: Channel 5 data
2nd 32 bits: Channel 6 data

CAN message #4:

Code Block
CAN ID = 517h
1st 32 bits: Channel 7 data
2nd 32 bits: Channel 8 data

CAN message #5:

Code Block
CAN ID = 518h
1st 32 bits: Channel 9 data
2nd 32 bits: Channel 10 data

CAN message #6:

Code Block
CAN ID = 519h
1st 32 bits: Channel 11 data
2nd 32 bits: Channel 12 data

CAN message #7:

Code Block
CAN ID = 51Ah
1st 32 bits: Channel 13 data
2nd 32 bits: Channel 14 data

CAN message #8:

Code Block
CAN ID = 51Bh
1st 32 bits: Channel 15 data
2nd 32 bits: Channel 16 data

Channel mode = CANopen

Value mode = 16-bit fixed point (signed)

Start ID = 180h

IMU ID = 1

CAN message #1:

Code Block
CAN ID = 181h
1st 16 bits: Channel 1 data
2nd 16 bits: Channel 2 data
3rd 16 bits: Channel 3 data
4th 16 bits: Channel 4 data

CAN message #2:

Code Block
CAN ID = 281h
1st 16 bits: Channel 5 data
2nd 16 bits: Channel 6 data
3rd 16 bits: Channel 7 data
4th 16 bits: Channel 8 data

CAN message #3Channel mode = CANopen

Value mode = 16-bit fixed point (signed)

Start ID = 180h

IMU ID = 1

CAN message #1:

Code Block
CAN ID = 381h181h
1st 16 bits: Channel 91 data
2nd 16 bits: Channel 102 data
3rd 16 bits: Channel 113 data
4th 16 bits: Channel 124 data

CAN message #4#2:

Code Block
CAN ID = 481h281h
1st 16 bits: Channel 135 data
2nd 16 bits: Channel 146 data
3rd 16 bits: Channel 157 data
4th 16 bits: Channel 16 data

Channel mode = CANopen

Value mode = 32-bit floating point

Start ID = 180h

IMU ID = 1
8 data

CAN message #1:#3

Code Block
CAN ID = 181h381h
1st 3216 bits: Channel 19 data
2nd 3216 bits: Channel 210 data

CAN message #2:

Code Block
CAN ID = 281h
1st 32
3rd 16 bits: Channel 311 data
2nd4th 3216 bits: Channel 412 data

CAN message #3#4:

Code Block
CAN ID = 381h481h
1st 3216 bits: Channel 513 data
2nd 3216 bits: Channel 6 data

CAN message #4:

Code Block
CAN ID = 481h
1st 3214 data
3rd 16 bits: Channel 715 data
2nd4th 3216 bits: Channel 816 data

Channel mode = CANopen

Value mode = 32-bit floating point

Start ID = 180h

IMU ID = 1

CAN message #5#1:

Code Block
CAN ID = 581h181h
1st 32 bits: Channel 91 data
2nd 32 bits: Channel 102 data

CAN message #6#2:

Code Block
CAN ID = 681h281h
1st 32 bits: Channel 113 data
2nd 32 bits: Channel 124 data

CAN message #7#3:

Code Block
CAN ID = 781h381h
1st 32 bits: Channel 135 data
2nd 32 bits: Channel 146 data

CAN message #8#4:

Code Block
CAN ID = 881h481h
1st 32 bits: Channel 157 data
2nd 32 bits: Channel 168 data

Transmitted units in 32-bit float mode:

...