Shift module AUTOSAR software component development method, device and equipment based on Simulink
By taking the shift module as a whole as a running entity and standardizing the input and output signals, the problems of large workload and low efficiency in AUTOSAR development are solved, and the efficiency improvement and content simplification of AUTOSAR development are achieved.
Patent Information
- Application Number
- CN202210409680.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-04-19
AI Technical Summary
In the "bottom-up" workflow of AUTOSAR system solution, the method of establishing AUTOSAR software components according to the Simulink model is complex, the workload is high, and the efficiency is low, resulting in complex development efficiency and content.
The shift module as a whole is used as a running entity, and the event time period is added, the input signal and sub-function module are placed into the running entity, including automatic P module, appointment-changing module, factory mode module, to determine the input and output signals, and standardize them. Name to match CAN packets and other control modules.
It reduces the workload of AUTOSAR development, improves work efficiency, simplifies work content, and realizes the rapid establishment of SWC software components of the gear shift module, reduces labor costs, and facilitates the port connection of ISOLAR software.
Smart Images

Figure CN114879935B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of software component development, and in particular, relates to a method, device, electronic device and computer-readable storage medium for developing an AUTOSAR software component for a gear shift module based on Simulink. Background Art
[0002] In the "bottom-up" workflow of the AUTOSAR system solution, it is necessary to establish the software components of Autosar based on the existing Simulink model. At present, the SWC method of establishing the application layer is relatively flexible according to the different functions and modules. Several SWCs can be established according to needs, but the workload is large, the work efficiency is low, and the work content is complicated.
[0003] Therefore, how to reduce the workload of Autosar development, improve work efficiency and simplify work content is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for developing AUTOSAR software components for a gear shift module based on Simulink, which can reduce the workload of AUTOSAR development, improve work efficiency and simplify work content.
[0005] In a first aspect, an embodiment of the present application provides a method for developing an AUTOSAR software component of a gear shift module based on Simulink, comprising:
[0006] A gear shift module including multiple sub-functions is regarded as a running entity as a whole, and an event time period is added to the running entity;
[0007] Put the pre-processing module and sub-function modules of the input signal of the shift module into the running entity; wherein the sub-function modules at least include an automatic P module, a scheduled shift module, and a factory mode module;
[0008] Determine the input and output signals of the operational entity;
[0009] Standardize the names of the input and output ports of the running entity to match the CAN message names and be consistent with the names of other control modules.
[0010] Furthermore, the pre-processing module and the sub-function module of the input signal of the shift module are placed in the running entity, including:
[0011] The pre-processing module and sub-functional module of the CAN signal, IO signal or output signal of other modules received by the shift module are placed in the running entity.
[0012] Further, determining the input signal and the output signal of the running entity includes:
[0013] The throttle opening, KL15, and brake pedal signal input are used as the CLIENT end of the CS interface.
[0014] Further, determining the input signal and the output signal of the running entity includes:
[0015] Use the P, R, N, D gear message signals, other CAN messages and output signals of other functional modules in the VCU as the RECEIVER port of the SR interface;
[0016] The output signal of the gear module is used as the sender of the SR interface of other functional modules and CAN system signals.
[0017] In a second aspect, an embodiment of the present application provides a shift module AUTOSAR software component development device based on Simulink, comprising:
[0018] The first construction module of the running entity is used to treat a gear shifting module including a plurality of sub-functions as a whole as a running entity and add an event time period to the running entity;
[0019] The second construction module of the running entity is used to put the pre-processing module and the sub-function module of the input signal of the shift module into the running entity; wherein the sub-function module at least includes an automatic P module, a scheduled shift module, and a factory mode module;
[0020] An input and output signal determination module, used to determine the input signal and output signal of the running entity;
[0021] The port signal standardized naming module is used to standardize the names of the input and output ports of the running entity to match the CAN message names and keep them consistent with the names of other control modules.
[0022] Furthermore, the second construction module of the running entity is used to: place the pre-processing module and sub-function module of the CAN signal, IO signal or output signal of other modules received by the shift module into the running entity.
[0023] Furthermore, the input and output signal determination module is used to: input the throttle opening, KL15, and brake pedal signal as the CLIENT end of the CS interface.
[0024] Furthermore, the input and output signal determination module is used to: use the P, R, N, D gear message signals, other CAN messages and output signals of other functional modules in the VCU as the RECEIVER port of the SR interface; use the output signal of the gear module as the Sender of the SR interface of other functional modules and CAN system signals.
[0025] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0026] When the processor executes the computer program instructions, the Simulink-based AUTOSAR software component development method for the gear shift module as shown in the first aspect is implemented.
[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the Simulink-based AUTOSAR software component development method for a gear shift module as shown in the first aspect is implemented.
[0028] The Simulink-based AUTOSAR software component development method, device, electronic device and computer-readable storage medium of the gear shift module in the embodiments of the present application can reduce the workload of AUTOSAR development, improve work efficiency and simplify work content.
[0029] The shift module AUTOSAR software component development method based on Simulink includes: taking a shift module including multiple sub-functions as a whole as a running entity, and adding an event time period to the running entity; placing a pre-processing module of an input signal of the shift module and a sub-function module into the running entity; wherein the sub-function module at least includes an automatic P module, a scheduled shift module, and a factory mode module; determining the input signal and output signal of the running entity; and standardizing the naming of the input port and the output port of the running entity to match the CAN message name and keep it consistent with the naming of other control modules, thereby reducing the workload of Autosar development, improving work efficiency, and simplifying work content. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1It is a flowchart of a method for developing an AUTOSAR software component of a gear shift module based on Simulink provided by an embodiment of the present application;
[0032] Figure 2 It is a structural diagram of an application layer shift module software component provided by an embodiment of the present application;
[0033] Figure 3 It is a flowchart of a method for developing an AUTOSAR software component of a gear shift module based on Simulink provided by an embodiment of the present application;
[0034] Figure 4 It is a structural schematic diagram of a shift module AUTOSAR software component development device based on Simulink provided by an embodiment of the present application;
[0035] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0036] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0037] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0038] In the "bottom-up" workflow of the AUTOSAR system solution, it is necessary to establish the software components of Autosar based on the existing Simulink model. At present, the SWC method of establishing the application layer is relatively flexible according to the different functions and modules. Several SWCs can be established according to needs, but the workload is large, the work efficiency is low, and the work content is complicated.
[0039] In order to solve the problems of the prior art, the present application embodiment provides a shift module AUTOSAR software component development method, device, electronic device and computer readable storage medium based on Simulink. The following first introduces the shift module AUTOSAR software component development method based on Simulink provided by the present application embodiment.
[0040] Figure 1 FIG. 1 is a flow chart of a method for developing AUTOSAR software components for a gear shift module based on Simulink provided by an embodiment of the present application. Figure 1 As shown, the AUTOSAR software component development method of the shift module based on Simulink includes:
[0041] S101, taking a gear shift module including multiple sub-functions as a whole as an operating entity, and adding an event time period to the operating entity;
[0042] S102, placing the pre-processing module and sub-function modules of the input signal of the shift module into the running entity; wherein the sub-function modules at least include an automatic P module, a scheduled shift module, and a factory mode module;
[0043] In one embodiment, the pre-processing module and the sub-function module of the input signal of the shift module are placed in the running entity, including:
[0044] The pre-processing module and sub-functional module of the CAN signal, IO signal or output signal of other modules received by the shift module are placed in the running entity.
[0045] S103, determining the input signal and output signal of the running entity;
[0046] In one embodiment, determining an input signal and an output signal of an operating entity includes:
[0047] The throttle opening, KL15, and brake pedal signal input are used as the CLIENT end of the CS interface.
[0048] In one embodiment, determining an input signal and an output signal of an operating entity includes:
[0049] The P, R, N, D gear message signals, other CAN messages and output signals of other functional modules in the VCU are used as the RECEIVER port of the SR interface.
[0050] The output signal of the gear module is used as the sender of the SR interface of other functional modules and CAN system signals.
[0051] S104: standardize the names of the input and output ports of the running entity to match the CAN message names and keep them consistent with the names of other control modules.
[0052] The shift module AUTOSAR software component development method based on Simulink includes: taking a shift module including multiple sub-functions as a whole as a running entity, and adding an event time period to the running entity; placing a pre-processing module of an input signal of the shift module and a sub-function module into the running entity; wherein the sub-function module at least includes an automatic P module, a scheduled shift module, and a factory mode module; determining the input signal and output signal of the running entity; and standardizing the naming of the input port and the output port of the running entity to match the CAN message name and keep it consistent with the naming of other control modules, thereby reducing the workload of Autosar development, improving work efficiency, and simplifying work content.
[0053] In order to explain the above method in detail, an embodiment is used to explain it in detail below.
[0054] In order to reduce workload, improve work efficiency, simplify work content, and facilitate the rapid establishment of the SWC of the shift module, the technical means of this embodiment include: AUTOSAR SWC software component establishment technology, Simulink technology, ISOLAR-A / B software technology; the technical solution is: using AUTOSAR SWC software component establishment technology and Simulink technology to achieve the establishment of the controller shift module SWC software component.
[0055] based on Figure 2 and Figure 3 As shown, the method comprises the following steps:
[0056] (1) Treat the entire shift module as a runnable entity. No matter how many modules the shift module consists of, add an event time period event to this runnable entity. There is no need to create multiple SWCs and runnables.
[0057] (2) Put the pre-processing module of the input signal of the shift module and the sub-function (automatic P, scheduled shift, factory mode, etc.) modules into this runnable. The input signal of the entire runnable is the received CAN signal, IO signal, or the output signal of other modules. It is convenient to find the most original input signal without paying attention to the intermediate processing signal.
[0058] (3) The throttle opening, KL15, and brake pedal signal input are used as the CLIENT end of the CS interface.
[0059] (4) The P, R, N, D gear message signals, other CAN messages and the output signals of other functional modules in the VCU are used as the RECEIVER port of the SR interface, and the output signal of the gear module is used as the Sender of the SR interface of other functional modules and CAN system signals.
[0060] (5) The input and output port naming of this runnable matches the CAN message and is consistent with other modules so that the ports can be connected after being imported into the ISOLAR software.
[0061] This embodiment only needs to establish a shift SWC and a runnable entity to simplify the structure. It is only necessary to clarify the input and output signals of the shift module and put the signal pre-processing into this runnable. The port signal is named in a standardized manner, matching the CAN message name and keeping consistent with the naming of other control modules, which facilitates port connection.
[0062] This embodiment has the following beneficial effects: 1. Reduces the workload of AUTOSAR development, improves work efficiency, simplifies work content, and quickly establishes the shift module SWC software component in Simulink. 2. Improves the work efficiency of AUTOSAR development. 3. Reduces the labor cost of software development. 4. Conveniently imports ISOLAR software and connects to other modules.
[0063] Figure 4 The schematic diagram of the structure of the AUTOSAR software component development device for the gear shift module based on Simulink provided by the embodiment of the present application is shown. Figure 4 As shown, the shift module AUTOSAR software component development device based on Simulink includes:
[0064] The first construction module 401 of the running entity is used to treat a gear shifting module including a plurality of sub-functions as a whole as a running entity, and add an event time period to the running entity;
[0065] The second construction module 402 of the running entity is used to put the pre-processing module and the sub-function module of the input signal of the shift module into the running entity; wherein the sub-function module at least includes an automatic P module, a scheduled shift module, and a factory mode module;
[0066] An input and output signal determination module 403, used to determine the input signal and output signal of the running entity;
[0067] The port signal standardized naming module 404 is used to standardize the names of the input ports and output ports of the running entity to match the CAN message names and keep them consistent with the names of other control modules.
[0068] Furthermore, the second construction module 402 of the running entity is used to: put the pre-processing module of the CAN signal, IO signal or output signal of other modules received by the shift module into the running entity.
[0069] Furthermore, the input / output signal determination module 403 is used to: input the throttle opening, KL15, and brake pedal signal to the CLIENT end of the CS interface.
[0070] Furthermore, the input and output signal determination module 403 is used to: use the P, R, N, D gear message signals, other CAN messages and output signals of other functional modules in the VCU as the RECEIVER port of the SR interface; use the output signal of the gear module as the Sender of the SR interface of other functional modules and CAN system signals.
[0071] Figure 4 Each module / unit in the device shown has the function of realizing Figure 1 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.
[0072] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0073] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0074] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0075] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 502 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 502 may be inside or outside the electronic device. In a particular embodiment, the memory 502 may be a non-volatile solid-state memory.
[0076] In one embodiment, the memory 502 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0077] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement any one of the Simulink-based AUTOSAR software component development methods for the gear shift module in the above embodiments.
[0078] In one example, the electronic device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0079] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0080] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0081] In addition, in combination with the AUTOSAR software component development method for a gear shift module based on Simulink in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the AUTOSAR software component development methods for a gear shift module based on Simulink in the above embodiment is implemented.
[0082] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0083] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0084] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0085] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0086] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for developing AUTOSAR software components for a gear shift module based on Simulink, characterized in that: include: A gear shift module including multiple sub-functions is regarded as a running entity as a whole, and an event time period is added to the running entity; Put the pre-processing module and sub-function modules of the input signal of the shift module into the running entity; wherein the sub-function modules at least include an automatic P gear module, a scheduled shift module, and a factory mode module; Determining the input signal and output signal of the running entity includes: inputting the throttle opening, KL15, and brake pedal signal as the CLIENT end of the CS interface; The signals of the input port and output port of the running entity are named in a standardized manner to match the CAN message name and to be consistent with the naming of other functional modules.
2. The method for developing AUTOSAR software components for a gear shift module based on Simulink according to claim 1, characterized in that: The step of placing the pre-processing module and the sub-function module of the input signal of the shift module into the running entity comprises: The pre-processing module and sub-functional module of the CAN signal, IO signal or output signal of other modules received by the shift module are placed in the running entity.
3. A gear shift module AUTOSAR software component development device based on Simulink, characterized in that: include: The first construction module of the running entity is used to treat a gear shifting module including a plurality of sub-functions as a whole as a running entity and add an event time period to the running entity; The second construction module of the operation entity is used to put the pre-processing module and the sub-function module of the input signal of the shift module into the operation entity; wherein the sub-function module at least includes an automatic P gear module, a scheduled shift module, and a factory mode module; An input and output signal determination module is used to determine the input signal and output signal of the running entity, including: inputting the throttle opening, KL15, and brake pedal signal as the CLIENT end of the CS interface; The port signal standardized naming module is used to standardize the names of the input port and output port signals of the running entity to match the CAN message name and keep consistent with the naming of other functional modules.
4. The AUTOSAR software component development device for a gear shift module based on Simulink according to claim 3, characterized in that: The second construction module of the operating entity is used to: place the pre-processing module and sub-function module of the CAN signal, IO signal or output signal of other modules received by the shift module into the operating entity.
5. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the Simulink-based AUTOSAR software component development method for a gear shift module as described in any one of claims 1-2 is implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the method for developing an AUTOSAR software component for a gear shift module based on Simulink as described in any one of claims 1 to 2 is implemented.
