Site Information

 Loading... Please wait...

Blog

SAE J1939 Address Management Messages - Request For Address Claimed And Address Claimed

Posted by Wilfried Voss on

The following is an excerpt from  A Comprehensible Guide To J1939 by Wilfried Voss.

A Comprehensible Guide to SAE J1939

According to SAE J1939/81 network management procedures are used to “collectively manage the network”.

In all consequence the network management is all about the Address Claim procedure and this procedure utilizes three messages and their PGNs:

  • Request Message (PGN 59904)
  • Address Claimed / Cannot Claim (PGN 60928)
  • Cannot Claim Source Address (PGN 60928)
  • Commanded Address (PGN 65240)

These network management messages have the same characteristics as all other SAE J1939 messages (PGNs). 

SAE J1939 Address Management Messages

  1. In case no address has been claimed as of yet the source address could be set to 254.
  2. The commanded address, since it is longer than 8 bytes, is sent using the Transport Protocol as described in chapter Transport Protocol.

Request For Address Claimed

The Request for Address Claimed message (PGN 59904) is identical to the Request message type as described in SAE J1939/21 and chapter Parameter Group Numbers in this book.

SAE J1939 Address Management Messages

The Request for Address Claimed message is used to request the sending of an Address Claimed message from either a particular node in the network or from all nodes (use of global destination address = 255). The Address Claimed message (as described in the following chapter) will provide the requested information, i.e. address and NAME of the responding node(s).

The purpose of sending such a request may be for several reasons, for instance:

  • A node is checking whether or not it can claim a certain address.
  • A node is checking for the existence of another node (Controller Application) with a certain function.

The response to a Request for Address Claimed message can be multiple:

  • Any addressed node that has already claimed an address will respond with an Address Claimed message.
  • Any addressed node that was unable to claim an address will respond with a Cannot Claim Address message.
  • Any addressed node that has not yet claimed an address should do so by responding with their own Address Claimed message where the source address is set to NULL (254).
  • A node sending the Request for Address Claimed message should respond to its own request in case the global destination address (255) was used.

Address Claimed / Cannot Claim

The Address Claimed message is used either, as the name indicates, to claim a message or to respond to a Request for Address Claimed message.

The following rules apply:

  • The Address Claimed message, for the purpose of claiming an address, should always be addressed to the global address (255).
  • The Address Claimed message, for the purpose of claiming an address, should be sent during the initialization of the network or as soon as the node is connecting to a running network.
  • As soon as a node has successfully claimed an address, it may begin with regular network activities, i.e. sending messages or responding to messages.
  • If a node (Controller Application) receives an Address Claimed message it should first compare the claimed address with its own. If the addresses are identical, the node should compare its own NAME to the NAME of the claiming node. In case its own NAME has a higher priority (lower numeric value) it will then transmit an Address Claimed message containing its NAME and address. If its own NAME is of a lower priority the node, depending on its capabilities, should either send a Cannot Claim Address message or claim another address.
  • In case a node loses its address through the previously described procedure and was also in the process of sending a Transport Protocol message (see chapter Transport Protocol Functions) it should cease the transmission immediately, however, without sending a Transport Protocol Abort message. The receiver of the Transport Protocol message will detect the interruption through the corresponding timeout process.

SAE J1939 Address Claimed - Cannot Claim Message

The Cannot Claim Address message has the same format as the Address Claimed message, but it uses the NULL address (254) as the source address.

The following rules apply for the Cannot Claim Address message:

  • As the name implies, a node without arbitrary addressing capabilities will send a Cannot Claim Address message when it is unable to claim the preferred address.
  • A node with arbitrary addressing capabilities will send a Cannot Claim Address message when no addresses are available in the network.
  • If the Cannot Claim Address message is a response to a Request for Address Claimed message, the node should apply a “pseudo-random” delay of 0 to 153 ms should be applied before sending the response. This will help prevent the possibility of a bus error, which will occur when two nodes send the same message with identical message ID.

SAE J1939 ECU Simulator Board With USB Port

SAE J1939 ECU Simulator Board With USB Port

The  jCOM.J1939.USB gateway board is a high-performance, low-latency vehicle network adapter for SAE J1939 applications. It allows any host device with a USB COM port to monitor SAE J1939 data traffic and communicate with the SAE J1939 vehicle network.

The board supports the full SAE J1939 protocol according to J1939/81 Network Management (Address Claiming) and J1939/21 Transport Protocol (TP). It is also supported by an extensive programming interface for Windows and Linux/Ubuntu applications, including full C/C++/C# source code for short time-to-market developments.

The strength of the board lies in the fact that the entire SAE J1939 protocol, including all timing requirements, is stored on-chip, thus taking the burden off the main system. The board uses a USB COM port to communicate with the main system, i.e. all data transfer is handled through a standard COM port access. 

The communication protocol between the board and the main system is well documented and thus allows a porting to any computer system with a USB connection. Working source code libraries exist for Windows (C# under Visual Studio 2012/2013), Linux and its derivatives (C++ using Code::Blocks), and Raspberry Pi (C using the standard gcc compiler).

More Information...