Signal interaction method, device, equipment and storage medium
The method and device facilitate efficient and error-free signal interaction in vehicle-mounted systems by integrating component modules using a bus module, reducing the complexity and workload of existing port mapping processes.
Patent Information
- Application Number
- CN202311511429.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2043-11-14
AI Technical Summary
Current signal interaction methods in vehicle-mounted systems, such as those based on the AUTOSAR architecture, are labor-intensive, prone to errors, and inefficient, requiring complex port mapping and high designer workloads.
A method and device that enables direct signal interaction between component modules using a bus module, eliminating the need for RTE layer mapping by creating component modules, adding their output information to a bus data manager, associating bus output signal terminals with bus objects, and selecting input signal terminals from other modules, thereby integrating signals through a bus.
This approach reduces designer workload, minimizes errors, and enhances efficiency by allowing quick and accurate signal interaction without the need for RTE layer configuration.
Smart Images

Figure CN117608873B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle design technology, and in particular to a signal interaction method, device, electronic device and computer-readable storage medium. Background Art
[0002] In the current Autosar software architecture, the real-time runtime environment (RTE) is the implementation of a virtual function bus, which is used to isolate the application software layer from the basic software. The application software layer consists of one or more component software (SWC), and a SWC can include one or more running entities.
[0003] Currently, in the design system, the signal interaction between running entities or SWCs is configured in RTE. That is, after the design of each module in the application layer is completed, the output signal of each module needs to be mapped using the RTE tool to complete the signal interaction between the modules.
[0004] However, the above signal interaction methods lead to heavy workloads for designers, easy errors, and low work efficiency. Therefore, how to quickly and accurately complete the signal interaction of the application software layer has become a top priority. Summary of the invention
[0005] In view of this, the present application provides a signal interaction method, device, electronic device and computer-readable storage medium. Through bus design, a component module can directly call the output signal of other component modules, thereby eliminating the need for RTE layer mapping configuration and quickly and accurately completing the signal interaction of the application software layer.
[0006] In a first aspect, an embodiment of the present application provides a signal interaction method, the signal interaction method comprising:
[0007] Create component modules corresponding to each component software in the new application software layer;
[0008] Add the output information of each component module to the bus data manager of the corresponding component module;
[0009] Associating the bus output signal terminal of each component module with the bus object in the respective bus data manager;
[0010] For each component module, at least one bus output signal terminal is selected from the bus output signal terminals of other component modules except itself as its own bus input signal terminal, so as to complete the signal interaction between the component modules.
[0011] In a second aspect, an embodiment of the present application provides a signal interaction device, which may include:
[0012] A component creation module is used to create a component module corresponding to each component software in the application software layer;
[0013] An information adding module, used for adding the output information of each component module to the bus data manager of the corresponding component module;
[0014] An information association module, used for associating the bus output signal terminal of each component module with the bus object in the respective bus data manager;
[0015] The signal terminal selection module is used to select at least one bus output signal terminal from the bus output signal terminals of other component modules except itself as its own bus input signal terminal for each component module, so as to complete the signal interaction between the component modules.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a signal interaction program stored in the memory and executable by the processor, wherein when the signal interaction program is executed by the processor, the steps of the signal interaction program described in any embodiment of the present application are implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a signal interaction program is stored on the computer-readable storage medium, wherein when the signal interaction program is executed by a processor, the steps of the signal interaction program described in any embodiment of the present application are implemented.
[0018] A signal interaction method, device, electronic device and computer-readable storage medium provided by the embodiment of the present application can create a component module corresponding to each component software in the application software layer, so that the component software in the application software layer has a corresponding component module. The output information of each component module is added to the bus data manager of the corresponding component module, thereby completing the establishment of the bus object corresponding to the component module. The bus output signal end of each component module is associated with the bus object in the respective bus data manager, so that the bus output signal end can output the bus object signal corresponding to the bus object. For each component module, at least one bus output signal end is selected from the bus output signal ends of other component modules other than itself as its own bus input signal end, so that the input signal of the component module is integrated in the bus, and the bus object signal output by other component modules is called as its own input signal through the input bus end, so that there is no need to configure the signal mapping between the component modules at the RTE layer, and the signal interaction between the component modules can be completed quickly and accurately, reducing the difficulty of signal interaction operation, reducing the workload of designers, and improving the accuracy and work efficiency of signal interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present application 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 those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of the architecture of an ASW layer provided in an embodiment of the present application is shown;
[0021] Figure 2 A schematic diagram showing a flow chart of a signal interaction method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a page of a bus data manager provided by an embodiment of the present application is shown;
[0023] Figure 4 A schematic diagram showing the structure of a component module provided in an embodiment of the present application
[0024] Figure 5 A schematic diagram showing the structure of another component module provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram showing the structure of a signal interaction device provided in an embodiment of the present application is shown;
[0026] Figure 7 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] In order to make the above and other features and advantages of the present application more clear, the present application is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.
[0028] In the following description, many specific details are set forth to provide a thorough understanding of the present application. However, it is apparent to those skilled in the art that specific details need not be adopted to practice the present application. In other cases, well-known steps or operations are not described in detail to avoid blurring the present application.
[0029] At present, vehicle-mounted system development is usually based on the Automotive Open System Architecture (AUTOSAR). In AUTOSAR, the vehicle-mounted system software can be divided from top to bottom into the application layer (Application Software Layer, ASW), the real-time runtime environment (Runtime Environment, RTE), and the basic software layer (Basic Software Layer, BSW).
[0030] Here, RTE is implemented as a virtual functional bus (VFB), isolating the upper-layer ASW from the lower-layer basic software BSW.
[0031] ASW can include multiple component software (Software Component, SWC), where the function of each SWC is expressed by a running entity, that is, a SWC includes one or more running entities. A running entity corresponds to a set of instruction sequences of a component software. One or more running entities implement the functions provided to the outside by the component software in which they are located. And each SWC interacts through a virtual function bus.
[0032] In actual development applications, designers usually use the Integration and System Engineering Environment (ISOLAR) or Davinci to map ports between SWCs to complete signal interaction. However, the above signal interaction method requires a high level of R&D from designers, requiring them to understand the development logic of the application layer and to be able to accurately define ports and map between ports. However, the above signal interaction method is complex to operate, the workload of designers is heavy, prone to errors, and has low work efficiency.
[0033] In addition, when designers do not understand the application layer logic well, port mapping errors are likely to occur, causing problems in signal interaction. Also, when the signal interaction is complex, the workload of designers is huge and time-consuming.
[0034] In view of this, the present application proposes a method of completing the signal interaction between ASWs in the design system by using a bus module in a component module using Matlab / Simulink, that is, using the bus to integrate the signal input and signal output of the component module. In this way, there is no need to use the RTE tool for mapping configuration, that is, the signal interaction can be completed quickly and accurately through simple operations, thereby reducing the workload of designers and improving the accuracy and work efficiency of signal interaction.
[0035] On the one hand, an embodiment of the present application provides a design architecture for signal interaction. Figure 1 A schematic diagram of the architecture of an ASW layer provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the ASW layer includes component modules SWC1 to SWCn. Each component module corresponds to a SWC and a bus module. The bus module may include an input bus terminal and an output bus terminal. The input bus terminal may include multiple bus input signal terminals, and the output bus terminal may include multiple bus output signal terminals. Each bus output signal terminal of the bus component module is associated with an output signal of an operating entity in the corresponding SWC, and the bus input signal terminal of a component module is connected to the bus output signal port of another component module. A bus output signal terminal of a component module is associated with an output signal in its corresponding SWC. In this way, all output signals of a SWC are integrated into a bus module for selection and calling by operating entities in other SWCs, and the input signal of the SWC is directly input through the bus module, so that there is no need to do port mapping between the output signal and the input signal, and the signal interaction between the SWCs can be completed quickly and accurately.
[0036] It should be noted that the output signal of a SWC may be the output signal of the running entity it contains, that is, one output signal of a SWC corresponds to one output signal of one running entity.
[0037] Another aspect of the embodiment of the present application provides a signal interaction method. Figure 2 The flowchart of a signal interaction method provided by an embodiment of the present application is shown, which can be used for the design of the application software layer in the Autosar software architecture. It should be noted that the signal interaction method can be applied to a signal interaction device, and the signal interaction device can be installed in an electronic device. Figure 2 As shown, the signal interaction method includes the following steps.
[0038] S21, creating component modules corresponding to each component software in the new application software layer.
[0039] Here, the component module may be a function module for realizing the component software function, and a component module may include one or more running entity modules and bus modules. Among them, the bus module may include an input bus terminal and an output bus terminal. The input bus terminal may include multiple bus input signal terminals, and the output bus terminal may include multiple bus output signal terminals.
[0040] In the embodiment of the present application, the component module can be a multi-input and multi-output module, which can integrate different types of input signals and output signals. And the bus output signal of the component module can correspond one-to-one to the output signal of the component software. Among them, the output signal of the component software can be set according to the design requirements. The output signal of the component software can be part or all of the output signals of the running entity it contains.
[0041] It should be noted that the types of input signals and output signals may be data types of the design software, such as common data types such as integer, floating point, complex, logical, character, array, and date. The design software may be Matlab / Simulink.
[0042] In the embodiment of the present application, the signal interaction device creates a component module corresponding to the component software of the application software layer according to the new module operation of the designer on the design page of the design system. The signal interaction device can name each component module according to the naming input operation of the designer on the design page. For ease of management, the name of each component module is consistent with the name of the component software.
[0043] S22, adding the output information of each component module to the bus data manager of the corresponding component module.
[0044] Here, the output information of the component module can be the output information of the component software. The output information can include at least the name, type, upper and lower limits, and signal description of the output signal. The bus data manager can be a tool for managing bus data, which is used to manage bus objects. In an embodiment of the present application, the designer can edit the bus object (i.e., the bus output signal) in the bus data manager. The bus data manager can be implemented using different tools, such as a type editor or a model explorer.
[0045] Figure 3 FIG. 1 shows a page diagram of a bus data manager provided by an embodiment of the present application. The figure shows part of the contents of the bus data manager. Figure 3 As shown, the bus data manager is implemented using a type editor, which defines the bus object, specifically defining the bus object's name (name), byte type (DataType), signal type (Complexity), dimensions (Dimensions), signal description (Description), signal lower limit value (Min) and signal upper limit value (Max) and other attribute values.
[0046] In the embodiment of the present application, one component module corresponds to one bus data manager. The signal interaction device can add the output information of each component module to the corresponding bus data manager in different forms according to different information adding methods of the designer, and generate a corresponding bus object. That is, the output information of an output signal corresponds to a bus object, that is, a bus object represents the output signal of a component module. Among them, an output signal of a component module can be a signal output by the running instance it contains.
[0047] It should be noted that the information adding method may include an overall adding method and an item-by-item adding method. In the embodiment of the present application, there is no limitation on the information adding method.
[0048] S23, associating the bus output signal terminal of each component module with the bus object in the respective bus data manager.
[0049] Here, the bus output signal end of the component module can be a signal output port of the bus in the component module. In the present application, the data manager can be used to connect the bus output signal end with its own bus object, that is, the signal interaction device associates the bus object with the bus output signal end in the component module through the data manager, so that the bus output signal end outputs the corresponding bus object signal. Among them, the bus object signal can be a signal output by the running instance corresponding to the bus object. The running entity corresponding to the bus object can be determined according to the name of the bus object, that is, the name of the bus object can be the name of the running entity corresponding to the bus object.
[0050] S24, for each component module, select at least one bus output signal terminal from the bus output signal terminals of other component modules except itself as its own bus input signal terminal, so as to complete the signal interaction between the component modules.
[0051] Here, for each component module, the other component modules may be one or more component modules in the application software layer except the component module itself. The bus input signal end may be a signal input port of the bus in the component module.
[0052] In an embodiment of the present application, for each component module, the signal interaction device can select one or more bus output signal terminals from all bus output signal terminals of other component modules as its own bus input signal terminal according to the selection operation of the input signal of the designer. That is, for each component module, one or more bus output signal terminals of other component modules can be connected to its own bus input signal terminal according to the input design requirements of the component module. A bus input signal terminal of a component module can correspond to a bus output signal terminal of other modules except itself. In this way, the component modules can be connected through the input and output ports of the bus, that is, the output signal of the running instance of a component module can be input into the running instance of other component modules through the bus module, completing the signal interaction between the running entities of different component modules, and then realizing the signal interaction between component modules.
[0053] In the above embodiment, a component module corresponding to each component software in the application software layer can be newly created, so that the component software in the application software layer has a corresponding component module. The output information of each component module is added to the bus data manager of the corresponding component module, thereby completing the establishment of the bus object corresponding to the component module. The bus output signal end of each component module is associated with the bus object in the respective bus data manager, so that the bus output signal end can output the bus object signal corresponding to the bus object. For each component module, at least one bus output signal end is selected from the bus output signal ends of other component modules other than itself as its own bus input signal end. In this way, the input signal of the component module is integrated in the bus, and the bus object signal output by other component modules is called as its own input signal through the input bus end, so that there is no need to configure the signal mapping between the component modules in the RTE layer, and the signal interaction between the component modules can be completed quickly and accurately, reducing the difficulty of signal interaction operation, reducing the workload of designers, and improving the accuracy and work efficiency of signal interaction.
[0054] In addition, since the present application adopts bus design, when performing signal interaction, designers of the application software layer can reduce communication with designers of other layers and improve work efficiency.
[0055] In some embodiments, S22, adding the output information of each component module to the bus data manager of the corresponding component module may include:
[0056] Get a spreadsheet output list for each component module.
[0057] Import each output list into the bus data manager of the corresponding component module.
[0058] Here, the output list may include output information of the component module, wherein the output information of the component module is the same as the output information in the above embodiment, and will not be described in detail here.
[0059] The output list in the form of a spreadsheet may be an Excel spreadsheet. Table 1 shows an output list provided in an embodiment of the present application.
[0060] name Data Types Lower limit Upper limit describe Output signal 1 Type 1 Statement 1 Output signal 2 Type 1 Statement 2 Output signal 3 Type 1 Statement 3 Output signal 4 Type 1 Statement 4 Output signal 5 Type 1 Statement 5 Output signal 6 Type 2 Statement 6 Output signal 7 Type 3 Statement 7
[0061] Table 1 Output list
[0062] It should be noted that the data type is a data type that the design software is compatible with, and may include but is not limited to single precision type (single), double precision type (double), signed integer type (int), unsigned integer type (uint) and Boolean type (boolean). Among them, int may include int8, int16, int32 and int64. Uint may include uint8, uint16, uint32 and uint64. Type 1 to type 3 may be any of the above types. Output signals 1-7 are different output signals.
[0063] Taking the output information list of the component software based on motor control as an example, output signal 1 can be pSWO_Nm_MotAllowDrvMax, output signal 2 can be pSWO_Nm_MotAllowRegMax, output signal 3 can be pSWO_Nm_MotAcTorp, output signal 4 can be pSWO_Nm_MotSpdaftFault, output signal 5 can be pSWO_Nm_MotTemp, output signal 6 can be pSWO_st_MotS, and output signal 7 can be pSWO_b_DischgFinish. Type 1 can be single, and type 2 can be uint8. Statement 1 can be "the maximum driving torque sent by the motor system." Statement 2 can be "the maximum recovery torque sent by the click system." Statement 3 can be "the actual torque of the motor." Statement 4 can be "the motor speed." Statement 5 can be "the motor body temperature." Statement 6 can be "the motor status." Statement 7 can be "the motor control." Here, the bus data manager page corresponding to the output information list of the component software based on motor control can be as follows Figure 3 As shown. In the embodiment of the present application, each output information in the output list corresponds to a bus object in the bus data manager. The signal interaction device can obtain the output list in different ways. For example, the signal interaction device can directly obtain the output list, or run relevant programming statements to convert the output information into an output list, etc. It should be noted that the methods of obtaining tables in existing design systems are all applicable to obtaining the output list in the embodiment of the present application.
[0064] The signal interaction device imports each output list into the bus data manager of the corresponding component module, thereby generating a bus object corresponding to each output information in the output list in the bus data manager.
[0065] In the above embodiment, the output information is added to the bus data manager in the form of an electronic spreadsheet, so that all bus objects of a component module can be generated at one time, and daily maintenance and reuse are convenient.
[0066] In some embodiments, S22, adding the output information of each component software to the data manager of the corresponding component module may include:
[0067] The output information of each component software is added one by one to the data manager of the corresponding component module through the data dictionary.
[0068] Here, the data dictionary may be a commonly used data dictionary in the design system. The data dictionary may store output information of one or more component modules. In an embodiment of the present application, the signal interaction device may select an output information from the data dictionary and add it to the data manager according to the operation of adding a bus object in the bus data manager by the designer, thereby generating a bus object. Repeat the above operation to add all the output information of a component module one by one, thereby gradually generating all the bus objects of a component module in the data manager.
[0069] In the above embodiment, the output information is added to the data manager piece by piece through the data dictionary, so that the accuracy of each bus object can be guaranteed.
[0070] In addition, the signal interaction device can also use other information storage methods, such as functions, MAT files and databases, to add output information to the bus data manager.
[0071] In some embodiments, S23, associating the bus output signal terminal of each component module with the bus object in the respective bus data manager may include:
[0072] Based on the bus object in the bus data manager corresponding to each component module, determining the corresponding bus output signal terminal in the corresponding component module;
[0073] Through the bus data manager corresponding to each component module, the bus output signal terminal of each component module is connected to the bus object in the respective bus data manager.
[0074] Here, the bus data manager has a connection function, which can connect the bus objects stored in itself to the bus output signal terminal of the component module.
[0075] In an embodiment of the present application, the signal interaction device can determine the bus signal output end corresponding to each bus object at the output end of the corresponding component module according to the bus object in the bus data manager by calling the bus data manager, and connect each bus object to the bus output signal port of the corresponding component module one by one, so that the bus output port can output the bus object signal. The bus object signal is a signal output by the running entity corresponding to the bus object. The running entity corresponding to the bus object can be determined according to the name of the bus object, that is, the name of the bus object can be the name of the running entity corresponding to the bus object.
[0076] Figure 4 A schematic diagram of the structure of a component module provided in an embodiment of the present application is shown. Figure 4 The component modules shown are based on Figure 3 The Bus Data Manager page is constructed as shown in the figure. Figure 4 The component module has 7 bus output signal terminals, and each bus output signal terminal is connected to Figure 3 A bus object in the connection. Figure 4 The black circles in the figure represent bus input / output modules. Figure 4 As shown, the bus input signal can be represented as Bus_in.signal1 to BUS_in.signaln. The bus input signal can be the bus output signal of other component modules or other common signals. It should be noted that other common signals can be random signals, triangular wave signals, square wave signals, unit impulse signals, etc.
[0077] In the above embodiment, the bus object can be automatically connected to the bus output signal terminal through the bus data manager, so that the output objects corresponding to all bus output signal terminals of the component module can be quickly and accurately determined.
[0078] In some embodiments, after associating the bus output signal terminal of each component module with the bus object in the respective bus data manager at S23, the signal interaction method further includes:
[0079] Connecting each bus output signal terminal of each component module to a bus output signal module respectively;
[0080] Extract the bus object signal corresponding to the bus output signal terminal of each component module through each bus output signal module, so that the corresponding bus object signal can be called between component modules through the bus output signal module;
[0081] Based on the name of the bus object, set the name of the corresponding bus output signal module.
[0082] Here, the bus object signal is a signal output by the running entity corresponding to the bus object. The running entity corresponding to the bus object can be determined according to the name of the bus object, that is, the name of the bus object can be the name of the running entity corresponding to the bus object. The bus output signal module can be used to extract the bus object signal output by the corresponding bus output signal terminal. In the embodiment of the present application, the bus output signal module can be the "Out Bus Element" module in simulink.
[0083] In the embodiment of the present application, the designer can set a bus output signal module at each bus output signal end of the component module by creating a new operation at a specified position. The signal interaction device sets a bus output signal module at the bus output signal end of each component module according to the first setting operation of the designer, so that one bus output signal end is connected to one bus output signal module, so that the bus object signal output by the bus output signal end can be extracted. The first setting operation can be a setting operation for the bus output signal module.
[0084] The signal interaction device can determine the bus output signal port connected to the bus output signal module according to the location where the bus output signal module is set. And because the bus output signal module is connected to the bus object one by one, the bus output signal module can extract the corresponding bus object signal, so that when the component module calls the bus output signal module as the bus input module of other component modules, the corresponding bus object signal can be used as the bus input signal of other component modules.
[0085] Here, the name of the bus output signal module may include the name of the bus object. Each bus output signal module corresponds to a name tag. The signal interaction device may determine the name of the bus output signal module according to the setting operation of the name tag. That is, the signal interaction device may write the name of the bus output signal module into the name tag.
[0086] In the above embodiment, the bus output signal module can be connected to the bus output port, so that the bus object signal corresponding to the bus output port can be extracted, so that the corresponding bus object signal can be directly and quickly called between component modules through the bus output signal module. At the same time, the name of the corresponding bus output signal module is set according to the name of the bus object, which can facilitate the quick and accurate confirmation of the extracted bus object signal.
[0087] In some embodiments, the signal interaction device may also set the name of the bus output signal module through a designer's modification operation on the name of the bus output module.
[0088] In some embodiments, setting the name of the corresponding bus output signal module based on the name of the bus object may include:
[0089] Set the name of the bus output signal module according to the preset naming rules based on the name of the bus object.
[0090] Here, the preset naming rule can be set according to the requirements, but the name of the bus output signal module must include the name of its corresponding bus object. In this way, the bus object corresponding to the bus output signal module can be intuitively identified.
[0091] Optionally, the preset naming rule may be that the name of the bus output signal module may be a combination of a preset prefix name and a bus object name. The preset prefix name may be a combination of a preset word and a component module name. The preset word may be BUS or OUT. Taking the preset word BUS as an example, the name of the bus output signal module is BUS_component module name.bus object name, such as Figure 4 shown.
[0092] In the embodiment of the present application, the signal interaction device modifies the content of the name tag of the bus output signal module according to the preset rule, so as to unify the naming method of the bus output signal module and facilitate distinction. At the same time, the name of the bus output signal module set by the preset naming rule can facilitate identification of the bus object connected to the bus output signal module.
[0093] In some embodiments, S24, for each component module, selecting at least one bus output signal terminal from bus output signal terminals of other component modules other than itself as its own bus input signal terminal to complete signal interaction between the component modules, including:
[0094] Connecting each bus input signal terminal of each component module to a bus input signal module respectively;
[0095] For the bus input signal terminal of each component module, at least one bus output signal module selected from the bus output signal modules of other component modules except itself is connected through the bus input signal module, so as to use at least one bus output signal terminal of other component modules as its own bus input signal terminal.
[0096] Here, the bus input signal module can be used to call the bus signal output module of the component module, that is, call the bus object signal extracted from the output end of the component module and input it into the bus input signal end. In the embodiment of the present application, the bus output signal module can be the "In Bus Element" module in simulink.
[0097] In an embodiment of the present application, the designer can set a bus input signal module at each bus input signal end of the component module through a new operation at a specified position. The signal cunning device sets a bus input signal module at the bus input signal end of each component module according to the second setting operation of the designer, so that a bus output signal end is connected to a bus output signal module. Among them, the second setting operation is a setting operation of the bus input signal module. And the signal interaction can select a bus output signal module from the bus output signal module list as the bus input signal module according to the selection operation of the designer, so that the bus input signal module can be connected to the bus object signal extracted by a bus output signal module, and input it into the bus input signal end to complete the interaction between the component modules.
[0098] In addition, the bus input signal module can correspond to a name tag. The signal interaction device can modify the name of the bus input signal module by modifying the name tag. The signal interaction device sets the name of the bus input signal module based on the name of the bus output signal module connected to the name of the bus input signal module. That is, the name of the bus input signal module is kept consistent with the name of the bus output module. In other words, the input signal end of the component module can be connected to multiple bus input modules, each bus input signal module is associated with the bus output module of other component modules, and its name is the same as the name of the bus output module of another component module. In this way, it is easy to quickly understand the calling relationship between component modules and ensure that the bus output signal module can be accurately called.
[0099] Figure 5 A schematic diagram showing the structure of another component module provided by the embodiment of the present application is shown. Figure 5 The component module is called as shown in Figure 4 The two bus output signal modules of the component module are used as their own bus input signal modules. The black circle represents the bus input / output signal module. The name of the component module is SWC2, and the bus output signal modules can be BUS_SWC2_ASW.outsignal1 to BUS_SWC2_ASW.outsignaln.
[0100] In this way, through the bus input signal module, the bus output signal terminal of a component module can be connected to the bus input and output signal terminal of another component module, so that the bus output signal of one component module can be directly called as the bus input signal of another component module, thereby quickly and accurately completing the signal interaction between the component modules.
[0101] It should be noted that the bus object and its extracted signal corresponding to each bus output signal module are unique. When using the bus input module to call the bus object signal, the bus object must not be redefined, thereby reducing connection errors and avoiding functional abnormalities.
[0102] Another aspect of the embodiments of the present application provides a signal interaction device. Figure 6 A schematic diagram of the structure of a signal interaction device provided in an embodiment of the present application is shown. Figure 6 , the signal interaction device comprises:
[0103] A component creation module 61 is used to create a component module corresponding to each component software in the application software layer;
[0104] An information adding module 62, used to add the output information of each component module to the bus data manager of the corresponding component module;
[0105] An information association module 63, used to associate the bus output signal terminal of each component module with the bus object in the respective bus data manager;
[0106] The signal terminal selection module 64 is used to select at least one bus output signal terminal from the bus output signal terminals of other component modules except itself as its own bus input signal terminal for each component module, so as to complete the signal interaction between the component modules.
[0107] In the above embodiment, a component module corresponding to each component software in the application software layer can be newly created, so that the component software in the application software layer has a corresponding component module. The output information of each component module is added to the bus data manager of the corresponding component module, thereby completing the establishment of the bus object corresponding to the component module. The bus output signal end of each component module is associated with the bus object in the respective bus data manager, so that the bus output signal end can output the bus object signal corresponding to the bus object. For each component module, at least one bus output signal end is selected from the bus output signal ends of other component modules other than itself as its own bus input signal end. In this way, the input signal of the component module is integrated in the bus, and the bus object signal output by other component modules is called as its own input signal through the input bus end, so that there is no need to configure the signal mapping between the component modules in the RTE layer, and the signal interaction between the component modules can be completed quickly and accurately, reducing the difficulty of signal interaction operation, reducing the workload of designers, and improving the accuracy and work efficiency of signal interaction.
[0108] In some embodiments, the information adding module 62 may include:
[0109] The list acquisition submodule can be used to obtain the output list in the form of a spreadsheet corresponding to each component module, and the output list includes the output information of the component module;
[0110] The import submodule can be used to import each output list into the bus data manager of the corresponding component module.
[0111] In some embodiments, the information adding module 62 may include:
[0112] Adding sub-modules one by one can be used to add the output information of each component module one by one to the bus data manager of the corresponding component module through the data dictionary.
[0113] In some embodiments, the information association module 63 may include:
[0114] The signal terminal determination submodule may be used to determine the corresponding bus output signal terminal in the corresponding component module based on the bus object in the bus data manager corresponding to each component module;
[0115] The output association submodule can be used to connect the bus output signal end of each component module to the bus object in the respective bus data manager through the bus data manager corresponding to each component module.
[0116] In some embodiments, the signal interaction device may further include:
[0117] The output module connection module can be used to connect each bus output signal terminal of each component module to a bus output signal module after associating the bus output signal terminal of each component module with the bus object in the respective bus data manager;
[0118] The signal extraction module can be used to extract the bus object signal corresponding to the bus signal output terminal of each component module through each bus output signal module, so that the bus object signal can be called between the component modules through the bus output signal module, and the bus corresponding signal is the signal output by the running entity corresponding to the bus object;
[0119] The output module name setting module can be used to set the name of the corresponding bus output signal module based on the name of the bus object.
[0120] In some embodiments, the output module name setting module may include:
[0121] The preset rule naming submodule can be used to set the name of the bus output signal module according to the preset naming rule based on the name of the bus object.
[0122] In some embodiments, the signal extraction module may include:
[0123] An input connection submodule, which can be used to connect each bus input signal terminal of each component module to a bus input signal module respectively;
[0124] The input connection submodule can be used to connect at least one bus output signal module selected from the bus output signal modules of other component modules other than itself through the bus input signal module for the bus input signal terminal of each component module, so as to use at least one bus output signal terminal of the other component modules as its own bus input signal terminal.
[0125] It should be understood that the specific features, operations and details described hereinabove regarding the method of the present application may also be similarly applied to the device and system of the present application, or vice versa. In addition, each step of the method of the present application described above may be performed by a corresponding component or unit of the device or system of the present application.
[0126] It should be understood that each module / unit of the device of the present application can be implemented in whole or in part by software, hardware, firmware or a combination thereof. Each module / unit can be embedded in the processor of the electronic device or independent of the processor in the form of hardware or firmware, or can be stored in the memory of the electronic device in the form of software for the processor to call to perform the operation of each module / unit. Each module / unit can be implemented as an independent component or module, or two or more modules / units can be implemented as a single component or module.
[0127] According to another aspect of the embodiments of the present application, an electronic device is provided. Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. Figure 7 As shown, the electronic device 70 includes a processor 71 and a memory 72 storing computer program instructions. The processor 71 implements the steps of the above-mentioned signal interaction method when executing the computer program instructions. The electronic device 70 can be generally a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities.
[0128] In one embodiment, the electronic device 70 may include a processor, a memory, a network interface, a communication interface, etc. connected via a system bus. The processor of the electronic device 70 may be used to provide necessary computing, processing and / or control capabilities. The memory of the electronic device 70 may include a non-volatile storage medium and an internal memory. The non-volatile storage medium may store an operating system, a computer program, etc. The internal memory may provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the electronic device 70 may be used to connect and communicate with external devices via a network. When the computer program is executed by the processor, the steps of the signal interaction method of the present application are executed.
[0129] The present application provides a computer-readable storage medium, on which a signal interaction program is stored. When the signal interaction program is executed by a processor, the steps of the signal interaction method provided in any of the above embodiments are implemented.
[0130] It will be appreciated by those skilled in the art that the method steps of the present application may be performed by instructing related hardware such as the electronic device 70 or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present application to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, or other media herein may include non-volatile or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0131] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A signal interaction method, It is characterized in that include: Create component modules corresponding to each component software in the new application software layer; Adding the output information of each component module to the bus data manager of the corresponding component module; Associating the bus output signal terminal of each of the component modules with the bus object in the respective bus data manager; For each of the component modules, at least one bus output signal terminal is selected from the bus output signal terminals of other component modules except the component module as its own bus input signal terminal, so as to complete the signal interaction between the component modules; After associating the bus output signal terminal of each component module with the bus object in the respective bus data manager, the method further includes: Connecting each bus output signal terminal of each component module to a bus output signal module respectively; Extract the bus object signal corresponding to the bus signal output terminal of each component module through each bus output signal module, so that the bus object signal can be called between component modules through the bus output signal module, and the bus corresponding signal is the signal output by the running entity corresponding to the bus object; Based on the name of the bus object, the name of the corresponding bus output signal module is set.
2. The signal interaction method according to claim 1, It is characterized in that The adding the output information of each component module to the bus data manager of the corresponding component module comprises: Obtaining an output list in a spreadsheet format corresponding to each component module, wherein the output list includes output information of the component module; Each of the output lists is imported into the bus data manager of the corresponding component module.
3. The signal interaction method according to claim 1, It is characterized in that The adding the output information of each component module to the bus data manager of the corresponding component module comprises: The output information of each component module is added piece by piece to the bus data manager of the corresponding component module through the data dictionary.
4. The signal interaction method according to claim 1, It is characterized in that The step of associating the bus output signal terminal of each component module with the bus object in the respective bus data manager comprises: Based on the bus object in the bus data manager corresponding to each component module, determining the corresponding bus output signal terminal in the corresponding component module; Through the bus data manager corresponding to each component module, the bus output signal terminal of each component module is connected to the bus object in the respective bus data manager.
5. The signal interaction method according to claim 1, It is characterized in that The step of setting the name of the corresponding bus output signal module based on the name of the bus object comprises: Based on the name of the bus object, the name of the bus output signal module is set according to a preset naming rule.
6. The signal interaction method according to claim 5, It is characterized in that For each of the component modules, selecting at least one bus output signal terminal from bus output signal terminals of other component modules except the component module as its own bus input signal terminal to complete signal interaction between the component modules, including: Connecting each bus input signal terminal of each component module to a bus input signal module respectively; For the bus input signal terminal of each component module, at least one bus output signal module selected from the bus output signal modules of other component modules except itself is connected through the bus input signal module, so as to use at least one bus output signal terminal of the other component modules as its own bus input signal terminal.
7. A design device for signal interaction, It is characterized in that include A component creation module is used to create a component module corresponding to each component software in the application software layer; An information adding module, used for adding the output information of each component module to the bus data manager of the corresponding component module; An information association module, used for associating the bus output signal terminal of each of the component modules with the bus object in the respective bus data manager; A signal terminal selection module, for each of the component modules, selecting at least one bus output signal terminal from the bus output signal terminals of other component modules except itself as its own bus input signal terminal, so as to complete the signal interaction between the component modules; an output module connection module, for connecting each bus output signal terminal of each component module to a bus output signal module respectively after associating the bus output signal terminal of each component module with a bus object in the respective bus data manager; A signal extraction module, used to extract the bus object signal corresponding to the bus signal output terminal of each component module through each bus output signal module, so that the bus object signal can be called between component modules through the bus output signal module, and the bus corresponding signal is the signal output by the running entity corresponding to the bus object; The output module name setting module is used to set the name of the corresponding bus output signal module based on the name of the bus object.
8. An electronic device, It is characterized in that The electronic device includes a processor, a memory, and a signal interaction program stored in the memory and executable by the processor, wherein when the signal interaction design program is executed by the processor, the steps of the signal interaction method as described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a signal interaction program, wherein when the signal interaction program is executed by a processor, the steps of the signal interaction method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system for executing machine learning algorithms
CN113168577A
Table description information generation method, related device, equipment and storage medium
CN114840499A
Shifting module AUTOSAR software component development method, device and equipment based on Simulink
CN114879935A
Generation method and generation device of application software layer model and electronic equipment
CN115544604A
Automobile horn software component development method and device based on Simulink tool and AUTOSAR architecture
CN115639983A
