Method and device for automatically generating variables based on SHELL script

A technology of automatic generation and variables, applied in the direction of program control devices, etc., can solve the problems of affecting the normal use of ECU, undefined variables, time consumption, etc., and achieve the effect of avoiding variable declaration errors, speeding up debugging, and reducing workload

Active Publication Date: 2014-06-18
BEIQI FOTON MOTOR CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the more commonly used method is to define variables at the bottom layer, and declare the variable attributes before use at the upper layer. When the number of projects gradually increases, the variables to be used will increase in units of hundreds. At the same time, once the variables need to be adjusted during the development process At the same time, the upper layer and the lower layer need to be modified synchronously. Once the upper layer and the lower layer are inconsistent, it will lead to undefined or repeated definitions of variables during integration.
At this time, manual debugging is required, which consumes too much time and affects the normal use of the ECU.

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 and device for automatically generating variables based on SHELL script
  • Method and device for automatically generating variables based on SHELL script
  • Method and device for automatically generating variables based on SHELL script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0020] In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", " The orientations or positional relationships indicated by "vertical", "horizontal", "top", "bottom", "inner" and "outer" are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and Simplified descriptions, rather than indicating or implying that the device or element refe...

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 provides a method for automatically generating variables based on a SHELL script. The method comprises the steps of establishing a configuration file with a preset name in a preset route, orderly writing variables in the configuration files according to a predetermined criteria, translating the configuration file by virtue of the SHEEL script according to a predetermined criteria so as to generate a first file and a second file, and integrating upper-layer software, bottom-layer software, the first file and the second file according to Makefile so as to obtain a target file, wherein the upper-layer software and bottom-layer software are capable of obtaining variables from the target files so as to invoke the variables. The method is capable of improving the development efficiency of software and thus increasing the debugging and loading progress of an ECU (Electronic Control Unit).

Description

technical field [0001] The invention relates to the technical field of automobile manufacturing, in particular to a method and device for automatically generating variables based on a SHELL script. Background technique [0002] In the current field of automotive electronic control software development, the general development method is matlab for strategy software development, and various debugging software for bottom-level software development. Strategy development and bottom-level development are carried out on their own independent development platforms, and the two modules interact through global variables. . Global variables are often defined by one party and used by the other party after declaration. The two modules are often developed by different people. If the communication is not timely, it is easy to generate errors of undefined variables or repeated definitions of variables when integrating links. Affect the integration progress of the integrators, resulting in...

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/44
Inventor 余军
Owner BEIQI FOTON MOTOR CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products