Communication test method and device for refrigerator

CN122933487APending Publication Date: 2026-10-16XIAOMI TECH (WUHAN) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611215787.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

然而,人为对冰箱的通信功能进行测试的效率较低

Benefits of technology

[0078] The refrigerator communication testing method and apparatus provided in this disclosure achieve fully automated communication testing by automatically scheduling the terminal to issue service instructions and collecting time stamps and interaction data between the refrigerator under test and its internal bus. Compared to manual refrigerator communication testing, this disclosure provides an automated communication testing method, reducing manual operation costs and improving the efficiency of communication testing. Furthermore, the refrigerator communication testing method provided in this disclosure independently detects the first link from the terminal to the refrigerator under test and the second link between the main control board and the slave board inside the refrigerator under test. This allows for a comprehensive determination of the communication link status of the refrigerator under test by combining the status of the first and second links, improving the accuracy of determining the communication link status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122933487A_ABST
    Figure CN122933487A_ABST
Patent Text Reader

Abstract

The present disclosure provides a communication test method and device for a refrigerator. The method comprises: a terminal sends a service instruction to a refrigerator to be tested; determining a first time when the terminal sends the service instruction, a second time when the refrigerator to be tested receives the service instruction, and communication data based on the service instruction for service processing inside the refrigerator to be tested; based on the first time and the second time, determining a first link state between the refrigerator to be tested and the terminal; the first link state is normal or abnormal; based on the second time, the service instruction and the communication data, determining a second link state between the main control board and the slave board in the refrigerator to be tested; the second link state is normal or abnormal; according to the first link state and the second link state, the communication link state of the refrigerator to be tested is determined; the communication link state is normal or abnormal. Through the above method, the communication test efficiency of the refrigerator to be tested is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of smart home technology, and in particular to a communication testing method and apparatus for a refrigerator. Background Technology

[0002] With the development of IoT technology, refrigerators have evolved from simple refrigeration devices into complex devices with functions such as remote control, food management, and cross-device linkage. The realization of these functions depends on the refrigerator's normal communication capabilities. In some scenarios, it is necessary to test the refrigerator's communication functions.

[0003] In related technologies, the communication functions of a refrigerator can be tested manually. Specifically, testers can manually issue various business commands to the refrigerator based on preset test cases and collect the refrigerator's operational data. Testers can then determine the refrigerator's communication link status based on the operational data. However, manually testing the refrigerator's communication functions is inefficient. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a communication testing method and apparatus for refrigerators, so as to improve the communication testing efficiency of the refrigerator under test.

[0005] According to a first aspect of the present disclosure, a communication testing method for a refrigerator is provided, applied to a server, wherein the server establishes communication connections with a terminal and a refrigerator under test, and the method includes:

[0006] The control terminal sends a service command to the refrigerator under test;

[0007] Determine the first moment when the terminal sends the service instruction, the second moment when the refrigerator under test receives the service instruction, and the communication data of the refrigerator under test performing service processing based on the service instruction;

[0008] Based on the first and second moments, the status of the first link between the refrigerator under test and the terminal is determined; the status of the first link is either normal or abnormal.

[0009] Based on the second moment, business instructions, and communication data, determine the status of the second link between the main control board and the slave board inside the refrigerator under test; the status of the second link is either normal or abnormal.

[0010] Based on the first link status and the second link status, determine the communication link status of the refrigerator under test; the communication link status is either normal or abnormal.

[0011] In some embodiments, based on a second time point, service instructions, and communication data, determining the second link status between the main control board and the slave board inside the refrigerator under test includes:

[0012] Based on the business instructions, determine the test scenario for the refrigerator under test at the current moment; the test scenario includes any one of the following: cooling scenario, defrosting scenario, and fault scenario;

[0013] The second link state is determined based on at least one of the following: the second time point, the test scenario, and the communication data.

[0014] In some embodiments, when the test scenario is a cooling scenario, the communication data includes the third moment when the main control board forwards the message to the slave board, the target rotation speed and the target duty cycle sent by the main control board to the slave board;

[0015] The second link state is determined based on at least one of the following: the second time point, the test scenario, and the communication data, including:

[0016] Based on the second and third time points, determine the forwarding delay status of the message forwarded from the main control board to the slave board; the forwarding delay status is either forwarding normal or forwarding timeout.

[0017] Based on the target rotational speed and target duty cycle, determine the data status of the communication data sent from the main control board to the slave board; the data status is either normal or abnormal.

[0018] If the forwarding delay status is normal and the data status is normal, then the second link status is determined to be normal.

[0019] In some embodiments, determining the forwarding delay status of the message forwarding from the master control board to the slave board based on the second and third time points includes:

[0020] Based on the second and third time points, determine the forwarding delay of the message from the main control board to the slave board;

[0021] If the forwarding delay is less than or equal to the second preset delay, the forwarding delay status is determined to be the normal forwarding status.

[0022] In some embodiments, determining the data status of communication data sent from the main control board to the slave board based on the target rotational speed and the target duty cycle includes:

[0023] The data status is determined to be normal if the following conditions are met:

[0024] The target speed is within the preset speed range;

[0025] The target duty cycle is within the preset duty cycle range;

[0026] The absolute difference between the target speed and the previous speed is less than or equal to the preset difference; where the previous speed is the speed that the main control board previously sent to the slave board.

[0027] In some embodiments, when the test scenario is a defrosting scenario, the communication data includes a state switching instruction sent by the main control board to the slave board. The state switching instruction is used to indicate that the running state of the slave board is switched to the target running state.

[0028] The second link state is determined based on at least one of the following: the second time point, the test scenario, and the communication data, including:

[0029] Determine at least one mutually exclusive state of the refrigerator under test in the defrosting scenario; each mutually exclusive state is the working state of the slave plate corresponding to the mutually exclusive state that is not allowed in the defrosting scenario.

[0030] If the target running state is included in at least one mutually exclusive state, the second link state is determined to be a second link anomaly.

[0031] In some embodiments, when the test scenario is a fault scenario, the communication data includes fault information sent by the refrigerator under test to the terminal and hardware protection instructions sent by the main control board to the slave board.

[0032] The second link state is determined based on at least one of the following: the second time point, the test scenario, and the communication data, including:

[0033] If the fault information is the same as the preset fault information and the hardware protection command is the same as the preset command, the second link status is determined to be normal.

[0034] In some embodiments, determining the first link state between the refrigerator under test and the terminal based on a first time point and a second time point includes:

[0035] The communication delay between the refrigerator under test and the terminal is determined based on the first and second time points.

[0036] If the communication delay is greater than the first preset delay, the first link status is determined to be abnormal.

[0037] If the communication delay is less than or equal to the first preset delay, the first link status is determined to be normal.

[0038] In some embodiments, determining the communication link state of the refrigerator under test based on a first link state and a second link state includes:

[0039] If both the first link status and the second link status are normal, the communication link status is determined to be normal.

[0040] If the first link status is "first link abnormal" and / or the second link status is "second link abnormal", the communication link status is determined to be abnormal.

[0041] According to a second aspect of the present disclosure, a communication testing apparatus for a refrigerator is provided. The apparatus is used to implement the communication testing method for a refrigerator as described in the first aspect. The apparatus includes:

[0042] The control module is used to control the terminal to send service instructions to the refrigerator under test;

[0043] The first determining module is used to determine the first moment when the terminal sends the service instruction, the second moment when the refrigerator under test receives the service instruction, and the communication data of the refrigerator under test performing service processing based on the service instruction.

[0044] The first processing module is used to determine the status of the first link between the refrigerator under test and the terminal based on the first time and the second time; the status of the first link is either normal or abnormal.

[0045] The second processing module is used to determine the status of the second link between the main control board and the slave board in the refrigerator under test based on the second time, business instructions and communication data; the status of the second link is either normal or abnormal.

[0046] The second determining module is used to determine the communication link status of the refrigerator under test based on the first link status and the second link status; the communication link status is either normal or abnormal.

[0047] In some embodiments, the second processing module is specifically used for:

[0048] Based on the business instructions, determine the test scenario for the refrigerator under test at the current moment; the test scenario includes any one of the following: cooling scenario, defrosting scenario, and fault scenario;

[0049] The second link state is determined based on at least one of the following: the second time point, the test scenario, and the communication data.

[0050] In some embodiments, when the test scenario is a cooling scenario, the communication data includes the third moment when the main control board forwards the message to the slave board, the target rotation speed and target duty cycle sent by the main control board to the slave board; the second processing module is specifically used for:

[0051] Based on the second and third time points, determine the forwarding delay status of the message forwarded from the main control board to the slave board; the forwarding delay status is either forwarding normal or forwarding timeout.

[0052] Based on the target rotational speed and target duty cycle, determine the data status of the communication data sent from the main control board to the slave board; the data status is either normal or abnormal.

[0053] If the forwarding delay status is normal and the data status is normal, then the second link status is determined to be normal.

[0054] In some embodiments, the second processing module is specifically used for:

[0055] Based on the second and third time points, determine the forwarding delay of the message from the main control board to the slave board;

[0056] If the forwarding delay is less than or equal to the second preset delay, the forwarding delay status is determined to be the normal forwarding status.

[0057] In some embodiments, the second processing module is specifically used for:

[0058] The data status is determined to be normal if the following conditions are met:

[0059] The target speed is within the preset speed range;

[0060] The target duty cycle is within the preset duty cycle range;

[0061] The absolute difference between the target speed and the previous speed is less than or equal to the preset difference; where the previous speed is the speed that the main control board previously sent to the slave board.

[0062] In some embodiments, when the test scenario is a defrosting scenario, the communication data includes a state switching instruction sent from the main control board to the slave board, the state switching instruction being used to indicate that the slave board's operating state is switched to a target operating state; the second processing module is specifically used for:

[0063] Determine at least one mutually exclusive state of the refrigerator under test in the defrosting scenario; each mutually exclusive state is the working state of the slave plate corresponding to the mutually exclusive state that is not allowed in the defrosting scenario.

[0064] If the target running state is included in at least one mutually exclusive state, the second link state is determined to be a second link anomaly.

[0065] In some embodiments, when the test scenario is a fault scenario, the communication data includes fault information sent by the refrigerator under test to the terminal and hardware protection commands sent by the main control board to the slave board; the second processing module is specifically used for:

[0066] If the fault information is the same as the preset fault information and the hardware protection command is the same as the preset command, the second link status is determined to be normal.

[0067] In some embodiments, the first processing module is specifically used for:

[0068] The communication delay between the refrigerator under test and the terminal is determined based on the first and second time points.

[0069] If the communication delay is greater than the first preset delay, the first link status is determined to be abnormal.

[0070] If the communication delay is less than or equal to the first preset delay, the first link status is determined to be normal.

[0071] In some embodiments, the second determining module is specifically used for:

[0072] If both the first link status and the second link status are normal, the communication link status is determined to be normal.

[0073] If the first link status is "first link abnormal" and / or the second link status is "second link abnormal", the communication link status is determined to be abnormal.

[0074] According to a third aspect of the present disclosure, a communication testing apparatus for a refrigerator is provided, comprising:

[0075] processor;

[0076] Memory used to store processor-executable instructions;

[0077] The processor executes instructions to implement the refrigerator's communication testing method as shown in the first aspect.

[0078] The refrigerator communication testing method and apparatus provided in this disclosure achieve fully automated communication testing by automatically scheduling the terminal to issue service instructions and collecting time stamps and interaction data between the refrigerator under test and its internal bus. Compared to manual refrigerator communication testing, this disclosure provides an automated communication testing method, reducing manual operation costs and improving the efficiency of communication testing. Furthermore, the refrigerator communication testing method provided in this disclosure independently detects the first link from the terminal to the refrigerator under test and the second link between the main control board and the slave board inside the refrigerator under test. This allows for a comprehensive determination of the communication link status of the refrigerator under test by combining the status of the first and second links, improving the accuracy of determining the communication link status.

[0079] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0080] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0081] Figure 1 This is a schematic diagram of an application scenario provided in this disclosure;

[0082] Figure 2 A flowchart illustrating a communication testing method for a refrigerator provided in an embodiment of this disclosure;

[0083] Figure 3 A schematic diagram of a process for determining the state of a second link, provided as an embodiment of this disclosure;

[0084] Figure 4 A schematic diagram of the structure of a communication testing device for a refrigerator provided in an embodiment of this disclosure;

[0085] Figure 5 This is a physical block diagram of a communication testing device for a refrigerator provided in an embodiment of this disclosure.

[0086] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0087] Some embodiments of this disclosure will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.

[0088] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0089] A refrigerator is a device that uses a refrigeration system to control the temperature of its internal cavity. With the development of IoT technology, refrigerators have evolved from simple refrigeration devices into complex appliances with functions such as remote control, food management, multi-device scenario linkage, and overall fault detection. The realization of these functions depends on the refrigerator's ability to communicate with other devices and within its own internal structure. In some scenarios, to ensure the refrigerator's reliability, it is necessary to test its communication capabilities.

[0090] In related technologies, the communication functions of the refrigerator under test can be tested manually. Specifically, testers can send various business commands to the refrigerator under test via a terminal based on preset test cases, and collect the serial port interaction logs of the refrigerator under test using serial port tools. Testers then determine the communication link status of the refrigerator under test based on the serial port interaction logs.

[0091] However, manually testing the communication functions of the refrigerator under test is inefficient. Furthermore, manual testing is prone to omissions and misjudgments, leading to low accuracy in determining the communication link status.

[0092] Based on this, this disclosure provides a communication testing method for refrigerators. The server automatically schedules the terminal to issue service commands and collects time stamps and interaction data with the internal bus of the refrigerator under test, achieving fully automated communication testing. Compared to manual refrigerator communication testing, this disclosure provides an automated communication testing method, reducing manual operation costs and improving the efficiency of communication testing for the refrigerator under test. Furthermore, the refrigerator communication testing method provided by this disclosure independently tests the first link from the terminal to the refrigerator under test and the second link between the main control board and the slave board inside the refrigerator under test. It can comprehensively determine the communication link status of the refrigerator under test by combining the status of the first link and the second link, improving the accuracy of determining the communication link status.

[0093] Figure 1 This is a schematic diagram illustrating one application scenario provided in this disclosure. Please refer to [link / reference]. Figure 1 The system includes a server 11, a terminal 12, and a refrigerator under test 13. The refrigerator under test 13 is equipped with a main control board 14 and a slave board 15. The server 11 establishes communication connections with both the terminal 12 and the refrigerator under test 13.

[0094] In practical applications, server 11 can send instruction information to terminal 12, which instructs terminal 12 to send a service command to refrigerator 13 under test. Upon receiving the instruction information, terminal 12 sends the service command to refrigerator 13 under test. The service command instructs the parallel execution of test tasks. Upon receiving the service command, refrigerator 13 under test controls main control board 14 and slave board 15 to execute the test task. Server 11 can collect first communication information between terminal 12 and refrigerator 13 under test, and second communication information between main control board 14 and slave board 15, and determine the communication link status of refrigerator 13 under test based on the first and second communication information.

[0095] It should be noted that, Figure 1 This is merely an example to illustrate one application scenario, and is not intended to limit the application scenario.

[0096] It should be noted that the execution subject in each embodiment of this disclosure can be a chip, chip module, processor, microprocessor, etc., or a device integrating the above-mentioned chips, chip modules, processors, or microprocessors, such as a server. The specific execution subject in each embodiment of this disclosure is not limited, and it can be selected and set according to actual needs. In the following embodiments, a server integrating the above-mentioned chips, chip modules, processors, or microprocessors is used as an example for description, which does not constitute a limitation on the actual execution subject.

[0097] The technical solutions of this disclosure and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will now be described with reference to the accompanying drawings.

[0098] Figure 2 This is a flowchart illustrating a communication testing method for a refrigerator provided in an embodiment of this disclosure. Figure 2 As shown, the process may include the following steps:

[0099] S201. The control terminal sends a service instruction to the refrigerator under test.

[0100] The server is a backend processing device that tests the communication link of the refrigerator under test and is the executing entity of this disclosure. The terminal is a front-end operating platform for the refrigerator under test. The terminal can be, for example, a mobile phone, a tablet computer, etc. The refrigerator under test is the subject under test for communication testing in this disclosure. In some embodiments, the refrigerator under test is equipped with a networking module to realize data interaction with the terminal and the server.

[0101] In some embodiments, the server establishes communication connections with both the terminal and the refrigerator under test. For example, the server can send instruction information to the terminal to instruct it to send service commands to the refrigerator under test. The server can also collect internal communication data from the refrigerator under test.

[0102] A service command is a standardized interactive message sent by a terminal to a refrigerator under test to trigger the refrigerator to perform a specific function. In some embodiments, service commands may include control commands such as temperature adjustment, mode switching, and fault detection.

[0103] In some embodiments, the server may send indication information to the terminal, which instructs the terminal to send a service command to the refrigerator under test. After receiving the indication information, the terminal sends the service command to the refrigerator under test according to the indication information.

[0104] S202, determine the first moment when the terminal sends the service instruction, the second moment when the refrigerator under test receives the service instruction, and the communication data of the refrigerator under test performing service processing based on the service instruction.

[0105] The first moment is the moment when the terminal sends the service instruction to the device under test. In some embodiments, the first moment can be represented in the form of a timestamp. The second moment is the moment when the refrigerator under test receives the service instruction; the second moment can also be represented in the form of a timestamp.

[0106] Communication data refers to the interactive messages generated by the serial port of the internal board of the refrigerator under test during business processing. In some embodiments, communication data may include the time when the interactive message was sent, the payload data of the interactive message, etc.

[0107] In some embodiments, after sending a service instruction to the refrigerator under test, the terminal can determine a first moment and send a first response message to the server based on the first moment. The first response message is used to instruct the terminal to send the service instruction to the refrigerator under test at the first moment. After receiving the service instruction, the refrigerator under test can determine a second moment and send a second response message to the server based on the second moment. The second response message is used to instruct the refrigerator under test to receive the service instruction at the second moment. During the service processing, the refrigerator under test can record communication data and send a third response message to the server after completing the service processing. The third response message is used to indicate that the service processing has been completed, and the third response message includes the communication data.

[0108] S203. Based on the first time and the second time, determine the first link status between the refrigerator under test and the terminal; the first link status is either normal or abnormal.

[0109] The first link status is used to indicate whether the communication link between the refrigerator under test and the terminal is normal. In some embodiments, the first link status is either "first link normal" or "first link abnormal". "First link normal" indicates that the communication link between the refrigerator under test and the terminal is normal. "First link abnormal" indicates that the communication link between the refrigerator under test and the terminal is abnormal.

[0110] In some embodiments, the server determines the first link status as follows: determining the communication delay between the refrigerator under test and the terminal based on a first time and a second time; determining the first link status as abnormal if the communication delay is greater than a first preset delay; and determining the first link status as normal if the communication delay is less than or equal to the first preset delay.

[0111] Communication latency is the time consumed from when a service command is sent from the terminal, relayed through the network, until the refrigerator under test fully receives it. In other words, communication latency is the network transmission delay between the refrigerator under test and the terminal, used to indicate the speed of data transmission between them. In some embodiments, a longer communication latency indicates slower data transmission between the terminal and the refrigerator under test; a shorter communication latency indicates faster data transmission. The first preset latency is a preset latency threshold, representing the maximum latency for normal communication between the terminal and the refrigerator under test.

[0112] In some embodiments, the server may determine the duration between the first moment and the second moment as the communication delay.

[0113] If the communication delay is greater than the first preset delay, it means that the communication delay has exceeded the maximum time delay for normal communication between the terminal and the refrigerator under test, that is, the communication link between the terminal and the refrigerator under test is abnormal. Therefore, the server determines the first link status as the first link abnormal.

[0114] If the communication delay is less than or equal to the first preset delay, it means that the communication delay is less than the maximum delay for normal communication between the terminal and the refrigerator under test, that is, the communication link between the terminal and the refrigerator under test is normal, so the server determines the first link status as the first link is normal.

[0115] S204. Based on the second moment, business instructions and communication data, determine the status of the second link between the main control board and the slave board inside the refrigerator under test; the status of the second link is either normal or abnormal.

[0116] The main control board is the control center of the refrigerator under test. On one hand, the main control board can receive service commands sent by the terminal and complete command parsing. On the other hand, the main control board can serve as the scheduling core of the half-duplex serial bus in the refrigerator under test, used to send service frames to each slave board according to the service commands, and to summarize the response data, operating status and fault information of each slave board.

[0117] A slave board is a functional sub-circuit board mounted on the same serial bus and under the unified management of the main control board. In some embodiments, a slave board may include a frequency converter slave board, a display slave board, etc. In some embodiments, a slave board can receive service frames sent by the main control board and perform corresponding hardware actions according to the service frames.

[0118] In some embodiments, the second link status is used to indicate whether the communication link between the main control board and the slave board inside the refrigerator under test is normal. The second link status is either "second link normal" or "second link abnormal." "Second link normal" indicates that the communication link between the main control board and the slave board is normal. "Second link abnormal" indicates that the communication link between the main control board and the slave board is abnormal.

[0119] Since the communication data includes the forwarding time of the interaction message from the main control board to the slave board and the load data of the interaction message, the server can determine the test scenario of the refrigerator under test at the current time according to the business instructions, and determine the preset data corresponding to the test scenario.

[0120] The server can determine the forwarding latency of the main control board's interactive messages based on the second time point and the forwarding time point, and determine whether the main control board's forwarding latency is normal based on the latency. The server can also determine whether the interactive messages forwarded by the main control board are normal based on load data and preset data. If the forwarding latency and interactive messages are normal, the server determines the second link status as normal. If the forwarding latency and / or interactive messages are abnormal, the server determines the second link status as abnormal.

[0121] S205. Determine the communication link status of the refrigerator under test based on the first link status and the second link status; the communication link status is either normal or abnormal.

[0122] The communication link status is used to indicate whether the communication function of the refrigerator under test is normal. In some embodiments, the communication link status is either normal or abnormal. A normal communication link status indicates that the communication function of the refrigerator under test is normal. An abnormal communication link status indicates that the communication function of the refrigerator under test is abnormal.

[0123] In some embodiments, the server may determine the communication link status as follows: if the first link status is normal and the second link status is normal, the communication link status is determined to be normal; if the first link status is abnormal and / or the second link status is abnormal, the communication link status is determined to be abnormal.

[0124] If both the first and second links are in normal condition, it indicates that the communication link between the refrigerator under test and the terminal is normal, and the communication link between the main control board and the slave board inside the refrigerator under test is also normal. Therefore, in this case, the server can determine that the communication link status is normal.

[0125] If the first link status is "first link failure" and / or the second link status is "second link failure," it indicates that the communication link between the refrigerator under test and the terminal is abnormal, and / or the communication link between the main control board and the slave board within the refrigerator under test is abnormal. Therefore, in this situation, the server can determine that the communication link status is abnormal.

[0126] exist Figure 2In the illustrated embodiment, the server automatically schedules the terminal to issue service instructions and collects time stamps and interaction data with the internal bus of the refrigerator under test to achieve fully automated communication testing. Compared with manual communication testing of refrigerators, this disclosure provides an automated communication testing method, reducing manual operation costs and improving the efficiency of communication testing of the refrigerator under test. Furthermore, the refrigerator communication testing method provided by this disclosure independently detects the first link from the terminal to the refrigerator under test and the second link between the main control board and the slave board inside the refrigerator under test. It can comprehensively determine the communication link status of the refrigerator under test by combining the status of the first link and the second link, improving the accuracy of determining the communication link status.

[0127] Based on the above embodiments, the following is combined with Figure 3 The method for determining the second link state in the embodiments of this disclosure will be described.

[0128] Figure 3 This is a schematic diagram of a process for determining the state of a second link, provided as an embodiment of this disclosure. Figure 3 As shown, the process may include the following steps:

[0129] S301. Based on the business instructions, determine the test scenario of the refrigerator under test at the current moment; the test scenario includes any one of the following: cooling scenario, defrosting scenario, and fault scenario.

[0130] The test scenarios are classifications of the refrigerator under test under different operating conditions, used to simulate the high-load working state of the refrigerator under test in daily use. In some embodiments, the test scenarios may include any one of the following: cooling scenario, defrosting scenario, and fault scenario. Specifically, the cooling scenario corresponds to the refrigeration operation mode of the refrigerator under test. The defrosting scenario corresponds to the automatic defrosting mode of the refrigerator under test. The fault scenario corresponds to the simulated fault reporting mode of the refrigerator under test.

[0131] In some embodiments, if the business instruction is any one of setting the refrigeration temperature, setting the freezing temperature, or activating high-power cooling, the server determines the test scenario as a cooling scenario. If the business instruction is an instruction to trigger defrosting, the server determines the test scenario as a defrosting scenario. If the business instruction is any one of an instruction such as fault self-check or reporting fault information, the server determines the test scenario as a fault scenario.

[0132] S302. Determine the second link state based on at least one of the second time point, the test scenario, and the communication data.

[0133] In some embodiments, when the test scenario is a cooling scenario, the communication data includes the third moment when the main control board forwards the message to the slave board, the target speed, and the target duty cycle sent by the main control board to the slave board. The third moment is the time when the main control board forwards the message to the slave board. The third moment can be represented in the form of a timestamp. The target speed is data sent by the main control board to the inverter slave board in the cooling scenario to indicate the compressor's operating speed. The target duty cycle is data sent by the main control board to the fan slave board in the cooling scenario to indicate the fan's operating speed. In some embodiments, the target speed and target duty cycle are included in the message forwarded by the main control board to the slave board.

[0134] In this scenario, the server can determine the second link status as follows: Based on the second and third time points, determine the forwarding delay status of the message forwarded from the main control board to the slave board; the forwarding delay status is either normal or timed out. Based on the target rotation speed and target duty cycle, determine the data status of the communication data sent from the main control board to the slave board; the data status is either normal or abnormal. If the forwarding delay status is normal and the data status is normal, determine the second link status as normal. If the forwarding delay status is abnormal and / or the data status is abnormal, determine the second link status as abnormal.

[0135] In some embodiments, the server determines the forwarding delay status as follows: based on the second time and the third time, the forwarding delay of the main control board forwarding the message to the slave board is determined; if the forwarding delay is less than or equal to the second preset delay, the forwarding delay status is determined to be a normal forwarding status; if the forwarding delay is greater than the second preset delay, the forwarding delay status is determined to be a forwarding abnormal status.

[0136] The forwarding latency status indicates whether the main control board's response speed to a service instruction is normal after receiving it. In some embodiments, the forwarding latency status is either a normal forwarding status or a forwarding timeout status. A normal forwarding status indicates that the main control board's response speed to a service instruction is normal. A forwarding timeout status indicates that the main control board's response speed to a service instruction is abnormal.

[0137] The data status is used to indicate whether there are any anomalies such as data corruption, packet loss, or tampering in the data sent from the main control board to the slave board based on business instructions. In some embodiments, the data status is either a normal data status or a data anomaly status. A normal data status indicates that the data sent from the main control board to the slave board does not contain any anomalies such as data corruption, packet loss, or tampering. A data anomaly status indicates that the data sent from the main control board to the slave board contains any anomalies such as data corruption, packet loss, or tampering.

[0138] Forwarding latency is used to indicate how quickly the main control board responds to service commands. In some embodiments, a longer forwarding latency indicates a slower response speed of the main control board to service commands; a shorter forwarding latency indicates a faster response speed. The second preset latency is the maximum latency for the main control board to respond to service commands under normal circumstances.

[0139] In some embodiments, the server can determine the delay between the second and third moments as the forwarding delay. If the forwarding delay is less than or equal to a second preset delay, it indicates that the forwarding delay is less than the maximum delay required for the main control board to respond to service commands under normal circumstances; therefore, the server determines the forwarding delay state as a normal forwarding state. If the forwarding delay is greater than the second preset delay, it indicates that the forwarding delay has exceeded the maximum delay required for the main control board to respond to service commands under normal circumstances; therefore, the server determines the forwarding delay state as an abnormal forwarding state.

[0140] In some embodiments, the server determines the data status in the following ways: the data status is determined to be normal if the following conditions are met: the target speed is within a preset speed range; the target duty cycle is within a preset duty cycle range; the absolute difference between the target speed and the previous speed is less than or equal to a preset difference; wherein, the previous speed is the speed previously sent by the main control board to the slave board.

[0141] The preset speed range is the upper and lower limits of the compressor's safe operating speed, calibrated within the server. The preset duty cycle range is the upper and lower limits of the fan's safe operating duty cycle, calibrated within the server. The previous speed is the compressor speed sent from the main control board to the inverter slave board via the internal serial bus before the main control board sends the target speed; it represents the compressor's speed at the current moment. The speed difference is the difference between the target speed and the previous speed, representing the abrupt change in the compressor's speed from the current moment to the target speed. The preset difference value is the pre-set maximum allowable adjustment range of the compressor speed in a single operation.

[0142] In some embodiments, the server can determine whether the target speed is within a preset speed range. If the target speed is within the preset speed range, it indicates that the target speed is the safe operating speed of the compressor. If the target speed is not within the preset speed range, it indicates that the target speed is not the safe operating speed of the compressor.

[0143] The server can determine whether the target duty cycle is within the preset duty cycle range. If the target duty cycle is within the preset duty cycle range, it means that the target duty cycle is the safe operating duty cycle for the wind turbine. If the target duty cycle is not within the preset duty cycle range, it means that the target duty cycle is not the safe operating duty cycle for the wind turbine.

[0144] In some embodiments, to ensure safe compressor operation, changes in compressor speed must follow a smooth "climbing sequence" rule, meaning the sudden increase or decrease in compressor speed cannot exceed the maximum allowable adjustment range. Therefore, the server can determine the absolute difference between the target speed and the previous speed, and whether this absolute difference is less than or equal to a preset difference. If the absolute difference is less than or equal to the preset difference, it indicates that the sudden increase in compressor speed from the current moment to the target speed is less than or equal to the maximum allowable adjustment range for a single compressor speed change. If the absolute difference is greater than the preset difference, it indicates that the sudden increase in compressor speed from the current moment to the target speed is greater than the maximum allowable adjustment range for a single compressor speed change.

[0145] In summary, if the target speed is within the preset speed range, the target duty cycle is within the preset duty cycle range, and the absolute difference is less than or equal to the preset difference, it indicates that the target speed is the safe operating speed of the compressor, the target duty cycle is the safe operating duty cycle of the fan, and the sudden change in the compressor speed from the current moment to the target speed is less than or equal to the maximum allowable adjustment range of the compressor speed in a single operation. Therefore, the server determines the data status as normal.

[0146] If at least one of the following conditions exists: the target speed is not within the preset speed range, the target duty cycle is not within the preset duty cycle, or the absolute difference is less than or equal to a preset difference, it indicates that the refrigerator under test has at least one of the following abnormal conditions: the target speed is not the safe operating speed of the compressor, the target duty cycle is not the safe operating duty cycle of the fan, and the sudden change in the compressor speed from the current moment to the target speed is greater than the maximum allowable adjustment range of the compressor speed in a single operation. Therefore, the server determines the data status as an abnormal data state.

[0147] In some embodiments, when the forwarding delay status is normal and the data status is normal, it indicates that the main control board's response speed to the service command is normal, and the data sent by the main control board to the slave board does not have any abnormalities such as data corruption, packet loss, or tampering. Therefore, the server determines that the second link status is normal.

[0148] If the forwarding delay status is a forwarding abnormal status, and / or the data status is a data abnormal status, it indicates that the main control board's response speed to the service command is abnormal, and / or the data sent by the main control board to the slave board has abnormalities such as data corruption, packet loss, and tampering. Therefore, the server determines that the second link status is a second link abnormality.

[0149] In some embodiments, when the test scenario is a defrosting scenario, the communication data includes a state switching instruction sent from the master control board to the slave board. This state switching instruction indicates that the slave board's operating state should be switched to a target operating state. Specifically, the state switching instruction is indication data encapsulated by the master control board in a message forwarded to the slave board, instructing the slave board to perform an operating state change. The slave board's operating state is its current operating state. The target operating state is the operating state the slave board will be in after the state switch.

[0150] In this case, the server can determine the second link status as follows: determine at least one mutually exclusive state of the refrigerator under test in the defrosting scenario; each mutually exclusive state is the working state of the slave board corresponding to the mutually exclusive state that is not allowed in the defrosting scenario; if the target running state is included in at least one mutually exclusive state, the second link status is determined to be abnormal; if the target running state is not included in at least one mutually exclusive state, the second link status is determined to be normal.

[0151] At least one mutually exclusive state is a prohibited operation state corresponding to each slave board in the defrosting mode of the refrigerator under test. For example, in the defrosting mode of the refrigerator under test, at least one mutually exclusive state may include starting the compressor. That is, in the defrosting mode of the refrigerator under test, the main control board is not allowed to send the "start compressor" command to the inverter slave board.

[0152] In some embodiments, the server stores at least one mutually exclusive state of the refrigerator under test in a defrosting scenario. The server can determine at least one mutually exclusive state in the storage module. The server can determine whether the at least one mutually exclusive state includes a target operating state. If the at least one mutually exclusive state includes the target operating state, it means that the operating state of the slave board needs to be switched to a mutually exclusive control state that is prohibited in the defrosting scenario in advance, and therefore the second link is determined to be abnormal; if the at least one mutually exclusive state does not include the target operating state, it means that the operating state of the slave board needs to be switched to a normal operating state that is allowed in the defrosting scenario, and therefore the server determines that the second link is normal.

[0153] In some embodiments, when the test scenario is a fault scenario, the communication data includes fault information sent by the refrigerator under test to the terminal and hardware protection commands sent by the main control board to the slave board. The fault information indicates the cause of a hardware or communication fault identified by the refrigerator under test during self-testing. Fault information may include, for example, information such as main control board forwarding timeout, compressor overcurrent, or defrosting abnormality. Hardware protection commands are control commands generated by the main control board to prevent fault escalation and protect electrical components. Hardware protection commands may include, for example, compressor stop commands and heating module power-off commands.

[0154] In this case, the server can determine the status of the second link as follows: if the fault information is the same as the preset fault information and the hardware protection command is the same as the preset command, the second link status is determined to be normal; if the fault information is different from the preset fault information and / or the hardware protection command is different from the preset command, the second link status is determined to be abnormal.

[0155] The preset fault information is a preset fault message that corresponds one-to-one with the fault test scenario. The preset command is the command sent by the master control board to the slave board under the corresponding fault test scenario.

[0156] In some embodiments, if the fault information is the same as the preset fault information and the hardware protection instruction is the same as the preset instruction, it indicates that the fault message reported by the refrigerator under test to the server is accurate and error-free, and the main control board can generate accurate protection instructions based on the fault logic and send them completely to the corresponding slave board through the internal serial bus. Therefore, the server determines that the second link status is normal.

[0157] If the fault information differs from the preset fault information, and / or the hardware protection command differs from the preset command, it indicates that the fault message reported by the refrigerator under test to the server is incorrect, and / or the protection command generated by the main control board based on the fault logic is incorrect. Therefore, the server determines that the second link status is abnormal.

[0158] exist Figure 3 In the illustrated embodiment, the refrigerator under test automatically divides the real-world operating conditions into three test scenarios—cooling, defrosting, and fault—based on business commands, and applies differentiated internal link verification rules for each scenario. In the cooling scenario, the timeliness of internal communication response and the accuracy of data transmission are verified from multiple dimensions, including message forwarding delay, the rationality of compressor speed and duty cycle parameters, and speed smoothness. In the defrosting scenario, communication risks caused by abnormal state transitions under load interference are avoided by limiting the mutually exclusive states of slave boards under restricted operating conditions. In the fault scenario, the reliability of critical fault command transmission is verified by comparing the reported fault information with the issued hardware protection commands and preset standards. This achieves scenario-based, full-coverage, and condition-fitting automated detection of the serial communication link between the main control board and slave boards inside the refrigerator under test. This solves the problem of one-sided results from single static scenario tests and the inability to simulate load interference, thereby improving the accuracy of determining the second link status and ultimately improving the accuracy of determining the communication link status.

[0159] Figure 4 This is a schematic diagram of the structure of a communication testing device for a refrigerator provided in an embodiment of this disclosure. Figure 4 As shown, the communication testing device 40 for a refrigerator provided in this embodiment includes:

[0160] Control module 41 is used to control the terminal to send business instructions to the refrigerator under test;

[0161] The first determining module 42 is used to determine the first moment when the terminal sends the service instruction, the second moment when the refrigerator under test receives the service instruction, and the communication data of the refrigerator under test performing service processing based on the service instruction.

[0162] The first processing module 43 is used to determine the first link status between the refrigerator under test and the terminal based on the first time and the second time; the first link status is either the first link is normal or the first link is abnormal.

[0163] The second processing module 44 is used to determine the status of the second link between the main control board and the slave board in the refrigerator under test based on the second time, business instructions and communication data; the status of the second link is either normal or abnormal.

[0164] The second determining module 45 is used to determine the communication link status of the refrigerator under test based on the first link status and the second link status; the communication link status is either normal or abnormal.

[0165] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method. The implementation principle and technical effect are similar, and will not be elaborated in detail here.

[0166] Figure 5 This is a physical block diagram of a communication testing device for a refrigerator provided in an embodiment of this disclosure. Figure 5 As shown, the communication testing device 50 for the refrigerator includes:

[0167] Processor 51;

[0168] Memory 52 is used to store processor-executable instructions;

[0169] The processor executes instructions to implement the refrigerator communication testing method shown in the above method embodiment.

[0170] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method. The implementation principle and technical effect are similar, and will not be elaborated in detail here.

[0171] This disclosure provides a non-transitory computer-readable storage medium that, when executed by a processor, enables the processor to perform a communication testing method for a refrigerator.

[0172] The non-transitory computer-readable storage medium provided in this disclosure has been described in detail in the embodiments of the relevant method, and its implementation principle and technical effect are similar, so it will not be described in detail here.

[0173] This disclosure provides a computer program product, including:

[0174] A computer program, when executed by a processor, implements the communication testing method for the refrigerator shown in the above-described method embodiment.

[0175] The computer program product provided in this disclosure has been described in detail in the embodiments of the relevant method, and its implementation principle and technical effect are similar, so it will not be described in detail here.

[0176] It should be understood that, unless otherwise specifically indicated, features of various embodiments of this disclosure described herein can be combined with each other. As used herein, the term “and / or” includes any one of the relevant listed items and any combination of any two or more; similarly, “at least one of…” includes any one of the relevant listed items and any combination of any two or more.

[0177] It should be understood that, unless otherwise expressly specified and limited, the terms "joining," "attaching," "installing," "connecting," "linking," "fixing," etc., used in the embodiments of this disclosure should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms herein according to the specific circumstances.

[0178] Although terms such as “first,” “second,” and “third” may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Rather, these terms are used only to distinguish one component, part, region, layer, or section from another. Therefore, without departing from the teachings of the examples described herein, the first component, part, region, layer, or section mentioned in the examples may also be referred to as the second component, part, region, layer, or section. Furthermore, the terms “first” and “second” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include at least one of that feature. In the description herein, “a plurality” means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0179] It should be understood that spatial relative terms, such as “above,” “upper,” “below,” and “lower,” are used herein to describe the relationship between one element and another shown in the figures. In addition to the orientation depicted in the figures, these spatial relative terms are also intended to encompass different orientations of the device in use or operation. For example, if the device in the figures is flipped, an element described as “above” or “upper” relative to another element would be “below” or “lower” relative to that other element. Thus, depending on the spatial orientation of the device, the term “above” encompasses both above and below orientations. Devices may have other orientations (e.g., rotated 90 degrees or in other orientations), and the spatial relative terms used herein should be interpreted accordingly.

[0180] Furthermore, the term “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term “exemplary” is intended to present the concept in a concrete manner. As used herein, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless otherwise specified or clear from the context, “X applies A or B” is intended to mean any of the natural inclusive arrangements. That is, “X applies A or B” satisfies any of the foregoing instances if X applies A; X applies B; or both X applies A and B. Additionally, unless otherwise specified or clear from the context to refer to the singular form, the articles “a” and “an” as used in this disclosure and the appended claims are generally understood to mean “one or more.”

[0181] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term “including.”

[0182] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0183] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A communication testing method for a refrigerator, characterized in that, Applied to a server, the server establishes communication connections with the terminal and the refrigerator under test, and the method includes: The terminal is controlled to send service instructions to the refrigerator under test. The first moment when the terminal sends the service instruction, the second moment when the refrigerator under test receives the service instruction, and the communication data of the refrigerator under test performing service processing based on the service instruction are determined. Based on the first time point and the second time point, the first link status between the refrigerator under test and the terminal is determined; the first link status is either normal or abnormal. Based on the second time point, the service instruction, and the communication data, the status of the second link between the main control board and the slave board inside the refrigerator under test is determined; the second link status is either normal or abnormal. Based on the first link status and the second link status, the communication link status of the refrigerator under test is determined; the communication link status is either normal or abnormal.

2. The method according to claim 1, characterized in that, The step of determining the second link status between the main control board and the slave board inside the refrigerator under test based on the second time point, the service instruction, and the communication data includes: According to the business instruction, the test scenario of the refrigerator under test at the current moment is determined; the test scenario includes any one of the following: cooling scenario, defrosting scenario, and fault scenario; The second link state is determined based on at least one of the second time point, the test scenario, and the communication data.

3. The method according to claim 2, characterized in that, When the test scenario is the cooling scenario, the communication data includes the third moment when the main control board forwards the message to the slave board, the target rotation speed and the target duty cycle sent by the main control board to the slave board; Determining the second link state based on at least one of the second time point, the test scenario, and the communication data includes: Based on the second time point and the third time point, the forwarding delay status of the message forwarded from the main control board to the slave board is determined; the forwarding delay status is either a normal forwarding status or a forwarding timeout status. Based on the target rotational speed and the target duty cycle, the data status of the communication data sent from the main control board to the slave board is determined; the data status is either normal or abnormal. If the forwarding delay state is the forwarding normal state and the data state is the data normal state, then the second link state is determined to be the second link normal.

4. The method according to claim 3, characterized in that, The step of determining the forwarding delay status of the message forwarded from the main control board to the slave board based on the second time and the third time includes: Based on the second time point and the third time point, the forwarding delay of the message from the main control board to the slave board is determined; If the forwarding delay is less than or equal to the second preset delay, the forwarding delay state is determined to be the normal forwarding state.

5. The method according to claim 3, characterized in that, The step of determining the data status of the communication data sent from the main control board to the slave board based on the target rotational speed and the target duty cycle includes: The data status is determined to be in a normal state if the following conditions are met: The target rotational speed is within a preset rotational speed range; The target duty cycle is located within a preset duty cycle range; The absolute difference between the target speed and the previous speed is less than or equal to a preset difference; wherein, the previous speed is the speed that the main control board previously sent to the slave board.

6. The method according to claim 2, characterized in that, When the test scenario is the defrosting scenario, the communication data includes a state switching instruction sent by the main control board to the slave board, the state switching instruction being used to indicate that the running state of the slave board be switched to the target running state; Determining the second link state based on at least one of the second time point, the test scenario, and the communication data includes: Determine at least one mutually exclusive state of the refrigerator under test in the defrosting scenario; each mutually exclusive state is the working state of the slave plate corresponding to the mutually exclusive state that is not allowed in the defrosting scenario. If the target operating state is included in at least one mutually exclusive state, the second link state is determined to be the second link abnormal.

7. The method according to claim 2, characterized in that, When the test scenario is the fault scenario, the communication data includes fault information sent by the refrigerator under test to the terminal and hardware protection instructions sent by the main control board to the slave board. Determining the second link state based on at least one of the second time point, the test scenario, and the communication data includes: If the fault information is the same as the preset fault information and the hardware protection instruction is the same as the preset instruction, the second link status is determined to be normal.

8. The method according to claim 1 or 2, characterized in that, Determining the first link state between the refrigerator under test and the terminal based on the first time point and the second time point includes: The communication delay between the refrigerator under test and the terminal is determined based on the first time and the second time. If the communication delay is greater than a first preset delay, the first link status is determined to be an abnormal link. If the communication delay is less than or equal to the first preset delay, the first link status is determined to be normal.

9. The method according to claim 1 or 2, characterized in that, Determining the communication link status of the refrigerator under test based on the first link status and the second link status includes: If the first link status is "the first link is normal" and the second link status is "the second link is normal", then the communication link status is determined to be the normal status. If the first link status is "first link abnormal" and / or the second link status is "second link abnormal", then the communication link status is determined to be the abnormal status.

10. A communication testing device for a refrigerator, characterized in that, The device includes: processor; Memory used to store processor-executable instructions; The processor executes the communication testing method for the refrigerator as described in any one of claims 1 to 9.