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

Vehicle-mounted control software system policy code and underlying code integration method

A low-level code and integration method technology, applied in the automotive field, can solve problems such as low work efficiency, high coupling, and error-prone, and achieve the effect of improving efficiency and reliable code

Inactive Publication Date: 2016-07-27
LIANCHUANG AUTOMOBILE ELECTRONICS
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. Many professional tools are used and the cost is high;
[0006] 2. In the process of code integration, a large amount of manual code must be added, which is low in work efficiency and prone to errors;
[0007] 3. The coupling is too high. Once the system strategy or hardware platform changes, the underlying driver and software integration tool chain must be modified accordingly.

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
  • Vehicle-mounted control software system policy code and underlying code integration method
  • Vehicle-mounted control software system policy code and underlying code integration method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Such as figure 2 As shown, the vehicle-mounted control software system strategy code and the underlying code integration method provided by the present invention are based on the Matlab software implementation, and the PWM (pulse width modulation) output is set as an example, including the following steps:

[0026] Write the underlying driver code to realize setting PWM. For example: the function name is "uint8IFL_Pwm_SetPeriodAndDuty(uint16Channel, uint32Period, uint16Duty)

[0027] According to the underlying driver interface, create an S-function in Matlab, and the function name is sfun_dcm21c_pwm;;

[0028] Based on the Matlab package S-function, the subsystem is named pwm_out, and the package parameter pwm_channel is set according to the underlying driver interface of the created subsystem;

[0029] Create a Matlab library file, the Matlab library file contains all the subsystems created in the above steps; add the module pwm_out to the Matlab library file

[0...

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 invention discloses a Matlab-based vehicle control software integration method, comprising the following steps: creating an S-function in Matlab according to the bottom-level drive interface; encapsulating the S-function in the Matlab; creating a subsystem and setting packaging parameters according to the bottom-level drive interface Encapsulate S-function; create Matlab library file, which contains all the subsystems created in the above steps; build a system strategy model in Matlab, and use the above-created subsystem for all models that need to call the underlying software driver; use Matlab RTW function Perform code generation, and use ert_make_rtw_hook.m to control the entire software integration process and generate the final target file. The integration method of the invention can reduce manual code input links, save development costs and improve work efficiency.

Description

technical field [0001] The invention relates to the field of automobiles, in particular to a method for integrating strategy codes and underlying codes of a vehicle control software system based on Matlab software. Background technique [0002] At present, the functional development of the vehicle controller mainly includes two parts: system strategy and underlying driver. The system strategy generally implements logical functions through modeling, and the underlying driver is mainly realized through chip driver tool generation and manual code, and then through software integration. Realize the automatic code generation of the model, the docking of the system policy code and the underlying code, and compile and generate the final target file. [0003] Traditional software integration is to compile the model into a C code file through a professional tool (for example: Targetlink), and add a large amount of manual code on the basis of the generated code to realize the docking ...

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
IPC IPC(8): G06F9/44
Inventor 徐新枫彭思崴
Owner LIANCHUANG AUTOMOBILE ELECTRONICS