CN105553762A - Communication method and communication system between domestic appliance and mobile terminal and corresponding devices - Google Patents

Communication method and communication system between domestic appliance and mobile terminal and corresponding devices Download PDF

Info

Publication number
CN105553762A
CN105553762A CN201510923233.3A CN201510923233A CN105553762A CN 105553762 A CN105553762 A CN 105553762A CN 201510923233 A CN201510923233 A CN 201510923233A CN 105553762 A CN105553762 A CN 105553762A
Authority
CN
China
Prior art keywords
mobile terminal
electrical appliance
household electrical
heartbeat packet
udp message
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
CN201510923233.3A
Other languages
Chinese (zh)
Other versions
CN105553762B (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.)
MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.
Original Assignee
Midea Group 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 Midea Group Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201510923233.3A priority Critical patent/CN105553762B/en
Publication of CN105553762A publication Critical patent/CN105553762A/en
Application granted granted Critical
Publication of CN105553762B publication Critical patent/CN105553762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Abstract

The invention discloses a communication method and a communication system between a domestic appliance and a mobile terminal, a domestic appliance and a mobile terminal. The method comprises steps: the domestic appliance sends a first heartbeat packet to the mobile terminal in a first cycle; the mobile terminal judges whether to effectively receive the first heartbeat packet in a preset cycle; if the first heartbeat packet is not effectively received in the preset cycle, the mobile terminal cyclically sends a UDP data packet to the domestic appliance, wherein the UDP data packet comprises connection information of the mobile terminal; and after the domestic appliance restores a networking ability, the UDP data packet is received, and connection is built with the mobile terminal according to the UDP data packet. The method of the invention ensures quick connection between the domestic appliance and the mobile terminal when the domestic appliance restores networking, and the user experience is enhanced.

Description

Communication means between household electrical appliance and mobile terminal, system and related device
Technical field
The present invention relates to communication technical field, particularly relate to the communication means between a kind of household electrical appliance and mobile terminal, system, household electrical appliance and mobile terminal.
Background technology
At present, household electrical appliance can be bound by server and mobile terminal, to realize on mobile terminals to the control of household electrical appliance, on mobile phone, such as control the switch etc. of air-conditioning, but once household electrical appliance suspension, user just cannot control household electrical appliance on mobile terminals, and the offline condition of household electrical appliance is also difficult to detect in real time, once household electrical appliance suspension, only have after judging that household electrical appliance recover networking, by on mobile terminals with the reconnecting of household electrical appliance, the operations such as configuration, again the control of mobile terminal to household electrical appliance could be realized, make troubles to the life of user.
Summary of the invention
Object of the present invention is intended to one of solve the problems of the technologies described above at least to a certain extent.
For this reason, first object of the present invention is to propose the communication means between a kind of household electrical appliance and mobile terminal, the method is by detecting the communication connection status between household electrical appliance and mobile terminal in real time, achieve the household electrical appliance of suspension after recovery networking, can automatically recover rapidly to be connected with mobile terminal, improve Consumer's Experience.
Second object of the present invention is proposing the communication system between a kind of household electrical appliance and mobile terminal.
3rd object of the present invention is to propose a kind of household electrical appliance.
4th object of the present invention is to propose a kind of mobile terminal.
For reaching above-mentioned purpose, the communication means between the household electrical appliance of first aspect present invention embodiment and mobile terminal, comprising: described household electrical appliance send the first heartbeat packet with the period 1 to described mobile terminal; Described mobile terminal judges whether in predetermined period, effectively receive described first heartbeat packet; If not operatively receive described first heartbeat packet in described predetermined period, then described mobile terminal cyclically sends UDP (UserDatagramProtocol to described household electrical appliance, User Datagram Protoco (UDP)) packet, wherein, the link information of described mobile terminal drawn together by described UDP message handbag; Described household electrical appliance, after recovery networked capabilities, receive described UDP message bag, and connect according to described UDP message bag and described mobile terminal.
According to the communication means between the household electrical appliance of the embodiment of the present invention and mobile terminal, if mobile terminal does not receive the first heartbeat packet that household electrical appliance sent to it with the period 1, mobile terminal then sends the UDP message bag with the link information of mobile terminal to household electrical appliance, household electrical appliance are after recovery networked capabilities, receive UDP message bag, to connect with mobile terminal, the method periodically sends heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by household electrical appliance, and cyclically send UDP message bag to household electrical appliance when not operatively receiving heartbeat packet by mobile terminal in predetermined period, to realize the household electrical appliance of suspension after again networking, can automatically recover to be connected according to this UDP message bag and mobile terminal, improve Consumer's Experience.
In addition, in one embodiment of the invention, described household electrical appliance send the second heartbeat packet with second round to server, with the communication connection status making described server obtain described household electrical appliance.
In one embodiment of the invention, be greater than the described period 1 described second round.
In one embodiment of the invention, described second round is 3 times/40s, and the described period 1 is 3 times/10s.
In one embodiment of the invention, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
For reaching above-mentioned purpose, the communication system between the household electrical appliance of second aspect present invention embodiment and mobile terminal, comprising: household electrical appliance and mobile terminal, and wherein, described household electrical appliance, for sending the first heartbeat packet with the period 1 to described mobile terminal; Described mobile terminal, for judging whether effectively to receive described first heartbeat packet in predetermined period, and when not operatively receiving described first heartbeat packet in described predetermined period, cyclically send UDP message bag to described household electrical appliance, wherein, the link information of described mobile terminal drawn together by described UDP message handbag; Described household electrical appliance also for after recovery networked capabilities, receive described UDP message bag, and connect according to described UDP message bag and described mobile terminal.
According to the communication system between the household electrical appliance of the embodiment of the present invention and mobile terminal, if mobile terminal does not receive the first heartbeat packet that household electrical appliance sent to it with the period 1, mobile terminal then sends the UDP message bag with the link information of mobile terminal to household electrical appliance, household electrical appliance are after recovery networked capabilities, receive UDP message bag, to connect with mobile terminal, namely periodically heartbeat packet is sent to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by household electrical appliance, and cyclically send UDP message bag to household electrical appliance when not operatively receiving heartbeat packet by mobile terminal in predetermined period, to realize the household electrical appliance of suspension after again networking, can automatically recover to be connected according to this UDP message bag and mobile terminal, improve Consumer's Experience.
In addition, in one embodiment of the invention, described household electrical appliance also for: send the second heartbeat packet with second round to server, with the communication connection status making described server obtain described household electrical appliance.
In one embodiment of the invention, be greater than the described period 1 described second round.
In one embodiment of the invention, described second round is 3 times/40s, and the described period 1 is 3 times/10s.
In one embodiment of the invention, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
For reaching above-mentioned purpose, the household electrical appliance of third aspect present invention embodiment, comprising: sending module, for sending the first heartbeat packet with the period 1 to mobile terminal; Receiver module, during for judging at described mobile terminal effectively to receive described first heartbeat packet in predetermined period, receive the UDP message bag that described mobile terminal cyclically sends, wherein, the link information of described mobile terminal drawn together by described UDP message handbag; Set up module, at described household electrical appliance after recovery networked capabilities, and after described receiver module receives described UDP message bag, to connect according to described UDP message bag and described mobile terminal.
According to the household electrical appliance of the embodiment of the present invention, when mobile terminal does not receive the first heartbeat packet that sending module sends to it with the period 1, the UDP message bag of the link information with mobile terminal sent by receiver module mobile terminal receive, and then after household electrical appliance recover networked capabilities, set up UDP message bag that module receives according to receiver module and mobile terminal connects, these household electrical appliance periodically send heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by sending module, and received when mobile terminal not operatively receives heartbeat packet in predetermined period cyclically to the UDP message bag that household electrical appliance send by receiver module, to realize the household electrical appliance of suspension after again networking, automatically can recover to be connected according to this UDP message bag and mobile terminal by setting up module, improve Consumer's Experience.
In addition, in one embodiment of the invention, described sending module also for: send the second heartbeat packet with second round to server, with the communication connection status making described server obtain described household electrical appliance.
In one embodiment of the invention, be greater than the described period 1 described second round.
In one embodiment of the invention, described second round is 3 times/40s, and the described period 1 is 3 times/10s.
In one embodiment of the invention, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
For reaching above-mentioned purpose, the mobile terminal of fourth aspect present invention embodiment, comprising: receiver module, for receiving the first heartbeat packet that household electrical appliance send; Judge module, for judging whether effectively to receive described first heartbeat packet in predetermined period; Sending module, during for judging at described judge module not operatively to receive described first heartbeat packet in described predetermined period, cyclically send UDP message bag to described household electrical appliance, wherein, the link information of described mobile terminal drawn together by described UDP message handbag; Set up module, for recovering networked capabilities at described household electrical appliance and after receiving described UDP message bag, connecting with described household electrical appliance.
According to the mobile terminal of the embodiment of the present invention, if judge module judges the first heartbeat packet that receiver module does not receive household electrical appliance and sends to it, then cyclically send the UDP message bag with the link information of mobile terminal to household electrical appliance by sending module, and then by setting up module at household electrical appliance in recovery networked capabilities after receiving UDP message bag, connect with family expenses household electrical appliance, this mobile terminal receives household electrical appliance by receiver module and periodically sends heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal, and cyclically send UDP message bag to household electrical appliance when not operatively receiving heartbeat packet by sending module in predetermined period, to realize recovering to connect by setting up module again networking when the household electrical appliance of suspension and get these UDP message Bao Shiyu household electrical appliance, improve Consumer's Experience.
In addition, in one embodiment of the invention, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein,
Fig. 1 is the flow chart of the communication means according to an embodiment of the invention between household electrical appliance and mobile terminal;
Fig. 2 is the flow chart according to the communication means between the household electrical appliance of the present invention's specific embodiment and mobile terminal;
Fig. 3 is the structural representation of the communication system according to an embodiment of the invention between household electrical appliance and mobile terminal;
Fig. 4 is the structural representation of household electrical appliance according to an embodiment of the invention; And
Fig. 5 is the structural representation of mobile terminal according to an embodiment of the invention.
Reference numeral: household electrical appliance 100, mobile terminal 200, sending module 410, receiver module 420, sets up module 430, receiver module 510, judge module 520, sending module 530 and set up module 540.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Below with reference to the accompanying drawings the communication means between the household electrical appliance of the embodiment of the present invention and mobile terminal, system, household electrical appliance and mobile terminal is described in detail.It should be noted that, mobile terminal in the embodiment of the present invention can be the hardware device that mobile phone, panel computer, personal digital assistant, Wearable etc. have various operating system, and this Wearable can be Intelligent bracelet, intelligent watch, intelligent glasses etc.
In addition, heartbeat packet in the embodiment of the present invention, can be regarded as the packet preset, send according to certain time interval, detect for the communication connection between server and client etc., such as household electrical appliance A sends heartbeat packet to mobile terminal B, B simply replys according to the heartbeat packet received, and this packet of simply replying is fed back to A to determine response, A determines between A and B according to the reply data received communication connection state afterwards, if within the time of agreement, A does not receive the packet of the response of B, then represent A and between communication connection go wrong, wherein heartbeat packet can be the very little packet of agreement in advance, do not comprise substantial communication data, such as this communications packet about can be decided to be empty bag.Fig. 1 is the flow chart of the communication means according to an embodiment of the invention between household electrical appliance and mobile terminal.
As shown in Figure 1, the method can comprise:
S110, household electrical appliance send the first heartbeat packet with the period 1 to mobile terminal.
Preferably, in an embodiment of the present invention, household electrical appliance send the first heartbeat packet with the cycle of 3 times/10s to mobile terminal, wherein, the first heartbeat packet can periodically be sent to mobile terminal in order to household electrical appliance and detect the signal intelligence between household electrical appliance and mobile terminal in real time by the reception condition of mobile terminal.
S120, mobile terminal judges whether effectively to receive the first heartbeat packet in predetermined period.
Be appreciated that, mobile terminal, by judging whether effectively receive the first heartbeat packet in Preset Time, judges the communication connection state between household electrical appliance and mobile terminal, such as, when household electrical appliance suspension, mobile terminal just cannot receive the first heartbeat packet.Wherein, above-mentioned Preset Time refers to the time that the first heartbeat packet can be sent to household electrical appliance, in this Preset Time, household electrical appliance just can complete the steps such as the normal re-transmission of the first heartbeat packet, realize the normal transmission of the first heartbeat packet, in addition, effectively receive the first heartbeat packet and refer to and successfully receive the first heartbeat packet, and the error rate of the first heartbeat packet received meets predetermined threshold value etc.
S130, if not operatively receive the first heartbeat packet in predetermined period, then mobile terminal cyclically sends UDP message bag to household electrical appliance, and wherein the link information of mobile terminal drawn together by UDP message handbag.
Particularly, because of household electrical appliance networking break or unstable time, in predetermined period, mobile terminal can not receive the first heartbeat packet effectively, such as cannot receive the first heartbeat packet, or " intermittently " receive the first heartbeat packet, then judge household electrical appliance occur networking disconnect situation.
In order to the connection status making household electrical appliance and mobile terminal recover stable fast, mobile terminal cyclically sends UDP message bag to household electrical appliance, wherein the link information of mobile terminal drawn together by UDP message handbag, be appreciated that, mobile terminal can send with the UDP message bag of the link information of this mobile terminal to household electrical appliance with predeterminated frequency, wherein the link information of mobile terminal can include but not limited to the facility information of mobile terminal, IP (InternetProtocol, the agreement interconnected between network) information required when being connected with mobile terminal with household electrical appliance such as port numbers in address.
S140, after household electrical appliance recover networked capabilities, receives UDP message bag, and connects according to UDP message bag and mobile terminal.
Particularly, because mobile terminal is after first heartbeat packet that effectively can not receive household electrical appliance transmission, cyclically will send the UDP message bag with its link information to household electrical appliance, therefore, once household electrical appliance recover networked capabilities, this UDP message bag will be received, and connect according to this UDP message bag and mobile terminal.
Communication means between the household electrical appliance of the embodiment of the present invention and mobile terminal, if mobile terminal does not receive the first heartbeat packet that household electrical appliance sent to it with the period 1, mobile terminal then sends the UDP message bag with the link information of mobile terminal to household electrical appliance, household electrical appliance are after recovery networked capabilities, receive UDP message bag, to connect with mobile terminal, the method periodically sends heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by household electrical appliance, and cyclically send UDP message bag to household electrical appliance when not operatively receiving heartbeat packet by mobile terminal in predetermined period, to realize the household electrical appliance of suspension after recovery networking, can automatically recover to be connected according to this UDP message bag and mobile terminal, improve Consumer's Experience.
Fig. 2 is the flow chart according to the communication means between the household electrical appliance of the present invention's specific embodiment and mobile terminal.
As shown in Figure 2, the communication means between this household electrical appliance and mobile terminal comprises:
S210, household electrical appliance send the first heartbeat packet with the period 1 to mobile terminal.
S220, mobile terminal judges whether effectively to receive the first heartbeat packet in predetermined period.
S230, if not operatively receive the first heartbeat packet in predetermined period, then mobile terminal cyclically sends UDP message bag to household electrical appliance, and wherein the link information of mobile terminal drawn together by UDP message handbag.
S240, after household electrical appliance recover networked capabilities, receives UDP message bag, and connects according to UDP message bag and mobile terminal.
S250, household electrical appliance send the second heartbeat packet with second round to server, with the communication connection status making server obtain household electrical appliance.
Particularly, household electrical appliance send the second heartbeat packet with second round to server, obtain the signal intelligence of household electrical appliance to make server according to the situation of reception second heartbeat packet.More specifically, if server can receive the second heartbeat packet effectively, then show that the communications status of household electrical appliance is good, if server fails effectively to receive the second heartbeat packet, then show that the networking of household electrical appliance disconnects or instability, and then can notify that household electrical appliance perform the operations such as networking again, make household electrical appliance energy and server set up stable communication connection.
In one embodiment of the invention, if mobile terminal can not receive the first heartbeat packet effectively, but server have received the second heartbeat packet effectively, then show that the communication connection of household electrical appliance is no problem, occurring that the problem of the communication connection of mobile terminal and household electrical appliance causes due to other reasons, is such as caused by the fault of mobile terminal.
Preferably, in an embodiment of the present invention, second round is greater than the period 1, and second round is 3 times/40s, and the period 1 is 3 times/10s.
Communication means between the household electrical appliance of the embodiment of the present invention and mobile terminal, household electrical appliance send the second heartbeat packet with second round to server, server is made to judge that whether the communication connection of household electrical appliance is normal according to the reception condition of the second heartbeat packet, namely when periodically sending heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by household electrical appliance, also periodically send heartbeat packet with the communication connection status making server obtain household electrical appliance to server by household electrical appliance, make according to this communication connection status can realize accurately judging the communication failure of household electrical appliance and terminal be caused by household electrical appliance or mobile terminal causes, if caused by mobile terminal, then mobile terminal is safeguarded, if caused by household electrical appliance, so the household electrical appliance of suspension are after again networking, can automatically recover to be connected with mobile terminal, improve Consumer's Experience.
In order to realize above-described embodiment, the invention allows for the communication system between a kind of household electrical appliance and mobile terminal, Fig. 3 is the structural representation of the communication system according to an embodiment of the invention between household electrical appliance and mobile terminal, as shown in Figure 3, this system comprises household electrical appliance 100 and mobile terminal 200.
Particularly, household electrical appliance 100 can be used for sending the first heartbeat packet with the period 1 to mobile terminal 200.Preferably, in an embodiment of the present invention, household electrical appliance 100 send the first heartbeat packet with the cycle of 3 times/10s to mobile terminal 200, wherein, the first heartbeat packet can periodically be sent to mobile terminal 200 in order to household electrical appliance 100 and detect the signal intelligence between household electrical appliance 100 and mobile terminal 200 in real time by the reception condition of mobile terminal 200.
Mobile terminal 200 can be used for judging whether effectively to receive the first heartbeat packet in predetermined period, and when not operatively receiving the first heartbeat packet in predetermined period, cyclically send UDP message bag to household electrical appliance 100, wherein, the link information of mobile terminal 200 drawn together by UDP message handbag.
Be appreciated that, mobile terminal 200 is by judging whether effectively receive the first heartbeat packet in Preset Time, judge the communication connection state between household electrical appliance 100 and mobile terminal 200, such as, when household electrical appliance 100 suspension, mobile terminal 200 just cannot receive the first heartbeat packet.Wherein, above-mentioned Preset Time refers to the time that the first heartbeat packet can be sent to household electrical appliance 100, in this Preset Time, household electrical appliance 100 just can complete the steps such as the normal re-transmission of the first heartbeat packet, realize the normal transmission of the first heartbeat packet, in addition, effectively receive the first heartbeat packet and refer to and successfully receive the first heartbeat packet, and the error rate of the first heartbeat packet received meets predetermined threshold value etc.
It is also understood that, because of household electrical appliance 100 networking break or unstable time, in predetermined period, mobile terminal 200 can not receive the first heartbeat packet effectively, such as cannot receive the first heartbeat packet, or " intermittently " receive the first heartbeat packet, then judge household electrical appliance 100 occur networking disconnect situation.
Stable connection status is recovered fast in order to make household electrical appliance 100 and mobile terminal 200, mobile terminal 200 cyclically sends UDP message bag to household electrical appliance 100, wherein the link information of mobile terminal 200 drawn together by UDP message handbag, be appreciated that, mobile terminal 200 can send the UDP message bag of the link information with this mobile terminal 200 to household electrical appliance 100 with predeterminated frequency, wherein the link information of mobile terminal 200 can include but not limited to the facility information of mobile terminal 200, IP (InternetProtocol, the agreement interconnected between network) information required when being connected with mobile terminal 200 with household electrical appliance 100 such as port numbers in address.
In an embodiment of the present invention, household electrical appliance 100 receive UDP message bag, and connect according to UDP message bag and mobile terminal 200 after being also used in and recovering networked capabilities.More specifically, because mobile terminal 200 is after first heartbeat packet that effectively can not receive household electrical appliance 100 transmission, cyclically will send the UDP message bag with its link information to household electrical appliance 100, therefore, once household electrical appliance 100 recover networked capabilities, this UDP message bag will be received, and connect according to this UDP message bag and mobile terminal 200.
Communication system between the household electrical appliance of the embodiment of the present invention and mobile terminal, if mobile terminal does not receive the first heartbeat packet that household electrical appliance sent to it with the period 1, mobile terminal then sends the UDP message bag with the link information of mobile terminal to household electrical appliance, household electrical appliance are after recovery networked capabilities, receive UDP message bag, to connect with mobile terminal, namely periodically heartbeat packet is sent to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by household electrical appliance, and cyclically send UDP message bag to household electrical appliance when not operatively receiving heartbeat packet by mobile terminal in predetermined period, to realize the household electrical appliance of suspension after recovery networking, can automatically recover to be connected according to this UDP message bag and mobile terminal, improve Consumer's Experience.
Further, in one embodiment of the invention, household electrical appliance 100 also can be used for: send the second heartbeat packet with second round to server, with the communication connection status making server obtain household electrical appliance 100.More specifically, household electrical appliance 100 send the second heartbeat packet with second round to server, obtain the signal intelligence of household electrical appliance 100 to make server according to the situation of reception second heartbeat packet.More specifically, if server can receive the second heartbeat packet effectively, then show that the communications status of household electrical appliance 100 is good, if server fails effectively to receive the second heartbeat packet, then show that the networking of household electrical appliance 100 disconnects or instability, and then can notify that household electrical appliance 100 perform the operations such as networking again, make household electrical appliance 100 energy and server set up stable communication connection.
In one embodiment of the invention, if mobile terminal 200 can not receive the first heartbeat packet effectively, but server have received the second heartbeat packet effectively, then show that the communication connection of household electrical appliance 100 is no problem, occurring that mobile terminal 200 causes due to other reasons with the problem of the communication connection of household electrical appliance 100, is such as caused by the fault of mobile terminal 200.
Preferably, in an embodiment of the present invention, second round is greater than the period 1, and second round is 3 times/40s, and the period 1 is 3 times/10s.
Communication system between the household electrical appliance of the embodiment of the present invention and mobile terminal, the second heartbeat packet is sent with second round to server by household electrical appliance, server is made to judge that whether the communication connection of household electrical appliance is normal according to the reception condition of the second heartbeat packet, namely when periodically sending heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by household electrical appliance, also periodically send heartbeat packet with the communication connection status making server obtain household electrical appliance to server by household electrical appliance, make according to this communication connection status can realize accurately judging the communication failure of household electrical appliance and terminal be caused by household electrical appliance or mobile terminal causes, if caused by mobile terminal, then mobile terminal is safeguarded, if caused by household electrical appliance, so the household electrical appliance of suspension are after again networking, can automatically recover to be connected with mobile terminal, improve Consumer's Experience.
In order to realize above-described embodiment, the invention allows for a kind of household electrical appliance, Fig. 4 is the structural representation of household electrical appliance according to an embodiment of the invention.
As shown in Figure 4, these household electrical appliance comprise: sending module 410, receiver module 420 and set up module 430.
Wherein, sending module 410 is for sending the first heartbeat packet with the period 1 to mobile terminal.
Preferably, in an embodiment of the present invention, sending module 410 sends the first heartbeat packet with the cycle of 3 times/10s to mobile terminal, wherein, the first heartbeat packet can periodically be sent to mobile terminal in order to sending module 410 and detect the signal intelligence between household electrical appliance and mobile terminal in real time by the reception condition of mobile terminal.
Receiver module 420, during for judging effectively not receive the first heartbeat packet in predetermined period at mobile terminal, the UDP message bag that mobile terminal receive cyclically sends, wherein, the link information of mobile terminal drawn together by UDP message handbag.
Be appreciated that, mobile terminal, by judging whether effectively receive the first heartbeat packet in Preset Time, judges the communication connection state between household electrical appliance and mobile terminal, such as, when household electrical appliance suspension, mobile terminal just cannot receive the first heartbeat packet.Wherein, above-mentioned Preset Time refers to the time that the first heartbeat packet can be sent to household electrical appliance, in this Preset Time, sending module 410 just can complete the steps such as the normal re-transmission of the first heartbeat packet, realize the normal transmission of the first heartbeat packet, in addition, effectively receive the first heartbeat packet and refer to and successfully receive the first heartbeat packet, and the error rate of the first heartbeat packet received meets predetermined threshold value etc.
Particularly, because of household electrical appliance networking break or unstable time, in predetermined period, mobile terminal can not receive the first heartbeat packet effectively, such as cannot receive the first heartbeat packet, or " intermittently " receive the first heartbeat packet, then judge household electrical appliance occur networking disconnect situation.
In order to the connection status making household electrical appliance and mobile terminal recover stable fast, the UDP message bag that receiver module 420 mobile terminal receive cyclically sends, wherein the link information of mobile terminal drawn together by UDP message handbag, be appreciated that, mobile terminal can send with the UDP message bag of the link information of this mobile terminal to household electrical appliance with predeterminated frequency, wherein the link information of mobile terminal can include but not limited to the facility information of mobile terminal, IP (InternetProtocol, the agreement interconnected between network) information required when being connected with mobile terminal with household electrical appliance such as port numbers in address.
Set up module 430, at household electrical appliance after recovery networked capabilities, and after receiver module 420 receives UDP message bag, to connect according to UDP message bag and mobile terminal.
Particularly, because mobile terminal is after first heartbeat packet that effectively can not receive household electrical appliance transmission, cyclically will send the UDP message bag with its link information to household electrical appliance, therefore, once household electrical appliance recover networked capabilities, this UDP message bag will be received by receiver module 420, and connect according to this UDP message bag and mobile terminal by setting up module 430.
The household electrical appliance of the embodiment of the present invention, when mobile terminal does not receive the first heartbeat packet that sending module sends to it with the period 1, the UDP message bag of the link information with mobile terminal sent by receiver module mobile terminal receive, and then after household electrical appliance recover networked capabilities, set up UDP message bag that module receives according to receiver module and mobile terminal connects, these household electrical appliance periodically send heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by sending module, and received when mobile terminal not operatively receives heartbeat packet in predetermined period cyclically to the UDP message bag that household electrical appliance send by receiver module, to realize the household electrical appliance of suspension after again networking, automatically can recover to be connected according to this UDP message bag and mobile terminal by setting up module, improve Consumer's Experience.
In one embodiment of the invention, sending module 410 also for send the second heartbeat packet to server second round, with the communication connection status making server obtain household electrical appliance.
Particularly, sending module 410 sends the second heartbeat packet with second round to server, obtains the signal intelligence of household electrical appliance to make server according to the situation of reception second heartbeat packet.More specifically, if server can receive the second heartbeat packet effectively, then show that the communications status of household electrical appliance is good, if server fails effectively to receive the second heartbeat packet, then show that the networking of household electrical appliance disconnects or instability, and then can notify that household electrical appliance perform the operations such as networking again, make household electrical appliance energy and server set up stable communication connection.
In one embodiment of the invention, if mobile terminal can not receive the first heartbeat packet that sending module 410 sends effectively, but server have received the second heartbeat packet that sending module 410 sends effectively, then show that the communication connection of household electrical appliance is no problem, occurring that the problem of the communication connection of mobile terminal and household electrical appliance is caused by other reasons, is such as caused by the fault of mobile terminal.
Preferably, in an embodiment of the present invention, second round is greater than the period 1, and second round is 3 times/40s, and the period 1 is 3 times/10s.
The household electrical appliance of the embodiment of the present invention, sending module sends the second heartbeat packet with second round to server, server is made to judge that whether the communication connection of household electrical appliance is normal according to the reception condition of the second heartbeat packet, namely when periodically sending heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal by sending module, also periodically send heartbeat packet with the communication connection status making server obtain household electrical appliance to server by sending module, make according to this communication connection status can realize accurately judging the communication failure of household electrical appliance and terminal be caused by household electrical appliance or mobile terminal causes, if caused by mobile terminal, then mobile terminal is safeguarded, if caused by household electrical appliance, so the household electrical appliance of suspension are after again networking, can automatically recover to be connected with mobile terminal, improve Consumer's Experience.
In order to realize above-described embodiment, the invention allows for a kind of mobile terminal, Fig. 5 is the structural representation of mobile terminal according to an embodiment of the invention.
As shown in Figure 5, this mobile terminal comprises: receiver module 510, judge module 520, sending module 530 and set up module 540.
Wherein, receiver module 510 is for receiving the first heartbeat packet of household electrical appliance transmission.
Preferably, in an embodiment of the present invention, receiver module 510 receives the first heartbeat packet that household electrical appliance sent with the cycle of 3 times/10s, wherein, the first heartbeat packet can periodically be sent to mobile terminal in order to household electrical appliance and detect the signal intelligence between household electrical appliance and mobile terminal in real time by the reception condition of mobile terminal.
Judge module 520 is for judging whether effectively to receive the first heartbeat packet in predetermined period.
Be appreciated that, judge module 520, by judging whether effectively receive the first heartbeat packet in Preset Time, judges the communication connection state between household electrical appliance and mobile terminal, such as, when household electrical appliance suspension, receiver module 510 just cannot receive the first heartbeat packet.Wherein, above-mentioned Preset Time refers to the time that the first heartbeat packet can be sent to household electrical appliance, in this Preset Time, household electrical appliance just can complete the steps such as the normal re-transmission of the first heartbeat packet, realize the normal transmission of the first heartbeat packet, in addition, effectively receive the first heartbeat packet and refer to and successfully receive the first heartbeat packet, and the error rate of the first heartbeat packet received meets predetermined threshold value etc.
Sending module 530 is for when judge module 520 judges that receiver module 510 not operatively receives the first heartbeat packet in predetermined period, and cyclically send UDP message bag to household electrical appliance, wherein the link information of mobile terminal drawn together by UDP message handbag.
Particularly, because of household electrical appliance networking break or unstable time, in predetermined period, receiver module 510 can not receive the first heartbeat packet effectively, such as cannot receive the first heartbeat packet, or " intermittently " receive the first heartbeat packet, then judge household electrical appliance occur networking disconnect situation.
In order to the connection status making household electrical appliance and mobile terminal recover stable fast, sending module 530 cyclically sends UDP message bag to household electrical appliance, wherein the link information of mobile terminal drawn together by UDP message handbag, be appreciated that, sending module 530 can send with the UDP message bag of the link information of this mobile terminal to household electrical appliance with predeterminated frequency, wherein the link information of mobile terminal can include but not limited to the facility information of mobile terminal, IP (InternetProtocol, the agreement interconnected between network) information required when being connected with mobile terminal with household electrical appliance such as port numbers in address.
Set up module 540, for recovering networked capabilities at household electrical appliance and after receiving UDP message bag, connecting with household electrical appliance.
Particularly, owing to judging that at judge module 520 receiver module 510 is after first heartbeat packet that effectively can not receive household electrical appliance transmission, cyclically the UDP message bag with its link information will be sent to household electrical appliance by sending module 530, therefore, recover networked capabilities once household electrical appliance and receive this UDP message bag, setting up module 540 can recover to be connected with household electrical appliance.
The mobile terminal of the embodiment of the present invention, if judge module judges the first heartbeat packet that receiver module does not receive household electrical appliance and sends to it, then cyclically send the UDP message bag with the link information of mobile terminal to household electrical appliance by sending module, and then by setting up module at household electrical appliance in recovery networked capabilities after receiving UDP message bag, connect with family expenses household electrical appliance, this mobile terminal receives household electrical appliance by receiver module and periodically sends heartbeat packet to detect the communication connection status between household electrical appliance and mobile terminal in real time to mobile terminal, and cyclically send UDP message bag to household electrical appliance when not operatively receiving heartbeat packet by sending module in predetermined period, to realize recovering to connect by setting up module again networking when the household electrical appliance of suspension and get these UDP message Bao Shiyu household electrical appliance, improve Consumer's Experience.
In describing the invention, it is to be appreciated that term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this specification or example and different embodiment or example can carry out combining and combining by those skilled in the art.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (17)

1. the communication means between household electrical appliance and mobile terminal, is characterized in that, comprises the following steps:
Described household electrical appliance send the first heartbeat packet with the period 1 to described mobile terminal;
Described mobile terminal judges whether in predetermined period, effectively receive described first heartbeat packet;
If not operatively receive described first heartbeat packet in described predetermined period, then described mobile terminal cyclically sends UDP message bag to described household electrical appliance, and wherein, the link information of described mobile terminal drawn together by described UDP message handbag;
Described household electrical appliance, after recovery networked capabilities, receive described UDP message bag, and connect according to described UDP message bag and described mobile terminal.
2. the communication means between household electrical appliance and mobile terminal as claimed in claim 1, is characterized in that, also comprise:
Described household electrical appliance send the second heartbeat packet with second round to server, with the communication connection status making described server obtain described household electrical appliance.
3. the communication means between household electrical appliance and mobile terminal as claimed in claim 2, it is characterized in that, described second round is greater than the described period 1.
4. the communication means between household electrical appliance and mobile terminal as claimed in claim 3, it is characterized in that, described second round is 3 times/40s, and the described period 1 is 3 times/10s.
5. the communication means between household electrical appliance and mobile terminal as claimed in claim 1, it is characterized in that, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
6. the communication system between household electrical appliance and mobile terminal, is characterized in that, comprising: household electrical appliance and mobile terminal, wherein,
Described household electrical appliance, for sending the first heartbeat packet with the period 1 to described mobile terminal;
Described mobile terminal, for judging whether effectively to receive described first heartbeat packet in predetermined period, and when not operatively receiving described first heartbeat packet in described predetermined period, cyclically send UDP message bag to described household electrical appliance, wherein, the link information of described mobile terminal drawn together by described UDP message handbag;
Described household electrical appliance also for after recovery networked capabilities, receive described UDP message bag, and connect according to described UDP message bag and described mobile terminal.
7. communication system between household electrical appliance and mobile terminal as claimed in claim 6, is characterized in that, described household electrical appliance also for:
The second heartbeat packet is sent to server, with the communication connection status making described server obtain described household electrical appliance with second round.
8. the communication system between household electrical appliance and mobile terminal as claimed in claim 7, it is characterized in that, described second round is greater than the described period 1.
9. the communication system between household electrical appliance and mobile terminal as claimed in claim 8, it is characterized in that, described second round is 3 times/40s, and the described period 1 is 3 times/10s.
10. the communication system between household electrical appliance and mobile terminal as claimed in claim 6, it is characterized in that, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
11. 1 kinds of household electrical appliance, is characterized in that, comprising:
Sending module, for sending the first heartbeat packet with the period 1 to mobile terminal;
Receiver module, during for judging at described mobile terminal not operatively to receive described first heartbeat packet in predetermined period, receive the UDP message bag that described mobile terminal cyclically sends, wherein, the link information of described mobile terminal drawn together by described UDP message handbag;
Set up module, at described household electrical appliance after recovery networked capabilities, and after described receiver module receives described UDP message bag, to connect according to described UDP message bag and described mobile terminal.
12. household electrical appliance as claimed in claim 11, is characterized in that, described sending module also for: send the second heartbeat packet with second round to server, with the communication connection status making described server obtain described household electrical appliance.
13. household electrical appliance as claimed in claim 11, it is characterized in that, described second round is greater than the described period 1.
14. household electrical appliance as claimed in claim 13, it is characterized in that, described second round is 3 times/40s, and the described period 1 is 3 times/10s.
15. household electrical appliance as claimed in claim 12, is characterized in that, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
16. 1 kinds of mobile terminals, is characterized in that, comprising:
Receiver module, for receiving the first heartbeat packet that household electrical appliance send;
Judge module, for judging whether effectively to receive described first heartbeat packet in predetermined period;
Sending module, during for judging at described judge module not operatively to receive described first heartbeat packet in described predetermined period, cyclically send UDP message bag to described household electrical appliance, wherein, the link information of described mobile terminal drawn together by described UDP message handbag;
Set up module, for recovering networked capabilities at described household electrical appliance and after receiving described UDP message bag, connecting with described household electrical appliance.
17. mobile terminals as claimed in claim 16, is characterized in that, the link information of described mobile terminal comprises the facility information of described mobile terminal, IP address and port numbers.
CN201510923233.3A 2015-12-11 2015-12-11 Communication means, system and related device between household electrical appliance and mobile terminal Active CN105553762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510923233.3A CN105553762B (en) 2015-12-11 2015-12-11 Communication means, system and related device between household electrical appliance and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510923233.3A CN105553762B (en) 2015-12-11 2015-12-11 Communication means, system and related device between household electrical appliance and mobile terminal

Publications (2)

Publication Number Publication Date
CN105553762A true CN105553762A (en) 2016-05-04
CN105553762B CN105553762B (en) 2019-03-12

Family

ID=55832701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510923233.3A Active CN105553762B (en) 2015-12-11 2015-12-11 Communication means, system and related device between household electrical appliance and mobile terminal

Country Status (1)

Country Link
CN (1) CN105553762B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106358147A (en) * 2016-09-28 2017-01-25 美的智慧家居科技有限公司 Method and system for connecting wireless network, household electric appliance and user terminal
CN107872495A (en) * 2016-09-28 2018-04-03 腾讯科技(深圳)有限公司 A kind of information processing method and terminal device
CN111371872A (en) * 2020-02-27 2020-07-03 青岛海尔空调器有限总公司 Anti-theft control method, shared household appliance, server and shared system
CN112947243A (en) * 2021-03-18 2021-06-11 乐聚(深圳)机器人技术有限公司 Debugging method of humanoid robot, wireless debugging device and humanoid robot

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234568A1 (en) * 2004-04-19 2005-10-20 Lg Electronics Inc. Home network system and method for operating the same
CN103873472A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Method for automatically having access to network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234568A1 (en) * 2004-04-19 2005-10-20 Lg Electronics Inc. Home network system and method for operating the same
CN103873472A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Method for automatically having access to network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106358147A (en) * 2016-09-28 2017-01-25 美的智慧家居科技有限公司 Method and system for connecting wireless network, household electric appliance and user terminal
CN107872495A (en) * 2016-09-28 2018-04-03 腾讯科技(深圳)有限公司 A kind of information processing method and terminal device
CN111371872A (en) * 2020-02-27 2020-07-03 青岛海尔空调器有限总公司 Anti-theft control method, shared household appliance, server and shared system
CN112947243A (en) * 2021-03-18 2021-06-11 乐聚(深圳)机器人技术有限公司 Debugging method of humanoid robot, wireless debugging device and humanoid robot

Also Published As

Publication number Publication date
CN105553762B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN105553762A (en) Communication method and communication system between domestic appliance and mobile terminal and corresponding devices
CN106817264B (en) Method, device and system for detecting link fault
EP3675398B1 (en) Check code processing method, electronic device, and storage medium
JP5143286B2 (en) Communication system and communication device state determination method
CN106961658B (en) Internet of things home appliance equipment off-line restoration methods and networking module
CN105471678A (en) Method and system for detecting networking failure reason of household appliance and mobile terminal
CN107528747B (en) Method and device for diagnosing communication state of master station and slave station and computer readable storage medium
CN107360239A (en) A kind of client connection status detection method and system
CN109962827B (en) Equipment link detection method, device, equipment and readable storage medium
CN103795554A (en) Terminal state managing method, device and system
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN104601376B (en) Heartbeat message sending method and device
CN104243020A (en) Optical module matching detection method and optical module matching detection device
CN111490859A (en) Switching method and device of ARQ mode
CN105553765A (en) FC-AV protocol processing chip network communication robustness testing method
CN108366000A (en) Keep Alive Packet exchange method, device, communication equipment and communication system
CN104506535A (en) Data pushing method and data pushing system
CN101594674B (en) Information interaction method used for wireless access network information management
KR20110128730A (en) Apparatus and method for transmitting and receiving for the body implantable medical devices
CN104954147A (en) Equipment-waking method, gateway equipment, and server
CN113133097B (en) Wireless communication method and system
CN105577427A (en) Detection method and device for communication connection between household appliance and mobile terminal
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN108923994A (en) A kind of communication fault detection method and device
CN116185912B (en) Industrial bus load balancing method, device, equipment and medium of ECAT coupler

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200331

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Patentee after: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Address before: 528311, Guangdong, Foshan Town, Shunde District, Beijiao, 6 beautiful avenue, beautiful headquarters building, B District, 26-28 floor

Patentee before: MIDEA GROUP Co.,Ltd.

TR01 Transfer of patent right