Combining CANopen and SAE J1939 networks

Similar documents
TD-03011E. Identifier Usage in CANopen Networks

Jena er Antriebstechnik. GmbH. 1. Introduction. 2. Properties. 3. Hardware. 4. Baud Rates. Brief Instructions - CANopen Interface

Positioning Controller

Understanding SAE J1939. by Simma Software, Inc.

LOCAL INTERCONNECT NETWORK (LIN)

LENORD. +BAUER... automates motion. Fieldbus connection absolute encoders CANopen. Reference. Communication profile DS-301 Device profile DS-406

RPDO 1 TPDO 1 TPDO 5 TPDO 6 TPDO 7 TPDO 8

CANopen Fieldbus Documentation

Automotive electronics CAN and LIN buses. Copyright 2006 Matrix Multimedia Limited

Getting Started with CANopen Version Application Note AN-AON

In-Vehicle Networking

SANMOTION AC SERVO SYSTEMS

ISO11783 a Standardized Tractor Implement Interface

EUROMAP Protocol for Communication with Peripheral Equipment. General Description

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

LIN (Local Interconnect Network):

PCAN-B10011S Bus Converter High-speed CAN to Truck Trailer CAN. User Manual. Document version ( )

CIA405.lib. Contents. WAGO-I/O-PRO 32 Library

/2008. Altivar 312. Variable speed drives for asynchronous motors. CANopen communication manual 05/2009 BBV

ANTAL ELECTRONIC Field Bus and Communication Technology. Manual PDP2CAN. Version 3.08

Energy Management System CANBUS Interface Specification

Positioning Controllers. Communication Guide. Document ID: rel4054

CAN bus board. EB018

PLUTO Safety-PLC. Manual Absolute Encoders

In networking ECUs in heavy-duty vehicles, it is the J1939 protocol that. plays a key role. J1939 networks are based on the CAN bus (high-speed

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

CAN-Bus Troubleshooting Guide

Data sheet GIOD.1 Input/output module with CAN bus. ERP no.: Data sheet GIOD.1 V_3.0

Quick Start Guide. CAN Microcontrollers. ATADAPCAN01 - STK501 CAN Extension. Requirements

DeviceNet Communication Manual

Vehicle data acquisition using CAN By Henning Olsson, OptimumG

PCAN-ISA. CAN Interface for ISA. User Manual

Install the DeviceNet Module using the following procedure:

Hardware Manual RM CANview Ethernet

GE Power Controls FIELDBUS APPENDIX PROFIBUS DP. Doc. No.: ASTAT Plus PB_Appendix-v0

38 CANOPEN SLAVE M1. Technical Document. Epec Oy

Troubleshooting & Diagnostic Procedures

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

CAN - Wiring Notes on the Wiring of CAN-Bus Systems and the Cable Selection

FlexRay A Communications Network for Automotive Control Systems

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

Application Note. EtherCAT Master Architecture. Applicable Products: Yaskawa Servodrives with CANopen over EtherCAT

Introduction to. LIN (Local Interconnect Network)

Adding a Modbus TCP Device to the Network. Setting Up Your Network

MGL Avionics CAN bus interface for Trig Avionics TT21/TT22 transponders

An internal gyroscope minimizes the influence of dynamic linear acceleration on slope sensor readings.

Single channel data transceiver module WIZ2-434

Bidirectional wireless communication using EmbedRF

Written examination in Computer Networks

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

Process Control and Automation using Modbus Protocol

with Electronic Assistant

Radio sensor powered by a mini solar cell the EnOcean STM 110 now functions with even less light

Lecture 4 Profibus. Urban Bilstrup Urban.Bilstrup@ide.hh.se

DECT Module UM-9802 Datasheet

Packet-over-SONET Interface Commands on the Cisco IOS XR Software

Automotive CAN gateway module

Distributed Real-Time Systems (TI-DRTS) Track 2. CAN-BUS Introduction. Version Ref. VECTOR application note & Motorola note

NETWORKS Controller Area Network (CAN)

UCC 1 USB-CAN CONVERTER

/2008. Altivar 312. Variable speed drives for asynchronous motors. CANopen communication manual 09/2009 BBV

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

Analogue Input, 4-fold, MDRC AE/S 4.1, GH Q R0001

Modular I/O System Analog and Digital Interface Modules

Tutorial.

Soft-Starter SSW-06 V1.6X - Profibus DP, DeviceNet and EtherNet/IP

CANopen high-level protocol for CAN-bus

USER MANUAL V5.0 ST100

Nilar High voltage energy storage solutions

Introduction to J1939 Version Application Note AN-ION

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

P/N: AX Applications: Mobile Equipment, Electric Vehicles for Material Handling, Lift Platforms

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

EBERSPÄCHER ELECTRONICS automotive bus systems. solutions for network analysis

Application Note 49. Using the Digi TransPort Fleet Card. October 2011

Original instructions. PLUTO Gateway. User Manual. PROFIBUS GATE-P1/P2 DeviceNet GATE-D1/D2 CANopen GATE-C1/C2 Ethernet GATE-E1/E2

Surveillance System Using Wireless Sensor Networks

Software Manual RS232 Laser Merge Module. Document # SU Rev A

Kvaser Mini PCI Express User s Guide

CANopen Communication Protocol

Road Vehicles - Diagnostic Systems

MBP_MSTR: Modbus Plus Master 12

Practical steps for a successful. PROFIBUS Project. Presented by Dr. Xiu Ji Manchester Metropolitan University

EMS. EtherCAN CI. Ethernet/CAN Interface. User Manual THOMAS WÜNSCHE. Documentation for Ethernet/CAN interface EtherCAN CI version 2.1.

EtherCAT Communication Manual

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

FOUNDATION Fieldbus High Speed Ethernet Control System

Model 5511 Filler Controller User s Manual Version 1.1 October 2011

Combi switchbox with integrated 3/2 way pilot valve

Bluetooth in Automotive Applications Lars-Berno Fredriksson, KVASER AB

Introduction To The CANopen Protocol Version 1.1 Application Note AN-ION

Copyrights 2010 Victron Energy B.V. All Rights Reserved

F2103 GPRS DTU USER MANUAL

AN : Using Wago CANOpen IO

imc BUSDAQ autonomous intelligent synchronized Field bus data acquisition - from stationary to mobile imc productive testing

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

LED light control using DMX512 control method

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Interfacing Intel 8255x Fast Ethernet Controllers without Magnetics. Application Note (AP-438)

Transcription:

Combining CApen and SAE J1939 networks Uwe Koppe (MicroControl GmbH & Co. KG) Especially in mobile applications system designers face the requirement that data has to be shared between two CAN network protocols SAE J1939 and CApen. The SAE J1939 protocol is the standard for the power train ECUs (electronic control units) in a vehicle, e.g. motor control or transmission. For trailer add-ons or special I/O requirements CApen modules are first choice because of their broad functional range and availability (COTS). Both CAN standards share the same physical layer, but different data frame formats and protocols are used. Two approaches are possible to exchange data between J1939 and CApen devices, either to use a gateway between the different CAN networks or to share the CAN physical layer between the J1939 ECUs and CApen nodes. Using a gateway Within CApen profile specifications, the device profile for truck gateways (CiA 413) was designed to build a bridge between the J1939 and the CApen standard (figure 1). The CApen protocol standard uses an Object Dictionary for data organization. All parameters are organized in a table, where a cell is accessed via its unique row (object index) and column (object subindex). The CiA 413 profile family defines for the most important (but not all) existing SPN values of the Vehicle Application Layer J1939-71 /5/ a corresponding entry in the device profile area (index 6000h 67FFh). This approach allows construction of gateways that support multiple device profiles (up to eight). Figure 1: Truck gateway profile Both standards have a different approach of data organization. In the J1939 standard, all possible process data gets a unique number, the Suspect Parameter Number (SPN). At least one SPN is then assigned to a specific Parameter Group Number (PGN), which is a CAN 2.0B data frame with a data length of 8 bytes. 07-7 The device profiles can be of different type, so an inclinometer with digital outputs and truck gateway is possible.

Table 1 shows the general object dictionary structure in the index range 6000h to 67FFh. Table 1: CiA 413 object dictionary structure Index range 6000h to 60FFh 6100h to 62FFh 6300h to 63FFh 6400h to 64FFh 6600h to 6650h Function group Brake and running gear equipment Other than brake and running gear equipment Superstructures J1939 family networks Framework for HMI control The objects of the CiA 413 object dictionary a typically mapped into Transmit- or Receive-PDOs, a default mapping is not provided. Connection of the CAN-bus to the gateway has to be made via specific connectors. The 7-pin female connector shall be mounted in the chassis frame, the 9-pin female connector shall be located in the cabin. In addition to power supply and CAN signal lines the connectors provide a pin to enable the superstructure (table 2). Table 2: CiA 413 connectors Pin Function Remarks 1 VCC Battery voltage, fused, 10A 2 GND Battery ground 3 ENABLE 4 CAN_H 5 CAN_GND 6 CAN_L 7 Reserved 8 Reserved 9 Reserved Enable when switched to GND Sharing the physical layer The CApen standard CiA 301 allows various bitrates in the range from 10 kbit/s to 1 MBit/s. The J1939-11 specification stipulates 250 kbit/s and is used in the majority of applications. The J1939-14 standard specifies 500 kbit/s for the physical layer. Thereby the bitrate for a shared physical layer is limited to the bitrates 250 kbit/s and 500 kbit/s. Fortunately both standards define the same sample point location at 87,5 % together with a SJW value of 1. Care has to be taken when comparing the network topology parameters (table 3). Table 3: Network topology parameters for 250 kbit/s Parameter J1939 CApen Bus length [m] Drop line length [m]. of nodes Termination [Ohm] 40 250 1 11 30 120 120 Depends on transceiver The J1939 CAN physical layer documents define very tight limits compared to the CApen CiA 301 standard. As long as the accumulated drop line length is not more than 55 meters (for 250 kbit/s) the CApen parameters are closer to the theoretical values. Actual CAN transceivers allow up to 110 nodes to be connected to the same wires. Usage of a gateway between the two networks has the advantage that the CAN bus-load is not increased in a significant way and bus errors can be resolved quite simple, since CAN error frames are not transferred. On the other hand, additional hardware costs have to be considered. 07-8

Mixing Standard and Extended Frames Beneath the physical layer examination, we have to take a closer look on the data link layer. Both standards allow the use of Standard Frames (11-bit identifier) and Extended Frames (29-Bit identifier). For CApen Standard Frames are the favorite choice, however many services can also be configured to send and receive data with Extended Frames (table 4). Table 4: CApen service configurations CApen Service Extended Frame allowed NMT SYNC EMCY TIME TxPDO RxPDO SDO NMT error control Yes, index 1005h Yes, index 1014h Yes, index 1012h Yes, index 1800h.. 19FFh Yes, index 1400h.. 15FFh The J1939 specification covers only Extended Frames, but allows use of 11-Bit identifiers from other protocols /5/. The only limitation is the usage of Remote Frames, which are not allowed in J1939 networks. Hence the CApen de Guarding service as well as requesting PDOs via Remote Frames is not possible. This limitation is not remarkable, because both services are not recommended for actual network implementations. The priority field inside the J1939 PDU identifier has no impact on the message sequence then. CApen understands J1939 Is it possible to use a CApen device in a CAN network that runs with another protocol? The answer to that question is: Yes, unless you keep two limitations in mind: the n-capen network shall not use the identifier value 0 (CApen NMT). the n-capen network shall not use the identifiers for SDO and NMT-EC services. Both requirements are met by the J1939 protocol. But how can the CApen device be set into Operational state in a network without NMT manager? Simply by configuration of the object 1F80h (NMT Startup). Writing and storing a value of 8 to this object will tell the CApen device to enter NMT state Operational after the NMT state Initialization autonomously (self starting). Mobile applications require in increasing number of sensor data, e.g. additional temperatures in a ne vehicle which are not measured by the existing J1939 ECUs. In most cases it makes sense to feed this information into the existing CAN network, which knows nothing about CApen. Figure 2: CAN data frames Mixing Standard Frames with Extended Frames has also an impact on the bus load. The IDE (Identifier Extension) bit is recessive for Extended Frames, so Standard Frames have always a higher priority and utilize the bus first (figure 2). As an example, we want to acquire 4 temperatures with a COTS CApen device, which shall be placed in an existing J1939 network. 07-9

Before connecting the CApen temperature acquisition module to the CAN network of the vehicle, the following configuration must be applied to the CApen device: Configure the Transmit PDO identifier to Extended Frame Configure the Transmit PDO to cyclic transmission, using the desired update rate Configure the NMT Startup object to self starting Store this configuration For selection of the PDO identifier we use the PGN Proprietary B together with a non-conflicting source address value. The identifier can be calculated by the formular ID = 0x0CFF0000 + source address. configured to start PDO data transmission directly after power up (no NMT start command required). In the final step (messages 10 and 11) the configuration is stored in the device. There is still one limitation when emulating the J1939 protocol with CApen devices: they can not participate in the address claiming process. Hence duplicate source addresses (resulting in a unique identifer used by two devices) must be avoided by other means. In order to fill this gap, MicroControl has added the address claiming procedure in the latest version of the CApen protocol stack. Figure 3: CApen module configuration example Figure 3 depicts a configuration example for a CApen module with node-id 127. The identifier for the 1st transmit PDO is configured via index 1800h, sub-index 1 of the communication profile. The device is set to pre-operational state first. In the next step the 1st transmit PDO is configured as event triggered (messages 4 and 5) and the associated cyclic timer is programmed (messages 6 and 7). The data bytes 5 and 6 of message no. 6 define the timer repetition rate in multiples of 1 millisecond (64h = 100 ms). Please note that the value is transmitted LSB first. w the device is 07-10

Conclusion Two approaches for interconnecting J1939 and CApen devices have been illustrated. Table 5 summarizes the pros and cons of each solution. Gateway Shared network Bus load Neutral Increased, Error frames Administration effort Separate networks High Impact on all devices Neutral Complexity High Low Exchange all data Yes Address claiming Yes Costs High Neutral Table 5: Comparison of the two approaches Uwe Koppe MicroControl GmbH & Co. KG Lindlaustr. 2c 53842 Troisdorf +49 2241 25659-0 +49 2241 25659-11 koppe@microcontrol.net www.microcontrol.net References [1] CiA 301, CApen application layer and communication profile [2] CiA 413, Device Profile for Truck Gateway, Part 1 8 [3] SAE J1939-11, Physical Layer, 250 Kbps, Twisted Shielded Pair, Date Published: 2012-09-12 [4] SAE J1939-14, Physical Layer, 500 Kbps, Date Published: 2011-10-05 [5] SAE J1939-21, Data Link Layer, Date Published: 2010-12-17 [6] SAE J1939-71, Vehicle Application Layer, Revision Number: B, Date Published: 2012-05-11 07-11