CN111964274A - Water heater remote control method, device and system and storage medium - Google Patents

Water heater remote control method, device and system and storage medium Download PDF

Info

Publication number
CN111964274A
CN111964274A CN202010754794.6A CN202010754794A CN111964274A CN 111964274 A CN111964274 A CN 111964274A CN 202010754794 A CN202010754794 A CN 202010754794A CN 111964274 A CN111964274 A CN 111964274A
Authority
CN
China
Prior art keywords
water heater
communication link
cloud server
control
remote control
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.)
Granted
Application number
CN202010754794.6A
Other languages
Chinese (zh)
Other versions
CN111964274B (en
Inventor
卢楚鹏
陈怡新
欧阳盛聪
钟益明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Vanward New Electric Co Ltd
Guangdong Wanhe Thermal Energy Technology Co Ltd
Original Assignee
Guangdong Vanward New Electric Co Ltd
Guangdong Wanhe Thermal Energy Technology 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 Guangdong Vanward New Electric Co Ltd, Guangdong Wanhe Thermal Energy Technology Co Ltd filed Critical Guangdong Vanward New Electric Co Ltd
Priority to CN202010754794.6A priority Critical patent/CN111964274B/en
Publication of CN111964274A publication Critical patent/CN111964274A/en
Application granted granted Critical
Publication of CN111964274B publication Critical patent/CN111964274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24HFLUID HEATERS, e.g. WATER OR AIR HEATERS, HAVING HEAT-GENERATING MEANS, e.g. HEAT PUMPS, IN GENERAL
    • F24H9/00Details
    • F24H9/20Arrangement or mounting of control or safety devices
    • F24H9/2007Arrangement or mounting of control or safety devices for water heaters
    • F24H9/2035Arrangement or mounting of control or safety devices for water heaters using fluid fuel
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application relates to a water heater remote control method, a device, a system and a storage medium. The remote control method of the water heater can comprise the following steps: under the condition that the communication with the water heater through the first communication link fails, establishing a second communication link with the cloud server; the first communication link comprises a UDP communication link and the second communication link comprises a TCP communication link; transmitting the control instruction to the cloud server through a second communication link; the control instruction is used for instructing the cloud server to transmit the control information obtained by analyzing the control instruction to the water heater; and closing the second communication link when a response message fed back by the water heater based on the control information is received. The method and the device can realize failure compensation control, can prevent a user from using hot water under the condition of not confirming a control result (success or failure), and improve the control success rate.

Description

Water heater remote control method, device and system and storage medium
Technical Field
The present application relates to the field of water heater control technologies, and in particular, to a method, an apparatus, a system, and a storage medium for remote control of a water heater.
Background
At present, some gas water heaters adopt a remote controller for auxiliary control, and the control facilitates short-distance control of the gas water heaters by users. At present, a traditional wired control scheme and a power carrier wired control scheme mainly exist in the market, but the traditional wired control scheme needs to pre-embed and lay communication lines in advance or temporarily pull the wires, so that the installation is inconvenient, and the wire length is not easy to control. The power line carrier has high cost and cannot form standard configuration.
Along with the cloud intelligence gas heater prevalence of utensil WIFI function is higher and higher, adopt wireless WIFI's mode to develop the remote controller to with gas heater communication has had the feasibility, but in the realization process, the inventor finds that there is at least following problem in the conventional art: the traditional remote controller is communicated with a water heater, so that the problems of control failure, packet loss and the like easily occur.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a system and a storage medium for remote control of a water heater, which can improve the success rate of control.
The technical problem is solved by the following technical scheme:
a remote control method for a water heater comprises the following steps:
under the condition that the communication with the water heater through the first communication link fails, establishing a second communication link with the cloud server; the first communication link comprises a UDP communication link and the second communication link comprises a TCP communication link;
transmitting the control instruction to the cloud server through a second communication link; the control instruction is used for instructing the cloud server to transmit the control information obtained by analyzing the control instruction to the water heater;
and closing the second communication link when a response message fed back by the water heater based on the control information is received.
According to the remote control method of the water heater, the remote controller establishes the second communication link with the cloud server under the condition that the communication with the water heater through the first communication link fails, the transmission of the control instruction with the water heater is completed based on the second communication link, the control instruction transmitted to the cloud server is analyzed by the server, the cloud server issues the control instruction to the water heater, the water heater further returns an operation result (namely response information) to the remote controller, and if the operation is successful, the second communication link is closed, so that the failure compensation control is realized. The compensation mode that this application provided can prevent that the user from using hot water under the condition of not confirming the control result (success or not), promotes the control success rate.
In one embodiment, the method further comprises the following steps:
and under the condition that the response message fed back by the water heater based on the control information is not received, retransmitting the control instruction to the cloud server through the second communication link until the response message fed back by the water heater is received.
If the response message is not received, the confirmation operation is failed, and then a retransmission mechanism is triggered, and the control information is continuously sent by the second communication link, so that the failure compensation control is realized.
In one embodiment, before the step of establishing the second communication link with the cloud server in the case of communication failure with the water heater through the first communication link, the method further comprises the steps of:
under the condition that a wireless access point of the water heater is monitored, connecting the wireless access point, and acquiring distribution network information and a pairing identifier; the distribution network information comprises router information; the wireless access point is obtained under the condition that the water heater is successfully distributed with the remote control APP through the cloud server and the water heater is triggered to enter the AP mode;
and connecting a router accessed by the water heater in an STA mode according to the distribution network information to form a local area network, establishing a UDP communication link with the cloud server in the local area network, and completing pairing with the water heater through the pairing identifier.
Before the WIFI remote controller is matched with the water heater, the APP and the water heater are required to be firstly distributed with a network, then the water heater enters an AP mode, the remote controller is connected with an AP hotspot (namely a wireless access point) of the water heater to acquire distribution network information, and the distribution network information and the water heater are accessed into the same router in the STA mode to form a local area network so as to realize the distribution network of the remote controller, and further, a first communication link in the local area network is established.
In one embodiment, before the step of establishing the second communication link with the cloud server in the case of communication failure with the water heater through the first communication link, the method further comprises the steps of:
under the condition that a wireless access point of the water heater is monitored, connecting the wireless access point to form a local area network, and establishing a UDP communication link with a cloud server in the local area network; the wireless access point is obtained under the condition that the water heater is successfully distributed with the remote control APP through the cloud server and the water heater is triggered to enter the AP mode; the local area network is obtained by accessing a wireless access point through a plurality of remote controllers at present;
and acquiring a pairing identifier, and completing pairing with the water heater through the pairing identifier.
Before the remote controller is matched with the water heater, the APP and the water heater are required to be firstly distributed with a network, then the water heater enters an AP mode, and the remote controller is connected with an AP hotspot (namely a wireless access point) of the water heater; and the remote controllers under the same AP can form a local area network, so that the distribution network of the remote controllers is realized, and a first communication link in the local area network is established.
In one embodiment, the TCP communication link is a TCP short connection link; the control instruction is used for instructing the cloud server to transmit control information obtained by analyzing the control instruction to the water heater through the TCP long connection link; the response message includes current status data of the water heater.
The remote controller uploads the control instruction to the cloud server in a TCP short connection mode, and the control instruction is issued to the water heater through a TCP long connection link after being analyzed by the server; and the paired remote controllers can receive the current state fed back by the water heater.
In one embodiment, the method further comprises the following steps:
and under the condition of receiving the current state data of the water heater, updating the local display information of the corresponding water heater.
The paired remote controllers do not need to actively acquire the state of the water heater, and after the control is successful, the water heater can automatically synchronize the latest state to each paired remote controller.
A remote control device for a water heater, comprising:
the link establishing module is used for establishing a second communication link with the cloud server under the condition that the communication with the water heater through the first communication link fails; the first communication link comprises a UDP communication link and the second communication link comprises a TCP communication link;
the instruction transmission module is used for transmitting the control instruction to the cloud server through the second communication link; the control instruction is used for instructing the cloud server to transmit the control information obtained by analyzing the control instruction to the water heater;
and the link closing module is used for closing the second communication link under the condition of receiving a response message fed back by the water heater based on the control information.
A WIFI remote controller is used for realizing the steps of the method when executing a computer program.
In one embodiment, the WIFI remote controller comprises a WIFI radio frequency module and a main control chip which are integrated together.
The WIFI radio frequency module and the main control chip of integrated form are favorable for power consumption control of the WIFI remote controller.
The utility model provides a water heater remote control system, includes the water heater to and connect the water heater like the WIFI remote controller above.
In one embodiment, the water heater is a gas water heater; the number of the WIFI remote controllers is multiple; each WIFI remote controller is connected with a gas water heater;
under the condition that the gas water heater is successfully distributed with the remote control APP network, the gas water heater is triggered to enter an AP mode to provide a wireless access point;
each WIFI remote controller is paired with the gas water heater respectively, and when the pairing is successful, the WIFI remote controller is accessed into a wireless access point to form a local area network.
The invention can support the pairing, interactive control and synchronization of a plurality of WIFI remote controllers and the water heater.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a diagram of an exemplary remote control system for a water heater;
FIG. 2 is a flow chart illustrating a method for remotely controlling a water heater according to an embodiment;
FIG. 3 is a communication framework diagram of a remote control method for a water heater according to an embodiment;
FIG. 4 is a communication framework diagram of a remote control method for a water heater according to another embodiment;
FIG. 5 is a flow chart of a remote control method for a water heater according to another embodiment;
FIG. 6 is a schematic control flow chart of a remote control method for a water heater according to an embodiment;
FIG. 7 is a diagram of a communication framework for pairing and controlling multiple remote controllers in one embodiment;
FIG. 8 is a flow chart illustrating the control of pairing and controlling multiple remote controllers according to one embodiment;
FIG. 9 is a block diagram showing the structure of a remote control device for a water heater according to an embodiment;
fig. 10 is an internal structure diagram of the WIFI remote controller in an embodiment.
Reference numerals:
102. a remote controller; 104. a water heater; 106. an intelligent terminal; 110. a WIFI remote controller; 120. and (4) an integrated unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various communication links, but these links are not limited by these terms. These terms are only used to distinguish a first link from another link.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
With the increasing popularization rate of cloud intelligent gas water heaters with WIFI functions, remote controllers are developed in a wireless WIFI mode, and the remote controllers are feasible to communicate with the gas water heaters, but pairing and control schemes of the remote controllers are different for different manufacturers. Meanwhile, the user has a high requirement on the success rate of control, if control fails, if the water outlet temperature is set to be 50 ℃, the user still considers that the control is successful, and showering is performed, so that the user experience is influenced. Obviously, the communication between the WIFI remote controller and the water heater is affected by the strength and the distance of the router signal in the LAN, so that control failure and packet loss may occur, compensation cannot be performed, and user experience is affected.
Meanwhile, according to the size of the area of a household, one household gas water heater may be provided with more than one WIFI remote controller, and how to pair and control the plurality of remote controllers also becomes a problem to be solved urgently.
The remote control method for the water heater can be applied to the application environment shown in fig. 1. The remote controller 102 may communicate with the water heater 104 through a local area network, and the number of the remote controllers 102 may be multiple; further, in the application of the internet of things of the water heater, the water heater 104 may be controlled (for example, remotely controlled) by the intelligent terminal 106 based on the cloud server, and the intelligent terminal 106 may run a corresponding APP, that is, the APP remotely controls the water heater 104; the remote controller 102 may be a WIFI remote controller, the water heater 104 may be a gas water heater, the intelligent terminal 106 may be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the cloud server may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a remote control method for a water heater is provided, which is described by taking the application of the method to the remote controller in fig. 1 as an example, and includes the following steps:
and 202, under the condition that the communication with the water heater through the first communication link fails, establishing a second communication link with the cloud server.
The first communication link may include a UDP (User Datagram Protocol) communication link, and the second communication link may include a TCP (Transmission Control Protocol) communication link.
Specifically, as shown in fig. 3, the remote controller is connected with the water heater, communicates with each other with the UDP mode from first communication link, and the WIFI module of water heater can be connected to cloud ware, realizes remote interaction with APP. After the communication failure is performed on the first communication link (for example, the remote controller cannot reply when sending the control command), the remote controller can additionally establish a second communication link; and the second communication link may comprise a TCP communication link.
In a specific example, as shown in fig. 4, the remote controller may be connected to the water heater through a router, and the link 1 (i.e., the first communication link) in the lan communicates in a UDP manner, and the WIFI module of the water heater may be connected to the cloud server in a TCP long connection manner, so as to realize remote interaction with the APP. The router can be a common home router, and the remote controller can communicate with the router with or without an internet surfing function. When the intelligent terminal is matched with the water heater, the router with the internet surfing capability needs to be adopted.
Further, as shown in fig. 4, after the communication fails in the lan (for example, the remote controller cannot reply by sending a control command), the remote controller additionally establishes a link 2 (i.e., a second communication link); in the application, the remote controller constructs the second communication link and can be realized by utilizing the software capability of the remote controller, namely, the function can be realized without changing any hardware.
The UDP communication (namely the first communication link) has the advantages of high real-time performance and low power consumption, and is suitable for the WIFI remote controller to control the gas water heater; however, the inventor finds that unreliable and easy packet loss are likely to occur if only UDP communication is relied on, and therefore, the application proposes to adopt a compensation measure to improve the problem of low control success rate. The application proposes to establish a second communication link (e.g. a TCP communication link) with the cloud server to establish a compensation mechanism in case of a communication failure with the water heater over the first communication link.
Step 204, transmitting the control instruction to a cloud server through a second communication link; the control instruction is used for instructing the cloud server to transmit the control information obtained by analyzing the control instruction to the water heater.
Specifically, the remote controller additionally establishes a second communication link, uploads the control instruction to the cloud server through the second communication link, and sends the control instruction to the water heater after the control instruction is analyzed by the cloud server. Furthermore, the control success rate can be improved by transmitting the control command to the water heater through the established second communication link in time under the condition that the control of the first communication link fails.
In a specific embodiment, the TCP communication link in the present application may be a TCP short connection link; the control instruction is used for indicating the cloud server to transmit control information obtained by analyzing the control instruction to the water heater through the TCP long connection link;
specifically, taking the remote controller as a WIFI remote controller as an example, the WIFI remote controller additionally establishes a link 2 (a second communication link), further uploads a control instruction to the cloud server in a TCP short connection manner (i.e., a TCP short connection link), and the control instruction is issued to the gas water heater through a pre-established TCP long connection link after being analyzed by the cloud server. According to the method and the system, the control instruction is uploaded to the cloud server in a TCP short connection mode, namely the control instruction is sent once as the short connection for compensation processing, so that power consumption can be reduced, compensation time can be shortened, and user experience can be improved.
It should be noted that, in the present application, the remote controller may also communicate with the cloud server through the long TCP connection, but the long connection setup time is longer.
And step 206, closing the second communication link under the condition that a response message fed back by the water heater based on the control information is received.
Specifically, when the remote controller receives an operation result (i.e., a response message) fed back by the water heater, it confirms that the operation is successful, and then closes the second communication link, thereby implementing the failure compensation control.
In a particular embodiment, the response message may include current status data of the water heater; furthermore, the remote controller can update the local display information of the corresponding water heater under the condition of receiving the current state data of the water heater.
Specifically, the operation result (i.e., the response message) in the present application may refer to the latest state (i.e., the current state data) on the water heater after the control instruction is received. For example, the operation result may include all control functions provided on the remote controller, such as turning on and off the water heater, adjusting the temperature, selecting the mode, calling the function, and the like. And the remote controller displays the latest state after receiving the operation result.
In a specific embodiment, the method may further include the steps of:
and under the condition that the response message fed back by the water heater based on the control information is not received, retransmitting the control instruction to the cloud server through the second communication link until the response message fed back by the water heater is received.
Specifically, if no response message is received, the confirmation operation fails, and then a retransmission mechanism is triggered, and the control information continues to be transmitted by the second communication link, thereby implementing the failure compensation control. That is, if the operation fails, the retransmission mechanism is triggered, and the control information is continuously transmitted through the second communication link, so that the user can be prevented from using hot water under the condition that the control result (success or failure) is not confirmed, and the user experience and water use safety are improved.
According to the remote control method for the water heater, after control fails in the local area network, compensation measures are made through software modification, and the control command is sent to the water heater through the cloud server in a TCP short connection mode, so that the control success rate can be improved. Specifically, the remote controller establishes a second communication link with the cloud server under the condition that the communication with the water heater through the first communication link fails, and completes the transmission of the control instruction with the water heater based on the second communication link, so that failure compensation control is realized. The compensation mode that this application provided can prevent that the user from using hot water under the condition of not confirming the control result (success or not), promotes user experience and water safety.
In one embodiment, as shown in fig. 5, a remote control method for a water heater is provided, which is described by taking the application of the method to the remote controller in fig. 1 as an example, and includes the following steps:
step 502, forming a local area network with the water heater, and establishing a UDP communication link with the cloud server in the local area network; the water heater is successfully distributed in a network through the cloud server and the remote control APP.
Specifically, before the remote controller is paired with the water heater, the APP and the water heater need to be distributed in a network, then the water heater enters an AP (Access Point) mode, the remote controller is connected with an AP hotspot of the water heater to acquire distribution network information and a pairing identifier, and then the remote controller is accessed into a corresponding router to realize the distribution network of the remote controller (namely, a local area network between the remote controller and the water heater is formed), so that the establishment of a link 1 (namely, a first communication link-UDP communication link) is realized.
In a specific embodiment, in the case that the communication with the water heater through the first communication link fails, the step of establishing the second communication link with the cloud server may further include the steps of:
under the condition that a wireless access point of the water heater is monitored, connecting the wireless access point, and acquiring distribution network information and a pairing identifier; the distribution network information comprises router information; the wireless access point is obtained under the condition that the water heater is successfully distributed with the remote control APP through the cloud server and the water heater is triggered to enter the AP mode;
and connecting a router accessed by the water heater in an STA (Station) mode according to the distribution network information to form a local area network, establishing a UDP (user datagram protocol) communication link with the cloud server in the local area network, and completing pairing with the water heater through the pairing identifier.
Specifically, before the WIFI remote controller is matched with the water heater, the APP and the water heater are required to be firstly distributed, then the water heater enters the AP mode, the remote controller is connected with an AP hotspot (namely a wireless access point) of the water heater to acquire distribution network information, and the distribution network information and the water heater are accessed into the same router in the STA mode to form a local area network so as to realize the distribution network of the remote controller, and further establish a UDP communication link in the local area network.
Firstly, a water heater and an APP are distributed to realize a remote control function; then trigger water heater WIFI module and get into the AP mode, trigger the remote controller simultaneously and even access this AP hotspot, acquire router information and pair the sign. The remote controller and the water heater are connected into the same router to form a local area network, a UDP (user Datagram protocol) Server is established by the WIFI module on the water heater, and the remote controller can send a control instruction to the water heater in a UDP Client role to realize a control function.
It should be noted that, after the APP assists the water heater to join in marriage the network successfully, the function of APP remote control water heater can be realized alone. When the remote controller needs to be matched with the remote controller, the AP mode can be triggered by operating the function keys on the panel of the water heater again.
Further, in a specific embodiment, in the case that the communication with the water heater through the first communication link fails, the step of establishing the second communication link with the cloud server may further include the steps of:
under the condition that a wireless access point of the water heater is monitored, connecting the wireless access point to form a local area network, and establishing a UDP communication link with a cloud server in the local area network; the wireless access point is obtained under the condition that the water heater is successfully distributed with the remote control APP through the cloud server and the water heater is triggered to enter the AP mode; the local area network is obtained by accessing a wireless access point through a plurality of remote controllers at present;
and acquiring a pairing identifier, and completing pairing with the water heater through the pairing identifier.
Specifically, an AP hotspot can be directly generated by the water heater, and a plurality of WIFI remote controllers are accessed to the hotspot to form a local area network (all similar devices under the same AP can form a wireless local area network), thereby completing UDP communication in the local area network. Before the remote controller is matched with the water heater, the APP and the water heater are required to be firstly distributed, then the water heater enters an AP mode, and the remote controller is connected with an AP hotspot (namely a wireless access point) of the water heater; and the remote controllers under the same AP can form a local area network, so that the distribution network of the remote controllers is realized, and a first communication link in the local area network is established.
In the application, a plurality of remote controllers can form a local area network with the water heater without a router, and can also directly generate AP hot spots by the water heater, and the plurality of remote controllers are accessed into the hot spots to form the local area network so as to complete UDP communication in the local area network.
Step 504, completing pairing with the water heater;
specifically, after the distribution network is completed, the pairing identifier can be acquired, and the pairing with the water heater can be completed through the pairing identifier. After the local area network is formed, a UDP communication link between the local area network and the cloud server is established, and the local area network and the water heater are paired through the pairing identification.
Step 506, under the condition that the communication with the water heater through the UDP communication link fails, establishing a TCP communication link with the cloud server;
step 508, transmitting the control instruction to a cloud server through a TCP communication link; the control instruction is used for instructing the cloud server to transmit the control information obtained by analyzing the control instruction to the water heater;
and step 510, closing the TCP communication link when a response message fed back by the water heater based on the control information is received, and retransmitting the control instruction to the cloud server through the TCP communication link when a response message fed back by the water heater based on the control information is not received until the response message fed back by the water heater is received.
Specifically, the steps 506 to 510 may be implemented in the related manner discussed in the steps 202 to 206 in the foregoing embodiments, and are not described herein again. According to the method and the device, after the control of the remote controller in the local area network fails, a TCP short connection link is newly established, and a control instruction is issued to the water heater through the cloud server.
To further explain the solution of the present application, the following description is given with reference to a specific example, as shown in fig. 6, taking a remote controller as a WIFI remote controller as an example, first, a network is distributed for a water heater and an APP, so as to implement a remote control function. And then triggering the WIFI module of the water heater to enter an AP mode, triggering a WIFI remote controller to be connected into the AP hotspot, and acquiring router information and a pairing identifier. The WIFI remote controller and the water heater are connected into the same router to form a local area network, a UDP (user Datagram protocol) Server is established by the WIFI module on the water heater, and the WIFI remote controller sends a control instruction to the water heater in a UDP Client role to realize a control function. If the control fails, the control information is sent to the cloud server through the link 2TCP short connection (long connection can also be used), the cloud server is issued to the water heater through the TCP long connection to realize compensation measures, and if the control fails, the steps are repeated. The compensation mode can prevent the user from using hot water under the condition of not confirming the control result (success or failure), and improves the user experience and water use safety.
And the plurality of WIFI remote controllers can also directly generate AP hotspots by the water heater, and the plurality of WIFI remote controllers are accessed into the hotspots to form a local area network so as to complete UDP communication in the local area network.
In addition, the application also provides a matching and control scheme of multiple remote controllers, as shown in fig. 7 and 8, the number of the remote controllers is 3 for example; after the water heater and the APP finish the distribution network, the remote controller 1, the remote controller 2 and the remote controller 3 are respectively paired with the water heater, then the same family router is connected, the communication with the water heater is respectively carried out through a link 1/3/5, and meanwhile, each remote controller can update the state on the water heater according to the control result (namely, the remote control result) of other remote controllers. After control fails, each remote controller sends a control instruction to the cloud server in a TCP short connection mode through a link 2/4/6 respectively, and then the control instruction is forwarded to the water heater, so that compensation control is realized.
It should be noted that, in the present application, each remote controller is respectively connected to the water heater one to one, that is, the water heater has a plurality of remote controllers one to one; the processing logic of the current remote controller for obtaining the remote control result of the other remote controllers may include: the remote controller 1 sends a control instruction to the water heater, after the control is successful, the water heater can automatically synchronize the latest state to each paired remote controller, such as the remote controllers 1, 2 and 3, and all the remote controllers do not need to actively acquire the state of the water heater. And after the remote control result receives the control instruction, the latest state on the water heater. In one example, the remote control result may include all control functions provided on the remote controller, such as turning on and off the water heater, adjusting the temperature, selecting a mode, calling a function, and the like. Namely, the paired remote controllers do not need to actively acquire the state of the water heater, and after the control is successful, the water heater can automatically synchronize the latest state to each paired remote controller. Therefore, the method and the device can simultaneously support the pairing, the control and the state refreshing of a plurality of remote controllers.
It should be understood that although the steps in the flowcharts of fig. 2, 5, 6 and 8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 5, 6, and 8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 9, there is provided a remote control device for a water heater, including:
a link establishing module 910, configured to establish a second communication link with the cloud server if communication with the water heater through the first communication link fails; the first communication link comprises a UDP communication link and the second communication link comprises a TCP communication link;
an instruction transmission module 920, configured to transmit the control instruction to the cloud server through the second communication link; the control instruction is used for instructing the cloud server to transmit the control information obtained by analyzing the control instruction to the water heater;
and a link closing module 930, configured to close the second communication link when receiving a response message fed back by the water heater based on the control information.
According to the remote control device for the water heater, after the WIFI remote controller in the local area network fails to control, a TCP short connection link is newly established, and a control instruction is issued to a compensation measure of the water heater through the cloud server. The compensation mode that this application provided can prevent that the user from using hot water under the condition of not confirming the control result (success or not), promotes user experience and water safety.
In a specific embodiment, the instruction transmitting module 920 is further configured to, by the link shutdown module 930, re-transmit the control instruction to the cloud server through the second communication link, in a case that the response message of the water heater feedback based on the control information is not received, until the link shutdown module 930 receives the response message of the water heater feedback.
Specifically, in this application, if the instruction transmission module 920 does not receive the response message, the confirmation operation fails, and then the retransmission mechanism is triggered, and the control information continues to be sent through the second communication link, thereby implementing the failure compensation control.
In one embodiment, the method may further include:
the hot spot access module is used for connecting the wireless access point and acquiring distribution network information and pairing identification under the condition that the wireless access point of the water heater is monitored; the distribution network information comprises router information; the wireless access point is obtained under the condition that the water heater is successfully distributed with the remote control APP through the cloud server and the water heater is triggered to enter the AP mode;
the first network building module is used for connecting a router accessed by the water heater in an STA mode according to the distribution network information to form a local area network and building a UDP communication link with the cloud server in the local area network;
and the first pairing module is used for completing pairing with the water heater through the pairing identifier.
Specifically, before the WIFI remote controller is matched with the water heater, the APP and the water heater are required to be firstly distributed with a network, then the water heater enters an AP mode, the remote controller is connected with an AP hotspot (namely a wireless access point) of the water heater to acquire distribution network information, and the distribution network information and the water heater are accessed into the same router in the STA mode to form a local area network so as to realize the distribution network of the remote controller, and further, a first communication link in the local area network is established.
In a specific embodiment, the method may further include:
the second networking module is used for connecting the wireless access points to form a local area network under the condition that the wireless access points of the water heater are monitored, and establishing a UDP communication link with the cloud server in the local area network; the wireless access point is obtained under the condition that the water heater is successfully distributed with the remote control APP through the cloud server and the water heater is triggered to enter the AP mode; the local area network is obtained by accessing a wireless access point through a plurality of remote controllers at present;
and the second pairing module is used for acquiring the pairing identifier and completing pairing with the water heater through the pairing identifier.
Specifically, before the remote controller is paired with the water heater, the APP and the water heater are required to be firstly distributed, and then the water heater enters an AP mode, so that the remote controller is connected with an AP hotspot (namely a wireless access point) of the water heater; and the remote controllers under the same AP can form a local area network, so that the distribution network of the remote controllers is realized, and a first communication link in the local area network is established.
In a specific embodiment, the TCP communication link is a TCP short connection link; the control instruction is used for instructing the cloud server to transmit control information obtained by analyzing the control instruction to the water heater through the TCP long connection link; the response message includes current status data of the water heater.
Specifically, the control instruction can be uploaded to the cloud server in a TCP short connection mode, and the control instruction is issued to the water heater through a TCP long connection link after being analyzed by the server; and the paired remote controllers can receive the current state fed back by the water heater.
In one embodiment, the method may further include:
and the display updating module is used for updating the local display information of the corresponding water heater under the condition of receiving the current state data of the water heater.
Specifically, each paired remote controller does not need to actively acquire the state of the water heater, and after the control is successful, the water heater can automatically synchronize the latest state to each paired remote controller.
For specific limitations of the remote control device of the water heater, reference may be made to the above limitations of the remote control method of the water heater, and details are not repeated here. All or part of the modules in the remote control device for the water heater can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a WIFI remote controller is provided that implements the steps of the above method when executing a computer program.
In a specific embodiment, the WIFI remote controller includes a WIFI radio frequency module and a main control chip integrated together.
Specifically, as shown in fig. 10, the WIFI remote controller 110 may include an integrated unit 120, and the integrated unit 120 may include a WIFI radio frequency module and a main control chip integrated together. It should be noted that, the remote controllers mentioned in the embodiments of the present application may all adopt the structure shown in fig. 10 (not specifically shown in fig. 1, 3, 4 and 7) to implement corresponding functions.
The remote controller adopts the WIFI radio frequency module and the main control chip of integrated form in this application, is favorable to the power consumption control of WIFI remote controller. Specifically, in the WIFI remote controller in the present application, the functions of the WIFI radio frequency module and the main control chip on the WIFI remote controller can be implemented by one WIFI module (i.e. an integrated unit), and 2 independent units are not needed, which is more beneficial to controlling power consumption in the WIFI using process, such as entering a sleep mode, maintaining AP connection, and the like;
according to the WIFI wireless communication system, an integration scheme is adopted, the main control chip can directly operate the working state of the WIFI radio frequency, and the WIFI radio frequency can be automatically turned off when the main control chip is dormant; if the independent unit is used, state synchronization can be realized only by receiving and transmitting a communication protocol, power consumption loss exists in the period, power is supplied to 2 independent modules in a sleep state, and sleep current can be increased.
In one embodiment, a remote control system for a water heater is provided, and comprises the water heater and the WIFI remote controller connected with the water heater.
In one embodiment, the water heater is a gas water heater; the number of the WIFI remote controllers is multiple; each WIFI remote controller is connected with a gas water heater;
under the condition that the gas water heater is successfully distributed with the remote control APP network, the gas water heater is triggered to enter an AP mode to provide a wireless access point;
each WIFI remote controller is paired with the gas water heater respectively, and when the pairing is successful, the WIFI remote controller is accessed into a wireless access point to form a local area network.
Particularly, the WIFI remote controller can support pairing, interactive control and synchronization of a plurality of WIFI remote controllers and the water heater. Further, the specific work flow of the remote control system for the water heater can be realized by adopting the matching and control scheme of the plurality of remote controllers, which is not described in detail herein.
According to the WIFI remote controller, the WIFI radio frequency module on the WIFI remote controller is integrated with the main control chip (namely, the WIFI radio frequency module and the main control chip are integrated to realize the control of the WIFI remote controller), so that the power consumption in the use process of the WIFI can be controlled, such as entering a sleep mode, maintaining AP connection and the like; after control fails in the local area network, the method and the device have the advantages that compensation measures are made through software modification, a TCP short connection link is newly built, and a control instruction is issued to the water heater through the cloud server in a TCP short connection mode, so that user experience is improved, and the control success rate is improved. Simultaneously this application can support the pairing and control, the state refresh of a plurality of WIFI remote controllers, and a plurality of WIFI remote controllers pair with the water heater, interactive control and synchronization.
Those skilled in the art will appreciate that the configurations shown in fig. 1, 3, 4, 7, and 10 are merely block diagrams of some configurations related to the present disclosure, and do not constitute limitations on the components and devices to which the present disclosure may be applied, and that a particular configuration may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of the above-described remote control method for a water heater.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus DRAM (RDRAM), and interface DRAM (DRDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A remote control method for a water heater is characterized by comprising the following steps:
under the condition that the communication with the water heater through the first communication link fails, establishing a second communication link with the cloud server; the first communication link comprises a UDP communication link and the second communication link comprises a TCP communication link;
transmitting a control instruction to the cloud server over the second communication link; the control instruction is used for instructing the cloud server to transmit control information obtained by analyzing the control instruction to the water heater;
and closing the second communication link when a response message fed back by the water heater based on the control information is received.
2. The remote control method for the water heater according to claim 1, further comprising the steps of:
and under the condition that a response message fed back by the water heater based on the control information is not received, retransmitting the control instruction to the cloud server through the second communication link until the response message fed back by the water heater is received.
3. The remote control method for the water heater according to claim 1, wherein the step of establishing the second communication link with the cloud server in case of communication failure with the water heater through the first communication link is preceded by the step of:
under the condition that the wireless access point of the water heater is monitored, connecting the wireless access point, and acquiring distribution network information and a pairing identifier; the distribution network information comprises router information; the wireless access point is obtained under the condition that the water heater is successfully distributed with a remote control APP network through the cloud server and the water heater is triggered to enter an AP mode;
and connecting a router accessed by the water heater in an STA mode according to the distribution network information to form a local area network, establishing the UDP communication link with the cloud server in the local area network, and completing pairing with the water heater through the pairing identifier.
4. The remote control method for the water heater according to claim 1, wherein the step of establishing the second communication link with the cloud server in case of communication failure with the water heater through the first communication link is preceded by the step of:
under the condition that a wireless access point of the water heater is monitored, connecting the wireless access point to form a local area network, and establishing the UDP communication link between the wireless access point and the cloud server in the local area network; the wireless access point is obtained under the condition that the water heater is successfully distributed with a remote control APP network through the cloud server and the water heater is triggered to enter an AP mode; the local area network is obtained by accessing the wireless access point through a plurality of remote controllers currently;
and acquiring a pairing identifier, and completing pairing with the water heater through the pairing identifier.
5. The remote control method for the water heater according to any one of claims 1 to 4, wherein the TCP communication link is a TCP short connection link; the control instruction is used for indicating the cloud server to transmit control information obtained by analyzing the control instruction to the water heater through a TCP long connection link; the response message includes current status data of the water heater.
6. The remote control method of the water heater according to claim 5, further comprising the steps of:
and under the condition of receiving the current state data of the water heater, updating the local display information corresponding to the water heater.
7. A remote control device for a water heater, comprising:
the link establishing module is used for establishing a second communication link with the cloud server under the condition that the communication with the water heater through the first communication link fails; the first communication link comprises a UDP communication link and the second communication link comprises a TCP communication link;
the instruction transmission module is used for transmitting a control instruction to the cloud server through the second communication link; the control instruction is used for instructing the cloud server to transmit control information obtained by analyzing the control instruction to the water heater;
and the link closing module is used for closing the second communication link under the condition of receiving a response message fed back by the water heater based on the control information.
8. A WIFI remote control, wherein the WIFI remote control is configured to implement the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A WIFI remote control according to claim 8, wherein the WIFI remote control comprises a WIFI radio frequency module and a main control chip integrated together.
10. A remote control system for a water heater, comprising the water heater and the WIFI remote controller of claim 8 or 9 connected to the water heater.
11. The remote control system of a water heater as claimed in claim 10, wherein the water heater is a gas water heater; the number of the WIFI remote controllers is multiple; each WIFI remote controller is connected with the gas water heater;
under the condition that the gas water heater is successfully distributed with the remote control APP network, the gas water heater is triggered to enter an AP mode to provide a wireless access point;
and each WIFI remote controller is respectively paired with the gas water heater and is accessed to the wireless access point to form a local area network when the pairing is successful.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010754794.6A 2020-07-31 2020-07-31 Water heater remote control method, device and system and storage medium Active CN111964274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010754794.6A CN111964274B (en) 2020-07-31 2020-07-31 Water heater remote control method, device and system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010754794.6A CN111964274B (en) 2020-07-31 2020-07-31 Water heater remote control method, device and system and storage medium

Publications (2)

Publication Number Publication Date
CN111964274A true CN111964274A (en) 2020-11-20
CN111964274B CN111964274B (en) 2022-06-10

Family

ID=73364100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010754794.6A Active CN111964274B (en) 2020-07-31 2020-07-31 Water heater remote control method, device and system and storage medium

Country Status (1)

Country Link
CN (1) CN111964274B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114664072A (en) * 2022-03-18 2022-06-24 广州极飞科技股份有限公司 Remote control link management system, method, device, electronic device and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1243871A2 (en) * 2001-03-23 2002-09-25 BSH Bosch und Siemens Hausgeräte GmbH Method and device for adjusting a set point of a hot water boiler
TWM245388U (en) * 2003-02-27 2004-10-01 Taiwan Sakura Corp One-to-many control apparatus for remote-controlling water heater
CN201145948Y (en) * 2007-12-07 2008-11-05 厦门冠明光电科技有限公司 Multifunctional wireless remote controller
CN101457982B (en) * 2008-12-03 2011-10-05 宁波方太厨具有限公司 Control method for gas burner water heater and gas water heater using the method
CN203404988U (en) * 2013-07-24 2014-01-22 芜湖美的厨卫电器制造有限公司 Water heater system
CN104110871A (en) * 2013-07-24 2014-10-22 芜湖美的厨卫电器制造有限公司 Water heater system and control method thereof
CN204438539U (en) * 2015-01-18 2015-07-01 李俊楠 A kind of dual-mode cloud water-heater system based on Wi-Fi communication mode
CN105119946A (en) * 2015-06-17 2015-12-02 深圳市美贝壳科技有限公司 Intelligent household electrical appliance control device and method capable of automatically switching network
CN105911947A (en) * 2016-06-29 2016-08-31 珠海格力电器股份有限公司 Monitoring system for air conditioning unit and monitoring method
CN105978970A (en) * 2016-05-11 2016-09-28 珠海格力电器股份有限公司 Control mode selection method and device
CN206959357U (en) * 2017-03-24 2018-02-02 广东万家乐燃气具有限公司 A kind of WiFi remote controls and gas water heater control system
CN110173899A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 Method, water heater and Internet of things system based on Internet of Things control water heater
CN111415504A (en) * 2020-03-09 2020-07-14 珠海格力电器股份有限公司 Remote controller control method and device, storage medium and remote controller

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1243871A2 (en) * 2001-03-23 2002-09-25 BSH Bosch und Siemens Hausgeräte GmbH Method and device for adjusting a set point of a hot water boiler
TWM245388U (en) * 2003-02-27 2004-10-01 Taiwan Sakura Corp One-to-many control apparatus for remote-controlling water heater
CN201145948Y (en) * 2007-12-07 2008-11-05 厦门冠明光电科技有限公司 Multifunctional wireless remote controller
CN101457982B (en) * 2008-12-03 2011-10-05 宁波方太厨具有限公司 Control method for gas burner water heater and gas water heater using the method
CN203404988U (en) * 2013-07-24 2014-01-22 芜湖美的厨卫电器制造有限公司 Water heater system
CN104110871A (en) * 2013-07-24 2014-10-22 芜湖美的厨卫电器制造有限公司 Water heater system and control method thereof
CN204438539U (en) * 2015-01-18 2015-07-01 李俊楠 A kind of dual-mode cloud water-heater system based on Wi-Fi communication mode
CN105119946A (en) * 2015-06-17 2015-12-02 深圳市美贝壳科技有限公司 Intelligent household electrical appliance control device and method capable of automatically switching network
CN105978970A (en) * 2016-05-11 2016-09-28 珠海格力电器股份有限公司 Control mode selection method and device
CN105911947A (en) * 2016-06-29 2016-08-31 珠海格力电器股份有限公司 Monitoring system for air conditioning unit and monitoring method
CN206959357U (en) * 2017-03-24 2018-02-02 广东万家乐燃气具有限公司 A kind of WiFi remote controls and gas water heater control system
CN110173899A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 Method, water heater and Internet of things system based on Internet of Things control water heater
CN111415504A (en) * 2020-03-09 2020-07-14 珠海格力电器股份有限公司 Remote controller control method and device, storage medium and remote controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114664072A (en) * 2022-03-18 2022-06-24 广州极飞科技股份有限公司 Remote control link management system, method, device, electronic device and storage medium
CN114664072B (en) * 2022-03-18 2023-09-01 广州极飞科技股份有限公司 Remote control link management system, method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111964274B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
WO2021057160A1 (en) Method for establishing communication connection after device is offline and smart home system
CN102315864B (en) For the method and apparatus of mobile device Point-to-Point Data Transmission
US9521614B2 (en) Power efficient method for Wi-Fi home automation
CN102413182A (en) Intelligent home device remote monitoring device and method
CN104301905A (en) Ad-hoc network method and system for smart home on basis of election supervision strategy
CN103685733A (en) Remote control method and terminal
JP2017102627A (en) IoT device network
CN108781473A (en) A kind of method and apparatus of the shared file between different terminals
CN105338472A (en) Wireless routing equipment, wireless routing system and communication method
CN111964274B (en) Water heater remote control method, device and system and storage medium
CN111741538A (en) Communication link establishing method based on gateway, equipment control method and device
US10693714B2 (en) Communication method for Wi-Fi internet of things equipment and Wi-Fi internet of things system
CN111026426B (en) Repeater upgrading method and device
WO2019136608A1 (en) Relay network duplex coordination method and relay node device
CN111328054B (en) Data transmission method and device
CN111385611B (en) Account login method of smart television, smart television and terminal equipment
CN110824946A (en) Intelligent equipment control system and method based on WiFi ad hoc network
WO2016061803A1 (en) M2m terminal control method and related device
CN105099836A (en) BLE intelligent node control method and system
US10980078B2 (en) Method and device for controlling network connection of application terminal
KR100640826B1 (en) Method of controlling home network devices
CN106683376B (en) Remote control mode learning device, electrical equipment control system and its control method
CN106211142A (en) A kind of WiFi AP terminal wide area network cut-in method
CN111083224A (en) Control method of distributed user equipment
CN105119805A (en) Instant messaging data transmission method and instant messaging data transmission 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
GR01 Patent grant
GR01 Patent grant