Jetter AG
Programming | 7
JCM-501-E00 User Manual
21 / 59
7.3 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
So-
ciety 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
For more information on SAE J1939 STX API refer to the application-oriented
manual "SAE J1939 STX API" available for download on our
7.3.1 STX Functions
Application
STX functions are used in the communication between the JCM-501-E00 and
other devices in a vehicle.
The JCM-501-E00 supports the following STX functions:
Features
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-501-E00 to receive a specific
message.
SAEJ1939AddTx()
Calling up the function
SAEJ1939AddTx()
prompts the JCM-501-E00 to cyclically send a spe-
cific 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).