CN113612630B - Method, device, equipment and storage medium for determining fault cause of communication fault - Google Patents

Method, device, equipment and storage medium for determining fault cause of communication fault Download PDF

Info

Publication number
CN113612630B
CN113612630B CN202110788030.3A CN202110788030A CN113612630B CN 113612630 B CN113612630 B CN 113612630B CN 202110788030 A CN202110788030 A CN 202110788030A CN 113612630 B CN113612630 B CN 113612630B
Authority
CN
China
Prior art keywords
communication
level
fault
value
failure
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.)
Active
Application number
CN202110788030.3A
Other languages
Chinese (zh)
Other versions
CN113612630A (en
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.)
Zhongshan Haibeirui Intelligent Software Technology Co ltd
TCL Air Conditioner Zhongshan Co Ltd
Original Assignee
Zhongshan Haibeirui Intelligent Software Technology Co ltd
TCL Air Conditioner Zhongshan 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 Zhongshan Haibeirui Intelligent Software Technology Co ltd, TCL Air Conditioner Zhongshan Co Ltd filed Critical Zhongshan Haibeirui Intelligent Software Technology Co ltd
Priority to CN202110788030.3A priority Critical patent/CN113612630B/en
Publication of CN113612630A publication Critical patent/CN113612630A/en
Application granted granted Critical
Publication of CN113612630B publication Critical patent/CN113612630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04L41/0677Localisation of faults
    • 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
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for determining a fault cause of a communication fault, wherein the method comprises the following steps: when communication faults occur, judging the fault cause causing the communication faults according to the width value of the communication level of the receiving end and a preset level width threshold value, and switching off the communication between the transmitting end and the receiving end; adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end; and restoring communication between the transmitting end and the receiving end to obtain a restored communication result, and determining whether the failure cause is the failure cause causing the communication failure according to the restored communication result. The application can judge and determine the failure cause in time when the communication failure occurs, thereby not only improving the failure checking efficiency, but also improving the failure checking efficiency, ensuring the normal communication between the sending end and the receiving end and ensuring the reliability of the communication.

Description

Method, device, equipment and storage medium for determining fault cause of communication fault
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a failure cause of a communication failure.
Background
At present, the indoor unit and the outdoor unit of the household split variable frequency air conditioner are communicated in a zero-fire wire communication mode, and a zero-fire wire communication circuit is composed of common devices such as a resistor, a capacitor, a diode, a triode, an optocoupler and the like, so that an additional chip is not needed, the hardware cost is low, and the indoor unit and the outdoor unit of the household split variable frequency air conditioner are widely applied to the household variable frequency air conditioner.
The zero-live wire communication mode is a current loop communication mode, in the related art, the current loop communication mode of the air conditioner is half-duplex asynchronous serial communication, the communication steps are that the indoor unit firstly transmits data, the outdoor unit receives the data transmitted by the indoor unit through the current loop circuit, and then the corresponding data is returned, so that one-time successful communication is completed.
However, as the service life of the air conditioner increases, the line aging easily causes parasitic capacitance between the zero line and the communication line to increase, so that communication faults are caused, normal operation of the air conditioner is affected, and aiming at the fault problem, a user needs to wait for maintenance personnel to go to the door for manually conducting fault investigation and maintenance, and the efficiency is low, and time and labor are wasted.
Disclosure of Invention
The application provides a fault cause determining method, device, equipment and storage medium for communication faults, and aims to solve the problems that in the prior art, when parasitic capacitance between a zero line and a communication line is increased due to ageing of the line to cause the communication faults, a user needs to wait for maintenance personnel to go on the door to manually conduct fault troubleshooting and maintenance, and the efficiency is low, and time and labor are wasted.
In a first aspect, the present application provides a method for determining a failure cause of a communication failure, including:
when communication faults occur, judging the fault cause causing the communication faults according to the width value of the communication level of the receiving end and a preset level width threshold value, and switching off the communication between the transmitting end and the receiving end;
adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end;
and restoring communication between the transmitting end and the receiving end to obtain a restored communication result, and determining whether the failure cause is the failure cause causing the communication failure according to the restored communication result.
In one possible implementation manner of the present application, determining a failure cause causing a communication failure according to a width value of a communication level at a receiving end and a preset level width threshold value includes:
comparing the width value of the communication level with a level width threshold;
if the width value of the communication level is smaller than the level width threshold value, judging that the fault is caused by the increase of parasitic capacitance caused by the aging of the line.
In one possible implementation of the present application, the adjusting the communication baud rate according to the width value of the communication level includes:
judging the range of a preset level width range where the width value of the communication level is located;
And adjusting the initial communication baud rate to be the communication baud rate corresponding to the interval range according to the interval range, wherein the initial baud rate is the communication baud rate corresponding to the width value of the communication level.
In one possible implementation manner of the present application, the method for adjusting the communication level sampling at the receiving end includes:
modifying the communication level sampling frequency of the receiving end to be a preset sampling frequency;
and adjusting the serial communication clock period of the sampling point according to the preset sampling times.
In one possible implementation manner of the present application, the recovery communication result includes a recovery communication success result, and determining whether the failure cause is a failure cause causing the communication failure according to the recovery communication result includes:
if the communication recovery result is a communication recovery success result, determining that the fault reason is a fault reason causing communication fault;
otherwise, determining that the failure cause is not the failure cause causing the communication failure.
In one possible implementation of the present application, the communication level is a high level, the width value of the communication level is characterized according to a high level time, and the high level time is a sum of a time taken by a rising edge of the communication level to rise from a preset first value to a preset high level standard value, a time taken by the communication level to be at the preset high level standard value, and a time taken by a falling edge of the communication level to fall from the preset high level standard value to a preset second value.
In one possible implementation of the present application, the communication level is a low level, the width value of the communication level is characterized according to a low level time, and the low level time is a sum of a time taken by a falling edge of the communication level from a preset third value to a preset low level standard value, a time taken by the communication level to be at the preset low level standard value, and a time taken by a rising edge of the communication level to rise from the preset low level standard value to a preset fourth value.
In a second aspect, the present application further provides a fault cause determining apparatus for communication fault, including:
the comparison judging module is used for judging the failure cause of the communication failure according to the width value of the communication level of the receiving end and a preset level width threshold value when the communication failure occurs;
the switch module is used for switching off the communication between the sending end and the receiving end and recovering the communication between the sending end and the receiving end to obtain a recovered communication result;
the adjusting module is used for adjusting the communication baud rate according to the width value of the communication level and adjusting the communication level sampling mode of the receiving end;
and the determining module is used for determining whether the fault reason is the fault reason causing the communication fault according to the communication recovery result.
In one possible implementation manner of the present application, the comparison and judgment module is specifically configured to:
comparing the width value of the communication level with a level width threshold;
if the width value of the communication level is smaller than the level width threshold value, judging that the fault is caused by the increase of parasitic capacitance caused by the aging of the line.
In one possible implementation manner of the present application, the adjustment module is specifically configured to:
judging the range of a preset level width range where the width value of the communication level is located;
and adjusting the initial communication baud rate to be the communication baud rate corresponding to the interval range according to the interval range, wherein the initial baud rate is the communication baud rate corresponding to the width value of the communication level.
In one possible implementation of the present application, the adjustment module is specifically further configured to:
modifying the communication level sampling frequency of the receiving end to be a preset sampling frequency;
and adjusting the serial communication clock period of the sampling point according to the preset sampling times.
In one possible implementation manner of the present application, the recovery communication result includes a recovery communication success result, and the determining module is specifically configured to:
if the communication recovery result is a communication recovery success result, determining that the fault reason is a fault reason causing communication fault;
Otherwise, determining that the failure cause is not the failure cause causing the communication failure.
In a third aspect, the present application also provides a fault cause determining apparatus for communication fault, including:
one or more processors;
a memory;
and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the failure cause determination method of the communication failure of the first aspect.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the fault cause determination method of the communication fault of the first aspect.
From the above, the present application has the following advantages:
in the application, the fault cause causing the communication fault is judged according to the width value of the communication level of the receiving end, and the fault cause is verified on the premise of shutting down the communication, specifically, the verification process is to adjust the communication baud rate according to the width value of the communication level, adjust the communication level sampling mode, then resume the communication between the sending end and the receiving end, and then determine whether the fault cause is the fault cause causing the communication fault according to the recovery communication result, thereby completing the verification of the fault cause, and judging and determining the fault cause in time when the communication fault occurs, thereby not only improving the fault checking efficiency, but also improving the fault maintenance efficiency, enabling the normal communication between the sending end and the receiving end, and ensuring the reliability of the communication.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic circuit diagram of a communication circuit provided in an embodiment of the present application;
FIG. 2 is a schematic waveform diagram of communication levels with abnormal data reception provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of a method for determining a failure cause of a communication failure according to an embodiment of the present application;
FIG. 4 is a flow chart of determining the cause of a communication failure in accordance with an embodiment of the present application;
FIG. 5 is a flow chart of adjusting the baud rate of a communication according to an embodiment of the present application;
fig. 6 is a schematic structural view of a failure cause determining apparatus for communication failure provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a failure cause determination apparatus for communication failure provided in the embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present application, the term "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described as "exemplary" in this disclosure is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Before describing the fault cause determining method, device, equipment and storage medium of the communication fault provided by the present application, a current loop communication circuit for communication between an indoor unit and an outdoor unit is described first, as shown in fig. 1, which is a schematic circuit diagram of a communication circuit provided in an embodiment of the present application, where the current loop communication circuit includes a first indoor side transmit data interface TXD1, a first receive data interface RXD1, a second triode Q2 connected to the first transmit data interface TXD1, a second optocoupler OPT2 connected to the second triode Q2, and a fourth optocoupler OPT4 connected to the first receive data interface RXD 1; the current loop communication circuit further comprises a second outdoor transmitting data interface TXD2, a second receiving data interface RXD2, a first triode Q1 connected with the second transmitting data interface TXD2, a first optocoupler OPT1 connected with the first triode Q1 and a third optocoupler OPT3 connected with the second receiving data interface RXD2, wherein a first resistor R1 is connected between the second optocoupler OPT2 and the first optocoupler OPT1, an energy storage capacitor E and a power module for supplying power are connected between the third optocoupler OPT3 and the fourth optocoupler OPT4, and the power module comprises a zero line, a fire wire, a third resistor R3, a first diode D1 and a second diode D2 for supplying alternating current power.
Next, the indoor unit is used as a signal transmitting end to transmit signals, the outdoor unit is used as a signal receiving end to receive signals to explain the working principle of the communication circuit shown in fig. 1, an outdoor controller of the outdoor unit controls the light emitting diode of the first optocoupler OPT1 connected with the second transmitting data interface TXD2 to be conducted, at the moment, a secondary light receiving end triode of the first optocoupler OPT1 is conducted, when the indoor unit transmits high level, a second triode Q2 connected with the first transmitting data interface TXD1 is conducted, the second optocoupler OPT2 is conducted, at the moment, the whole current loop is conducted, a light emitting diode of a third optocoupler OPT3 connected with the second receiving data interface RXD2 at the outdoor side is conducted, a secondary light receiving end triode of the third optocoupler OPT3 is also conducted, and high level is output to the second receiving data interface RXD2, namely the signal receiving end of the outdoor unit is high level, and signal transmission from the indoor unit to the outdoor unit is realized; when the indoor unit sends a low level, the second triode Q2 is not conducted, the second optocoupler OPT2 is not conducted, the whole current loop is not conducted, at the moment, the light emitting end diode of the third optocoupler OPT3 is not conducted, the secondary light receiving end triode is also not conducted, the low level is output to the second receiving data interface RXD2, namely the signal receiving end of the outdoor unit is low level, and therefore signal transmission from the indoor unit to the outdoor unit in the low level is achieved. When the indoor unit is a signal receiving end, the communication process is similar.
It can be understood that when the outdoor unit is used as the signal transmitting end to transmit signals, the communication process of the indoor unit as the signal receiving end to receive signals is similar to the above process, and will not be repeated here.
Based on the above communication circuit, in general, a serial communication interface (Serial Communication Interface, SCI) is adopted to transmit information between the indoor unit and the outdoor unit, as shown in fig. 1, the indoor unit and the outdoor unit each have an independent port and signal line, but in practical application, the receiving and transmitting are not the same clock, so the communication between the indoor unit and the outdoor unit is based on a serial asynchronous communication interface, which can be generally regarded as a universal asynchronous receiver Transmitter (Universal Asynchronous Receiver/Transmitter, UART), and the UART is generally connected with a serial bus interface of recommended standards 232 (Recommand Standard-232, rs-232).
Typically, digital signal processing (Digital Signal Processing, DSP) pin input/output uses Transistor-Transistor Logic integrated circuit (TTL) levels, while the characteristic voltages of the Logic "1" and Logic "0" levels of the TTL levels are 2.4V and 0.4V, respectively, for on-board data transmission. SCI asynchronous communication adopts a half-duplex communication mode, each data bit occupies 8 serial communication clock cycles SCICLK, or an outdoor unit is used as a signal receiving end for description, an outdoor controller starts working after receiving a low-level start bit, and the low level of 4 serial communication clock cycles SCICLK represents a valid start bit; if there are no low levels of the serial communication clock period SCICLK for 4 consecutive periods, the outdoor controller again looks for another start bit. For bits following the start bit of the SCI data frame, the outdoor controller performs 3 samples in the middle of each bit to determine a bit value; the sampling points of the 3 samples are respectively in the 4 th, the 5 th and the 6 th serial communication clock periods SCICLK, and the same value of the 2 samples in the 3 samples is the final receiving bit.
However, as the service life of the air conditioner increases, the parasitic capacitance value between the zero line and the communication line increases due to the aging of the line of the air conditioner, and the parasitic capacitance value increased year by year acts together with the buffer capacitance of the energy storage capacitor E in the communication circuit, which is easy to cause the increase of the falling edge or rising edge in the communication signal received by the outdoor unit, so that the signal width of part of the single low level or high level is too small, as shown in fig. 2, which is a waveform schematic diagram of the communication level with abnormal data reception provided in the embodiment of the present application, in fig. 2, the lower part is a standard communication level waveform, and the upper part is a communication level waveform with the signal width of the low level being smaller than the standard time.
In view of the foregoing, the present application provides a method, apparatus, device and storage medium for determining a failure cause of a communication failure, which are described in detail below.
First, the present application provides a method for determining a failure cause of a communication failure, where the method for determining a failure cause of a communication failure is applied to a controller, and an execution body of the method for determining a failure cause of a communication failure is a device for determining a failure cause of a communication failure, and the method for determining a failure cause of a communication failure includes: when communication faults occur, judging the fault cause causing the communication faults according to the width value of the communication level of the receiving end and a preset level width threshold value, and switching off the communication between the transmitting end and the receiving end; adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end; and restoring communication between the transmitting end and the receiving end to obtain a restored communication result, and determining whether the failure cause is the failure cause causing the communication failure according to the restored communication result.
Fig. 3 is a schematic flow chart of a fault cause determining method of a communication fault according to an embodiment of the present application. It should be noted that although a logical order is depicted in the flowchart, in some cases the steps shown or described may be performed in a different order than presented. The fault cause determining method of the communication fault comprises the following steps:
And S301, when the communication is faulty, judging the fault cause causing the communication fault according to the width value of the communication level of the receiving end and a preset level width threshold value, and switching off the communication between the transmitting end and the receiving end.
The reason for the communication fault of the air conditioner may be various factors such as the damage of the device of the communication circuit itself, the disconnection of the communication line, the poor contact of the communication interface, the increase of the parasitic capacitance of the communication loop or other reasons causing the communication fault.
In this embodiment, the outdoor unit is still used as the signal receiving end, and the width value of the communication level of the receiving end is the width value of the communication level of the outdoor unit.
It can be appreciated that the width of the communication level of the outdoor unit can be detected in real time, wherein the communication level can be a high level or a low level, and in this embodiment, the width value of the communication level can be represented by the time maintained by the level.
Specifically, for a high level, the width value of the communication level may be characterized according to a high level time, where the high level time may be a sum of a time taken by a rising edge of the communication level from a preset first value to a preset high level standard value, a time taken by the communication level at the preset high level standard value, and a time taken by a falling edge of the communication level from the preset high level standard value to a preset second value.
In this embodiment, the preset first value is set to be 0.9, which is 90% of the preset high-level standard value, and the preset second value may be the same as or different from the preset first value, and in this embodiment, the preset second value is set to be 0.9, which is 90% of the preset high-level standard value. Therefore, in this embodiment, the width value of the communication level is the sum of the time taken for the rising edge of the communication level to rise from the preset first value, i.e. 0.9, to the preset high level standard value, i.e. 1, the time taken for the communication level to be at the preset high level standard value, i.e. 1, and the time taken for the falling edge of the communication level to fall from the preset high level standard value, i.e. 1, to the preset second value, i.e. 0.9.
If the communication level is low, the width value of the communication level may be characterized according to a low level time for the low level, which may be a sum of a time taken for a falling edge of the communication level to fall from a preset third value to a preset low level standard value, a time taken for the communication level to be at the preset low level standard value, and a time taken for a rising edge of the communication level to rise from the preset low level standard value to a preset fourth value, similarly to the above.
In this embodiment, the preset third value is set to be 0, and the preset fourth value may be the same as or different from the preset third value, and is set to be 0.1, which is 10% of the preset high-level standard value. Therefore, in this embodiment, the width value of the communication level is the sum of the time taken for the falling edge of the communication level to fall from the preset third value, i.e., 0.1, to the preset low level standard value, i.e., 0, the time taken for the communication level to be at the preset low level standard value, i.e., 0, and the time taken for the rising edge of the communication level to rise from the preset low level standard value, i.e., 0, to the preset fourth value, i.e., 0.1.
It can be appreciated that the preset high-level standard value, the preset low-level standard value, the preset first value, the preset second value, the preset third value and the preset fourth value may be selected according to the actual application scenario, which is not limited herein.
In the embodiment of the application, after the width value of the communication level of the receiving end, that is, the outdoor unit is detected, the failure cause of the communication failure can be judged according to the width value of the communication level and the preset level width threshold, for example, the width value of the communication level of the receiving end is smaller than the standard value for the communication failure caused by the increase of the parasitic capacitance caused by the aging of the circuit, at this time, the preset level width threshold can be set as the standard value, if the width value of the communication level is actually smaller than the preset level width threshold, the failure cause can be judged to be the increase of the parasitic capacitance caused by the aging of the circuit, at this time, the communication between the transmitting end and the receiving end can be turned off, and then the failure cause is verified.
S302, adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end.
In the field of communications, the Baud rate refers to the rate of modulating a carrier wave by an effective data signal, that is, the number of times of carrier wave modulation state changes in a unit time, in an information transmission channel, a signal unit carrying data information is called a symbol transmission rate, the number of symbols transmitted through the channel per second is called a Baud rate, the Baud rate is an index of the bandwidth of the transmission channel, the communication level width and the communication Baud rate are in reciprocal relation, that is, the communication Baud rate is the reciprocal of the width value of the communication level, that is, the smaller the width value of the communication level is, the larger the communication Baud rate is, and conversely, the larger the width value of the communication level is, the smaller the communication Baud rate is.
Therefore, the fault factor determined in S301 is that the parasitic capacitance increases due to the aging of the line, and at this time, the width value of the communication level is smaller than the preset level width threshold, that is, the baud rate of the communication corresponding to the width value of the communication level is greater than the baud rate corresponding to the preset level width threshold, so that the communication needs to be adjusted to be normal.
It can be understood that, along with the change of the communication baud rate, in order to ensure the reliability of the communication data, the communication level sampling mode of the receiving end can be correspondingly adjusted at the same time, so that the communication data after the communication is recovered is true and reliable.
S303, recovering communication between the sending end and the receiving end to obtain a recovered communication result, and determining whether the fault cause is the fault cause causing the communication fault according to the recovered communication result.
In order to verify whether the failure cause causing the communication failure judged in S301 is correct, after the communication baud rate and the communication level sampling mode are correspondingly adjusted in S302, the communication between the transmitting end and the receiving end is restored, if the communication is successfully restored, that is, the transmitting end and the receiving end re-communicate, the failure cause causing the communication failure judged in S301 can be determined to be correct, and the failure cause is really the failure cause causing the communication failure; otherwise, if the recovery of the communication fails, that is, the sending end and the receiving end still have abnormal communication, it may be determined that the failure cause of the communication failure determined in S301 is incorrect, and the failure cause is not the failure cause of the communication failure, so that other failure causes are further examined.
In the embodiment of the application, the fault cause causing the communication fault is judged according to the width value of the communication level of the receiving end, and the fault cause is verified on the premise of shutting down the communication, specifically, the verification process is to adjust the communication baud rate according to the width value of the communication level, adjust the communication level sampling mode, then resume the communication between the sending end and the receiving end, and then determine whether the fault cause is the fault cause causing the communication fault according to the recovery communication result, thereby completing the verification of the fault cause, and judging and determining the fault cause in time when the communication fault occurs, thereby not only improving the fault checking efficiency, but also improving the fault maintenance efficiency, ensuring the communication reliability and prolonging the service life of the air conditioner.
As shown in fig. 4, a flow chart of determining a cause of a communication failure according to an embodiment of the present application is shown, in some embodiments of the present application, determining the cause of the communication failure according to a width value of a communication level of a receiving end and a preset level width threshold may further include:
s401, comparing the width value of the communication level with a level width threshold.
And S402, if the width value of the communication level is smaller than the level width threshold value, judging that the fault is caused by the line aging, and increasing the parasitic capacitance.
According to the description of the embodiment, the service life of the air conditioner is increased at any time, the line aging of the air conditioner can cause the increase of the parasitic capacitance value between the zero line and the communication line, the parasitic capacitance value increased year by year and the buffer capacitance in the communication circuit act together, the increase of the falling edge or the rising edge is easily caused in the communication signal received by the outdoor unit, the signal width of part of single low level or high level is too small, and if the signal width is too small to meet the minimum value requirement of the single level width of the communication protocol and the sampling requirement, the abnormal data receiving of the outdoor unit can be caused, the packet loss phenomenon occurs, and the communication fault is caused.
Therefore, in the embodiment of the present application, the detected width value of the communication level may be compared with a preset level width threshold, where the preset level width threshold may be a level width value set based on a communication protocol and a sampling requirement, if the communication level is a high level, the preset level width threshold is a level width threshold corresponding to the high level, and if the communication level is a low level, the preset level width threshold is a level width threshold corresponding to the low level. If the width value of the communication level is smaller than the level width threshold, it can be judged that the parasitic capacitance is increased due to line aging, if the width value of the communication level is equal to or larger than the level width threshold, that is, the width value of the communication level meets the communication protocol and the sampling requirement, and if the width value of the communication level meets the communication protocol and the sampling requirement, the communication failure still exists, it can be considered that the communication failure is caused by other reasons such as device damage, communication line disconnection and the like.
As shown in fig. 5, a flow chart of adjusting the communication baud rate according to an embodiment of the application may further include:
s501, judging the range of the preset level width range where the width value of the communication level is located.
In the embodiment of the present application, the preset level width interval may include a plurality of interval ranges, where each interval range corresponds to a corresponding communication baud rate, for example, the preset level width interval may include a first interval range, a second interval range, a third interval range and a fourth interval range that are arranged from small to large, where the first interval range is a level width value smaller than T1, the second interval range is a level width value greater than T1 and smaller than T2, the third interval range is a level width value greater than T2 and smaller than T3, and the fourth interval range is a level width value greater than T3, i.e., 0< T1< T2< T3. If the width value of the communication level is smaller than T1, the width value of the communication level is located in a first interval range, if the width value of the communication level is larger than T1 and smaller than T2, the width value of the communication level is located in a second interval range, if the width value of the communication level is larger than T2 and smaller than T3, the width value of the communication level is located in a third interval range, and if the width value of the communication level is larger than T3, the width value of the communication level is located in a fourth interval range.
It can be understood that in this embodiment, the preset level width interval may further include more or less interval ranges than the foregoing, and for clarity and brevity of description, 4 interval ranges are listed here as an example, and other interval ranges may be set with reference to the foregoing logic, which is not repeated herein.
S502, adjusting the initial communication baud rate to be the communication baud rate corresponding to the interval range according to the interval range, wherein the initial baud rate is the communication baud rate corresponding to the width value of the communication level.
In the embodiment of the present application, the communication baud rate corresponding to the first interval range is set as the first communication baud rate, the communication baud rate corresponding to the second interval range is set as the second communication baud rate, the communication baud rate corresponding to the third interval range is set as the third communication baud rate, and the like, assuming that the first communication baud rate is 2400bps, the second communication baud rate is 1200bps, and the third communication baud rate is 600bps, when the width value of the communication level is located in the first interval range, the initial communication baud rate can be adjusted to be 2400bps, which is the first communication baud rate corresponding to the first interval range; when the width value of the communication level is located in the second interval range, the initial communication baud rate can be adjusted to the second communication baud rate corresponding to the second interval range, i.e. 1200bps.
In addition, based on the adjustment of the communication baud rate, in some embodiments of the present application, the adjustment of the communication level sampling manner of the receiving end may further include: modifying the communication level sampling frequency of the receiving end to be a preset sampling frequency; and adjusting the serial communication clock period of the sampling point according to the preset sampling times.
Typically, the number of samples of the communication is 3, where the sampling points of the 3 samples are respectively in the 4 th, 5 th and 6 th serial communication clock periods SCICLK, and the same value is the final received bit in the 2 samples of the 3 samples.
In this embodiment, the preset sampling number may be set to 2 times, and the sampling points of the 2 times of sampling may be set to the 5 th and 6 th serial communication clock periods SCICLK, and the value of the 2 times of sampling is the same, that is, the final received bit.
Based on the adjustment of the communication baud rate and the communication level sampling manner in the above embodiment, further, in the embodiment of the present application, the recovering a communication result may include recovering a communication success result, and determining, according to the recovering a communication result, whether the failure cause is a failure cause causing a communication failure may further include:
if the communication recovery result is a communication recovery success result, determining that the fault reason is a fault reason causing communication fault; otherwise, determining that the failure cause is not the failure cause causing the communication failure.
Specifically, if the determined failure cause is that the parasitic capacitance is increased due to line aging, after the communication baud rate and the communication level sampling mode are adjusted according to the above embodiment, the communication between the sending end and the receiving end, that is, the indoor unit and the outdoor unit is restored, and if the communication is successfully restored, a result of restoring the communication result is obtained, it can be determined that the failure cause causing the communication failure is that the parasitic capacitance is increased due to line aging; if the communication recovery fails, that is, the result of the communication recovery result is not obtained, the failure cause of the communication failure can be determined not to be parasitic capacitance increase caused by line aging, and further investigation is further conducted on other failure causes.
In order to better implement the method for determining the failure cause of the communication failure in the present application, the present application further provides a device for determining the failure cause of the communication failure, as shown in fig. 6, which is a schematic structural diagram of the device for determining the failure cause of the communication failure provided in the embodiment of the present application, where the device for determining the failure cause of the communication failure includes:
the comparison and judgment module 601 is configured to judge a failure cause of the communication failure according to a width value of the communication level at the receiving end and a preset level width threshold when the communication failure occurs;
The switch module 602 is configured to turn off communication between the transmitting end and the receiving end, and resume communication between the transmitting end and the receiving end, so as to obtain a resumption communication result;
the adjusting module 603 is configured to adjust a communication baud rate according to the width value of the communication level, and adjust a communication level sampling mode of the receiving end;
and the determining module 604 is configured to determine whether the failure cause is a failure cause that causes the communication failure according to the recovered communication result.
The transmitting end is an indoor unit, the receiving end is an outdoor unit, the switch module 602 is connected between the indoor unit and the outdoor unit, and is used for switching on or off communication between the indoor unit and the outdoor unit, and the comparison judging module 601 is connected with the outdoor unit, and is used for detecting a width value of a communication level.
In the embodiment of the present application, the comparison and judgment module 601 judges the failure cause causing the communication failure according to the width value of the communication level of the receiving end, and verifies the failure cause on the premise that the switch module 602 turns off the communication, specifically, the verification process is that the adjustment module 603 adjusts the communication baud rate according to the width value of the communication level, adjusts the communication level sampling mode, then the switch module 602 resumes the communication between the sending end and the receiving end, and the determination module 604 determines whether the failure cause is the failure cause causing the communication failure according to the resumption communication result, thereby completing the verification of the failure cause, and being capable of timely judging and determining the failure cause when the communication failure occurs, thereby not only improving the failure checking efficiency, but also improving the failure checking efficiency, enabling the normal communication between the sending end and the receiving end, guaranteeing the reliability of the communication, and prolonging the service life of the air conditioner.
In some embodiments of the present application, the comparison and judgment module 601 may specifically be configured to:
comparing the width value of the communication level with a level width threshold;
if the width value of the communication level is smaller than the level width threshold value, judging that the fault is caused by the increase of parasitic capacitance caused by the aging of the line.
In some embodiments of the present application, the adjustment module 603 may specifically be configured to:
judging the range of a preset level width range where the width value of the communication level is located;
and adjusting the initial communication baud rate to be the communication baud rate corresponding to the interval range according to the interval range, wherein the initial baud rate is the communication baud rate corresponding to the width value of the communication level.
In some embodiments of the present application, the adjustment module 603 may be further specifically configured to:
modifying the communication level sampling frequency of the receiving end to be a preset sampling frequency;
and adjusting the serial communication clock period of the sampling point according to the preset sampling times.
In some embodiments of the present application, the recovery communication result includes a recovery communication success result, and the determining module 604 may specifically be configured to:
if the communication recovery result is a communication recovery success result, determining that the fault reason is a fault reason causing communication fault;
otherwise, determining that the failure cause is not the failure cause causing the communication failure.
It should be noted that, in the present application, the contents of the comparison and judgment module 601, the switch module 602, the adjustment module 603 and the determination module 604 correspond to the above one by one, and those skilled in the art can clearly understand that, for convenience and brevity of description, the specific working process of the above-described fault cause determination device for communication faults and the corresponding module thereof may refer to the description of the fault cause determination method for communication faults in any embodiment corresponding to fig. 2 to 5, and the description is omitted herein.
In order to better implement the fault cause determining method of the communication fault of the present application, on the basis of the fault cause determining method of the communication fault, the present application also provides a fault cause determining device of the communication fault, the fault cause determining device of the communication fault integrates any one of the fault cause determining devices of the communication fault provided by the present application, the device includes:
one or more processors 701;
a memory 702;
and one or more application programs, wherein the one or more application programs are stored in the memory 702 and configured to execute the steps in the method for determining a fault cause of a communication fault of any one of the embodiments of the method for determining a fault cause of a communication fault described above by the processor 701.
As shown in fig. 7, there is shown a schematic structural diagram of a failure cause determination apparatus of communication failure according to an embodiment of the present application, specifically:
the device may include one or more processing cores 'processors 701, one or more computer-readable storage media's memory 702, power supply 703, and input unit 704, among other components. It will be appreciated by those skilled in the art that the device structure shown in fig. 7 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 701 is a control center of the device, connects various parts of the entire device using various interfaces and lines, and performs various functions of the device and processes data by running or executing software programs and/or modules stored in the memory 702, and invoking data stored in the memory 702, thereby performing overall monitoring of the device. Optionally, processor 701 may include one or more processing cores; the processor 701 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and preferably, the processor 701 may integrate an application processor primarily handling operating systems, user interfaces, application programs, and the like, with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701.
The memory 702 may be used to store software programs and modules, and the processor 701 executes various functional applications and data processing by executing the software programs and modules stored in the memory 702. The memory 702 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide access to the memory 702 by the processor 701.
The device further comprises a power supply 703 for powering the various components, preferably the power supply 703 is logically connected to the processor 701 by a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 703 may also include one or more of any component, such as a direct current or alternating current voltage source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.
The device may further comprise an input unit 704 and an output unit 705, the input unit 704 being operable to receive input numerical or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the apparatus may further include a display unit or the like, which is not described herein. Specifically, in the present application, the processor 701 in the device loads executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 executes the application programs stored in the memory 702, so as to implement various functions, as follows:
when communication faults occur, judging the fault cause causing the communication faults according to the width value of the communication level of the receiving end and a preset level width threshold value, and switching off the communication between the transmitting end and the receiving end;
adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end;
and restoring communication between the transmitting end and the receiving end to obtain a restored communication result, and determining whether the failure cause is the failure cause causing the communication failure according to the restored communication result.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods described above may be performed by instructions or by controlling associated hardware, and that the instructions may be stored on a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, which may include: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like. On which a computer program is stored, the computer program being loaded by a processor for executing the steps of any one of the fault cause determination methods of communication faults provided by the present application. For example, the loading of the computer program by the processor may perform the steps of:
when communication faults occur, judging the fault cause causing the communication faults according to the width value of the communication level of the receiving end and a preset level width threshold value, and switching off the communication between the transmitting end and the receiving end;
adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end;
and restoring communication between the transmitting end and the receiving end to obtain a restored communication result, and determining whether the failure cause is the failure cause causing the communication failure according to the restored communication result.
Since the instructions stored in the computer readable storage medium may perform the steps in the method for determining a failure cause of a communication failure according to any embodiment of the present application as shown in fig. 2 to 5, the beneficial effects that can be achieved by the method for determining a failure cause of a communication failure according to any embodiment of the present application as shown in fig. 2 to 5 can be achieved, which are detailed in the foregoing description and are not repeated herein.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of one embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description of other embodiments, which are not described herein again.
In the implementation, each unit or structure may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit or structure may be referred to the foregoing embodiments and will not be repeated herein.
The foregoing has described in detail the method, apparatus, device and storage medium for determining the failure cause of a communication failure, and specific examples have been used herein to illustrate the principles and embodiments of the present application, and the above description is only for aiding in the understanding of the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (9)

1. A method for determining a cause of a communication failure, the method comprising:
when communication faults occur, judging a fault cause causing the communication faults according to a width value of a communication level of a receiving end and a preset level width threshold value, and switching off communication between a transmitting end and the receiving end;
adjusting the communication baud rate according to the width value of the communication level, and adjusting the communication level sampling mode of the receiving end;
restoring communication between the sending end and the receiving end to obtain a restored communication result, and determining whether the fault cause is a fault cause causing communication faults according to the restored communication result;
wherein, according to the width value of the communication level of the receiving end and the preset level width threshold, judging the fault cause causing the communication fault, including:
comparing the width value of the communication level with the level width threshold;
and if the width value of the communication level is smaller than the level width threshold value, judging that the fault is caused by line aging to cause parasitic capacitance increase.
2. The method of claim 1, wherein said adjusting the communication baud rate based on the width value of the communication level comprises:
Judging the range of a preset level width range in which the width value of the communication level is located;
and adjusting the initial communication baud rate to be the communication baud rate corresponding to the interval range according to the interval range, wherein the initial communication baud rate is the communication baud rate corresponding to the width value of the communication level.
3. The method of claim 1, wherein said adjusting the communication level sampling manner of the receiving end comprises:
modifying the communication level sampling frequency of the receiving end to be a preset sampling frequency;
and adjusting the serial communication clock period of the sampling point according to the preset sampling times.
4. The method according to claim 1, wherein the recovered communication result includes a recovered communication success result, and the determining whether the failure cause is a failure cause causing a communication failure according to the recovered communication result includes:
if the communication recovery result is the communication recovery success result, determining that the fault reason is the fault reason causing the communication fault;
otherwise, determining that the fault cause is not the fault cause causing the communication fault.
5. The method of any of claims 1-4, wherein the communication level is high, and wherein the width value of the communication level is characterized by a high level time that is the sum of a time taken by a rising edge of the communication level to rise from a preset first value to a preset high level standard value, a time taken by the communication level to fall from the preset high level standard value, and a time taken by a falling edge of the communication level to fall from the preset high level standard value to a preset second value.
6. The method of any of claims 1-4, wherein the communication level is low, and wherein the width value of the communication level is characterized by a low level time that is the sum of the time taken for a falling edge of the communication level to fall from a preset third value to a preset low level standard value, the time taken for the communication level to be at the preset low level standard value, and the time taken for a rising edge of the communication level to rise from the preset low level standard value to a preset fourth value.
7. A failure cause determination device of a communication failure, comprising:
the comparison judging module is used for judging the failure cause of the communication failure according to the width value of the communication level of the receiving end and a preset level width threshold value when the communication failure occurs;
the switch module is used for switching off the communication between the sending end and the receiving end and recovering the communication between the sending end and the receiving end to obtain a recovered communication result;
the adjusting module is used for adjusting the communication baud rate according to the width value of the communication level and adjusting the communication level sampling mode of the receiving end;
the determining module is used for determining whether the fault reason is a fault reason causing communication fault or not according to the communication recovery result;
The comparison and judgment module is used for comparing the width value of the communication level with the level width threshold value; and if the width value of the communication level is smaller than the level width threshold value, judging that the fault is caused by line aging to cause parasitic capacitance increase.
8. A failure cause determination apparatus of a communication failure, characterized by comprising:
one or more processors;
a memory;
and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the failure cause determination method of communication failure of any of claims 1 to 6.
9. A computer-readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps in the failure cause determination method of communication failure of any of claims 1 to 6.
CN202110788030.3A 2021-07-13 2021-07-13 Method, device, equipment and storage medium for determining fault cause of communication fault Active CN113612630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110788030.3A CN113612630B (en) 2021-07-13 2021-07-13 Method, device, equipment and storage medium for determining fault cause of communication fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110788030.3A CN113612630B (en) 2021-07-13 2021-07-13 Method, device, equipment and storage medium for determining fault cause of communication fault

Publications (2)

Publication Number Publication Date
CN113612630A CN113612630A (en) 2021-11-05
CN113612630B true CN113612630B (en) 2023-11-14

Family

ID=78304502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110788030.3A Active CN113612630B (en) 2021-07-13 2021-07-13 Method, device, equipment and storage medium for determining fault cause of communication fault

Country Status (1)

Country Link
CN (1) CN113612630B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338264B (en) * 2021-12-17 2023-01-24 珠海格力电器股份有限公司 Bus communication quality control method and system, air conditioning unit and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204631155U (en) * 2015-04-27 2015-09-09 毕节供电局 Based on the cable properties aging tendency diagnostic system of energy-accumulating medium wideband polarization response
CN106788920A (en) * 2016-12-19 2017-05-31 珠海格力电器股份有限公司 A kind of baud rate deviation detecting method, device and indoor apparatus of air conditioner
CN112881806A (en) * 2020-12-21 2021-06-01 四川大学 Medium-voltage cable insulation online monitoring method based on impulse impedance spectroscopy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204631155U (en) * 2015-04-27 2015-09-09 毕节供电局 Based on the cable properties aging tendency diagnostic system of energy-accumulating medium wideband polarization response
CN106788920A (en) * 2016-12-19 2017-05-31 珠海格力电器股份有限公司 A kind of baud rate deviation detecting method, device and indoor apparatus of air conditioner
CN112881806A (en) * 2020-12-21 2021-06-01 四川大学 Medium-voltage cable insulation online monitoring method based on impulse impedance spectroscopy

Also Published As

Publication number Publication date
CN113612630A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
US9847891B2 (en) System and method for detecting reuse of an existing known high-speed serial interconnect link
US9578612B2 (en) Node device and method for communication
CN113612630B (en) Method, device, equipment and storage medium for determining fault cause of communication fault
US8566495B2 (en) Systems, methods and apparatus for data communication
CN108965560B (en) Antenna state detection method and terminal equipment
EP3433697B1 (en) Data transfer via a data and power connection
EP3852314A1 (en) Controller area network transceiver and controller
CN109768907A (en) A kind of CAN bus baud rate self-adapting setting method
EP3917087A1 (en) Controller and transceiver
WO2022184181A1 (en) Method and system for improving wireless communication quality of indoor and outdoor units of air conditioner on basis of power adjustment
US10055322B2 (en) Interpreting signals received from redundant buses
EP2787699A1 (en) Data transmission method, device, and system
US10727904B2 (en) Communication device, communication method and program
CN111400120B (en) Communication circuit, communication control method, circuit board and air conditioning system
US9980232B2 (en) Traffic shaping to mitigate brownout conditions
KR101871085B1 (en) Near-field communication system and method, and terminal
CN115102669B (en) Multi-split air conditioning system network communication method and device and multi-split air conditioning system
CN111586514A (en) TWS earphone control method, TWS earphone and related equipment
CN113360436A (en) PCIe device processing method, apparatus, device and storage medium
CN110708107A (en) Method and system for controlling operation of aircraft satellite data unit
CN113194016B (en) CAN bus baud rate self-adaption method and device based on TC387 chip and storage medium
CN104796181A (en) Short-wave double-antenna digital communication system and automatic receiving verification method for the same
US10891242B2 (en) Embedded USB2 (eUSB2) repeater operation
US20160306409A1 (en) Network control device
CN110056855B (en) Boiler failure monitoring method and system, computer storage medium

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
GR01 Patent grant
GR01 Patent grant