Patent Description:
Air conditioners include indoor units and outdoor units. For example, there are often information communication between an outdoor unit and indoor units of a multi-split air-conditioning unit. At present, the refrigerating capacity of a single module of the outdoor unit of the multi-split air-conditioning unit can reach <NUM> horsepower. If the four modules are combined and assembled, the refrigerating capacity of a set of outdoor unit can reach <NUM> horsepower, and the outdoor unit can be connected to <NUM> indoor units. From the perspective of development trend of the multi-split air-conditioning unit, the refrigerating capacity of the outdoor unit will continue to increase, so that one set of outdoor unit can be connected to more than <NUM> indoor units. The more the connected indoor units are, the longer the distance between the outdoor unit and the terminal indoor unit is. Document <CIT> describes a method for judging communication failures of an indoor unit and an outdoor unit of a varied-frequency air conditioner, comprising the following steps of: setting an indoor unit control chip on an indoor unit control panel to send a communication signal and setting the control chip on the indoor unit control panel to be capable of receiving the communication signal sent by the control chip; connecting a zero line of the indoor unit control panel and a signal line in short circuit; after undergoing a set detection time t, detecting whether the indoor unit control chip can normally receive the communication signal or not, if so, judging that the indoor unit has no communication failure, and the failure happens to an outdoor unit controller, otherwise, judging that the indoor unit has a failure; and disconnecting the zero line of the indoor unit control panel and the signal line, after the failure is eliminated, recovering the varied-frequency air conditioner to normally communicate. The method can be used for judging whether the communication failure of the variable speed controller happens to the indoor unit or the outdoor unit without externally connecting any test equipment.

In the process of realizing the embodiments of the present invention, it is found that there are at least the following problems in the related technology: in the process of communicating between the outdoor unit and the indoor units via Homebus (communication bus), as signal refraction interference is prone to occur during long-distance communication, the longer the distance between the outdoor unit and the indoor units is, the more serious the signal attenuation of Homebus communication will be, and thus, the normal communication detection between the indoor units and the outdoor unit of the multi-split air-conditioning unit cannot be guaranteed.

In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not a general comment, nor is it intended to determine key/important components or describe the protection scope of these embodiments, but serves as an introduction to the following detailed description.

The embodiments of the present invention provide a method according to claim <NUM> and device for communication detection according to claim <NUM> and an air conditioner according to claim <NUM> so as to solve the problem that in the Homebus communication process in the related technology, the communication waveform attenuation occurs due to the relatively long communication distance, which results in the problem that the communication data cannot be detected normally.

Some technical solutions provided by the embodiments of the present invention can achieve the following technical effects:.

The length level of the communication link is determined according to the time length of pulse data during transmission of data over the communication link, and then the detection time point of the data is confirmed, thereby realizing dynamic determination of the detection time point of data according to the time length of the pulse data, and data waveform attenuation caused by an excessively long distance is avoided by means of automatic adjustment of the detection time point, so that the correctness of data detection is ensured, and the stability of long-distance homebus communication is improved.

The above general descriptions and the descriptions hereinafter are only exemplary and explanatory, and are not used to limit the present application.

One or more embodiments are exemplified by corresponding drawings. These exemplified descriptions and drawings do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation, among which,.

<NUM>: Length level determining module; <NUM>: Detection time point determining module; <NUM>: Communication link length determining module; <NUM>: Acquiring unit; <NUM>: Judging unit; <NUM>: Processor; <NUM>: Memory; <NUM>: Communication interface; <NUM>: bus.

In order to have a more detailed understanding of the features and technical content of the embodiments of the present invention, the implementation of the embodiments of the present disclosure will be described in detail below with reference to the drawings. The attached drawings are for reference only, rather than limiting the embodiments of the present invention. In the following technical description, for the convenience of explanation, a number of details are used to provide a sufficient understanding of the disclosed embodiments. However, without these details, one or more embodiments can still be implemented. In other cases, in order to simplify the drawings, well-known structures and devices can be simplified for display.

The embodiment of the present invention provides a method for communication detection. As shown in <FIG>, the method comprises:.

determining a length level of a communication link according to a time length of pulse data during transmission of data over a communication link; and.

determining a detection time point according to the length level of the communication link.

After equipment is powered on, the data is received; the length level of the communication link is determined according to the time length of pulse data during transmission of data over the communication link, and then the corresponding detection time point on the communication link is determined according to the length level, thereby realizing dynamic adjustment of the location of the detection time point, and data waveform attenuation caused by an excessively long distance is avoided, so that the correctness of data detection is ensured, and the stability of long-distance homebus communication is improved. The time length of the pulse data can be the time lengths of high-level signals of the pulse data, or the time lengths of other non-zero-level signals; and the length level of the communication link is used to characterize the communication distance level of the data.

In some embodiments, as shown in <FIG>, the step S101 comprises:.

determining the time length of the pulse data; and.

determining that the communication link is at the first length level in a case where the time length of the pulse data is greater than a set threshold, and determining that the communication link is at the second length level in a case where the time length of the pulse data is less than or equal to the set threshold.

Wherein the time length of the pulse data comprises the time lengths of the high-level signals of the pulse data; and the length range of the communication link corresponding to the first length level is smaller than the length range of the communication link corresponding to the second length level.

Optionally, the value of the set threshold has a corresponding relationship with the transmission speed of the communication link. Optionally, the value of the set threshold is also related to margin design, and certain margin time is added for the value range of the set threshold according to margin requirements. Optionally, the value range of the margin time is <NUM>-<NUM> microseconds.

Optionally, when the baud rate of the communication link is <NUM>, that is, <NUM> bits of data are transmitted per second, then the transmission time of <NUM> bit of data is <NUM> microseconds, it can be seen that the time length of the high-level signal is at least <NUM> microseconds. When the time length of the high-level signal is less than <NUM> microseconds, the high-level signal of the data on the communication link cannot be detected correctly. For example, when the baud rate of the communication link is <NUM> and the margin time is <NUM> microseconds, the value of the set threshold is <NUM> microseconds.

Optionally, in the step S201, the determining the time length of the pulse data specifically comprises:.

Optionally, the N high-level signals can be N continuous high-level signals or N interval high-level signals.

When entering the data pulse test mode, the outdoor unit starts to send data, and the data reaches the indoor unit of the air conditioner through the communication link. After receiving the data, the indoor unit acquires the high-level signals in the pulse data, and calculates the average value of the time lengths of the N high-level signals as the time length of the pulse data. Optionally, N is the preset number of groups. For example, <NUM> high-level signals are obtained, and the average value of the time lengths T of the <NUM> high-level signals is calculated; and the average value T<NUM> of the time lengths of the high-level signals is obtained, and the length level of the communication link is determined according to the relationship between T<NUM> and the set threshold.

According to the above embodiment, that is, when T<NUM> is greater than <NUM> microseconds, it is determined that the communication link is at the first length level; and,
when T<NUM> is less than <NUM> microseconds, it is determined that the communication link is at the second length level.

Wherein the length range of the communication link corresponding to the first length level is smaller than the length range of the communication link corresponding to the second length level.

In some embodiments, the length level of the communication link can also comprise more than two levels. For example, on the basis of the first length level obtained according to the set threshold provided in the present embodiment, the first length level is continuously divided into more length levels according to the transmission speed of the communication link, so as to obtain a more stable and reliable time detection point.

In some embodiments, as shown in <FIG>, the step S102 comprises:.

acquiring a first mapping relationship between the length level of the communication link and the detection time point; and.

judging the length level of the communication link to which the communication link belongs, when the communication link is at the first length level, determining that the detection time point is the first detection time point according to the first mapping relationship, and when the communication link is at the second length level, determining that the detection time point is the second detection time point according to the first mapping relationship.

Wherein the first detection time point is earlier than the second detection time point.

The detection time point of the data is determined according to the mapping relationship between the length level of the communication link and the detection time point, and thus, the dynamic determination of the detection time point is realized.

Optionally, the detection time point range corresponding to the first length level is <NUM>-<NUM> microseconds; and the detection time point range corresponding to the second length level is <NUM>-<NUM> microseconds.

In some embodiments, as shown in <FIG>, the method further comprises:.

obtaining the time length of the pulse signal of the communication data according to the communication data detected at the detection time point; and.

obtaining the length of the communication link corresponding to the time length of the pulse signal by matching according to the second mapping relationship between the time length of the pulse signal and the length of the communication link.

According to the location of the detection time point determined in the step S102, the communication distance is confirmed; and the location of the detection time point is dynamically determined, so that when the communication data is detected, the situation that the accurate data cannot be detected at the fixed detection time point due to the data waveform attenuation is avoided.

Optionally, in the step S401, the time length of the pulse signal of the communication data can be the time length of the high-level signal or low-level signal of the received one bit of data. For example, when the time length of the pulse signal of the communication data is the time length of the received one bit of high-level signal, which is <NUM> microseconds, the length of the communication link corresponding to the time length of the pulse signal obtained by matching according to the second mapping relationship between the time length of the pulse signal and the length of the communication link is <NUM> meters; and when the time length is <NUM> microseconds, the length of the communication link corresponding to the time length of the pulse signal obtained by matching according to the second mapping relationship is <NUM> meters.

There is no need to add external equipment. The matching and inference of the communication distance is carried out according to the signal condition of the data received at the detection time point, so that the data waveform attenuation caused by the excessively long distance is avoided, the accuracy of data detection is ensured, and the stability of the long-distance Homebus communication is improved.

The embodiment of the present invention provides a device for communication detection. As shown in <FIG>, the device for communication detection comprises:.

After the equipment is powered on, the data is received; the length level of the communication link is determined according to the time length of the pulse data during transmission of data over the communication link, and then the corresponding detection time point on the communication link is confirmed according to the length level, thereby realizing dynamic determination of the detection time point, and data waveform attenuation caused by the excessively long distance is avoided, so that the correctness of data detection is ensured, and the stability of long-distance homebus communication is improved. Wherein the time length of the pulse data can be the time length of the high-level signals of the pulse data, or the time lengths of other non-zero-level signals; and the length level of the communication link is used to characterize the communication distance level of the data.

In some embodiments, the length level determining module <NUM> is configured to:.

Optionally, in the length level determining module <NUM>, the value of the set threshold has a corresponding relationship with the transmission speed of the communication link. Optionally, the value of the set threshold is also related to margin design, and certain margin time is added for the value range of the set threshold according to margin requirements. Optionally, the value range of the margin time is <NUM>-<NUM> microseconds.

When entering the data pulse test mode, the outdoor unit starts to send data, and the data reaches the indoor unit of the air conditioner through the communication link. After receiving the data, the indoor unit acquires the high-level signals in the pulse data, and calculates the average value of the time lengths of the N high-level signals as the time length of the pulse data. Optionally, N is the preset number of groups. For example, the length level determining module <NUM> obtains the <NUM> high-level signals, and calculates the average value of the time lengths T of the <NUM> high-level signals; and the average value T<NUM> of the time lengths of the high-level signals is obtained, and the length level of the communication link is determined according to the relationship between T<NUM> and the set threshold.

According to the above embodiment, that is, when T<NUM> is greater than <NUM> microseconds, it is determined that the communication link is at the first length level; and
when T<NUM> is less than <NUM> microseconds, it is determined that the communication link is at the second length level.

In some embodiments, the length level of the communication link can also comprise more than two levels. For example, on the basis of the first length level obtained according to the set threshold, the length level determining module <NUM> continuously divides the first length level into more length levels according to the transmission speed of the communication link, so as to obtain a more stable and reliable time detection point.

In some embodiments, as shown in <FIG>, the detection time point determining module <NUM> comprises:.

Optionally, according to the above-mentioned embodiment, the detection time point range corresponding to the first length level is <NUM>-<NUM> microseconds, and the detection time point range corresponding to the second length level is <NUM>-<NUM> microseconds.

In some embodiments, as shown in <FIG>, on the basis of the above-mentioned embodiments, the device for communication detection further comprises a communication link length determining module <NUM>; and the communication link length determining module <NUM> is configured to: obtain the time length of the pulse signal of the communication data according to the communication data detected at the detection time point, and
obtain the length of the communication link corresponding to the time length of the pulse signal by matching according to the second mapping relationship between the time length of the pulse signal and the length of the communication link.

The location of the detection time point is dynamically determined, so that when the communication data is detected, the situation that the accurate data cannot be detected at the fixed detection time point due to the data waveform attenuation is avoided.

Optionally, the time length of the pulse signal of the communication data can be the time length of the high-level signal or low-level signal of the received one bit of data. For example, when the time length of the pulse signal of the communication data is the time length of the received one bit of high-level signal, which is <NUM> microseconds, the length of the communication link corresponding to the time length of the pulse signal obtained by matching according to the second mapping relationship between the time length of the pulse signal and the length of the communication link is <NUM> meters; and when the time length is <NUM> microseconds, the length of the communication link corresponding to the time length of the pulse signal obtained by matching according to the second mapping relationship is <NUM> meters.

There is no need to add external equipment. The matching and inference of the communication distance is carried out according to the signal condition of the data received at the detection time point, so that the data waveform attenuation caused by the excessively long distance is avoided, the accuracy of data detection is ensured, and the stability of long-distance Homebus communication is improved.

The embodiment of the present invention provides an air conditioner, which comprises the device for communication detection.

A not claimed embodiment of the present disclosure provides a computer-readable storage medium which stores a computer-executable instruction; and the computer-executable instruction is configured to execute the above-mentioned method for communication detection.

A not claimed embodiment of the present disclosure provides a computer program product; the computer program product comprises a computer program stored on the computer-readable storage medium; the computer program comprises a program instruction; and when the program instruction is executed by a computer, the computer is enabled to execute the above-mentioned method for communication detection.

The above-mentioned computer-readable storage medium can be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.

The embodiment of the present disclosure provides electronic equipment, the structure of which is as shown in <FIG>; and the electronic equipment comprises:
at least one processor <NUM>, and a memory <NUM>, and can also comprise a communication interface <NUM> and a bus <NUM>, wherein in <FIG>, one processor <NUM> is taken as an example, and the processor <NUM>, the communication interface <NUM>, and the memory <NUM> can communicate with each other through the bus <NUM>. The communication interface <NUM> can be used for information transmission. The processor <NUM> can call a logic instruction in the memory <NUM> so as to execute the method for communication detection in the above-mentioned embodiment.

In addition, the above-mentioned logical instruction in the memory <NUM> can be implemented in the form of a software functional unit, and can be stored in the computer-readable storage medium when sold or used as an independent product.

As the computer-readable storage medium, the memory <NUM> can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the method in the embodiment of the present disclosure. The processor <NUM> executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory <NUM>, that is, the method for communication detection in the above-mentioned method embodiment is realized.

The memory <NUM> can comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the data storage area can store data created according to the use of terminal equipment, and the like. In addition, the memory <NUM> can comprise a high-speed random access memory, and can also comprise a non-volatile memory.

The technical solutions of the embodiments of the present invention can be embodied in the form of a software product. The computer software product is stored in one storage medium and comprises one or more instructions used for enabling one piece of computer equipment (which can be a personal computer, a server, or network equipment, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The above-mentioned storage medium can be a non-transitory storage medium, comprising: a plurality of media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or can be a transitory storage medium.

The above description and drawings fully illustrate the embodiments of the present disclosure for enabling those skilled in the art to practice them. Other embodiments can include structural, logical, electrical, procedural, and other changes. The embodiments only represent possible changes.

Those skilled in the art may realize that units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and the electronic hardware. Whether these functions are executed by hardware or software may depend on the specific application and design constraint conditions of the technical solution. The technical personnel can use different methods for each specific application to realize the described functions, but such realization should not be considered as going beyond the scope of the embodiments of the present disclosure. The technical personnel can clearly understand that for the convenience and conciseness of the description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the above-mentioned method embodiment, which is not repeated here.

In the embodiments disclosed herein, the disclosed method and products (comprising but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can only be logical function division, and there may be other division modes in actual implementation, for example, multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection can be indirect coupling or communication connection through some interfaces, devices or units, and can be in electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, the functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more than more units may be integrated into one unit.

Claim 1:
A method for communication detection, comprising:
(S101) determining with a length level determining module (<NUM>) a length level of a communication link according to a time length of pulse data during transmission of data over the communication link; and
(S102) determining with detection time point determining module (<NUM>) a detection time point according to the length level of the communication link.
wherein the determining a length level of a communication link with the length level determining module according to a time length of pulse data during transmission of data over the communication link comprises:
(S201) determining the time length of the pulse data;
(S202) determining that the communication link is at the first length level in a case where the time length of the pulse data is greater than a set threshold;
(S301, S302) determining that the communication link is at the second length level in a case where the time length of the pulse data is less than or equal to the set threshold; and
wherein the time length of the pulse data comprises the time lengths of high-level signals of the pulse data, and the length range of the communication link corresponding to the first length level is smaller than the length range of the communication link corresponding to the second length level.