Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for increasing transportability of AUTOSAR (AUTomotive Open System Architecture) OS MCAL driving code

A driver code and portability technology, applied in the direction of program startup/switching, multi-program device, etc., can solve the problems of complicated driver module transplantation process, weak code reusability, long module development cycle, etc., to maintain scalability performance, shorten the development cycle, and reduce the effect of transplantation workload

Inactive Publication Date: 2012-09-19
ZHEJIANG UNIV
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The MCAL driver code is related to the electronic control unit (ECU) hardware. The standard function interface specified in AUTOSAR is functionally deterministic. The traditional MCAL driver usually puts all the code in one file, and the code can be reused. The compatibility is extremely weak, and the transplantation process of the driver module under different ECU hardware is complicated and the workload is heavy
However, the functions of these functions may not be completely ECU-related. During the completion of the entire function function, only part of the code may need to access the register. In the current MCAL driver code, there are still the following problems: because the driver code is usually implemented as a whole, the code Weak reusability and poor portability, the porting process of driver modules under different ECU hardware is complicated, the workload is heavy, and the module development cycle is long

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for increasing transportability of AUTOSAR (AUTomotive Open System Architecture) OS MCAL driving code
  • Method for increasing transportability of AUTOSAR (AUTomotive Open System Architecture) OS MCAL driving code
  • Method for increasing transportability of AUTOSAR (AUTomotive Open System Architecture) OS MCAL driving code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0023] The traditional AUTOSAR OS MCAL driver usually implements all codes in one file, and the interface function conforming to the AUTOSAR standard is named Module_Function.

[0024] Divide the original AUTOSAR OS MCAL driver code structure into two layers, Module.c and Module_Hw.c. Module.c is mainly responsible for the implementation related to the AUTOSAR standard interface, and Module_Hw.c is mainly responsible for the implementation related to the specific hardware platform.

[0025] (1) The Module.c file implements the Module_Function function that complies with the AUTOSAR standard. It internally performs standard error checking and maintains some global variables, and is responsible for calling the Module_Hw.c code layer.

[0026] (2), the Module_Hw.c file implements the specific interface function called by Module.c. This layer is m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The method discloses a method for increasing the transportability of an AUTOSAR (AUTomotive Open System Architecture) OS MCAL driving code. The method comprises the following steps of: dividing an AUTOSAR OS MCAL driving code structure into Module.c and Module_Hw.c, wherein the Module.c realizes a Module_Function being in line with the AUTOSART standard code, and the Module_Hw.c realizes a special interface function called by the Module.c; and applying the driving code to ECU (Electronic Control Unit) hardware, judging whether the ECU hardware supports the function realized by the driving code, if yes, setting a value of a register or reading the value of the register, and encapsulating the operation of the register; and the method has the advantages that the driving code and parts related to the hardware are abstracted, the definition of the code is higher, the transportability of the driving code is enhanced, the transportability workload is reduced, the development period is shortened, and the like.

Description

technical field [0001] The invention relates to the adaptability of an embedded real-time operating system to multiple platforms, and is a technical method for improving the portability of AUTOSAR OS MCAL driving codes. Background technique [0002] AUTOSAR (AUTomotive Open System Architecture) is a standardized open automotive software architecture. AUTOSAR OS is an embedded real-time operating system that conforms to the AUTOSAR standard, and is a statically configured multi-task single-processor RTOS. The AUTOSAR standard referred to in the present invention is version 3.0.1, and it is implemented on the SmartOSEK OS, an OS conforming to the AUTOSAR standard independently developed by Zhejiang University. [0003] Transplanting the driver code is a necessary work for transplanting AUTOSAR, and the workload is very heavy, and many tasks are repeated on different hardware platforms. The MCAL driver code is related to the electronic control unit (ECU) hardware. The standar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48
Inventor 李红杨国青刘子阳金曦张成硕姜旭锋吴朝晖
Owner ZHEJIANG UNIV