CAN Newsletter magazine
There are many CANopen devices, especially sensors, which are not available with standardized J1939 interfaces. However, J1939 system designers like to use them, in particular in construction machines and similar applications.
The complete article is published in the December issue of the CAN Newsletter magazine 2020. This is just an excerpt.
Cranes use heavily encoders and inclinometers, for example. There are many CANopen encoders and inclinometers on the market complying with CiA 406 respectively CiA 410 profile specifications. But some original equipment manufacturers (OEM) are J1939-minded, because they have experience with this CAN-based application layer approach. Therefore, some CANopen sensor suppliers provide manufacturer-specific J1939 interfaces for their products. Interoperability and interchangeability were falling by the sideway.
This situation could be overcome by mapping CANopen profiles to the J1939 application layer. The idea is simple. The PDOs (process data objects) are mapped to parameter groups (PG) as specified in J1939-21. These 8-byte messages use 29-bit identifiers containing the PGN (parameter group number). CiA (CAN in Automation) has requested from SAE International dedicated PGNs for encoders and inclinometers. They include the process data as specified in the corresponding CiA 406 respectively CiA 410 profiles. Because J1939 networks are self-starting without the need of a dedicated network manager, the implemented PGs are transmitted after power-on. The sensor behavior is very similar to the default behavior of a CANopen sensor.
Encoders provide by default position values in one PG as well as optionally calculated velocity or acceleration values in other PGs. Inclinometers send their axis angle values in standardized PGs. These PGs use PGNs assigned by SAE, but the details are specified in CiA 406-J respectively (CiA 410-J).
In order to change the behavior, like in CANopen devices, the CiA 406-J and CiA 410-J sensors provide the same configuration parameters. This means, they implement a CANopen dictionary in the J1939 devices. These configuration parameters can be written by means of SDO (service data object) services. These services are mapped to PGs specified in CiA 510. The CAM11 parameter group contains in its 8-byte payload the SDO client/server protocol and the CAM21 parameter group maps the SDO response (server-to-client). This means, the sensors implement partly a CANopen protocol stack, which sends and receives virtually SDOs and PDOs. Optionally, these J1939 sensors with CANopen behavior provide the EMCY parameter group, which transmits the 8-byte EMCY message as specified in CANopen. This PG provides the standardized 16-bit emergency error code and the 8-bit error register (see CiA 301).
News and reports