Jetter AG
Programming | 8
JCM-631 User Manual
51 / 78
8.5 SAE J1939 STX API
SAE J1939 is an open standard for networking and communication in the com-
mercial vehicle sector. The focal point of the application is the networking of the
power train and chassis. The J1939 protocol originates from the international
Society of Automotive Engineers (SAE)
and works on the physical layer with
CAN high-speed according to ISO 11898.
Specifications
The SAE J1939 specifications can be obtained from the SAE homepage
The key SAE J1939 specifications are:
■
J1939-11 - Information on the physical layer
■
J1939-21 - Information on the data link layer
■
J1939-71 - Information on the application layer vehicles
■
J1939-73 - Information on the application layer range analysis
■
J1939-81 - Network management
INFO
Further information
For more information on this subject refer to the application-oriented manual
SAE J1939 STX API
available for download from our
8.5.1 STX Functions
Application
STX functions are used in the communication between the JCM-631 and other
devices in a vehicle.
The JCM-631 supports the following STX functions:
Function
Description
SAEJ1939Init()
By calling the SAEJ1939Init() function
SAE-
J1939Init()
, one of the existing CAN busses
(not CAN 0 because it is reserved for CANopen
®
) is
initialized for the J1939 protocol.
SAEJ1939SetSA()
The function
SAEJ1939SetSA()
lets you change
your own SA (Source Address) during runtime.
SAEJ1939GetSA()
The function
SAEJ1939GetSA()
lets you deter-
mine your own SA (Source Address).
SAEJ1939AddRx()
Calling up the function
SAEJ1939AddRx()
prompts the JCM-631 to receive a specific mes-
sage.
SAEJ1939AddTx()
Calling up the function
SAEJ1939AddTx()
prompts the JCM-631 to cyclically send a specific
message via the bus.
SAEJ1939RequestPGN()
Calling up the function
SAEJ1939RequestPGN()
sends a request to the DA (Destination Address)
following a PGN.
SAEJ1939GetDM1()
Calling up the function
SAEJ1939GetDM1()
re-
quests the current diagnostics error codes (also
see SAE J1939-73 No. 5.7.1).
SAEJ1939GetDM2()
Calling up the function
SAEJ1939GetDM2()
re-
quests the diagnostics error codes that preceded
the current ones (also see SAEJ1939-73 No.
5.7.2).