Air conditioner

By using multiple analog switches to expand the serial port in the air conditioner, the problem of limited number of main MCU communication interfaces is solved, and signal acquisition of multiple sensors is realized, saving MCU resources, reducing costs, and improving design efficiency.

CN222951174UActive Publication Date: 2025-06-06HISENSE (SHANDONG) AIR CONDITIONING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422146664.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-06-06
Estimated Expiration
2034-09-02

AI Technical Summary

Technical Problem

The number of main MCU communication interfaces of existing air conditioners is limited and cannot support communication with more sensors, which may not be implemented when new functions are added or require frequent revisions, reducing development efficiency.

Method used

Multi-channel analog switches are used to expand the serial port, and the main MCU's one-channel communication interface supports multiple peripheral sensors of multiple electrical interfaces for communication, realizing signal acquisition.

Benefits of technology

It realizes signal acquisition of multiple sensors, saves MCU communication resources, reduces MCU selection requirements, reduces product costs, and improves the compactness and efficiency of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222951174U_ABST
    Figure CN222951174U_ABST
Patent Text Reader

Abstract

The utility model discloses an air conditioner which comprises an indoor unit. An outdoor unit; the multi-path sensor is mounted on the indoor unit and / or the outdoor unit; the signal acquisition circuit comprises a main control MCU (Microprogrammed Control Unit) which is arranged in the indoor unit and is provided with a communication module; the public input / output end of the multi-path analog switch is connected to the communication module, the control input end of the multi-path analog switch is connected to the GPIO pin of the main control MCU, and the independent input / output end of the multi-path analog switch is connected with the multi-path sensor; and the pull-down resistor is connected to a ground signal and the enabling end of the multi-path analog switch. And the multi-channel analog switch is used for connecting one of the plurality of independent input / output ends with the common input / output end according to the level of the control input end, so that the corresponding sensor is in communication connection with the main control MCU. According to the utility model, the master control MCU expands the serial port through the multi-path analog switch, so that one path of communication interface can support a plurality of peripheral sensors with a plurality of electrical interfaces for communication, the interfaces are flexible, and the compatibility is strong.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of air conditioning, and in particular relates to an air conditioner. Background Art

[0002] At present, the home appliance industry structure is being upgraded and adjusted, and intelligent technology is accelerating the empowerment of all home appliances. Smart home appliances are the general trend. The realization of smart home appliances is mainly through the perception and detection of smart sensors. The sensors currently used in air conditioners mainly include temperature and humidity sensors, gas and odor sensors, infrared sensor modules, gesture recognition modules, human body sensing and recognition modules, microphones and voice recognition modules, cameras and image recognition modules and other smart sensors.

[0003] Most of the sensor modules used in existing air conditioners are directly connected to the communication interface of the communication module of the main control MCU, or other electrical interfaces converted from its communication interface. Due to the limited number of communication interfaces of the main control MCU, it cannot support more sensor communications. If more sensors need to be monitored, an MCU with more communication interfaces must be replaced, which increases the selection requirements of the MCU and is relatively more expensive.

[0004] In addition, the iteration of new air conditioner products is often accompanied by the need to add new functions. The realization of new functions usually requires the addition of new sensors. In solving similar needs, the first thing to do is to evaluate whether the communication interface resources of the main control MCU are available. If not, this function will not be realized. If the communication interface of the main control MCU is still available, it is necessary to redraw the printed circuit board to add communication circuits, and frequent revisions will reduce development efficiency. Utility Model Content

[0005] The utility model aims to solve one of the technical problems in the related art at least to a certain extent. To this end,

[0006] According to an embodiment of the present disclosure, there is provided an air conditioner, comprising:

[0007] Multi-channel sensors, installed on the indoor unit and / or outdoor unit;

[0008] A signal acquisition circuit, comprising:

[0009] A main control MCU is arranged in the indoor unit, and the main control MCU has a communication module;

[0010] A multi-way analog switch, comprising a control input terminal, a common input / output terminal, and a plurality of independent input / output terminals, for connecting one of the plurality of independent input / output terminals to the common input / output terminal according to the level of the control input terminal;

[0011] The common input / output terminal is connected to the communication interface of the communication module, the control input terminal is connected to the GPIO pin of the main control MCU, and the plurality of independent input / output terminals are connected to the communication pins of the multi-channel sensor to switch the communication channel so that the corresponding sensor can establish a communication connection with the main control MCU;

[0012] The pull-down resistor is connected to the ground signal and the enable terminal of the multi-way analog switch to enable the multi-way analog switch to be in a normal working state.

[0013] The air conditioner provided by the technical solution can realize signal acquisition of multiple sensors by setting up a signal acquisition circuit. The signal acquisition circuit expands the serial port through a multi-channel analog switch, so that one communication interface on the main control MCU can support multiple peripheral sensors with multiple electrical interfaces for communication. The interface is flexible and has strong compatibility, which can save MCU communication resources, reduce MCU selection requirements, and reduce product costs. At the same time, using a pull-down resistor for enabling can save the number of pins of the main control MCU.

[0014] According to an embodiment of the present disclosure, the communication module is a UART module, the multi-channel analog switch is a dual-channel analog multiplexer CD4052B, the UART module is configured to be at least one, the number of the CD4052B is configured to be the same as that of the UART module and the two are connected in a one-to-one correspondence; by adopting the dual-channel analog multiplexer CD4052B, the function of converting 2 signals at a time can be realized, thereby improving the utilization efficiency of the main control MCU pins and also improving the operating efficiency.

[0015] According to an embodiment of the present disclosure, the common input / output terminal X pin of the CD4052B is connected to the receiving pin of the UART module, and the common input / output terminal Y pin is connected to the transmitting pin of the UART module; the two control input terminals of the CD4052B are respectively connected to the two GPIO pins.

[0016] According to an embodiment of the present disclosure, the main control MCU is connected to a configuration circuit, and the configuration circuit is used to turn off the sending enable and interrupt of the UART module and turn on the receiving enable and interrupt of the UART module after the main control MCU completes the sending of communication data; the configuration circuit is also used to turn on the sending enable and interrupt of the UART module and turn off the receiving enable and interrupt of the UART module after the main control MCU completes the reception and analysis of data; turning off unnecessary interrupts and enables during the sending or receiving of communication data can reduce operational interference and save energy on the main control MCU resources.

[0017] According to an embodiment of the present disclosure, the current output by the GPIO pin connected to the control input terminal reaches above 1 mA, so as to reliably drive the two control input terminals of CD4052B to set them, so as to control the selection of the communication channel of CD4052B.

[0018] According to the embodiments of the present disclosure, the communication data sent by the master MCU to the multi-channel sensors has the same settings for communication baud rate, data bits and stop bits, which has the advantages of simplifying configuration and improving data transmission reliability.

[0019] According to an embodiment of the present disclosure, the main control MCU is connected to a built-in timer, and the timer is used to generate a trigger signal according to a set timing period. The main control MCU controls the control input end to switch the communication channel based on the trigger signal to switch the communication channel at a fixed time; the timing period is greater than the transmission time of the communication data between the main control MCU and the sensor; the communication channel is switched by the main control MCU with delay, thereby ensuring subsequent scalability and the stability of the CD4052B chip select pin.

[0020] According to an embodiment of the present disclosure, the main control MCU is connected to a delay module, which is used to delay the preset time to turn on the communication module; after the main control MCU switches the communication channel, it sends communication data to the corresponding sensor through the communication module after a delay of a preset time; the delay setting ensures the stability of the chip select pin level of the CD4052B chip, ensures that after the communication channel is switched, the signal and communication channel status are stable, and improves the reliability of data transmission.

[0021] According to an embodiment of the present disclosure, the main control MCU communicates with each of the sensors in a polling manner, and can update the collected data regularly.

[0022] According to an embodiment of the present disclosure, there is also provided an air conditioner, comprising:

[0023] Multi-channel sensors, installed on the indoor unit and / or outdoor unit;

[0024] A signal acquisition circuit, comprising:

[0025] A main control MCU is arranged in the indoor unit, and the main control MCU has a communication module;

[0026] A multi-way analog switch, comprising a control input terminal, a common input / output terminal, and a plurality of independent input / output terminals, for connecting one of the plurality of independent input / output terminals to the common input / output terminal according to the level of the control input terminal;

[0027] The common input / output terminal is connected to the communication interface of the communication module, the control input terminal is connected to the GPIO pin of the main control MCU, and the plurality of independent input / output terminals are connected to the communication pins of the multi-channel sensor to switch the communication channel so that the corresponding sensor can establish a communication connection with the main control MCU;

[0028] The pull-up resistor is connected to the power supply voltage and the enable terminal of the multi-way analog switch to enable the multi-way analog switch to be in a normal working state.

[0029] The air conditioner provided by the technical solution can realize the signal acquisition of multiple sensors by setting up a signal acquisition circuit. The signal acquisition circuit expands the serial port through a multi-channel analog switch, so that one communication interface on the main control MCU can support multiple peripheral sensors with multiple electrical interfaces for communication. The interface is flexible and has strong compatibility, which can save the communication resources of the MCU, reduce the requirements for MCU selection, and reduce product costs. At the same time, the use of pull-up resistors for enabling can save the number of pins of the main control MCU. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a connection diagram of the main control MCU and multi-channel sensors in the prior art air conditioner;

[0031] Figure 2 System block diagram of an air conditioner according to an embodiment of the present disclosure;

[0032] Figure 3 is a schematic structural diagram of a refrigerant circuit according to an embodiment of the present disclosure;

[0033] Figure 4 is a schematic diagram of the circuit structure of an air conditioner according to an embodiment of the present disclosure;

[0034] Figure 5 is a schematic diagram of the hardware structure of a controller according to an embodiment of the present disclosure;

[0035] Figure 6 is a block diagram of a connection between a signal acquisition circuit and a multi-channel sensor according to an embodiment of the present disclosure;

[0036] Figure 7 It is a schematic diagram of the circuit structure of the main control MCU and the multi-channel sensor according to an embodiment of the present disclosure;

[0037] Figure 8 It is a schematic diagram of the circuit structure of a main control MCU and a multi-channel sensor according to another embodiment of the present disclosure;

[0038] Fig. 9 is a schematic diagram of the hardware structure of a signal acquisition circuit according to an embodiment of the present disclosure;

[0039] Fig.10 It is a schematic diagram of the hardware structure of a signal acquisition circuit according to another embodiment of the present disclosure.

[0040] In the above figures: air conditioner 10; indoor unit 1; indoor heat exchanger 11; indoor fan 12; outdoor unit 2; outdoor heat exchanger 21; compressor 22; outdoor fan 23; throttling device 3; refrigerant circuit 4; controller 5; four-way valve 6; signal acquisition circuit 7; main control MCU 71; UART module 711; multi-way analog switch 72; timer 73; delay module 74. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0042] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0043] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0044] The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "plurality" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. The terms "first", "second", "third" and the like involved in this application are merely used to distinguish similar objects, and do not represent a specific ordering of the objects.

[0045] The utility model provides an air conditioner 10, as shown below Figures 2 to 10 The air conditioner 10 provided in the present application is described.

[0046] In an exemplary embodiment of the air conditioner 10 provided by the present utility model, reference is made to Figure 2 The air conditioner 10 may include an indoor unit 1. The indoor unit 1 is usually arranged indoors for exchanging heat with the indoor environment.

[0047] Among them, the indoor unit 1 can be set as a wall-mounted type, a cabinet type, a ceiling unit, a duct unit, a curtain unit, a hanging unit, etc.

[0048] The air conditioner 10 may include an outdoor unit 2. The outdoor unit 2 is usually disposed outdoors and is used to bring indoor heat to the outdoors.

[0049] The indoor unit 1 and the outdoor unit 2 may be configured as an integrated unit or a split unit.

[0050] The indoor unit 1 may include an indoor casing. The indoor casing forms an appearance of the indoor unit 1.

[0051] An installation cavity is formed in the indoor housing and is used to accommodate and fix various components in the indoor unit 1.

[0052] The indoor housing may include an air inlet which is communicated with the installation cavity and serves as an inlet for air outside the indoor housing to flow into the installation cavity, allowing indoor wind to enter the installation cavity through the air inlet.

[0053] The indoor housing may include an air outlet which is in communication with the installation cavity and serves as an outlet for the heat exchange airflow in the indoor housing to flow out, allowing the airflow in the installation cavity to flow out through the air outlet.

[0054] The indoor unit 1 may include an indoor heat exchanger 11. The indoor heat exchanger 11 is disposed in the installation cavity and is used for performing heat exchange with the airflow in the indoor casing.

[0055] The indoor unit 1 may include an indoor fan 12. The indoor fan 12 is disposed in the installation cavity and is used to drive the air in the installation cavity to flow in a direction from the air inlet to the air outlet.

[0056] The outdoor unit 2 may include an outdoor casing.

[0057] The outdoor unit 2 may include an outdoor housing having a receiving space therein, and the outdoor housing forms the appearance of the outdoor unit 2.

[0058] The outdoor housing may include an outdoor air inlet, which may be in communication with the accommodation space and may be used to introduce outdoor air into the accommodation space.

[0059] The outdoor housing may include an outdoor air outlet, which may be in communication with the accommodation space and may be used to guide the air in the accommodation space out of the accommodation space.

[0060] The outdoor unit 2 may include an outdoor heat exchanger 21. The outdoor heat exchanger 21 may be disposed in the accommodation space.

[0061] The outdoor unit 2 may include an outdoor fan 23. The outdoor fan 23 may be disposed in the accommodation space. The rotation of the outdoor fan 23 causes outdoor air to enter the accommodation chamber from the outdoor air inlet to exchange heat with the outdoor heat exchanger 21, and the outdoor air after heat exchange flows out of the accommodation chamber from the outdoor air outlet.

[0062] The air conditioner 10 may include a compressor 22 .

[0063] The compressor 22 is provided in the outdoor unit 2. The compressor 22 is used to compress the refrigerant gas in a low-temperature and low-pressure state into a refrigerant gas in a high-temperature and high-pressure state, and discharge the compressed refrigerant gas to the condenser 42. The compressor may be a variable frequency compressor.

[0064] The air conditioner 10 may include a throttling device 3. The throttling device 3 is used for throttling. The throttling device 3 may be provided in the indoor unit 1 or the outdoor unit 2.

[0065] The air conditioner 10 may include a refrigerant circuit 4. Figure 3 The schematic diagram of the structure of the refrigerant circuit 4 is shown. The indoor unit 1 and the outdoor unit 2 are connected by connecting pipes to form a refrigerant circuit 4 for circulating the refrigerant.

[0066] The air conditioner 10 can perform indoor cooling or heating by circulating the refrigerant in the compressor 22, the condenser 42, the throttling device 3 and the evaporator 44 in sequence through the refrigerant circuit 4. Among them, one of the evaporator 44 and the condenser 42 is the indoor heat exchanger 11, and the other is the outdoor heat exchanger 21.

[0067] Continue to refer Figure 3The air conditioner 10 may include a four-way valve 6. The four-way valve 6 is arranged in the outdoor unit 2 to change the flow direction of the refrigerant in the refrigerant circuit 4.

[0068] In some embodiments of the present application, the air conditioner 10 may include a controller 5. The controller 5 is electrically connected to the indoor unit 1 and the outdoor unit 2 to control the operation of various components therein, so that various components of the air conditioner 10 operate to realize various predetermined functions of the air conditioner 10.

[0069] refer to Figure 4 The controller 5 is electrically connected to at least the compressor 22 , the throttling device 3 , the indoor fan 12 and the outdoor fan 23 .

[0070] The controller 5 refers to a device that can generate an operation control signal according to the instruction operation code and the timing signal to instruct the air conditioner 10 to execute the control instruction. For example, in response to a power-on or power-off instruction received from a user, the controller 5 can execute an operation related to the object selected by the power-on or power-off instruction. The controller 5 may include an indoor control device and an outdoor control device.

[0071] The present application embodiment also provides a hardware structure diagram of a controller 5, such as Figure 5 As shown, the controller 5 includes a processor, and optionally, a memory and a communication interface connected to the processor. The processor, the memory and the communication interface are connected via a bus.

[0072] The processor may be a central processing unit, a general-purpose processor, a network processor, a digital signal processor, a microprocessor, a microcontroller, a programmable logic device, or any combination thereof.

[0073] The processor may also be any other device having a processing function, such as a circuit, a device, or a software module. The processor may also include multiple CPUs, and the processor may be a single-core processor or a multi-core processor. The processor here may refer to one or more devices, circuits, or processing cores for processing data (such as computer program instructions). In this embodiment, the processor may be a main control MCU 71.

[0074] The memory may exist independently or be integrated with the processor. The memory may contain computer program code. The processor is used to execute the computer program code stored in the memory, thereby realizing the control method of the air conditioner system provided in the embodiment of the present application.

[0075] The communication interface can be used to communicate with other devices or communication networks. The communication interface such as wireless local area network can be a module, circuit, transceiver or any device capable of achieving communication. In this embodiment, the communication interface is a communication module built into the main control MCU 71.

[0076] The bus can be a peripheral component interconnection standard bus or an extended industrial standard structure bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0077] In some embodiments of the present application, the indoor unit 1 may include an indoor control device, wherein the indoor control device is mounted on the indoor unit housing and is electrically connected to the indoor fan 12 for at least controlling the operation of the indoor fan 12 .

[0078] The outdoor unit 2 may include an outdoor control device, wherein the outdoor control device is mounted on the outdoor housing, and the outdoor control device is electrically connected to the outdoor fan 23 and the compressor 22, and is used to at least control the operation of the outdoor fan 23 and the compressor 22.

[0079] It can be understood that the indoor control device is communicatively connected with the outdoor control device so that the indoor control device and data information in the indoor control device can be transmitted to each other to coordinate and manage the overall operation of the air conditioner 10.

[0080] In order to realize intelligent control of the air conditioner, the air conditioner 10 may include a multi-channel sensor, wherein the multi-channel sensor may be installed on the indoor unit 1 and / or the outdoor unit 2.

[0081] It is understandable that the sensor can be a temperature sensor, a humidity sensor, a TVOC sensor, an infrared sensor module, a gesture recognition module, a human body sensing and recognition module, a microphone and voice recognition module, a camera and image recognition module, and other intelligent sensors.

[0082] refer to Figure 1 In the related technologies, the communication mode of current sensors or modules is mostly realized through communication interfaces on the main control MCU side. When n types of sensors or modules need to be connected, the main control MCU needs to have n communication interface resources, which increases the requirements for MCU selection.

[0083] In this embodiment, the air conditioner 10 may include a signal acquisition circuit 7, and the signal acquisition circuit 7 is electrically connected to the multi-channel sensor to realize signal acquisition of the multi-channel sensor.

[0084] The signal acquisition circuit 7 may include a main control MCU 71 , and the main control MCU 71 has at least one communication module.

[0085] In this embodiment, the main control MCU 71 is arranged in the indoor unit, that is, the main control MCU 71 is a part of the indoor control device.

[0086] The signal acquisition circuit 7 may include a multi-way analog switch 72 .

[0087] Specifically, the multi-way analog switch 72 may include a common input / output terminal, wherein the common input / output terminal is connected to a communication module of the main control MCU 71 .

[0088] The multi-way analog switch 72 may include a control input terminal connected to a GPIO pin of the main control MCU 71 to switch the communication channel of the sensor according to the received level.

[0089] The multi-way analog switch 72 may include an enable terminal, which is used to control the on / off state of the multi-way analog switch 72 .

[0090] Specifically, the enable terminal is configured to switch the multi-way analog switch 72 between an enable state and a disable state according to an enable signal or a disable signal.

[0091] The multi-channel analog switch 72 may include independent input / output terminals, wherein the communication pins of the multi-channel sensors are connected to the independent input / output terminals.

[0092] The multi-way analog switch is used to connect one of multiple independent input / output terminals to the common input / output terminal according to the level of the control input terminal, so that the corresponding sensor can establish a communication connection with the main control MCU to complete signal acquisition.

[0093] Specifically, the air conditioner 10 provided in this embodiment can realize signal acquisition of multiple sensors through the signal acquisition circuit 7. The signal acquisition circuit 7 includes a multi-channel analog switch 72, and the main control MCU 71 extends the serial port through the multi-channel analog switch 72, so that one communication interface on the main control MCU 71 can support multiple peripheral sensors with multiple electrical interfaces for communication, and the interface is flexible and has strong compatibility.

[0094] By setting the multi-way analog switch 72, the communication resources of the MCU and the number of communication modules occupied can be effectively saved, the demand for MCU hardware resources can be reduced, the MCU selection requirements can be lowered, and the product cost can be reduced. At the same time, more functions can be realized under the limited pin resources of the main control MCU 71, making the design more compact and efficient.

[0095] refer to Figure 6 The multi-way analog switch 72 allows multiple sensor interfaces to be expanded through one serial port. This design provides flexibility for future function upgrades or increased demand, making it easier to expand the system or add new sensors. When a new sensor needs to be added, only the configuration needs to be adjusted without having to redesign and produce a new printed circuit board (PCB), which improves development efficiency and hardware universalization.

[0096] It is understandable that one of the enable signal and the disable signal of the multi-way analog switch chip 72 is a high level signal, and the other is a low level signal. The enable terminal can be a high level enable or a low level enable, depending on the design goal and application requirements.

[0097] In some embodiments of the present application, reference Figure 7 The signal acquisition circuit 7 may include a pull-down resistor R1. The enable terminal INH pin is connected to the ground signal GND through the pull-down resistor R1, and the multi-way analog switch 72 is always enabled, so that the multi-way analog switch 72 is in a normal working state.

[0098] That is to say, in this embodiment, the enable signal is set to a low level signal, and the disable signal is set to a high level signal. When the enable terminal is configured to a high level, the multi-way analog switch 72 is in a high impedance state, disabling the path of all signals; when the enable terminal is configured to a low level, the multi-way analog switch 72 is in a normal working state.

[0099] In this embodiment, the enable end of the multi-way analog switch 72 is pulled down to GND by a pull-down resistor for enabling, which can save the main control MCU 71 from operating the enable end INH pin of the multi-way analog switch 72 and save the number of MCU pins.

[0100] Of course, reference Figure 8 In some other embodiments, the signal acquisition circuit 7 may include a pull-up resistor R2. The enable terminal INH pin may be connected to the power supply voltage through the pull-up resistor R2 to always enable the multi-way analog switch 72 so that the multi-way analog switch 72 is in a normal working state and the device channel is enabled.

[0101] In some embodiments of the present application, the communication module of the main control MCU 71 may be a UART module 711 .

[0102] refer to Figure 7 The multi-channel analog switch 72 is a dual-channel analog multiplexer. By using a dual-channel analog multiplexer, the function of converting two signals at a time can be realized, the pin utilization efficiency of the main control MCU 71 can be improved, and the operation efficiency can also be improved.

[0103] The UART module 711 may be configured as at least one, and the number of the dual-channel analog multiplexers is configured to be the same as the number of the UART modules 711 and the two are connected in a one-to-one correspondence.

[0104] It is understandable that in actual design, the number of dual-channel analog multiplexers can be configured according to the number of sensors. By setting the multi-channel analog switch 72, multiple sensor interfaces can be reserved for subsequent function upgrades or increased requirements, avoiding redesign of printed circuit boards.

[0105] In this embodiment, the model of the dual-channel analog multiplexer is CD4052B. A dual-channel analog multiplexer CD4052B can expand the serial port of a UART module 711 into four sensor interfaces.

[0106] Of course, in some other embodiments, the multi-way analog switch 72 can select other types of chips, such as: IW4052BN / BD, RS22252, TPW4052, etc.

[0107] refer to Figure 7 In this embodiment, the dual-channel analog multiplexer CD4052B may include two common input / output terminals, which are a common input / output terminal X pin (XCOM) and a common input / output terminal Y pin (YCOM).

[0108] The common input / output terminal X pin is connected to the receiving pin RXD of the UART module 711 , and the common input / output terminal Y pin is connected to the transmitting pin TXD of the UART module 711 .

[0109] CD4052B may include two control input terminals, and the two control input terminals A and B are respectively connected to two GPIO pins of the main control MCU71, so that the common input / output terminals XCOM and YCOM can be connected to the four channels respectively according to the setting of A and B driven by the main control MCU71.

[0110] Continue to refer Figure 7 In this embodiment, the two control input terminals A and B of CD4052B are respectively connected to the two pins P0.0 and P0.1 of the main control MCU71.

[0111] Among them, the current of the two pins P0.0 and P0.1 of the main control MCU71 as GPIO output can stably reach more than 1mA, which can reliably drive A and B of the CD4052B chip to set A and B to control the channel selection of CD4052B. The truth table is as follows:

[0112] P0.1 P0.0 Channel Selection 0 0 Channel 0 0 1 Channel 1 1 0 Channel 2 1 1 Channel 3

[0113] Table 1: Channel selection table

[0114] In this embodiment, the multiple sensor modules can be UART serial communication interfaces, or other electrical interfaces based on UART serial interface conversion, which is not limited by this application.

[0115] refer to Figure 7 , Figure 8The transmitting pin TXD of the UART module 711 of the main control MCU 71 is connected to the UART receiving pin RXD of multiple external sensors through the multi-way analog switch 72. The main control MCU 71 is used to send the UART communication data through the transmitting pin of the UART module 711 to the UART receiving pin of the external module.

[0116] The receiving pin RXD of the UART module 711 of the main control MCU 71 is connected to the UART transmitting pin TXD of multiple external sensors through the multi-way analog switch 72. The external sensor is used to send UART communication data to the receiving pin RXD of the UART module 711 of the main control MCU 71 through its own UART transmitting pin TXD connection.

[0117] In some embodiments of the present application, the communication data sent by the master MCU 71 to the multi-channel sensors has the same settings for the communication baud rate, data bit, parity bit and stop bit. This setting ensures the correct transmission and analysis of the communication data, and has the advantages of simplifying the configuration and improving the reliability of data transmission.

[0118] Specifically, when the main control MCU71 communicates with multiple sensors, the baud rate is set to be the same to ensure that the data transmission rate is consistent, so that the main control MCU71 and the sensor can send and receive data at the same speed. The communication data format is the same to ensure that the main control MCU71 and the sensor use the same word length when processing data, and at the same time ensure that the receiving end can correctly identify the boundary of the data packet to avoid data loss or misinterpretation.

[0119] For example, when the main control MCU 71 communicates with multiple sensors, the communication data format is 2400 bps, 1 start bit, 8 data bits, and 1 stop bit, and the specific maximum length of the communication data is 50 bytes.

[0120] In some embodiments of the present application, reference Fig. 9 The main control MCU 71 may be connected to a timer 73, and the timer 73 is used to generate a trigger signal according to a set timing cycle. The timer 73 may be independent or integrated with the main control MCU 71, that is, the timer 73 may be a built-in timer of the main control MCU 71.

[0121] The main control MCU 71 controls the control input terminal to switch the communication channel based on the trigger signal generated by the timer 73, so as to switch the communication channel regularly to communicate with the sensor of the peripheral device. Among them, the timing period is greater than the transmission time of the communication data between the main control MCU 71 and a sensor to ensure the integrity of data transmission.

[0122] The timing period can be determined based on the communication baud rate and the data format of the communication data. In this embodiment, the timing period is configured to be 500ms.

[0123] Specifically, the main control MCU 71 switches the communication channel every 500ms to communicate with the peripheral sensor. When the 500ms timer overflow event is triggered, the main control MCU 71 controls the A and B pins of the CD4052B chip to select the communication channel.

[0124] In this embodiment, considering that the baud rate is 2400bps, the transmission time of one byte is about 4.16ms, the maximum length of a packet of data is 50 bytes, and the transmission time of a packet of data is about 200ms. In order to ensure the subsequent scalability and the stability of the chip select pin of the D4052B chip, 500ms is selected for timing transmission to ensure the reliability of data transmission.

[0125] In some embodiments of the present application, reference Fig.10 The main control MCU 71 may be connected to a delay module 74, which is used to delay the preset time to start the communication module. After the main control MCU 71 switches the communication channel, it sends the communication data to the corresponding sensor through the communication module after the preset time.

[0126] The delay module 74 can be independent or integrated with the main control MCU 71, that is, the delay module 74 is a built-in delay module of the main control MCU 71. In some embodiments, the delay module can be the above-mentioned timer 73, as long as it can play a delay role.

[0127] In this embodiment, the preset time is set to 50ms. The delay setting ensures the stability of the chip select pin level of the CD4052B chip, ensures that after the communication channel is switched, the signal and communication channel state are stable, and improves the reliability of data transmission.

[0128] For example, when CD4052B is selected to communicate with sensor 1, a delay count is performed, and when the delay time reaches 50ms, normal communication data communication is performed.

[0129] In some embodiments of the present application, the main control MCU is connected to a configuration circuit.

[0130] The configuration circuit is used to turn off the transmit enable and interrupt of the UART module and turn on the receive enable and interrupt of the UART module after the main control MCU completes the communication data transmission.

[0131] The configuration circuit is also used to turn on the transmit enable and interrupt of the UART module and turn off the receive enable and interrupt of the UART module after the main control MCU completes data reception and analysis.

[0132] It should be noted that the configuration circuit can be independent or a logic circuit integrated in the main control MCU 71 for automatically switching the working mode of the UART module.

[0133] Specifically, after the main control MCU 71 completes sending communication data to a sensor, the UART module 711 can be configured to turn off the send enable and interrupt, and turn on the receive enable and interrupt; after the main control MCU 71 receives and parses the communication data sent by the sensor, the UART module 711 can be configured to turn on the send enable and interrupt, and turn off the receive enable and interrupt, to ensure the efficiency and reliability of data communication.

[0134] Specifically, when the main control MCU71 and sensor 1 complete data transmission, the main control MCU71 immediately turns off the transmission enable and interrupt, and then turns on the reception enable and interrupt to switch to the reception mode. This setting can prevent the main control MCU71 from mistakenly sending additional data after the data transmission is completed, thereby avoiding interference with subsequent reception operations; turn on the reception enable and interrupt to prepare to receive the data sent from sensor 1, ensuring that the receiving process can respond and process the data in a timely manner.

[0135] The data sent by the receiving sensor 1 is analyzed and processed. After the analysis is completed, the sending enable and interrupt are turned on, and the receiving enable and interrupt are turned off to ensure subsequent communication with other sensors.

[0136] In some embodiments of the present application, the main control MCU 71 communicates with each sensor through polling.

[0137] The main control MCU 71 traverses the sensors in time order. The communication data between the main control MCU 71 and the sensors does not have a strong real-time requirement, and the collected data can be updated regularly through the regular sequential traversal, reducing complexity.

[0138] Specifically, the main control MCU71 switches the communication channel every 500ms to communicate with the peripheral sensor. When the 500ms timer overflow event is triggered, the main control MCU71 controls the A and B pins of the CD4052B chip to select the channel. When the communication with sensor 1 is selected, the delay count is performed, and when the delay time reaches 50ms, normal communication data communication is performed.

[0139] After the main control MCU71 and sensor 1 complete data transmission, the transmission enable and interrupt are immediately turned off, and then the reception enable and interrupt are turned on to switch to the reception mode, and the data of sensor 1 is received for analysis and processing. After the analysis is completed, the transmission enable and interrupt are turned on, and the reception enable and interrupt are turned off.

[0140] When the next 500ms timing transmission cycle arrives, the main control MCU71 sequentially traverses the sensors and controls the communication of sensor 2 through the A and B pins of the CD4052B chip. The specific communication process is the same as that of sensor 1.

[0141] It is understandable that the control process of sensor 3 and sensor 4 is consistent with that of the above-mentioned sensor 1, and will not be elaborated here.

[0142] The air conditioner 10 provided by the utility model can be connected to the multi-way analog switch 72 by using only one UART communication interface and two ordinary I / O ports of the main control MCU 71 on the basis of the existing communication scheme of the air conditioner 10, and the output of the multi-way analog switch 72 is then connected to the multi-way sensor of the peripheral device.

[0143] By outputting different level combinations of the two I / O ports of the main control MCU71, the main control MCU71 is selected to connect to a certain sensor, so as to realize the communication between the main control MCU71 and the currently connected sensor. After the main control MCU71 completes the communication with the first sensor, it can realize the communication with the second, third, and fourth sensors by changing the I / O level combination, thereby realizing the function of one UART communicating with multiple sensors, with flexible interface and strong compatibility, which can save the communication resources of MCU, reduce the requirements for MCU selection, and reduce the product cost.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the utility model, rather than to limit it. Although the utility model has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the utility model.

[0145] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. An air conditioner, characterized in that: include: Multi-channel sensors, installed on the indoor unit and / or outdoor unit; A signal acquisition circuit, comprising: A main control MCU is arranged in the indoor unit, and the main control MCU has a communication module; A multi-way analog switch, comprising a control input terminal, a common input / output terminal, and a plurality of independent input / output terminals, for connecting one of the plurality of independent input / output terminals to the common input / output terminal according to the level of the control input terminal; The common input / output terminal is connected to the communication interface of the communication module, the control input terminal is connected to the GPIO pin of the main control MCU, and the plurality of independent input / output terminals are connected to the communication pins of the multi-channel sensor to switch the communication channel so that the corresponding sensor can establish a communication connection with the main control MCU; The pull-down resistor is connected to the ground signal and the enable terminal of the multi-way analog switch to enable the multi-way analog switch to be in a normal working state.

2. The air conditioner according to claim 1, characterized in that: The communication module is a UART module, the multi-channel analog switch is a dual-channel analog multiplexer, the UART module is configured as at least one, the number of the dual-channel analog multiplexers is configured to be the same as the number of the UART modules and the two are connected in a one-to-one correspondence.

3. The air conditioner according to claim 2, characterized in that: The model of the dual-channel analog multiplexer is CD4052B, the common input / output terminal X pin of the CD4052B is connected to the receiving pin of the UART module, and the common input / output terminal Y pin is connected to the transmitting pin of the UART module; the two control input terminals of the CD4052B are respectively connected to the two GPIO pins.

4. The air conditioner according to claim 2 or 3, characterized in that: The main control MCU is connected to a configuration circuit, which is used to turn off the sending enable and interrupt of the UART module and turn on the receiving enable and interrupt of the UART module after the main control MCU completes the communication data sending; the configuration circuit is also used to turn on the sending enable and interrupt of the UART module and turn off the receiving enable and interrupt of the UART module after the main control MCU completes the data reception and analysis.

5. The air conditioner according to claim 1 or 3, characterized in that: The current output by the GPIO pin connected to the control input terminal reaches more than 1 mA.

6. The air conditioner according to claim 1, characterized in that: The communication data sent by the master control MCU to the multi-channel sensors have the same settings for communication baud rate, data bit and stop bit.

7. The air conditioner according to claim 1, characterized in that: The main control MCU is connected to a timer, and the timer is used to generate a trigger signal according to a set timing period. The main control MCU controls the control input end to switch the communication channel based on the trigger signal to switch the communication channel at a fixed time; the timing period is greater than the transmission time of the communication data between the main control MCU and one of the sensors.

8. The air conditioner according to claim 1 or 7, characterized in that: The main control MCU is connected to a delay module, and the delay module is used to delay a preset time to turn on the communication module; after the main control MCU switches the communication channel, it delays a preset time to send communication data to the corresponding sensor through the communication module.

9. The air conditioner according to claim 1 or 7, characterized in that: The main control MCU communicates with each of the sensors in a polling manner.

10. An air conditioner, characterized in that: include: Multi-channel sensors, installed on the indoor unit and / or outdoor unit; A signal acquisition circuit, comprising: A main control MCU is arranged in the indoor unit, and the main control MCU has a communication module; A multi-way analog switch, comprising a control input terminal, a common input / output terminal, and a plurality of independent input / output terminals, for connecting one of the plurality of independent input / output terminals to the common input / output terminal according to the level of the control input terminal; The common input / output terminal is connected to the communication interface of the communication module, the control input terminal is connected to the GPIO pin of the main control MCU, and the plurality of independent input / output terminals are connected to the communication pins of the multi-channel sensor to switch the communication channel so that the corresponding sensor can establish a communication connection with the main control MCU; The pull-up resistor is connected to the power supply voltage and the enable terminal of the multi-way analog switch to enable the multi-way analog switch to be in a normal working state.