2 proprietary pdu format 1 protocol – ifm electronic JN2301 User Manual

Page 8

Advertising
background image

Inclination sensor JN

8

7.2 Proprietary PDU format 1 protocol
The parameters of the JN2301 sensors are listed in a table that is accessed per

16-bit index� To access the sensor parameters in reading or writing the proprietary

PDU format 1 message is used� PDU format (PF) corresponds to the value 0xEF�

In this case the PDU-specific byte (PS) is the target address (DA) of the unit which

the message is to be sent to�
Example
Address target unit (ECU): 0x19
Address control unit / master: 0x14
Priority of the message: 3

CAN identifier

8-byte data frame

ID 29 bits

Parameter index 2 bytes

Read/write 1 byte

Status 1 byte

4-byte data

Request: Master → ECU

0xCEF1914

LSB

MSB

RW

0

LSB

��

��

MSB

Answer: Master ← ECU

0xCEF1419

Index

RW

SC

LSB

��

��

��

MSB

Parameter index: 2-byte parameter index�
RW: Read parameter → 0x00 / write parameter → 0x01
SC: Status code
0x00: OK
0x01: parameter value too small
0x02: parameter value too big
0x03: parameter index does not exist
0x04: parameter can only be read
0x05: parameter can only be written
0x06: no access to parameter
0x07: invalid data size
0x08: parameter writing blocked (e�g�: If the same value of a parameter is written

which is already set in the sensor)
0x09: invalid command
0x0A: unknown error

Advertising