Jetter AG
Programming | 8
User Manual – JCM-501-E01
33 / 65
8.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
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.3.1 STX Functions
Application
STX functions are used in the communication between the JCM-501-E01 and
other devices in a vehicle.
The JCM-501-E01 supports the following STX functions:
Function
Description
SAEJ1939Init()
Calling up the
SAEJ1939Init()
function, initial-
izes one of the existing CAN buses (not CAN 0 be-
cause it is reserved for CANopen) for the J1939
protocol.
SAEJ1939SetSA()
Calling up the
SAEJ1939SetSA()
function
changes the custom SA (source address) during
runtime.
SAEJ1939GetSA()
Calling up the
SAEJ1939GetSA()
function re-
trieves the custom SA (source address).
SAEJ1939AddRx()
Calling up the
SAEJ1939AddRx()
function
prompts the JCM-501-E01 to receive a specific
message.
SAEJ1939AddTx()
Calling up the
SAEJ1939AddTx()
function
prompts the JCM-501-E01 to cyclically send a spe-
cific message via the bus.
SAEJ1939RequestPGN()
Calling up the
SAEJ1939RequestPGN()
function
sends a request to the DA (destination address)
following a PGN.
SAEJ1939GetDM1()
Calling up the
SAEJ1939GetDM1()
function re-
quests the current diagnostics error codes (see
SAE J1939-73 No. 5.7.1).
SAEJ1939GetDM2()
Calling up the
SAEJ1939GetDM2()
function re-
quests the diagnostics error codes that preceded
the current ones (see SAEJ1939-73 No. 5.7.2).