OSEK

From HandWiki
Short description: Specifications for embedded operating systems within automotives

OSEK (Offene Systeme und deren Schnittstellen für die Elektronik in Kraftfahrzeugen; English: "Open Systems and their Interfaces for the Electronics in Motor Vehicles") is a standards body that has produced specifications for an embedded operating system, a communications stack, and a network management protocol for automotive embedded systems.[1][2][3][4] It has produced related specifications, namely AUTOSAR. OSEK was designed to provide a reliable standard software architecture for the various electronic control units (ECUs) throughout a car.

OSEK was founded in 1993 by a German automotive company consortium (BMW, Robert Bosch GmbH, DaimlerChrysler, Opel, Siemens, and Volkswagen Group) and the University of Karlsruhe.[5][6] In 1994, the French cars manufacturers Renault and PSA Peugeot Citroën, which had a similar project called VDX (Vehicle Distributed eXecutive), joined the consortium. Therefore, the official name was OSEK/VDX and OSEK was registered trademark of Continental Automotive GmbH (until 2007: Siemens AG).[7]

Standards

OSEK is an open standard, published by a consortium founded by the automobile industry.[8][9][10] Some parts of OSEK are standardized in ISO 17356.[11][12]

  • ISO 17356-1:2005 Road vehicles—Open interface for embedded automotive applications—Part 1: General structure and terms, definitions and abbreviated terms
  • ISO 17356-2:2005 Road vehicles—Open interface for embedded automotive applications—Part 2: OSEK/VDX specifications for binding OS, COM and NM
  • ISO 17356-3:2005 Road vehicles—Open interface for embedded automotive applications—Part 3: OSEK/VDX Operating System (OS)
  • ISO 17356-4:2005 Road vehicles—Open interface for embedded automotive applications—Part 4: OSEK/VDX Communication (COM)
  • ISO 17356-5:2006 Road vehicles—Open interface for embedded automotive applications—Part 5: OSEK/VDX Network Management (NM)
  • ISO 17356-6:2006 Road vehicles—Open interface for embedded automotive applications—Part 6: OSEK/VDX Implementation Language (OIL)

before ISO

OSEK VDX Portal[13]

  • OSEK/VDX Operating system(OS) : "event-triggered" Real-time kernel
  • OSEK/VDX Communication(COM) : Application level communication protocol
  • OSEK/VDX Newark Management(NM) : Network management
  • OSEK/VDX OSEK Implementation Language(OIL) : Offline application description and configuration language
  • OSEK/VDX OSEK RTI(ORTI) : Debugging interface
  • OSEK/VDX Binding Specification: Binding document
  • MODISTARC
    • OSEK/VDX Conformance Testing Methodology
    • OSEK/VDX Operating System Test Plan
    • OSEK/VDX Operating System Test Procedure
    • OSEK/VDX Communication Test Plan
    • OSEK/VDX Communication Test Procedure
    • OSEK/VDX Communication Test Suites
    • OSEK/VDX Network Management Test Plan
    • OSEK/VDX Network Management Test Procedure
    • OSEK/VDX direct Network Management Test Suites
    • OSEK/VDX indirect Network Management Test Suites

OSEK Functioning

The OSEK standard specifies interfaces to multitasking functions—generic I/O and peripheral access—and thus remains architecture dependent. OSEK is expected to run on microcontroller without memory management unit (MMU), which is favored for safety-critical systems such as cars, therefore features of an OSEK implementation will be usually configured at compile-time. The number of application tasks, stacks, mutexes, etc. is statically configured; it is not possible to create more at run time. OSEK recognizes two types of tasks/threads/compliance levels: basic tasks and enhanced tasks. Basic tasks never block; they "run to completion" (coroutine). Enhanced tasks can sleep and block on event objects. The events can be triggered by other tasks (basic and enhanced) or interrupt routines. Only static priorities are allowed for tasks. First In First Out (FIFO) scheduling is used for tasks with equal priority. Deadlocks and priority inversion are prevented by priority ceiling (i.e. no priority inheritance).

The specification uses ISO/ANSI-C-like syntax; however, the implementation language of the system services is not specified. An Application Binary Interface (ABI) is also not specified.

OSEK-OS scheduling can be configured as:[14][15][16]

  • Preemptive, a task can always be preempted by means of a higher priority task
  • Non-preemptive, a task can only be preempted in prefixed compile-time points (cooperative scheduling)
  • Mixed mode scheduling
  • Groups of tasks (cooperative)

State of the art

AUTOSAR

Currently the AUTOSAR consortium reuses the OSEK specifications as part of the Classic Platform.[17]

The operating system is a backwards compatible superset of OSEK OS which also covers the functionality of OSEKtime, and the communication module is derived from OSEK COM.[18] OSEKtime specifies a standard for optional time-triggered real-time operating systems.[19] If used, OSEKtime triggered callbacks run with higher priority than OSEK tasks.

Research

There is also a limited amount of active research, e. g. in the area of systems engineering and OSEK / VDX RTOS[20] or in relation to the compatibility between OSEK and AUTOSAR.[21]

Quality

In a 48-page report from 2003 by the Software Engineering Institute (SEI) at Carnegie Mellon University (CMU), the specifications were examined and possible weaknesses in the areas of alarm and event mechanisms were identified with possible solutions. The potential of OSEK was also mentioned.[22][23]

Implementations

Note: A limited number of implementations and vendors exist. Most products are only commercially sold and licensed, others are freely available with open-source license for a limited number of controllers. See also: Comparison of real-time operating systems.

Table of OSEK / AUTOSAR implementations
Vendor Products License Targets Other information
Elektrobit Automotive GmbH (part of Continental AG)[24]
  • EB tresos Safety OS[25]
  • EB tresos AutoCore OS
Proprietary Infineon AURIX TC38XQ, etc. Former product names: ProOSEK and ProOSEK/time by 3SOFT (3SOFT was purchased by Elektrobit)
ERIKA Enterprise[26]
  • ERIKA v2[27]
  • ERIKA v3
GPL or GPL linking exception or Commercial[28] ARM Cortex, Intel x86, Infineon AURIX, etc.[29] Officially certified on ARM Cortex-M4 and Infineon TriCore AURIX
ETAS Group (part of Robert Bosch GmbH)[30]
  • RTA-OS
  • RTA-OSEK
Proprietary Various architectures
NXP Semiconductors (former Freescale)
  • AUTOSAR 3.0, 4.0, 4.2, 4.3
Proprietary PowerPC 5xxx (e. g. e200), S12/S32, etc.[31] Former product names: OSEKturbo
Siemens (through acquisition of Mentor Graphics's Automotive arm)
  • Capital VSTAR OS[32]
Proprietary Various architectures
Vector Informatik
  • MICROSAR.OS[33]
  • MICROSAR Safe
Proprietary Various architectures Supporting software: DaVinci Configurator Pro

Open-source derivates

Note: Open-source developments are often very limited in scope (targets, conformance classes, characteristics) and are not verified against the specifications unless told otherwise.

  • ArcCore AUTOSAR OS,[34] by Arctic Core (now part of Vector Informatik)
    • License: Dual GPL/Commercial
  • Firmware de la CIAA[35] (former FreeOSEK), specifically Firmware v1
  • OSEK, by Chalandi Amine.
  • Lego Mindstorms implementations:
  • TOPPERS Project (Toyohashi OPen Platform for Embedded Real-time Systems)
    • Release: ATK1[37]
    • Release: ATK2[38]
    • Targets: m68k, sh1, sh2, sh3, h8, arm 4, m32r, MicroBlaze, tms320c54x, xstormy16, mips3, Nios II, v850, rh850
    • License: MIT or TOPPERS License
  • Trampoline by IRCCyN.
    • Targets: ARM Cortex, RISC-V, PowerPC, POSIX, AVR, ARM 32bits, MSP430/CPUX, Renesas G4MH
    • License: GPLv2

Defunct, not active, unknown status

Further reading

See also

References

  1. Evertsson, Pontus (2004). "Investigation of Real-Time Operating Systems: OSEK/VDX and Rubus". MSC Theses. ISSN 0280-5316. http://lup.lub.lu.se/student-papers/record/8848033. 
  2. Foster, Neale; Schwab, Markus (2000-03-06). "Real-Time 32-Bit Microcontroller with OSEK/VDX Operating System Support". SAE Technical Paper Series (Warrendale, PA: SAE International) 1. doi:10.4271/2000-01-1243. http://dx.doi.org/10.4271/2000-01-1243. 
  3. Waszniowski, Libor; Hanzalek, Zdenek. Analysis of Osek/Vdx Based Automotive Applications. 
  4. "OSEK" (in en-US). https://piembsystech.com/osek/. 
  5. John, D. (November 1998). "OSEK/VDX history and structure". IEE Seminar OSEK/VDX Open Systems in Automotive Networks. 1998. pp. 2/1–214. doi:10.1049/ic:19981073. https://ieeexplore.ieee.org/document/744162. 
  6. Handbuch Fahrerassistenzsysteme Grundlagen, Komponenten und Systeme für aktive Sicherheit und Komfort. Hermann Winner, Stephan Hakuli, Felix Lotz, Christina Singer (3., überarb. u. erg. Aufl. 2015 ed.). Wiesbaden. 2015. pp. 115 ff. ISBN 978-3-658-05734-3. OCLC 906179237. https://www.worldcat.org/oclc/906179237. 
  7. "OSEK VDX Portal - Trademark Information". 2011-08-25. http://portal.osek-vdx.org/index.php?option=com_content&task=view&id=6&Itemid=9. 
  8. OSEK/VDX Operating System Specification 2.2.3 https://www.irisa.fr/alf/downloads/puaut/TPNXT/images/os223.pdf
  9. Roy, L. (November 1998). "ISO and OSEK harmonisation efforts". IEE Seminar OSEK/VDX Open Systems in Automotive Networks. 1998. pp. 3/1–3/3. doi:10.1049/ic:19981074. https://ieeexplore.ieee.org/document/744163. 
  10. Herausgeber, Winner, Hermann 1955- Herausgeber Hakuli, Stephan Herausgeber Wolf, Gabriele (7 October 2011). Handbuch Fahrerassistenzsysteme Grundlagen, Komponenten und Systeme für aktive Sicherheit und Komfort ; mit 45 Tabellen. Vieweg+Teubner Verlag. ISBN 978-3-8348-1457-9. OCLC 759826017. http://worldcat.org/oclc/759826017. 
  11. "openOSEK : ISO17356 Standards Overview". http://openosek.org/tikiwiki/tiki-index.php?page=ISO17356+Standards+Overview. 
  12. "ISO 17356-2:2005" (in en). https://www.iso.org/cms/render/live/en/sites/isoorg/contents/data/standard/03/30/33007.html. 
  13. "OSEK VDX Portal - Deprecated Specification". http://portal.osek-vdx.org/index.php?option=com_content&task=view&id=11&Itemid=14. 
  14. "OSEK – PiEmbSysTech" (in en-US). https://piembsystech.com/osek/. 
  15. Hong, J.; Kum, D.; Jin, S. (November 2011). "Analysis of the scheduler development techniques for the optimization of the OSEK OS". 2012 9th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI). pp. 614–615. doi:10.1109/URAI.2012.6463096. ISBN 978-1-4673-3112-8. https://ieeexplore.ieee.org/document/6463096. 
  16. Chung, Y.; Kim, D.; Choi, Y. (December 2017). "Modeling OSEK/VDX OS Requirements in C". 2017 24th Asia-Pacific Software Engineering Conference (APSEC). pp. 398–407. doi:10.1109/APSEC.2017.46. ISBN 978-1-5386-3681-7. https://ieeexplore.ieee.org/document/8305962. 
  17. "Classic Platform" (in en). https://www.autosar.org/standards/classic-platform/. 
  18. Hofer, Wanja; Danner, Daniel; Muller, Rainer; Scheler, Fabian; Schroder-Preikschat, Wolfgang; Lohmann, Daniel (December 2012). "Sloth on Time: Efficient Hardware-Based Scheduling for Time-Triggered RTOS". 2012 IEEE 33rd Real-Time Systems Symposium. San Juan, PR, USA: IEEE. pp. 237–247. doi:10.1109/RTSS.2012.75. ISBN 978-1-4673-3098-5. https://ieeexplore.ieee.org/document/6424807. 
  19. Poledna, Stefan; Glück, Martin; Tanzer, Christian; Boutin, Samuel; Dilger, Elmar; Führer, Thomas; Ebner, Christian; Fuchs, Emmerich et al. (2000-03-06). "OSEKtime: A Dependable Real-Time Fault-Tolerant Operating System and Communication Layer as an Enabling Technology for By-Wire Applications" (in English). SAE Technical Paper Series. 1. Warrendale, PA. doi:10.4271/2000-01-1051. https://www.sae.org/publications/technical-papers/content/2000-01-1051/. 
  20. Macher, Georg; Atas, Muesluem; Armengaud, Eric; Kreiner, Christian (2015-01-22). "Automotive real-time operating systems: a model-based configuration approach" (in en). ACM SIGBED Review 11 (4): 67–72. doi:10.1145/2724942.2724953. ISSN 1551-3688. https://dl.acm.org/doi/10.1145/2724942.2724953. 
  21. Lee, Y. H.; Kim, Jin Ho; Jeon, Jae Wook (2013). "Applying AUTOSAR Network Management in OSEK/VDX for Compatibility of AUTOSAR and OSEK/VDX" (in en). Proceedings of the FISITA 2012 World Automotive Congress. Lecture Notes in Electrical Engineering. 194. Berlin, Heidelberg: Springer. pp. 693–704. doi:10.1007/978-3-642-33829-8_65. ISBN 978-3-642-33829-8. https://link.springer.com/chapter/10.1007%2F978-3-642-33829-8_65. 
  22. Feiler, Peter H. (2018). Real-Time Application Development with OSEK: A Review of the OSEK Standards. pp. 168866 Bytes. doi:10.1184/R1/6582899.V1. https://figshare.com/articles/Real-Time_Application_Development_with_OSEK_A_Review_of_the_OSEK_Standards/6582899/1. 
  23. "Real-Time Application Development with OSEK: A Review of the OSEK Standards" (in en). 31 October 2003. https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=6383. 
  24. "EB tresos BSW" (in en-US). https://www.elektrobit.com/products/ecu/eb-tresos/bsw/. 
  25. "EB tresos operating systems" (in en-US). https://www.elektrobit.com/products/ecu/eb-tresos/operating-systems/. 
  26. "Erika Enterprise RTOS v3" (in en-US). 2021-07-29. https://www.erika-enterprise.com/. 
  27. "v2 vs v3" (in en-US). 2021-07-29. https://www.erika-enterprise.com/index.php/erika3/v2-vs-v3.html. 
  28. "Licensing" (in en-US). 2021-07-29. https://www.erika-enterprise.com/index.php/erika3/licensing.html. 
  29. "Supported architectures" (in en-US). 2021-07-29. https://www.erika-enterprise.com/. 
  30. "RTA-OS" (in en). https://www.etas.com/en/products/rta_os.php. 
  31. "AUTOSAR Software Architecture | NXP Semiconductors". https://www.nxp.com/design/automotive-software-and-tools/autosar:AUTOSAR-HOME. 
  32. "Streamlined ECU software development". https://www.plm.automation.siemens.com/global/en/resource/streamlined-ecu-software-development/93853. 
  33. "MICROSAR | Vector" (in en). https://www.vector.com/int/en/products/products-a-z/embedded-components/microsar/. 
  34. "AUTOSAR tools and software for the automotive industry - ARCCORE". https://www.arccore.com/. 
  35. "Proyecto CIAA". http://www.proyecto-ciaa.com.ar/. 
  36. "nxtOSEK/JSP: ANSI C/C++ with OSEK/μITRON RTOS for LEGO MINDSTORMS NXT". http://lejos-osek.sf.net/. 
  37. "TOPPERS Project/ATK1". https://www.toppers.jp/atk1.html. 
  38. "TOPPERS Project/ATK2". https://www.toppers.jp/atk2.html. 
  39. "Free OSEK real-time kernel for dsPIC | Microchip". https://www.microchip.com/forums/m101804.aspx. 
  40. "COMASSO". https://www.comasso.org/. 

External links