
Industrial
Electronic Devices
ADFweb.com Srl – IT31010 – Mareno – Treviso INFO:
www.adfweb.com
Phone +39.0438.30.91.31
User Manual
J1939 to Ethernet
Document code: MN67213_ENG Revision 1.002 Page 13 of 16
ETHERNET PROTOCOL
This protocol is able to read and write frames in the J1939 net.
Write Frames
The transmission is very simple, it require only what are the packets to send. In a single request it is possible to write at maximum 19 frames in
the J1939 net. The Bytes that composed the request are these:
Byte Number
Description
1
Read / Write Identifier (Read=0x01 / Write=0x02)
2
Number of frames to send
3
Priority
4
Data Page
5
PGN Hi
6
PGN Lo
7
Source Address
8÷15
Data (Byte 8 is the higher, byte 15 is the lower)
A single frame is composed by 13 bytes (byte 3 to byte 15). Now if the “Number of frame to send” (Byte Number 2) has got a value greater
than one the next frame is composed from byte 3 to byte 15 and so for all the frames.
The response is composed by only one byte. It can have two values:
•
0x00: No Errors;
•
0x01: Parameter Error.
Example:
We want to write two frames with the following characteristics:
Frame 1: Priority=6; Data Page=0; PGN=FECA; Source Address=1; Data=0x0102030405060708;
Frame 2: Priority=6; Data Page=0; PGN=FFCA; Source Address=2; Data=0x1122334455667788.
So the string of hexadecimal numbers is:
REQ:[02][01][06][00][FE][CA][01][01][02][03][04][05][06][07][08][06][00][FF][CA][02][11][22][33][44][55][66][77][88]
RES:[01]