CN116701081A - Communication fault point determining method, device and medium - Google Patents

Communication fault point determining method, device and medium Download PDF

Info

Publication number
CN116701081A
CN116701081A CN202310741950.9A CN202310741950A CN116701081A CN 116701081 A CN116701081 A CN 116701081A CN 202310741950 A CN202310741950 A CN 202310741950A CN 116701081 A CN116701081 A CN 116701081A
Authority
CN
China
Prior art keywords
test
target
point
signal
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310741950.9A
Other languages
Chinese (zh)
Inventor
徐骄阳
王丽英
宁甲奎
马岩
张荣辉
邢诣婧
林禹辰
王惠
张涛
李野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310741950.9A priority Critical patent/CN116701081A/en
Publication of CN116701081A publication Critical patent/CN116701081A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
    • Y04S10/52Outage or fault management, e.g. fault detection or location

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method, a device and a medium for determining a communication fault point. The method comprises the following steps: acquiring a signal to be tested; inputting a signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point; and determining a communication fault point corresponding to the signal to be tested based on the output of the target test model. According to the technical scheme provided by the embodiment of the invention, a large number of CAN communication signals CAN be rapidly tested, and the communication fault point CAN be accurately determined, so that the testing efficiency and accuracy are improved.

Description

Communication fault point determining method, device and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for determining a communication failure point.
Background
In the course of vehicle development, serial (Controller Area Network, CAN) communication of vehicle controllers needs to be tested. Especially after the iteration of the software version in the vehicle controller, a large number of CAN communication signals need to be tested rapidly to ensure the accuracy of the transmission signals. Once the test is not in time, the problem of the communication signal can cause the problem of the application layer, at the moment, the communication fault point can not be checked from the communication layer, the problem needs to be checked in the application layer, the difficulty of the problem checking is increased, and the development period is also increased.
At present, the investigation of the communication fault point is realized by a great deal of manpower, following the software version of each iteration and testing the corresponding CAN communication signal. However, the manual test mode has high test cost, can not quickly determine the problem of communication signals, and meanwhile, needs to manually analyze the test results, thereby increasing the period of test completion.
Disclosure of Invention
The invention provides a method, a device and a medium for determining a communication fault point, which are used for rapidly testing a large number of CAN communication signals and accurately determining the communication fault point, thereby improving the efficiency and the accuracy of the test.
According to an aspect of the present invention, there is provided a communication failure point determining method, the method including:
acquiring a signal to be tested;
inputting the signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point;
and determining a communication fault point corresponding to the signal to be tested based on the output of the target test model.
According to another aspect of the present invention, there is provided a communication failure point determining apparatus including:
the signal acquisition module is used for acquiring a signal to be tested;
the ring test module is used for inputting the signal to be tested into a target test model to perform ring test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point;
and the communication fault point determining module is used for determining the communication fault point corresponding to the signal to be tested based on the output of the target test model.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the communication failure point determination method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the signal to be tested is obtained; inputting the signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point, so that a real vehicle environment is simulated through a pre-built in-loop test model, information to be tested is tested in the simulation environment, and a test result is output; based on the output of the target test model, the communication fault point corresponding to the signal to be tested is determined, so that a large number of CAN communication signals are tested rapidly, the communication fault point is determined accurately, the test efficiency and accuracy are improved, so that a worker CAN directly correct and maintain based on the determined accurate communication fault point, the situation that the worker manually tests and determines the communication fault point is avoided, and the determination time of the communication fault point is further saved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a communication failure point determining method according to a first embodiment of the present invention;
FIG. 2 is an exemplary diagram of an association between test points in a target test model according to one embodiment of the present invention;
fig. 3 is a flowchart of a communication failure point determining method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication failure point determining apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a communication failure point determination method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for determining a communication failure point according to an embodiment of the present invention, where the method may be implemented by a communication failure point determining device, and the communication failure point determining device may be implemented in hardware and/or software, and the communication failure point determining device may be configured in an electronic device, where the method is applicable to a case of determining a communication failure point in a communication signal, and is particularly applicable to a case of determining a communication failure point in a CAN communication signal after a software version in a vehicle controller is iterated. As shown in fig. 1, the method includes:
s110, obtaining a signal to be tested.
The signal to be tested may refer to information corrected for the last communication fault point after the last test. The signal to be tested may also refer to a signal that has not been tested after recompilation. For example, the signal to be tested may be a wheel speed test signal.
Specifically, all signals to be tested may be placed in the area to be tested, and the signals in the area to be tested may be transmitted through the vehicle controller (Electronic Control Unit, ECU). When at least one signal to be tested sent by the ECU is received, determining a first signal to be tested as a signal to be tested according to a signal receiving sequence, determining a second signal to be tested as a signal to be tested after the first signal to be tested is tested, and ending the test after all signals in the area to be tested are tested.
S120, inputting a signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point.
Specifically, a signal to be tested is input into a target test model for on-loop test, so that a real vehicle environment is simulated through a pre-built on-loop test model, information to be tested is tested in the simulated environment, and a test result is output.
By way of example, FIG. 2 shows an exemplary graph of the relationships between test points in a target test model. Referring to fig. 2, the association between the test points may be used to construct a tree test point knowledge graph. The lower level of the wheel speed test point is the front wheel speed and the rear wheel speed. The lower level of the shaft test point is the drive shaft speed and the non-drive shaft speed. It is understood that test signals related to front wheel speed and/or rear wheel speed may be tested by the wheel speed test points. Test signals related to the drive shaft speed and/or the non-drive shaft speed can be tested by the shaft test point. Along the above example, the wheel speed test signal is input into the target test model for ring test, and the test point corresponding to the wheel speed test signal, namely the wheel speed test point, is determined, so that the wheel speed test signal is input into the wheel speed test point for test.
S130, determining a communication fault point corresponding to the signal to be tested based on the output of the target test model.
The communication fault points may refer to test points in the target test model, which do not meet the test requirements. Specifically, based on the output of the target test model, the communication fault point corresponding to the signal to be tested is determined, so that a large number of CAN communication signals are tested rapidly, the communication fault point is determined accurately, the test efficiency and accuracy are improved, the staff CAN directly correct and maintain based on the determined accurate communication fault point, the situation that the staff manually tests and determines the communication fault point is avoided, and the determination time of the communication fault point is further saved.
According to the technical scheme, the signal to be tested is obtained; inputting a signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point, so that a real vehicle environment is simulated through a pre-built in-loop test model, the information to be tested is tested in the simulation environment, and a test result is output; based on the output of the target test model, the communication fault point corresponding to the signal to be tested is determined, so that a large number of CAN communication signals are tested rapidly, the communication fault point is determined accurately, the test efficiency and accuracy are improved, so that a worker CAN directly correct and maintain based on the determined accurate communication fault point, the situation that the worker manually tests and determines the communication fault point is avoided, and the determination time of the communication fault point is further saved.
Based on the above technical solution, S130 may include: based on the output of the target test model, obtaining a target weight value corresponding to each target test point; and determining a target test point corresponding to a target weight value which is greater than or equal to a first preset weight threshold as a communication fault point.
The target test points may refer to all test points through which the signal to be tested needs to flow in the test process. The target weight value may be used to characterize a test result corresponding to the target test point. The larger the target weight value is, the more times that the test failure occurs to the target test point corresponding to the target weight value is indicated, and the important test can be performed again for the target test point. The first preset weight threshold may characterize the highest fault tolerance during the test.
Specifically, based on the output of the target test model, obtaining a target weight value corresponding to each target test point; and determining the target test points corresponding to the target weight values which are larger than or equal to the first preset weight threshold as communication fault points, so that all the target test points corresponding to the non-zero target weight values are prevented from being determined as communication fault points, and part of the target test points can be determined as communication fault points based on the size of the target weight values, thereby reducing the correction and maintenance range and shortening the whole development period.
On the basis of the technical scheme, after the target weight value corresponding to each target test point is obtained, the method further comprises the following steps: if the target weight value is detected to be greater than or equal to a second preset weight threshold value, determining a target test point corresponding to the target weight value as a priority maintenance point, and displaying; and acquiring a compiling file corresponding to the signal to be tested, and determining a compiling code corresponding to the priority maintenance point.
Wherein the second preset weight threshold may characterize a lowest threshold defined as a heavy failure point. The second preset weight threshold is greater than the first preset weight threshold. Specifically, for communication failure points, traceability and problem type analysis can be performed. The communication failure point may correspond to a compiled code file in the CAN communication signal. After iteration is carried out on the software version in the ECU, the position of the compiled code file which exists in the CAN communication signal and CAN cause communication errors CAN be determined through the communication fault point. For example, through a Database CAN (DBC) file, compiling a code file, locking signal names, locating and linking in the model, clicking signal name links open the model to directly find problems. Specifically, assuming that the communication failure point corresponds to an engineering speed signal, the compiled code engineering speed= (UInt 16) tlib_ut_com_rxmessage_081+ ((UInt 16) tlib_ut_com_rxmessage_082 &0 xFF) < < 8) is located, searched and displayed by compiling the file. And simultaneously searching a corresponding model according to the signal name, clicking the signal link, and opening the position of the corresponding model.
Illustratively, the present application provides a well-established in-loop test (HIL) automated test architecture. The HIL automated test structure may include an ECU, a target test model, and an automatic test controller, among others. The automatic test controller is realized by Dspace Automation Desk, reads a target test value corresponding to the signal to be tested by calling the CANape, and stores the target test value in the data dictionary. And comparing the target test value stored in the data dictionary with a preset test value. If the preset test value is of the type int, the target test value of the float type or the target test value of the character string type is converted into the data of the type int by establishing a data conversion dictionary, and then the data comparison and judgment are carried out.
Example two
Fig. 3 is a flowchart of a communication fault point determining method according to a second embodiment of the present application, and the process of inputting a signal to be tested into a target test model for ring test is described in detail on the basis of the above embodiment. Wherein the explanation of the same or corresponding terms as those of the above embodiments is not repeated herein. As shown in fig. 3, the method includes:
s310, obtaining a signal to be tested.
S320, inputting the signal to be tested into a test point determination sub-model, and determining an initial test point in the test point determination sub-model based on the signal to be tested and the corresponding relation between the test signal and the test point.
The target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point. The target test model comprises a test point determining sub-model, an annular test sub-model and a weight tracing sub-model. The initial test point may refer to a test point at which a signal to be tested is to be input. The tested signal output from the initial test point is input to the next test point. Specifically, from the corresponding relation between the test signal and the test point, an initial test point corresponding to the signal to be tested is determined, and the signal to be tested is input into the initial test point, so that after the software version in the ECU iterates, the signal to be tested can be compiled without updating the corresponding relation, and the test period and the development period are shortened.
S330, inputting the signal to be tested and the initial test point into the ring test sub-model, and determining a test result corresponding to each target test point in the ring test sub-model based on the initial test point, the association relation among all the test points and the signal to be tested.
The association relationship between the test points may refer to the order in which the signals flow through the test points. Test results may refer to test success or test failure. The target test point may refer to all test points through which a signal to be tested flows. Specifically, based on the association relation among the test points, a tree-shaped test point knowledge graph can be constructed and used for representing the flow direction of the signals. Inputting the signal to be tested to the initial test point, determining the next test point according to the flow direction involved in the signal to be tested, and inputting the signal output by the initial test point to the next test point. Meanwhile, a test value corresponding to each target test point through which a signal to be tested flows is obtained, the test value is compared with an expected test value, and a test result corresponding to each target test point is determined based on the comparison result, so that the signal to be tested is thinned, the test point corresponding to the test failure can be directly determined when the test fails, and the test point is tested again or directly corrected.
S340, inputting each target test point and a corresponding test result thereof into a weight tracing sub-model, and determining and outputting a target weight value corresponding to each target test point in the weight tracing sub-model based on the association relation among the test points, each target test point and the corresponding test result thereof.
And performing assignment of a small weight value on the target test point which is successfully tested. And carrying out assignment of a large weight value on the target test point which fails to be tested. For the case of failure of the target test point, the reason may be at the target test point itself or at the last test point of the target test point. A small weight value assignment is also required for the last test point. And each target test point carries out addition processing on all the assigned weight values, and the addition result determines the target weight value corresponding to each target test point.
S350, determining a communication fault point corresponding to the signal to be tested based on the output of the target test model.
According to the technical scheme, the signal to be tested is input into the test point determining sub-model, and the initial test point is determined in the test point determining sub-model based on the signal to be tested and the corresponding relation between the test signal and the test point, so that after the software version in the ECU iterates, the corresponding relation is not required to be updated, the signal to be tested can be compiled, and the test period and the development period are shortened. Inputting a signal to be tested and an initial test point into an annular test sub-model, determining a test result corresponding to each target test point based on the initial test point, the association relation among all test points and the signal to be tested in the annular test sub-model, thereby carrying out test on a plurality of target test points with a signal refinement value to be tested, directly determining the test point corresponding to test failure when the test fails, and carrying out retesting or direct correction on the test point. And inputting each target test point and a corresponding test result thereof into a weight tracing sub-model, determining and outputting a target weight value corresponding to each target test point in the weight tracing sub-model based on the association relation among the test points, each target test point and a corresponding test result thereof, and determining a communication fault point corresponding to a signal to be tested based on the output of the target test model, thereby realizing rapid testing of a large number of CAN communication signals, accurately determining the communication fault point, further improving the test efficiency and accuracy, and saving the determination time of the communication fault point.
Based on the above technical solution, S230 may include: determining each target test point corresponding to a signal to be tested and a test path corresponding to each target test point based on the association relation between the initial test point and each test point; the target test point comprises an initial test point; inputting a signal to be tested to an initial test point, and testing each target test point according to a test path to obtain a target test value corresponding to each target test point; and determining a test result corresponding to the target test point based on the target test value corresponding to the target test point and the corresponding preset test value for each target test point.
The test path may refer to a path through which a signal to be tested flows in each test point. The target test value may refer to a test value corresponding to the focus point of the present test. For example, the target test value may be, but is not limited to, a signal value corresponding to a signal transmitted to a next test point after the test point tests the input test signal, or a signal value fed back to the ECU after the test point processes the input test signal. The preset test value may refer to an ideal test value set based on a service requirement. The method has the advantages that the method can conduct targeted test on the test point corresponding to each signal to be tested, so that the test can be conducted more accurately, the communication fault point can be determined from a more accurate range, and the test efficiency is further improved.
Based on the above technical solution, "determining the test result corresponding to the target test point based on the target test value corresponding to the target test point and the preset test value corresponding to the target test point" may include: under the condition that the data types corresponding to the target test value and the preset test value are consistent, comparing the target test value with the preset test value; if the target test value is the same as the preset test value, determining that the test result corresponding to the target test point is successful; if the target test value is different from the preset test value, determining that the test result corresponding to the target test point is a test failure.
Among these, the target test value may be of various types. For example, the target test value may be integer data or floating point data, or the like. And under the condition that the data types corresponding to the target test value and the preset test value are consistent, the target test value and the preset test value can be compared. The consistency of the data types is ensured, and the comparison result is more accurate. Under the above conditions, comparing the target test value with a preset test value; if the target test value is the same as the preset test value, determining that the test result corresponding to the target test point is successful; if the target test value is different from the preset test value, determining that the test result corresponding to the target test point is a test failure.
Based on the technical scheme, the method further comprises the following steps: if the difference between the target test value corresponding to the target test point and the data type of the corresponding preset test value is detected, carrying out data type consistency processing on the target test value and the preset test value to obtain a target test value and a preset test value with consistent data types.
Specifically, for the case that the data types of the target test value and the corresponding preset test value are different, the data types of the target test value and the corresponding preset test value need to be converted into the consistent data type first, so that comparison can be performed more accurately. If the difference between the target test value corresponding to the target test point and the data type of the corresponding preset test value is detected, carrying out data type consistency processing on the target test value and the preset test value to obtain a target test value and a preset test value with consistent data types. For example, based on the data type corresponding to the preset test value, the data type corresponding to the target test value is converted into the data type identical to the preset test value, so that the consistency of the target test value and the data type of the corresponding preset test value is realized, the accuracy of a comparison result is further improved, and the accuracy of the test result is further improved.
Based on the above technical solution, S240 may include: for each target test point, if the test result corresponding to the target test point is detected to be a test failure, determining an upper test point and a flat test point which are associated with the target test point based on the association relation among the test points; performing weight assignment on the upper test point to obtain a first weight value corresponding to the upper test point, and performing weight assignment on the level test point to obtain a second weight value corresponding to the level test point; and adding at least one first weight value and at least one second weight value corresponding to each target test point, and determining an added result as a target weight value corresponding to each target test point.
Wherein, the level test point can be subordinate to the target test point under one upper test point. Specifically, the association relation between each test point is determined, the upper test point and the flat test point associated with the target test point are determined, the weight assignment is carried out on the upper test point, and the weight assignment is carried out on the flat test point, so that the target weight value corresponding to the target test point can be determined through the test point related to the target test point. After the test of each signal to be tested is finished, the method determines the target weight value first, and then acquires the next signal to be tested.
For example, if the test result corresponding to each target test point is detected to be test failure, the target weight assignment is performed on the target test point, the target weight value is determined, and the upper test point and the flat test point associated with the target test point are determined based on the association relation between the test points. And carrying out weight assignment on the upper test point and the flat test point. For example, the target weight value is 1, the weight value corresponding to the upper test point is 0.3, and the weight value corresponding to the flat test point is 0.3. And after the current signal to be tested is tested, arranging the priority test sequence of the test points according to the weight value from large to small. When the next signal to be tested is tested, the focus is on the test points which are ranked at the front.
For example, historical sample data required for model training for the accent test point determination may be determined based on the historical test signal, the historical test point, and the historical weight value corresponding to the historical test point. The key test point determining model is trained to be capable of determining a test point which needs to be highly careful when the test signal is tested by using the target test model based on the test signal, and the test point which needs to be highly careful is marked, so that the key test point is tested on the test signal, and the test efficiency is improved.
The following is an embodiment of a communication failure point determining device provided by the embodiment of the present invention, which belongs to the same inventive concept as the communication failure point determining method of the above embodiments, and reference may be made to the embodiment of the communication failure point determining method for details that are not described in detail in the embodiment of the communication failure point determining device.
Example III
Fig. 4 is a schematic structural diagram of a communication failure point determining device according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes: a signal acquisition module 410, a loop test module 420, and a communication failure point determination module 430.
The signal acquisition module 410 is configured to acquire a signal to be tested; the ring test module 420 is configured to input a signal to be tested into the target test model for ring test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point; the communication fault point determining module 430 is configured to determine a communication fault point corresponding to the signal to be tested based on the output of the target test model.
According to the technical scheme, the signal to be tested is obtained; inputting a signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point, so that a real vehicle environment is simulated through a pre-built in-loop test model, the information to be tested is tested in the simulation environment, and a test result is output; based on the output of the target test model, the communication fault point corresponding to the signal to be tested is determined, so that a large number of CAN communication signals are tested rapidly, the communication fault point is determined accurately, the test efficiency and accuracy are improved, so that a worker CAN directly correct and maintain based on the determined accurate communication fault point, the situation that the worker manually tests and determines the communication fault point is avoided, and the determination time of the communication fault point is further saved.
Optionally, the target test model comprises a test point determining sub-model, an in-loop test sub-model and a weight tracing sub-model;
the ring test module 420 may include:
the initial test point determining sub-module is used for inputting the signal to be tested into the test point determining sub-model, and determining an initial test point in the test point determining sub-model based on the signal to be tested and the corresponding relation between the test signal and the test point;
the test result determining sub-module is used for inputting the signal to be tested and the initial test point into the ring test sub-model, and determining the test result corresponding to each target test point based on the initial test point, the association relation among all the test points and the signal to be tested in the ring test sub-model;
the target weight value determining sub-module is used for inputting each target test point and a corresponding test result thereof into the weight tracing sub-model, and determining and outputting the target weight value corresponding to each target test point in the weight tracing sub-model based on the association relation among the test points, each target test point and the corresponding test result thereof.
Optionally, the test result determination submodule may include:
the test path determining unit is used for determining each target test point corresponding to the signal to be tested and a test path corresponding to each target test point based on the association relation between the initial test point and each test point; the target test point comprises an initial test point;
The target test value determining unit is used for inputting a signal to be tested to the initial test point, and testing each target test point according to the test path to obtain a target test value corresponding to each target test point;
the test result determining unit is used for determining a test result corresponding to each target test point based on the target test value corresponding to the target test point and the corresponding preset test value.
Optionally, the test result determining unit is specifically configured to: under the condition that the data types corresponding to the target test value and the preset test value are consistent, comparing the target test value with the preset test value; if the target test value is the same as the preset test value, determining that the test result corresponding to the target test point is successful; if the target test value is different from the preset test value, determining that the test result corresponding to the target test point is a test failure.
Optionally, the apparatus further comprises:
the data type consistency processing module is used for carrying out data type consistency processing on the target test value and the preset test value if the difference between the data types of the target test value corresponding to the target test point and the corresponding preset test value is detected, so as to obtain the target test value and the preset test value with the consistent data types.
Optionally, the target weight value determining submodule is specifically configured to: for each target test point, if the test result corresponding to the target test point is detected to be a test failure, determining an upper test point and a flat test point which are associated with the target test point based on the association relation among the test points; performing weight assignment on the upper test point to obtain a first weight value corresponding to the upper test point, and performing weight assignment on the level test point to obtain a second weight value corresponding to the level test point; and adding at least one first weight value and at least one second weight value corresponding to each target test point, and determining an added result as a target weight value corresponding to each target test point.
Optionally, the communication failure point determining module 430 is specifically configured to; based on the output of the target test model, obtaining a target weight value corresponding to each target test point;
and determining a target test point corresponding to a target weight value which is greater than or equal to a first preset weight threshold as a communication fault point.
Optionally, the apparatus further comprises:
the priority maintenance point determining module is used for determining a target test point corresponding to the target weight value as a priority maintenance point and displaying the priority maintenance point if the target weight value is detected to be greater than or equal to a second preset weight threshold value;
And the compiling code determining module is used for acquiring compiling files corresponding to the signals to be tested and determining compiling codes corresponding to the priority maintenance points.
The communication fault point determining device provided by the embodiment of the invention can execute the communication fault point determining method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the communication fault point determining method.
It should be noted that, in the embodiment of the communication failure point determining apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example IV
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as the communication failure point determination method.
In some embodiments, the communication failure point determination method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the communication failure point determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the communication failure point determination method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A communication failure point determining method, comprising:
acquiring a signal to be tested;
inputting the signal to be tested into a target test model for in-loop test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point;
and determining a communication fault point corresponding to the signal to be tested based on the output of the target test model.
2. The method of claim 1, wherein the target test model comprises a test point determination sub-model, an in-loop test sub-model, and a weight traceback sub-model;
the inputting the signal to be tested into a target test model for in-loop testing comprises the following steps:
inputting the signal to be tested into the test point determining sub-model, and determining an initial test point in the test point determining sub-model based on the signal to be tested and the corresponding relation between the test signal and the test point;
inputting the signal to be tested and the initial test point into the ring test sub-model, and determining a test result corresponding to each target test point in the ring test sub-model based on the initial test point, the association relation among all test points and the signal to be tested;
and inputting each target test point and a corresponding test result thereof into the weight tracing sub-model, and determining and outputting a target weight value corresponding to each target test point based on the association relation among the test points, each target test point and the corresponding test result thereof in the weight tracing sub-model.
3. The method of claim 2, wherein determining a test result corresponding to each target test point in the ring test sub-model based on the initial test point, the association between the test points, and the signal to be tested, comprises:
determining each target test point corresponding to the signal to be tested and a test path corresponding to each target test point based on the association relation between the initial test point and each test point; wherein the target test point comprises the initial test point;
inputting the signal to be tested to the initial test point, and testing each target test point according to a test path to obtain a target test value corresponding to each target test point;
and determining a test result corresponding to each target test point based on the target test value corresponding to the target test point and the corresponding preset test value of the target test point aiming at each target test point.
4. The method of claim 3, wherein the determining the test result corresponding to the target test point based on the target test value corresponding to the target test point and the corresponding preset test value comprises:
comparing the target test value with the preset test value under the condition that the data types corresponding to the target test value and the preset test value are consistent;
If the target test value is the same as the preset test value, determining that the test result corresponding to the target test point is successful;
if the target test value is different from the preset test value, determining that the test result corresponding to the target test point is a test failure.
5. The method as recited in claim 4, further comprising:
if the fact that the target test value corresponding to the target test point is different from the data type of the corresponding preset test value is detected, carrying out data type consistency processing on the target test value and the preset test value to obtain a target test value and a preset test value with consistent data types.
6. The method of claim 2, wherein determining and outputting a target weight value corresponding to each target test point in the weight traceback sub-model based on the association between each test point, each target test point and the corresponding test result thereof, comprises:
for each target test point, if the test result corresponding to the target test point is detected to be a test failure, determining an upper test point and a flat test point which are associated with the target test point based on the association relation among the test points;
Performing weight assignment on the upper test point to obtain a first weight value corresponding to the upper test point, and performing weight assignment on the level test point to obtain a second weight value corresponding to the level test point;
and adding at least one first weight value and at least one second weight value corresponding to each target test point, and determining an added result as a target weight value corresponding to each target test point.
7. The method of claim 1, wherein determining a communication failure point corresponding to the signal to be tested based on the output of the target test model comprises:
based on the output of the target test model, obtaining a target weight value corresponding to each target test point;
and determining a target test point corresponding to a target weight value which is greater than or equal to a first preset weight threshold as a communication fault point.
8. The method of claim 7, wherein after obtaining the target weight value corresponding to each target test point, the method further comprises:
if the target weight value is detected to be greater than or equal to a second preset weight threshold value, determining a target test point corresponding to the target weight value as a priority maintenance point, and displaying;
And acquiring a compiling file corresponding to the signal to be tested, and determining a compiling code corresponding to the priority maintenance point.
9. A communication failure point determining apparatus, comprising:
the signal acquisition module is used for acquiring a signal to be tested;
the ring test module is used for inputting the signal to be tested into a target test model to perform ring test; the target test model is constructed based on the corresponding relation between the test signals and the test points and the association relation between the test points; the test signal corresponds to at least one test point;
and the communication fault point determining module is used for determining the communication fault point corresponding to the signal to be tested based on the output of the target test model.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the communication failure point determination method of any of claims 1-8.
CN202310741950.9A 2023-06-21 2023-06-21 Communication fault point determining method, device and medium Pending CN116701081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310741950.9A CN116701081A (en) 2023-06-21 2023-06-21 Communication fault point determining method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310741950.9A CN116701081A (en) 2023-06-21 2023-06-21 Communication fault point determining method, device and medium

Publications (1)

Publication Number Publication Date
CN116701081A true CN116701081A (en) 2023-09-05

Family

ID=87843035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310741950.9A Pending CN116701081A (en) 2023-06-21 2023-06-21 Communication fault point determining method, device and medium

Country Status (1)

Country Link
CN (1) CN116701081A (en)

Similar Documents

Publication Publication Date Title
CN116701081A (en) Communication fault point determining method, device and medium
CN115587017A (en) Data processing method and device, electronic equipment and storage medium
CN115455091A (en) Data generation method and device, electronic equipment and storage medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN114896418A (en) Knowledge graph construction method and device, electronic equipment and storage medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN116594827A (en) Automatic test method and device for hardware equipment, workbench, equipment and medium
CN117271373B (en) Automatic construction method and device for test cases, electronic equipment and storage medium
CN116303019A (en) Test tracing method, device, equipment and medium
CN117421452A (en) Data blood edge testing method and device, electronic equipment, storage medium and product
CN116737121A (en) Software development management method, device, system, equipment and storage medium
CN116610582A (en) Test range determining method and device, electronic equipment and medium
CN117648252A (en) Function test method and device for software application, electronic equipment and storage medium
CN118051439A (en) API automatic test case generation method and device, electronic equipment and readable medium
CN117371506A (en) Model training method, model testing device, electronic equipment and storage medium
CN117724980A (en) Method and device for testing software framework performance, electronic equipment and storage medium
CN115238212A (en) Page designated element detection and replacement method, device, equipment and storage medium
CN115312114A (en) Method, apparatus, device and medium for testing RAM
CN116400669A (en) Automatic test method, device, test equipment and medium for security level instrument control system
CN116185874A (en) Test report generation method, device, equipment and storage medium
CN117033235A (en) Method, device, equipment and storage medium for testing relevance of software program
CN117742820A (en) Plug-in configuration method and device, electronic equipment and storage medium
CN114996157A (en) Method, device, equipment and storage medium for identifying risk of changing code
CN116483601A (en) Fault diagnosis function version iteration method, device, equipment and storage medium
CN116955176A (en) Test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination