CN115509209A - Bus fault detection method and device, household electrical appliance and storage medium - Google Patents

Bus fault detection method and device, household electrical appliance and storage medium Download PDF

Info

Publication number
CN115509209A
CN115509209A CN202211239122.7A CN202211239122A CN115509209A CN 115509209 A CN115509209 A CN 115509209A CN 202211239122 A CN202211239122 A CN 202211239122A CN 115509209 A CN115509209 A CN 115509209A
Authority
CN
China
Prior art keywords
gating
bus
communication
load
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211239122.7A
Other languages
Chinese (zh)
Inventor
郑海牧
苏锐
周岳
祝云飞
王君
丁路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Hualing Co Ltd
Midea Group Co Ltd
Hefei Midea Refrigerator Co Ltd
Original Assignee
Hefei Hualing Co Ltd
Midea Group Co Ltd
Hefei Midea Refrigerator Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Hualing Co Ltd, Midea Group Co Ltd, Hefei Midea Refrigerator Co Ltd filed Critical Hefei Hualing Co Ltd
Priority to CN202211239122.7A priority Critical patent/CN115509209A/en
Publication of CN115509209A publication Critical patent/CN115509209A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a bus fault detection method, a bus fault detection device, household electrical appliance equipment and a storage medium. The invention discloses: the master control unit and the plurality of load units are respectively connected with the communication bus, a gating unit is respectively arranged between two adjacent load units on the communication bus, when the master control unit detects that the communication state of the communication bus is a communication fault, a target gating module is determined according to a preset switch control strategy, the switch state of the target gating module is adjusted according to the preset switch control strategy, whether the communication state of the communication bus is normal or not is detected, and a fault load unit is determined from each load unit according to the detection result; according to the invention, the gating unit is arranged on the communication bus between the adjacent loads, so that the main control unit can quickly adjust the switching state of the target gating module to be adjusted according to the preset switching control strategy when detecting that the communication bus has a communication fault, thereby accurately identifying the faulty load unit.

Description

Bus fault detection method and device, household electrical appliance and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a bus fault detection method and apparatus, a home appliance, and a storage medium.
Background
With the progress of society and the development of science and technology, electrical appliances are gradually popularized in the life of people, and due to the technical and cost advantages of a bus structure, the bus technology is more and more applied to various electrical appliances. Especially large-scale electrical appliances with complicated wiring harnesses are always seeking a simple control mode of the wiring harnesses. The prior art judges whether the bus is short-circuited or open-circuited by detecting the bus level, but when the partial load fails, the electric signal is sent to the bus, and because the electric signal sent by the failed load is uncertain, whether the load at a test point fails or not can not be determined by adopting a method for detecting the bus level.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a bus fault detection method, a bus fault detection device, household electrical appliance equipment and a storage medium, and aims to solve the technical problem that the prior art cannot accurately detect a fault load on a bus.
In order to achieve the above object, the present invention provides a bus fault detection method, which is applied to a main control unit, wherein the main control unit and a plurality of load units are respectively connected with a communication bus, and a gating unit is respectively arranged between two adjacent load units on the communication bus;
the bus fault detection method comprises the following steps:
when the communication state of the communication bus is detected to be a communication fault, determining a target gating module according to a preset switch control strategy;
adjusting the on-off state of the target gating module according to the preset on-off control strategy, and detecting whether the communication state of the communication bus is recovered to be normal or not;
and determining a fault load unit from each load unit according to the detection result.
Optionally, when it is detected that the communication state of the communication bus is a communication fault, determining the target gating module according to a preset switch control strategy includes:
when the communication state of the communication bus is detected to be a communication fault, acquiring a load address of each load unit;
determining a preset switch control strategy of each gating module according to the load address;
and determining a target gating module from the gating modules according to the preset switch control strategy.
Optionally, the determining the preset switch control strategy of each gating module according to the load address includes:
determining the gating serial number of each gating module according to the load address;
and determining a preset switch control strategy of each gating module according to the load address and the gating number.
Optionally, the determining a preset switch control strategy of each gating module according to the load address and the gating number includes:
determining the corresponding relation between each gating module and each load unit according to the load address and the gating number;
sequencing the switches of the gating modules according to the corresponding relation and the gating numbers;
and determining preset switch control strategies of the gating modules according to the sequencing result, wherein the preset switch control strategies comprise strategies for sequentially switching off the gating modules from far to near according to the sequencing result.
Optionally, the performing, according to the correspondence and the gating numbers, a switching sequence on each gating module includes:
acquiring load information of each load unit;
determining the fault weight of each load unit according to the load information and the load address;
and sequencing the switches of the gating modules according to the fault weight, the corresponding relation and the gating numbers.
Optionally, when it is detected that the communication state of the communication bus is a communication fault, determining the target gating module according to a preset switch control strategy includes:
when the communication state of the communication bus is detected to be a communication fault, adjusting each gating module to be in a disconnection state;
and determining a target gating module according to a preset switch control strategy.
Optionally, after the target gating module is determined according to a preset switching control strategy, the method further includes:
adjusting the on-off state of the target gating module according to the preset on-off control strategy, and detecting whether the communication state of the communication bus is recovered to be normal or not;
determining a fault load unit from each load unit according to the detection result;
and generating an abnormal recovery control strategy corresponding to each gating module according to the fault load unit, and adjusting the gating state of each gating module based on the abnormal recovery control strategy.
In addition, in order to achieve the above object, the present invention further provides a bus fault detection apparatus, including:
the communication detection module is used for determining a target gating module according to a preset switch control strategy when the communication state of the communication bus is detected to be a communication fault;
the gating control module is used for adjusting the switching state of the target gating module according to the preset switching control strategy and detecting whether the communication state of the communication bus is recovered to be normal or not;
and the fault determining module is used for determining a fault load unit from each load unit according to the detection result.
In addition, to achieve the above object, the present invention further provides a home appliance, including: a memory, a processor and a bus fault detection program stored on the memory and executable on the processor, the bus fault detection program being configured to implement the steps of the bus fault detection method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having a bus fault detection program stored thereon, which when executed by a processor implements the steps of the bus fault detection method as described above.
According to the invention, the main control unit and the plurality of load units are respectively connected with the communication bus, and the gating units are respectively arranged between two adjacent load units on the communication bus, so that when the main control unit detects that the communication state of the communication bus is a communication fault, the target gating module is determined according to a preset switch control strategy; adjusting the on-off state of the target gating module according to the preset on-off control strategy, and detecting whether the communication state of the communication bus is recovered to be normal or not; determining a fault load unit from each load unit according to the detection result; according to the invention, the gating unit is arranged on the communication bus between the adjacent loads, so that the main control unit can quickly adjust the switching state of the target gating module to be adjusted according to the preset switching control strategy when detecting that the communication bus has a communication fault, thereby accurately identifying the faulty load unit.
Drawings
Fig. 1 is a schematic structural diagram of a home appliance in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a bus fault detection method according to a first embodiment of the present invention;
FIG. 3 is a diagram of a communication bus system according to a first embodiment of the bus fault detection method of the present invention;
FIG. 4 is a schematic flow chart illustrating a control strategy for gradually disconnecting the gating module from far to near according to a first embodiment of the bus fault detection method of the present invention;
FIG. 5 is a schematic diagram of a communication bus structure according to a first embodiment of the bus fault detection method of the present invention;
FIG. 6 is a flowchart illustrating a bus fault detection method according to a second embodiment of the present invention;
FIG. 7 is a flowchart illustrating a bus fault detection method according to a third embodiment of the present invention;
fig. 8 is a block diagram of the first embodiment of the bus fault detection apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a home appliance in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the home device 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. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of home devices and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a bus fault detection program.
In the home appliance shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the home appliance device of the present invention may be disposed in the home appliance device, and the home appliance device calls the bus fault detection program stored in the memory 1005 through the processor 1001 and executes the bus fault detection method provided in the embodiment of the present invention.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a bus fault detection method according to the present invention.
In this embodiment, the bus fault detection method is applied to a main control unit, the main control unit and a plurality of load units are respectively connected with a communication bus, and a gating unit is respectively arranged between two adjacent load units on the communication bus.
Referring to fig. 3, fig. 3 is a schematic diagram of a communication bus system, the bus communication system includes: a main control unit and a communication bus; one end of the communication bus is connected with the main control unit, the other end of the communication bus is connected with more than one load unit towards the part extending away from the main control unit, and a gating module is arranged between two adjacent load units on the communication bus.
The bus fault detection method comprises the following steps:
step S10: and when the communication state of the communication bus is detected to be a communication fault, determining a target gating module according to a preset switch control strategy.
It should be understood that the execution subject of the method of this embodiment may be a main control unit having functions of data processing, network communication, and program execution, such as a communication board or a main control board, or other devices or apparatuses capable of implementing the same or similar functions, and this is described here by taking the above main control unit as an example.
It should be noted that the gating module may receive an external signal through the communication bus, and disconnect or connect the connection between the load unit and the communication bus in a direction away from the main control unit based on the external signal, where the external signal may be a bus signal sent by the main control unit. The target gating module may be a target gating module that needs to be state-adjusted among a plurality of gating modules connected to the communication bus. The preset switch control strategy may be a strategy preset by the main control unit according to the load address of each load unit on the communication bus, and used for adjusting the switch state of the gating module.
It should be understood that the main control unit sends a bus signal to the target gating module through the communication bus according to the preset switch control strategy; and the gating module identifies the signal type of the bus signal and disconnects or connects the connection between the load unit and the communication bus in the direction away from the main control unit based on the signal type of the bus signal.
In a specific implementation, the main control unit detects whether the communication state of the communication bus is a fault communication state in real time, so that when the communication bus is detected to be a communication fault, a target gating module needing state adjustment is selected from all gating modules connected to the communication bus in time according to a preset switch control strategy.
Step S20: and adjusting the on-off state of the target gating module according to the preset on-off control strategy, and detecting whether the communication state of the communication bus is recovered to be normal or not.
It should be noted that the switch state may be an open or closed state of the gating module, and the gating module may be a relay, so that the main control unit may send the bus signal to the target gating module, so that the target gating module identifies the signal type of the bus signal, and opens or closes according to the signal type.
It should be understood that, the main control unit sends the bus signal to the target gating module according to the preset switch control strategy, so that the target gating module recognizes the signal type of the bus signal, and opens or closes according to the signal type, thereby implementing disconnection or connection between the load unit far away from the main control unit and the communication bus, and detecting whether the communication bus is restored to the normal communication state.
In a specific implementation, the preset switch control strategy may be a control strategy for gradually disconnecting the gating module from far to near, when a part of the load units send an electric signal to the bus when a fault occurs, so that the communication bus fails, the gating module at the farthest position is disconnected first, and then whether the communication bus fails is judged, that is, after the gating module farthest from the main control unit is disconnected first, if the communication bus is restored to a normal communication state, the load connected with the bus behind the switch at the farthest position is judged to have the fault; if the communication bus is not restored to the normal communication state, the previous gating module is continuously disconnected, and then whether the communication bus is restored to the normal communication state or not is judged until the latest gating module is opened.
Referring to fig. 4, fig. 4 is a schematic flow chart of a control strategy for gradually disconnecting the gating module from far to near, the main control unit first detects whether the communication bus has a communication fault, if so, disconnects the nth gating module, wherein n is greater than 1, then detects whether the communication bus is restored to a normal communication state, and if not, disconnects the (n-1) th gating module until the communication bus is restored to the normal communication state.
Step S30: and determining a fault load unit from each load unit according to the detection result.
In specific implementation, referring to fig. 5, fig. 5 is a schematic view of a communication bus structure, a main control unit, a load unit 1, a load unit 2, a load unit 3, and a load unit 4 are connected in parallel on the communication bus, wherein a gating module a is disposed at a position between the load unit 1 and the load unit 2 on the communication bus, a gating module B is disposed at a position between the load unit 2 and the load unit 3 on the communication bus, a gating module C is disposed at a position between the load unit 3 and the load unit 4 on the communication bus, the main control unit selects the gating module C requiring state adjustment from each gating module according to a preset switching control strategy, disconnects the gating module C according to a preset switching control strategy, that is, disconnects the connection between the load unit 4 and the communication bus, and if the communication state of the communication bus is recovered to be normal at this time, determines that the load unit 4 is a faulty load unit.
In the embodiment, the gating unit is arranged on the communication bus between the adjacent loads, so that the main control unit can quickly adjust the switching state of the target gating module to be adjusted according to the preset switching control strategy when detecting that the communication bus has a communication fault, thereby accurately identifying the faulty load unit.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a bus fault detection method according to a second embodiment of the present invention.
Based on the first embodiment, in this embodiment, the step S10 includes:
step S101: and when the communication state of the communication bus is detected to be a communication fault, acquiring the load address of each load unit.
It should be noted that the load address may be a bus address of each load unit connected to the communication bus, where the load addresses of different load units are different, and the load address may be an address assigned to the load unit by the master control unit.
Step S102: and determining a preset switch control strategy of each gating module according to the load address.
It should be understood that the master control unit determines the gating numbers of the gating modules between the adjacent load units according to the load addresses of the load units, wherein the gating numbers may be identification codes of the gating modules, the master control unit determines the corresponding relationship between each gating module and each load unit according to the load addresses of the load units and the identification codes of the gating modules, performs switching control sequencing on the gating modules according to the corresponding relationship and the gating numbers, thereby obtaining the switching control sequence of each gating module, and determines the switching control strategy of each gating module according to the switching control sequence.
In the specific implementation, the main control unit can obtain the load information of each load unit, determine the fault weight of each load unit by inquiring a preset code mapping table, sort the fault probability of each load unit according to the load weight, and perform on-off control sorting on each gating module according to the fault probability sorting result, the corresponding relation between the load unit and the gating module and the gating number of each gating module, thereby accurately obtaining the opening or closing sequence of each gating module.
The load information may be a load instruction code of each load unit, the load weight may be a ratio of a probability of the load unit failing, and the higher the failure weight is, the higher the probability of the load unit failing is.
Step S103: and determining a target gating module from the gating modules according to the preset switch control strategy.
It should be noted that the preset switch control strategy may include a switch state adjustment sequence of each gating module, and the main control unit determines, according to the switch state adjustment sequence, a target gating module that needs to be currently state-adjusted in each gating module.
In a specific implementation, for example, a load unit 1, a load unit 2, and a load unit 3 are connected to a communication bus, a main control unit determines a load address of each load unit connected to the communication bus, determines that the load unit 3 connected to the communication bus is farthest from the main control unit according to the load address, the load unit 2 is closest to the main control unit, determines that a gating number of each gating module connected to the communication bus is a gating module a connected between the load unit 1 and the load unit 2 and a gating module B connected between the load unit 2 and the load unit 3 according to the load address, determines that a switching sequence of each gating module is to firstly disconnect the gating module a and then disconnect the gating module B according to a correspondence between the load unit and the gating module, and thus, a target gating module that needs to be disconnected at present is the gating module a, detects whether the communication bus returns to a normal communication state after disconnecting the gating module a, and if not, continues to disconnect the gating module B, that is the target gating module B at this time.
In the embodiment, the load addresses of the load units connected to the communication bus are acquired, the preset switch control strategy of each gating module is determined according to the load addresses, the target gating module which needs to be adjusted in the switch state at present is selected from each gating module according to the preset switch control strategy, and the gating modules are accurately and sequentially controlled, so that the bus fault detection efficiency is effectively improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a bus fault detection method according to a third embodiment of the present invention.
Based on the first embodiment, in this embodiment, the step S10 includes:
step S11: and when the communication state of the communication bus is detected to be a communication fault, adjusting each gating module to be in a disconnection state.
It should be understood that, in order to effectively troubleshoot each load unit connected on the communication bus, when the main control unit detects that there is a communication fault on the connected communication bus, the main control unit disconnects each gating module connected on the communication bus, so that the load unit beside each gating module and far away from the main control unit is disconnected from the communication bus.
In specific implementation, when the master control unit detects a communication bus fault, all gating modules connected on the communication bus can be disconnected firstly, and as the gating modules are arranged at positions between two adjacent load units on the communication bus, after the connection of all the gating modules is disconnected, all load units except the load unit closest to the master control unit are disconnected with the communication bus, and if the communication bus is still not restored to a normal communication state at the moment, the load unit closest to the master control unit is judged to be a fault load unit.
Step S12: and determining a target gating module according to a preset switch control strategy.
It should be understood that the main control unit determines the gating numbers of the gating modules between the adjacent load units according to the load addresses of the load units, wherein the gating numbers may be identification codes of the gating modules, the main control unit determines the corresponding relationship between each gating module and each load unit according to the load addresses of the load units and the identification codes of the gating modules, performs switching control sequencing on the gating modules according to the corresponding relationship and the gating numbers, thereby obtaining the switching control sequence of each gating module, and determines the switching control strategy of each gating module according to the switching control sequence.
In the specific implementation, after the master control unit adjusts the on-off state of each gating module according to a preset on-off control strategy, the master control unit checks and determines a fault load unit, marks the fault load unit, determines the load information of the fault load unit, generates an abnormal recovery control strategy according to the load information, and recovers all gating modules except the gating module corresponding to the load unit to a closed state.
In the embodiment, when the communication bus connected with the main control unit is detected to have communication abnormality, all the gating modules connected with the communication bus are adjusted to be in the off state, and then the target gating module which needs to be subjected to state adjustment currently in all the gating modules is determined according to the preset switching strategy, so that the fault of each load unit is effectively and accurately checked step by step, and the accuracy and the efficiency of fault detection are improved.
In addition, an embodiment of the present invention further provides a storage medium, where a bus fault detection program is stored, and the bus fault detection program, when executed by a processor, implements the steps of the bus fault detection method described above.
Since the storage medium adopts all the technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are provided, and are not described in detail herein.
Referring to fig. 8, fig. 8 is a block diagram illustrating a first embodiment of the bus fault detection apparatus according to the present invention.
As shown in fig. 8, the bus fault detection apparatus according to the embodiment of the present invention includes:
and the communication detection module 10 is configured to determine the target gating module according to a preset switch control strategy when detecting that the communication state of the communication bus is a communication fault.
It should be noted that the gating module may receive an external signal through the communication bus, and disconnect or connect the connection between the load unit and the communication bus in a direction away from the main control unit based on the external signal, where the external signal may be a bus signal sent by the main control unit. The target gating module may be a target gating module that needs to be state-adjusted among a plurality of gating modules connected to the communication bus. The preset switch control strategy may be a strategy preset by the main control unit according to the load address of each load unit on the communication bus, and used for adjusting the switch state of the gating module.
It should be understood that the main control unit sends a bus signal to the target gating module through the communication bus according to the preset switch control strategy; and the gating module identifies the signal type of the bus signal and disconnects or connects the connection between the load unit and the communication bus in the direction away from the main control unit based on the signal type of the bus signal.
In a specific implementation, the main control unit detects whether the communication state of the communication bus is a fault communication state in real time, so that when the communication bus is detected to be a communication fault, a target gating module needing state adjustment is selected from all gating modules connected to the communication bus in time according to a preset switch control strategy.
It should be noted that the load address may be a bus address of each load unit connected to the communication bus, where the load addresses of different load units are different, and the load address may be an address assigned to the load unit by the master control unit.
It should be understood that the main control unit determines the gating numbers of the gating modules between the adjacent load units according to the load addresses of the load units, wherein the gating numbers may be identification codes of the gating modules, the main control unit determines the corresponding relationship between each gating module and each load unit according to the load addresses of the load units and the identification codes of the gating modules, performs switching control sequencing on the gating modules according to the corresponding relationship and the gating numbers, thereby obtaining the switching control sequence of each gating module, and determines the switching control strategy of each gating module according to the switching control sequence.
In the specific implementation, the main control unit can obtain the load information of each load unit, determine the fault weight of each load unit by inquiring a preset code mapping table, sort the fault probability of each load unit according to the load weight, and perform on-off control sorting on each gating module according to the fault probability sorting result, the corresponding relation between the load unit and the gating module and the gating number of each gating module, thereby accurately obtaining the opening or closing sequence of each gating module.
The load information may be a load instruction code of each load unit, the load weight may be a ratio of a probability of the load unit failing, and the higher the failure weight is, the higher the probability of the load unit failing is.
It should be noted that the preset switch control strategy may include a switch state adjustment sequence of each gating module, and the main control unit determines, according to the switch state adjustment sequence, a target gating module that needs to be currently state-adjusted in each gating module.
In a specific implementation, for example, a load unit 1, a load unit 2, and a load unit 3 are connected to a communication bus, a main control unit determines a load address of each load unit connected to the communication bus, determines that the load unit 3 connected to the communication bus is farthest from the main control unit according to the load address, the load unit 2 is closest to the main control unit, determines that a gating number of each gating module connected to the communication bus is a gating module a connected between the load unit 1 and the load unit 2 and a gating module B connected between the load unit 2 and the load unit 3 according to the load address, determines that a switching sequence of each gating module is to firstly disconnect the gating module a and then disconnect the gating module B according to a correspondence between the load unit and the gating module, and thus, a target gating module that needs to be disconnected at present is the gating module a, detects whether the communication bus returns to a normal communication state after disconnecting the gating module a, and if not, continues to disconnect the gating module B, that is the target gating module B at this time.
It should be understood that, in order to effectively troubleshoot each load unit connected on the communication bus, when the main control unit detects that there is a communication fault on the connected communication bus, the main control unit disconnects each gating module connected on the communication bus, so that the load unit beside each gating module and far away from the main control unit is disconnected from the communication bus.
In a specific implementation, when the master control unit detects a communication bus fault, all gating modules connected on the communication bus can be disconnected firstly, because the gating modules are arranged at positions between two adjacent load units on the communication bus, after the connection of all the gating modules is disconnected, all load units except the load unit closest to the master control unit are disconnected with the communication bus, and if the communication bus is still not restored to a normal communication state at the moment, the load unit closest to the master control unit is judged to be a fault load unit.
It should be understood that the master control unit determines the gating numbers of the gating modules between the adjacent load units according to the load addresses of the load units, wherein the gating numbers may be identification codes of the gating modules, the master control unit determines the corresponding relationship between each gating module and each load unit according to the load addresses of the load units and the identification codes of the gating modules, performs switching control sequencing on the gating modules according to the corresponding relationship and the gating numbers, thereby obtaining the switching control sequence of each gating module, and determines the switching control strategy of each gating module according to the switching control sequence.
In the specific implementation, after the master control unit adjusts the on-off state of each gating module according to a preset on-off control strategy, the master control unit checks and determines a fault load unit, marks the fault load unit, determines the load information of the fault load unit, generates an abnormal recovery control strategy according to the load information, and recovers all gating modules except the gating module corresponding to the load unit to a closed state.
And the gating control module 20 is configured to adjust the switching state of the target gating module according to the preset switching control strategy, and detect whether the communication state of the communication bus is recovered to be normal.
It should be noted that the switch state may be an open or closed state of the gating module, and the gating module may be a relay, so that the main control unit may send the bus signal to the target gating module, so that the target gating module identifies the signal type of the bus signal, and opens or closes according to the signal type.
It should be understood that, the main control unit sends the bus signal to the target gating module according to the preset switch control strategy, so that the target gating module recognizes the signal type of the bus signal, and opens or closes according to the signal type, thereby implementing disconnection or connection between the load unit far away from the main control unit and the communication bus, and detecting whether the communication bus is restored to the normal communication state.
In the specific implementation, the preset switch control strategy can be a control strategy for gradually disconnecting the gating module from far to near, when a part of load units send electric signals to the bus in case of failure, so that the communication bus fails, the gating module at the farthest position is disconnected firstly, and then whether the communication bus has a failure or not is judged, namely after the gating module farthest from the main control unit is disconnected firstly, if the communication bus is restored to a normal communication state, the load connected with the bus behind the switch at the farthest position is judged to have a failure; if the communication bus is not restored to the normal communication state, the previous gating module is continuously disconnected, and then whether the communication bus is restored to the normal communication state or not is judged until the latest gating module is opened.
Referring to fig. 4, fig. 4 is a schematic flow chart of a control strategy for gradually disconnecting the gating module from far to near, the main control unit firstly detects whether the communication bus has a communication fault, if so, disconnects the nth gating module, wherein n is greater than 1, then detects whether the communication bus is restored to a normal communication state, and if not, disconnects the (n-1) th gating module until the communication bus is restored to the normal communication state.
And a fault determining module 30, configured to determine a fault load unit from the load units according to the detection result.
In specific implementation, referring to fig. 5, fig. 5 is a schematic view of a communication bus structure, a main control unit, a load unit 1, a load unit 2, a load unit 3, and a load unit 4 are connected in parallel on the communication bus, wherein a gating module a is disposed at a position between the load unit 1 and the load unit 2 on the communication bus, a gating module B is disposed at a position between the load unit 2 and the load unit 3 on the communication bus, a gating module C is disposed at a position between the load unit 3 and the load unit 4 on the communication bus, the main control unit selects the gating module C requiring state adjustment from the gating modules according to a preset switching control strategy, disconnects the gating module C according to the preset switching control strategy, that is, disconnects the connection between the load unit 4 and the communication bus, and determines that the load unit 4 is a faulty load unit if the communication state of the communication bus is recovered to be normal.
In the embodiment, the gating unit is arranged on the communication bus between the adjacent loads, so that the main control unit can quickly adjust the switching state of the target gating module to be adjusted according to the preset switching control strategy when detecting that the communication bus has a communication fault, thereby accurately identifying the faulty load unit.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the details of the technology that are not described in detail in this embodiment can be referred to the bus fault detection method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A bus fault detection method is characterized in that the bus fault detection method is applied to a main control unit, the main control unit and a plurality of load units are respectively connected with a communication bus, and a gating unit is respectively arranged between two adjacent load units on the communication bus;
the bus fault detection method comprises the following steps:
when the communication state of the communication bus is detected to be a communication fault, determining a target gating module according to a preset switch control strategy;
adjusting the on-off state of the target gating module according to the preset on-off control strategy, and detecting whether the communication state of the communication bus is recovered to be normal or not;
and determining a fault load unit from each load unit according to the detection result.
2. The method for detecting bus faults as claimed in claim 1, wherein the determining the target gating module according to a preset switch control strategy when the communication state of the communication bus is detected to be a communication fault comprises:
when the communication state of the communication bus is detected to be a communication fault, acquiring a load address of each load unit;
determining a preset switch control strategy of each gating module according to the load address;
and determining a target gating module from the gating modules according to the preset switch control strategy.
3. The method for detecting bus faults as claimed in claim 2, wherein the determining the preset switch control strategy of each gating module according to the load address comprises:
determining the gating serial number of each gating module according to the load address;
and determining a preset switch control strategy of each gating module according to the load address and the gating number.
4. The method for detecting bus faults as claimed in claim 3, wherein the determining the preset switch control strategy of each gating module according to the load address and the gating number comprises:
determining the corresponding relation between each gating module and each load unit according to the load address and the gating number;
sequencing the switches of all gating modules according to the corresponding relation and the gating numbers;
and determining preset switch control strategies of the gating modules according to the sequencing result, wherein the preset switch control strategies comprise strategies for sequentially switching off the gating modules from far to near according to the sequencing result.
5. The bus fault detection method according to claim 4, wherein said performing a switching sequence on each gating module according to the correspondence and the gating number comprises:
acquiring load information of each load unit;
determining the fault weight of each load unit according to the load information and the load address;
and sequencing the switches of the gating modules according to the fault weight, the corresponding relation and the gating numbers.
6. The bus fault detection method as claimed in any one of claims 1 to 5, wherein the determining a target gating module according to a preset switch control strategy when the communication state of the communication bus is detected as a communication fault comprises:
when the communication state of the communication bus is detected to be a communication fault, adjusting each gating module to be in a disconnection state;
and determining a target gating module according to a preset switch control strategy.
7. The method for bus fault detection as claimed in claim 6, wherein after determining the target gating module according to the preset switch control strategy, further comprising:
adjusting the on-off state of the target gating module according to the preset on-off control strategy, and detecting whether the communication state of the communication bus is recovered to be normal or not;
determining a fault load unit from each load unit according to the detection result;
and generating an abnormal recovery control strategy corresponding to each gating module according to the fault load unit, and adjusting the gating state of each gating module based on the abnormal recovery control strategy.
8. A bus fault detection apparatus, characterized in that the bus fault detection apparatus comprises:
the communication detection module is used for determining a target gating module according to a preset switch control strategy when the communication state of the communication bus is detected to be a communication fault;
the gating control module is used for adjusting the switching state of the target gating module according to the preset switching control strategy and detecting whether the communication state of the communication bus is recovered to be normal or not;
and the fault determining module is used for determining a fault load unit from each load unit according to the detection result.
9. An appliance device, comprising: a memory, a processor, and a bus fault detection program stored on the memory and executable on the processor, the bus fault detection program configured to implement the bus fault detection method of any one of claims 1 to 7.
10. A storage medium having stored thereon a bus fault detection program which, when executed by a processor, implements the bus fault detection method according to any one of claims 1 to 7.
CN202211239122.7A 2022-10-10 2022-10-10 Bus fault detection method and device, household electrical appliance and storage medium Pending CN115509209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211239122.7A CN115509209A (en) 2022-10-10 2022-10-10 Bus fault detection method and device, household electrical appliance and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211239122.7A CN115509209A (en) 2022-10-10 2022-10-10 Bus fault detection method and device, household electrical appliance and storage medium

Publications (1)

Publication Number Publication Date
CN115509209A true CN115509209A (en) 2022-12-23

Family

ID=84509135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211239122.7A Pending CN115509209A (en) 2022-10-10 2022-10-10 Bus fault detection method and device, household electrical appliance and storage medium

Country Status (1)

Country Link
CN (1) CN115509209A (en)

Similar Documents

Publication Publication Date Title
CN101409448B (en) Electric power system protection and control system and distributed control system
US8344736B2 (en) Identifying improper cabling of devices
CN110324174B (en) Block chain environment detection method, equipment, device and storage medium
CN108088045B (en) Air conditioner communication mode switching method, air conditioner and readable storage medium
CN102546135B (en) Active/standby server switched system and method
CN110930075B (en) Power equipment fault positioning method, device, computer equipment and storage medium
CN111585797A (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN101199162A (en) Binary class based control
WO2024078205A1 (en) Bus load determination method and apparatus, household appliance device, and storage medium
CN115509209A (en) Bus fault detection method and device, household electrical appliance and storage medium
CN111341379B (en) Method and equipment for testing storage device
CN105988882B (en) A kind of application software fault repairing method and terminal device
CN109104319B (en) Data storage device and method
CN115665035A (en) Information processing method and device, first node and storage medium
CN218633973U (en) Bus communication system and household electrical appliance
CN114554466A (en) Equipment detection method and device
CN108650101B (en) Data transmission method and equipment
CN113866674B (en) Method and device for testing multi-core cable, electronic equipment and storage medium
JP4128907B2 (en) Supervisory control system
CN111162974B (en) Configurable two-out-of-two hardware platform aging test system and test method
CN109561227B (en) Trunk line switching method and device, electronic equipment and storage medium
JP3022971B2 (en) Terminal control failure monitoring method in electronic exchange
CN112217717A (en) Network switching method and system based on dual-computer hot standby
CN116095041A (en) Domain name query method, device, system and storage medium
CN117907700A (en) Temperature control circuit and fault detection method thereof

Legal Events

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