Signal testing method, device, equipment and computer storage medium

By utilizing the vehicle's DBC file and the message encapsulation rules of the target signal device for signal format conversion and encapsulation during signal testing, the problems of complex operation and low efficiency in the existing technology are solved, and more efficient signal testing is achieved.

CN116418720BActive Publication Date: 2026-05-15ROX MOTOR TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ROX MOTOR TECH CO LTD
Filing Date
2022-12-30
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing signal simulation testing solutions have high learning costs, low ease of use, and low signal testing efficiency, especially when using CANFD or other communication management tools, which require configuration through Canoe or third-party IDE tools.

Method used

By receiving the initial signal, the system performs standard signal format conversion using the vehicle's DBC file, generates the target message according to the message encapsulation rules of the target signal device, and sends it directly to the target signal device for testing. It supports compatible conversion of multiple signal types and reuse of historical signals.

Benefits of technology

It reduces the learning cost of operation in the signal testing process, improves the ease of use and efficiency of signal simulation testing, and simplifies the testing process for different signal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116418720B_ABST
    Figure CN116418720B_ABST
Patent Text Reader

Abstract

The application discloses a signal test method, device and equipment and a computer storage medium, and relates to the technical field of automobile communication. The signal test method comprises the following steps: receiving a first input, wherein the first input is used for determining a first initial signal; converting the first initial signal into a first standard signal based on a DBC file of a vehicle; encapsulating the first standard signal into a target message based on a message encapsulation rule corresponding to a target signal device in the vehicle; and sending the target message to the target signal device to perform signal test on the target signal device. According to the embodiment of the application, the operation learning cost in the signal test process can be reduced, the ease of use can be enhanced, and the signal simulation test efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of automotive communication technology, and in particular relates to a signal testing method, device, equipment, and computer storage medium. Background Technology

[0002] With the continuous development of vehicle intelligence, vehicle users have increasingly higher demands for intelligent services in automobiles, leading to a greater degree of vehicle electronics integration. Among these advancements, the number of Electronic Control Units (ECUs) in vehicles has significantly increased due to the rapid development and widespread application of electronic technology. To achieve collaborative operation between these control units, communication management systems such as CAN / CANFD / FlexRay are commonly used.

[0003] In practical applications, to improve the reliability and effectiveness of communication management, signal simulation tests are usually required for each electronic control unit in the vehicle before adopting communication management methods such as CANFD. However, existing signal simulation test solutions are configured using Canoe (CAN open environment) or third-party IDE (Integrated Drive Electronics) tools, which suffer from high learning costs, low ease of use, and low signal testing efficiency. Summary of the Invention

[0004] This application provides a signal testing method, apparatus, device, and computer storage medium, which can reduce the learning cost of operation in the signal testing process, enhance ease of use, and significantly improve the efficiency of signal simulation testing.

[0005] In a first aspect, embodiments of this application provide a signal testing method, which includes:

[0006] Receive a first input, which is used to determine a first initial signal;

[0007] Based on the vehicle's DBC file, the first initial signal is converted into a first standard signal;

[0008] Based on the message encapsulation rules corresponding to the target signal devices in the vehicle, the first standard signal is encapsulated into the target message;

[0009] Send the target message to the target signal device to perform signal testing on the target signal device.

[0010] In some possible implementations, after receiving the first input, the signal testing method further includes:

[0011] Store the first initial signal into the historical signal set;

[0012] After sending the first message to the target signal device, the signal testing method further includes:

[0013] In response to the second input, the first initial signal from the historical signal set is displayed;

[0014] Invoke the first initial signal.

[0015] In some possible implementations, after sending the target message to the target signaling device, the signal testing method further includes:

[0016] The feedback information sent by the target signal device corresponds to the first initial signal;

[0017] Based on the feedback information and the first initial signal, the first log record is generated.

[0018] In some possible implementations, sending the target message to the target signaling device includes:

[0019] Call the communication interface that matches the target signal device to send the target message to the target signal device.

[0020] In some possible implementations, based on the vehicle's DBC file, the first initial signal is converted into a first standard signal, including:

[0021] Determine the signal type of the first initial signal;

[0022] Based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, the first initial signal is converted into a first standard signal.

[0023] In some possible implementations, if the signal type of the first initial signal supports combined signals, the first initial signal is converted into a first standard signal based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, including:

[0024] Detect whether the first initial signal is a combined signal;

[0025] In the case where the first initial signal is a combined signal, the first initial signal is converted and split into multiple first standard signals based on the conversion rules and DBC file corresponding to the signal type of the first initial signal.

[0026] In some possible implementations, the initial signal under the first signal type includes a message identifier, a signal name, and a signal value;

[0027] When the signal type of the first initial signal is a first signal type, the first initial signal is converted into a first standard signal based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, including:

[0028] Check if the message identifier and signal name of the first initial signal exist in the DBC file;

[0029] If the message identifier and signal name of the first initial signal exist in the DBC file, the signal value in the first initial signal is converted into a hexadecimal string based on the DBC file to obtain the first standard signal.

[0030] In some possible implementations, the initial signal under the second signal type adopts JSON text format. The initial signal under the second signal type includes a message identifier and N signal names, where N is a positive integer. The second signal type supports combined signals.

[0031] When the signal type of the first initial signal is the second signal type, based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, the first initial signal is converted into a first standard signal, including:

[0032] Detect whether the message identifier of the first initial signal exists in the DBC file;

[0033] If the message identifier of the first initial signal exists in the DBC file, the values ​​corresponding to the N signal names in the first initial signal are converted into hexadecimal strings based on the DBC file to obtain the first standard signals corresponding to the N signal names respectively.

[0034] Secondly, embodiments of this application provide a signal testing apparatus, which includes:

[0035] A first receiving module is used to receive a first input, which is used to determine a first initial signal;

[0036] The first conversion module is used to convert the first initial signal into a first standard signal based on the vehicle's DBC file;

[0037] The first encapsulation module is used to encapsulate the first standard signal into a target message based on the message encapsulation rules corresponding to the target signal device in the vehicle.

[0038] The first sending module is used to send the target message to the target signal device in order to perform signal testing on the target signal device.

[0039] Thirdly, embodiments of this application provide a signal testing device, which includes:

[0040] Processor and memory storing computer program instructions;

[0041] When the processor executes the computer program instructions, it implements the signal testing method provided in any of the embodiments of this application described above.

[0042] Fourthly, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the signal testing method provided in any of the embodiments of this application described above.

[0043] Fifthly, embodiments of this application provide a vehicle that includes at least one of the following: a voice interaction device as provided in the embodiments of this application above; a voice interaction equipment as provided in the embodiments of this application above; and a computer-readable storage medium as provided in the embodiments of this application above.

[0044] The signal testing method, apparatus, device, and computer storage medium of this application embodiment determine a first initial signal by receiving a first input, converts the first initial signal to a standard signal format according to the vehicle's DBC file, encapsulates the message according to the message encapsulation rules specified by the target signal device to be tested, and finally sends the generated message to the target signal device, thereby realizing signal transmission in signal testing of the target signal device. The signal testing method, apparatus, device, and computer storage medium provided by this application embodiment can perform a series of compatible conversion processes on the first initial signal. This eliminates the need to switch between different external tools for testing different signal devices, thereby reducing the operational learning cost and enhancing usability during signal testing, and also significantly improving the efficiency of signal simulation testing. Attached Figure Description

[0045] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 This is a schematic flowchart of a signal testing method provided in an embodiment of this application;

[0047] Figure 2 This is a schematic diagram of the front-end display interface provided in an embodiment of this application;

[0048] Figure 3 This is one of the schematic diagrams of the signal conversion process of the first initial signal provided in an embodiment of this application;

[0049] Figure 4This is a second schematic diagram of the signal conversion process of the first initial signal provided in an embodiment of this application;

[0050] Figure 5 This is the third schematic diagram of the signal conversion process of the first initial signal provided in an embodiment of this application;

[0051] Figure 6 This is a schematic diagram of the overall flow of a signal testing method provided in an embodiment of this application;

[0052] Figure 7 This is a schematic diagram of the structure of a signal testing device provided in an embodiment of this application;

[0053] Figure 8 This is a schematic diagram of the structure of a signal testing device provided in an embodiment of this application. Detailed Implementation

[0054] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0055] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0056] As described in the background section, before adopting communication management methods such as CANFD, signal simulation tests need to be performed on each electronic control unit in the vehicle. However, existing signal simulation test solutions all configure and send test signals through Canoe or third-party IDE tools, which have high learning costs, low ease of use, and low signal testing efficiency.

[0057] To address the aforementioned problems in the prior art, embodiments of this application provide a signal testing method, apparatus, device, storage medium, and computer program product. It should be noted that the embodiments provided in this application are not intended to limit the scope of this disclosure.

[0058] The signal testing method provided in the embodiments of this application will be described below.

[0059] Figure 1 A schematic flowchart of a signal testing method according to an embodiment of this application is shown. This signal testing method is applied to an electronic device, which may include a server or a user terminal, etc. During signal testing, the electronic device can connect to the vehicle under test. Figure 1 As shown, the signal testing method includes the following steps:

[0060] S110, Receive a first input, the first input is used to determine a first initial signal;

[0061] S120, based on the vehicle's DBC file, converts the first initial signal into a first standard signal;

[0062] S130, based on the message encapsulation rules corresponding to the target signal device in the vehicle, encapsulate the first standard signal into a target message;

[0063] S140, the target message is sent to the target signal device to perform signal testing on the target signal device.

[0064] The signal testing method of this application embodiment determines a first initial signal by receiving a first input, converts the first initial signal to a standard signal format according to the vehicle's DBC file, encapsulates the message according to the message encapsulation rules specified by the target signal device to be tested, and finally sends the generated message to the target signal device, thereby realizing signal transmission in the signal testing of the target signal device. The signal testing method provided by this application embodiment can perform a series of compatible conversions on the first initial signal, thus eliminating the need to switch between different external tools for testing different signal devices. This reduces the operational learning cost and enhances usability during signal testing, while also significantly improving the efficiency of signal simulation testing.

[0065] In S110, in a specific implementation, a first input is received, which is used to determine a first initial signal.

[0066] In this embodiment, a relevant display interface may be configured on the front end of the electronic device so that the user can perform operations such as clicking, touching, or inputting characters for the first input. Please refer to [link to relevant documentation]. Figure 2 , Figure 2This is a schematic diagram of the front-end display interface provided in one embodiment of this application.

[0067] like Figure 2 As shown, users can input the specific signal text of the first initial signal under the corresponding signal type through click, touch and other operations on the front-end display interface. This allows users to customize the input of the first input by operating the front-end display interface. The first input will specifically include the specific signal text of the first initial signal.

[0068] Alternatively, the front-end display interface may also provide a function for selecting historical signal configurations. Based on this, users can also select the desired first initial signal from historical signals by clicking on the historical signal configuration, thereby more conveniently realizing the above-mentioned first input. This application does not impose any specific restrictions on this.

[0069] In S120, in a specific implementation, the first initial signal can be converted into a first standard signal based on the vehicle's DBC file and according to the signal conversion rules specified in the vehicle's DBC file.

[0070] It should be noted that the DBC files differ for different vehicles in this application. DBC (Database Can) represents the CAN database file, and communication in the CAN bus network within a vehicle often relies on the description in this DBC file. The CAN communication information is specifically defined in the DBC file, enabling error-free collaborative and synchronous development of the node controllers throughout the CAN bus network.

[0071] In some possible implementations, in order to more reasonably achieve the signal format conversion of the aforementioned first initial signal, the vehicle-based DBC file converts the first initial signal into a first standard signal, which may specifically include:

[0072] Determine the signal type of the first initial signal;

[0073] Based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, the first initial signal is converted into a first standard signal.

[0074] In this embodiment, considering the user's perspective, in order to facilitate the user's initial signal input, the first initial signal may often have different signal body formats, that is, different signal types, such as JSON text format, simple code format, or hexadecimal string format, etc.

[0075] Therefore, in order to achieve a more reasonable and efficient conversion of the signal format of the aforementioned first initial signal, different conversion rules can be set for initial signals of different signal types. Thus, after determining the first initial signal, the signal type of the first initial signal can be determined first, and then, based on the conversion rules corresponding to the signal type of the first initial signal and in conjunction with the vehicle's DBC file, the first initial signal can be converted into a first standard signal.

[0076] In some possible implementations, to further achieve signal format conversion of the first initial signal, if the signal type of the first initial signal supports combined signals, the first initial signal is converted into a first standard signal based on the conversion rules and DBC file corresponding to the signal type of the first initial signal. This may include:

[0077] Detect whether the first initial signal is a combined signal;

[0078] In the case where the first initial signal is a combined signal, the first initial signal is converted and split into multiple first standard signals based on the conversion rules and DBC file corresponding to the signal type of the first initial signal.

[0079] In this embodiment, if the first initial signal is determined to be a combined signal, it is converted and split during the subsequent conversion process of the first initial signal, thereby converting and decomposing the combined signal into multiple single standard signals.

[0080] In S130, in specific implementation, the first standard signal is encapsulated into a target message based on the message encapsulation rules corresponding to the target signal device in the vehicle.

[0081] It should be noted that in this embodiment, the vehicle includes multiple electronic control units (ECUs), and the target signal device can be any electronic control unit (ECU) in the vehicle that needs to be tested for signals. This application does not impose any specific restrictions on this.

[0082] In practice, message encapsulation rules for each electronic control unit (ECU) can be predefined according to their communication requirements and message specifications. Then, after obtaining the first standard signal, the first standard signal is encapsulated according to the message encapsulation rules corresponding to the target signal device to generate the target message.

[0083] It should be noted that, considering the diversity of existing message encapsulation methods and the complexity of the actual message encapsulation process, this application will not elaborate on how to implement message encapsulation in detail.

[0084] In S140, in specific implementation, the target message is sent to the target signal device to perform signal testing on the target signal device.

[0085] In some possible implementations, more specifically, the above-described sending of the target message to the target signal device may include: invoking a communication interface that matches the target signal device to send the target message to the target signal device.

[0086] In this application, the aforementioned communication interface can be a bus interface implemented based on a CAN / CANFD bus network. Specifically, after generating the target message, the target message is efficiently and accurately transmitted to the target signal device in the vehicle by calling the communication interface that matches the target signal device.

[0087] In some possible implementations, considering the repeatability of the test signal during signal testing, and in order to improve the user's convenient input of the initial signal during signal testing and further enhance the efficiency of signal testing, after receiving the first input, the signal testing method may further include:

[0088] Store the first initial signal into the historical signal set;

[0089] After sending the first message to the target signal device, the signal testing method may further include:

[0090] In response to the second input, the first initial signal from the historical signal set is displayed;

[0091] Invoke the first initial signal.

[0092] In practice, after receiving the first input and determining the first initial signal based on the first input, the first initial signal is saved to the historical signal set. Thus, when the user needs to perform a signal test again, by clicking or touching the historical signal set as a second input, the historical signal set, which includes the previously stored first initial signal, is displayed on the front of the electronic device.

[0093] Thus, when the first initial signal of the historical signal set is displayed on the front-end display interface of the device, the user can quickly select and call the first initial signal by clicking, double-clicking or other operations, without having to edit and input the specific signal content of the first initial signal again, which effectively improves the efficiency of signal testing and the ease of operation.

[0094] In some possible implementations, to facilitate recording of the signal testing process for subsequent statistical analysis of signal test results, the signal testing method may further include the following after sending the target message to the target signal device:

[0095] The feedback information sent by the target signal device corresponds to the first initial signal;

[0096] Based on the feedback information and the first initial signal, the first log record is generated.

[0097] In practice, after the target message is sent to the target signal device in the vehicle, the vehicle host and the target signal device in the vehicle will perform corresponding signal processing based on the received target message. After the message is received and the signal is processed according to the message, the target signal device in the vehicle will output corresponding feedback information.

[0098] In this way, after receiving the feedback information corresponding to the first initial signal sent by the target signal device of the vehicle, the feedback information is saved, and the feedback information and the aforementioned first initial signal are combined to generate a log record, namely the first log record, so as to be traced and analyzed in subsequent log records generated according to different signal test stages.

[0099] In some possible implementations, the inventors of this application, considering ease of use for users, have customized the initial signal under the first signal type and set corresponding conversion rules according to the customized first signal type. Specifically, the initial signal under the aforementioned first signal type may include a message identifier, a signal name, and a signal value;

[0100] When the signal type of the first initial signal is a first signal type, converting the first initial signal into a first standard signal based on the conversion rules and DBC file corresponding to the signal type of the first initial signal may include:

[0101] Check if the message identifier and signal name of the first initial signal exist in the DBC file;

[0102] If the message identifier and signal name of the first initial signal exist in the DBC file, the signal value in the first initial signal is converted into a hexadecimal string based on the DBC file to obtain the first standard signal.

[0103] For specific implementation details, please refer to [link / reference]. Figure 3 , Figure 3 This is one of the schematic diagrams illustrating the signal conversion process of the first initial signal provided in an embodiment of this application. For example... Figure 3 As shown, the first signal type is Form Signal. The initial signal under Form Signal is defined as a simple single-line single-signal body format, following: Msg ID[Msg Name].Signal Name = Signal Value#Notes.

[0104] In this field, either Msg ID or Msg Name can be used as the message identifier. Msg ID is the message ID, and Msg Name is the message name. Signal Name is the individual signal name. Signal Value is the signal value, which can be a single hexadecimal character or a value copied from the signal value description column in the vehicle's DBC file. Notes are annotations and are optional.

[0105] For example, when the first initial signal is of the Form Signal type, the first initial signal can specifically be: 0x1C1.WCML_WCMSetSt = 0x1#Left charging display. When specifically performing signal conversion for this first initial signal, such as... Figure 3 As shown, the Msg ID in the first initial signal is first matched according to the vehicle's DBC file. If there is no message identifier matching the Msg ID in the vehicle's DBC file, the conversion fails and the conversion process ends.

[0106] If a message identifier matching the Msg ID exists in the vehicle's DCB file, the matching of the Signal Name in the first initial signal continues according to the vehicle's DBC file. If no matching signal name exists in the vehicle's DCB file, the matching fails and the conversion process ends. If a matching signal name exists in the vehicle's DCB file, the Signal Value in the first initial signal is converted into a fixed-length hexadecimal string according to the relevant rules in the vehicle's DBC file, thus completing the conversion from the first initial signal to the first standard signal.

[0107] In some possible implementations, this application also provides an initial signal of a second signal type and a signal format conversion means under the second signal type. Specifically, the initial signal under the second signal type adopts a JSON text format, and the initial signal under the second signal type may include a message identifier and N signal names, where N is a positive integer. The second signal type supports combined signals.

[0108] When the signal type of the first initial signal is the second signal type, converting the first initial signal into a first standard signal based on the conversion rules and DBC file corresponding to the signal type of the first initial signal may include:

[0109] Detect whether the message identifier of the first initial signal exists in the DBC file;

[0110] If the message identifier of the first initial signal exists in the DBC file, the values ​​corresponding to the N signal names in the first initial signal are converted into hexadecimal strings based on the DBC file to obtain the first standard signals corresponding to the N signal names respectively.

[0111] For specific implementation details, please refer to [link / reference]. Figure 4 , Figure 4 This is a second schematic diagram of the signal conversion process of the first initial signal provided in an embodiment of this application. The second signal type is a Body Signal. Figure 4 In this context, either the `msg_id` or `msg_name` field can be used as a message identifier. `Signal Name` is the signal name; multiple signal names are allowed in the initial signal of this second signal type. `Value` is the value corresponding to the signal name, which can be a single hexadecimal character or a value copied from the signal value description column of the vehicle's DBC file.

[0112] When specifically performing signal conversion of the first initial signal of this second signal type, such as Figure 3 As shown, the msg_id or msg_name field in the first initial signal is first matched against the vehicle's DBC file. If there is no message identifier in the vehicle's DBC file that matches the msg_id or msg_name field, the conversion fails and the conversion process ends.

[0113] If the vehicle's DCB file contains a message identifier that matches the msg_id or msg_name field in the first initial signal, then according to the relevant rules in the vehicle's DBC file, the Value corresponding to each SignalName in the first initial signal is converted into a fixed-length hexadecimal string, ultimately resulting in multiple first standard signals corresponding to different signal names in the first initial signal.

[0114] In some other possible implementations, the inventors of this application have also defined an initial signal for a third signal type, DataSignal, which can be found in [reference needed]. Figure 5 , Figure 5 This is the third schematic diagram of the signal conversion process of the first initial signal provided in one embodiment of this application. Figure 5 As shown, when the first initial signal is of the third signal type, the initial signal under this third signal type is the original signal body, which includes the message identifier MsgID and a hexadecimal string. It directly selects the signal from the DBC file published by the vehicle and sends the signal by giving the original hexadecimal bit characters.

[0115] To facilitate understanding of the signal testing method provided in the above embodiments, the following describes the method using a complete overall embodiment. Figure 6 This is a schematic diagram of the overall process of a signal testing method provided in an embodiment of this application.

[0116] like Figure 6 As shown, in the overall embodiment, signal testing is achieved through interaction between a PC (personal computer) and the vehicle. The user can perform relevant input operations on the CAN panel displayed on the front-end interface. The user can directly customize the first initial signal on the front-end CAN panel of the PC and store this first initial signal in the corresponding memory using data storage services. Alternatively, the user can retrieve historically configured signals from the data storage service and select a historical signal as the first initial signal; this embodiment does not impose specific limitations.

[0117] Based on the previous examples, the initial signal supports three signal types: Form Signal, BodySignal, and Data Signal. After obtaining the first initial signal based on the front-end command, the background program service on the PC can perform corresponding signal compatibility conversion processing on the first initial signal.

[0118] Specifically, the signal type of the first initial signal is first determined, and the first initial signal is converted into a first standard signal according to the conversion rules corresponding to the signal type of the first initial signal and the vehicle's DBC file.

[0119] It should be noted that, if the signal type of the first initial signal is determined to be the second signal type, Body Signal, since the second signal type supports combined messages, it is possible to further determine whether the first initial signal is a combined signal (combined message). If it is not a combined message, it is processed and converted as a normal single message to obtain the first standard signal. If it is a combined message, it is converted into multiple single signals to obtain multiple first standard signals.

[0120] After obtaining the first standard signal, it is input to the signal compatibility processing module on the PC. In this module, the input first standard signal is encapsulated according to the message encapsulation rules that match the signal device under test to obtain the target message.

[0121] After generating the target message, the target message is efficiently and accurately transmitted to the signaling equipment in the vehicle by calling the communication interface service that matches the target signaling equipment.

[0122] After receiving the target message, the signal equipment and the vehicle host in the vehicle will perform signal coordination and response based on the target message. The signal equipment in the vehicle will then send the corresponding feedback information (response result) to the PC and store it in the corresponding memory based on the data storage service so that the signal test results can be analyzed later.

[0123] In this overall embodiment, compared to the existing signal simulation test schemes that configure and send test signals through Canoe or third-party IDE tools, this embodiment can determine the initial signal through custom configuration or by calling historical signal configurations. By performing signal format conversion and message encapsulation on the initial signal, the initial signal is automatically converted into a message that can be received by various signal devices in the vehicle, eliminating the need for complex operations and switching of the IDEs for each signal device in the vehicle.

[0124] Furthermore, in this embodiment, the initial signal can support multiple configurations, and conversion rules matching different signal types can be set to maximize the user experience and convenience during signal testing, greatly improving signal testing efficiency, simplifying the operation difficulty for testers, and reducing the learning cost of operation during signal testing.

[0125] Based on the signal testing method provided in the above embodiments, this application also provides a signal testing device corresponding to the above signal testing method, which will be described below. Figure 7 A detailed introduction to the signal testing device is provided.

[0126] Figure 7 A schematic diagram of the structure of a signal testing device provided in an embodiment of this application is shown. Figure 7 The signal testing apparatus 700 shown includes:

[0127] The first receiving module 710 is used to receive a first input, which is used to determine a first initial signal;

[0128] The first conversion module 720 is used to convert the first initial signal into a first standard signal based on the vehicle's DBC file;

[0129] The first encapsulation module 730 is used to encapsulate the first standard signal into a target message based on the message encapsulation rules corresponding to the target signal device in the vehicle;

[0130] The first sending module 740 is used to send the target message to the target signal device to perform signal testing on the target signal device.

[0131] The signal testing device of this application embodiment, by setting corresponding functional modules, can receive a first input to determine a first initial signal, convert the first initial signal to a standard signal format according to the vehicle's DBC file, encapsulate the message according to the message encapsulation rules specified by the target signal device to be tested, and finally send the generated message to the target signal device, thereby realizing signal transmission in the signal testing of the target signal device. The signal testing device provided in this application embodiment can perform a series of compatible conversion processes on the first initial signal, thus eliminating the need to switch between different external tools for testing different signal devices. This reduces the operational learning cost in the signal testing process, enhances ease of use, and significantly improves the efficiency of signal simulation testing.

[0132] In some possible implementations, considering the repeatability of the test signal during signal testing, and in order to improve the user's convenient input of the initial signal during signal testing and further enhance the efficiency of signal testing, the signal testing device may further include, after receiving the first input:

[0133] The first storage module can be used to store the first initial signal into a historical signal set;

[0134] After sending the first message to the target signal device, the signal testing device may further include:

[0135] The first display module can be used to display the first initial signal in the historical signal set in response to the second input;

[0136] The first calling module can be used to call the first initial signal.

[0137] In some possible implementations, to facilitate recording of the signal testing process for subsequent statistical analysis of signal test results, the signal testing device may further include:

[0138] The second receiving module can be used to receive feedback information sent by the target signal device, and the feedback information corresponds to the first initial signal;

[0139] The first generation module can be used to generate the first log record based on feedback information and the first initial signal.

[0140] In some possible implementations, more specifically, the first transmitting module 740 may be used for:

[0141] Call the communication interface that matches the target signal device to send the target message to the target signal device.

[0142] In some possible implementations, in order to more reasonably achieve the signal format conversion of the first initial signal, the first conversion module 720, based on the vehicle's DBC file, converts the first initial signal into a first standard signal, and may include:

[0143] The first determining submodule can be used to determine the signal type of the first initial signal;

[0144] The first conversion submodule can be used to convert the first initial signal into a first standard signal based on the conversion rules and DBC file corresponding to the signal type of the first initial signal.

[0145] In some possible implementations, to further achieve signal format conversion of the first initial signal, if the signal type of the first initial signal supports combined signals, the first conversion submodule, based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, converts the first initial signal into a first standard signal, which may include:

[0146] The first detection unit can be used to detect whether the first initial signal is a combined signal;

[0147] The first conversion unit can be used to convert and split the first initial signal into multiple first standard signals based on the conversion rules and DBC file corresponding to the signal type of the first initial signal when the first initial signal is a combined signal.

[0148] In some possible implementations, the inventors of this application, considering ease of use for users, have customized the initial signal under the first signal type and set corresponding conversion rules according to the customized first signal type. Specifically, the initial signal under the first signal type may include a message identifier, a signal name, and a signal value;

[0149] When the signal type of the first initial signal is a first signal type, the first conversion module 720, based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, converts the first initial signal into a first standard signal, which may include:

[0150] The first detection submodule can be used to detect whether the message identifier and signal name of the first initial signal exist in the DBC file;

[0151] The first submodule can be used to convert the signal value in the first initial signal into a hexadecimal string based on the DBC file, when the message identifier and signal name of the first initial signal exist in the DBC file, to obtain the first standard signal.

[0152] In some possible implementations, this application also provides an initial signal of a second signal type and a signal format conversion means under the second signal type. Specifically, the initial signal under the second signal type adopts a JSON text format, and the initial signal under the second signal type may include a message identifier and N signal names, where N is a positive integer. The second signal type can support combined signals.

[0153] When the signal type of the first initial signal is the second signal type, the first conversion module 720, based on the conversion rules and DBC file corresponding to the signal type of the first initial signal, converts the first initial signal into a first standard signal, which may include:

[0154] The second detection submodule can be used to detect whether the message identifier of the first initial signal exists in the DBC file;

[0155] The second submodule can be used to convert the values ​​corresponding to the N signal names in the first initial signal into hexadecimal strings based on the DBC file when the message identifier of the first initial signal exists in the DBC file, so as to obtain the N first standard signals corresponding to the N signal names respectively.

[0156] Figure 8 This is a schematic diagram of the structure of a signal testing device provided in an embodiment of this application.

[0157] The signal testing equipment may include a processor 801 and a memory 802 storing computer program instructions.

[0158] Specifically, the processor 801 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0159] Memory 802 may include mass storage for data or instructions. For example, and not limitingly, memory 802 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 802 may include removable or non-removable (or fixed) media. Where appropriate, memory 802 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 802 is non-volatile solid-state memory.

[0160] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.

[0161] The processor 801 reads and executes computer program instructions stored in the memory 802 to implement any of the signal testing methods in the above embodiments.

[0162] In one example, the data signal test equipment may also include a communication interface 803 and a bus 810. For example, Figure 8 As shown, the processor 801, memory 802, and communication interface 803 are connected through bus 810 and complete communication with each other.

[0163] The communication interface 803 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0164] Bus 810 includes hardware, software, or both, that couples components of a signal testing device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 810 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0165] The signal testing equipment executes the signal testing method described in the embodiments of this application, thereby achieving... Figure 1 The described signal testing method.

[0166] Furthermore, in conjunction with the signal testing methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the signal testing methods in the above embodiments.

[0167] Based on the signal testing method in the above embodiments, this application provides a vehicle that includes at least one of the following: a voice interaction device as provided in the above embodiments of this application; a voice interaction equipment as provided in the above embodiments of this application; and a computer-readable storage medium as provided in the above embodiments of this application.

[0168] Based on the signal testing methods in the above embodiments, this application provides a computer program product. When the instructions in the computer program product are executed by the processor of an electronic device, the electronic device performs the signal testing method provided in any of the above embodiments of this application.

[0169] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0170] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0171] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0172] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0173] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A signal testing method, characterized in that, include: Receive a first input, which is used to determine a first initial signal; Based on the vehicle's DBC file, the first initial signal is converted into a first standard signal; Based on the message encapsulation rules corresponding to the target signal devices in the vehicle, the first standard signal is encapsulated into a target message; the vehicle includes multiple ECUs, and the message encapsulation rules corresponding to the multiple ECUs are predefined according to the communication requirements and message specifications of different ECUs in the vehicle; The target message is sent to the target signal device to perform a signal test on the target signal device; The vehicle-based DBC file converts the first initial signal into a first standard signal, including: Determine the signal type of the first initial signal; Based on the conversion rules corresponding to the signal type of the first initial signal and the DBC file, the first initial signal is converted into the first standard signal; If the signal type of the first initial signal supports combined signals, the step of converting the first initial signal into the first standard signal based on the conversion rules corresponding to the signal type of the first initial signal and the DBC file includes: Detect whether the first initial signal is a combined signal; In the case where the first initial signal is a combined signal, the first initial signal is converted and split into multiple first standard signals based on the conversion rules corresponding to the signal type of the first initial signal and the DBC file; The initial signal under the second signal type is in JSON text format. The initial signal under the second signal type includes a message identifier and N signal names, where N is a positive integer. The second signal type supports combined signals. When the signal type of the first initial signal is the second signal type, the step of converting the first initial signal into the first standard signal based on the conversion rule corresponding to the signal type of the first initial signal and the DBC file includes: Detect whether the message identifier of the first initial signal exists in the DBC file; If the message identifier of the first initial signal exists in the DBC file, the values ​​corresponding to the N signal names in the first initial signal are converted into hexadecimal strings based on the DBC file to obtain N first standard signals corresponding to the N signal names respectively; Among them, the DBC files of different vehicles are different, the conversion rules of the first initial signal settings are different for different signal types, and the different signal types of the first initial signal correspond to different signal body formats; Store the first initial signal into the historical signal set; After sending the target message to the target signal device, the method further includes: in response to a second input, displaying the first initial signal in the historical signal set; Invoke the first initial signal.

2. The method according to claim 1, characterized in that, After sending the target message to the target signaling device, the method further includes: Receive feedback information sent by the target signal device, the feedback information corresponding to the first initial signal; Based on the feedback information and the first initial signal, a first log record is generated.

3. The method according to claim 1, characterized in that, Sending the target message to the target signaling device includes: The target message is sent to the target signal device by invoking the communication interface that matches the target signal device.

4. The method according to claim 1, characterized in that, The initial signal under the first signal type includes the message identifier, signal name, and signal value; When the signal type of the first initial signal is the first signal type, the step of converting the first initial signal into the first standard signal based on the conversion rule corresponding to the signal type of the first initial signal and the DBC file includes: Detect whether the message identifier and signal name of the first initial signal exist in the DBC file; If the message identifier and signal name of the first initial signal exist in the DBC file, the signal value in the first initial signal is converted into a hexadecimal string based on the DBC file to obtain the first standard signal.

5. A signal testing device, characterized in that, The device includes: A first receiving module is configured to receive a first input, the first input being used to determine a first initial signal; The first conversion module is used to convert the first initial signal into a first standard signal based on the vehicle's DBC file; The first encapsulation module is used to encapsulate the first standard signal into a target message based on the message encapsulation rules corresponding to the target signal device in the vehicle; the vehicle includes multiple ECUs, and the message encapsulation rules corresponding to the multiple ECUs are predefined according to the communication requirements and message specifications of different ECUs in the vehicle; The first sending module is used to send the target message to the target signal device to perform signal testing on the target signal device; The first conversion module includes: The first determining submodule is used to determine the signal type of the first initial signal; The first conversion submodule is used to convert the first initial signal into the first standard signal based on the conversion rules corresponding to the signal type of the first initial signal and the DBC file; If the signal type of the first initial signal supports combined signals, the first conversion submodule includes: The first detection unit is used to detect whether the first initial signal is a combined signal; The first conversion unit is configured to, when the first initial signal is a combined signal, convert and split the first initial signal into multiple first standard signals based on the conversion rules corresponding to the signal type of the first initial signal and the DBC file; Among them, the DBC files of different vehicles are different, the conversion rules of the first initial signal settings are different for different signal types, and the different signal types of the first initial signal correspond to different signal body formats; The initial signal under the second signal type is in JSON text format. The initial signal under the second signal type includes a message identifier and N signal names, where N is a positive integer. The second signal type supports combined signals. When the signal type of the first initial signal is the second signal type, the step of converting the first initial signal into the first standard signal based on the conversion rule corresponding to the signal type of the first initial signal and the DBC file includes: The second detection submodule is used to detect whether the message identifier of the first initial signal exists in the DBC file; The second submodule is used to convert the values ​​corresponding to the N signal names in the first initial signal into hexadecimal strings based on the DBC file when the message identifier of the first initial signal exists in the DBC file, so as to obtain N first standard signals corresponding to the N signal names respectively. After receiving the first input, the device further includes: The first storage module is used to store the first initial signal into a historical signal set; After sending the target message to the target signal device, the device further includes: a first display module, configured to display the first initial signal in the historical signal set in response to a second input; The first calling module is used to invoke the first initial signal.

6. A signal testing device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the signal testing method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the signal testing method as described in any one of claims 1-4.

8. A vehicle, characterized in that, The vehicle includes at least one of the following: the signal testing device as described in claim 5; The signal testing device as claimed in claim 6; the computer-readable storage medium as claimed in claim 7.