Load fault detection method and apparatus, home appliance, and storage medium
By communicating between the main control unit and the load unit in the electrical system and utilizing the interaction of query data frames and response data frames, fault codes can be accurately identified and displayed, solving the problem of low communication efficiency between the electrical load and the main control unit and improving the efficiency of fault identification and repair.
Patent Information
- Application Number
- CN202211243686.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2042-10-10
AI Technical Summary
In existing technologies, the communication efficiency between electrical loads and the main control unit is low, making it impossible to accurately identify faulty loads and thus hindering the effective repair of electrical faults.
The main control unit and multiple load units are connected to the communication bus respectively. Query data frames are sent to the target load unit based on a preset query interval. Response data frames are received and parsed to determine fault information. Fault codes are determined and displayed using a preset instruction mapping table.
It enables accurate acquisition of fault information of each load unit connected to the communication bus, improves the efficiency of fault identification and acquisition of the communication bus, and ensures effective repair of electrical faults.
Smart Images

Figure CN115622923B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a load fault detection method, device, household appliance, and storage medium. Background Technology
[0002] With social progress and the development of science and technology, electrical appliances have gradually become common in people's lives. However, due to the low communication efficiency between electrical loads and the main control unit, existing technologies cannot accurately identify faulty load information, resulting in an inability to effectively repair electrical appliance faults.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide a load fault detection method, device, household appliance, and storage medium, aiming to solve the technical problem of low communication efficiency between the load and the main control unit in the prior art, which makes it impossible to accurately identify the information of the faulty load, resulting in the inability to effectively repair the faults of the electrical appliances.
[0005] To achieve the above objectives, the present invention provides a load fault detection method, wherein the load fault detection method is applied to a main control unit, and the main control unit and multiple load units are respectively connected to a communication bus;
[0006] The load fault detection method includes:
[0007] Identify the target load unit to be queried in each load unit;
[0008] A query data frame is sent to the target load unit based on a preset query interval, so that the target load unit can send back a response data frame based on the query data frame.
[0009] The fault information corresponding to the target load unit is determined based on the received response data frame.
[0010] Optionally, the load unit includes a load driver board and a load; sending query data frames to the target load unit based on a preset query interval includes:
[0011] Obtain the load address corresponding to the target load of the target load unit;
[0012] Generate a query data frame based on the load address and the preset frame format;
[0013] The query data frame is sent to the target load driver board of the target load unit based on a preset query interval.
[0014] Optionally, generating a query data frame based on the load address and a preset frame format includes:
[0015] Obtain the query information for the target load;
[0016] Based on the information to be queried, a fault query instruction is determined using a preset instruction mapping table;
[0017] A query data frame is generated based on the fault query instruction, the load address, and the preset frame format.
[0018] Optionally, determining the fault information corresponding to the target load unit based on the received response data frame includes:
[0019] Parse the received response data frame;
[0020] The response command fed back by the target load driver board of the target load unit is determined based on the analysis results;
[0021] Query the preset instruction mapping table according to the response instruction;
[0022] The fault information of the target load of the target load unit is determined based on the query results.
[0023] Optionally, determining the response command fed back by the target load driver board of the target load unit based on the parsing result includes:
[0024] The command to be verified in the response data frame is obtained based on the parsing results;
[0025] Obtain the query instruction from the query data frame;
[0026] The query instruction is used to verify the instruction to be verified, and the verification result is used to determine whether the instruction to be verified is consistent with the query instruction.
[0027] If the instruction to be verified is consistent with the query instruction, then the response data is extracted from the parsing result, and the response instruction fed back by the target load driver board of the target load unit is determined based on the response data.
[0028] Optionally, if the instruction to be verified is consistent with the query instruction, then extracting response data from the parsing result and determining the response instruction fed back by the target load driver board of the target load unit based on the response data includes:
[0029] If the instruction to be verified is consistent with the query instruction, then the header of the frame to be verified in the response data frame is obtained according to the parsing result;
[0030] Obtain the query frame header from the query data frame;
[0031] Verify whether the header of the frame to be verified is consistent with the header of the query frame;
[0032] If the header of the frame to be verified is consistent with the header of the query frame, then the response data is extracted from the parsing result, and the response command fed back by the target load driver board of the target load unit is determined based on the response data.
[0033] Optionally, the bus communication system further includes: a display unit connected to the communication bus;
[0034] After determining the fault information corresponding to the target load unit based on the received response data frame, the method further includes:
[0035] Obtain the load address corresponding to the target load of the target load unit;
[0036] Based on the fault information and the load address, the fault code corresponding to the target load is determined through a preset fault code mapping table;
[0037] The fault code is sent to the display unit so that the display unit displays the fault code.
[0038] Furthermore, to achieve the above objectives, the present invention also proposes a load fault detection device, the load fault detection device comprising:
[0039] The load determination module is used to determine the target load unit to be queried in each load unit;
[0040] The data frame sending module is used to send a query data frame to the target load unit based on a preset query interval, so that the target load unit can send back a response data frame based on the query data frame;
[0041] The fault query module is used to determine the fault information corresponding to the target load unit based on the received response data frame.
[0042] Furthermore, to achieve the above objectives, the present invention also proposes a home appliance comprising: a memory, a processor, and a load fault detection program stored in the memory and executable on the processor, the load fault detection program being configured to implement the steps of the load fault detection method as described above.
[0043] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a load fault detection program, which, when executed by a processor, implements the steps of the load fault detection method as described above.
[0044] This invention connects a main control unit and multiple load units to a communication bus. The main control unit identifies the target load unit to be queried among the load units and sends a query data frame to the target load unit based on a preset query interval. The target load unit then sends a response data frame based on the query data frame. The fault information corresponding to the target load unit is determined based on the received response data frame. Because this invention sends query data frames to the target load unit based on a preset query interval and receives response data frames from the target load unit based on the query data frame, and thus determines the response data frame based on the response data frame, it accurately obtains the fault information of each load unit connected to the communication bus, effectively improving the fault identification and acquisition efficiency of the communication bus. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of the structure of a home appliance in the hardware operating environment involved in the embodiments of the present invention;
[0046] Figure 2 This is a flowchart illustrating the first embodiment of the load fault detection method of the present invention;
[0047] Figure 3 This is a schematic diagram of the bus communication system structure of the first embodiment of the load fault detection method of the present invention;
[0048] Figure 4 This is a flowchart illustrating the second embodiment of the load fault detection method of the present invention;
[0049] Figure 5 This is a schematic diagram of the structure of the query data frame in the second embodiment of the load fault detection method of the present invention;
[0050] Figure 6 This is a schematic diagram of the structure of the response data frame in the second embodiment of the load fault detection method of the present invention;
[0051] Figure 7 This is a flowchart illustrating the third embodiment of the load fault detection method of the present invention;
[0052] Figure 8 This is a structural block diagram of the first embodiment of the load fault detection device of the present invention.
[0053] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0054] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0055] Reference Figure 1 , Figure 1This is a schematic diagram of the structure of a home appliance in the hardware operating environment involved in the embodiments of the present invention.
[0056] like Figure 1 As shown, the home appliance may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0057] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the appliance and may include more or fewer parts than shown, or combine certain parts, or have different arrangements of parts.
[0058] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a load fault detection program.
[0059] exist Figure 1 In the home appliance shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the home appliance of the present invention can be set in the home appliance, and the home appliance calls the load fault detection program stored in the memory 1005 through the processor 1001 and executes the load fault detection method provided in the embodiment of the present invention.
[0060] This invention provides a load fault detection method, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of a load fault detection method according to the present invention.
[0061] In this embodiment, the load fault detection method is applied to the main control unit, which and multiple load units are respectively connected to a communication bus. The load fault detection method includes the following steps:
[0062] Step S10: Determine the target load unit to be queried in each load unit.
[0063] It should be understood that the execution subject of the method in this embodiment may be a main control unit with data processing, network communication and program running functions, including but not limited to a communication board or main control board, or other devices or equipment that can achieve the same or similar functions. The above-mentioned main control unit is used as an example for explanation here.
[0064] It should be noted that the main control unit can be the main control unit in a bus communication system, as shown in the reference. Figure 3 , Figure 3 This is a schematic diagram of a bus communication system. The bus communication system includes: one or more adapter boards, a main control unit, and at least one load unit. The main control unit and the load unit are respectively connected to the communication bus through the adapter board to establish a connection between the main control unit and the load unit.
[0065] The main control unit includes a main control board, which is connected to the adapter board via a first asynchronous transceiver. The load unit includes a load and a load driver board corresponding to the load. The load is connected to the load driver board, and the load driver board is connected to the adapter board via a second asynchronous transceiver. For example, the load may include a fan, damper, and electric valve, etc., and the load driver board may include a fan driver board, damper driver board, and electric valve driver board, etc. The first, second, and third asynchronous transceivers may be Universal Asynchronous Receiver / Transmitter (UART).
[0066] The bus communication system further includes a display unit, which is connected to the communication bus via the adapter board to establish a connection between the display unit and the main control unit; the display unit includes a display board, which is connected to the adapter board via a third asynchronous transceiver.
[0067] It should be understood that the aforementioned bus communication system adopts a single-bus structure, with both the main control board and the loads (e.g., fans, dampers, lighting fixtures, electric valves, etc.) connected to the communication bus. A master-slave communication mode is used, with the main control board as the master and the loads as slaves. The main control board communicates with the adapter board via a UART, and then is connected to the communication bus via a single wire. Each load is driven by a corresponding load driver board, which communicates with the adapter board via a UART port, and then achieves single-wire communication with the communication bus through the adapter board. Each load transmits its own operating information feedback signals to the load driver board, thereby improving the communication efficiency between the main control unit and the loads and enabling the effective transmission of load fault information.
[0068] It should be noted that the target load unit can be any load unit connected to the communication bus to which the main control unit is connected, and the target load unit can be a load unit with an operational fault. The load driver board in the load unit determines whether the load is malfunctioning by using the corresponding load's action feedback signal. If it is malfunctioning, it sends information back to the main control unit.
[0069] Step S20: Send a query data frame to the target load unit based on a preset query interval, so that the target load unit can send back a response data frame based on the query data frame.
[0070] It should be noted that the preset query interval can be the time interval for querying each load unit connected to the communication bus that the main control unit has set in advance. For example, the preset query interval can be that the main control unit sends query data frames to each load every 30 seconds.
[0071] The aforementioned query data frame can be a data frame containing the load address of the target load unit to be queried and a fault query command. The query data frame may include a frame header, frame length, load address, fault query command, and checksum. The aforementioned response data frame can be a data frame containing response information replied by the load unit based on the query data frame sent by the master control unit. The response data frame may include a frame header, frame length, receive command, response content, and checksum. The frame header, frame length, and checksum in the response data frame are consistent with those in the query data frame.
[0072] Step S30: Determine the fault information corresponding to the target load unit based on the received response data frame.
[0073] It should be noted that the fault information can be obtained by the target load driver board of the target load unit through obtaining the target load's operating information, obtaining the target load's fault information based on the operating information, writing the fault information into a response data frame, and then sending it to the main control unit; the main control unit parses the received response data frame, and thus determines the fault information corresponding to the target load unit based on the parsing result.
[0074] It should be understood that after the main control unit determines the fault information corresponding to the target load unit, it determines the fault code corresponding to the target load by querying the preset fault code mapping table according to the load information and load address, and sends the fault code to the display board. The display unit then displays the fault codes one by one in sequence (for example, fan fault report F1, electric valve fault report F2, etc.).
[0075] This embodiment sends query data frames to the target load unit to be queried based on a preset query interval, and receives response data frames from the target load unit based on the query data frames. Thus, the query data frame feedback response data frame is determined based on the response data frame, realizing communication between the main control unit and the load unit, accurately obtaining fault information of each load unit connected to the communication bus, and effectively improving the fault identification and acquisition efficiency of the communication bus.
[0076] refer to Figure 4 , Figure 4 This is a flowchart illustrating a second embodiment of a load fault detection method according to the present invention.
[0077] Based on the first embodiment described above, in this embodiment, step S20 includes:
[0078] Step S201: Obtain the load address corresponding to the target load of the target load unit.
[0079] It should be noted that the load address can be the bus address of each load unit connected to the communication bus. Different load units have different load addresses, and the load address can be the address assigned to the load unit by the master control unit.
[0080] Step S202: Generate a query data frame based on the load address and the preset frame format.
[0081] It should be noted that the aforementioned query data frame may be a data frame containing the load address of the target load unit to be queried and a fault query command, as shown in the reference. Figure 5 , Figure 5The diagram illustrates the structure of a query data frame. A query data frame may include a frame header, frame length, payload address, fault query instruction, and checksum. The frame header is fixed at 0xAA. The frame length is one byte, which is the number of bytes from the frame header to the end of the frame. The fault query instruction can be a pre-set query instruction, for example, 0x00FF is agreed to be the fault query instruction. The checksum can be the checksum of the entire query data frame.
[0082] The aforementioned response data frame can be a data frame containing response information replied by the load driver board of the load unit based on the query data frame sent by the main control unit, as shown in the reference. Figure 6 , Figure 6 The diagram illustrates the structure of a response data frame. The response data frame may include a frame header, frame length, receive instruction, response content, and checksum. The receive instruction may be a main control board instruction received by the load driver board, indicating which instruction is being responded to. The response content may be the specific content of the load driver board's response based on load operation information. The frame header, frame length, and checksum in the response data frame are consistent with those in the query data frame.
[0083] For example, after receiving a 0x00FF main control unit fault query command, the reply receive command is also 0x00FF; the data that follows is the fault code, and different codes are used for different loads and different faults.
[0084] Step S203: Send the query data frame to the target load driver board of the target load unit based on the preset query interval.
[0085] It should be understood that, in order to achieve communication between the main control unit and the load unit, the main control unit sends a query data frame containing the load address and fault query command to the target load driver board of the target load unit to be queried via the communication bus based on a preset query interval. When the target load driver board receives the query data frame, it parses the query data frame, then verifies the frame header and load address of the query data frame. After the verification is successful, it extracts the fault query command from the query data frame, then obtains the current fault status information of the target load according to the fault query command, generates a response data frame based on the current fault status information, and feeds the response data frame back to the main control unit. The frame header, frame length, and checksum in the response data frame are consistent with the frame header, frame length, and checksum in the query data frame.
[0086] It should be noted that the main control unit can obtain the query information of the target load of the target load unit. The query information may include the load identification information of the target load. Based on the load identification information, the main control unit can query a preset instruction mapping table to determine the fault query instruction corresponding to the load identification information of the target load. For example, the fault query instruction may be 0x00FF. A blank data frame is generated according to the preset data frame format. The fault query instruction and the load address are written into the blank data frame to obtain the query data frame.
[0087] In this embodiment, a blank data frame is generated according to a preset frame format, and then the load address is written into the blank data frame to obtain a query data frame. The query data frame is sent to the target load driver board of the target load unit based on a preset query time interval, thereby realizing fault query communication with the target load unit and improving the efficiency of fault query.
[0088] refer to Figure 7 , Figure 7 This is a flowchart illustrating a third embodiment of a load fault detection method according to the present invention.
[0089] Based on the first embodiment described above, in this embodiment, step S30 includes:
[0090] Step S301: Parse the received response data frame.
[0091] It should be noted that when the main control unit receives the response data frame sent by the target load driver board, it parses the response data frame, obtains the frame header, frame length and checksum in the response data frame based on the parsing result, and then checks the frame header, frame length and checksum in the response data frame against the previously sent query data frames to determine whether the frame header, frame length and checksum in the response data frame are consistent with the frame header, frame length and checksum in the query data frame.
[0092] Step S302: Determine the response command fed back by the target load driver board of the target load unit based on the analysis result.
[0093] It should be noted that the response command can be a fault query command, that is, a pre-set query command. For example, 0x00FF is agreed to be the fault query command. Different loads have different response commands. The response command can include command codes. Command codes 0x0001 to 0x0040 can be load query commands. Different loads have different query commands. For example, 0x01 is for a compressor, 0x02 is for a fan, and 0x03 is for a lighting lamp, etc.
[0094] It should be understood that the main control unit parses the query data frame, then verifies the frame header and load address of the query data frame. After the verification is successful, it extracts the fault query instruction from the query data frame, then obtains the current fault status information of the target load according to the fault query instruction, generates a response data frame based on the current fault status information, and feeds the response data frame back to the main control unit.
[0095] In the specific implementation, the main control unit obtains the frame header, frame length and checksum to be verified in the response data frame based on the parsing result of the query data frame, and performs consistency verification on the frame header, frame length and checksum to be verified in the response data frame based on the query data frames sent in the past, so as to ensure the security of the response data frame.
[0096] Step S303: Query the preset instruction mapping table according to the response instruction.
[0097] It should be noted that the preset command mapping table can be a mapping table pre-set by the main control unit for querying the fault information corresponding to the response command. The preset command mapping table can be a mapping relationship table pre-built by the main control unit based on the correspondence between query commands and fault information.
[0098] Step S304: Determine the fault information of the target load of the target load unit based on the query results.
[0099] It should be noted that the fault information may include the time when the target load was sent out, the faulty component, and the cause of the fault.
[0100] This embodiment improves the efficiency of load fault identification by parsing the response data frames received from the target load driver board, extracting the response commands from the target load driver board from the parsing results, and determining the fault information of the target load by querying a preset command mapping table, thereby ensuring the accuracy of fault query communication between the main control unit and the load unit.
[0101] Furthermore, embodiments of the present invention also propose a storage medium storing a load fault detection program, wherein the load fault detection program, when executed by a processor, implements the steps of the load fault detection method described above.
[0102] Since this storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.
[0103] Reference Figure 8 , Figure 8 This is a structural block diagram of the first embodiment of the load fault detection device of the present invention.
[0104] like Figure 8As shown, the load fault detection device proposed in this embodiment of the invention includes:
[0105] The load determination module 10 is used to determine the target load unit to be queried in each load unit.
[0106] It should be noted that the main control unit can be the main control unit in a bus communication system, as shown in the reference. Figure 3 , Figure 3 This is a schematic diagram of a bus communication system. The bus communication system includes: one or more adapter boards, a main control unit, and at least one load unit. The main control unit and the load unit are respectively connected to the communication bus through the adapter board to establish a connection between the main control unit and the load unit.
[0107] The main control unit includes a main control board, which is connected to the adapter board via a first asynchronous transceiver. The load unit includes a load and a load driver board corresponding to the load. The load is connected to the load driver board, and the load driver board is connected to the adapter board via a second asynchronous transceiver. For example, the load may include a fan, damper, and electric valve, etc., and the load driver board may include a fan driver board, damper driver board, and electric valve driver board, etc. The first, second, and third asynchronous transceivers may be Universal Asynchronous Receiver / Transmitter (UART).
[0108] The bus communication system further includes a display unit, which is connected to the communication bus via the adapter board to establish a connection between the display unit and the main control unit; the display unit includes a display board, which is connected to the adapter board via a third asynchronous transceiver.
[0109] It should be understood that the aforementioned bus communication system adopts a single-bus structure, with both the main control board and the loads (e.g., fans, dampers, lighting fixtures, electric valves, etc.) connected to the communication bus. A master-slave communication mode is used, with the main control board as the master and the loads as slaves. The main control board communicates with the adapter board via a UART, and then is connected to the communication bus via a single wire. Each load is driven by a corresponding load driver board, which communicates with the adapter board via a UART port, and then achieves single-wire communication with the communication bus through the adapter board. Each load transmits its own operating information feedback signals to the load driver board, thereby improving the communication efficiency between the main control unit and the loads and enabling the effective transmission of load fault information.
[0110] It should be noted that the target load unit can be any load unit connected to the communication bus to which the main control unit is connected, and the target load unit can be a load unit with an operational fault. The load driver board in the load unit determines whether the load is malfunctioning by using the corresponding load's action feedback signal. If it is malfunctioning, it sends information back to the main control unit.
[0111] The data frame sending module 20 is used to send a query data frame to the target load unit based on a preset query interval, so that the target load unit can send back a response data frame based on the query data frame.
[0112] It should be noted that the preset query interval can be the time interval for querying each load unit connected to the communication bus that the main control unit has set in advance. For example, the preset query interval can be that the main control unit sends query data frames to each load every 30 seconds.
[0113] The aforementioned query data frame can be a data frame containing the load address of the target load unit to be queried and a fault query command. The query data frame may include a frame header, frame length, load address, fault query command, and checksum. The aforementioned response data frame can be a data frame containing response information replied by the load unit based on the query data frame sent by the master control unit. The response data frame may include a frame header, frame length, receive command, response content, and checksum. The frame header, frame length, and checksum in the response data frame are consistent with those in the query data frame.
[0114] It should be noted that the load address can be the bus address of each load unit connected to the communication bus. Different load units have different load addresses, and the load address can be the address assigned to the load unit by the master control unit.
[0115] It should be noted that the aforementioned query data frame may be a data frame containing the load address of the target load unit to be queried and a fault query command, as shown in the reference. Figure 5 , Figure 5 The diagram illustrates the structure of a query data frame. A query data frame may include a frame header, frame length, payload address, fault query instruction, and checksum. The frame header is fixed at 0xAA. The frame length is one byte, which is the number of bytes from the frame header to the end of the frame. The fault query instruction can be a pre-set query instruction, for example, 0x00FF is agreed to be the fault query instruction. The checksum can be the checksum of the entire query data frame.
[0116] The aforementioned response data frame can be a data frame containing response information replied by the load driver board of the load unit based on the query data frame sent by the main control unit, as shown in the reference. Figure 6 , Figure 6The diagram illustrates the structure of a response data frame. The response data frame may include a frame header, frame length, receive instruction, response content, and checksum. The receive instruction may be a main control board instruction received by the load driver board, indicating which instruction is being responded to. The response content may be the specific content of the load driver board's response based on load operation information. The frame header, frame length, and checksum in the response data frame are consistent with those in the query data frame.
[0117] For example, after receiving a 0x00FF main control unit fault query command, the reply receive command is also 0x00FF; the data that follows is the fault code, and different codes are used for different loads and different faults.
[0118] It should be understood that, in order to achieve communication between the main control unit and the load unit, the main control unit sends a query data frame containing the load address and fault query command to the target load driver board of the target load unit to be queried via the communication bus based on a preset query interval. When the target load driver board receives the query data frame, it parses the query data frame, then verifies the frame header and load address of the query data frame. After the verification is successful, it extracts the fault query command from the query data frame, then obtains the current fault status information of the target load according to the fault query command, generates a response data frame based on the current fault status information, and feeds the response data frame back to the main control unit. The frame header, frame length, and checksum in the response data frame are consistent with the frame header, frame length, and checksum in the query data frame.
[0119] It should be noted that the main control unit can obtain the query information of the target load of the target load unit. The query information may include the load identification information of the target load. Based on the load identification information, the main control unit can query a preset instruction mapping table to determine the fault query instruction corresponding to the load identification information of the target load. For example, the fault query instruction may be 0x00FF. A blank data frame is generated according to the preset data frame format. The fault query instruction and the load address are written into the blank data frame to obtain the query data frame.
[0120] The fault query module 30 is used to determine the fault information corresponding to the target load unit based on the received response data frame.
[0121] It should be noted that the fault information can be obtained by the target load driver board of the target load unit through obtaining the target load's operating information, obtaining the target load's fault information based on the operating information, writing the fault information into a response data frame, and then sending it to the main control unit; the main control unit parses the received response data frame, and thus determines the fault information corresponding to the target load unit based on the parsing result.
[0122] It should be understood that after the main control unit determines the fault information corresponding to the target load unit, it determines the fault code corresponding to the target load by querying the preset fault code mapping table according to the load information and load address, and sends the fault code to the display board. The display unit then displays the fault codes one by one in sequence (for example, fan fault report F1, electric valve fault report F2, etc.).
[0123] It should be noted that when the main control unit receives the response data frame sent by the target load driver board, it parses the response data frame, obtains the frame header, frame length and checksum in the response data frame based on the parsing result, and then checks the frame header, frame length and checksum in the response data frame against the previously sent query data frames to determine whether the frame header, frame length and checksum in the response data frame are consistent with the frame header, frame length and checksum in the query data frame.
[0124] It should be noted that the response command can be a fault query command, that is, a pre-set query command. For example, 0x00FF is agreed to be the fault query command. Different loads have different response commands. The response command can include command codes. Command codes 0x0001 to 0x0040 can be load query commands. Different loads have different query commands. For example, 0x01 is for a compressor, 0x02 is for a fan, and 0x03 is for a lighting lamp, etc.
[0125] It should be understood that the main control unit parses the query data frame, then verifies the frame header and load address of the query data frame. After the verification is successful, it extracts the fault query instruction from the query data frame, then obtains the current fault status information of the target load according to the fault query instruction, generates a response data frame based on the current fault status information, and feeds the response data frame back to the main control unit.
[0126] In the specific implementation, the main control unit obtains the frame header, frame length and checksum to be verified in the response data frame based on the parsing result of the query data frame, and performs consistency verification on the frame header, frame length and checksum to be verified in the response data frame based on the query data frames sent in the past, so as to ensure the security of the response data frame.
[0127] It should be noted that the preset command mapping table can be a mapping table pre-set by the main control unit for querying the fault information corresponding to the response command. The preset command mapping table can be a mapping relationship table pre-built by the main control unit based on the correspondence between query commands and fault information.
[0128] It should be noted that the fault information may include the time when the target load was sent out, the faulty component, and the cause of the fault.
[0129] This embodiment sends query data frames to the target load unit to be queried based on a preset query interval, and receives response data frames from the target load unit based on the query data frames. Thus, the query data frame feedback response data frame is determined based on the response data frame, realizing communication between the main control unit and the load unit, accurately obtaining fault information of each load unit connected to the communication bus, and effectively improving the fault identification and acquisition efficiency of the communication bus.
[0130] It should be understood that the above are merely illustrative examples and do not constitute any limitation on the technical solutions of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any restrictions on this.
[0131] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.
[0132] In addition, for technical details not described in detail in this embodiment, please refer to the load fault detection method provided in any embodiment of the present invention, which will not be repeated here.
[0133] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0134] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0136] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A load fault detection method, characterized in that, The load fault detection method is applied to the main control unit. The main control unit and multiple load units are respectively connected to the communication bus. Each load unit includes a load and a load driver board corresponding to the load. The load is connected to the load driver board. The load driver board determines whether the load is working abnormally through the action feedback signal of the corresponding load. If it is abnormal, it feeds back information to the main control unit. The main control unit is connected to the communication bus via an adapter board; The load includes at least one of the following: a fan, a damper, a lighting fixture, and an electric valve; The load fault detection method includes: Identify the target load unit to be queried among each load unit; the target load unit is the load unit with operational failure among the various load units connected on the communication bus to which the main control unit is connected; A query data frame is sent to the target load unit at a preset query interval, so that the target load unit can send back a response data frame based on the query data frame; the query data frame is a data frame containing the load address of the target load unit to be queried and a fault query instruction; The fault information corresponding to the target load unit is determined based on the received response data frame.
2. The load fault detection method as described in claim 1, characterized in that, Sending query data frames to the target load unit based on a preset query interval includes: Obtain the load address corresponding to the target load of the target load unit; Generate a query data frame based on the load address and the preset frame format; The query data frame is sent to the target load driver board of the target load unit based on a preset query interval.
3. The load fault detection method as described in claim 2, characterized in that, The step of generating a query data frame based on the load address and a preset frame format includes: Obtain the query information for the target load; Based on the information to be queried, a fault query instruction is determined using a preset instruction mapping table; A query data frame is generated based on the fault query instruction, the load address, and the preset frame format.
4. The load fault detection method according to any one of claims 1 to 3, characterized in that, The step of determining the fault information corresponding to the target load unit based on the received response data frame includes: Parse the received response data frame; The response command fed back by the target load driver board of the target load unit is determined based on the analysis results; Query the preset instruction mapping table according to the response instruction; The fault information of the target load of the target load unit is determined based on the query results.
5. The load fault detection method as described in claim 4, wherein determining the response command fed back by the target load driver board of the target load unit based on the analysis result includes: The command to be verified in the response data frame is obtained based on the parsing results; Obtain the query instruction from the query data frame; The query instruction is used to verify the instruction to be verified, and the verification result is used to determine whether the instruction to be verified is consistent with the query instruction. If the instruction to be verified is consistent with the query instruction, then the response data is extracted from the parsing result, and the response instruction fed back by the target load driver board of the target load unit is determined based on the response data.
6. The load fault detection method as described in claim 5, wherein if the instruction to be verified is consistent with the query instruction, then extracting response data from the parsing result and determining the response instruction fed back by the target load driver board of the target load unit based on the response data, includes: If the instruction to be verified is consistent with the query instruction, then the header of the frame to be verified in the response data frame is obtained according to the parsing result; Obtain the query frame header from the query data frame; Verify whether the header of the frame to be verified is consistent with the header of the query frame; If the header of the frame to be verified is consistent with the header of the query frame, then the response data is extracted from the parsing result, and the response command fed back by the target load driver board of the target load unit is determined based on the response data.
7. The load fault detection method according to any one of claims 1 to 3, characterized in that, The display unit is connected to the communication bus; After determining the fault information corresponding to the target load unit based on the received response data frame, the method further includes: Obtain the load address corresponding to the target load of the target load unit; Based on the fault information and the load address, the fault code corresponding to the target load is determined through a preset fault code mapping table; The fault code is sent to the display unit so that the display unit displays the fault code.
8. A load fault detection device, characterized in that, The load fault detection device is applied to the main control unit. The main control unit and multiple load units are respectively connected to the communication bus. Each load unit includes a load and a load driver board corresponding to the load. The load is connected to the load driver board. The load driver board determines whether the load is working abnormally through the action feedback signal of the corresponding load. If it is abnormal, it sends information back to the main control unit. The main control unit is connected to the communication bus via an adapter board; The load includes at least one of: a fan, a damper, a lighting fixture, and an electric valve; the load fault detection device includes: The load determination module is used to determine the target load unit to be queried in each load unit; the target load unit is the load unit with an operational failure among the various load units connected on the communication bus connected to the main control unit. The data frame sending module is used to send a query data frame to the target load unit based on a preset query interval, so that the target load unit can send back a response data frame based on the query data frame; the query data frame is a data frame containing the load address of the target load unit to be queried and a fault query instruction; The fault query module is used to determine the fault information corresponding to the target load unit based on the received response data frame.
9. A household appliance, characterized in that, The home appliance includes: a memory, a processor, and a load fault detection program stored in the memory and executable on the processor, the load fault detection program being configured to implement the load fault detection method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores a load fault detection program, which, when executed by a processor, implements the load fault detection method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Fault diagnosis system and fault diagnosis method
CN110597222A
Bus communication method and device, communication board, household appliance and storage medium
CN114500689A