Engine control system and control software starting method
By adopting the shared operating system kernel and functional module deployment strategy of multi-core processors in the engine control system, the difficulty and high cost of software development under multi-core processors are solved, and efficient software development and operating system airworthiness are achieved.
Patent Information
- Application Number
- CN202010619282.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-06-30
AI Technical Summary
In the field of engine control, the widespread application of multi-core processors has made software development more difficult. Traditional multi-core software architectures (SMP and AMP) have problems with operating system airworthiness and high development costs.
An engine control system and software startup method based on multi-core processors are adopted. By optimizing the architecture at the operating system level, each processor core shares the same operating system core, and the functional modules in the application are deployed on different processor cores. , using the boot program to initialize and copy the operating system, to achieve independent operation and task scheduling of the processor core.
It reduces the airworthiness difficulty of the operating system and the development cost of application software, improves software development efficiency, reduces the development complexity under the AMP architecture to that of the SMP architecture, and avoids the resource competition and synchronization problems of the SMP architecture.
Smart Images

Figure CN114090097B_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of engine control systems and software development, and in particular to an engine control system and an engine control software starting method based on a multi-core processor. Background Art
[0002] With the development of semiconductor technology, more and more single-core processors are gradually facing discontinuation, and the market share of multi-core processors is gradually increasing. In the field of engine control, FADEC (Full Authority Digital Engine Control) has increasingly adopted multi-core processors as its computing platform. Due to its improved degree of integration, multi-core processors not only bring performance optimization, but also can further reduce the size, weight, power consumption, etc. of the controller. But at the same time, the development and widespread application of multi-core processors have also brought about the increase in the difficulty of software development and caused problems such as high airworthiness difficulty. The traditional multi-core software architecture mainly includes SMP (Symmetric Multi Processing) and AMP (Asymmetric MultiProcessing). These two architectures have their own advantages and disadvantages in terms of software development complexity and airworthiness difficulty.
[0003] SMP is a multi-core synchronous architecture, where one operating system manages multiple processor cores, allowing software developers to treat the multi-core processor as a single-core processor to develop application software, with low development complexity. However, the characteristic of SMP is that one operating system manages the cores of the multi-core processor, and the software coupling is high. Therefore, various complex behaviors such as resource competition and synchronization between processor cores under the SMP architecture bring considerable difficulties to the airworthiness of the operating system.
[0004] In contrast, AMP is a multi-core asynchronous architecture, and each core runs an independent operating system. Therefore, at the operating system level, resource competition and synchronization between multiple cores are relatively simple. However, since each core of AMP is equivalent to an independent software, software developers need to develop each core separately. Therefore, the complexity of application development under the AMP architecture is relatively high.
[0005] In view of this, both of the above-mentioned two architectures have certain disadvantages for software development, which increase the airworthiness difficulty of the operating system and the development cost of application software respectively. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide an engine control system and a method for starting engine control software based on a multi-core processor, which can reduce the airworthiness difficulty of the operating system, reduce the development cost of application software, and thus improve the software development efficiency.
[0007] To solve the above technical problems, the present invention provides an engine control system, comprising: a multi-core processor, including a first processor core and a second processor core; a volatile memory; an operating system, suitable for being loaded into the volatile memory and being run by the first processor core and the second processor core; an application, suitable for being loaded into the volatile memory and being run by the first processor core and / or the second processor core, the application comprising an integrated module and multiple functional modules, the integrated module comprising a business-related module and a driver, the multiple functional modules being configured to deploy the running time and space of the multiple functional modules; and a boot program, configured to start the first processor core, the second processor core, the operating system and the application.
[0008] In one embodiment of the present invention, the first processor core and the second processor core correspond to the same operating system, and the integrated module has the kernel configurations of the first processor core and the second processor core.
[0009] In an embodiment of the present invention, the operating time of the plurality of functional modules includes an operating cycle and a time budget.
[0010] In one embodiment of the present invention, the operating spaces of the multiple functional modules include allocated operating spaces, task interaction spaces and / or operating processor cores.
[0011] In one embodiment of the present invention, the operating system is configured to parse the integrated modules of the application program and deploy a plurality of processor cores on which the functional modules run.
[0012] In an embodiment of the present invention, the volatile memory has different first storage areas and second storage areas, wherein when the operating system is running, it runs in the first storage area and the second storage area respectively.
[0013] In one embodiment of the present invention, a portion of the plurality of functional modules is deployed on the first processor core, and another portion is deployed on the second processor core.
[0014] In one embodiment of the present invention, the boot program is configured to start the first processor core first, load the operating system into the first storage area, then start the operating system, and copy the operating system to the second storage area.
[0015] In an embodiment of the present invention, the boot program is configured to start the second processor core and block the second processor core after loading the operating system into the first storage area and before starting the operating system.
[0016] Another aspect of the present invention provides an engine control software startup method based on a multi-core processor, comprising the following steps: starting the first processor core of the multi-core processor and preliminarily initializing the first processor core; loading an operating system and an application into a volatile memory, wherein the operating system is loaded into a first storage area, the application includes an integrated module and multiple functional modules, the multiple functional modules include business-related modules and drivers, and the integrated module is configured to deploy the running time and space of the functional modules; starting the second processor core of the multi-core processor and blocking the second processor core; starting the operating system; using the operating system to completely initialize the first processor core and the second processor core; copying the operating system to the second storage area of the volatile memory; the operating system parses the integrated module of the application and deploys multiple processor cores for the operation of the functional modules; and releasing the second processor core.
[0017] In one embodiment of the present invention, according to the above-mentioned engine control software startup method based on a multi-core processor, the operating space of the multiple functional modules includes an allocated operating space, an interaction space between tasks and / or an operating processor core.
[0018] In one embodiment of the present invention, according to the above-mentioned engine control software startup method based on a multi-core processor, the operating system deploys a part of the multiple functional modules on the first processor core and another part on the second processor core.
[0019] In one embodiment of the present invention, according to the above-mentioned engine control software startup method based on a multi-core processor, after releasing the second processor core, it also includes: the first processor core and the second processor core are respectively transferred to corresponding operating system storage addresses to perform periodic task scheduling.
[0020] Another aspect of the present invention further provides an engine control system based on a multi-core processor, comprising:
[0021] a memory for storing instructions executable by a processor; and
[0022] The processor is used to execute the instructions to implement the above-mentioned engine control software startup method based on a multi-core processor.
[0023] Another aspect of the present invention further provides a computer-readable medium storing computer program codes, wherein the computer program codes implement the above-mentioned engine control software startup method based on a multi-core processor when executed by a processor.
[0024] Compared with the prior art, the present invention has the following advantages: although the present invention is a multi-core usage solution based on the AMP architecture, by performing architecture optimization at the operating system level, the development of application software can still be as flexible as the SMP architecture, thereby reducing the difficulty of software development, reducing software development costs, and at the same time avoiding the problem of high airworthiness difficulty of the SMP architecture operating system, thereby improving the efficiency of software development as a whole. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are included to provide a further understanding of the present application. They are included and constitute a part of the present application. The accompanying drawings illustrate embodiments of the present application and together with the present specification serve to explain the principles of the present invention. In the accompanying drawings:
[0026] Figure 1 is a schematic diagram of the structure of an engine control system according to an embodiment of the present invention;
[0027] Figure 2 It is a schematic diagram of the development principle of an application program of an engine control system according to an embodiment of the present invention;
[0028] Figure 3 It is a schematic diagram of the principle of a method for starting engine control software based on a multi-core processor according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0030] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0031] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the present application. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to those of ordinary skill in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be considered as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so that once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0032] An embodiment of the present invention provides an engine control system that can reduce the airworthiness difficulty of an operating system and reduce the development cost of application software, thereby improving software development efficiency.
[0033] Figure 1 FIG. 1 is a schematic diagram of the structure of an engine control system according to an embodiment of the present invention. Figure 1 As shown, the engine control system 10 includes a multi-core processor 11, and the multi-core processor 11 further includes a first processor core 111 and a second processor core 112. The engine control system 10 also includes a volatile memory 12, an operating system 13, an application 14 and a boot program 15.
[0034] Figure 2 It is a schematic diagram of the development principle of an application program of an engine control system according to an embodiment of the present invention. Figure 2 The flowchart is used to exemplarily show the operations that need to be performed when developing an application program of an engine control system according to an embodiment of the present application. It should be understood that the previous or subsequent operations are not necessarily performed precisely in order. Instead, various steps can be processed in reverse order or simultaneously. At the same time, other operations can be added to these processes, or one or more operations can be removed from these processes.
[0035] Figure 2 The application development principles shown can be applied to Figure 1 The development of the application 14 in the engine control system of one embodiment of the present invention is shown, but the present invention is not limited thereto. Figure 1 and Figure 2 , an engine control system of the present invention in this embodiment is described, and the development principle of the application program in the engine control system is described in detail.
[0036] In the engine field, the software development program of the engine control system mainly includes three parts: application program (AS), platform program (PS) and boot program (BOOT), and the three are generally developed independently. Among them, the platform program PS is mainly responsible for the integration of the minimum system, the overall scheduling of the software program, and the interaction between functions, while the application functions related to the business are mainly developed in the application program AS, and the platform program PS may undertake some application functions related to the external interface.
[0037] In the present invention, Figure 1 In the embodiment shown, the key difference between the engine control system and the software development method in the prior art is that the platform program PS is separated from the business function, and all application functions such as input, processing, and output related to the business are classified and processed in the application program AS. In addition, unlike the prior art, the driver program in the present invention is also integrated into the application program AS. Therefore, in the AMP multi-core asynchronous architecture of the present invention, each core can also use the same operating system kernel, thereby achieving the following Figure 1 There is only one image between the operating system 13 and the application 14, rather than a traditional independent corresponding image for each core in the AMP architecture, thereby reducing the complexity of development and saving development costs.
[0038] like Figure 1 As shown, taking a dual-core processor as an example, in this embodiment of the present invention, the first processor core 111 and the second processor core 112 of the multi-core processor 11 correspond to the same operating system 13 and use the same operating system kernel, but the first processor core 111 and the second processor core 112 each have a different operating system kernel configuration, and are reflected in the application program 14 to implement different business-related application functions.
[0039] In this embodiment of the present invention, Figure 1 The operating system 13 shown may be loaded into the volatile memory 12 and executed by the first processor core 111 and the second processor core 112 .
[0040] In one embodiment of the present invention, the volatile memory 12 also has different first storage areas and second storage areas, and the operating system 13 can run in the first storage area and the second storage area respectively, thereby providing independent operating systems for the first processor core 111 and the second processor core 112 respectively.
[0041] like Figure 2As shown, the development method 20 of the application in the engine control system of the present invention is divided into two independent processes, namely, a plurality of functional module designs 21 and an integrated module design 22. The functional module design process 21 is mainly used to develop a plurality of functional modules, including all application functions such as business-related input, processing, and output, as well as drivers. The integrated module design process 22 is mainly used to deploy the relevant parameters of the operating space and operating time of the plurality of functional modules, and the integrated module has the operating system kernel configuration of the first processor core 111 and the second processor core 112 when being designed.
[0042] Exemplarily, in one embodiment of the present invention, the integrated module design process 22 mainly allocates the operating space, the task interaction space and / or the operating processor core when deploying the operating space of multiple functional modules; and mainly allocates the operating cycle and time operation parameters of multiple functional modules when deploying the operating time of multiple functional modules. On this basis, part of the above-mentioned multiple functional modules are deployed and allocated to the first processor core 111, and the other part are deployed and allocated to the second processor core 112.
[0043] In one embodiment of the present invention, Figure 1 The operating system 13 shown is also configured to parse the integrated module of the application and deploy processor cores for running multiple functional modules, that is, through the parameters of the running time and running space mentioned in the above exemplary description, the functions that each core needs to implement and the programs and methods of running are determined.
[0044] It should be understood that the present invention is not limited to the above-mentioned deployment scheme and the specific selection of the running space and running time. Any selection of the limited parameters of the running space and running time of the functional module and the adjustment of the deployment scheme in order to realize the development of the application of the present invention are within the spirit and scope of the present invention.
[0045] More specifically, Figure 2 As shown, when developing the application of the engine control system in the present invention, step 211 and step 221 are respectively inputting multiple functional modules A1, A2...An, and inputting an integration module, which serve as the starting points of two independent development processes, functional module design 21 and integration module design 22.
[0046] When performing the process of functional module design 21, step 212 is to compile the multiple functional modules A1, A2...An input in step 211 into multiple target codes M1, M2,...Mn through a compiler. The multiple target codes M1, M2,...Mn generated in step 212 represent different application functions and drivers related to the business in an engine control system of the present invention. Step 213 is to integrate the multiple target codes M1, M2,...Mn to generate a final target code M, which includes functional information related to the application function and information of the driver.
[0047] When performing the process of integrated module design 22, the source code Y1, Y2, ...Yn of the integrated module input in step 221 is first generated. In this step, the multiple target codes M1, M2, ...Mn compiled from multiple functional modules in step 212 can also be selected as input codes; or the information involved in the multiple functional modules from step 211 can be selected as input codes, such as the code of task interaction information, etc. The source code Y1, Y2, ...Yn therefore represents the information of the runtime and runtime space of the deployment of multiple functional modules. Step 223 is to compile the source code of the integrated module to generate the target code m of the integrated module, and the target code m includes the deployment of the runtime space and runtime of multiple functional modules A1, A2 ...An in an engine control system of the present invention, and includes other information related to the operation of the dual-core system, such as task interaction information, multi-core configuration information, etc.
[0048] Finally, step 23 is to link the target codes M of the multiple functional modules and the target code m of the integrated module to generate a complete application image, that is, to correspond the functions contained in each functional module with its running space and running time, as well as task interaction information, multi-core configuration information and other information related to the operation of the dual-core system in an image-based manner. Task scheduling can be performed after the dual-core system is started subsequently, so that each core can realize its corresponding function in a set operating mode.
[0049] For example, the specific scheme of linking in step 23 may be to assign a unique identifier to each link of the functional modules A1, A2...An in advance, and query the unique identifier such as Figure 1 The mapping relationship between the first processor core 111 and the second processor core 112 and each functional module A1, A2...An is shown in Table 1. By searching the mapping relationship in Table 1, the information on which processor core each functional module A1, A2...An needs to run is obtained. Based on this information, a static scheduling table of the first processor core 111 and the second processor core 112 is generated and compiled in the target code m, and combined with other multi-core configuration information such as other task interaction information, running space and time information compiled in the target code m, so as to realize the complete scheduling of functional tasks after the subsequent engine control system.
[0050] Function Running location Functional module A1 The first processor core 111 Functional module A2 The second processor core 112 … … Functional Module The first processor core 111
[0051] Table 1 Mapping relationship between processor core and functional module
[0052] Further, such as Figure 1 As shown, an engine control system of the present invention further includes a boot program 15 configured to start the first processor core 111 , the second processor core 112 , the operating system 13 and the application program 14 .
[0053] Exemplarily, in one embodiment of the present invention, the boot program 15 is configured to first start the first processor core 111, load the operating system 13 into a first storage area of the volatile memory 12, start the operating system 13, and copy the operating system 13 to a second storage area of the volatile memory 12. On this basis, the boot program 15 is further configured to start the second processor core 112 after loading the operating system 13 into the first storage area of the volatile memory 12 and before starting the operating system 13, and block the second processor core 112.
[0054] The specific implementation method of the boot program 15 will be described in detail below.
[0055] The above is the implementation principle of an engine control system according to an embodiment of the present invention. It can be understood that: Figure 1 , Figure 2 The above description is only an exemplary display of the basic architecture of an engine control system of the present invention and a method for developing its application program. The purpose is to illustrate how the present invention, compared with the prior art, can classify all application functions such as business-related input, processing, and output, as well as drivers, into the application program AS for processing, thereby realizing a multi-core asynchronous architecture based on AMP, and each core can use the same operating system, and there is only one image between the operating system and the application program, which reduces the complexity of development and saves development costs.
[0056] Another aspect of the present invention provides a method for starting engine control software, which can be used to implement the following Figure 1 The boot program in the engine control system of the present invention is shown. The startup method is used in conjunction with the engine control system of the present invention to reduce the airworthiness difficulty of the operating system, reduce the development cost of application software, and thus improve the software development efficiency.
[0057] Figure 3 It is a schematic diagram of the principle of a method for starting engine control software based on a multi-core processor according to an embodiment of the present invention. Figure 3A flow chart is used to illustrate the operations that need to be performed when the engine control software based on a multi-core processor according to an embodiment of the present application is started. It should be understood that the previous or subsequent operations are not necessarily performed precisely in order. Instead, various steps can be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more operations may be removed from these processes.
[0058] Combine the following Figure 3 Still taking a dual-core processor as an example, an engine control software startup method 30 based on a multi-core processor of the present invention is described.
[0059] First, after power is turned on, step 31 is to start and preliminarily initialize the first processor core to meet the basic operation requirements of the first processor core.
[0060] Step 32 is to load the operating system into a first storage area of the volatile memory, which is a specific address of the first processor core for use by the first processor core. Step 32 also loads the application program into a specific location of the volatile memory, and the application program includes an integrated module and multiple functional modules. The integrated module is configured to deploy the runtime and runtime space of the functional modules, including allocating runtime space, interaction between tasks and / or running processor cores; the multiple functional modules include business-related modules and drivers. For the specific implementation of the application program, please refer to Figure 2 The description in the above embodiments will not be repeated here.
[0061] Step 33 is to start and block the second processor core. Since no application has been deployed on the second processor core at this time, it is necessary to block the second processor core to ensure the normal operation of the system.
[0062] Step 34 is to jump to the operating system startup address of the first processor core and start the operating system. Since the system at this time does not know which of the functional modules in the application program needs to be run on the first processor core, the CPU control right is handed over to the operating system by starting the operating system.
[0063] Step 35 is to use the operating system to completely initialize the first processor core and the second processor core to meet basic processor core operation requirements.
[0064] Step 36 is to copy the operating system to the second storage area of the volatile memory, which is a specific address of the second processor core for use by the second processor core, thereby distinguishing it from the first storage area in the volatile memory in step 32, thereby realizing independent operation of the first processor core and the second processor core.
[0065] Step 37 is that the operating system parses the integrated module of the application and deploys the corresponding processor core, that is, deploys the code required to run by the first processor core and the second processor core respectively. Figure 2 As described in the above embodiments, the integrated module is configured to deploy the runtime and runtime space of the functional modules. Therefore, the operating system can deploy a corresponding part of the functional modules on the first processor core and another corresponding part of the functional modules on the second processor core by parsing the integrated module of the application, so as to realize the allocation of the codes required to run on the dual cores.
[0066] Finally, step 38 is to release the second processor core, thereby successfully starting a dual-core heterogeneous processor based on the same operating system but with different application functions.
[0067] In actual production, after executing steps 31-38 for dual-core task scheduling and allocation, the first processor core and the second processor core are respectively transferred to the corresponding storage addresses of the operating system to implement periodic task scheduling of the dual-core.
[0068] In one embodiment of the present invention, Figure 3 The steps 31-34 shown can be developed according to the traditional boot program BOOT in the prior art to maintain its versatility.
[0069] The above is a method for starting engine control software based on a multi-core processor according to an embodiment of the present invention. The method is suitable for starting an engine control system of a multi-core heterogeneous processor with the same operating system according to the present invention, which effectively reduces the airworthiness difficulty of the operating system and also reduces the development cost of application software, thereby improving software development efficiency.
[0070] Another aspect of the present invention provides an engine control system based on a multi-core processor, the control system comprising a memory for storing instructions executable by the processor; the control system further comprising a processor for executing the instructions to implement the reference of the above embodiment. Figure 3 The engine control software startup method based on a multi-core processor is shown in steps 31-38.
[0071] Another aspect of the present invention also provides a computer readable medium storing a computer program code, which can implement the reference of the above embodiment when executed by a processor. Figure 3 The engine control software startup method based on a multi-core processor is shown in steps 31-38.
[0072] It is to be understood that the present invention is not intended to Figure 1 and Figure 3The dual-core processor shown in the figure and the above description is limited to the dual-core processor, and technicians in the field can select processors with more cores according to actual production needs, and Figure 1 and Figure 3 And if adaptive modifications are made based on the above description, all kinds of modifications belong to the spirit and scope of the present invention.
[0073] The basic concepts have been described above. Obviously, for those skilled in the art, the above invention disclosure is only used as an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0074] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0075] Some aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes ...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs ...), smart cards, and flash memory devices (e.g., cards, sticks, key drives ...).
[0076] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0077] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0078] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0079] Although the present application has been described with reference to the current specific embodiments, ordinary technicians in this technical field should recognize that the above embodiments are only used to illustrate the present application, and various equivalent changes or substitutions may be made without departing from the spirit of the present application. Therefore, as long as the changes and modifications to the above embodiments are within the essential spirit of the present application, they will fall within the scope of the claims of the present application.
Claims
1. An engine control system, comprising: A multi-core processor, comprising a first processor core and a second processor core; A volatile memory, comprising a first storage area and a second storage area, wherein the first storage area is a specific address of a first processor core for use by the first processor core, and the second storage area is a specific address of a second processor core for use by the second processor core, so as to realize independent operation of the first processor core and the second processor core; An operating system, wherein the operating system and the multi-core processor are based on an AMP multi-core asynchronous architecture, the operating system is suitable for being loaded into the volatile memory and being run by the first processor core and the second processor core, the first processor core and the second processor core correspond to the same operating system and use the same operating system kernel, but the first processor core and the second processor core each have a different operating system kernel configuration, which is embodied in an application program; an application program, adapted to be loaded into the volatile memory and run by the first processor core and / or the second processor core, the application program comprising an integration module and a plurality of functional modules, the plurality of functional modules comprising modules and drivers related to services, the integration module being configured to deploy the runtime and space of the plurality of functional modules, and there being only one image between the operating system and the application program; A boot program is configured to start and preliminarily initialize the first processor core, load an operating system and an application into a volatile memory, wherein the operating system is loaded into the first storage area, start and block the second processor core, start the operating system, use the operating system to completely initialize the first processor core and the second processor core, copy the operating system to the second storage area, the operating system parses the integrated modules of the application, and deploys the processor core on which the multiple functional modules run, and releases the second processor core.
2. The system according to claim 1, characterized in that The integrated module has an operating system kernel configuration of the first processor core and the second processor core.
3. The system according to claim 1, characterized in that The operating time of the multiple functional modules includes an operating cycle and a time budget.
4. The system according to claim 1, characterized in that The operating spaces of the multiple functional modules include allocated operating spaces, task interaction spaces and / or operating processor cores.
5. The system according to claim 1, characterized in that A portion of the plurality of functional modules is deployed on the first processor core, and another portion is deployed on the second processor core.
6. The system according to claim 1, characterized in that After releasing the second processor core, the method further includes: The first processor core and the second processor core are respectively transferred to corresponding operating system storage addresses to perform periodic task scheduling.
