Air conditioner brand identification circuit and identification method
Through the method of voltage collection and minimum interval time ratio, the air conditioner brand is quickly identified, solving the problems of cumbersome identification and damage in the existing technology. It is suitable for multi-brand air conditioning systems, simplifies the development process and improves stability.
Patent Information
- Application Number
- CN202410165817.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-05
AI Technical Summary
In the existing technology, air-conditioning brand identification is cumbersome and can easily lead to damage to the gateway or air-conditioning main control board. Especially in multi-brand air-conditioning systems, unified interface control is difficult and protocols need to be cracked. The process is cumbersome and unopened protocols are difficult to obtain.
The voltage difference between the air-conditioning buses is monitored through the voltage acquisition circuit, combined with the minimum interval time ratio, and the adaptive circuit is used to switch the receiving circuit to achieve rapid identification of air-conditioning brands and avoid protocol cracking. It is suitable for multi-brand air-conditioning systems.
It achieves rapid identification of multiple air-conditioning brands, reduces development complexity, avoids high-voltage damage, is suitable for multi-brand renovation projects, simplifies the air-conditioning bus differentiation process, and improves system stability.
Smart Images

Figure CN118091224B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioner detection, and in particular to an air conditioner brand identification circuit and identification method. Background Art
[0002] In the field of smart home, air conditioning control is an important part. Connecting the air conditioner to the smart home system can realize functions such as voice control, automatic power on and off, and sleep temperature adjustment, which can greatly enhance the user experience.
[0003] Most air conditioners, especially multi-split and water system air conditioners, do not have external interfaces, so they can only be controlled through air conditioner gateways. The air conditioner gateway sends codes based on the air conditioner's internal bus (internal and external unit communication bus) to realize the air conditioner's power on, power off, temperature setting and other functions. At present, air conditioners of different brands have different bus forms due to early design reasons, such as carrier type, CAN bus, 485 bus, etc., and some manufacturers have made adjustments based on them. For smart home terminals, it is hoped that the communication format of all air conditioners will be unified, so using air conditioner gateways to convert air conditioner protocols has become a necessary choice for smart home manufacturers.
[0004] The gateway itself must have the ability to identify the air conditioning bus and control it according to the corresponding communication protocol. The air conditioning bus identification must be correct. The wrong bus will cause the internal circuit of the gateway to burn (such as the carrier bus connected to the 485 control bus). The existing methods are: (1) Manually read the brand and model of the air conditioning outdoor unit, consult the manufacturer to obtain the bus type, select the gateway with the corresponding brand and circuit to connect to the air conditioning system, and provide a unified interface to the smart home controller. This solution requires construction personnel to conduct preliminary on-site surveys, and the construction unit must ensure contact with each manufacturer. During the process, it is easy to connect to the wrong gateway, causing the gateway product or the air conditioning main control board to burn and damage. (2) Use the protocol-based air conditioning brand identification method to crack the air conditioning bus data and monitor the air conditioning bus data to confirm the air conditioning brand based on the data content. This method requires obtaining or cracking the data protocol of each air conditioning brand. Under normal circumstances, the protocol is not open, so the air conditioning brand can only be determined by cracking the protocol, which is a cumbersome process. Summary of the invention
[0005] The purpose of the present invention is to provide an air conditioner brand identification circuit and identification method, which can realize rapid identification of air conditioner brands based on air conditioner bus voltage difference monitoring and minimum interval time ratio, and then select the corresponding air conditioner gateway according to the identification situation, solving the problems existing in the prior art. In order to achieve the above purpose, the present invention solves it through the following technical solutions:
[0006] In a first aspect, the present invention provides an air conditioner brand identification circuit, comprising:
[0007] The voltage acquisition circuit has a data processing terminal which is respectively connected to two air-conditioning buses and is used to detect the voltage difference between the two air-conditioning buses. Both of the two air-conditioning buses are provided with a voltage dividing resistor.
[0008] As a further technical solution, a non-carrier type receiving circuit includes a comparator and its output end is connected to the data processing terminal, and its input end is connected to the two air conditioning buses;
[0009] A relay is used to switch the voltage acquisition circuit and the non-carrier receiving circuit.
[0010] As a further technical solution, the data processing terminal is a single chip microcomputer.
[0011] In a second aspect, the present invention provides an identification method of the air conditioner brand identification circuit according to the first aspect, comprising the following steps:
[0012] For carrier-type buses, a voltage acquisition circuit is used to access the air-conditioning bus, and the obtained voltage difference between the buses is compared with the different voltage differences between air-conditioning buses of different brands, thereby identifying the air-conditioning brand.
[0013] As a further technical solution, if the comparison shows that it does not belong to a carrier type bus, the relay will be used to switch to a non-carrier type receiving circuit. By counting the ratio of the total minimum low level time within the set monitoring time to the total time, different data buses can be distinguished based on the ratio, and then the air conditioner brand can be identified.
[0014] As a further technical solution, the air-conditioning bus voltage values collected by the voltage collection circuit are average values.
[0015] As a further technical solution, the voltage acquisition circuit uses software average value filtering to read the average value of the voltage acquisition, converts it into voltage and divides it by the resistance voltage divider ratio to obtain the voltage of the two buses to the ground, and the difference between these two voltages can obtain the voltage difference of the two buses.
[0016] As a further technical solution, the non-carrier bus is a differential bus, and the differential data of the differential bus is converted into single-ended data through a comparator. The single-ended data enters the data processing terminal and can be processed.
[0017] As a further technical solution, the data processing terminal monitors the high and low level performance of the data on the bus, reads the minimum interval time between the rising edge and the falling edge, counts the number of occurrences of the minimum interval time and multiplies it to obtain the minimum low level total time.
[0018] As a further technical solution, a timer of the data processing terminal counts the number of occurrences of the minimum interval time.
[0019] The beneficial effects of the present invention are as follows:
[0020] (1) The present invention can use a voltage acquisition circuit to connect the carrier type bus to the air conditioning bus, compare the obtained voltage difference between the buses with the different voltage differences between the buses of air conditioners of different brands, and then identify the brand of the air conditioner.
[0021] (2) If the bus does not belong to the carrier type after comparison, the present invention switches to the non-carrier type receiving circuit through the relay, and statistically calculates the ratio of the total minimum low level time within the set monitoring time to the total time. Based on the ratio, different data buses can be distinguished, and then the air conditioner brand can be identified.
[0022] (3) The circuit of the present invention, which is composed of a voltage acquisition circuit, a non-carrier receiving circuit and a switching circuit relay, is an adaptive circuit that can detect carrier buses first, and can detect non-carrier buses after excluding carrier buses. It can identify almost all air conditioner brands, and does not require protocol analysis, reading and cracking, which greatly facilitates the development process of non-carrier buses. It is particularly suitable for renovation projects with multiple brands of air conditioners in one project, and for situations where multiple air conditioner buses are integrated in a control cabinet and cannot be distinguished.
[0023] (4) The present invention preferentially distinguishes the carrier-type air-conditioning bus through voltage detection, and then opens the non-carrier-type receiving circuit through a relay to prevent the carrier-type air-conditioning bus from damaging the high voltage of the non-carrier-type receiving circuit.
[0024] (5) The data processing terminal of the present invention is a single-chip microcomputer, and the use of voltage-dividing resistors can prevent the high-voltage bus from damaging the AD pin of the single-chip microcomputer. Since there is a floating ground problem between the differential buses, there is a common-mode voltage difference between the differential bus and the receiving circuit. Therefore, the range of the common-mode voltage difference can be flexibly adjusted through resistor voltage division to ensure that the voltage reading pin is within the AD acquisition value of the single-chip microcomputer. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their description are used to explain the present invention and do not constitute a limitation of the present invention. It should also be understood that these drawings are shown for simplicity and clarity and are not necessarily drawn to scale. The present invention will now be described and explained with additional features and details through the use of the accompanying drawings, in which:
[0026] Figure 1 A schematic diagram of a bus voltage acquisition circuit in an embodiment of the present invention is shown;
[0027] Figure 2 A schematic diagram of a non-carrier receiving circuit in an embodiment of the present invention is shown;
[0028] Figure 3 A schematic diagram showing the statistics of the bus low level ratio in an embodiment of the present invention is shown.
[0029] In the figure: 1. Microcontroller; 2. Comparator. DETAILED DESCRIPTION
[0030] The technical solutions in typical embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0031] Embodiment 1
[0032] like Figure 1 and Figure 2 As shown, this embodiment provides an air conditioner brand identification circuit, including a voltage acquisition circuit, a non-carrier type receiving circuit and a relay.
[0033] like Figure 1 As shown, the voltage acquisition circuit has a data processing terminal connected to two air-conditioning buses respectively, for detecting the voltage difference between the two air-conditioning buses, and both air-conditioning buses are provided with a voltage dividing resistor.
[0034] The voltage acquisition circuit realizes the reading of the voltage difference between the buses (hereinafter referred to as the voltage difference) through two groups of voltage dividers. In this embodiment, resistors R1 and R2 are provided on bus 1, and resistors R3 and R4 are provided on bus 2. The data processing terminal is a single-chip microcomputer, and the purpose of setting resistors and using resistor voltage dividers is to prevent the high-voltage bus from damaging the AD pin of the single-chip microcomputer. Since there is a floating ground problem between the differential buses, there is a common-mode voltage difference between the differential bus and the receiving circuit. Therefore, the range of the common-mode voltage difference can be flexibly adjusted through resistor voltage dividers to ensure that the voltage reading pin is within the AD acquisition value of the single-chip microcomputer.
[0035] It should be noted that the air conditioning bus is generally a two-wire system, which can be roughly divided into carrier type, 485 type, and CAN bus type. There is a certain voltage difference (hereinafter referred to as voltage difference) between the two lines of the carrier type air conditioning bus. The bus type can be preliminarily determined by the voltage difference. For example, if the bus voltage difference is between 28V and 35V, it can be determined as a Mitsubishi Electric brand, if the bus voltage difference is between 16V and 18V, it can be determined as a Panasonic air conditioning brand, and if the bus voltage difference is between 14V and 15V, it can be determined as a Daikin air conditioning brand.
[0036] High-voltage carrier air conditioners are mainly Mitsubishi Electric, Panasonic, and Daikin. After excluding these three brands, high-voltage bus carrier air conditioner brands can be eliminated. Since the high-voltage carrier air conditioner bus will inject high voltage into the 485 and CAN bus non-carrier bus receiving circuits, after the carrier bus is eliminated, it can be switched to the non-carrier receiving circuit through the relay. Among them, the relay is used to switch the voltage acquisition circuit and the non-carrier receiving circuit.
[0037] like Figure 2 As shown, the non-carrier receiving circuit includes a comparator 2, and its output end is connected to a data processing terminal, and its input end is connected to two air-conditioning buses. In this embodiment, the data processing terminal is a single chip microcomputer.
[0038] The non-carrier type bus is mainly a differential bus such as the CAN bus and the 485 bus. The differential data of the differential bus is converted into single-ended data through the comparator 2. The single-ended data enters the single-chip computer 1 and can be processed. For different air conditioners, the data of the communication protocol is different. The communication data of the same air conditioner on the bus is basically the same, and the data is expressed in the form of high and low levels on the bus. Therefore, the low level ratio is counted by the receiving circuit, and the specific air conditioner brand can be determined according to the different ratios.
[0039] Embodiment 2
[0040] This embodiment provides an identification method according to the air conditioner brand identification circuit in Embodiment 1, comprising the following steps:
[0041] For the carrier bus, a voltage acquisition circuit is used to access the air conditioning bus, and the obtained voltage difference between the buses is compared with the different voltage differences between the air conditioning buses of different brands, so as to identify the brand of the air conditioning. Among them, the air conditioning bus voltage values collected by the voltage acquisition circuit are average values. The voltage acquisition circuit uses software average value filtering to read the average value of the voltage collection, convert it into voltage and divide it by the resistance voltage divider ratio to obtain the voltage of the two buses to the ground. The difference between these two voltages can be obtained to obtain the voltage difference of the two buses.
[0042] If it is not a carrier type bus after comparison, the relay will be used to switch to the non-carrier type receiving circuit. By counting the ratio of the total minimum low level time within the set monitoring time to the total time, different data buses can be distinguished based on the ratio, and then the air conditioner brand can be identified.
[0043] like Figure 3 As shown, microcontroller 1 monitors the high and low level performance of data on the bus and reads the minimum interval time t between the rising edge and the falling edge. min , statistical minimum interval time t min The number of occurrences and multiplication thereof is the total minimum low level time. Among them, the timer of the data processing terminal counts the number of occurrences of the minimum interval time. Specifically, the general monitoring time t is 1 minute. After setting the monitoring time, the timer of the microcontroller is first turned on to read the minimum interval time t between the rising edge and the falling edge. min , that is, determine the time of each bit, then turn on the input capture function of the timer, when the capture value is equal to the minimum value, the counter increases by one, and after the total time monitoring is completed, the number of times of the counter is equal to the minimum interval time t minThe multiplication is the total time of the minimum low level, and the percentage of the total time of the minimum low level to the total time t can be calculated.
[0044] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.
Claims
1. A method for identifying an air conditioner brand, characterized in that: The following steps are involved: For carrier-type buses, a voltage acquisition circuit is used to access the air-conditioning bus, and the obtained voltage difference between the buses is compared with the different voltage differences between air-conditioning buses of different brands, thereby identifying the brand of the air-conditioning. If it is not a carrier bus after comparison, the relay will switch to the non-carrier receiving circuit. By counting the ratio of the minimum low level time to the total time within the set monitoring time, different data buses can be distinguished based on the ratio, and then the air conditioner brand can be identified. The data processing terminal monitors the high and low level performance of the data on the bus, reads the minimum interval time between the rising edge and the falling edge, counts the number of occurrences of the minimum interval time and multiplies it by the number to obtain the minimum low level total time.
2. A method for identifying an air conditioner brand as claimed in claim 1, characterized in that: The air conditioning bus voltage values collected by the voltage collection circuit are average values.
3. A method for identifying an air conditioner brand as claimed in claim 2, characterized in that: The voltage acquisition circuit uses software average filtering to read the average value of the voltage acquisition, converts it into voltage and divides it by the resistance voltage divider ratio to get the voltage of the two buses to ground, and the difference between these two voltages can get the voltage difference of the two buses.
4. The method for identifying an air conditioner brand as claimed in claim 1, characterized in that: The non-carrier bus is a differential bus. The differential data of the differential bus is converted into single-ended data through a comparator. The single-ended data enters the data processing terminal and can be processed.
5. The method for identifying an air conditioner brand as claimed in claim 1, characterized in that: The timer of the data processing terminal counts the number of occurrences of the minimum interval time.
