CN116521217A - Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool - Google Patents
Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool Download PDFInfo
- Publication number
- CN116521217A CN116521217A CN202310491061.1A CN202310491061A CN116521217A CN 116521217 A CN116521217 A CN 116521217A CN 202310491061 A CN202310491061 A CN 202310491061A CN 116521217 A CN116521217 A CN 116521217A
- Authority
- CN
- China
- Prior art keywords
- original
- bsw
- file
- autosar
- arxml
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000012986 modification Methods 0.000 claims abstract description 9
- 230000004048 modification Effects 0.000 claims abstract description 9
- 230000006870 function Effects 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims 1
- 238000011161 development Methods 0.000 abstract description 11
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention relates to a method, a system and a storage medium for rapidly configuring BSW based on an AUTOSAR tool, which acquire key contents of an original CAN protocol and an existing structure file in an original ARXML file, wherein the original ARXML file is generated by the original CAN protocol; modifying each level of the original ARXML file according to AUTOSAR specification requirements, so that the modified original ARXML file corresponds to the modified CAN protocol; and replacing the original ARXML file before modification with the original ARXML file after modification, compiling to form a BSW code, and then carrying out integrated compiling on the BSW code to generate an S19 or hex format file. The invention reduces the complexity of configuration work, meets the requirement of rapid iterative development and improves the development efficiency.
Description
Technical Field
The invention relates to the technical field of automobile communication, in particular to an AUTOSAR tool embedded software development technology of a vehicle.
Background
With the rapid development of automobile electronic technology, a new automobile open architecture (AutomotiveOpenSystemArchitecture, AUTOSAR) is developed, and the architecture has the advantages of high openness and standardization. Currently, an AUTOSAR architecture is adopted in embedded software in the automobile industry, and various AUTOSAR tools (such as ISOLAR-AB, daVinci and the like) are utilized for developing the software. However, due to standardization, part of the configuration is complex and tedious, and in order to meet the requirement of rapid iterative development, it is imperative to improve the development efficiency.
The prior art provides a method and a system for automatically configuring a COM code in an Autosar, and aims to verify and automatically configure the COM in a BSW module by utilizing a script file. In the Autosar architecture, the invention also comprises CAN, CANIF, PDUR, comM, CANSM and other related modules, and only COM is checked, so that one-key configuration and code generation of software cannot be realized, and the whole link of the ISOLAR-AB tool CAN communication module cannot be rapidly reconfigured.
In combination with the existing scheme, no tool capable of adapting to AUTOSAR to develop a full link exists at present, so that a rapid development mode due to CAN communication protocol modification is simply and accurately improved.
Disclosure of Invention
One of the purposes of the present invention is to provide a method for rapidly configuring BSW based on an AUTOSAR tool, so as to solve the problem that the entire link of the isalar-AB tool CAN communication module cannot be rapidly reconfigured in the prior art; the second objective is to provide a system for rapidly configuring BSW based on AUTOSAR tool; a third object is to provide a storage medium.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
extracting by using a script file to obtain key contents of an original CAN protocol and an existing structure file in an original ARXML file, wherein the original ARXML file is generated by the original CAN protocol;
modifying each level of the original ARXML file by utilizing a script file according to AUTOSAR specification requirements, so that the modified original ARXML file corresponds to the changed CAN protocol;
and replacing the original ARXML file before modification with the original ARXML file after modification, compiling to form a BSW code, and then carrying out integrated compiling on the BSW code to generate an S19 or hex format file.
According to the technical means, the whole link of the ISOLAR-AB tool CAN communication module is rapidly reconfigured when the CAN protocol is changed by directly identifying the CAN protocol content required by the ISOLAR-AB tool and modifying the ARXML file in the ISOLAR-AB tool, so that the complexity of configuration work is reduced, and the development efficiency is improved.
Further, the method for modifying each level of the original ARXML file comprises the following steps: configuring information step by step from each level of an original ARXML file, and then modifying the original information according to the ARXML file format specification by corresponding content so as to generate the modified ARXML file.
Further, the method for configuring information step by step from each level of the original ARXML file comprises the following steps: and identifying the ID channels of the signals of the changed CAN protocol, classifying the ID types of the same channel, and configuring the reference relation from each ID type to other layers according to the changed CAN protocol.
Further, when the CAN layer is configured, the content corresponding to each ID type needs to be configured in combination with the BUFFER condition planned in the changed CAN protocol.
Further, in configuring the COM plane, a diagnostic timeout time of the received ID and a reference callback function are added to each of the ID types.
Further, the key contents of the altered CAN protocol include a frame ID, a cache content, a signal name, a mask of a received signal, a filter value, an ID type, and a memory size.
Further, the existing structure file in the original ARXML file comprises an arbitration domain baud rate, a data domain baud rate and nodes corresponding to each path of CAN; the signal direction and standard type corresponding to each CAN signal ID.
Further, the BSW code is a code conforming to the C language specification.
A system for quickly configuring BSW based on AUTOSAR tool comprises a controller and a memory, wherein the memory stores a computer readable program which can execute the steps of the method for quickly configuring BSW based on AUTOSAR tool when being called.
A storage medium having stored therein a computer readable program which when invoked is capable of performing the steps of the above-described method for rapidly configuring a BSW based on an AUTOSAR tool.
The invention has the beneficial effects that:
according to the invention, through directly identifying the CAN protocol content required by the ISOLAR-AB tool and modifying the ARXML file required in the ISOLAR-AB tool, the whole link of the ISOLAR-AB tool CAN communication module is rapidly reconfigured when the CAN protocol is changed, the complexity of configuration work is reduced, the rapid iteration development requirement is met, and the development efficiency is improved.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
Further advantages and effects of the present invention will become readily apparent to those skilled in the art from the disclosure herein, by referring to the following description of the embodiments of the present invention with reference to the accompanying drawings and preferred examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
When CAN module development is performed using the ISOLAR-AB tool, it is necessary to start with processing DBC files. The ISOLAR-AB tool is used for generating a ARXML (AUTOSAR XML) file conforming to the AUTOSAR specification by using the DBC file, wherein the ARXML (AUTOSAR XML) file is a configuration file of the ISOLAR-AB tool and contains various information such as signal names, lengths, precision, offset, positions, types and the like in the DBC file, and the initial configuration file is an initial configuration file after the DBC file is imported. In general, an operator uses ISOLAR-AB software to modify and configure each module such as CAN, CANIF, PDUR, comM, CANSM in the BSW according to development requirements.
The embodiment provides a method for rapidly configuring BSW based on AUTOSAR tool, which directly identifies CAN protocol content required by ISOLAR-AB tool through developed MATLAB script file, and directly modifies ARXML file required to be modified in ISOLAR-AB tool through the script. The method comprises the following specific contents:
as shown in fig. 1, S1: providing an original CAN protocol and an original ARXML file generated by the original CAN protocol, running a MATLAB script file, extracting frame ID, BUFFER content, name, MASK (CODE (filter value), canHandleType (type), blcok Size and other contents of a received signal in the original CAN protocol, extracting an existing structure file in the original ARXML, and extracting software information such as arbitration domain baud rate, data domain baud rate, nodes and the like corresponding to each CAN, and CanObjectType (signal direction), standard type and the like corresponding to each CAN signal ID.
S2: and operating MATLAB script files, and modifying all levels of the original ARXML files according to AUTOSAR specifications, so that the modified original ARXML files correspond to the changed CAN protocol. Specific: configuring information step by step from each level of an original ARXML file, and then modifying the original information according to the ARXML file format specification by corresponding content so as to generate a modified ARXML file. The configuration method of each level comprises the following steps: and identifying the ID channels of the signals of the changed CAN protocol, classifying the ID types of the same channel, and configuring the reference relation from each ID type to other layers according to the changed CAN protocol.
At the Canif level, configuration is made in the manner described above, e.g., sending an ID Canif to the PDUR layer, receiving an ID PDUR to Canif, etc.
And when the CAN layer is configured, each BUFFER corresponds to a hardware resource, and the BUFFER condition planned in the changed CAN protocol is required to be combined and configured to the content corresponding to each ID type. For example, the filter content corresponding to the BUFFER is received, the BUFFER stores the BLOCK position, and the referenced signal ID type information.
When the COM layer is configured, the contents of the diagnostic timeout time of the received ID, the reference callback function, and the like are added to each ID type. The information is configured step by step from the layers of CANIF, CAN, COM and the like, and the corresponding content is modified according to the ARXML file format specification, so that a new ARXML file is generated.
S3: and replacing the ARXML file generated through modification generated by the MATLAB script file with the ARXML file of the original engineering, automatically identifying the newly imported file by an ISOLAR-AB tool, clicking a BSW module code generation button of the tool to generate a code conforming to the C language specification, and performing integrated compiling on the code to generate an S19 or hex format file for test verification.
The embodiment also provides a system for rapidly configuring BSW based on the AUTOSAR tool, which comprises a controller and a memory, wherein a computer readable program is stored in the memory, and the computer readable program can execute the steps of the method for rapidly configuring BSW based on the AUTOSAR tool described in S1-S3 when being called.
The present embodiment also proposes a storage medium having a computer readable program stored therein, the computer readable program when called being capable of executing the steps of the method for rapidly configuring BSW based on the AUTOSAR tool described in S1-S3.
The above embodiments are merely preferred embodiments for fully explaining the present invention, and the scope of the present invention is not limited thereto. Equivalent substitutions and modifications will occur to those skilled in the art based on the present invention, and are intended to be within the scope of the present invention.
Claims (10)
1. A method for rapidly configuring BSW based on an AUTOSAR tool is characterized in that:
extracting by using a script file to obtain key contents of an original CAN protocol and an existing structure file in an original ARXML file, wherein the original ARXML file is generated by the original CAN protocol;
modifying each level of the original ARXML file by utilizing a script file according to AUTOSAR specification requirements, so that the modified original ARXML file corresponds to the changed CAN protocol;
and replacing the original ARXML file before modification with the original ARXML file after modification, compiling to form a BSW code, and then carrying out integrated compiling on the BSW code to generate an S19 or hex format file.
2. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 1, wherein: the method for modifying each level of the original ARXML file comprises the following steps: configuring information step by step from each level of an original ARXML file, and then modifying the original information according to the ARXML file format specification by corresponding content so as to generate the modified ARXML file.
3. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 2, wherein: the method for configuring information step by step from each level of the original ARXML file comprises the following steps: and identifying the ID channels of the signals of the changed CAN protocol, classifying the ID types of the same channel, and configuring the reference relation from each ID type to other layers according to the changed CAN protocol.
4. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 3, wherein: and when the CAN layer is configured, the BUFFER condition planned in the changed CAN protocol is required to be combined, and the content corresponding to each ID type is configured.
5. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 3, wherein: when configuring the COM plane, a diagnostic timeout time of the received ID and a reference callback function are added at each of the ID types.
6. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 1, wherein: the key contents of the changed CAN protocol comprise a frame ID, cache contents, a signal name, a mask of a received signal, a filtering value, an ID type and a memory size.
7. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 1, wherein: the existing structure files in the original ARXML file comprise arbitration domain baud rate, data domain baud rate and nodes corresponding to each path of CAN; the signal direction and standard type corresponding to each CAN signal ID.
8. The method for quickly configuring a BSW based on an AUTOSAR tool according to claim 1, wherein: the BSW code is a code conforming to the C language specification.
9. A system for rapidly configuring BSW based on an AUTOSAR tool, comprising: comprising a controller and a memory, said memory having stored therein a computer readable program, said computer readable program when invoked being capable of performing the steps of the method for fast configuration of BSW based on an AUTOSAR tool according to any of claims 1 to 8.
10. A storage medium, characterized by: a computer readable program stored therein, which when invoked is capable of performing the steps of the method of quickly configuring a BSW based on an AUTOSAR tool according to any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310491061.1A CN116521217A (en) | 2023-04-28 | 2023-04-28 | Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310491061.1A CN116521217A (en) | 2023-04-28 | 2023-04-28 | Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116521217A true CN116521217A (en) | 2023-08-01 |
Family
ID=87400675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310491061.1A Pending CN116521217A (en) | 2023-04-28 | 2023-04-28 | Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116521217A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116795584A (en) * | 2023-08-28 | 2023-09-22 | 上海鉴智其迹科技有限公司 | Verification method, verification device, electronic equipment and storage medium |
-
2023
- 2023-04-28 CN CN202310491061.1A patent/CN116521217A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116795584A (en) * | 2023-08-28 | 2023-09-22 | 上海鉴智其迹科技有限公司 | Verification method, verification device, electronic equipment and storage medium |
CN116795584B (en) * | 2023-08-28 | 2023-11-17 | 上海鉴智其迹科技有限公司 | Verification method, verification device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Denney et al. | A formal basis for safety case patterns | |
KR20210149045A (en) | artificial intelligence chip verification | |
CN109740222B (en) | Testing device and system for automobile networking scene | |
US20130103379A1 (en) | Apparatus and method for verifying interoperability between application software and autosar service | |
CN116521217A (en) | Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool | |
CN110737631A (en) | data analysis method and device based on Flink engine | |
KR20130138468A (en) | Apparatus and method for connecting application software and autosar service | |
CN117234926A (en) | AUTOSAR architecture-based software component interface checking method and device | |
CN111103861B (en) | Method and apparatus for developing an integrated system based on vehicle after-market diagnostic needs | |
CN111782207A (en) | Method, device and equipment for generating task stream code and storage medium | |
CN115080104A (en) | Method and system for automatically configuring COM (component object model) code in Autosar | |
CN114047970A (en) | Configuration method and system of AUTOSAR (automotive open system architecture) architecture software | |
CN111427582B (en) | RTL code management method, device, equipment and computer readable storage medium | |
CN112147983B (en) | Vehicle diagnosis method and device, electronic equipment and storage medium | |
Bucaioni et al. | Trace-based timing analysis of automotive software systems: an experience report | |
CN113535581B (en) | Test script generation method, device, equipment and computer readable storage medium | |
US20220269593A1 (en) | Automatic generation of integrated test procedures using system test procedures | |
CN113985849A (en) | Method for writing DTC (digital control channel) read ECU (electronic control unit) version of automatic clear-reading whole vehicle based on CANoe software | |
CN114610390A (en) | Dynamic extension method and system of CIL (common information language) instruction | |
Guissouma et al. | ICARUS-incremental design and verification of software updates in safety-critical product lines | |
CN115542882B (en) | Controller interface configuration method and device | |
CN105530288A (en) | Data interaction method | |
CN114448851B (en) | Automatic data testing method and system | |
CN113467860B (en) | Service logic execution method and device of program source code | |
CN117170822B (en) | System model and code joint simulation system using distributed network middleware |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |