SlideShare a Scribd company logo
CAN STACK
OVERVIEW
• AUTOSAR CAN Stack
• Overview.
• Included modules.
• From COMM_NO_COMMUNICATION to
COMM_FULL_COMMUNICATION.
• Transmission request.
• Receive indication.
AUTOSAR CAN STACK:
OVERVIEW
Autosar VFB
• The integration of functions from different suppliers is established through a virtual
functional bus.
• Allow virtual integration between SW-c as long as communication mechanism is defined.
• Collection of all communication mechanism.
• Interfaces on an abstract level that allow s/w design regardless the target h/w.
RTE
• Realization of VFB for a specific ECU.
• It mange the communication inter/intra ECU.
AUTOSAR CAN STACK:
OVERVIEW
Communication Stack for CAN
• COM:
- Transfer signals from, and to, RTE.
- Pass signals to CANTP or PDUR
depending on the used service.
• PDU-Router:
- Route I-PDUs between the following
modules: Communication interface (CANIF),
Transport protocol (CANTP), Diagnostics (DCM)
AUTOSAR CAN STACK:
OVERVIEW
Communication Stack for CAN
• CANIF:
- It abstracts the interface regardless
Location of the driver (internal/external).
• CANTP:
- Segment and reassemble data
Longer than 8 bytes.
• CAN Driver:
Abstraction for the CAN controller hardware.
AUTOSAR CAN STACK:
OVERVIEW
Communication Stack for CAN
• CANSM:
Change communication mode
as requested.
• CANTRCV:
Control external CAN transceiver
hardware, It observe the bus and provide
physical network diagnostics.
AUTOSAR CAN STACK:
OVERVIEW
Included modules from service layer:
• ComM: Propagate requested communication mode to CanSM
• BSWM: Forward user requests to ComM and report
communication state to the user.
• ECUM: Detect passive wake up and initialize related modules.
AUTOSAR CAN STACK:
INCLUDED MODULES
Active VS Passive Wake-up
• Active wake-up: when the current ECU is the source of the
wake-up signal (sensor).
• Passive wake-up: when another ECU is the source of the
wake-up signal. In this case the ECU should receive NM
frames to keep the ECU in the passive wake-up mode.
AUTOSAR CAN STACK: FROM
COMM_NO_COMMUNICATION TO
COMM_FULL_COMMUNICATION
Modules interaction
1. For active wake-up User request communication mode.
2. ComM propagate requested mode to CANSM.
3. CANSM change the current mode to the requested mode by
calling CANIF APIs.
4. CANIF contact the CAN driver which write values in the CAN
controller register to go the requested communication mode.
5. The CAN controller send mode indication signal to upper
modules till it is back to ComM.
AUTOSAR CAN STACK: FROM
COMM_NO_COMMUNICATION TO
COMM_FULL_COMMUNICATION
6- ComM notifies the BSWM to manage what will happen next to
start data transmitting.
AUTOSAR CAN STACK: FROM
COMM_NO_COMMUNICATION TO
COMM_FULL_COMMUNICATION
SWC1 RTE COMM CANSM CANIF CAN
Controller Controller
Red arrows indicate request direction
Blue arrows indicate confirmation messages direction
AUTOSAR CAN STACK: FROM
COMM_NO_COMMUNICATION TO
COMM_FULL_COMMUNICATION
APIs and State transitions:
COMM CANSM CANIF CAN Hardware
(controller)
Start State COMM_NO_COM
MUNICATION
S_RNOCO:
S_CAN_TRCV_N
ORMAL
CANIF_CS_INIT:
CANIF_CS_STOP
PED
CAN_READY STOP/SLEEP
Called APIs CanSM_RequestC
omMode(Network
Handle,ComM_Mo
de:=COMM_FULL
_COMMUNICATIO
N)
CanIf_SetControlle
rMode(CanSMCon
trollerId,
CANIF_CS_STAR
TED)
AND
CanIf_SetPduMod
e(CanSMControlle
rId,
CANIF_SET_ONLI
NE)
Can_SetController
Mode (Controller,
CAN_T_STARTE
D).
request CAN
controller mode
transition to
START()
Callback fn. Configurable
confirmation to
BswM.
ComM_BusSM_M
odeIndication(Cha
nnel,ComMode:
=COMM_FULL_C
OMMUNICATION)
CanSM_Controller
ModeIndication(uin
t8,
COMM_FULL_CO
MMUNICATION)
CanIf_ControllerM
odeIndication
End State COMM_FULL_CO
MMUNICATION
S_FUCO:
S_NO_BUS_OFF
CANIF_CS_INIT:
CANIF_CS_STAR
TED
CAN_READY START
AUTOSAR CAN STACK: FROM
COMM_NO_COMMUNICATION TO
COMM_FULL_COMMUNICATION
Modules state machine:
ComM CANSM CANIF CAN
Modules interaction
1. When BSWM receive confirmation signal that the channel is
ready it notifies the COM to take the massage from the RTE.
2. COM propagate the IPDU to PDUR which in turn forward the
message to the corresponding interface of TP modules (in our
case if the message is loner than 8 bytes will be forwarded to
CANTP else to CANIF).
3. CANIF sends data to the CAN driver which writes data in the
CAN controller registers.
4. After successful transmission TxConfirmation signal is sent
to upper layers.
AUTOSAR CAN STACK:
TRANSMISSION REQUEST
Modules interaction
SWC1 RTE COM PDUR CANIF CAN
Controller Controller
Red arrows indicate request direction
Blue arrows indicate confirmation messages direction
AUTOSAR CAN STACK:
TRANSMISSION REQUEST
AUTOSAR CAN STACK:
TRANSMISSION REQUEST
COM PduR CANIF CAN Hardware
(controller
)
Called APIs PduR_ComTrans
mit
CanIf_Transmit Can_write Copy LPDU to
harware
Callback
fn.
Rte_COMCbkTAc
k_signalX()
Com_TxConfirmati
on
PduR_CanTxConfi
rmation
CanIf_CanTxConfi
rmation
Tx interrupt
APIs and State transitions:
Modules interaction
To detect received data Interrupt or polling can be used
Interrupt: The controller will notify CANIF when data is received
Polling: CANIF will periodically check weather data is received or
not.
For both modes after the CANIF detects that there is received
data it will notify upper modules to read data.
After reaching the COM the received data will be available to be
called by the RTE when required.
AUTOSAR CAN STACK:
RECEIVE INDICATION
AUTOSAR CAN STACK:
RECEIVE INDICATION
COM PduR CANIF CAN Hardware
(controller
)
Callback
fn.
Rte_COMCbk_sig
nalX()
Com_RxIndication PduR_<module>R
xIndication
CanIf_RxIndication Receive
Interrupt()
Called APIs CanIf_ReadRxNoti
fStatus()
CanIf_ReadRxPdu
Data
Read data from
CANIF Rx
buffer()
APIs and State transitions:

More Related Content

What's hot

AUToSAR introduction
AUToSAR introductionAUToSAR introduction
AUToSAR introduction
ELAbbasSalahHatata
 
AUTOSAR Memory Stcak (MemStack).
AUTOSAR Memory Stcak (MemStack). AUTOSAR Memory Stcak (MemStack).
AUTOSAR Memory Stcak (MemStack).
Embitel Technologies (I) PVT LTD
 
Autosar MCAL (Microcontroller Abstraction Layer)
Autosar MCAL (Microcontroller Abstraction Layer)Autosar MCAL (Microcontroller Abstraction Layer)
Autosar MCAL (Microcontroller Abstraction Layer)
Embitel Technologies (I) PVT LTD
 
Autosar-software-component_0hg.pptx
Autosar-software-component_0hg.pptxAutosar-software-component_0hg.pptx
Autosar-software-component_0hg.pptx
fallleaf1104
 
Frequently Asked Questions on AUTOSAR Services
Frequently Asked Questions on AUTOSAR ServicesFrequently Asked Questions on AUTOSAR Services
Frequently Asked Questions on AUTOSAR Services
Embitel Technologies (I) PVT LTD
 
Automotive embedded systems part8 v1
Automotive embedded systems part8 v1Automotive embedded systems part8 v1
Automotive embedded systems part8 v1
Keroles karam khalil
 
Autosar basics by ARCCORE
Autosar basics by ARCCOREAutosar basics by ARCCORE
Autosar basics by ARCCORE
ARCCORE
 
Autosar Basics hand book_v1
Autosar Basics  hand book_v1Autosar Basics  hand book_v1
Autosar Basics hand book_v1
Keroles karam khalil
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore Systems
KPIT
 
What is AUTOSAR Memory Stack | Software modules and device drivers
What is AUTOSAR Memory Stack | Software modules and device driversWhat is AUTOSAR Memory Stack | Software modules and device drivers
What is AUTOSAR Memory Stack | Software modules and device drivers
Embitel Technologies (I) PVT LTD
 
Understanding Flash Bootloader Software and Automotive ECU Reprogramming
Understanding Flash Bootloader Software and Automotive ECU ReprogrammingUnderstanding Flash Bootloader Software and Automotive ECU Reprogramming
Understanding Flash Bootloader Software and Automotive ECU Reprogramming
Embitel Technologies (I) PVT LTD
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
nassim unused
 
Automative basics v3
Automative basics v3Automative basics v3
Automative basics v3
Keroles karam khalil
 
UDS Protocol Stack | Manual Guide | Fact Sheet
UDS Protocol Stack | Manual Guide | Fact SheetUDS Protocol Stack | Manual Guide | Fact Sheet
UDS Protocol Stack | Manual Guide | Fact Sheet
Embitel Technologies (I) PVT LTD
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus Protocol
Abhinaw Tiwari
 
Adaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR Architecture
AdaCore
 
Automotive embedded systems part6 v1
Automotive embedded systems part6 v1Automotive embedded systems part6 v1
Automotive embedded systems part6 v1
Keroles karam khalil
 
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdfAUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
Salaheddineelabbassi
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
Yuga Aravind Kumar
 
Thesis Presentation
Thesis PresentationThesis Presentation
Thesis Presentation
venkatakalyan
 

What's hot (20)

AUToSAR introduction
AUToSAR introductionAUToSAR introduction
AUToSAR introduction
 
AUTOSAR Memory Stcak (MemStack).
AUTOSAR Memory Stcak (MemStack). AUTOSAR Memory Stcak (MemStack).
AUTOSAR Memory Stcak (MemStack).
 
Autosar MCAL (Microcontroller Abstraction Layer)
Autosar MCAL (Microcontroller Abstraction Layer)Autosar MCAL (Microcontroller Abstraction Layer)
Autosar MCAL (Microcontroller Abstraction Layer)
 
Autosar-software-component_0hg.pptx
Autosar-software-component_0hg.pptxAutosar-software-component_0hg.pptx
Autosar-software-component_0hg.pptx
 
Frequently Asked Questions on AUTOSAR Services
Frequently Asked Questions on AUTOSAR ServicesFrequently Asked Questions on AUTOSAR Services
Frequently Asked Questions on AUTOSAR Services
 
Automotive embedded systems part8 v1
Automotive embedded systems part8 v1Automotive embedded systems part8 v1
Automotive embedded systems part8 v1
 
Autosar basics by ARCCORE
Autosar basics by ARCCOREAutosar basics by ARCCORE
Autosar basics by ARCCORE
 
Autosar Basics hand book_v1
Autosar Basics  hand book_v1Autosar Basics  hand book_v1
Autosar Basics hand book_v1
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore Systems
 
What is AUTOSAR Memory Stack | Software modules and device drivers
What is AUTOSAR Memory Stack | Software modules and device driversWhat is AUTOSAR Memory Stack | Software modules and device drivers
What is AUTOSAR Memory Stack | Software modules and device drivers
 
Understanding Flash Bootloader Software and Automotive ECU Reprogramming
Understanding Flash Bootloader Software and Automotive ECU ReprogrammingUnderstanding Flash Bootloader Software and Automotive ECU Reprogramming
Understanding Flash Bootloader Software and Automotive ECU Reprogramming
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
 
Automative basics v3
Automative basics v3Automative basics v3
Automative basics v3
 
UDS Protocol Stack | Manual Guide | Fact Sheet
UDS Protocol Stack | Manual Guide | Fact SheetUDS Protocol Stack | Manual Guide | Fact Sheet
UDS Protocol Stack | Manual Guide | Fact Sheet
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus Protocol
 
Adaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR Architecture
 
Automotive embedded systems part6 v1
Automotive embedded systems part6 v1Automotive embedded systems part6 v1
Automotive embedded systems part6 v1
 
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdfAUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
Thesis Presentation
Thesis PresentationThesis Presentation
Thesis Presentation
 

Viewers also liked

In‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardIn‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look Forward
RealTime-at-Work (RTaW)
 
K-SAR - AUTOSAR Suite
K-SAR - AUTOSAR SuiteK-SAR - AUTOSAR Suite
K-SAR - AUTOSAR Suite
KPIT
 
What is AUTOSAR Development Partnership
What is AUTOSAR Development PartnershipWhat is AUTOSAR Development Partnership
What is AUTOSAR Development Partnership
Embitel Technologies (I) PVT LTD
 
Night vision-tech-sanketh
Night vision-tech-sankethNight vision-tech-sanketh
Night vision-tech-sanketh
Sanketh Gowda
 
Distance Measuring Car
Distance Measuring CarDistance Measuring Car
Distance Measuring Car
Arkhom Jodtang
 
Electronic Control Unit(ECU)
Electronic Control Unit(ECU)Electronic Control Unit(ECU)
Electronic Control Unit(ECU)
Ankul Gupta
 
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Daedal Research
 
Imaging Technologies for Automotive 2016 Report by Yole Developpement
Imaging Technologies for Automotive 2016 Report by Yole Developpement	Imaging Technologies for Automotive 2016 Report by Yole Developpement
Imaging Technologies for Automotive 2016 Report by Yole Developpement
Yole Developpement
 

Viewers also liked (8)

In‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardIn‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look Forward
 
K-SAR - AUTOSAR Suite
K-SAR - AUTOSAR SuiteK-SAR - AUTOSAR Suite
K-SAR - AUTOSAR Suite
 
What is AUTOSAR Development Partnership
What is AUTOSAR Development PartnershipWhat is AUTOSAR Development Partnership
What is AUTOSAR Development Partnership
 
Night vision-tech-sanketh
Night vision-tech-sankethNight vision-tech-sanketh
Night vision-tech-sanketh
 
Distance Measuring Car
Distance Measuring CarDistance Measuring Car
Distance Measuring Car
 
Electronic Control Unit(ECU)
Electronic Control Unit(ECU)Electronic Control Unit(ECU)
Electronic Control Unit(ECU)
 
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
Global Advanced Driver Assistance Systems (ADAS) Market: Trends and Opportuni...
 
Imaging Technologies for Automotive 2016 Report by Yole Developpement
Imaging Technologies for Automotive 2016 Report by Yole Developpement	Imaging Technologies for Automotive 2016 Report by Yole Developpement
Imaging Technologies for Automotive 2016 Report by Yole Developpement
 

Similar to AUTOSAR 403 CAN Stack

Modem synchronization and control
Modem synchronization and controlModem synchronization and control
Modem synchronization and control
sirish2chandraa
 
EMBEDDED SYSTEM AUTOSAR.pdf
EMBEDDED SYSTEM AUTOSAR.pdfEMBEDDED SYSTEM AUTOSAR.pdf
EMBEDDED SYSTEM AUTOSAR.pdf
MohammedtajuddinTaju
 
Scada
ScadaScada
Scada
Amit Kumar
 
MCP2515: Stand-Alone CAN Controller
MCP2515: Stand-Alone CAN ControllerMCP2515: Stand-Alone CAN Controller
MCP2515: Stand-Alone CAN Controller
Premier Farnell
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
Dharmendra212860
 
final_of_can_bus_ (1).ppt
final_of_can_bus_ (1).pptfinal_of_can_bus_ (1).ppt
final_of_can_bus_ (1).ppt
ZiadAlfawadleh1
 
Automatic depentent chocolate target machine
Automatic depentent chocolate target machineAutomatic depentent chocolate target machine
Automatic depentent chocolate target machine
ssuser2b759d
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
Ankur Rastogi
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
Ankur Rastogi
 
Cross country pipeline _Telecom_Instrumentation and SCADA
Cross country pipeline _Telecom_Instrumentation and SCADACross country pipeline _Telecom_Instrumentation and SCADA
Cross country pipeline _Telecom_Instrumentation and SCADA
Rakesh Ujjawal
 
[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...
[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...
[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...
IJET - International Journal of Engineering and Techniques
 
Pms System Training
Pms System TrainingPms System Training
Pms System Training
vkmalik
 
UBR C5x Configuration_12th Feb 2020.pptx
UBR C5x Configuration_12th Feb 2020.pptxUBR C5x Configuration_12th Feb 2020.pptx
UBR C5x Configuration_12th Feb 2020.pptx
MujtabaBhat6
 
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
Thesis Presentation on Renewal theory based 802.15.6 latest.pptxThesis Presentation on Renewal theory based 802.15.6 latest.pptx
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
ssuserc02c1f
 
cdma-technology_compress.pdf
cdma-technology_compress.pdfcdma-technology_compress.pdf
cdma-technology_compress.pdf
HODece24
 
JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22
JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22
JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22
Electromate
 
Epma 013
Epma 013Epma 013
Epma 013
Lecturer
 

Similar to AUTOSAR 403 CAN Stack (20)

Modem synchronization and control
Modem synchronization and controlModem synchronization and control
Modem synchronization and control
 
EMBEDDED SYSTEM AUTOSAR.pdf
EMBEDDED SYSTEM AUTOSAR.pdfEMBEDDED SYSTEM AUTOSAR.pdf
EMBEDDED SYSTEM AUTOSAR.pdf
 
Scada
ScadaScada
Scada
 
11.chapters
11.chapters11.chapters
11.chapters
 
MCP2515: Stand-Alone CAN Controller
MCP2515: Stand-Alone CAN ControllerMCP2515: Stand-Alone CAN Controller
MCP2515: Stand-Alone CAN Controller
 
final
finalfinal
final
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
 
final_of_can_bus_ (1).ppt
final_of_can_bus_ (1).pptfinal_of_can_bus_ (1).ppt
final_of_can_bus_ (1).ppt
 
Automatic depentent chocolate target machine
Automatic depentent chocolate target machineAutomatic depentent chocolate target machine
Automatic depentent chocolate target machine
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Cross country pipeline _Telecom_Instrumentation and SCADA
Cross country pipeline _Telecom_Instrumentation and SCADACross country pipeline _Telecom_Instrumentation and SCADA
Cross country pipeline _Telecom_Instrumentation and SCADA
 
[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...
[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...
[IJET-V2I2P16] Authors: Jariwala Hiren, Patel Chintan, Prasad Kuldip, Shukla ...
 
Pms System Training
Pms System TrainingPms System Training
Pms System Training
 
UBR C5x Configuration_12th Feb 2020.pptx
UBR C5x Configuration_12th Feb 2020.pptxUBR C5x Configuration_12th Feb 2020.pptx
UBR C5x Configuration_12th Feb 2020.pptx
 
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
Thesis Presentation on Renewal theory based 802.15.6 latest.pptxThesis Presentation on Renewal theory based 802.15.6 latest.pptx
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
 
cdma-technology_compress.pdf
cdma-technology_compress.pdfcdma-technology_compress.pdf
cdma-technology_compress.pdf
 
JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22
JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22
JVL AC Servo Motor Controllers AMC20, AMC21 and AMC22
 
Control Area Network
Control Area NetworkControl Area Network
Control Area Network
 
Epma 013
Epma 013Epma 013
Epma 013
 

Recently uploaded

一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理
一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理
一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理
eygkup
 
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
ahmedendrise81
 
Empowering Limpopo Entrepreneurs Consulting SMEs.pptx
Empowering Limpopo Entrepreneurs  Consulting SMEs.pptxEmpowering Limpopo Entrepreneurs  Consulting SMEs.pptx
Empowering Limpopo Entrepreneurs Consulting SMEs.pptx
Precious Mvulane CA (SA),RA
 
What do the symbols on vehicle dashboard mean?
What do the symbols on vehicle dashboard mean?What do the symbols on vehicle dashboard mean?
What do the symbols on vehicle dashboard mean?
Hyundai Motor Group
 
Why Is Your BMW X3 Hood Not Responding To Release Commands
Why Is Your BMW X3 Hood Not Responding To Release CommandsWhy Is Your BMW X3 Hood Not Responding To Release Commands
Why Is Your BMW X3 Hood Not Responding To Release Commands
Dart Auto
 
Things to remember while upgrading the brakes of your car
Things to remember while upgrading the brakes of your carThings to remember while upgrading the brakes of your car
Things to remember while upgrading the brakes of your car
jennifermiller8137
 
Antique Plastic Traders Company Profile
Antique Plastic Traders Company ProfileAntique Plastic Traders Company Profile
Antique Plastic Traders Company Profile
Antique Plastic Traders
 
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to TellWondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
Vic Auto Collision & Repair
 
Statistics5,c.xz,c.;c.;d.c;d;ssssss.pptx
Statistics5,c.xz,c.;c.;d.c;d;ssssss.pptxStatistics5,c.xz,c.;c.;d.c;d;ssssss.pptx
Statistics5,c.xz,c.;c.;d.c;d;ssssss.pptx
coc7987515756
 
Ec460b lc Excavator Volvo Service Repair.pdf
Ec460b lc Excavator Volvo Service Repair.pdfEc460b lc Excavator Volvo Service Repair.pdf
Ec460b lc Excavator Volvo Service Repair.pdf
Excavator
 
Digital Fleet Management - Why Your Business Need It?
Digital Fleet Management - Why Your Business Need It?Digital Fleet Management - Why Your Business Need It?
Digital Fleet Management - Why Your Business Need It?
jennifermiller8137
 
What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...
What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...
What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...
Autohaus Service and Sales
 
Tyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEATTyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEAT
kshamashah95
 
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out HereWhy Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Masters European & Gapanese Auto Repair
 
What Causes 'Trans Failsafe Prog' to Trigger in BMW X5
What Causes 'Trans Failsafe Prog' to Trigger in BMW X5What Causes 'Trans Failsafe Prog' to Trigger in BMW X5
What Causes 'Trans Failsafe Prog' to Trigger in BMW X5
European Service Center
 
Ec330B Lc Excavator Volvo Service Repair.pdf
Ec330B Lc Excavator Volvo Service Repair.pdfEc330B Lc Excavator Volvo Service Repair.pdf
Ec330B Lc Excavator Volvo Service Repair.pdf
Excavator
 
What Exactly Is The Common Rail Direct Injection System & How Does It Work
What Exactly Is The Common Rail Direct Injection System & How Does It WorkWhat Exactly Is The Common Rail Direct Injection System & How Does It Work
What Exactly Is The Common Rail Direct Injection System & How Does It Work
Motor Cars International
 
一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理
一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理
一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理
mymwpc
 
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Hyundai Motor Group
 
5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention
5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention
5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention
Bertini's German Motors
 

Recently uploaded (20)

一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理
一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理
一比一原版(AIS毕业证)奥克兰商学院毕业证成绩单如何办理
 
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
 
Empowering Limpopo Entrepreneurs Consulting SMEs.pptx
Empowering Limpopo Entrepreneurs  Consulting SMEs.pptxEmpowering Limpopo Entrepreneurs  Consulting SMEs.pptx
Empowering Limpopo Entrepreneurs Consulting SMEs.pptx
 
What do the symbols on vehicle dashboard mean?
What do the symbols on vehicle dashboard mean?What do the symbols on vehicle dashboard mean?
What do the symbols on vehicle dashboard mean?
 
Why Is Your BMW X3 Hood Not Responding To Release Commands
Why Is Your BMW X3 Hood Not Responding To Release CommandsWhy Is Your BMW X3 Hood Not Responding To Release Commands
Why Is Your BMW X3 Hood Not Responding To Release Commands
 
Things to remember while upgrading the brakes of your car
Things to remember while upgrading the brakes of your carThings to remember while upgrading the brakes of your car
Things to remember while upgrading the brakes of your car
 
Antique Plastic Traders Company Profile
Antique Plastic Traders Company ProfileAntique Plastic Traders Company Profile
Antique Plastic Traders Company Profile
 
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to TellWondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
 
Statistics5,c.xz,c.;c.;d.c;d;ssssss.pptx
Statistics5,c.xz,c.;c.;d.c;d;ssssss.pptxStatistics5,c.xz,c.;c.;d.c;d;ssssss.pptx
Statistics5,c.xz,c.;c.;d.c;d;ssssss.pptx
 
Ec460b lc Excavator Volvo Service Repair.pdf
Ec460b lc Excavator Volvo Service Repair.pdfEc460b lc Excavator Volvo Service Repair.pdf
Ec460b lc Excavator Volvo Service Repair.pdf
 
Digital Fleet Management - Why Your Business Need It?
Digital Fleet Management - Why Your Business Need It?Digital Fleet Management - Why Your Business Need It?
Digital Fleet Management - Why Your Business Need It?
 
What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...
What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...
What Does the PARKTRONIC Inoperative, See Owner's Manual Message Mean for You...
 
Tyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEATTyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEAT
 
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out HereWhy Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
 
What Causes 'Trans Failsafe Prog' to Trigger in BMW X5
What Causes 'Trans Failsafe Prog' to Trigger in BMW X5What Causes 'Trans Failsafe Prog' to Trigger in BMW X5
What Causes 'Trans Failsafe Prog' to Trigger in BMW X5
 
Ec330B Lc Excavator Volvo Service Repair.pdf
Ec330B Lc Excavator Volvo Service Repair.pdfEc330B Lc Excavator Volvo Service Repair.pdf
Ec330B Lc Excavator Volvo Service Repair.pdf
 
What Exactly Is The Common Rail Direct Injection System & How Does It Work
What Exactly Is The Common Rail Direct Injection System & How Does It WorkWhat Exactly Is The Common Rail Direct Injection System & How Does It Work
What Exactly Is The Common Rail Direct Injection System & How Does It Work
 
一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理
一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理
一比一原版(AUT毕业证)奥克兰理工大学毕业证成绩单如何办理
 
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
 
5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention
5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention
5 Warning Signs Your BMW's Intelligent Battery Sensor Needs Attention
 

AUTOSAR 403 CAN Stack

  • 2. OVERVIEW • AUTOSAR CAN Stack • Overview. • Included modules. • From COMM_NO_COMMUNICATION to COMM_FULL_COMMUNICATION. • Transmission request. • Receive indication.
  • 3. AUTOSAR CAN STACK: OVERVIEW Autosar VFB • The integration of functions from different suppliers is established through a virtual functional bus. • Allow virtual integration between SW-c as long as communication mechanism is defined. • Collection of all communication mechanism. • Interfaces on an abstract level that allow s/w design regardless the target h/w. RTE • Realization of VFB for a specific ECU. • It mange the communication inter/intra ECU.
  • 4. AUTOSAR CAN STACK: OVERVIEW Communication Stack for CAN • COM: - Transfer signals from, and to, RTE. - Pass signals to CANTP or PDUR depending on the used service. • PDU-Router: - Route I-PDUs between the following modules: Communication interface (CANIF), Transport protocol (CANTP), Diagnostics (DCM)
  • 5. AUTOSAR CAN STACK: OVERVIEW Communication Stack for CAN • CANIF: - It abstracts the interface regardless Location of the driver (internal/external). • CANTP: - Segment and reassemble data Longer than 8 bytes. • CAN Driver: Abstraction for the CAN controller hardware.
  • 6. AUTOSAR CAN STACK: OVERVIEW Communication Stack for CAN • CANSM: Change communication mode as requested. • CANTRCV: Control external CAN transceiver hardware, It observe the bus and provide physical network diagnostics.
  • 7. AUTOSAR CAN STACK: OVERVIEW Included modules from service layer: • ComM: Propagate requested communication mode to CanSM • BSWM: Forward user requests to ComM and report communication state to the user. • ECUM: Detect passive wake up and initialize related modules.
  • 9. Active VS Passive Wake-up • Active wake-up: when the current ECU is the source of the wake-up signal (sensor). • Passive wake-up: when another ECU is the source of the wake-up signal. In this case the ECU should receive NM frames to keep the ECU in the passive wake-up mode. AUTOSAR CAN STACK: FROM COMM_NO_COMMUNICATION TO COMM_FULL_COMMUNICATION
  • 10. Modules interaction 1. For active wake-up User request communication mode. 2. ComM propagate requested mode to CANSM. 3. CANSM change the current mode to the requested mode by calling CANIF APIs. 4. CANIF contact the CAN driver which write values in the CAN controller register to go the requested communication mode. 5. The CAN controller send mode indication signal to upper modules till it is back to ComM. AUTOSAR CAN STACK: FROM COMM_NO_COMMUNICATION TO COMM_FULL_COMMUNICATION
  • 11. 6- ComM notifies the BSWM to manage what will happen next to start data transmitting. AUTOSAR CAN STACK: FROM COMM_NO_COMMUNICATION TO COMM_FULL_COMMUNICATION SWC1 RTE COMM CANSM CANIF CAN Controller Controller Red arrows indicate request direction Blue arrows indicate confirmation messages direction
  • 12. AUTOSAR CAN STACK: FROM COMM_NO_COMMUNICATION TO COMM_FULL_COMMUNICATION APIs and State transitions: COMM CANSM CANIF CAN Hardware (controller) Start State COMM_NO_COM MUNICATION S_RNOCO: S_CAN_TRCV_N ORMAL CANIF_CS_INIT: CANIF_CS_STOP PED CAN_READY STOP/SLEEP Called APIs CanSM_RequestC omMode(Network Handle,ComM_Mo de:=COMM_FULL _COMMUNICATIO N) CanIf_SetControlle rMode(CanSMCon trollerId, CANIF_CS_STAR TED) AND CanIf_SetPduMod e(CanSMControlle rId, CANIF_SET_ONLI NE) Can_SetController Mode (Controller, CAN_T_STARTE D). request CAN controller mode transition to START() Callback fn. Configurable confirmation to BswM. ComM_BusSM_M odeIndication(Cha nnel,ComMode: =COMM_FULL_C OMMUNICATION) CanSM_Controller ModeIndication(uin t8, COMM_FULL_CO MMUNICATION) CanIf_ControllerM odeIndication End State COMM_FULL_CO MMUNICATION S_FUCO: S_NO_BUS_OFF CANIF_CS_INIT: CANIF_CS_STAR TED CAN_READY START
  • 13. AUTOSAR CAN STACK: FROM COMM_NO_COMMUNICATION TO COMM_FULL_COMMUNICATION Modules state machine: ComM CANSM CANIF CAN
  • 14. Modules interaction 1. When BSWM receive confirmation signal that the channel is ready it notifies the COM to take the massage from the RTE. 2. COM propagate the IPDU to PDUR which in turn forward the message to the corresponding interface of TP modules (in our case if the message is loner than 8 bytes will be forwarded to CANTP else to CANIF). 3. CANIF sends data to the CAN driver which writes data in the CAN controller registers. 4. After successful transmission TxConfirmation signal is sent to upper layers. AUTOSAR CAN STACK: TRANSMISSION REQUEST
  • 15. Modules interaction SWC1 RTE COM PDUR CANIF CAN Controller Controller Red arrows indicate request direction Blue arrows indicate confirmation messages direction AUTOSAR CAN STACK: TRANSMISSION REQUEST
  • 16. AUTOSAR CAN STACK: TRANSMISSION REQUEST COM PduR CANIF CAN Hardware (controller ) Called APIs PduR_ComTrans mit CanIf_Transmit Can_write Copy LPDU to harware Callback fn. Rte_COMCbkTAc k_signalX() Com_TxConfirmati on PduR_CanTxConfi rmation CanIf_CanTxConfi rmation Tx interrupt APIs and State transitions:
  • 17. Modules interaction To detect received data Interrupt or polling can be used Interrupt: The controller will notify CANIF when data is received Polling: CANIF will periodically check weather data is received or not. For both modes after the CANIF detects that there is received data it will notify upper modules to read data. After reaching the COM the received data will be available to be called by the RTE when required. AUTOSAR CAN STACK: RECEIVE INDICATION
  • 18. AUTOSAR CAN STACK: RECEIVE INDICATION COM PduR CANIF CAN Hardware (controller ) Callback fn. Rte_COMCbk_sig nalX() Com_RxIndication PduR_<module>R xIndication CanIf_RxIndication Receive Interrupt() Called APIs CanIf_ReadRxNoti fStatus() CanIf_ReadRxPdu Data Read data from CANIF Rx buffer() APIs and State transitions: