Test method, device and equipment
Through the automated testing method, the control signal of the configuration word is sent to the vehicle body domain controller and the response data is received, which solves the problem of low testing efficiency in the prior art and realizes an efficient and accurate testing process.
Patent Information
- Application Number
- CN202510210108.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-05-30
AI Technical Summary
The existing body domain controller has many electronic and electrical components and frequent signal interactions, resulting in large amounts of test content, frequent operation of the test process, and low manual testing efficiency.
A test method is provided to automate the test process to improve efficiency by sending a control signal of the configuration word to the controller to be tested, receiving response data, and generating test results based on the preset response data.
Automatic testing is realized, manual intervention is reduced, testing efficiency and accuracy is improved, and problems of the controller to be tested can be quickly located.
Smart Images

Figure CN120065988A_ABST
Abstract
Description
Technical Field
[0001] This application relates to, but is not limited to, the field of vehicle testing technologies, and particularly relates to a testing method, device, and equipment. Background Art
[0002] Currently, there are a large number of electronic and electrical components involved in communication inside the existing body domain controller, with frequent signal interactions, an increasing amount of testing content, and frequent operations during the testing process. Among them, the method of manually testing the electronic devices that need to write configuration words still has the problem of low efficiency. Summary of the Invention
[0003] In view of this, at least one testing method, device, and equipment are provided in the embodiments of this application.
[0004] The technical solution of the embodiments of this application is implemented as follows:
[0005] In a first aspect, an embodiment of this application provides a testing method, including sending a first control signal for setting a first configuration word to a controller under test; the first configuration word cannot adjust the first function of the controller under test; receiving first response data sent by the controller under test in response to the first control signal; when the first response data is the same as first preset response data, sending a second control signal for setting a second configuration word to the controller under test; the second configuration word can adjust the parameters of the first function of the controller under test and there is a first preset fault when adjusting the first function of the controller under test; receiving second response data sent by the controller under test in response to the second control signal, and generating a first test result for the controller under test based on the second response data and second preset response data.
[0006] In a second aspect, an embodiment of this application provides a testing device, including: a first sending module, configured to send a first control signal for setting a first configuration word to a controller under test; the first configuration word cannot adjust the first function of the controller under test; a receiving module, configured to receive first response data sent by the controller under test in response to the first control signal; a second sending module, configured to send a second control signal for setting a second configuration word to the controller under test when the first response data is the same as first preset response data; the second configuration word can adjust the parameters of the first function of the controller under test and there is a first preset fault when adjusting the first function of the controller under test; a generating module, configured to receive second response data sent by the controller under test in response to the second control signal, and generate a first test result for the controller under test based on the second response data and second preset response data.
[0007] In a third aspect, an embodiment of this application provides a computer device, including a memory and a processor, where the memory stores a computer program that can run on the processor, and when the processor executes the program, it implements some or all of the steps in the above method.
[0008] Fourthly, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, some or all of the steps in the above method are implemented.
[0009] Fifthly, an embodiment of the present application provides a computer program product, including a computer program or instruction. When the computer program or instruction is executed by a processor, some or all of the steps in the above method are implemented.
[0010] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the technical solution of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and form a part of the specification. These drawings show embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0012] Figure 1 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0013] Figure 2 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0014] Figure 3 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0015] Figure 4 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0016] Figure 5 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0017] Figure 6 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0018] Figure 7 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0019] Figure 8 It is a schematic diagram of the structure of a test system provided by an embodiment of the present application;
[0020] Figure 9 It is a schematic diagram of the implementation process of a test method provided by an embodiment of the present application;
[0021] Figure 10 It is a schematic diagram of the implementation process of an overall test method provided by an embodiment of the present application;
[0022] Figure 11 This is a schematic diagram of the implementation process of a test method for writing configuration words provided by an embodiment of the present application;
[0023] Figure 12 This is a schematic diagram of the composition structure of a test device provided by an embodiment of the present application;
[0024] Figure 13 This is a schematic diagram of the hardware entity of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be further elaborated in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.
[0026] In the following descriptions, reference is made to "some embodiments", which describe subsets of all possible embodiments. However, it can be understood that "some embodiments" can be the same subsets or different subsets of all possible embodiments, and can be combined with each other without conflict. The terms "first / second / third" involved are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the present application and are not intended to limit the present application.
[0028] Local Interconnect Network (LIN) communication is a low-cost, single-wire transmission, highly flexible, and stable transmission serial communication network, mainly used for electronic devices such as automotive doors and windows, seats, sensors, and steering wheels that have low requirements for real-time performance and transmission speed but are cost-sensitive.
[0029] Currently, there are many electronic and electrical components involved in communication inside the existing body domain controller, with frequent signal interactions, an increasing amount of test content, and frequent operations during the test process. The method of manually testing electronic devices that need to write configuration words still has the problem of low efficiency.
[0030] An embodiment of the present application provides a testing method, which can be executed by a processor of a computer device. Herein, the computer device may refer to a device with data processing capabilities such as a server, a laptop computer, a tablet computer, a desktop computer, a smart TV, a set-top box, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device), a testing tool, etc.
[0031] Figure 1 FIG. is a schematic flow chart of the implementation of a testing method provided by an embodiment of the present application, and this method can be executed by a processor of a computer device. As Figure 1 shown, this method includes the following steps S101 to step S104, which will be described in combination with Figure 1 the steps presented.
[0032] Step S101: Send a first control signal for setting a first configuration word to the controller under test.
[0033] Wherein, the first configuration word cannot adjust the first function of the controller under test.
[0034] In some embodiments, the controller under test may be an Electronic Control Unit (ECU).
[0035] In some embodiments, a configuration word is a set of parameters or instructions used to control the working modes, different functions, and interactions with other systems of different devices through the controller under test. By modifying the configuration word, the operating parameters of the device can be adjusted; for example, the electronic control unit adjusts the vehicle seat temperature, window lifting and lowering, air suspension working mode, etc. through the configuration word.
[0036] In some embodiments, after receiving the configuration word, the controller under test usually stores the configuration word in a non-volatile memory, such as an Electrically Erasable Programmable Read-Only Memory (EEPROM) or a Flash memory, etc.
[0037] In some embodiments, the first control signal may be a Local Interconnect Network (LIN) signal, a Controller Area Network (CAN) signal, etc. The configuration word stored in the controller under test can be modified through the first configuration word carried in the first control signal, and the working parameters or working modes of different devices or functions of the vehicle can be controlled through the first configuration word. Wherein, if the first control signal is a LIN signal, the first configuration word is written into the data segment of the LIN signal, and the LIN signal with the first configuration word written is sent to the controller under test.
[0038] In some embodiments, the first function may be a seat heating function, an air suspension function, a window lifting function, etc.
[0039] In some embodiments, a first control signal for setting a first configuration word is sent to the controller under test to modify the configuration word stored in the controller under test to the first configuration word, so that based on the control strategy of the first configuration word, the working mode or working parameters of the vehicle device are controlled by the controller under test.
[0040] Exemplarily, the binary number of the configuration word pre-stored in the controller under test is 01000000, indicating that the vehicle seat temperature is adjusted to a low temperature, and the binary number of the first configuration word is 00000000, indicating that the seat temperature is not controlled. Thus, the configuration word pre-stored in the controller under test is replaced with the first configuration word in the first control signal to adjust the strategy of controlling the seat temperature adjustment to a low temperature by the controller under test to not controlling the seat temperature.
[0041] Step S102: Receive first response data sent by the controller under test in response to the first control signal.
[0042] In some embodiments, the first response data may be data such as status information, confirmation information, and fault codes that can reflect the result of writing the first configuration word and the current state of the controller under test.
[0043] In some embodiments, after receiving the first control signal for setting the first configuration word, the controller under test parses the first control signal, saves the obtained first configuration word, generates first response data after controlling the target device of the vehicle based on the control instruction or parameter corresponding to the first configuration word, and sends the first response data.
[0044] Exemplarily, after sending a LIN control signal for setting the first configuration word to the electronic control unit, the electronic control unit parses the LIN control signal and obtains that the content of the first configuration word is 00000000, that is, the first configuration word represents not adjusting the first function or the parameters of the electronic control unit; the electronic control unit does not currently generate fault information related to the first configuration word, so the current fault code generated by the electronic control unit is the fault code at the historical moment; thus, the fault code at the historical moment sent by the electronic control unit in response to the first control signal for setting the first configuration word is received.
[0045] Step S103: When the first response data is the same as the first preset response data, send a second control signal for setting a second configuration word to the controller under test.
[0046] Wherein, the second configuration word can adjust the parameters of the first function of the controller under test and there is a first preset fault when adjusting the first function of the controller under test.
[0047] In some embodiments, the first preset fault includes the faults that can occur when adjusting the first function. For example, when the first function is seat heating, adjusting the first function to medium temperature, but the actual temperature is high temperature, thus generating an adjustment fault.
[0048] In some embodiments, the first preset response data is the response data generated by the controller under test under normal circumstances based on the first configuration word. Since the first configuration word does not adjust the first function of the controller under test, the controller under test will not generate a fault code related to the first configuration word at present, and the generated first response data should be the response data at a historical moment.
[0049] In some embodiments, compare the first response data with the first preset response data. When the content of the first response data is also the fault code at the historical moment represented by the second response data, it indicates that the controller under test passes the test.
[0050] In some embodiments, the second control signal of the second configuration word is based on the first control signal of the first configuration word. Write the second configuration word in the first control signal, so that the second control signal for setting the second configuration word can adjust the second function of the controller under test, and adjust the second configuration word so that when controlling the first function through the second configuration word, a preset fault of the first function is generated, and then the second control signal for setting the second configuration word is sent to the controller under test.
[0051] Exemplarily, the first function is seat temperature, the binary representation of the first configuration word is 00000000, indicating that the seat temperature cannot be adjusted. Modify the first configuration word in the LIN signal for setting the first configuration word to the second configuration word. The binary representation of the second configuration word is 00100000, indicating that the seat temperature is adjusted to low temperature. At the same time, modify the second configuration word to simulate a fault of the seat temperature, so that when adjusting the seat temperature through the second configuration word, a fault of adjusting the seat temperature to high temperature will be generated. Thus, the second control signal of the second configuration word that will generate a fault of adjusting the seat temperature to high temperature when adjusting the seat temperature through the second configuration word is obtained, and this second control signal for setting the second configuration word is sent to the controller under test.
[0052] Step S104: Receive the second response data sent by the controller under test in response to the second control signal, and generate a first test result for the controller under test based on the second response data and the second preset response data.
[0053] In some embodiments, the second response data can be data such as status information, confirmation information, and fault codes that can reflect the result of writing the second configuration word and the current state of the controller under test.
[0054] In some embodiments, after receiving the second control signal for setting the second configuration word, the controller under test analyzes the first control signal, saves the obtained first configuration word, controls the first function of the controller under test based on the control instructions or parameters of the second configuration word. During the control process, the state of the controller under test controlling the first function is detected to generate second response data, and the second response data is sent. Among them, since a preset fault will occur when adjusting the first function of the controller under test through the second configuration word, the second response data generated under the normal condition of the controller under test can reflect the preset fault.
[0055] In some embodiments, the second preset response data is a fault code generated by the controller under test under normal conditions, which can reflect that the first function of the controller under test is adjusted through the second configuration word and a preset fault occurs.
[0056] In some embodiments, the second response data is compared with the second preset response data to generate a first test result indicating whether the controller under test meets the preset requirements. It can be understood that when both the generated second response data and the second preset response data represent that a preset fault occurs when adjusting the first function of the controller under test through the second configuration word, the first test result indicating that the controller under test meets the preset requirements can be understood that the controller under test can generate correct fault codes according to the control signals of different configuration words; when the generated second response data is different from the second preset response data, that is, when the second response data does not reflect that a preset fault occurs when adjusting the first function of the controller under test through the second configuration word, a first test result indicating that the controller under test does not meet the preset requirements is generated, which can be understood that the controller under test cannot generate correct fault codes according to the control signals of different configuration words.
[0057] In the embodiments of the present application, for the functions in the controller under test that need to be adjusted by writing configuration words, first, a first control signal with a first configuration word that cannot adjust the first function of the controller under test is sent to the controller under test. Based on the first response data generated after the controller under test executes the first configuration word and the first preset response data, the first test of the controller under test is performed, and it can be determined whether the controller under test meets the preset requirements without executing the configuration word, thereby improving the subsequent test accuracy. By sending a second control signal with a second configuration word that can adjust the controller under test and simulating a preset fault when adjusting the first function of the controller under test through the second configuration word, based on the second response data obtained by the controller under test through the second control signal with the second configuration word and the preset second response data, it is determined whether the controller under test can identify the existence of a preset fault, thereby further locating the problem of the controller under test to improve the test accuracy of the controller under test. In addition, through the solution of the present application, the controller under test is gradually tested, the problem cause of the controller under test can be quickly located, and while improving the accuracy of testing the controller under test, the test efficiency is also improved.
[0058] Figure 2 FIG. is a schematic flowchart of the implementation of a test method provided by an embodiment of the present application, and this method can be executed by a processor of a computer device. Based on Figure 1 , Figure 1 In step S104 in, it can be updated to step S201, and the steps shown in Figure 2 will be described.
[0059] Step S201: When the second response data and the second preset response data are different, generate a first test result indicating that the controller under test is unqualified.
[0060] In some embodiments, the second response data and the second preset response data are compared. When the second response data and the second preset response data are different, a first test result indicating that the controller under test is unqualified is generated. It can be understood that if the second preset response data reflects that a preset fault occurs when adjusting the first function of the controller under test through the second configuration word of the second control signal, and the second response data reflects that no preset fault occurs when adjusting the first function of the controller under test through the second configuration word of the second control signal, it indicates that the second preset response data and the second response data are different, thereby generating a first test result that the controller under test is unqualified.
[0061] Among them, the unqualified controller under test indicates that when adjusting the first function of the controller under test based on the configuration word, the controller under test cannot accurately identify the occurrence of a fault, thereby locating the problem that the controller under test cannot identify the fault.
[0062] Exemplarily, the first function is the seat temperature. The binary representation of the second configuration word is 00100000, indicating that the seat temperature is adjusted to a low temperature. At the same time, the second configuration word is modified to simulate a fault in the seat temperature, so that a fault of adjusting the seat temperature to a high temperature will occur when the seat temperature is adjusted through the second configuration word. The second preset response data reflects that a high-temperature fault occurs when the seat temperature is adjusted through the second configuration word, and the second response data reflects that no fault occurs when the seat temperature is adjusted to a low temperature through the second configuration word. It can be seen that the second response data is different from the second preset response data, thereby generating a first test result that the to-be-tested controller cannot recognize the occurrence of a fault when adjusting the first function through the configuration word.
[0063] In the embodiment of the present application, based on the second response data obtained by the to-be-tested controller through the second control signal for setting the second configuration word, it is determined whether the to-be-tested controller can recognize the existence of a preset fault by comparing the second response data with the preset second response data. In this way, the problem of the unqualified to-be-tested controller can be further located to improve the accuracy of testing the to-be-tested controller.
[0064] Figure 3 It is a schematic flowchart of the implementation process of a test method provided by an embodiment of the present application, and this method can be executed by the processor of a computer device. Based on Figure 1 , Figure 1 Step S104 in can be updated to step S301 to step S302, and will be described in combination with Figure 3 the steps shown.
[0065] Step S301: When the second response data is the same as the second preset response data, send a third control signal for setting a third configuration word to the to-be-tested controller.
[0066] Among them, the third configuration word can adjust the parameters of the first function of the to-be-tested controller.
[0067] In some embodiments, the second response data is compared with the second preset response data. When the second response data is the same as the second preset response data, a first test result indicating that the to-be-tested controller is qualified is generated. It can be understood that if the second preset response data reflects that a preset fault occurs when adjusting the first function of the to-be-tested controller through the second configuration word of the second control signal, and the second response data also reflects that a preset fault occurs when adjusting the first function of the to-be-tested controller through the second configuration word of the second control signal, it indicates that the second preset response data is the same as the second response data, thereby generating a first test result that the to-be-tested controller is qualified.
[0068] Among them, the qualification of the to-be-tested controller is characterized in that when adjusting the first function of the to-be-tested controller based on the configuration word, the to-be-tested controller can accurately identify the occurrence of a fault and can generate response data reflecting the occurrence of the fault, so as to locate the problem that the to-be-tested controller cannot identify the fault.
[0069] Exemplarily, the first function is the seat temperature, and the binary expression of the second configuration word is 00100000, which represents adjusting the seat temperature to a low temperature. At the same time, the second configuration word is modified to simulate a fault in the seat temperature, so that a fault of adjusting the seat temperature to a high temperature will occur when adjusting the seat temperature through the second configuration word; wherein the second preset response data reflects the occurrence of a high temperature fault when adjusting the seat temperature through the second configuration word, and the second response data reflects the occurrence of a high temperature fault when adjusting the seat temperature through the second configuration word. It can be seen that the second response data is the same as the second preset response data, thereby generating a first test result that the to-be-tested controller can accurately identify the occurrence of a fault when adjusting the first function through the configuration word.
[0070] In some embodiments, the third control signal for setting the third configuration word is obtained by eliminating the preset fault generated when adjusting the first function of the to-be-tested controller through the second configuration word on the basis of the second control signal for setting the second configuration word; it can be understood that the first function of the to-be-tested controller can be adjusted through the third configuration word, but no fault will occur. Thus, the third control signal for the third configuration word that can adjust the first function of the to-be-tested controller is sent to the to-be-tested controller.
[0071] Exemplarily, the first function is the seat temperature, and the binary expression of the second configuration word is 01000000, which represents adjusting the seat temperature to a low temperature. The second configuration word in the LIN signal for setting the first configuration word is modified to the third configuration word, and the binary expression of the third configuration word is 00010000, which represents adjusting the seat temperature to a medium temperature. At the same time, the high temperature fault generated when adjusting the first function of the to-be-tested controller through the second configuration word is eliminated, so that when adjusting the seat temperature through the third configuration word, the seat temperature can be adjusted to a medium temperature and no high temperature fault will occur. Thus, the third control signal for the third configuration word that no fault of adjusting the seat temperature to a high temperature will occur when adjusting the seat temperature to a medium temperature through the third configuration word is obtained, and the third control signal for the set three configuration words is sent to the to-be-tested controller.
[0072] Step S302, receive the third response data of the to-be-tested controller for the third control signal, and generate a first test result for the to-be-tested controller based on the third response data and the third preset response data.
[0073] In some embodiments, the third response data may be data such as status information, confirmation information, and fault codes that can reflect the result of writing the third configuration word and the current state of the to-be-tested controller.
[0074] In some embodiments, after receiving the third control signal with the third configuration word set, the controller under test first parses the third control signal to obtain the third configuration word and the control instruction or control parameter corresponding to the third configuration word and saves them; then, during the process of adjusting the first function of the controller under test with the control instruction or control parameter corresponding to the third configuration word, the controller under test continuously detects the adjustment state to generate the third response data when the third configuration word controls the first function, and sends the third response data.
[0075] In some embodiments, the third preset response data indicates that the first function of the controller under test can be adjusted by the third configuration word.
[0076] In some embodiments, the third preset response data and the third response data are compared, and based on the third preset response data and the third response data, it is determined whether the controller under test meets the preset requirements, so as to generate the first test result of whether the controller under test is qualified. It can be understood that if the third response data indicates that the first function of the controller under test cannot be adjusted by the third configuration word, it means that the third preset response data and the third response data are different, and it is determined that the controller under test does not meet the preset requirements, so as to generate the first test result that the controller under test is unqualified; if the third response data indicates that the first function of the controller under test can be adjusted by the third configuration word, it means that the third preset response data and the third response data are the same, and it is determined that the controller under test meets the preset requirements, so as to generate the first test result that the controller under test is qualified.
[0077] In the embodiments of the present application, first, through the second response data and the second preset response data, it can be determined that the controller under test can accurately identify the generated faults when adjusting the first function of the controller under test through the configuration word. Secondly, a third control signal that can adjust the control process of the controller under test without generating faults through the third configuration word is sent to the controller under test. Based on the third response signal and the third preset response signal generated by adjusting the first function of the controller under test through the third configuration word, it is determined whether the controller under test can accurately adjust the first function of the controller under test through the third configuration word. In this way, after excluding the influence of faults on the controller under test, it can be accurately identified whether the controller under test can accurately adjust the third function through the third configuration word, thereby improving the accuracy and efficiency of the test.
[0078] Figure 4 It is a schematic flowchart of the implementation process of a test method provided by the embodiments of the present application, and this method can be executed by the processor of a computer device. Based on Figure 3 , Figure 3 The step S302 in can be updated to step S401 or step S402, and will be described in combination with the steps shown in Figure 4 shown.
[0079] Step S401: When the third response data is the same as the third preset response data, generate a first test result indicating that the to-be-tested controller is qualified.
[0080] In some embodiments, the third preset response data represents adjusting the first function of the to-be-tested controller to a first state through a third configuration word.
[0081] In some embodiments, if the third response data represents that the first function of the to-be-tested controller can be adjusted to the first state through the third configuration word, it indicates that the third preset response data is the same as the third response data, determines that the to-be-tested controller meets the preset requirements, and thus generates a first test result indicating that the to-be-tested controller is qualified.
[0082] Wherein, the qualification of the to-be-tested controller represents that the to-be-tested controller can accurately identify that the first function of the to-be-tested controller can be adjusted to the first state through the third configuration word.
[0083] Exemplarily, the first function is the seat temperature, the first state is high temperature, the binary expression of the third configuration word is 00100000, which represents adjusting the seat temperature to high temperature. The third preset response data reflects that the seat temperature is adjusted to high temperature through the third configuration word, and the third response data also reflects that the seat temperature is adjusted to high temperature through the third configuration word. It can be seen that the third response data is the same as the third preset response data, and thus a first test result that the to-be-tested controller can accurately identify adjusting the first function through the configuration word is generated.
[0084] Step S402: When the third response data is different from the third preset response data, generate a first test result indicating that the to-be-tested controller is unqualified.
[0085] In some embodiments, if the third response data represents that the first function of the to-be-tested controller can be adjusted to a second state through the third configuration word, it indicates that the third preset response data is different from the third response data, determines that the to-be-tested controller does not meet the preset requirements, and thus generates a first test result indicating that the to-be-tested controller is unqualified.
[0086] Wherein, the unqualified of the to-be-tested controller represents that the to-be-tested controller cannot accurately identify that the first function of the to-be-tested controller can be adjusted to the first state through the third configuration word.
[0087] Exemplarily, the first function is seat temperature, the first state is high temperature, the second state is low temperature, and the binary expression of the third configuration word is 00100000, indicating that the seat temperature is adjusted to high temperature. The third preset response data reflects that the seat temperature is adjusted to high temperature through the third configuration word, and the third response data reflects that the seat temperature is adjusted to low temperature through the third configuration word. It can be seen that the third response data and the third preset response data are different, thereby generating a first test result that the controller to be tested cannot accurately identify the adjustment of the first function to the first state through the configuration word.
[0088] In an embodiment of the present application, by comparing whether the third response data and the third preset response data are the same, it is determined whether the control to be tested can correctly identify the adjustment of the first function to the first state through the third configuration word. In this way, it can be determined whether the controller to be tested is qualified, thereby improving the accuracy of the test.
[0089] In some embodiments, after the above step S103 receives the first response data for the first control signal sent by the controller under test, it also includes the following implementation process.
[0090] When the first response data is different from the first preset response data, a second test result indicating that the controller to be tested is unqualified is generated.
[0091] In some embodiments, the first preset response data is response data generated based on the first configuration word when the controller under test is normally tested. Since the first configuration word will not adjust the first function of the controller under test, the controller under test will not currently generate a fault code related to the first configuration word, and the first preset response data reflects the response data at a historical moment.
[0092] In some embodiments, if the first response data reflects that a fault occurs when adjusting the first function of the controller under test through the first configuration word, it is determined that the controller under test cannot accurately identify the first configuration word based on the inability to adjust the first function of the controller under test, then the first response data and the second response data are different, and a second test result is generated indicating that the controller under test is unqualified.
[0093] In an embodiment of the present application, a first test is performed on the controller to be tested based on first response data and first preset response data generated after the controller to be tested executes a first configuration word. When the first response data and the first preset response data are different, it can be determined that the controller to be tested does not meet the preset requirements when the configuration word is not executed. In this way, a test result indicating that the controller to be tested is unqualified can be generated, thereby improving the efficiency of testing the controller to be tested.
[0094] Figure 5Schematic diagram of the implementation process of a test method provided by an embodiment of this application. This method can be executed by a processor of a computer device. This method includes steps S501 to S503, which will be described in combination with Figure 5 the steps shown.
[0095] Step S501: Send a fourth control signal without a configured word to the controller under test.
[0096] Among them, the fourth control signal can adjust the second function of the controller under test and there is a second preset fault when adjusting the second function of the controller under test.
[0097] In some embodiments, the second function represents the basic function of the vehicle, such as simple lighting adjustment, wiper adjustment, emergency braking adjustment, etc.
[0098] In some embodiments, the second preset fault includes the faults that can occur when adjusting the second function. For example, when the second function is the high beam, adjusting the second function to turn on the high beam, but actually it turns on and then turns off after turning on the high beam.
[0099] In some embodiments, for the second function in the controller under test that does not need to be controlled by a configured word, first obtain a fourth control signal that can control the second function. This fourth control signal can simulate the second preset fault and send this fourth control signal to the controller under test. Among them, the fourth control signal can be a control signal such as a Local Interconnect Network (LIN) signal or a Controller Area Network (CAN) signal for controlling the basic functions of the vehicle.
[0100] Exemplarily, send a fourth control signal that controls the high beam to turn on but will generate a fault of turning on and then turning off to the electronic control unit.
[0101] Step S502: Receive the fourth response data of the controller under test for the fourth control signal.
[0102] In some embodiments, the fourth response data can be data such as status information, confirmation information, and fault codes that can reflect the current state of the second function of the controller under test.
[0103] In some embodiments, after receiving the fourth control signal, the controller under test parses the fourth control signal to obtain the control instruction in the fourth control signal. When controlling the second function of the controller under test through the control instruction in the fourth control signal, generate the fourth response data and send the fourth response signal.
[0104] Exemplarily, after sending a fourth control signal to the electronic control unit to turn on the high beam but with a fault that it turns off after being turned on, the electronic control unit parses the control instruction of the fourth control signal. When controlling the high beam through the control instruction in the fourth control signal, third response data will be generated.
[0105] To turn on the high beam, since the fourth control signal will cause the high beam to turn off after being turned on, thus generating
[0106] Step S503: Generate a third test result based on the fourth response data and the fourth preset response data.
[0107] In some embodiments, the fourth preset response signal indicates that when the controller under test is qualified, a second preset fault will occur when controlling the second function through the fourth control signal.
[0108] In some embodiments, compare the fourth preset response signal and the fourth response signal. If the fourth response signal indicates that a second preset fault will occur when controlling the second function through the fourth control signal, it means that the fourth preset response signal and the fourth response signal are the same, thus generating a third test result indicating that the controller under test can accurately identify the fault. If the fourth response signal indicates that a second preset fault will not occur when controlling the second function through the fourth control signal, it means that the fourth preset response signal and the fourth response signal are different, thus generating a third test result indicating that the controller under test cannot accurately identify the fault.
[0109] In the embodiments of the present application, for the functions of the controller under test that do not need to be adjusted by writing configuration words, first send a fourth control signal simulating the second preset fault to the controller under test to obtain fourth response data, and determine whether the controller under test can accurately identify the fault based on the fourth response data and the fourth preset response data, so as to determine whether the controller under test is qualified. In this way, the controller under test can be accurately tested, improving the test efficiency and accuracy.
[0110] Figure 6 It is a schematic implementation flowchart of a test method provided by the embodiments of the present application, and this method can be executed by the processor of a computer device. Based on Figure 5 , Figure 5 Step S503 in Figure 6 can also be updated to step S601, which will be described in combination with the steps shown in
[0111] Step S601: Generate a third test result indicating that the controller under test is unqualified when the fourth response data and the fourth preset response data are different.
[0112] In some embodiments, the fourth preset response signal indicates that when the controller under test is qualified, a second preset fault will occur when the second function is controlled by the fourth control signal.
[0113] In some embodiments, if the fourth response signal indicates that the second preset fault will not occur when the second function is controlled by the fourth control signal, it indicates that the fourth preset response signal is different from the fourth response signal, and it is determined that the controller under test cannot accurately identify the fault, thereby generating a third test result indicating that the controller under test is unqualified.
[0114] Exemplarily, the second function is the high beam. The fourth preset response signal indicates a fault that the high beam is turned on and then turned off, and the fourth response signal indicates that there is no fault that the high beam is turned on and then turned off. Thus, it can be determined that the controller under test cannot accurately identify the fault that the high beam is turned on and then turned off, and thereby generate a third test result indicating that the controller under test is unqualified.
[0115] In the embodiments of the present application, by comparing the fourth response data with the fourth preset response data, to determine whether the second preset fault in the fourth preset response data can be reflected by the fourth response data. If the fourth response data cannot reflect the second preset fault, it can be determined that the controller under test accurately identifies the fault, and thus it is determined that the controller under test is unqualified. In this way, it is possible to accurately locate whether the controller under test is qualified based on the response data of the controller under test, thereby improving the test efficiency.
[0116] Figure 7 FIG. is a schematic implementation flowchart of a test method provided by an embodiment of the present application, and this method can be executed by a processor of a computer device. Based on Figure 5 , Figure 5 Step S503 in can also be updated to steps S701 to S703 or step S704, and will be described in combination with the steps shown in Figure 7 Illustrated steps
[0117] Step S701: When the fourth response data is the same as the fourth preset response data, send a fifth control signal without a configured word to the controller under test.
[0118] Wherein, the fifth control signal can adjust the second function of the controller under test.
[0119] In some embodiments, the fourth preset response signal indicates that when the controller under test is qualified, a second preset fault will occur when the second function is controlled by the fourth control signal.
[0120] In some embodiments, if the fourth response signal indicates that the second preset fault will occur when the second function is controlled by the fourth control signal, it indicates that the fourth preset response signal is the same as the fourth response signal.
[0121] In some embodiments, the fifth control signal is obtained by removing the second preset fault that simulates the second function in the fourth control signal on the basis of the fourth control signal. The fifth control function can control the second function to the target state, and the obtained fifth control function is sent to the controller under test.
[0122] Exemplarily, the fifth control signal for turning on the high beam is sent to the controller under test.
[0123] Step S702: Receive the fifth response data sent by the controller under test in response to the fifth control signal.
[0124] In some embodiments, the fifth response data can be data such as status information, confirmation information, and fault codes that can reflect the current state of the second function of the controller under test.
[0125] In some embodiments, after receiving the fifth control signal, the controller under test parses the fifth control signal to obtain a control instruction for controlling the second function. When controlling the second function to the target state through the control instruction for controlling the second function in the fifth control signal, the fifth response data for the second function is generated and the fifth response data is sent.
[0126] Step S703: Generate a third test result indicating that the controller under test is qualified when the fifth response data is the same as the fifth preset response data.
[0127] In some embodiments, the fifth preset response data represents that when the controller under test is qualified, since no fault will occur due to the fifth control instruction, the fifth preset response data is the fault code at a historical moment.
[0128] In some embodiments, when comparing the fifth response data with the fifth preset response data, if the fifth response data is the response data at a historical moment, it indicates that the fifth response data is the same as the fifth preset response data, and it is determined that the controller under test can accurately recognize controlling the second function to the target state through the fifth control signal, thereby generating a third test result indicating that the controller under test is qualified.
[0129] Exemplarily, the second function is to turn on the high beam, the fifth preset response data represents the fault code at a historical moment, and the fifth response data also represents the fault code at a historical moment, then it indicates that the fifth response data is the same as the fifth preset response data, and it is determined that the controller under test can accurately recognize that the fifth control signal turns on the high beam, thereby generating a third test result indicating that the controller under test is qualified.
[0130] Step S704: Generate a third test result indicating that the controller under test is unqualified when the fifth response data is different from the fifth preset response data.
[0131] In some embodiments, the fifth response data is compared with the fifth preset response data. If the fifth response data is a fault code at the current moment, it indicates that the fifth response data is different from the fifth preset response data, and it is determined that the controller under test cannot accurately identify controlling the second function to the target state through the fifth control signal, thereby generating a third test result indicating that the controller under test is unqualified.
[0132] Exemplarily, the second function is to turn on the high beam. The fifth preset response data represents the fault code at the historical moment, and the fifth response data represents that there is a fault that the high beam is turned on and then turned off, which indicates that the fifth response data is different from the fifth preset response data, and it is determined that the controller under test cannot accurately identify controlling the high beam to turn on through the fifth control signal, thereby generating a third test result indicating that the controller under test is unqualified.
[0133] In the embodiments of the present application, for the second function that does not need to be adjusted by writing configuration words for the controller under test, first, it is determined that the controller under test can accurately identify faults by comparing the fourth response data with the fourth preset response data. Secondly, by comparing the fifth response data with the fifth preset response data, it is determined whether the controller under test can accurately identify the process of controlling the second function. In this way, the problem that the controller under test cannot accurately identify faults can be excluded first, and then the process of whether the controller under test can accurately identify the control of the second function can be tested, improving the test efficiency and accuracy at the same time.
[0134] The following describes an exemplary application of a test method provided by the embodiments of the present application in an actual scenario.
[0135] Local Interconnect Network (LIN) communication is a low-cost, single-line transmission, highly flexible, and stable transmission serial communication network, which is mainly used in application scenarios such as automotive doors and windows, seats, sensors, and steering wheels that have low requirements for real-time performance and transmission speed but are cost-sensitive.
[0136] In the existing body domain controller, there are many electronic and electrical components involved in LIN communication, frequent signal interactions, an increasing amount of test content, and frequent operations in the test process. The test difficulties of LIN-type faults are the most prominent, and there are disadvantages such as low manual test efficiency and blocking product delivery.
[0137] In view of the above problems, the present application provides an automated test method for vehicle LIN - type faults. The entire test process, from obtaining the fault test task to generating control instructions, performing fault operations, and reading operation results, is automated, reducing manual intervention and improving test efficiency and accuracy. By clearly defining the target diagnostic trouble code (DTC) test items and fault operation types, the test is carried out more pertinently, quickly locating potential problem points. At the same time, multiple target DTC test items are tested to expand the test coverage range, which helps to discover more potential faults. The operation results of the test piece performing fault operations can be read in real - time to timely understand the test status, so as to make a quick response when problems occur.
[0138] The test types mainly involved in the test method provided by the present application include two major types of faults: configuration - word type and non - configuration - word type. The signal interaction types involve CAN / CANFD signals, DOIP signals, LIN signals, etc. The main LIN - type DTC types include multiple types of faults such as node - loss type, sensor - loss type, switch - adhesion type, communication - error type, LIN - light open - circuit type, relay type, etc.
[0139] Figure 8 FIG. shows a schematic structural diagram of a test system provided by an embodiment of the present application. Among them, 801 is a test host computer, 802 is a test tool, and 803 is an electronic control unit (ECU) to be tested. Among them, the host computer 801 is used to send LIN - type fault automated test setting parameters to the test tool 802. The test tool 802 is used to generate at least one test item based on the LIN - type fault automated test setting parameters, determine the test request for the target test item and send it to the electronic controller 803. The electronic controller 803 sends response data to the test tool 802 based on the test request for the target test item. The test tool 802 is also used to generate a test result based on the response data.
[0140] Figure 9 FIG. shows a schematic implementation flow diagram of a test method provided by an embodiment of the present application. This process can be executed by the processor of a computer device. This process includes steps S901 to S904, which will be described in conjunction with Figure 9 the steps shown.
[0141] Step S901: Obtain LIN - type fault automated test setting parameters from the host computer.
[0142] In some embodiments, LIN - class fault automated test setup parameters are obtained from a host computer; wherein, the LIN - class fault automated test scenario represents a scenario for testing a vehicle controller group to be tested; the LIN - class fault automated test setup parameters represent parameters for testing the vehicle controller group to be tested in the LIN - class fault automated test scenario; the automated test setup parameters can be the baud rate, frame format, transmission node, etc. of LIN - class signals.
[0143] Step S902: Based on the automated test setup parameters, determine at least one test item.
[0144] In some embodiments, at least one test item is a test instance for testing the vehicle control functions of the vehicle controller group to be tested. At least one test item includes vehicle basic function test, vehicle optional function test, etc.
[0145] Step S903: Based on the test instruction obtained from the host computer, determine a target test item from at least one test item, and send a test request generated based on the target test item to the ECU to be tested.
[0146] In some embodiments, based on the test instruction for the vehicle optional function in the host computer, the vehicle optional function is determined as the target test item, and a LIN - class signal that needs to write a configuration word is generated based on the target vehicle optional function and sent to the ECU to be tested.
[0147] Step S904: Receive the response data for the target test item sent by the ECU to be tested, and generate a test result based on the response data and the preset response data.
[0148] In some embodiments, the ECU to be tested generates a corresponding fault code based on the received LIN - class signal that needs to write a configuration word.
[0149] In some embodiments, a test result is generated based on the received fault code and the preset fault code; wherein, when the received fault code is the same as the preset fault code, a test result indicating that the ECU to be tested is qualified is generated, and when the received fault code is different from the preset fault code, a test result indicating that the ECU to be tested is unqualified is generated.
[0150] In some embodiments, after obtaining the test result of the LIN - class fault, the LIN - class fault test result can be sent to the host computer to be presented to the user through the display interface of the host computer, so that the user can intuitively read the LIN - class fault automated test result.
[0151] Figure 10Schematic diagram of the implementation process of an overall testing method provided by an embodiment of this application. This method can be executed by a processor of a computer device. This method includes step S1001 and step S1002, which will be described in combination with Figure 10 the steps shown.
[0152] Step S1001: Check the preconditions of the test system.
[0153] In some embodiments, the test system includes an ECU under test, a test tool, and a host computer; it is detected that the ECU under test, the test tool, and the host computer are in a startup state, and the LIN communication is in an enabled state, the power supply voltage of each module is within the normal range, and the power supply has been in the on state for more than 3 seconds.
[0154] Step S1002: Determine whether the LIN type signal contains a configuration word.
[0155] In some embodiments, when the LIN type signal contains a configuration word, the test is performed based on the first test process; when the LIN type signal does not contain a configuration word, the test is performed based on the second test process.
[0156] Figure 11 Schematic diagram of the implementation process of a testing method that requires writing a configuration word provided by an embodiment of this application. This process can be executed by a processor of a computer device. This process includes steps S1101 to S1103, which will be described in combination with the steps shown in Figure N.
[0157] Step S1101: Read the first fault code of the LIN signal that has not been written with a configuration word and has not simulated a fault.
[0158] In some embodiments, it is necessary to set the first fault verification DTC code (DTC_HighBytes = 0xXX, DTC_MiddleBytes = 0xXX, DTC_LowBytes = 0xXX, DTC_Status = 0x08), where DTC_Status = 0x08 represents the historical fault state. Then clear the current associated configuration word content, restart the ECU to make the written configuration word content take effect, and then read whether the configuration word content is successfully written, read the current first fault code. If the first fault code is the same as the fault verification DTC code, it means that the current DTC will not be triggered in the state of not writing the configuration word, and the test passes and continues to execute step N02; otherwise, the test fails and the current test item ends.
[0159] Step S1102: Read the second fault code of the LIN signal that has been written with a configuration word and has simulated a fault.
[0160] In some embodiments, it is necessary to set the second fault verification DTC code (DTC_HighBytes = 0xXX, DTC_MiddleBytes = 0xXX, DTC_LowBytes = 0xXX, DTC_Status = 0x09), where DTC_Status = 0x09 indicates the current fault status. Then write the current associated configuration word content, restart the ECU to make the written content of the configuration word take effect, and then read whether the configuration word content is written successfully. At the same time, simulate the triggering of the current target DTC (simulate sending CAN / CANFD signals, DOIP signals, LIN signals), read the current second fault code. If the second set fault verification DTC code appears, it means that the current set fault verification DTC code will be triggered in the state of writing the configuration word, that is, the test passes and continue to execute step N03. Otherwise, the test fails and the current test item ends.
[0161] Step S1103: Read the third fault code of the LIN signal that writes the configuration word and clears the simulated fault.
[0162] In some embodiments, it is necessary to set the third fault verification DTC code (DTC_HighBytes = 0xXX, DTC_MiddleBytes = 0xXX, DTC_LowBytes = 0xXX, DTC_Status = 0x08), where DTC_Status = 0x08 indicates the historical fault status. Then write the current associated configuration word content, restart the ECU to make the written content of the configuration word take effect, and then read whether the configuration word content is written successfully. At the same time, eliminate the simulated triggered fault (simulate sending CAN / CANFD signals, DOIP signals, LIN signals), read the current third fault code. If the current third fault verification DTC code appears, it means that the third fault verification DTC code will be triggered in the state of writing the configuration word, that is, the test fails. Otherwise, the test passes and the current test item ends.
[0163] In the embodiments of the present application, the entire test process, from obtaining the fault test task to generating control instructions, performing fault operations, and reading operation results, is automated, reducing manual intervention and improving test efficiency and accuracy. By clarifying the target DTC test items and fault operation types, the test is more targeted, quickly locating potential problem points. At the same time, multiple target DTC test items are tested to expand the test coverage range, helping to discover more potential faults. It is possible to read the results of the fault operation executed by the test piece in real time, timely understand the test status, so as to quickly respond when problems occur.
[0164] Based on the foregoing embodiments, an embodiment of the present application provides a test device. The test device includes each unit included therein and each module included in each unit, and can be implemented by a processor in a computer device; of course, it can also be implemented by specific logic circuits. During implementation, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), a field programmable gate array (FPGA), or the like.
[0165] Figure 12 It is a schematic structural diagram of a test device provided by an embodiment of the present application. As Figure 12 shown, the test device 1200 includes: a first sending module 1201, a receiving module 1202, a second sending module 1203, and a generating module 1204, where: The first sending module 1201 is configured to send a first control signal for setting a first configuration word to the to-be-tested controller; the first configuration word cannot adjust the first function of the to-be-tested controller; The receiving module 1202 is configured to receive first response data sent by the to-be-tested controller in response to the first control signal; The second sending module 1203 is configured to send a second control signal for setting a second configuration word to the to-be-tested controller when the first response data is the same as first preset response data; the second configuration word can adjust parameters of the first function of the to-be-tested controller and there is a first preset fault when adjusting the first function of the to-be-tested controller; The generating module 1204 is configured to receive second response data sent by the to-be-tested controller in response to the second control signal, and generate a first test result for the to-be-tested controller based on the second response data and second preset response data.
[0166] In some embodiments, the generating module 1204 is further configured to generate a first test result indicating that the to-be-tested controller is unqualified when the second response data is different from the second preset response data.
[0167] In some embodiments, the generating module 1204 is further configured to send a third control signal for setting a third configuration word to the to-be-tested controller when the second response data is the same as the second preset response data; the third configuration word can adjust parameters of the first function of the to-be-tested controller; receive third response data sent by the to-be-tested controller in response to the third control signal, and generate a first test result for the to-be-tested controller based on the third response data and third preset response data.
[0168] In some embodiments, the generating module 1204 is further configured to generate a first test result indicating that the to-be-tested controller is qualified when the third response data is the same as the third preset response data; and generate a first test result indicating that the to-be-tested controller is unqualified when the third response data is different from the third preset response data.
[0169] In some embodiments, the generating module 12041 is further configured to generate a second test result indicating that the to-be-tested controller is unqualified when the first response data is different from the first preset response data.
[0170] In some embodiments, the generating module 1204 is further configured to send a fourth control signal without a configured word to the to-be-tested controller; the fourth control signal can adjust the second function of the to-be-tested controller and there is a second preset fault when adjusting the second function of the to-be-tested controller; receive fourth response data sent by the to-be-tested controller in response to the fourth control signal; and generate a third test result based on the fourth response data and the fourth preset response data.
[0171] In some embodiments, the generating module 1204 is further configured to generate a third test result indicating that the to-be-tested controller is unqualified when the fourth response data is different from the fourth preset response data.
[0172] In some embodiments, the generating module 1204 is further configured to send a fifth control signal without a configured word to the to-be-tested controller when the fourth response data is the same as the fourth preset response data; the fifth control signal can adjust the second function of the to-be-tested controller; receive fifth response data sent by the to-be-tested controller in response to the fifth control signal; generate a third test result indicating that the to-be-tested controller is qualified when the fifth response data is the same as the fifth preset response data; and generate a third test result indicating that the to-be-tested controller is unqualified when the fifth response data is different from the fifth preset response data.
[0173] The description of the above device embodiments is similar to that of the above method embodiments and has similar beneficial effects to those of the method embodiments. In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the methods described in the above method embodiments. For the technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0174] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of software function modules and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence or the part that contributes to the related technology, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, external hard drives, read-only memories (ROM), magnetic disks, or optical discs that can store program codes. In this way, the embodiments of the present application are not limited to any specific hardware, software, or firmware, or any combination among hardware, software, and firmware.
[0175] The embodiments of the present application provide a computer device, including a memory and a processor. The memory stores a computer program that can run on the processor, and when the processor executes the program, it implements some or all of the steps in the above method.
[0176] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, it implements some or all of the steps in the above method. The computer-readable storage medium can be transient or non-transient.
[0177] The embodiments of the present application provide a computer program, including computer-readable code. When the computer-readable code runs on a computer device, the processor in the computer device executes to implement some or all of the steps in the above method.
[0178] The embodiments of the present application provide a computer program product. The computer program product includes a non-transient computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above method. The computer program product can be specifically implemented in the form of hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium. In other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0179] It should be noted here that: the above descriptions of the respective embodiments tend to emphasize the differences between the respective embodiments, and their similarities can be referred to each other. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
[0180] Figure 13 The following is a schematic diagram of the hardware entity of a computer device provided by an embodiment of the present application. As Figure 13 shown, the hardware entity of the computer device 1300 includes: a processor 1301 and a memory 1302. Among them, the memory 1302 stores a computer program that can run on the processor 1301, and when the processor 1301 executes the program, it implements the steps in the method of any of the above embodiments.
[0181] The memory 1302 stores a computer program that can run on the processor. The memory 1302 is configured to store instructions and applications executable by the processor 1301, and can also cache data to be processed or already processed by the processor 1301 and each module in the computer device 1300 (for example, image data, audio data, voice communication data, and video communication data), and can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0182] When the processor 1301 executes the program, it implements the steps of the method of any of the above items. The processor 1301 generally controls the overall operation of the computer device 1300.
[0183] An embodiment of the present application provides a computer storage medium. The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method of any of the above embodiments.
[0184] It should be noted here that: the above descriptions of the storage medium and device embodiments are similar to the descriptions of the above method embodiments and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
[0185] The above-mentioned processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that the electronic device implementing the functions of the above-mentioned processor may also be other types, and the embodiments of the present application do not make specific limitations.
[0186] The above-mentioned computer storage medium / memory may be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Ferromagnetic Random Access Memory (FRAM), a Flash Memory, a magnetic surface memory, an optical disc, or a Compact Disc Read-Only Memory (CD-ROM), etc.; it may also be various terminals including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0187] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" that appears throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the magnitude of the serial numbers of the above steps / processes does not mean the sequence of execution. The execution sequence of each step / process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments.
[0188] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0189] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling or communication connection between the components shown or discussed with each other can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0190] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units; they can be located in one place or distributed to multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0191] In addition, in each embodiment of the present application, each functional unit can be entirely integrated into one processing unit, or each unit can be separately regarded as one unit, or two or more units can be integrated into one unit; the above-mentioned integrated unit can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units. Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including those of the above method embodiments; and the aforementioned storage medium includes: removable storage devices, read-only memory (ROM), magnetic disks, or optical discs, etc., all kinds of media that can store program codes.
[0192] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the related technology can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. And the aforementioned storage medium includes: removable storage devices, ROM, magnetic disks, or optical discs, etc., all kinds of media that can store program codes.
[0193] As described above, the above are only the implementation manners of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application.
Claims
1. A testing method, characterized in that: The method comprises: Sending a first control signal for setting a first configuration word to the controller under test; the first configuration word cannot adjust a first function of the controller under test; Receiving first response data to a first control signal sent by the controller to be tested; When the first response data is the same as the first preset response data, a second control signal for setting a second configuration word is sent to the controller under test; the second configuration word can adjust the parameters of the first function of the controller under test and a first preset fault exists when adjusting the first function of the controller under test; Second response data for the second control signal sent by the controller to be tested is received, and a first test result for the controller to be tested is generated based on the second response data and second preset response data.
2. The method according to claim 1, characterized in that: The generating a first test result for the controller to be tested based on the second response data and the second preset response data comprises: When the second response data is different from the second preset response data, a first test result indicating that the controller to be tested is unqualified is generated.
3. The method according to claim 1, characterized in that The generating a first test result for the controller to be tested based on the second response data and the second preset response data comprises: When the second response data and the second preset response data are the same, a third control signal for setting a third configuration word is sent to the controller under test; the third configuration word can adjust the parameters of the first function of the controller under test; The third response data for the third control signal sent by the controller to be tested is received, and a first test result for the controller to be tested is generated based on the third response data and third preset response data.
4. The method according to claim 3, characterized in that The generating a first test result for the controller to be tested based on the third response data and the third preset response data comprises: In a case where the third response data and the third preset response data are the same, generating a first test result indicating that the controller to be tested is qualified; When the third response data is different from the third preset response data, a first test result indicating that the controller to be tested is unqualified is generated.
5. The method according to claim 1, characterized in that The method further comprises: When the first response data is different from the first preset response data, a second test result indicating that the controller to be tested is unqualified is generated.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Sending a fourth control signal without a configuration word to the controller under test; the fourth control signal can adjust the second function of the controller under test and a second preset fault exists when adjusting the second function of the controller under test; receiving fourth response data for a fourth control signal sent by the controller to be tested; A third test result is generated based on the fourth response data and the fourth preset response data.
7. The method according to claim 6, characterized in that Generating a third test result based on the fourth response data and the fourth preset response data includes: When the fourth response data is different from the fourth preset response data, a third test result indicating that the controller to be tested is unqualified is generated.
8. The method according to claim 6, characterized in that The method further comprises: When the fourth response data and the fourth preset response data are the same, a fifth control signal without a configuration word is sent to the controller under test; the fifth control signal can adjust the second function of the controller under test; receiving fifth response data for a fifth control signal sent by the controller to be tested; In a case where the fifth response data and the fifth preset response data are the same, generating a third test result indicating that the controller to be tested is qualified; When the fifth response data is different from the fifth preset response data, a third test result indicating that the controller to be tested is unqualified is generated.
9. A testing device, characterized in that: The device comprises: A first sending module, used for sending a first control signal for setting a first configuration word to the controller under test; the first configuration word cannot adjust a first function of the controller under test; A receiving module, used for receiving first response data for a first control signal sent by the controller to be tested; A second sending module is used to send a second control signal for setting a second configuration word to the controller under test when the first response data is the same as the first preset response data; the second configuration word can adjust the parameters of the first function of the controller under test and there is a first preset fault when adjusting the first function of the controller under test; The generating module is used to receive second response data for the second control signal sent by the controller to be tested, and generate a first test result for the controller to be tested based on the second response data and second preset response data.
10. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Control signal adjusting method for external equipment to be controlled
CN120353218A
Control signal adjustment method for external device to be controlled
CN120353218B