An auto sar bsw system can signal design method and system

By using the CANdb++ and Hightec tools to design the CAN signal of the BSW system for AutoSAR, the decoupling of BSW and ASW is achieved, solving the coupling problem between BSW and ASW, improving design flexibility and software integration efficiency, and reducing error rate and labor costs.

CN116243891BActive Publication Date: 2026-11-27WUHU ALT POWER TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310000367.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-03
Publication Date
2026-11-27
Estimated Expiration
2043-01-03

AI Technical Summary

Technical Problem

In existing AutoSAR designs, the high degree of coupling between the BSW and ASW results in inflexible design. This means that the BSW needs to perform signal matching every time the ASW adds a new system signal interface, and the BSW needs to update its configuration when the CANMessage signal in the DBC changes.

Method used

The CANdb++ tool was used to convert CAN messages in the CAN protocol into DBC, and the CAN network signal design of the BSW was carried out. The CAN input and output SWC interfaces of the BSW and ASW were mapped and matched. The Hightec tool was used for software integration and functional testing.

Benefits of technology

By decoupling BSW and ASW, the degree of coupling is reduced, the design flexibility is improved, the software change work is reduced, the software integration efficiency is improved, and the error rate and human resource costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116243891B_ABST
    Figure CN116243891B_ABST
Patent Text Reader

Abstract

This invention relates to the field of signal design technology, specifically disclosing a CAN signal design method and system for an AutoSAR BSW system. The invention involves using the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a DBC; designing the BSW network signal based on the DBC; mapping and matching the interfaces of the CAN input / output SWCs of the BSW and ASW for signal matching design; using Hightec tools for software integration; and performing software functional testing after integration to determine if the function is normal. This decoupling of the BSW and ASW avoids BSW changes caused by changes in CANMessage signals, reduces the coupling between the BSW and ASW, improves design flexibility, reduces the workload of software BSW changes, and improves the efficiency of software integration, while lowering the error rate and manpower costs of software integration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of signal design technology, and in particular relates to a CAN signal design method and system for an AutoSAR BSW system. Background Technology

[0002] AUTOSAR (AUTotmotive Open System Architecture) refers to an open system architecture for automobiles. It's a standard protocol jointly established by major global automakers, auto parts suppliers, and automotive electronics software system companies, representing a culmination of over a century of experience in automotive technology development. The AUTOSAR architecture aims to improve the updating and exchange of automotive electronic system software, while also facilitating the management of increasingly complex automotive electronic software systems. The application of the AUTOSAR specification standardizes the interface characteristics of electronic control units with different architectures, significantly shortening the development cycle of automotive electronic software and improving its quality.

[0003] The AUTOSAR architecture facilitates collaborative software system development within the automotive electronics industry, improves the efficiency of automakers replacing software modules, promotes software upgrades and updates, and enhances the management efficiency of complex system software. The main objective of collaboration among AUTOSAR members is to standardize basic system functions and functional interfaces, enabling software development partners to exchange, convert, and integrate their respective in-vehicle network functions, thereby maximizing the efficiency of aftermarket software updates and system upgrades.

[0004] In existing AutoSAR designs, the parsing and packaging of CAN signals are handled at the BSW layer, and these parsed and packaged signals are associated with the ASW through system signal mapping matching. Therefore, existing technologies have the following drawbacks: 1. High coupling between the BSW and ASW, resulting in inflexible design, requiring the BSW to perform signal matching every time the ASW adds a new system signal interface; 2. Changes to the signals in the CANMessage within the DBC require the BSW to be reconfigured. Summary of the Invention

[0005] The purpose of this invention is to provide a design method and system for CAN signals in an AutoSAR BSW system, aiming to solve the problems mentioned in the background art.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] A design method for CAN signals in an AutoSAR BSW system, the method specifically includes the following steps:

[0008] Use the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and a DBC that occupies an 8-byte data field.

[0009] Based on the DBC, design the CAN network signal for the BSW;

[0010] Mapping and matching of the BSW system signals with the CAN input / output SWC interfaces of the ASW are performed to design signal matching.

[0011] Use Hightec tools for software integration;

[0012] After software integration is completed, software functionality testing is performed to determine if the functions are working properly.

[0013] As a further limitation of the technical solution of this embodiment of the invention, the step of using the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and occupying an 8-byte data field DBC specifically includes the following steps:

[0014] Install the CANdb++ tool;

[0015] Obtain the officially released CAN protocol used by the project;

[0016] According to the CAN protocol, the CANdb++ tool is used to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and a DBC that occupies an 8-byte data field.

[0017] As a further limitation of the technical solution of this embodiment of the invention, the step of using the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and occupying an 8-byte data field DBC according to the CAN protocol specifically includes the following steps:

[0018] Based on the CAN protocol, determine the corresponding CAN message information and CAN network information in the CAN protocol;

[0019] The CAN message was converted into a single Uint64 signal and occupied an 8-byte data field DBC using the CANdb++ tool.

[0020] As a further limitation of the technical solution of this embodiment of the invention, the design of the CAN network signal of the BSW based on the DBC specifically includes the following steps:

[0021] Based on the DBC, design the CAN signal and network for the BSW;

[0022] According to the DBC, the CAN parsing library is used to parse and package a single Uint64 signal into a specific CAN protocol signal, thus completing the SWC design for CAN packaging and parsing of ASW.

[0023] As a further limitation of the technical solution of this invention embodiment, the step of designing the CAN signal and network of BSW according to the DBC specifically involves: using the Isolar tool to import and design the CAN signal and network of BSW according to the DBC, configuring the CAN-related BSW modules, and configuring the CAN data length to meet the requirements of input verification and output, with only the data field using 8 bytes.

[0024] As a further limitation of the technical solution of this embodiment of the invention, the BSW system signal and the CAN input / output SWC interface of the ASW are mapped and matched. The signal matching design specifically includes the following steps:

[0025] Using software development technology, design and develop a general parsing method to parse the DBC into specific signals in the CAN protocol;

[0026] Using Simulink technology, design input / output SWCs based on the DBC for mapping with BSW system signals;

[0027] In the BSW, the RTE calls the running entity of the SWC and maps the BSW system signals with the SWC input interface to complete the BSW system signal design.

[0028] As a further limitation of the technical solution of this embodiment of the invention, after the software integration is completed, the software function test is performed to determine whether the function is normal, which specifically includes the following steps:

[0029] After completing software integration, prepare the controller or testing tools;

[0030] Use controllers or testing tools to perform software function tests and determine whether the functions are normal.

[0031] A CAN signal design system for an AutoSAR BSW system, the system comprising a DBC conversion unit, a network signal design unit, a signal matching design unit, a software integration unit, and a software function testing unit, wherein:

[0032] The DBC conversion unit is used to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and occupy an 8-byte data field using the CANdb++ tool.

[0033] The network signal design unit is used to design the CAN network signal of the BSW based on the DBC.

[0034] The signal matching design unit is used for mapping and matching the interfaces between the BSW system signals and the ASW's CAN input / output SWC, and for signal matching design.

[0035] The software integration unit is used for software integration using Hightec tools;

[0036] The software functional testing unit is used to perform software functional testing after software integration to determine whether the functions are normal.

[0037] Compared with the prior art, the beneficial effects of the present invention are:

[0038] This invention utilizes the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into DBC; based on the DBC, BSW network signal design is performed; the interfaces of the CAN input / output SWCs of the BSW and ASW are mapped and matched for signal matching design; software integration is performed using the Hightec tool; after software integration, software functional testing is conducted to determine if the function is normal. This decoupling of the BSW and ASW avoids BSW changes caused by changes in CANMessage signals, reduces the coupling between the BSW and ASW, improves design flexibility, reduces the workload of software BSW changes, and improves the efficiency of software integration, while lowering the error rate and manpower costs of software integration. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention.

[0040] Figure 1 A schematic diagram of the prior art related to this invention is shown.

[0041] Figure 2 A flowchart of the method provided by an embodiment of the present invention is shown. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0043] It is understandable that, such as Figure 1The diagram illustrates a prior art related to this invention. In the prior art AutoSAR design, the specific CAN signal is parsed and packaged at the BSW layer, and the parsed and packaged signals are associated with the ASW through system signal mapping matching. Therefore, the prior art has the following shortcomings: 1. The BSW and ASW are highly coupled, resulting in inflexible design, which means that the BSW needs to perform signal matching every time the ASW adds a new system signal interface; 2. If the signal in the CANMessage in the DBC changes, the BSW needs to be reconfigured.

[0044] To address the aforementioned issues, this invention employs the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into DBC; based on the DBC, BSW network signal design is performed; the interfaces of the CAN input / output SWCs of the BSW and ASW are mapped and matched for signal matching design; software integration is performed using Hightec tools; after software integration, software functional testing is conducted to determine if the functionality is normal. This decoupling of the BSW and ASW avoids BSW changes caused by changes in CANMessage signals, reduces the coupling between the BSW and ASW, improves design flexibility, reduces the workload of software BSW changes, and increases the efficiency of software integration, while lowering the error rate and manpower costs associated with software integration.

[0045] Specifically, Figure 2 A flowchart of the method provided by an embodiment of the present invention is shown.

[0046] One of the methods for designing CAN signals for an AutoSAR BSW system includes the following steps:

[0047] Step 1: Use the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and a DBC that occupies an 8-byte data field.

[0048] In this embodiment of the invention, by installing the CANdb++ tool, the CAN protocol is the officially released CAN protocol used by the project. The CANdb++ tool is used to convert the corresponding CAN message in the CAN protocol into DBC.

[0049] Understandably, CANdb++ is a core tool in the VectorCAN toolkit and can be launched directly from VectorCAN tools such as CANalyzer, CANoe, CANape, and CANscope. This provides VectorCAN tools with the ability to directly access communication-related data through CANdb++. ​​Communication-related data is entirely defined, modified, and managed within CANdb++; VectorCAN tools can only read this data. Communication-related data must exist in the form of CANdb network files (*.dbc) for VectorCAN tools to access it.

[0050] Step 2: Based on the DBC, design the CAN network signal for the BSW.

[0051] In this embodiment of the invention, based on the DBC, the Isolar tool is used to design the CAN of the BSW, and based on the DBC, the Matlab tool is used to design the CAN input / output SWC of the ASW.

[0052] Understandably, Isolar tools are commonly used design tools in the automotive industry. Isolar tools mainly include Isolar-AB, RTA-BSW, RTA-OS, and RTA-RTE. MATLAB is a commercial mathematical software produced by MathWorks, Inc. in the United States, used in fields such as data analysis, wireless communication, deep learning, image processing and computer vision, signal processing, quantitative finance and risk management, robotics, and control systems.

[0053] Step 3: Mapping and matching the BSW system signals with the CAN input / output SWC interfaces of the ASW to perform signal matching design.

[0054] In this embodiment of the invention, software development technology is used to parse DBC into a general parsing method for specific signals in the CAN protocol. Simulink technology is used to design the input SWC based on DBC for mapping with BSW system signals. Then, BSW calls SWC and maps BSW system signals with the SWC input interface to complete the BSW system signal design.

[0055] Step 4: Use Hightec tools for software integration.

[0056] Understandably, Hightec tools, specifically the Hightec compiler, utilize advanced optimization techniques to generate fast-running code with a minimal footprint. The compiler can be used for batch processing via its command-line interface or within IDEs, such as the HighTec Secure Multi-Core Platform based on Eclipse. The HighTec compiler boasts a faster build system than comparable products and supports parallel compilation processes.

[0057] Step 5: After completing the software integration, conduct software function tests to determine if the functions are normal.

[0058] In this embodiment of the invention, after the software integration is completed, a controller or testing tool is determined, and then the controller or testing tool is used to perform software function testing to determine whether the function is normal.

[0059] Furthermore, in another preferred embodiment provided by the present invention, an AutoSAR BSW system CAN signal design system is provided, the system comprising a DBC conversion unit, a network signal design unit, a signal matching design unit, a software integration unit, and a software function testing unit, wherein:

[0060] The DBC conversion unit is used to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and occupy an 8-byte data field using the CANdb++ tool.

[0061] In this embodiment of the invention, the DBC conversion unit installs the CANdb++ tool, which uses the officially released CAN protocol for the project, and uses the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into DBC.

[0062] The network signal design unit is used to design the CAN network signal of the BSW based on the DBC.

[0063] In this embodiment of the invention, the network signal design unit uses the Isolar tool to design the CAN bus of the BSW based on the DBC, and uses the Matlab tool to design the CAN input / output SWC of the ASW based on the DBC.

[0064] The signal matching design unit is used for mapping and matching the BSW system signals with the CAN input / output SWC interface of the ASW, and for signal matching design.

[0065] In this embodiment of the invention, the signal matching design unit uses software development technology to parse DBC into a general parsing method for specific signals in the CAN protocol. Using Simulink technology, it designs the input SWC based on the DBC for mapping with the BSW system signals. Then, the BSW calls the SWC and maps the BSW system signals with the SWC input interface to complete the BSW system signal design.

[0066] 0. Software Integration Unit, used for software integration using Hightec tools.

[0067] The software functional testing unit is used to perform software functional testing after software integration to determine whether the functions are normal.

[0068] In this embodiment of the invention, after software integration is completed, the software function testing unit determines the controller or testing tool, and then uses the controller or testing tool to perform software function testing to determine whether the function is normal.

[0069] In summary, this embodiment of the invention uses the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into DBC; based on the DBC, it designs the BSW network signal; it performs mapping matching of the CAN input / output SWC interfaces of the BSW and ASW, and designs the signal matching; and it uses Hightec...

[0070] The tools are used for software integration; after integration, software functionality testing is performed to determine if the functions are normal. Decoupling the BSW and ASW avoids BSW changes caused by signal variations in CANMessage, reducing coupling between BSW and ASW, improving design flexibility, reducing BSW modification work, increasing software integration efficiency, and lowering error rates and manpower costs.

[0071] It should be understood that although the steps in the flowcharts of the various embodiments of the present invention are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the various embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0072] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0073] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for designing CAN signals in an AutoSAR BSW system, characterized in that, The method specifically includes the following steps: Use the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and a DBC that occupies an 8-byte data field. Based on the DBC, the CAN network signal design of BSW is carried out, specifically: based on the DBC, the CAN parsing library is used to parse and package a single Uint64 signal into a specific CAN protocol signal, and the SWC design of CAN packaging and parsing of ASW is completed. Mapping and matching of the BSW system signals with the CAN input / output SWC interfaces of the ASW are performed to design signal matching. Use Hightec tools for software integration; After software integration is completed, software functionality testing is performed to determine if the functions are working properly.

2. The CAN signal design method for the BSW system of AutoSAR according to claim 1, characterized in that, The DBC process, which uses the CANdb++ tool to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal occupying an 8-byte data field, specifically includes the following steps: Install the CANdb++ tool; Obtain the officially released CAN protocol used by the project; According to the CAN protocol, the CANdb++ tool is used to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and a DBC that occupies an 8-byte data field.

3. The CAN signal design method for the BSW system of AutoSAR according to claim 2, characterized in that, The process of converting the CAN message in the CAN protocol into a single Uint64 signal and occupying an 8-byte data field using the CANdb++ tool according to the CAN protocol specifically includes the following steps: Based on the CAN protocol, determine the corresponding CAN message information and CAN network information in the CAN protocol; The CAN message was converted into a single Uint64 signal and occupied an 8-byte data field DBC using the CANdb++ tool.

4. The CAN signal design method for the BSW system of AutoSAR according to claim 1, characterized in that, The specific steps for designing the CAN signal and network of the BSW based on the DBC are as follows: Based on the DBC, the Isolar tool is used to import and design the CAN signal and network of the BSW, configure the CAN-related BSW modules, and configure the CAN data length to meet the requirements of input verification and output, with only the data field using 8 bytes.

5. The CAN signal design method for the BSW system of AutoSAR according to claim 1, characterized in that, The BSW system signals are mapped and matched with the CAN input / output SWC interface of the ASW. The signal matching design specifically includes the following steps: Using software development technology, design and develop a general parsing method to parse the DBC into specific signals in the CAN protocol; Using Simulink technology, design input / output SWCs based on the DBC for mapping with BSW system signals; In the BSW, the RTE calls the running entity of the SWC and maps the BSW system signals with the SWC input interface to complete the BSW system signal design.

6. The CAN signal design method for the BSW system of AutoSAR according to claim 1, characterized in that, After the software integration is completed, software function testing is performed to determine whether the functions are normal. This specifically includes the following steps: After completing software integration, prepare the controller or testing tools; Use controllers or testing tools to perform software function tests and determine whether the functions are normal.

7. A CAN signal design system for an AutoSAR BSW system, characterized in that, The system includes a DBC conversion unit, a network signal design unit, a signal matching design unit, a software integration unit, and a software function testing unit, wherein: The DBC conversion unit is used to convert the corresponding CAN message in the CAN protocol into a single Uint64 signal and occupy an 8-byte data field using the CANdb++ tool. The network signal design unit is used to design the CAN network signal of the BSW based on the DBC, specifically as follows: According to the DBC, the CAN parsing library is used to parse and package a single Uint64 signal into a specific CAN protocol signal, thus completing the SWC design for CAN packaging and parsing of ASW; The signal matching design unit is used for mapping and matching the interfaces between the BSW system signals and the ASW's CAN input / output SWC, and for signal matching design. The software integration unit is used for software integration using Hightec tools; The software functional testing unit is used to perform software functional testing after software integration to determine whether the functions are normal.

Citation Information

Patent Citations

  • Novel software architecture for vehicle

    CN115098072A

  • Electrical architecture system for vehicle and vehicle

    CN115113603A