Sunteți pe pagina 1din 16

osCAN

Embedded Real-time Operating Systems

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.

V 1.01 2010-12-14
osCAN
Task Management - 1

Task 1 Task 2 Task 3

Sensor activate
Control activate
Actuator
loop
IO Driver
1

Task 1 Task 2 Task 3

0 ms 10 ms 20 ms 30 ms

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 2
osCAN
Task Management - 2

Interrupt Task 2 Task 3 Task 4

CAN bus activate


Control activate
Actuator activate
Control
loop loop
IO Driver
1 2

Interrupt Task 4 Interrupt

Task 2 Task 2
Task 1 (every 30 ms) Task 3 Task 1 (every 30 ms) Task 3

0 ms 10 ms 20 ms 30 ms 40 ms 50 ms 60 ms

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 3
osCAN
Task Management - 3

Interrupt Task 2 Task 3 Task 4

CAN bus activate


Control activate
Actuator activate
Control
loop loop
IO Driver
1 2

Interrupt Task 4 Interrupt

Task 2 Task 2
(every 30 ms) Task 3 (every 30 ms) Task 3

0 ms 10 ms 20 ms 30 ms 40 ms 50 ms 60 ms

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 4
osCAN
Elements

Dispatcher

Interrupt System
Controller Timer
Task Switching

Interrupt Task Task

activate activate
CAN Control Actuator
loop (PWM)

Event
synchronize

control
Resource access Event

Data Timeout Alarm


Message

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 5
osCAN
Elements

! Task & Interrupt Management


! Multi-Tasking
! full, non and mixed preemption
! Interrupt disabling / enabling
! Task activation / termination

! Time Management (Alarm Management)


! Single-shot
! Cyclic repetition

! Task Synchronization (Event Management)

! Access Synchronization
! Resource Management
! Message Passing

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 6
osCAN
Basic Characteristics

! Very small, ruggedized kernel (1 to 10 kB ROM)

! Static configuration
! No dynamic object creation
! No administration shell
! Fast boot time (msec)
! Small memory foot print

! Standardized (OSEK/VDX)

! Proven reliability;
employment in many automotive control units since 2000

! Implementations are available for many micro processor families

! Drivers and protocols available as add-ons

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 7
osCAN
Add-ons

CANbedded - Protocols and drivers


! CAN
! LIN
! FlexRay
! Ethernet (TCP/IP)

Diagnostic - Protocols

CANflash - Flash Bootloader


Application

CANbedded
Operating Flash
Communication and
System Programming
Diagnostics

Customer specific
hardware
CAN
LIN
FlexRay
Ethernet/IP

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 8
osCAN
Special Features

Operating System

Stack check Template generation


Check for stack overflow (task, event, system) Generated task template file

Internal Trace Optimized alarm management


Trace API calls, configurable size Minimum timer interrupt runtime

Timer Initialization Extended error checking


MCU standard timer setup e.g. consistence of OS data

Configuration report generator API is configurable


HTML based documentation API functions can be switched on or off

Component Management Generator in batch mode


Multiple OIL files for one application Run generator via batch file

! Delivered as source code


! Small, efficient and stable kernel
! Broad availability, many microcontrollers supported>>

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 9
osCAN
“Hidden” Values

More capacity By utilizing Vector's employees

Less risk Since Vector does advanced development

Lower costs Because of distribution to multiple users

Proven software Due to multiple, widespread use

Better delivery time Because of specialized production process

Maintenance Assumed by Vector

Warranty Assumed by Vector

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 13
osCAN
Services

Vector offers a complete range of services to support the usage of the


operating systems

Training
Workshops to explain the usage of OSEK-OS and the design of applications.

Updates
Offering software updates for
! specification changes
! support of a new derivative or compiler version

Support
Helping a customer with the handling of osCAN in a project,
e.g. help with the installation (set up) or configuration.

Consulting
Assistance with the design and the architecture of your software

Custom-specific solutions
Implementation of an application as a customer’s subcontractor

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 14
osCAN
Quality and Certification

Vector Informatik’s quality approach


ISO 9001
! Vector Informatik is already ISO 9001 certified since 1998.
Spice
! The development process of the operating systems has a process maturity congruent
with Spice Level 3.
! This has been attested to Vector Informatik by an assessment conducted by
customers.

OSEK/VDX
! Vector’s operating system osCAN is compliant with the OSEK/VDX standard.
! The certification test suite is a standard element of the development process.
! Vector Informatik is an active member in the standardization committees of
OSEK/VDX.

Spice OSEK/VDX
ISO 9001
Level 3 Test suite

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 15
osCAN
Benefits

Technical Benefits

! Small and fast OS kernel due to static architecture


! full pre-emptive operating system
! Short booting times for fast power up of automotive SW
! Automated system set-up
! Complete support of interrupt controllers and even nested interrupts
! Complete setup of system timers
! Timer are selectable out of a list of available hardware timers

! Available for numerous processor cores and compilers


! Seamless integration in Vector’s tool chain
e.g. CANoe helps during the complete development process
! TimingAnalyzer visualizes the behavior of tasks and resources even during
the design time
! Graphical User Interface for fast configuration

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 16
osCAN
Development Process

ORTI-File Configurator / Generator OIL-File

Task Task
Event Event
Ressource Ressource
Mode Mode

Application Editor void Task (void)


{
void Task (void)
{
variable++; variable++;
function(); function();
void Task (void) next++: next++:
{ if (next) if (next)
variable++; do this; do this;
function(); terminate() terminate()
next++: } }
if (next)
do this;
terminate()
}
Compiler Generated
OS-Source „OS-Core“
Linker
Code

Debugger
Emulator
Target

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 17
osCAN
Presentation

OIL Configurator - a Simple, intuitive to use, flexible Tool

HTML based configuration list Code skeleton to start with

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 18
Thank you for your attention.

For detailed information about Vector


and our products please have a look at:
www.vector.com

Author:
Helmut Brock
Vector Informatik GmbH
Ingersheimer Str. 24
70499 Stuttgart

© 2010. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V 1.01. 2010-12-14.

Slide: 19

S-ar putea să vă placă și