Professional Documents
Culture Documents
Holger Zeltwanger
CAN protocol
FD
Improvements:
• Higher throughput
• Payload increase (up to 64 byte)
© CiA
CAN
OSI reference model
© CiA
CAN
HLPs are like languages
© CiA
CAN
CAN-based HLPs
!!1991: CAN Kingdom
!!1992: CAN Application Layer (CAL)
!!1994: Smart Distributed System (SDS)
!!1994: IEC 62026-3 (DeviceNet)
!!1994: SAE J1939 series
!!1995: EN 50325-4 (CANopen)
!!1999: ISO 11992 series
!!2000: IEC 61162-3 (NMEA 2000)
!!2002: ISO 11783 (ISOBUS)
!!2004: ISO 14229/15765 (Diagnostic)
!!2007: Arinc 825
© CiA
CAN
Common HLP concepts
u More complex communication services:
u Confirmed peer-to-peer communication
u Segmented data transfer (transport protocols)
u other services such as synchronized communication
© CiA
CAN
Standardized HLP benefits
u Interoperability between ECUs/devices
u (Partly) interchangeability of ECUs/devices
u Off-the-shelf plug-and-play capability
u Off-the-shelf protocol stack
u Off-the-shelf configuration and analysis tools
u Independent conformance testing and certification
© CiA
CAN
Standardized HLP restrictions
u Configuration or design tools required
u Additional hardware resources for configuration
u Restrictions regarding:
u CAN-ID assignment and usage
u Number of nodes in one single network segment
u Kind and function of communication services
© CiA
CAN
General HLP design rules
! No double-use of CAN-IDs
! (Correct use of CAN remote frames)
! Detecting of missing nodes or messages
! Average bus-load control mechanism
! No transmission of relative data
© CiA
CAN
Additional HLP functionality
! Overcoming the CAN-ID limitation
! Transport protocol for longer data
! Automatic distribution of priorities
! Network/node management
! Configuration of the bit-timing via the network
! Assignment of node-names via the network
! Message confirmation
! Program download via the network
! Configuration of message scheduling
! etc.
© CiA
CAN
History of CANopen
1993
ESPRIT project ASPIC (CAL-based communication profile)
1994
CAL-based communication profile version 1.0
1995
CAL-based communication profile version 1.1
1995
CiA 301 CANopen application layer version 2.0
1996
CiA 301 CANopen application layer version 3.0
1999
CiA 301 CANopen application layer version 4.0
2007
CiA 301 CANopen application layer version 4.2
201X
CiA 301 CANopen application layer version 5.0
© CiA
CAN
CANopen specifications
CiA301 CiA302 CiA303 CiA304 CiA305 CiA306 CiA307
CiA308 CiA309 CiA310 CiA311 CiA312 CiA313 CiA401
CiA402 CiA404 CiA405 CiA406 CiA408 CiA410 CiA412
CiA413 CiA414 CiA415 CiA416 CiA417 CiA418 CiA419
CiA420 CiA421 CiA422 CiA423 CiA424 CiA425 CiA426
CiA427 CiA428 CiA429 CiA430 CiA431 CiA432 CiA433
CiA434 CiA435 CiA436 CiA438 CiA439 CiA440
CiA441 CiA442 CiA443 CiA444 CiA445 CiA446
CiA447 CiA448 CiA449 CiA450 CiA451 CiA452
© CiA
CAN
Communication protocols
! Network management
! NMT Message protocol
! Boot-up/Heartbeat protocol
! Error control
! Heartbeat protocol!
! Service Data Object (SDO)
! Standard SDO protocols
! SDO block protocols!
! Process Data Object (PDO)
! Special COBs
! Synchronization (SYNC) protocol
! Time Stamp (TIME) protocol
! Emergency (EMCY) protocol
© CiA
CAN
NMT protocol
NMT master NMT slaves(s)
indication(s)
request DLC = 2
CS Node-ID
CAN-ID = 000h
© CiA
CAN
Boot-up protocol
NMT slave NMT master
DLC = 1
0
request indication
CAN-ID = 700h + node-ID
© CiA
CAN
Heartbeat protocol
Heartbeat producer Heartbeat consumer(s)
DLC = 1
Node state
request indication(s)
CAN-ID = 700h + node-ID
Heartbeat
producer
time (1017h)
in ms
Node state
request indication(s)
Heartbeat
consumer
time (1016h) Heartbeat
in ms event
© CiA
CAN
PDO protocol
Producer Consumer(s)
Asynchronous or synchronous PDO
indication(s)
Application object(s)
CAN-ID = pre-defined or user-specific
© CiA
CAN
CANopen application domains
Transportation: Passenger cars, trucks and buses, e-vehicles,
trains, ships and vessels, helicopters and
aircrafts
Manufacturing: Robot and embedded machine control
Healthcare: Medical devices and laboratory automation
Construction: Lift and door control; commercial vehicles
Agriculture and forestry: Harvesting machines, cow-sheds
Retail and finance: Vending machines
Science: Telescopes, high-energy physics
Entertainment: Studio equipment, moving cameras, gambling
Communication: Embedded control in satellites
Domestic appliances: Coffee machine, service robots
© CiA
CAN
Embedded networks
• The end user is not the system designer
• Software updates are made by trained technicians
• The network is highly optimized and vendor-specific
• System design is based on CANopen device profiles
• In some embedded system higher throughput is required
• In complex applications larger payloads are needed
© CiA
CAN
Open network
• The end-user could be the system designer
• Automatic software downloads require more bandwidth
• The highly standardized network provides off-the-shelf plug-and-play capability
• System design based on CANopen application profiles
• Throughput is not an issue
• Higher payload is required
© CiA
CAN
Truck body applications
CAN-based J1939
or proprietary network
CiA 422
J1939
CiA 413 Device 1
ECU 1
Gateway
J1939
Device n
ECU n
Truck chassis
I/O I/O
© CiA
CAN
Special-purpose car
Speed
ECU GPS
sensor
© CiA
CAN
Light electric vehicles
EnergyBus
controller
(LSS master)
CANopen
10 x instances (1)
CiA 454
1 x instances (3)
2 x instances (2)
4 x instances
16 x instances
8 x instances
4 x instances
8 x instances
Voltage Battery Motor Load HMI Sensor Gateway Security
converter pack control monitor unit unit unit unit
unit
© CiA
CAN
CAN-FD impacts on CANopen
! SDO services: New protocols with payloads up to 63 byte
(accelerates software downloads)
! SDO services: New protocols for down/up-loading structured data
(avoids configuration inconsistencies)
! PDO services: Improved mapping with up to 64 byte
(in particular for more complex devices such as electrical drives)
! EMCY services: Longer payload for diagnostic information
(overcomes todays functional limitations)
! NMT services: No change necessary
! Heartbeat services: No change necessary
! TIME service: No change necessary
! SYNC service: No change necessary
© CiA