CN112448922A - Protocol conversion device for air conditioner, communication system and communication method - Google Patents

Protocol conversion device for air conditioner, communication system and communication method Download PDF

Info

Publication number
CN112448922A
CN112448922A CN201910816384.7A CN201910816384A CN112448922A CN 112448922 A CN112448922 A CN 112448922A CN 201910816384 A CN201910816384 A CN 201910816384A CN 112448922 A CN112448922 A CN 112448922A
Authority
CN
China
Prior art keywords
communication
air conditioner
protocol conversion
homekit
conversion device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910816384.7A
Other languages
Chinese (zh)
Inventor
石林炜
曹基宏
曹秀霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Hitachi Air Conditioning System Co Ltd
Original Assignee
Qingdao Hisense Hitachi Air Conditioning System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Hitachi Air Conditioning System Co Ltd filed Critical Qingdao Hisense Hitachi Air Conditioning System Co Ltd
Priority to CN201910816384.7A priority Critical patent/CN112448922A/en
Publication of CN112448922A publication Critical patent/CN112448922A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities

Abstract

The invention relates to a protocol conversion device, a communication system and a communication method for an air conditioner, wherein the protocol conversion device is used for protocol conversion between the air conditioner and a HomeKit platform and comprises the following steps: a power supply module; the protocol processing module comprises a master controller and a HOMEBUS communication module in communication connection with the master controller, wherein the HOMEBUS communication module comprises a HOMEBUS bus interface and is used for connecting an air conditioner using a HOMEBUS protocol; and the wireless communication module is in communication connection with the master controller and is used for receiving a first communication instruction sent by the HomeKit platform and sending a second communication instruction, and the second communication instruction is an instruction which is processed by the protocol processing module and is sent by the air conditioner. The invention is used for realizing protocol conversion between the air conditioner and the HomeKit platform, realizing bidirectional communication between the air conditioner and the HomeKit platform, and facilitating intelligent control and monitoring of the working state of the air conditioner through the HomeKit platform.

Description

Protocol conversion device for air conditioner, communication system and communication method
Technical Field
The invention relates to the field of intelligent control of air conditioners, in particular to a protocol conversion device, a communication system and a communication method for communication between a HomeKit platform and an air conditioner.
Background
At present, intelligent home management platforms in the market are numerous, and apple companies release own intelligent home platforms HomeKit for realizing seamless cooperation of different devices and different manufacturers. Apple, Inc., a well-known brand worldwide, attracts a large number of third party devices to access. Therefore, the remote and scene control of the central air conditioner can be realized through the HomeKit platform, voice control or non-air-conditioning equipment linkage control and the like can be performed through Siri or HomePod, the central air conditioner can be adjusted and monitored at any time and any place, for example, the on-off, the operation mode, the temperature, the air volume and the like of the central air conditioner can be set, the indoor information and the operation state of the air conditioner can be mastered in real time, the control approaches to the central air conditioner are enriched, the intelligentization of the air conditioner is facilitated to be improved, and the popularity of the air conditioner is also improved.
However, the communication protocol of the HomeKit gateway of the HomeKit platform is different from the communication protocol of the line controller, the remote controller, the centralized controller, etc. of the central air conditioner, and direct communication between the two cannot be realized, so that a communication device capable of connecting the central air conditioner to the HomeKit platform is needed to realize protocol conversion between the central air conditioner and the HomeKit platform, and further to intelligently control the air conditioner.
The above information disclosed in this background section is only for enhancement of understanding of the background of the application and therefore it may comprise prior art that does not constitute known to a person of ordinary skill in the art.
Disclosure of Invention
One of the objectives of the present invention is to provide a protocol conversion device for an air conditioner, which is used to implement protocol conversion between the air conditioner and a HomeKit platform, implement two-way communication between the air conditioner and the HomeKit platform, and facilitate intelligent control and monitoring of the working state of the air conditioner through the HomeKit platform.
In order to solve the technical problems, the invention provides the following technical scheme for solving the problems:
a protocol conversion device for an air conditioner, which is used for protocol conversion between the air conditioner and a HomeKit platform, is characterized by comprising: the power supply module supplies power to electric devices in the protocol conversion device; the protocol processing module comprises a master controller and an HOMEBUS communication module in communication connection with the master controller, wherein the HOMEBUS communication module comprises a HOMEBUS bus interface and is used for connecting an air conditioner using a HOMEBUS protocol; and the wireless communication module is in communication connection with the master controller and is used for receiving a first communication instruction sent by the HomeKit platform and sending a second communication instruction, wherein the second communication instruction is an instruction which is processed by the protocol processing module and is sent by the air conditioner.
In order to realize the control of the central air conditioners of various models, the protocol conversion device further comprises: and the dial switch loop is connected with the main controller and is used for setting the type of the air conditioner communicated with the protocol conversion device.
The protocol conversion device further comprises a power interface for connecting an external power supply and supplying power to the protocol conversion device.
The protocol conversion apparatus as described above, the power supply module includes: the first power supply loop is connected with the external power supply through the power supply interface and is used for providing a 12V direct-current power supply; and the second power supply loop is used for converting the 12V direct-current power supply output by the first power supply loop into a 5V direct-current power supply.
In the protocol conversion device, the master controller adopts a main control chip, and the HOMEBUS communication module adopts an MM1192 communication chip and receives signals alternately inverted by signals; a value range amplifying circuit and a value range reducing circuit are arranged between the main control chip and the MM1192 communication chip, the value range amplifying circuit is used for converting signals output by the MM1192 communication chip into binary output signals corresponding to the signals which are alternately inverted, and the value range reducing circuit is used for reducing the duty ratio of the low and medium level of the signals output by the signal sending end of the main control chip to 50%.
In the protocol conversion device, the input end of the value range amplifying circuit is connected to the output end of the MM1192 communication chip, and the output end of the value range amplifying circuit is connected to the signal receiving end of the main control chip; the value range amplifying circuit comprises a charging and discharging circuit, a first switch control circuit and a second switch control circuit; the charging and discharging circuit controls the on-off of the first switch control circuit according to the level output by the output end of the MM1192 communication chip; the output end of the first switch control circuit controls the on-off of the second switch control circuit; and the output end of the second switch control circuit is connected with the signal receiving end of the main control chip.
The protocol conversion apparatus as described above further includes: a first ac coupling circuit connected between a signal transceiving terminal of the air conditioner and an input terminal of the HOMEBUS interface; and the second alternating current coupling circuit is connected between the output end of the HOMEBUS interface and the signal transceiving end of the air conditioner.
The protocol conversion apparatus as described above further includes: and the negative voltage protection circuit is connected between the signal line A and the signal line B of the signal transceiving end.
The protocol conversion device for the air conditioner of this embodiment realizes the protocol conversion between central air conditioner and the HomeKit platform, inserts the HomeKit platform with central air conditioner, and the user of being convenient for passes through HomeKit platform intelligent control central air conditioner, and real time monitoring and update air conditioner state also can use pronunciation to realize equipment control or non-air conditioning equipment's coordinated control, promotes the user and uses experience and control enjoyment, helps promoting the air conditioner brand.
The second purpose of the present invention is to provide a communication system for an air conditioner, which includes a HOMEBUS for transmitting a communication signal of the air conditioner, a HomeKit platform, and the protocol conversion device as described above, wherein the HOMEBUS is connected to a HOMEBUS interface of the HOMEBUS communication module, and the wireless communication module is connected to a wireless router.
The communication system for the air conditioner of this embodiment realizes the two-way communication between central air conditioner and the HomeKit platform, through HomeKit platform intelligent control central air conditioner to central air conditioner's running state also can feed back to the HomeKit platform in real time, promotes the intellectuality of user control air conditioner, and user experience degree is good.
The third object of the present invention is to provide a communication method for an air conditioner, which is implemented by using the communication system, and comprises the following steps: the protocol conversion device and the air conditioner are successfully configured, and can be added into the HomeKit platform through a network; powering on the protocol conversion device; in a preset time period, if the protocol conversion device successfully shakes hands with the air conditioner, reading initial information of the air conditioner and sending the initial information to the HomeKit platform; and judging whether the wireless communication module initiates a query instruction, if so, sending the current information of the air conditioner to the HomeKit platform, if not, and if receiving a first communication instruction sent by the HomeKit platform, processing the first communication instruction through the protocol conversion module, sending the first communication instruction to the air conditioner, and feeding the current information of the air conditioner back to the HomeKit platform.
The communication method for the air conditioner realizes bidirectional communication between the central air conditioner and the HomeKit platform, the central air conditioner is intelligently controlled through the HomeKit platform, the running state of the central air conditioner can be fed back to the HomeKit platform in real time, the intellectualization of the air conditioner controlled by a user is improved, and the user experience is good.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present invention or the prior art will be briefly described below, and it is obvious that the drawings described below are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic connection diagram of an embodiment of a protocol conversion apparatus for an air conditioner according to the present invention;
FIG. 2 is a schematic connection block diagram of the embodiment of the protocol conversion device shown in FIG. 1 with a HomeKit platform and an air conditioner;
FIG. 3 is a schematic block diagram of a protocol conversion module in an embodiment of a protocol conversion apparatus for an air conditioner according to the present invention;
FIG. 4 is a schematic diagram of a protocol conversion module and a signal transceiving end of an air conditioner in the embodiment of the protocol conversion device shown in FIG. 1;
FIG. 5 is a circuit diagram of a portion of the signal transceiving end of the embodiment of the protocol conversion device and the air conditioner shown in FIG. 4;
FIG. 6 is a continuation of FIG. 5;
FIG. 7 is an output waveform of a portion of the circuit diagram shown in FIGS. 5 and 6;
fig. 8 is a flowchart illustrating an embodiment of a communication method for an air conditioner according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first" and "second" in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The communication between the central controller, the remote controller or the centralized controller and the indoor unit of the central air conditioner adopts a HOMEBUS communication protocol, and a HomeKit platform developed by apple Inc. is used as a universal intelligent home management platform, provides a uniform management interface aiming at the field of air conditioners, performs the operation of general functions, such as the start-stop, the operation mode, the temperature, the air volume and the like of the air conditioner, and monitors the running state, the indoor temperature, abnormal alarm information and the like of the air conditioner in real time. The present embodiment proposes a protocol conversion device, which is compatible with indoor units of different models and different functions, and implements mutual conversion between the HOMEBUS communication protocol of the central air conditioner and the HomeKit protocol, so as to implement sharing of information (including state of the outdoor unit, state of the indoor unit, temperature, operation mode, air volume, etc.) of the air conditioner by the HomeKit platform and a remote controller, a line controller, a centralized controller, etc. through the HomeKit bus communication protocol (e.g. Hi-NET bus communication protocol).
Example one
The protocol conversion device 10 of the present embodiment is used for protocol conversion between the air conditioner 20 and the HomeKit platform 30, and includes: a power supply module 11 for supplying power to the electric devices in the protocol conversion apparatus 10; the protocol processing module 12 comprises a master controller 121 and a HOMEBUS communication module 122 in communication connection with the master controller 121, wherein the HOMEBUS communication module 122 comprises a HOMEBUS interface and is used for connecting the air conditioner 20 using a HOMEBUS protocol; and the wireless communication module 13 is in communication connection with the master controller 121, and is configured to receive a first communication instruction sent by the HomeKit platform 30 and send a second communication instruction, where the second communication instruction is an instruction that a signal sent by the air conditioner 20 is processed by the protocol processing module 12. The wireless communication module in this embodiment is a WiFi module, but may also be other types of network modules, such as a WLAN module.
Specifically, as shown in fig. 1, which shows a schematic diagram of the connection of the protocol conversion device 10 of the present embodiment to the HOMEBUS (not shown) of the line controller for communication, the state of the air conditioner 20 is monitored together with the line controller, and therefore, the signal transceiver end (i.e., the port for transmitting the communication signal of the air conditioner 20) of the air conditioner 20 may refer to the HOMEBUS of the line controller for communication; of course, the protocol converter 10 may also be directly connected to the HOMEBUS (not shown) of the indoor unit for communication, so as to directly monitor the status of the indoor unit and control the operation of the indoor unit, and therefore, the signal transceiver of the air conditioner 20 (i.e., the port for transmitting the communication signal of the air conditioner 20) may also refer to the HOMEBUS of the indoor unit for communication. In the embodiment, the protocol conversion module device 10 communicates with the cloud, and data on the HomeKit platform 30 of the apple terminal device (e.g., iPhone, iPad, etc.) can be uploaded to the cloud, so that bidirectional communication between the air conditioner 20 and the HomeKit platform 30 is realized.
As shown in fig. 2, in the present embodiment, the bidirectional communication process between the air conditioner 20 and the HomeKit platform 30 is generally described as follows, the HOMEBUS of the air conditioner 20 communicates with the HOMEBUS interface of the HomeKit communication module 122, the protocol conversion module device 10 communicates with the cloud, the cloud communicates with the HomeKit platform 30, specifically, when the user changes the parameter of the air conditioner 20 through the operation on the HomeKit platform 30, a first communication command is transmitted to the wireless router (not shown) through the cloud, the wireless router transmits to the wireless communication module 13, the first communication command received by the wireless communication module 13 is transmitted to the main controller 121 through the UART (Universal Asynchronous Receiver/Transmitter) serial communication, the first communication command is processed by the main controller 121 and then transmitted to the HOMEBUS of the air conditioner 20, the first communication command can be input to the HOMEBUS of the indoor unit or the HOMEBUS controller for communication, and then input to the HOMEBUS of the indoor unit through the communication bus Then the indoor unit starts to act after receiving the communication command and executes the operation of the user; when the HOMEBUS of the air conditioner 20 sends out a communication signal, the signal may be sent out through the HOMEBUS of the indoor unit for communication or sent out through the HOMEBUS of the line controller for communication, the signal is received at the signal receiving side of the HOMEBUS communication module 122 and input to the main controller 121 for signal processing, and a second communication instruction acceptable by the wireless communication module 13 is transmitted to the wireless communication module 14 through UART serial port communication, and then uploaded to the cloud through the wireless router, and then the data is returned to the HomeKit platform 30 of the apple terminal device from the cloud, and the air conditioner information (including the start/stop, the operation mode, the temperature, the air volume, etc. of the air conditioner) on the HomeKit platform 30 is updated.
As shown in fig. 3, in the present embodiment, the protocol conversion module 12 includes a main controller 121, a first power circuit (not labeled), a second power circuit (not labeled), an EEPROM circuit (not labeled), an Electrically Erasable Programmable Read Only Memory (EEPROM), a dial switch circuit (not labeled), a buzzer circuit (not labeled), an indicator light circuit (not labeled), a communication circuit (not labeled), a WiFi circuit (not labeled), and a reset circuit (not labeled), specifically, the main controller 121 employs a main control chip, and the first power circuit, the second power circuit, the EEPROM circuit, the dial switch circuit, the buzzer circuit, the indicator light circuit, the communication circuit, the WiFi circuit, and the reset circuit are all connected to the main control chip in communication; the EEPROM circuit is used for saving and reading the state of the protocol conversion device 10 and the state of the air conditioner; the dial switch loop is used for setting the model of the air conditioner 20; the buzzer loop is used for fault alarm and self-checking completion alarm; the indicator light loop is used for power supply indication, operation indication, communication indication and wireless WiFi connection indication; the communication loop is used for converting a communication protocol connected with the air conditioner 20 and converting a communication protocol connected with the WiFi module; the WiFi loop is used for connecting the WiFi module and ensuring the normal work of the WiFi module; the reset circuit is used for resetting the main control chip in an abnormal state so as to reset the main control chip. The power supply module 11 of the present embodiment supplies power to the electric devices in the protocol conversion apparatus 10, and includes a power supply interface (not shown) for connecting an external power supply. The external power source may be ac mains supply, and the power module 11 includes a first power loop and a second power loop, where the first power loop is configured to convert ac mains supply into 12V dc power supply, and the second power loop is configured to convert 12V dc power supply into 5V dc power supply, so as to supply power to each loop in the protocol conversion module 12. Of course, the first power supply circuit may be provided in the power adapter to form a 12V power adapter, so that when the 12V power adapter is electrically connected to the protocol conversion device 10, the 12V power output from the 12V power adapter is converted into 5V dc power through the second power supply circuit. In this embodiment, each loop may be implemented by a loop known in the art, and is not described herein.
As shown in fig. 4, 5, and 6, which show schematic diagrams of connection of the protocol conversion module 12 to a signal transceiver terminal (i.e., a HOMEBUS) of the air conditioner 20, the HOMEBUS of the air conditioner 2 in the present embodiment includes a bus a and a bus B, the HOMEBUS communication module 122 in the present embodiment employs a MM1192 communication chip, which receives a signal (AMI signal for short) subjected to signal alternation Inversion (AMI), and the AMI signal serves as a digital transmission signal, and when used and output in a home bus system or the like, is configured with 3 values of zero, positive, and negative, and passes through a positive signal line and a negative signal line. In a communication system using this signal, a logic "1" is assigned to a zero level, and a logic "0" is alternately assigned to a positive or negative level. When the AMI signal passes through the MM1192 communication chip, when the level duty ratio output by the MM1192 communication chip is 50% IN logic "0" corresponding to positive pulse and negative pulse of the AMI signal, or when the master chip outputs corresponding logic "0", the MM1192 communication chip can only receive a communication command with a duty ratio of 50% at the bus interface, and the master chip sends/receives a communication command with a duty ratio of 100% corresponding to logic "0" or logic "1", so that, IN the first communication mode, the AMI signal from the HOMEBUS bus of the air conditioner 20 is received by the HOMEBUS bus interface on the signal receiving side of the MM1192 communication chip (i.e., pins IN1 and IN2 of the MM1192 communication chip IN fig. 5 and 6), and then a command with a duty ratio of 50% corresponding to logic "0" IN the AMI signal is output at the output terminal (i.e., pin OUT of the MM1192 communication chip IN fig. 5 and 6), wherein the command of logic "1" IN the AMI signal is transmitted synchronously, in a period of transmitting 1 bit, a signal with a duty ratio of 50% corresponding to a logic '0' in an AMI signal output by the MM1192 communication chip is converted into an instruction with a duty ratio of 100% through the value range amplification circuit 124, and a signal with a logic '1' in the AMI signal output by the MM1192 communication chip is synchronously transmitted through the value range amplification circuit 124 and received at a signal receiving end RXD of the main control chip, that is, a binary output signal (1011001 shown in fig. 7) corresponding to the AMI signal is transmitted to a signal receiving end RXD of the main control chip through the MM1192 communication chip and the value range amplification circuit 124, and is processed by the main control chip, and a signal (the instruction is called as a second communication instruction) acceptable by the WiFi module is transmitted to the WiFi module; IN the second communication mode, when the user changes the parameters of the air conditioner 20 through the operation of the HomeKit platform 30, the first communication command is transmitted to the wireless router (not shown) through the cloud, the wireless router is transmitted to the WiFi module, the first communication command received by the WiFi module is transmitted to the main control chip, the signal with the duty ratio of 100% is output at the signal transmitting end TXD of the main control chip after being processed by the main control chip and is transmitted to the value range reducing circuit 123, IN the period of transmitting 1 bit, the duty ratio of the low level corresponding to the logic "0" IN the transmission signal is 100% and is converted into the command with the duty ratio of 50% through the value range reducing circuit 123, the high level corresponding to the logic "1" IN the transmission signal is synchronously transmitted through the value range reducing circuit 123 and is all input to the input end of the MM1192 communication chip (i.e., the IN pin of the MM1192 communication chip IN fig. 5), and then the high level corresponding to the HOMEBUS interface at the MM1192 communication side (i.e., OUT/a and OUT/B pins of the MM1192 communication chip in fig. 5)) to the bus a and the bus B of the HOMEBUS of the air conditioner 20, and transmits the signals to the indoor units, the indoor units start to operate after receiving the signals, and the updated state of the air conditioners 20 is fed back to the HomeKit platform 30 by executing the first communication mode again.
As shown in fig. 4, 5 and 6, a voltage protection circuit 124 is connected between the bus a and the bus B of the HOMEBUS for protecting the subsequent circuits from overvoltage, overcurrent, and the like, which can be implemented by an overcurrent and overvoltage protection circuit known in the art.
Due to the technical requirements of the MM1192 communication chip, a bus driving circuit 128 is also connected between the bus a and the bus B, and as shown in fig. 5, the bus driving circuit is composed of an NPN transistor Q2 connected to the output pins OUT/a and OUT/a of the MM1192 communication chip and an NPN transistor Q1 connected to the output pins OUT/B and OUT/B for driving and amplifying the output signal.
The signal from the HOMEBUS is transmitted to the first ac coupling circuit 126 through the voltage protection circuit 124 for receiving the communication signal from the HOMEBUS, and the first ac coupling circuit 126 is implemented by selecting a corresponding resistor and a corresponding capacitor, so that noise such as a direct current signal is filtered from the signal received from the HOMEBUS. The first ac coupling circuit 126 of the present embodiment can be implemented by a coupling circuit known in the art.
The signal output from the MM1192 communication chip is transmitted to the HOMEBUS through the second ac coupling circuit 127 and the voltage protection circuit 124, wherein the second ac coupling circuit 127 is configured to send a communication signal to the HOMEBUS, and select a corresponding coupling capacitor according to the frequency of the communication signal of the MM1192 communication chip, so as to ensure that the signal sent to the HOMEBUS filters noise such as a dc signal. The second ac coupling circuit 127 of the present embodiment can be implemented by a coupling circuit known in the art.
According to the technical requirements of MM1192 communication chip, when the voltage below-6V is applied to the OUT/a, OUT/A, OUT/B and OUT/B pins, the triode will malfunction, in the communication loop of MM1192 communication chip, it is obvious that there is no possibility of negative voltage appearing at the OUT/a and OUT/B pins, and there is possibility of negative voltage appearing at the OUT/A and OUT/B pins, because the second AC coupling circuit 127 of this embodiment selects corresponding coupling capacitors to implement, the OUT/A pin OUT/B pin is connected with the HOMUS bus, therefore, in order to prevent negative voltage appearing and affect the normal operation of MM1192 communication chip, a negative voltage protection circuit 125 is arranged between the bus A and the bus B of the HOMUBS bus, specifically, a Zener diode ZD1 with Zener voltage of 3.87V ~4.1V is connected between the OUT/A pin and the ground, and a Zener diode ZD3 with Zener voltage of 3.87V-4.1V is connected between the OUT/B pin and the ground, so that even if negative voltage exists, the voltage is not lower than-6V. However, the OUT/a pin cannot be connected directly to ZD1 and the OUT/B pin cannot be connected directly to ZD3, so ZD2 connected in series with the head of ZD1 between ZD1 and ground and ZD4 connected in series with the head of ZD3 between ZD3 and ground. In the embodiment, the Zener voltages of the Zener diodes ZD 1-ZD 4 can be 3.87V-4.1V.
The specific circuits and operation principles of the range reduction circuit 123 and the amplification circuit 124 will be described in detail with reference to fig. 6 and 7.
In the second communication mode, as shown in fig. 7, the external data signal transmitted on the HOMEBUS is an AMI signal (its corresponding binary output signal is 1011001), and one cycle time required to transmit 1 bit (i.e., bit) is T1, and the cycle time of the SCK clock signal at the clock pin SCK of the master chip is also T1 and the duty ratio is 50%. As shown IN fig. 6, the first input terminal of the range reduction circuit 123 is connected to the TXD pin, the first input terminal is the anode of the diode D1, the cathode is connected to the IN pin of the MM1192 communication chip, the second input terminal is connected to the SCK pin, the second input terminal is the anode of the diode D2, the cathode is connected to the IN pin of the MM1192 communication chip, one end of the resistor R21 is connected to the cathode of the diode D1, the cathode of the diode D2 and the IN pin of the MM1192 communication chip, and the other end is grounded. Thus, as shown in fig. 7, the output signal of the range reduction circuit 123 is equivalent to taking the TXD signal and the SCK clock signal as an or, that is, the two signals take a high level when they have a high level, and take a low level when they are a low level, so that the high level of the TXD signal is transmitted equally in one period T1, and the duty ratio of the low level is reduced to 1/2, which ensures that the MM1192 communication chip can correctly identify the communication signal sent by the main control chip.
Although fig. 7 does not show the data transmission signal at the signal receiving end RXD of the master chip, for convenience of description, in this embodiment, it is considered that in the first communication mode, the external data signal transmitted on the HOMEBUS is an AMI signal (whose corresponding binary output signal is 1011001), one cycle time required for transmitting 1 bit is T1, the waveform of the signal transmitted through the MM1192 communication chip is the waveform of the signal after passing through the range reduction circuit 123 in fig. 7, and how to receive the signal output by the MM1192 communication chip by the RXD of the master chip is a key for realizing both communications.
As shown in fig. 6, the value range amplifying circuit 124 of this embodiment includes a charge and discharge circuit, a first switch control circuit and a second switch control circuit, an output end of the charge and discharge circuit is connected to an output end OUT of the MM1192 communication chip and controls on/off of the first switch control circuit according to a level output by the output end OUT, an output end of the first switch control circuit controls on/off of the second switch control circuit, and an output end of the second switch control circuit is connected to a signal receiving end RXD of the main control chip.
Specifically, as described with reference to fig. 6 and 7, the charging and discharging circuit of the present embodiment includes a resistor R40, a resistor R39, a resistor R45, a capacitor C16, and a switching diode D2, wherein the switching diode D2 is two diodes, the anodes of the two diodes are connected together to form pin 3, the cathode of one diode forms pin 1, and the cathode of the other diode forms pin 2, one end of the resistor R40 is connected to a first power VCC01 (for example, a +5V dc power supply), and the other end is connected to pin 2 of the switching diode D2 and the output terminal OUT of the MM1192 communication chip, one end of the resistor R39 is connected between the other end of the resistor R40 and the output terminal OUT, and the other end is connected between one end of the capacitor C16 and pin 3 of the switching diode D2, the other end of the capacitor C16 is grounded, one end of the resistor R45 is connected between the control end of the first switching control circuit and pin 1 of the switching diode D2, and the other end is grounded. The first switch control circuit and the second switch control circuit are high-level conducting switch circuits, such as NPN type triode, in the present embodiment, the first switch control circuit is exemplified by an NPN transistor Q3 and the second switch control circuit is exemplified by an NPN transistor Q4, a base b of the transistor Q3 is connected between one end of a resistor R45 and a pin 1 of a switching diode D2, an emitter e of a transistor Q3 is grounded, a collector c of Q3 is connected to a pull-up resistor R43 and to a base b of the transistor Q4, wherein the pull-up power supply connected with the pull-up resistor R43 is a second power supply VCC02 (such as +5V DC power supply), the emitter e of the triode Q4 is grounded, the collector c of the Q4 is connected with the pull-up resistor R42 and is connected with the signal receiving terminal RXD of the main control chip, wherein the pull-up power source connected to the pull-up resistor R43 is a third power source VCC03 (e.g., +5V dc power source).
To explain that the period for transmitting 1 bit is T1, the range amplifying circuit 124 is configured to convert the signal output by the MM1192 communication chip into a binary output signal corresponding to the AMI signal, as shown in fig. 7, for example, the signal waveform passing through the range reducing circuit 123 passes through the range amplifying circuit 124 to form a signal waveform passing through the range amplifying circuit 124, and the operation process is as follows.
(1) When the signal output by the output terminal OUT of the MM1192 communication chip is at a high level, the pins 3 and 2 of the switching diode D2 are not conducted, and the pins 3 and 1 are conducted, the first power source VCC01 starts to charge the capacitor C16 through the resistor R40 and the resistor R39 until the voltage V across the capacitor C16C16= VF(D2) + VBE(Q3)At this point the charging is over, where VF(D2)Is the forward voltage, V, of the switching diode D2BE(Q3)Is the voltage between the base b and the emitter e of the transistor Q3, the transistor Q3 is turned on, the voltage at the base b of the transistor Q4 is pulled low due to the turn-on of the transistor Q3, the transistor Q4 is turned off, and the third power supplyVCC03 outputs high level to RXD pin of the main control chip through resistor R42, and realizes the same transmission of high level of MM1192 communication chip.
(2) When the signal output by the output terminal OUT of the MM1192 communication chip changes from high level to low level, the capacitor C16 discharges to the output terminal OUT of the MM1192 communication chip through the pins 3 and 2 of the switching diode D2 until V is reached due to the fast discharging speed of the switching diode D2C16=VF(D2)The transistor Q3 is turned off, the voltage of the base b of the transistor Q4 is pulled high due to the turn-off of the transistor Q3, the transistor Q4 is turned on, the RXD pin of the main control chip outputs low level, and the low level transmission of the MM1192 communication chip is realized equally.
(3) When the signal at the output terminal OUT of the MM1192 communication chip changes from low level to high level, the pins 3 and 2 of the switching diode D2 are not conducted and the pins 3 and 1 are conducted, the first power source VCC01 starts to charge the capacitor C16 through the resistor R40 and the resistor R39, because the voltage V across the capacitor C16 is changed to high levelC16From VF(D2)Charging to VF(D2) + VBE(Q3)Q3 is turned on, and high is transmitted equally as described in section (1), so that voltage V is usedC12From VF(D2)Charging to VF(D2) + VBE(Q3)A period of time Δ T delays the low level, which is realized by extending the duty ratio of the low level 50% to the duty ratio of 100% in the period T1.
How to calculate the time Δ t will be described as follows.
According to the charging formula using the RC circuit,
Figure DEST_PATH_IMAGE001
wherein
Figure 705013DEST_PATH_IMAGE002
So as to obtain the result of the calculation,
Figure DEST_PATH_IMAGE003
where VCC01=5V in the present embodiment, and thus, specifically R40, R39, and C16 and VBE(Q3)The value needs to be known by specifically selecting the device, so as to extend the time of the low level tot. As shown in fig. 7, after passing through the value range amplifying circuit 124, for example, in the second period, the fifth period and the sixth period, the duty ratio of the low level of the signal waveform after passing through the value range reducing circuit 123 is 50%, and the duty ratio of the low level of the signal waveform after passing through the value range amplifying circuit 124 is 100%, so that the main control chip can correctly identify the communication signal.
Compared with an ideal communication waveform, an actual communication waveform is delayed in descending, and the low-level duty ratio is changed from 50% to 100%, so that as shown in fig. 4 and 5, a terminal loop 129 is connected in parallel between the bus a and the bus B of the HOMEBUS for ensuring signal transmission and preventing interference of terminal reflection to signals, in this embodiment, the terminal loop 129 may include a resistor and a capacitor connected in parallel, the resistor is used for solving the problem of communication waveform delay, and the capacitor is used for eliminating noise.
Protocol conversion between the air conditioner 20 and the HomeKit platform 30 is realized through the protocol conversion device 10, bidirectional communication between the air conditioner 20 and the HomeKit platform 30 is realized, the air conditioner 20 is intelligently controlled through the HomeKit platform 30 conveniently, the state of the air conditioner 20 can be fed back to the HomeKit platform 30, and intelligent monitoring on the air conditioner 20 is realized.
Example two
In order to realize the intelligent control of the air conditioner 20 through the HomeKit platform 30, in the present embodiment, a communication system for the air conditioner is provided, the air conditioner 20 includes a HOMEBUS for transmitting a communication signal of the air conditioner 20, and the bus can directly communicate with an indoor unit and can also directly communicate with a line controller, wherein the line controller communicates with the indoor unit. The communication system further includes the protocol conversion device 10, the structure and implementation of which refer to fig. 1 to 7 and the description thereof, which are not described herein again. The HOMEBUS communication module 122 IN the protocol conversion device 10 has a HOMEBUS interface (including the signal receiving terminal IN1/IN2 and the signal sending terminals OUT/B and OUT/a IN fig. 5), and the wireless communication module 13 IN the protocol conversion device 10 communicates with the cloud through a wireless router, so that bidirectional communication between signals transmitted on the HOMEBUS of the air conditioner 20 and signals transmitted by the HomeKit platform 30 can be realized.
EXAMPLE III
Referring to fig. 8, fig. 8 is a flowchart illustrating an embodiment of the communication method according to the present invention, wherein the flow of the embodiment is based on the communication system as described above.
(1) The protocol conversion device 10 and the air conditioner 20 are successfully configured and can be added into a HomeKit platform 30 through a network;
(2) thereafter, the protocol conversion apparatus 10 is powered on; after being powered on, the system is initialized firstly to configure parameters, including, for example, RAM (Random Access Memory) detection, ROM (Read-Only Memory, Read-Only Memory detection, RAM initial data setting, EEPROM data loading and detection, reset detection, self-diagnosis detection, centralized control detection and anomaly detection;
(3) judging whether the handshake between the protocol conversion device 10 and the air conditioner 20 is successful or not within a preset time period; specifically, the protocol conversion device 10 may send a broadcast message to an address of an indoor unit of the air conditioner 20, and if the indoor unit with the address receives the broadcast message within a predetermined time period, a feedback message is sent back to the protocol conversion device 10 to notify the protocol conversion device 10 that the handshake is successful, and if the feedback message of the indoor unit is not received within the predetermined time period, it indicates that the handshake between the protocol conversion device 10 and the air conditioner 20 is failed, and at this time, a buzzer circuit connected to the master controller 121 may be used to perform fault display; after the protocol conversion device 10 successfully handshakes the air conditioner 20, reading initial information of the air conditioner 20 and sending the initial information to the HomeKit platform 30;
(4) judging whether the wireless communication module 13 initiates a query instruction; the wireless communication module 13 initiates a query request in a fixed period, the protocol conversion module 12 responds in time, and the current information of the air conditioner 20 is fed back to the HomeKit platform 30; when the wireless communication module 13 receives a first communication instruction sent by the HomeKit platform 30, the first communication instruction is judged as a control instruction by the wireless communication module 13 and is transmitted to the protocol conversion module 12 for protocol conversion processing, so that the control of the indoor unit is realized by sending the control instruction to the air conditioner 20, the corresponding state of the indoor unit is set, meanwhile, the air conditioner 20 feeds back the current information of the air conditioner to the protocol conversion module 12 by using a HOMEBUS protocol, outputs a second communication instruction to the wireless communication module 13 after the protocol conversion processing is carried out, and updates the current information of the air conditioner 20 to the HomeKit platform 30; if the first communication command is not received in the inquiry command, the first communication command is invalidated.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A protocol conversion device for an air conditioner, which is used for protocol conversion between the air conditioner and a HomeKit platform, is characterized by comprising:
the power supply module supplies power to electric devices in the protocol conversion device;
the protocol processing module comprises a master controller and an HOMEBUS communication module in communication connection with the master controller, wherein the HOMEBUS communication module comprises a HOMEBUS bus interface and is used for connecting an air conditioner using a HOMEBUS protocol;
and the wireless communication module is in communication connection with the master controller and is used for receiving a first communication instruction sent by the HomeKit platform and sending a second communication instruction, wherein the second communication instruction is an instruction which is processed by the protocol processing module and is sent by the air conditioner.
2. The protocol conversion device according to claim 1, wherein the protocol processing module further comprises:
and the dial switch loop is connected with the main controller and is used for setting the type of the air conditioner communicated with the protocol conversion device.
3. The protocol conversion apparatus according to claim 1, further comprising:
and the power interface is used for connecting an external power supply and supplying electric energy to the protocol conversion device.
4. The protocol conversion device of claim 3, wherein the power module comprises:
the first power supply loop is connected with the external power supply through the power supply interface and is used for providing a 12V direct-current power supply;
and the second power supply loop is used for converting the 12V direct-current power supply output by the first power supply loop into a 5V direct-current power supply.
5. The protocol conversion apparatus according to claim 1,
the main controller adopts a main control chip, and the HOMEBUS communication module adopts an MM1192 communication chip and is used for receiving signals which are alternately inverted by the signals;
a value range amplifying circuit and a value range reducing circuit are arranged between the main control chip and the MM1192 communication chip, the value range amplifying circuit is used for converting the signals output by the MM1192 communication chip into binary output signals corresponding to the signals which are alternately inverted, and the value range reducing circuit is used for reducing the duty ratio of the low and medium level of the signals output by the signal sending end of the main control chip to 50%.
6. The protocol conversion device of claim 5, wherein an input terminal of the range amplifying circuit is connected to an output terminal of the MM1192 communication chip, and an output terminal of the range amplifying circuit is connected to a signal receiving terminal of the main control chip; the value range amplifying circuit comprises a charging and discharging circuit, a first switch control circuit and a second switch control circuit; the charging and discharging circuit controls the on-off of the first switch control circuit according to the level output by the output end of the MM1192 communication chip; the output end of the first switch control circuit controls the on-off of the second switch control circuit; and the output end of the second switch control circuit is connected with the signal receiving end of the main control chip.
7. The protocol conversion device according to any one of claims 1 to 6, wherein the protocol conversion module further comprises:
a first ac coupling circuit connected between a signal transceiving terminal of the air conditioner and an input terminal of the HOMEBUS interface;
and the second alternating current coupling circuit is connected between the output end of the HOMEBUS interface and the signal transceiving end of the air conditioner.
8. The protocol conversion device according to claim 7, further comprising:
and the negative voltage protection circuit is connected between the signal line A and the signal line B of the signal transceiving end.
9. A communication system for an air conditioner, comprising a HomeKit bus for transmitting a communication signal of the air conditioner, wherein the communication system further comprises a HomeKit platform and the protocol conversion device of any one of claims 1 to 8, the HomeKit bus is connected to the HomeKit bus interface of the HomeKit communication module, and the protocol conversion device communicates with a cloud.
10. A communication method for an air conditioner, which is implemented by the communication system according to claim 9, comprising the steps of:
the protocol conversion device and the air conditioner are successfully configured, and can be added into the HomeKit platform through a network;
powering on the protocol conversion device;
in a preset time period, if the protocol conversion device successfully shakes hands with the air conditioner, reading initial information of the air conditioner and sending the initial information to the HomeKit platform;
judging whether the wireless communication module initiates a query instruction,
if yes, sending the current information of the air conditioner to the HomeKit platform,
if not, and if a first communication instruction sent by the HomeKit platform is received, the first communication instruction is processed through the protocol conversion module and sent to the air conditioner, and the current information of the air conditioner is fed back to the HomeKit platform.
CN201910816384.7A 2019-08-30 2019-08-30 Protocol conversion device for air conditioner, communication system and communication method Pending CN112448922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910816384.7A CN112448922A (en) 2019-08-30 2019-08-30 Protocol conversion device for air conditioner, communication system and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910816384.7A CN112448922A (en) 2019-08-30 2019-08-30 Protocol conversion device for air conditioner, communication system and communication method

Publications (1)

Publication Number Publication Date
CN112448922A true CN112448922A (en) 2021-03-05

Family

ID=74734166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910816384.7A Pending CN112448922A (en) 2019-08-30 2019-08-30 Protocol conversion device for air conditioner, communication system and communication method

Country Status (1)

Country Link
CN (1) CN112448922A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411102A (en) * 2021-06-24 2021-09-17 珠海格力电器股份有限公司 Data transmission method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411102A (en) * 2021-06-24 2021-09-17 珠海格力电器股份有限公司 Data transmission method, device and system
CN113411102B (en) * 2021-06-24 2022-05-03 珠海格力电器股份有限公司 Data transmission method, device and system and storage medium

Similar Documents

Publication Publication Date Title
CN210327637U (en) Protocol conversion device for air conditioner and communication system
JP6501867B2 (en) Method, electronic device, and charger device for rapid USB charging
CN103036283A (en) Interval wireless charging communication device and interval wireless charging communication method
CN201207647Y (en) Two-wire system non-polarity master-slave type communication transceiver
CN109269033B (en) Centralized control converter and air conditioning system
CN108647180A (en) A kind of arithmetic system and corresponding electronic equipment
WO2011089375A1 (en) An led lighting apparatus with a battery monitoring device
CN108482148B (en) A kind of electric car bimodulus charging system and method
CN105827023A (en) Wireless charging method between terminals and terminals
CN103592869B (en) A kind of power electronic equipment control system and method
CN204290445U (en) A kind of wireless charger with Bluetooth function
CN204424946U (en) A kind of wireless charging device with NFC function
CN110138404B (en) Transceiver device for providing a wireless connection to a protection and control device
CN208477523U (en) A kind of arithmetic system and corresponding electronic equipment
CN112448922A (en) Protocol conversion device for air conditioner, communication system and communication method
US8912759B2 (en) Power supply system with variable supply voltage
CN210608648U (en) External wireless charging receiving device
EP3783834B1 (en) Control method, power receiving device and system
CN218005908U (en) Charging topological circuit, cleaning robot base station, cleaning system and cleaning robot
CN102916818A (en) Method, device and system for expanding POE service radius
US11165279B2 (en) Power supply apparatus, control apparatus for power supply apparatus, and method for controlling power supply apparatus
CN209842613U (en) Data transmission device
CN207895267U (en) A kind of switch control box
CN108199745B (en) System for parameter negotiation in copper wire data transmission process and application method
CN208128264U (en) A kind of control circuit for realizing nonpolarity power supply and communication based on two-wire system

Legal Events

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