WO2018161550A1 - Internet-of-things household appliance off-line recovery method and networking module - Google Patents

Internet-of-things household appliance off-line recovery method and networking module Download PDF

Info

Publication number
WO2018161550A1
WO2018161550A1 PCT/CN2017/104477 CN2017104477W WO2018161550A1 WO 2018161550 A1 WO2018161550 A1 WO 2018161550A1 CN 2017104477 W CN2017104477 W CN 2017104477W WO 2018161550 A1 WO2018161550 A1 WO 2018161550A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud control
connection
control platform
platforms
preset
Prior art date
Application number
PCT/CN2017/104477
Other languages
French (fr)
Chinese (zh)
Inventor
卢军
Original Assignee
广东美的制冷设备有限公司
美的集团股份有限公司
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 广东美的制冷设备有限公司, 美的集团股份有限公司 filed Critical 广东美的制冷设备有限公司
Publication of WO2018161550A1 publication Critical patent/WO2018161550A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Definitions

  • the invention relates to the technical field of household appliances, in particular to an offline recovery method and a networking module of an Internet of Things home appliance.
  • a connection can be established with a home appliance through a cloud control platform to control the home appliance.
  • the IoT home appliance is connected to multiple cloud control platforms at the same time, when one or more cloud control platforms are offline, the IoT home appliance cannot be controlled, which is inconvenient for the user to use, and the problem of the offline of the Internet of Things appliance needs to be solved.
  • the present invention aims to solve at least one of the technical problems in the related art to some extent.
  • the first object of the present invention is to provide an offline recovery method for an Internet of Things home appliance, which avoids the situation that one or more cloud control platforms cannot control the Internet of Things home appliances offline, and can ensure that all cloud control platforms can be controlled.
  • IoT home appliances are convenient for users to improve user satisfaction.
  • a second object of the present invention is to provide a networking module.
  • a third object of the present invention is to provide an Internet of Things home appliance.
  • a fourth object of the present invention is to provide a non-volatile computer storage medium.
  • the first aspect of the present invention provides an offline recovery method for an Internet of Things home appliance, comprising: establishing, respectively, a plurality of cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms. Connecting, maintaining a heartbeat connection with the plurality of cloud control platforms according to a preset period; and detecting a disconnected heartbeat connection with the first cloud control platform, and failing to restore the connection within a preset first duration, The first cloud control platform sends a connection request; if it detects that the connection is not restored with the first cloud control platform within a preset second duration, the restart operation is performed. Re-establishing a connection with the plurality of cloud control platforms.
  • the method for offline recovery of the Internet of Things home appliance in the embodiment of the present invention is respectively established with a plurality of cloud control platforms according to a preset connection protocol corresponding to the plurality of cloud control platforms, and is respectively maintained with the plurality of cloud control platforms according to a preset period.
  • the heartbeat connection and when detecting the disconnection of the heartbeat connection with the first cloud control platform, and transmitting the connection request to the first cloud control platform when the connection is not restored within the preset first duration, and finally detecting the preset
  • the restart operation is resumed with the plurality of cloud control platforms when the connection is not resumed with the first cloud control platform for the second time period. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • the offline recovery method of the Internet of Things home appliance may further have the following additional technical features:
  • the method further includes: sending, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform And sending, by the second cloud control platform, the working state query request to the first cloud control platform according to the first cloud control platform identifier; and receiving the first cloud control platform fed back by the second cloud control platform Re-establishing the connection with the plurality of cloud control platforms, and performing the restart operation, if the first cloud control platform is working properly according to the working state, performing a restart operation and the plurality of clouds The control platform re-establishes the connection.
  • the method further includes: if it is learned that the first cloud control platform is abnormal according to the working state, Continue to send a connection request to the first cloud control platform.
  • the method before the establishing a connection with the multiple cloud control platforms according to the preset connection protocol corresponding to the multiple cloud control platforms, the method further includes: an application client corresponding to the plurality of cloud control platforms respectively Ending a user account; logging in to the control page of the application client by using the user account.
  • the networking module includes: a Wi-Fi module, a Bluetooth module, and an NFC module.
  • the second aspect of the present invention provides a networking module, including: a connection unit, configured to separately establish with the multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms. Connecting, maintaining a heartbeat connection with the plurality of cloud control platforms according to a preset period; the first sending unit, configured to detect a disconnected heartbeat connection with the first cloud control platform, and within a preset first duration If the connection is not restored, the connection request is sent to the first cloud control platform; and the processing unit is configured to: if it detects that the connection is not restored with the first cloud control platform within a preset second duration, perform a restart operation and The plurality of cloud control platforms re-establish a connection.
  • the networking module of the embodiment of the present invention maintains a heartbeat connection with a plurality of cloud control platforms according to a preset period by establishing a connection with a plurality of cloud control platforms according to a preset connection protocol corresponding to the plurality of cloud control platforms, and further When it is detected that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first time period
  • the first cloud control platform sends a connection request, and finally restarts the connection with the plurality of cloud control platforms after detecting that the connection is not restored with the first cloud control platform within a preset second duration. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • networking module may further have the following additional technical features:
  • the networking module further includes: a second sending unit, configured to send, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform, where The second cloud control platform sends a working status query request to the first cloud control platform according to the first cloud control platform identifier, and the receiving unit is configured to receive the first cloud control platform fed back by the second cloud control platform Working state; the processing unit is configured to: when it is detected that the first cloud control platform is not restored to be restored within a preset second duration, and learn that the first cloud control platform works according to the working state Normally, a restart operation is performed to re-establish a connection with the plurality of cloud control platforms.
  • a second sending unit configured to send, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform, where The second cloud control platform sends a working status query request to the first cloud control platform according to the first cloud control platform identifier, and the
  • the networking module further includes: a third sending unit, configured to: if the first cloud control platform works abnormally according to the working state, continue to send a connection request to the first cloud control platform .
  • a third sending unit configured to: if the first cloud control platform works abnormally according to the working state, continue to send a connection request to the first cloud control platform .
  • the networking module further includes: a registration unit, configured to register a user account by using an application client corresponding to each of the plurality of cloud control platforms; and a login unit, configured to log in to the application by using the user account The client's control page.
  • a registration unit configured to register a user account by using an application client corresponding to each of the plurality of cloud control platforms
  • a login unit configured to log in to the application by using the user account The client's control page.
  • the networking module includes: a Wi-Fi module, a Bluetooth module, and an NFC module.
  • an embodiment of the third aspect of the present invention provides an Internet of Things home appliance, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory
  • the offline recovery method of the Internet of Things home appliance of the first aspect of the present invention is executed when executed by the one or more processors.
  • the Internet of Things home appliance of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; Detecting a disconnected heartbeat connection with the first cloud control platform, and if the connection is not restored within the preset first duration, sending a connection request to the first cloud control platform; if it is detected that there is no preset second time duration When the connection is resumed with the first cloud control platform, a restart operation is performed to re-establish a connection with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • a fourth aspect of the present invention provides a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by one device.
  • the device is configured to perform the offline recovery method of the Internet of Things home appliance according to the embodiment of the first aspect of the present invention.
  • the computer storage medium of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; After the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform; if it is detected that there is no corresponding time in the preset second duration When the first cloud control platform resumes the connection, the restart operation is re-established with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • FIG. 1 is a schematic flowchart of an offline recovery method for an Internet of Things home appliance according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network module connected to multiple cloud control platforms at the same time according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of a method for reconnecting two cloud control platforms according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for reconnecting three cloud control platforms according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of another offline recovery method of an Internet of Things home appliance according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of another method for reconnecting two cloud control platforms according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of another method for reconnecting a broken line of three cloud control platforms according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a networking module according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another networking module according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of an offline recovery method for an Internet of Things home appliance according to an embodiment of the present invention.
  • the offline recovery method of the Internet of Things home appliance includes the following steps:
  • Step 110 Establish a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintain a heartbeat connection with multiple cloud control platforms according to a preset period.
  • the Internet of Things appliance includes a networking module, and the networking module has multiple cloud control platforms connected at the same time.
  • FIG. 2 is a schematic diagram of a network module connected to multiple cloud control platforms at the same time according to an embodiment of the present invention.
  • the object link The network home appliance includes a networking module that is simultaneously connected with the A manufacturer cloud control platform, the B manufacturer cloud control platform, and the C manufacturer cloud control platform. Therefore, the above three cloud control platforms can control IoT home appliances.
  • the networking module is not limited to connecting the above three cloud control platforms at the same time, and may also be multiple cloud control platforms. Furthermore, there may be cases where one or two other cloud control platforms are offline, and it is impossible to control the Internet of Things home appliances under offline conditions, and the user satisfaction is poor.
  • the present invention provides an offline recovery method for the Internet of Things home appliance, which can reduce the connection between the Internet of Things and the plurality of cloud control platforms in the presence of offline conditions, and all cloud control platforms can control the Internet of Things appliances. It is convenient for users to use and improve user satisfaction.
  • the offline recovery method of the Internet of Things home appliance of the embodiment of the present invention is applied to a networking module in the Internet of Things appliance.
  • the Internet of Things appliance may include one or more of household appliances such as an air conditioner, a washing machine, and a refrigerator.
  • the networking module may include one or more of a Wi-Fi module, a Bluetooth module, and a wireless communication module such as an NFC module. It can be understood that the Wi-Fi module can directly connect to the router for networking through a distribution network or the like; the Bluetooth module and the NFC (Near Field Communication) module can be networked through the networked terminal.
  • a Wi-Fi module can directly connect to the router for networking through a distribution network or the like; the Bluetooth module and the NFC (Near Field Communication) module can be networked through the networked terminal.
  • NFC Near Field Communication
  • connection protocol corresponding to the multiple cloud control platforms is pre-stored in the networking module, and the connection may be established with multiple cloud control platforms according to a preset connection protocol corresponding to the multiple cloud control platforms, and the networking module and each connected The cloud control platform always has a heartbeat connection.
  • the heartbeat connection is respectively maintained with a plurality of cloud control platforms by setting a certain period to determine that all connected cloud control platforms are not in an offline state (ie, the Internet of Things appliance and the cloud control platform are disconnected).
  • the preset period may be selected according to actual application requirements, such as 1 second, 2 seconds, etc. as a preset period.
  • Step 120 When it is detected that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform.
  • a heartbeat connection is disconnected between the first cloud control platform (which can be understood that the first control platform can be any connected cloud control platform, such as the B manufacturer cloud control platform in FIG. 2). And sending a connection request to the first cloud control platform when the connection is not restored within the preset first time period.
  • the preset first duration can be selected according to actual application requirements.
  • connection is resumed within a preset first duration, and the heartbeat connection is continuously maintained with the plurality of cloud control platforms according to the preset period.
  • Step 130 If it is detected that the connection is not restored with the first cloud control platform within the preset second duration, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
  • connection request is sent to the first cloud control platform when the connection is not restored within the preset first duration
  • Restarting with a plurality of cloud control platforms is performed when a restart operation is not resumed with the first cloud control platform within a preset second time period. That is to say, the network module abnormality needs to be reset and restarted, and then reconnected to connect with multiple cloud control platforms.
  • the preset first duration can be selected according to actual application requirements.
  • the connection is resumed with the first cloud control platform, and the heartbeat connection is continuously maintained with the plurality of cloud control platforms according to the preset period.
  • FIG. 3 is a schematic flowchart diagram of a method for reconnecting two cloud control platforms according to an embodiment of the present invention. As shown in Figure 3:
  • the IoT home appliance networking module is connected to the A and B manufacturer cloud control platform (step 210), and the heartbeat connection between the networking module and the B manufacturer cloud control platform is disconnected more than T1 (ie, the first duration) at a certain time ( Step 220), and the networking module and the A manufacturer cloud control platform are connected normally, indicating that the Internet of Things home appliance networking module loses contact with the B manufacturer cloud control platform, and the networking module has been trying to connect to the B manufacturer cloud control platform, if at time T2 ( In the second time period, the IoT home appliance device networking module is normally connected to the B manufacturer cloud control platform, but if the IoT home appliance device networking module is not connected to the B manufacturer cloud control platform in the T2 time, the networking module Perform a software reset and restart, then re-network and connect the A and B manufacturer cloud control platforms (steps 230 to 240).
  • T1 ie, the first duration
  • Step 220 the networking module and the A manufacturer cloud control platform are connected normally, indicating that the Internet of Things home appliance
  • heartbeat connection between the networking module and the A manufacturer cloud control platform is also determined according to the above method.
  • FIG. 4 is a schematic flowchart diagram of a method for reconnecting three cloud control platforms according to an embodiment of the present invention. As shown in FIG. 4, the three cloud control platform disconnection reconnection methods include the following steps:
  • the Internet of Things home appliance networking module is connected to the A, B, and C manufacturer cloud control platforms (step 310).
  • the home appliance networking module and any one of the manufacturer's cloud control platforms (described in Figure 4 is the B manufacturer cloud control platform) have a heartbeat connection disconnected for more than T1 time (step 320), while the network module and the A manufacturer and the C manufacturer cloud control The platform connection is normal, which means that the IoT home appliance networking module loses contact with the B manufacturer cloud control platform.
  • the networking module has been trying to connect to the B manufacturer cloud control platform. If in the T2 time, the IoT home appliance networking module is normally connected to the B manufacturer.
  • the cloud control platform does not process it.
  • the networking module performs software reset and restart, and then re-networks and connects the A, B, C manufacturer cloud control platform (step 330). Go to step 340).
  • the networking module when the networking module is abnormal, it can be restarted by software reset, and re-networking and performing multiple cloud control
  • the platform is connected to ensure that all cloud control platforms can control IoT appliances and enhance the user experience.
  • the offline recovery method of the Internet of Things home appliance of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, respectively, according to a preset period and multiple
  • the cloud control platform maintains a heartbeat connection, and then detects a disconnected heartbeat connection with the first cloud control platform, and sends a connection request to the first cloud control platform when the connection is not restored within the preset first duration, and finally detects
  • the re-establishment of the connection with the plurality of cloud control platforms is performed by performing a restart operation when the connection to the first cloud control platform is not resumed within the preset second time period. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • the restart operation is directly performed to re-establish connection with the plurality of cloud control platforms.
  • the working state of the first cloud control platform may be queried through other connected cloud control platforms, and the corresponding processing manner is determined according to the working state of the first cloud control platform.
  • FIG. 5 is a schematic flowchart of another offline recovery method of an Internet of Things home appliance according to an embodiment of the present invention.
  • the offline recovery method of the Internet of Things home appliance includes the following steps:
  • Step 410 Register a user account by using an application client corresponding to each of the plurality of cloud control platforms.
  • Step 420 Log in to the control page of the application client by using a user account.
  • the network is activated by registering the user account corresponding to the application client corresponding to the plurality of cloud control platforms, and the activated plurality of cloud control platforms can be simultaneously connected after the activation, that is, the user account can be used to log in to the control page of the application client to implement control.
  • the networking module can be registered to activate a cloud control platform, two cloud control platforms, or multiple cloud control platforms, etc., and the application client corresponding to the cloud control platform can register a user account to activate the corresponding one according to actual application requirements. Cloud control platform.
  • Step 430 Establish a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintain a heartbeat connection with multiple cloud control platforms according to a preset period.
  • Step 440 When it is detected that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform.
  • steps S110-S120 corresponds to the above-mentioned steps S430-S440, and therefore the description of the steps S110-S120 is referred to the description of the above steps S430-S440, and details are not described herein again.
  • Step 450 If it is detected that there is no connection with the first cloud control platform within a preset second duration, send a networking failure message carrying the first cloud control platform identifier to the second cloud control platform that maintains the heartbeat connection, for the first The second cloud control platform sends a work status query request to the first cloud control platform according to the first cloud control platform identifier.
  • the heartbeat connection can be maintained.
  • the second cloud control platform sends a network failure message carrying the identifier of the first cloud control platform.
  • the second cloud control platform may be any cloud control platform that is connected to the heartbeat and can be selected according to actual application requirements.
  • the cloud control platform can directly send and receive data to each other by interacting directly.
  • Data transmission between the cloud control platforms can be performed by means of wireless communication or the like.
  • the first cloud control platform identifier may be a form that can uniquely identify the first cloud control platform, such as a string of characters.
  • the first cloud control platform identifier is obtained by parsing the failure information, and the work is sent to the corresponding first cloud control platform. Status query request.
  • the working state can be understood as whether the first cloud control platform is normally connected.
  • Step 460 Receive an operating state of the first cloud control platform fed back by the second cloud control platform.
  • Step 470 If it is known that the first cloud control platform works normally according to the working state, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
  • Step 480 If it is known that the first cloud control platform works abnormally according to the working state, continue to send a connection request to the first cloud control platform.
  • the first cloud control platform may be received to work normally, abnormally, and no feedback is received.
  • the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
  • the connection request is continuously sent to the first cloud control platform.
  • receiving the first cloud control platform to work abnormally and not receiving any feedback determines that the first cloud control platform works abnormally.
  • FIG. 6 is a schematic flowchart diagram of another method for disconnecting a broken line of two cloud control platforms according to an embodiment of the present invention. As shown in FIG. 6 , the two cloud control platform disconnection reconnection methods include the following steps:
  • the Internet of Things appliance networking module registers to activate two cloud control platforms.
  • the Internet of Things home appliance networking module is connected to the A and B manufacturer cloud control platforms (step 510).
  • the IoT home appliance device networking module and the B manufacturer cloud control platform have a heartbeat connection more than T1 time (step 510), and the A manufacturer cloud control platform is connected normally, representing the Internet of Things home appliance device networking module and B manufacturer cloud control. The platform lost contact.
  • the IoT home appliance device networking module has been trying to connect to the B manufacturer cloud control platform. If the home appliance is normally connected to the B manufacturer cloud control platform in T2, it will not be processed.
  • the Internet of Things appliance networking module sends the B manufacturer cloud control platform networking failure information to the A manufacturer cloud control platform (step 530 to step 540).
  • a manufacturer cloud control platform sends a query B manufacturer cloud control platform whether the normal command to the B manufacturer cloud control platform, if the B manufacturer cloud control platform returns to the A manufacturer cloud control platform for the B manufacturer cloud control platform abnormal or does not return information, then the representative The B manufacturer's cloud control platform is abnormal, and the Internet of Things home appliance networking module continues to connect to the B manufacturer cloud control platform until the B manufacturer cloud control platform resumes normal connection (steps 550 to 560).
  • the A manufacturer cloud control platform feeds back the normal information of the B manufacturer cloud control platform to the Internet of Things appliance networking module, representing the abnormality of the Internet of Things appliance networking module, and the Internet of Things appliance networking.
  • the module performs a software reset and restarts, and then re-networks and connects the A and B manufacturers cloud control platforms (steps 570 to 580).
  • FIG. 7 is a schematic flowchart of another method for reconnecting a broken line of three cloud control platforms according to an embodiment of the present invention. As shown in Figure 7:
  • the Internet of Things appliance networking module registers to activate three cloud control platforms.
  • the Internet of Things appliance networking module is connected to the A, B, and C manufacturer cloud control platforms (step 610).
  • the IoT home appliance device networking module and the B manufacturer cloud control platform have a heartbeat connection more than T1 time (step 620), and the A manufacturer cloud control platform and the C manufacturer cloud control platform are connected normally, representing the Internet of Things (IoT) home appliances.
  • the module lost contact with the B manufacturer cloud control platform.
  • the IoT home appliance device networking module has been trying to connect to the B manufacturer cloud control platform. If in the T2 time, the IoT home appliance networking module is normally connected to the B manufacturer cloud control platform, it will not be processed.
  • the IoT home appliance device networking module sends the B manufacturer cloud control platform networking failure information to any other platform (for example: A manufacturer cloud control platform or C manufacturer cloud control platform), A manufacturer cloud control platform sends a query B manufacturer cloud control platform whether the normal command to the B manufacturer cloud control platform (step 630 to step 640).
  • Step 650 to Step 660 the Internet of Things home appliance device networking module continues to connect the B manufacturer cloud control Platform until B manufacturer cloud control platform recovery.
  • the A manufacturer cloud control platform feeds back the normal information of the B manufacturer cloud control platform to the Internet of Things home appliance device networking module, representing the Internet of Things home appliance device networking module abnormality, the Internet of Things home appliance device
  • the networking module performs a software reset and restarts, and then re-networks and connects the A, B, and C manufacturers cloud control platforms (steps 670 to 680).
  • the offline recovery method of the Internet of Things home appliance in the embodiment of the present invention firstly registers a user account with an application client corresponding to multiple cloud control platforms, and logs in to the control page of the application client through the user account, and then according to the preset.
  • the connection protocol corresponding to the plurality of cloud control platforms respectively establishes a connection with the plurality of cloud control platforms, according to the preset.
  • the cycle maintains a heartbeat connection with the plurality of cloud control platforms, and then sends a connection request to the first cloud control platform when the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first time period.
  • the cloud control platform sends a working state query request to the first cloud control platform according to the first cloud control platform identifier, and finally receives the working state of the first cloud control platform fed back by the second cloud control platform, and learns the first cloud control platform according to the working state.
  • the restart operation is re-established with the plurality of cloud control platforms, and when the first cloud control platform works abnormally according to the working state, the connection request is continuously sent to the first cloud control platform.
  • the other cloud control platform that maintains the heartbeat connection checks whether the offline cloud control platform is normal, performs software reset and restart on the networking module at normal time, and then reconnects to the cloud control platform to realize offline network control platform re-networking to ensure all clouds.
  • the control platform can control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • the present invention also proposes a networking module.
  • FIG. 8 is a schematic structural diagram of a networking module according to an embodiment of the present invention.
  • the networking module includes a connection unit 810, a first transmission unit 820, and a processing unit 830.
  • the connection unit 810 is configured to establish a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintain a heartbeat connection with multiple cloud control platforms according to a preset period.
  • the first sending unit 820 is configured to send a connection request to the first cloud control platform when detecting that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration.
  • the processing unit 830 is configured to: if it is detected that the connection is not restored with the first cloud control platform within the preset second duration, perform a restart operation to re-establish connection with the multiple cloud control platforms.
  • the networking module may include a Wi-Fi module, a Bluetooth module, and an NFC module.
  • the offline recovery method of the Internet of Things home appliance of the embodiment of the present invention is applied to a networking module in the Internet of Things appliance.
  • the Internet of Things appliance may include one or more of household appliances such as an air conditioner, a washing machine, and a refrigerator.
  • the networking module may include one or more of a Wi-Fi module, a Bluetooth module, and a wireless communication module such as an NFC module. It can be understood that the Wi-Fi module can directly connect to the router for networking through a distribution network or the like; the Bluetooth module and the NFC (Near Field Communication) module can be networked through the networked terminal.
  • a Wi-Fi module can directly connect to the router for networking through a distribution network or the like; the Bluetooth module and the NFC (Near Field Communication) module can be networked through the networked terminal.
  • NFC Near Field Communication
  • the networking module of the embodiment of the present invention is configured according to a preset connection corresponding to multiple cloud control platforms.
  • the protocol establishes a connection with multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period, and then detects a disconnected heartbeat connection with the first cloud control platform, and is at a preset first duration.
  • the connection request is sent to the first cloud control platform, and finally, when it is detected that the connection is not restored with the first cloud control platform within the preset second duration, the restart operation is re-established with the plurality of cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • this embodiment provides another networking module.
  • FIG. 9 is a schematic structural diagram of another networking module according to an embodiment of the present invention. As shown in FIG. 9, on the basis of the previous embodiment, the networking module further includes: a second sending unit 840, a receiving unit 850, and a third sending unit 860.
  • the second sending unit 840 is configured to send, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform, where the second cloud control platform sends the identifier to the first cloud according to the first cloud control platform identifier.
  • the control platform sends a work status query request.
  • the receiving unit 850 is configured to receive an operating state of the first cloud control platform fed back by the second cloud control platform.
  • the processing unit 830 is configured to perform a restart operation when detecting that the first cloud control platform is not working properly after the preset second time duration is restored, and when the first cloud control platform is working according to the working state. Multiple cloud control platforms re-establish connections.
  • the third sending unit 860 is configured to continue to send a connection request to the first cloud control platform if the first cloud control platform works abnormally according to the working state.
  • the networking module further includes: a registration unit 870 and a login unit 880.
  • the registration unit 870 is configured to register a user account by using an application client corresponding to each of the plurality of cloud control platforms.
  • the login unit 880 is configured to log in to the control page of the application client by using a user account.
  • the networking module of the embodiment of the present invention first registers a user account by using an application client corresponding to multiple cloud control platforms, and logs in to the control page of the application client through the user account, and then according to the preset and multiple clouds.
  • the connection protocol corresponding to the control platform is respectively connected with the plurality of cloud control platforms, and the heartbeat connection is maintained with the plurality of cloud control platforms according to the preset period, and then the heartbeat connection is disconnected from the first cloud control platform, and the Sending a connection request to the first cloud control platform when the connection is not restored within the first duration, and detecting to the second cloud that maintains the heartbeat connection when there is no connection with the first cloud control platform within the preset second duration
  • the control platform sends a network failure message carrying the identifier of the first cloud control platform, so that the second cloud control platform sends a work status query request to the first cloud control platform according to the first cloud control platform identifier, and finally receives the feedback from the second cloud control platform.
  • the working state of the first cloud control platform When the first cloud control platform is working properly according to the working state, the restart operation is re-established with the plurality of cloud control platforms, and the connection request is sent to the first cloud control platform when the first cloud control platform is abnormal according to the working state. Therefore, the other cloud control platform that maintains the heartbeat connection checks whether the offline cloud control platform is normal, performs software reset and restart on the networking module at normal time, and then reconnects to the cloud control platform to realize offline network control platform re-networking to ensure all clouds.
  • the control platform can control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • An embodiment of the present invention further provides an Internet of Things home appliance, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory when the one is Or when the plurality of processors are executed, the offline recovery method of the Internet of Things home appliance of the first aspect of the present invention is executed.
  • the Internet of Things home appliance of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; Detecting a disconnected heartbeat connection with the first cloud control platform, and if the connection is not restored within the preset first duration, sending a connection request to the first cloud control platform; if it is detected that there is no preset second time duration When the connection is resumed with the first cloud control platform, a restart operation is performed to re-establish a connection with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • An embodiment of the present invention further provides a non-volatile computer storage medium, where the computer storage medium stores one or more programs, when the one or more programs are executed by one device, causing the device to execute the present The offline recovery method of the Internet of Things home appliance of the first aspect of the invention.
  • the computer storage medium of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; After the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform; if it is detected that there is no corresponding time in the preset second duration When the first cloud control platform resumes the connection, the restart operation is re-established with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

The invention provides an Internet-of-Things household appliance off-line recovery method and a networking module, wherein the method is applied to the networking module in Internet-of-Things household appliances, and comprises: establishing connections with a plurality of cloud control platforms respectively according to preset connection protocols corresponding to the plurality of cloud control platforms, and maintaining heartbeat connections with the plurality of cloud control platforms respectively according to a preset period; if it is detected that a heartbeat connection with a first cloud control platform is interrupted, and the connection is not restored within a preset first time period, sending a connection request to the first cloud control platform; and if it is detected that the connection with the first cloud control platform is not restored within a preset second time period, performing a restarting operation and reestablishing connections with the plurality of cloud control platforms. Thus, the invention can prevent a situation in which one or more cloud control platforms go offline and Internet of Things household appliances cannot be controlled, and ensures that all cloud control platforms can control the Internet of things household appliances, which is convenient for users and improves user satisfaction.

Description

物联网家电设备离线恢复方法和联网模块IoT home appliance offline recovery method and networking module
相关申请的交叉引用Cross-reference to related applications
本申请要求广东美的制冷设备有限公司美的集团股份有限公司于2017年3月9日提交的、发明名称为“物联网家电设备离线恢复方法和联网模块”的、中国专利申请号“201710137971.4”的优先权。This application claims that the Chinese patent application number "201710137971.4", which was submitted on March 9, 2017 by Guangdong Midea Refrigeration Equipment Co., Ltd., was named "IoT Home Appliances Offline Recovery Method and Networking Module". right.
技术领域Technical field
本发明涉及家用电器技术领域,特别涉及一种物联网家电设备离线恢复方法和联网模块。The invention relates to the technical field of household appliances, in particular to an offline recovery method and a networking module of an Internet of Things home appliance.
背景技术Background technique
随着物联网技术的发展,越来越多的家电设备具备了联网能力,即可以根据用户需求通过网络远程控制家电设备进行操作。With the development of the Internet of Things technology, more and more home appliances have the ability to connect, that is, the home appliance can be remotely controlled through the network according to user needs.
通常,可以通过云控制平台与家电设备建立连接以对家电设备进行控制。然而,当物联网家电设备同时连接多个云控制平台时,出现一个或者多个云控制平台离线的情况时无法控制物联网家电设备,不方便用户使用,物联网家电设备离线的问题需要解决。Generally, a connection can be established with a home appliance through a cloud control platform to control the home appliance. However, when the IoT home appliance is connected to multiple cloud control platforms at the same time, when one or more cloud control platforms are offline, the IoT home appliance cannot be controlled, which is inconvenient for the user to use, and the problem of the offline of the Internet of Things appliance needs to be solved.
发明内容Summary of the invention
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve at least one of the technical problems in the related art to some extent.
为此,本发明的第一个目的在于提出一种物联网家电设备离线恢复方法,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。To this end, the first object of the present invention is to provide an offline recovery method for an Internet of Things home appliance, which avoids the situation that one or more cloud control platforms cannot control the Internet of Things home appliances offline, and can ensure that all cloud control platforms can be controlled. IoT home appliances are convenient for users to improve user satisfaction.
本发明的第二个目的在于提出一种联网模块。A second object of the present invention is to provide a networking module.
本发明的第三个目的在于提出一种物联网家电设备。A third object of the present invention is to provide an Internet of Things home appliance.
本发明的第四个目的在于提出一种非易失性计算机存储介质。A fourth object of the present invention is to provide a non-volatile computer storage medium.
为达上述目的,本发明第一方面实施例提出了一种物联网家电设备离线恢复方法,包括:根据预设的与多个云控制平台对应的连接协议分别与所述多个云控制平台建立连接,按照预设周期分别与所述多个云控制平台保持心跳连接;当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向所述第一云控制平台发送连接请求;若检测到在预设的第二时长内没有与所述第一云控制平台恢复连接,则进行重启操 作与所述多个云控制平台重新建立连接。In order to achieve the above objective, the first aspect of the present invention provides an offline recovery method for an Internet of Things home appliance, comprising: establishing, respectively, a plurality of cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms. Connecting, maintaining a heartbeat connection with the plurality of cloud control platforms according to a preset period; and detecting a disconnected heartbeat connection with the first cloud control platform, and failing to restore the connection within a preset first duration, The first cloud control platform sends a connection request; if it detects that the connection is not restored with the first cloud control platform within a preset second duration, the restart operation is performed. Re-establishing a connection with the plurality of cloud control platforms.
本发明实施例的物联网家电设备离线恢复方法,通过根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接,进而当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求,最后在检测到在预设的第二时长内没有与第一云控制平台恢复连接时进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。The method for offline recovery of the Internet of Things home appliance in the embodiment of the present invention is respectively established with a plurality of cloud control platforms according to a preset connection protocol corresponding to the plurality of cloud control platforms, and is respectively maintained with the plurality of cloud control platforms according to a preset period. The heartbeat connection, and when detecting the disconnection of the heartbeat connection with the first cloud control platform, and transmitting the connection request to the first cloud control platform when the connection is not restored within the preset first duration, and finally detecting the preset The restart operation is resumed with the plurality of cloud control platforms when the connection is not resumed with the first cloud control platform for the second time period. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
另外,根据本发明上述实施例的物联网家电设备离线恢复方法还可以具有如下附加的技术特征:In addition, the offline recovery method of the Internet of Things home appliance according to the above embodiment of the present invention may further have the following additional technical features:
可选地,在所述进行重启操作与所述多个云控制平台重新建立连接之前,还包括:向保持心跳连接的第二云控制平台发送携带所述第一云控制平台标识的联网失败消息,以供所述第二云控制平台根据所述第一云控制平台标识向所述第一云控制平台发送工作状态查询请求;接收所述第二云控制平台反馈的所述第一云控制平台的工作状态;所述进行重启操作与所述多个云控制平台重新建立连接,包括:若根据所述工作状态获知所述第一云控制平台工作正常,则进行重启操作与所述多个云控制平台重新建立连接。Optionally, before the re-establishing the connection with the multiple cloud control platforms, the method further includes: sending, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform And sending, by the second cloud control platform, the working state query request to the first cloud control platform according to the first cloud control platform identifier; and receiving the first cloud control platform fed back by the second cloud control platform Re-establishing the connection with the plurality of cloud control platforms, and performing the restart operation, if the first cloud control platform is working properly according to the working state, performing a restart operation and the plurality of clouds The control platform re-establishes the connection.
可选地,在所述接收所述第二云控制平台反馈的所述第一云控制平台的工作状态之后,还包括:若根据所述工作状态获知所述第一云控制平台工作异常,则继续向所述第一云控制平台发送连接请求。Optionally, after the receiving the working state of the first cloud control platform that is fed back by the second cloud control platform, the method further includes: if it is learned that the first cloud control platform is abnormal according to the working state, Continue to send a connection request to the first cloud control platform.
可选地,在所述根据预设的与多个云控制平台对应的连接协议分别与所述多个云控制平台建立连接之前,还包括:通过所述多个云控制平台分别对应的应用客户端注册用户账号;通过所述用户账号登录所述应用客户端的控制页面。Optionally, before the establishing a connection with the multiple cloud control platforms according to the preset connection protocol corresponding to the multiple cloud control platforms, the method further includes: an application client corresponding to the plurality of cloud control platforms respectively Ending a user account; logging in to the control page of the application client by using the user account.
可选地,所述联网模块包括:Wi-Fi模块、蓝牙模块、以及,NFC模块。Optionally, the networking module includes: a Wi-Fi module, a Bluetooth module, and an NFC module.
为达上述目的,本发明第二方面实施例提出了一种联网模块,包括:连接单元,用于根据预设的与多个云控制平台对应的连接协议分别与所述多个云控制平台建立连接,按照预设周期分别与所述多个云控制平台保持心跳连接;第一发送单元,用于当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向所述第一云控制平台发送连接请求;处理单元,用于若检测到在预设的第二时长内没有与所述第一云控制平台恢复连接,则进行重启操作与所述多个云控制平台重新建立连接。To achieve the above objective, the second aspect of the present invention provides a networking module, including: a connection unit, configured to separately establish with the multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms. Connecting, maintaining a heartbeat connection with the plurality of cloud control platforms according to a preset period; the first sending unit, configured to detect a disconnected heartbeat connection with the first cloud control platform, and within a preset first duration If the connection is not restored, the connection request is sent to the first cloud control platform; and the processing unit is configured to: if it detects that the connection is not restored with the first cloud control platform within a preset second duration, perform a restart operation and The plurality of cloud control platforms re-establish a connection.
本发明实施例的联网模块,通过通过根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接,进而当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接时向 第一云控制平台发送连接请求,最后在检测到在预设的第二时长内没有与第一云控制平台恢复连接时进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。The networking module of the embodiment of the present invention maintains a heartbeat connection with a plurality of cloud control platforms according to a preset period by establishing a connection with a plurality of cloud control platforms according to a preset connection protocol corresponding to the plurality of cloud control platforms, and further When it is detected that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first time period The first cloud control platform sends a connection request, and finally restarts the connection with the plurality of cloud control platforms after detecting that the connection is not restored with the first cloud control platform within a preset second duration. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
另外,根据本发明上述实施例的联网模块还可以具有如下附加的技术特征:In addition, the networking module according to the above embodiment of the present invention may further have the following additional technical features:
可选地,所述的联网模块,还包括:第二发送单元,用于向保持心跳连接的第二云控制平台发送携带所述第一云控制平台标识的联网失败消息,以供所述第二云控制平台根据所述第一云控制平台标识向所述第一云控制平台发送工作状态查询请求;接收单元,用于接收所述第二云控制平台反馈的所述第一云控制平台的工作状态;所述处理单元用于:在检测到在预设的第二时长内没有与所述第一云控制平台恢复连接时,且在根据所述工作状态获知所述第一云控制平台工作正常时,进行重启操作与所述多个云控制平台重新建立连接。Optionally, the networking module further includes: a second sending unit, configured to send, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform, where The second cloud control platform sends a working status query request to the first cloud control platform according to the first cloud control platform identifier, and the receiving unit is configured to receive the first cloud control platform fed back by the second cloud control platform Working state; the processing unit is configured to: when it is detected that the first cloud control platform is not restored to be restored within a preset second duration, and learn that the first cloud control platform works according to the working state Normally, a restart operation is performed to re-establish a connection with the plurality of cloud control platforms.
可选地,所述的联网模块,还包括:第三发送单元,用于若根据所述工作状态获知所述第一云控制平台工作异常,则继续向所述第一云控制平台发送连接请求。Optionally, the networking module further includes: a third sending unit, configured to: if the first cloud control platform works abnormally according to the working state, continue to send a connection request to the first cloud control platform .
可选地,所述的联网模块,还包括:注册单元,用于通过所述多个云控制平台分别对应的应用客户端注册用户账号;登录单元,用于通过所述用户账号登录所述应用客户端的控制页面。Optionally, the networking module further includes: a registration unit, configured to register a user account by using an application client corresponding to each of the plurality of cloud control platforms; and a login unit, configured to log in to the application by using the user account The client's control page.
可选地,所述联网模块包括:Wi-Fi模块、蓝牙模块、以及,NFC模块。Optionally, the networking module includes: a Wi-Fi module, a Bluetooth module, and an NFC module.
为达上述目的,本发明第三方面实施例提供了一种物联网家电设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时,执行本发明第一方面实施例的物联网家电设备离线恢复方法。To achieve the above objective, an embodiment of the third aspect of the present invention provides an Internet of Things home appliance, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory The offline recovery method of the Internet of Things home appliance of the first aspect of the present invention is executed when executed by the one or more processors.
本发明实施例的物联网家电设备,根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接;当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求;若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。The Internet of Things home appliance of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; Detecting a disconnected heartbeat connection with the first cloud control platform, and if the connection is not restored within the preset first duration, sending a connection request to the first cloud control platform; if it is detected that there is no preset second time duration When the connection is resumed with the first cloud control platform, a restart operation is performed to re-establish a connection with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
为达上述目的,本发明第四方面实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行本发明第一方面实施例的物联网家电设备离线恢复方法。 To achieve the above object, a fourth aspect of the present invention provides a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by one device. The device is configured to perform the offline recovery method of the Internet of Things home appliance according to the embodiment of the first aspect of the present invention.
本发明实施例的计算机存储介质,根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接;当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求;若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。The computer storage medium of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; After the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform; if it is detected that there is no corresponding time in the preset second duration When the first cloud control platform resumes the connection, the restart operation is re-established with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
附图说明DRAWINGS
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1为本发明实施例提供的一种物联网家电设备离线恢复方法的流程示意图;1 is a schematic flowchart of an offline recovery method for an Internet of Things home appliance according to an embodiment of the present invention;
图2为本发明实施例提供的联网模块同时连接多个云控制平台的示意图;2 is a schematic diagram of a network module connected to multiple cloud control platforms at the same time according to an embodiment of the present invention;
图3为本发明实施例提供的一种两个云控制平台断线重连方法的流程示意图;FIG. 3 is a schematic flowchart diagram of a method for reconnecting two cloud control platforms according to an embodiment of the present invention;
图4为本发明实施例提供的一种三个云控制平台断线重连方法的流程示意图;4 is a schematic flowchart of a method for reconnecting three cloud control platforms according to an embodiment of the present invention;
图5为本发明实施例提供的另一种物联网家电设备离线恢复方法的流程示意图;5 is a schematic flowchart of another offline recovery method of an Internet of Things home appliance according to an embodiment of the present invention;
图6为本发明实施例提供的另一种两个云控制平台断线重连方法的流程示意图;FIG. 6 is a schematic flowchart diagram of another method for reconnecting two cloud control platforms according to an embodiment of the present invention;
图7为本发明实施例提供的另一种三个云控制平台断线重连方法的流程示意图;FIG. 7 is a schematic flowchart of another method for reconnecting a broken line of three cloud control platforms according to an embodiment of the present invention;
图8为本发明实施例提供的一种联网模块的结构示意图;FIG. 8 is a schematic structural diagram of a networking module according to an embodiment of the present disclosure;
图9为本发明实施例提供的另一种联网模块的结构示意图。FIG. 9 is a schematic structural diagram of another networking module according to an embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
下面参考附图描述本发明实施例的物联网家电设备离线恢复方法和联网模块。The offline recovery method and networking module of the Internet of Things home appliance according to the embodiment of the present invention are described below with reference to the accompanying drawings.
图1为本发明实施例提供的一种物联网家电设备离线恢复方法的流程示意图。FIG. 1 is a schematic flowchart diagram of an offline recovery method for an Internet of Things home appliance according to an embodiment of the present invention.
如图1所示,该物联网家电设备离线恢复方法包括以下步骤:As shown in FIG. 1, the offline recovery method of the Internet of Things home appliance includes the following steps:
步骤110,根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接。Step 110: Establish a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintain a heartbeat connection with multiple cloud control platforms according to a preset period.
具体地,物联网家电设备包括联网模块,联网模块具备同时连接多个云控制平台。图2为本发明实施例提供的联网模块同时连接多个云控制平台的示意图。如图2所示,物联 网家电设备包括联网模块分别与A厂家云控制平台、B厂家云控制平台和C厂家云控制平台同时连接。因此,上述三个云控制平台都能控制物联网家电设备。Specifically, the Internet of Things appliance includes a networking module, and the networking module has multiple cloud control platforms connected at the same time. FIG. 2 is a schematic diagram of a network module connected to multiple cloud control platforms at the same time according to an embodiment of the present invention. As shown in Figure 2, the object link The network home appliance includes a networking module that is simultaneously connected with the A manufacturer cloud control platform, the B manufacturer cloud control platform, and the C manufacturer cloud control platform. Therefore, the above three cloud control platforms can control IoT home appliances.
可以理解的是,联网模块不限于同时连接上述三个云控制平台,还可以是多个云控制平台。再者,可能出现一个或者两个等云控制平台离线的情况,在离线的情况下无法实现对物联网家电设备进行控制,用户满意度差。It can be understood that the networking module is not limited to connecting the above three cloud control platforms at the same time, and may also be multiple cloud control platforms. Furthermore, there may be cases where one or two other cloud control platforms are offline, and it is impossible to control the Internet of Things home appliances under offline conditions, and the user satisfaction is poor.
为了避免上述问题,本发明提出一种物联网家电设备离线恢复方法,能够在出现离线情况湿,恢复物联网家电设备与多个云控制平台的连接,所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。In order to avoid the above problems, the present invention provides an offline recovery method for the Internet of Things home appliance, which can reduce the connection between the Internet of Things and the plurality of cloud control platforms in the presence of offline conditions, and all cloud control platforms can control the Internet of Things appliances. It is convenient for users to use and improve user satisfaction.
需要说明的是,本发明实施例的物联网家电设备离线恢复方法应用在物联网家电设备中的联网模块。物联网家电设备可以包括空调、洗衣机和冰箱等家电设备中的一种或者多种。It should be noted that the offline recovery method of the Internet of Things home appliance of the embodiment of the present invention is applied to a networking module in the Internet of Things appliance. The Internet of Things appliance may include one or more of household appliances such as an air conditioner, a washing machine, and a refrigerator.
其中,联网模块可以包括Wi-Fi模块、蓝牙模块、以及,NFC模块等无线通信模块中的一种或者多种。可以理解的是,Wi-Fi模块能够通过配网等方式直接连接路由器进行联网;蓝牙模块和NFC(Near Field Communication,近距离无线通信)模块等可以通过联网终端进行联网。The networking module may include one or more of a Wi-Fi module, a Bluetooth module, and a wireless communication module such as an NFC module. It can be understood that the Wi-Fi module can directly connect to the router for networking through a distribution network or the like; the Bluetooth module and the NFC (Near Field Communication) module can be networked through the networked terminal.
具体地,联网模块中预先存储多个云控制平台对应的连接协议,可以根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,联网模块与已经连接的各个云控制平台一直具有心跳连接。Specifically, the connection protocol corresponding to the multiple cloud control platforms is pre-stored in the networking module, and the connection may be established with multiple cloud control platforms according to a preset connection protocol corresponding to the multiple cloud control platforms, and the networking module and each connected The cloud control platform always has a heartbeat connection.
进一步地,通过设置一定周期分别与多个云控制平台保持心跳连接以确定所有连接的云控制平台不处于离线状态(即物联网家电设备与云控制平台断线)。其中,预设周期可以根据实际应用需要进行选择设置,比如1秒、2秒等作为预设周期。Further, the heartbeat connection is respectively maintained with a plurality of cloud control platforms by setting a certain period to determine that all connected cloud control platforms are not in an offline state (ie, the Internet of Things appliance and the cloud control platform are disconnected). The preset period may be selected according to actual application requirements, such as 1 second, 2 seconds, etc. as a preset period.
步骤120,当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求。Step 120: When it is detected that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform.
具体地,在某个时间检测到与第一云控制平台(可以理解的是第一控制平台可以是任何一个连接的云控制平台,比如图2中的B厂家云控制平台)之间断开心跳连接,并且在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求。Specifically, at some time, a heartbeat connection is disconnected between the first cloud control platform (which can be understood that the first control platform can be any connected cloud control platform, such as the B manufacturer cloud control platform in FIG. 2). And sending a connection request to the first cloud control platform when the connection is not restored within the preset first time period.
其中,预设的第一时长可以根据实际应用需要进行选择设置。The preset first duration can be selected according to actual application requirements.
需要说明的是,在预设的第一时长内恢复连接,继续按照预设周期分别与多个云控制平台保持心跳连接。It should be noted that the connection is resumed within a preset first duration, and the heartbeat connection is continuously maintained with the plurality of cloud control platforms according to the preset period.
步骤130,若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。Step 130: If it is detected that the connection is not restored with the first cloud control platform within the preset second duration, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
具体地,在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求后,并 在预设的第二时长内没有与第一云控制平台恢复连接时进行重启操作与多个云控制平台重新建立连接。即确定联网模块异常需要进行复位重启,然后重新联网与多个云控制平台连接。Specifically, after the connection request is sent to the first cloud control platform when the connection is not restored within the preset first duration, and Restarting with a plurality of cloud control platforms is performed when a restart operation is not resumed with the first cloud control platform within a preset second time period. That is to say, the network module abnormality needs to be reset and restarted, and then reconnected to connect with multiple cloud control platforms.
其中,预设的第一时长可以根据实际应用需要进行选择设置。The preset first duration can be selected according to actual application requirements.
需要说明的是,在预设的第二时长内与第一云控制平台恢复连接,继续按照预设周期分别与多个云控制平台保持心跳连接。It should be noted that, after the preset second time period, the connection is resumed with the first cloud control platform, and the heartbeat connection is continuously maintained with the plurality of cloud control platforms according to the preset period.
为了本领域人员更加上述过程,下面结合图3和图4,以两个云控制平台(A厂家云控制平台和B厂家云控制平台)和三个云控制平台(A厂家云控制平台、B厂家云控制平台和C厂家云控制平台)为例进行举例说明如下:In order to further improve the above process in the field, together with FIG. 3 and FIG. 4, two cloud control platforms (A manufacturer cloud control platform and B manufacturer cloud control platform) and three cloud control platforms (A manufacturer cloud control platform, B manufacturer) The cloud control platform and the C manufacturer cloud control platform are exemplified as follows:
图3为本发明实施例提供的一种两个云控制平台断线重连方法的流程示意图。如图3所示:FIG. 3 is a schematic flowchart diagram of a method for reconnecting two cloud control platforms according to an embodiment of the present invention. As shown in Figure 3:
具体地,物联网家电设备联网模块连接上A和B厂家云控制平台(步骤210),在某个时间出现联网模块与B厂家云控制平台心跳连接断开超过T1(即第一时长)时间(步骤220),而联网模块与A厂家云控制平台连接正常,表示物联网家电设备联网模块与B厂家云控制平台失去联系,此时联网模块一直尝试连接B厂家云控制平台,若在T2时间(即第二时长)内,物联网家电设备联网模块正常连接上B厂家云控制平台则不做处理;若在T2时间内物联网家电设备联网模块还未连接上B厂家云控制平台,则联网模块进行软件复位重启,然后重新联网并进行A、B厂家云控制平台连接(步骤230至步骤240)。Specifically, the IoT home appliance networking module is connected to the A and B manufacturer cloud control platform (step 210), and the heartbeat connection between the networking module and the B manufacturer cloud control platform is disconnected more than T1 (ie, the first duration) at a certain time ( Step 220), and the networking module and the A manufacturer cloud control platform are connected normally, indicating that the Internet of Things home appliance networking module loses contact with the B manufacturer cloud control platform, and the networking module has been trying to connect to the B manufacturer cloud control platform, if at time T2 ( In the second time period, the IoT home appliance device networking module is normally connected to the B manufacturer cloud control platform, but if the IoT home appliance device networking module is not connected to the B manufacturer cloud control platform in the T2 time, the networking module Perform a software reset and restart, then re-network and connect the A and B manufacturer cloud control platforms (steps 230 to 240).
需要说明的是,联网模块与A厂家云控制平台心跳连接断开也按照上述方法进行判断处理。It should be noted that the heartbeat connection between the networking module and the A manufacturer cloud control platform is also determined according to the above method.
图4为本发明实施例提供的一种三个云控制平台断线重连方法的流程示意图。如图4所示:该三个云控制平台断线重连方法包括以下步骤:FIG. 4 is a schematic flowchart diagram of a method for reconnecting three cloud control platforms according to an embodiment of the present invention. As shown in FIG. 4, the three cloud control platform disconnection reconnection methods include the following steps:
具体地,物联网家电设备联网模块连接上A、B和C厂家云控制平台(步骤310)。在某个时间出现家电联网模块与任何一个厂家云控制平台(图4描述的是B厂家云控制平台)心跳连接断开超过T1时间(步骤320),而联网模块与A厂家和C厂家云控制平台连接正常,代表物联网家电设备联网模块与B厂家云控制平台失去联系,此时联网模块一直尝试连接B厂家云控制平台,若在T2时间内,物联网家电设备联网模块正常连接上B厂家云控制平台则不做处理。Specifically, the Internet of Things home appliance networking module is connected to the A, B, and C manufacturer cloud control platforms (step 310). At some time, the home appliance networking module and any one of the manufacturer's cloud control platforms (described in Figure 4 is the B manufacturer cloud control platform) have a heartbeat connection disconnected for more than T1 time (step 320), while the network module and the A manufacturer and the C manufacturer cloud control The platform connection is normal, which means that the IoT home appliance networking module loses contact with the B manufacturer cloud control platform. At this time, the networking module has been trying to connect to the B manufacturer cloud control platform. If in the T2 time, the IoT home appliance networking module is normally connected to the B manufacturer. The cloud control platform does not process it.
进一步地,若在T2时间内物联网家电设备联网模块还未连接上B厂家云控制平台,则联网模块进行软件复位重启,然后重新联网并进行A、B、C厂家云控制平台连接(步骤330至步骤340)。Further, if the IoT home appliance networking module is not connected to the B manufacturer cloud control platform in the T2 time, the networking module performs software reset and restart, and then re-networks and connects the A, B, C manufacturer cloud control platform (step 330). Go to step 340).
由此,能够在联网模块异常时,通过软件复位重启,实现重新联网并进行与多个云控 制平台连接,由此保证所有云控制平台能够控制物联网家电设备,提升用户体验。Therefore, when the networking module is abnormal, it can be restarted by software reset, and re-networking and performing multiple cloud control The platform is connected to ensure that all cloud control platforms can control IoT appliances and enhance the user experience.
综上所述,本发明实施例的物联网家电设备离线恢复方法,通过根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接,进而当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求,最后在检测到在预设的第二时长内没有与第一云控制平台恢复连接时进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。In summary, the offline recovery method of the Internet of Things home appliance of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, respectively, according to a preset period and multiple The cloud control platform maintains a heartbeat connection, and then detects a disconnected heartbeat connection with the first cloud control platform, and sends a connection request to the first cloud control platform when the connection is not restored within the preset first duration, and finally detects The re-establishment of the connection with the plurality of cloud control platforms is performed by performing a restart operation when the connection to the first cloud control platform is not resumed within the preset second time period. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
基于上述实施例,在检测到在预设的第二时长内没有与第一云控制平台恢复连接时,直接进行重启操作与多个云控制平台重新建立连接。本发明实施例中,还可以通过其它连接的云控制平台查询第一云控制平台的工作状态,再根据第一云控制平台的工作状态确定相对应的处理方式。具体结合图5说明如下:Based on the foregoing embodiment, when it is detected that there is no connection with the first cloud control platform within a preset second duration, the restart operation is directly performed to re-establish connection with the plurality of cloud control platforms. In the embodiment of the present invention, the working state of the first cloud control platform may be queried through other connected cloud control platforms, and the corresponding processing manner is determined according to the working state of the first cloud control platform. Specifically described in conjunction with Figure 5:
图5为本发明实施例提供的另一种物联网家电设备离线恢复方法的流程示意图。FIG. 5 is a schematic flowchart of another offline recovery method of an Internet of Things home appliance according to an embodiment of the present invention.
如图5所示,该物联网家电设备离线恢复方法包括以下步骤:As shown in FIG. 5, the offline recovery method of the Internet of Things home appliance includes the following steps:
步骤410,通过多个云控制平台分别对应的应用客户端注册用户账号。Step 410: Register a user account by using an application client corresponding to each of the plurality of cloud control platforms.
步骤420,通过用户账号登录应用客户端的控制页面。Step 420: Log in to the control page of the application client by using a user account.
具体地,联网通过多个云控制平台分别对应的应用客户端注册用户账号以激活,在激活后可以同时连接激活过的多个云控制平台,即可以通过用户账号登录应用客户端的控制页面实现控制同一台物联网家电设备。Specifically, the network is activated by registering the user account corresponding to the application client corresponding to the plurality of cloud control platforms, and the activated plurality of cloud control platforms can be simultaneously connected after the activation, that is, the user account can be used to log in to the control page of the application client to implement control. The same IoT home appliance.
可以理解的是,联网模块可以注册激活一个云控制平台、两个云控制平台或者多个云控制平台等,可以根据实际应用需要对云控制平台对应的应用客户端注册用户账号以激活相对应的云控制平台。It can be understood that the networking module can be registered to activate a cloud control platform, two cloud control platforms, or multiple cloud control platforms, etc., and the application client corresponding to the cloud control platform can register a user account to activate the corresponding one according to actual application requirements. Cloud control platform.
步骤430,根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接。Step 430: Establish a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintain a heartbeat connection with multiple cloud control platforms according to a preset period.
步骤440,当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求。Step 440: When it is detected that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform.
需要说明的是,步骤S110-S120的描述与上述步骤S430-S440相对应,因此对的步骤S110-S120的描述参考上述步骤S430-S440的描述,在此不再赘述。It should be noted that the description of the steps S110-S120 corresponds to the above-mentioned steps S430-S440, and therefore the description of the steps S110-S120 is referred to the description of the above steps S430-S440, and details are not described herein again.
步骤450,若检测到在预设的第二时长内没有与第一云控制平台恢复连接,向保持心跳连接的第二云控制平台发送携带第一云控制平台标识的联网失败消息,以供第二云控制平台根据第一云控制平台标识向第一云控制平台发送工作状态查询请求。Step 450: If it is detected that there is no connection with the first cloud control platform within a preset second duration, send a networking failure message carrying the first cloud control platform identifier to the second cloud control platform that maintains the heartbeat connection, for the first The second cloud control platform sends a work status query request to the first cloud control platform according to the first cloud control platform identifier.
具体地,在预设的第二时长内没有与第一云控制平台恢复连接后,可以向保持心跳连 接的第二云控制平台发送携带第一云控制平台标识的联网失败消息。其中,第二云控制平台可以是任何一个与保持心跳连接的云控制平台,可以根据实际应用需要进行选择。Specifically, after the connection to the first cloud control platform is not restored within the preset second duration, the heartbeat connection can be maintained. The second cloud control platform sends a network failure message carrying the identifier of the first cloud control platform. The second cloud control platform may be any cloud control platform that is connected to the heartbeat and can be selected according to actual application requirements.
可以理解的是,云控制平台直接可以进行交互即可以相互发送和接收数据。云控制平台之间可以通过无线通信等方式进行数据传输。It can be understood that the cloud control platform can directly send and receive data to each other by interacting directly. Data transmission between the cloud control platforms can be performed by means of wireless communication or the like.
其中,第一云控制平台标识可以是能够唯一标识第一云控制平台的,比如一段字符串等形式。The first cloud control platform identifier may be a form that can uniquely identify the first cloud control platform, such as a string of characters.
进一步地,在第二云控制平台接收到携带第一云控制平台标识的联网失败消息后,通过对失败信息的解析后获取第一云控制平台标识,并向对应的第一云控制平台发送工作状态查询请求。其中,工作状态可以理解为第一云控制平台是否正常连接。After the second cloud control platform receives the networking failure message carrying the identifier of the first cloud control platform, the first cloud control platform identifier is obtained by parsing the failure information, and the work is sent to the corresponding first cloud control platform. Status query request. The working state can be understood as whether the first cloud control platform is normally connected.
步骤460,接收第二云控制平台反馈的第一云控制平台的工作状态。Step 460: Receive an operating state of the first cloud control platform fed back by the second cloud control platform.
步骤470,若根据工作状态获知第一云控制平台工作正常,则进行重启操作与多个云控制平台重新建立连接。Step 470: If it is known that the first cloud control platform works normally according to the working state, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
步骤480,若根据工作状态获知第一云控制平台工作异常,则继续向第一云控制平台发送连接请求。Step 480: If it is known that the first cloud control platform works abnormally according to the working state, continue to send a connection request to the first cloud control platform.
具体地,在第二云控制平台向对应的第一云控制平台发送工作状态查询请求后,可能接收到第一云控制平台工作正常、异常和没有接收到任何反馈。Specifically, after the second cloud control platform sends the working status query request to the corresponding first cloud control platform, the first cloud control platform may be received to work normally, abnormally, and no feedback is received.
进一步地,在根据工作状态获知第一云控制平台工作正常时进行重启操作与多个云控制平台重新建立连接。Further, when the first cloud control platform is working according to the working state, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
进一步地,根据工作状态获知第一云控制平台工作异常时继续向第一云控制平台发送连接请求。其中,接收到第一云控制平台工作异常和没有没有接收到任何反馈都确定为第一云控制平台工作异常。Further, when it is known that the first cloud control platform works abnormally according to the working state, the connection request is continuously sent to the first cloud control platform. Wherein, receiving the first cloud control platform to work abnormally and not receiving any feedback determines that the first cloud control platform works abnormally.
为了本领域人员更加上述过程,下面结合图6和图7,以两个云控制平台(A厂家云控制平台和B厂家云控制平台)和三个云控制平台(A厂家云控制平台、B厂家云控制平台和C厂家云控制平台)为例进行举例说明如下:For the above-mentioned process in the field, the following two cloud control platforms (A manufacturer cloud control platform and B manufacturer cloud control platform) and three cloud control platforms (A manufacturer cloud control platform, B manufacturer) are combined with FIG. 6 and FIG. The cloud control platform and the C manufacturer cloud control platform are exemplified as follows:
图6为本发明实施例提供的另一种两个云控制平台断线重连方法的流程示意图。如图6所示:该两个云控制平台断线重连方法包括以下步骤:FIG. 6 is a schematic flowchart diagram of another method for disconnecting a broken line of two cloud control platforms according to an embodiment of the present invention. As shown in FIG. 6 , the two cloud control platform disconnection reconnection methods include the following steps:
具体地,物联网家电设备联网模块注册激活两个云控制平台。物联网家电设备联网模块连接上A和B厂家云控制平台(步骤510)。在某个时间出现物联网家电设备联网模块与B厂家云控制平台心跳断连接超过T1时间(步骤510),而与A厂家云控制平台连接正常,代表物联网家电设备联网模块与B厂家云控制平台失去联系,此时物联网家电设备联网模块一直尝试连接B厂家云控制平台,若在T2时间内,家电正常连接上B厂家云控制平台则不处理。 Specifically, the Internet of Things appliance networking module registers to activate two cloud control platforms. The Internet of Things home appliance networking module is connected to the A and B manufacturer cloud control platforms (step 510). At some time, the IoT home appliance device networking module and the B manufacturer cloud control platform have a heartbeat connection more than T1 time (step 510), and the A manufacturer cloud control platform is connected normally, representing the Internet of Things home appliance device networking module and B manufacturer cloud control. The platform lost contact. At this time, the IoT home appliance device networking module has been trying to connect to the B manufacturer cloud control platform. If the home appliance is normally connected to the B manufacturer cloud control platform in T2, it will not be processed.
进一步地,若在T2时间内家电还未连接上B厂家云控制平台,则物联网家电设备联网模块将B厂家云控制平台联网失败信息发给A厂家云控制平台(步骤530至步骤540)。A厂家云控制平台则发送查询B厂家云控制平台是否正常命令给B厂家云控制平台,若B厂家云控制平台返回给A厂家云控制平台为B厂家云控制平台异常或不返回信息,则代表B厂家云控制平台异常,物联网家电设备联网模块继续连接B厂家云控制平台,直到B厂家云控制平台恢复正常连接(步骤550至步骤560)。Further, if the home appliance is not connected to the B manufacturer cloud control platform in the T2 time, the Internet of Things appliance networking module sends the B manufacturer cloud control platform networking failure information to the A manufacturer cloud control platform (step 530 to step 540). A manufacturer cloud control platform sends a query B manufacturer cloud control platform whether the normal command to the B manufacturer cloud control platform, if the B manufacturer cloud control platform returns to the A manufacturer cloud control platform for the B manufacturer cloud control platform abnormal or does not return information, then the representative The B manufacturer's cloud control platform is abnormal, and the Internet of Things home appliance networking module continues to connect to the B manufacturer cloud control platform until the B manufacturer cloud control platform resumes normal connection (steps 550 to 560).
进一步地,若B厂家云控制平台返回正常,则A厂家云控制平台将B厂家云控制平台正常的信息反馈给物联网家电设备联网模块,代表物联网家电设备联网模块异常,物联网家电设备联网模块进行软件复位重启,然后重新联网并进行A、B厂家云控制平台连接(步骤570至步骤580)。Further, if the B manufacturer cloud control platform returns to normal, the A manufacturer cloud control platform feeds back the normal information of the B manufacturer cloud control platform to the Internet of Things appliance networking module, representing the abnormality of the Internet of Things appliance networking module, and the Internet of Things appliance networking. The module performs a software reset and restarts, and then re-networks and connects the A and B manufacturers cloud control platforms (steps 570 to 580).
图7为本发明实施例提供的另一种三个云控制平台断线重连方法的流程示意图。如图7所示:FIG. 7 is a schematic flowchart of another method for reconnecting a broken line of three cloud control platforms according to an embodiment of the present invention. As shown in Figure 7:
具体地,物联网家电设备联网模块注册激活三个云控制平台。物联网家电设备联网模块连接上A、B和C厂家云控制平台(步骤610)。在某个时间出现物联网家电设备联网模块与B厂家云控制平台心跳断连接超过T1时间(步骤620),而与A厂家云控制平台和C厂家云控制平台连接正常,代表物联网家电设备联网模块与B厂家云控制平台失去联系,此时物联网家电设备联网模块一直尝试连接B厂家云控制平台。若在T2时间内,物联网家电设备联网模块正常连接上B厂家云控制平台则不处理。Specifically, the Internet of Things appliance networking module registers to activate three cloud control platforms. The Internet of Things appliance networking module is connected to the A, B, and C manufacturer cloud control platforms (step 610). At some time, the IoT home appliance device networking module and the B manufacturer cloud control platform have a heartbeat connection more than T1 time (step 620), and the A manufacturer cloud control platform and the C manufacturer cloud control platform are connected normally, representing the Internet of Things (IoT) home appliances. The module lost contact with the B manufacturer cloud control platform. At this time, the IoT home appliance device networking module has been trying to connect to the B manufacturer cloud control platform. If in the T2 time, the IoT home appliance networking module is normally connected to the B manufacturer cloud control platform, it will not be processed.
进一步地,若在T2时间内家电还未连接上B厂家云控制平台,则物联网家电设备联网模块将B厂家云控制平台联网失败信息发给其他任何一个平台(比如:A厂家云控制平台或者C厂家云控制平台),A厂家云控制平台则发送查询B厂家云控制平台是否正常命令给B厂家云控制平台(步骤630至步骤640)。Further, if the home appliance is not connected to the B manufacturer cloud control platform in the T2 time, the IoT home appliance device networking module sends the B manufacturer cloud control platform networking failure information to any other platform (for example: A manufacturer cloud control platform or C manufacturer cloud control platform), A manufacturer cloud control platform sends a query B manufacturer cloud control platform whether the normal command to the B manufacturer cloud control platform (step 630 to step 640).
进一步地,若B厂家云控制平台返回给A厂家云控制平台为B厂家云控制平台异常信息或不返回信息,则代表B厂家云控制平台异常,物联网家电设备联网模块继续连接B厂家云控制平台,直到B厂家云控制平台恢复。(步骤650至步骤660)。Further, if the B manufacturer cloud control platform returns to the A manufacturer cloud control platform for the B manufacturer cloud control platform abnormal information or does not return information, the representative B manufacturer cloud control platform is abnormal, the Internet of Things home appliance device networking module continues to connect the B manufacturer cloud control Platform until B manufacturer cloud control platform recovery. (Step 650 to Step 660).
进一步地,若B厂家云控制平台返回正常信息,则A厂家云控制平台将B厂家云控制平台正常的信息反馈给物联网家电设备联网模块,代表物联网家电设备联网模块异常,物联网家电设备联网模块进行软件复位重启,然后重新联网并进行A、B、C厂家云控制平台连接(步骤670至步骤680)。Further, if the B manufacturer cloud control platform returns normal information, the A manufacturer cloud control platform feeds back the normal information of the B manufacturer cloud control platform to the Internet of Things home appliance device networking module, representing the Internet of Things home appliance device networking module abnormality, the Internet of Things home appliance device The networking module performs a software reset and restarts, and then re-networks and connects the A, B, and C manufacturers cloud control platforms (steps 670 to 680).
综上所述,本发明实施例的物联网家电设备离线恢复方法,首先通过多个云控制平台分别对应的应用客户端注册用户账号,并通过用户账号登录应用客户端的控制页面,然后根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设 周期分别与多个云控制平台保持心跳连接,进而当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求,并在检测到在预设的第二时长内没有与第一云控制平台恢复连接时向保持心跳连接的第二云控制平台发送携带第一云控制平台标识的联网失败消息,以供第二云控制平台根据第一云控制平台标识向第一云控制平台发送工作状态查询请求,最后接收第二云控制平台反馈的第一云控制平台的工作状态,在根据工作状态获知第一云控制平台工作正常时进行重启操作与多个云控制平台重新建立连接,在根据工作状态获知第一云控制平台工作异常时继续向第一云控制平台发送连接请求。由此,通过保持心跳连接的其它云控制平台检查离线云控制平台是否正常,在正常时对联网模块进行软件复位重启,然后重新连接上云控制平台,实现离线云控制平台重新联网,保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。In summary, the offline recovery method of the Internet of Things home appliance in the embodiment of the present invention firstly registers a user account with an application client corresponding to multiple cloud control platforms, and logs in to the control page of the application client through the user account, and then according to the preset. The connection protocol corresponding to the plurality of cloud control platforms respectively establishes a connection with the plurality of cloud control platforms, according to the preset The cycle maintains a heartbeat connection with the plurality of cloud control platforms, and then sends a connection request to the first cloud control platform when the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first time period. And sending a network failure message carrying the first cloud control platform identifier to the second cloud control platform that maintains the heartbeat connection when detecting that the connection is not restored with the first cloud control platform within a preset second duration, for the second The cloud control platform sends a working state query request to the first cloud control platform according to the first cloud control platform identifier, and finally receives the working state of the first cloud control platform fed back by the second cloud control platform, and learns the first cloud control platform according to the working state. When the work is normal, the restart operation is re-established with the plurality of cloud control platforms, and when the first cloud control platform works abnormally according to the working state, the connection request is continuously sent to the first cloud control platform. Therefore, the other cloud control platform that maintains the heartbeat connection checks whether the offline cloud control platform is normal, performs software reset and restart on the networking module at normal time, and then reconnects to the cloud control platform to realize offline network control platform re-networking to ensure all clouds. The control platform can control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
为了实现上述实施例,本发明还提出一种联网模块。In order to implement the above embodiments, the present invention also proposes a networking module.
图8为本发明实施例提供的一种联网模块的结构示意图。FIG. 8 is a schematic structural diagram of a networking module according to an embodiment of the present invention.
如图8所示,该联网模块包括:连接单元810、第一发送单元820和处理单元830。As shown in FIG. 8, the networking module includes a connection unit 810, a first transmission unit 820, and a processing unit 830.
其中,连接单元810用于根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接。The connection unit 810 is configured to establish a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintain a heartbeat connection with multiple cloud control platforms according to a preset period.
第一发送单元820用于当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求。The first sending unit 820 is configured to send a connection request to the first cloud control platform when detecting that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration.
处理单元830用于若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。The processing unit 830 is configured to: if it is detected that the connection is not restored with the first cloud control platform within the preset second duration, perform a restart operation to re-establish connection with the multiple cloud control platforms.
在本发明的一个实施例中,联网模块可以包括Wi-Fi模块、蓝牙模块、以及,NFC模块。In an embodiment of the invention, the networking module may include a Wi-Fi module, a Bluetooth module, and an NFC module.
需要说明的是,本发明实施例的物联网家电设备离线恢复方法应用在物联网家电设备中的联网模块。物联网家电设备可以包括空调、洗衣机和冰箱等家电设备中的一种或者多种。It should be noted that the offline recovery method of the Internet of Things home appliance of the embodiment of the present invention is applied to a networking module in the Internet of Things appliance. The Internet of Things appliance may include one or more of household appliances such as an air conditioner, a washing machine, and a refrigerator.
其中,联网模块可以包括Wi-Fi模块、蓝牙模块、以及,NFC模块等无线通信模块中的一种或者多种。可以理解的是,Wi-Fi模块能够通过配网等方式直接连接路由器进行联网;蓝牙模块和NFC(Near Field Communication,近距离无线通信)模块等可以通过联网终端进行联网。The networking module may include one or more of a Wi-Fi module, a Bluetooth module, and a wireless communication module such as an NFC module. It can be understood that the Wi-Fi module can directly connect to the router for networking through a distribution network or the like; the Bluetooth module and the NFC (Near Field Communication) module can be networked through the networked terminal.
需要说明的是,前述对物联网家电设备离线恢复方法实施例的解释说明也适用于本实施中的联网模块,此处不再赘述。It should be noted that the foregoing description of the embodiment of the offline recovery method for the Internet of Things (ICI) is also applicable to the networking module in this implementation, and details are not described herein again.
综上所述,本发明实施例的联网模块,通过根据预设的与多个云控制平台对应的连接 协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接,进而当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求,最后在检测到在预设的第二时长内没有与第一云控制平台恢复连接时进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。In summary, the networking module of the embodiment of the present invention is configured according to a preset connection corresponding to multiple cloud control platforms. The protocol establishes a connection with multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period, and then detects a disconnected heartbeat connection with the first cloud control platform, and is at a preset first duration. When the connection is not restored, the connection request is sent to the first cloud control platform, and finally, when it is detected that the connection is not restored with the first cloud control platform within the preset second duration, the restart operation is re-established with the plurality of cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
为了清楚说明上一实施例,本实施例提供了另一种联网模块。In order to clearly illustrate the previous embodiment, this embodiment provides another networking module.
图9为本发明实施例提供的另一种联网模块的结构示意图。如图9所示,在上一实施例的基础上,该联网模块还包括:第二发送单元840、接收单元850和第三发送单元860。FIG. 9 is a schematic structural diagram of another networking module according to an embodiment of the present invention. As shown in FIG. 9, on the basis of the previous embodiment, the networking module further includes: a second sending unit 840, a receiving unit 850, and a third sending unit 860.
其中,第二发送单元840用于向保持心跳连接的第二云控制平台发送携带第一云控制平台标识的联网失败消息,以供第二云控制平台根据第一云控制平台标识向第一云控制平台发送工作状态查询请求。The second sending unit 840 is configured to send, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform, where the second cloud control platform sends the identifier to the first cloud according to the first cloud control platform identifier. The control platform sends a work status query request.
接收单元850用于接收第二云控制平台反馈的第一云控制平台的工作状态。The receiving unit 850 is configured to receive an operating state of the first cloud control platform fed back by the second cloud control platform.
处理单元830用于在检测到在预设的第二时长内没有与所述第一云控制平台恢复连接时,且在根据工作状态获知所述第一云控制平台工作正常时,进行重启操作与多个云控制平台重新建立连接。The processing unit 830 is configured to perform a restart operation when detecting that the first cloud control platform is not working properly after the preset second time duration is restored, and when the first cloud control platform is working according to the working state. Multiple cloud control platforms re-establish connections.
第三发送单元860用于若根据工作状态获知第一云控制平台工作异常,则继续向第一云控制平台发送连接请求。The third sending unit 860 is configured to continue to send a connection request to the first cloud control platform if the first cloud control platform works abnormally according to the working state.
进一步地,在本发明实施例的一种可能的实现方式中,联网模块还包括:注册单元870和登录单元880。Further, in a possible implementation manner of the embodiment of the present invention, the networking module further includes: a registration unit 870 and a login unit 880.
其中,注册单元870用于通过多个云控制平台分别对应的应用客户端注册用户账号。The registration unit 870 is configured to register a user account by using an application client corresponding to each of the plurality of cloud control platforms.
登录单元880用于通过用户账号登录应用客户端的控制页面。The login unit 880 is configured to log in to the control page of the application client by using a user account.
需要说明的是,前述对物联网家电设备离线恢复方法实施例的解释说明也适用于本实施中的联网模块,此处不再赘述。It should be noted that the foregoing description of the embodiment of the offline recovery method for the Internet of Things (ICI) is also applicable to the networking module in this implementation, and details are not described herein again.
综上所述,本发明实施例的联网模块,首先通过多个云控制平台分别对应的应用客户端注册用户账号,并通过用户账号登录应用客户端的控制页面,然后根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接,进而当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接时向第一云控制平台发送连接请求,并在检测到在预设的第二时长内没有与第一云控制平台恢复连接时向保持心跳连接的第二云控制平台发送携带第一云控制平台标识的联网失败消息,以供第二云控制平台根据第一云控制平台标识向第一云控制平台发送工作状态查询请求,最后接收第二云控制平台反馈的第一云控制平台的工作状态, 在根据工作状态获知第一云控制平台工作正常时进行重启操作与多个云控制平台重新建立连接,在根据工作状态获知第一云控制平台工作异常时继续向第一云控制平台发送连接请求。由此,通过保持心跳连接的其它云控制平台检查离线云控制平台是否正常,在正常时对联网模块进行软件复位重启,然后重新连接上云控制平台,实现离线云控制平台重新联网,保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。In summary, the networking module of the embodiment of the present invention first registers a user account by using an application client corresponding to multiple cloud control platforms, and logs in to the control page of the application client through the user account, and then according to the preset and multiple clouds. The connection protocol corresponding to the control platform is respectively connected with the plurality of cloud control platforms, and the heartbeat connection is maintained with the plurality of cloud control platforms according to the preset period, and then the heartbeat connection is disconnected from the first cloud control platform, and the Sending a connection request to the first cloud control platform when the connection is not restored within the first duration, and detecting to the second cloud that maintains the heartbeat connection when there is no connection with the first cloud control platform within the preset second duration The control platform sends a network failure message carrying the identifier of the first cloud control platform, so that the second cloud control platform sends a work status query request to the first cloud control platform according to the first cloud control platform identifier, and finally receives the feedback from the second cloud control platform. The working state of the first cloud control platform, When the first cloud control platform is working properly according to the working state, the restart operation is re-established with the plurality of cloud control platforms, and the connection request is sent to the first cloud control platform when the first cloud control platform is abnormal according to the working state. Therefore, the other cloud control platform that maintains the heartbeat connection checks whether the offline cloud control platform is normal, performs software reset and restart on the networking module at normal time, and then reconnects to the cloud control platform to realize offline network control platform re-networking to ensure all clouds. The control platform can control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
本发明实施例还提供了一种物联网家电设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时,执行本发明第一方面实施例的物联网家电设备离线恢复方法。An embodiment of the present invention further provides an Internet of Things home appliance, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory when the one is Or when the plurality of processors are executed, the offline recovery method of the Internet of Things home appliance of the first aspect of the present invention is executed.
本发明实施例的物联网家电设备,根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接;当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求;若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。The Internet of Things home appliance of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; Detecting a disconnected heartbeat connection with the first cloud control platform, and if the connection is not restored within the preset first duration, sending a connection request to the first cloud control platform; if it is detected that there is no preset second time duration When the connection is resumed with the first cloud control platform, a restart operation is performed to re-establish a connection with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
本发明实施例还提供了一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行本发明第一方面实施例的物联网家电设备离线恢复方法。An embodiment of the present invention further provides a non-volatile computer storage medium, where the computer storage medium stores one or more programs, when the one or more programs are executed by one device, causing the device to execute the present The offline recovery method of the Internet of Things home appliance of the first aspect of the invention.
本发明实施例的计算机存储介质,根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接;当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求;若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。由此,避免了一个或者多个云控制平台离线无法控制物联网家电设备的情况,能够保证所有云控制平台都能控制物联网家电设备,方便用户使用,提升用户满意度。The computer storage medium of the embodiment of the present invention establishes a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintains a heartbeat connection with multiple cloud control platforms according to a preset period; After the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within the preset first duration, the connection request is sent to the first cloud control platform; if it is detected that there is no corresponding time in the preset second duration When the first cloud control platform resumes the connection, the restart operation is re-established with multiple cloud control platforms. Therefore, one or more cloud control platforms are prevented from being unable to control the Internet of Things appliances, and all cloud control platforms can be controlled to control the Internet of Things appliances, which is convenient for users to use and improve user satisfaction.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。 In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logic function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。 The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (12)

  1. 一种物联网家电设备离线恢复方法,其特征在于,所述方法应用在所述物联网家电设备中的联网模块,所述方法包括以下步骤:An offline recovery method for an Internet of Things appliance is characterized in that the method is applied to a networking module in the Internet of Things appliance, and the method comprises the following steps:
    根据预设的与多个云控制平台对应的连接协议分别与所述多个云控制平台建立连接,按照预设周期分别与所述多个云控制平台保持心跳连接;Establishing a connection with the plurality of cloud control platforms according to a preset connection protocol corresponding to the multiple cloud control platforms, and maintaining a heartbeat connection with the plurality of cloud control platforms according to a preset period;
    当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向所述第一云控制平台发送连接请求;Sending a connection request to the first cloud control platform when detecting a disconnected heartbeat connection with the first cloud control platform and not restoring the connection within a preset first duration;
    若检测到在预设的第二时长内没有与所述第一云控制平台恢复连接,则进行重启操作与所述多个云控制平台重新建立连接。If it is detected that the connection is not restored with the first cloud control platform within a preset second duration, performing a restart operation to re-establish a connection with the plurality of cloud control platforms.
  2. 如权利要求1所述的方法,其特征在于,在所述进行重启操作与所述多个云控制平台重新建立连接之前,还包括:The method of claim 1, further comprising: before the resuming operation is re-established with the plurality of cloud control platforms, the method further comprising:
    向保持心跳连接的第二云控制平台发送携带所述第一云控制平台标识的联网失败消息,以供所述第二云控制平台根据所述第一云控制平台标识向所述第一云控制平台发送工作状态查询请求;Sending, by the second cloud control platform that maintains the heartbeat connection, a networking failure message carrying the identifier of the first cloud control platform, where the second cloud control platform controls the first cloud control platform according to the first cloud control platform identifier The platform sends a work status query request;
    接收所述第二云控制平台反馈的所述第一云控制平台的工作状态;Receiving an operation state of the first cloud control platform fed back by the second cloud control platform;
    所述进行重启操作与所述多个云控制平台重新建立连接,包括:Re-establishing the connection with the plurality of cloud control platforms by performing the restart operation, including:
    若根据所述工作状态获知所述第一云控制平台工作正常,则进行重启操作与所述多个云控制平台重新建立连接。If it is known that the first cloud control platform is working properly according to the working state, performing a restart operation to re-establish a connection with the plurality of cloud control platforms.
  3. 如权利要求1或2所述的方法,其特征在于,在所述接收所述第二云控制平台反馈的所述第一云控制平台的工作状态之后,还包括:The method according to claim 1 or 2, further comprising: after receiving the working state of the first cloud control platform fed back by the second cloud control platform, further comprising:
    若根据所述工作状态获知所述第一云控制平台工作异常,则继续向所述第一云控制平台发送连接请求。And if it is known that the first cloud control platform works abnormally according to the working state, continuing to send a connection request to the first cloud control platform.
  4. 如权利要求1-3任一项所述的方法,其特征在于,在所述根据预设的与多个云控制平台对应的连接协议分别与所述多个云控制平台建立连接之前,还包括:The method according to any one of claims 1-3, further comprising: before establishing a connection with the plurality of cloud control platforms according to a preset connection protocol corresponding to the plurality of cloud control platforms, :
    通过所述多个云控制平台分别对应的应用客户端注册用户账号;Registering a user account with an application client corresponding to each of the plurality of cloud control platforms;
    通过所述用户账号登录所述应用客户端的控制页面。Log in to the control page of the application client by using the user account.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述联网模块包括:The method of any of claims 1-4, wherein the networking module comprises:
    Wi-Fi模块、蓝牙模块、以及,NFC模块。Wi-Fi module, Bluetooth module, and NFC module.
  6. 一种联网模块,其特征在于,包括:A networking module, comprising:
    连接单元,用于根据预设的与多个云控制平台对应的连接协议分别与所述多个云控制平台建立连接,按照预设周期分别与所述多个云控制平台保持心跳连接; a connection unit, configured to establish a connection with the plurality of cloud control platforms according to a preset connection protocol corresponding to the multiple cloud control platforms, and maintain a heartbeat connection with the plurality of cloud control platforms according to a preset period;
    第一发送单元,用于当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向所述第一云控制平台发送连接请求;a first sending unit, configured to send a connection request to the first cloud control platform when detecting that the heartbeat connection is disconnected from the first cloud control platform, and the connection is not restored within a preset first duration;
    处理单元,用于若检测到在预设的第二时长内没有与所述第一云控制平台恢复连接,则进行重启操作与所述多个云控制平台重新建立连接。The processing unit is configured to: if it is detected that the connection is not restored with the first cloud control platform within a preset second duration, perform a restart operation to re-establish a connection with the plurality of cloud control platforms.
  7. 如权利要求6所述的联网模块,其特征在于,还包括:The networking module of claim 6 further comprising:
    第二发送单元,用于向保持心跳连接的第二云控制平台发送携带所述第一云控制平台标识的联网失败消息,以供所述第二云控制平台根据所述第一云控制平台标识向所述第一云控制平台发送工作状态查询请求;a second sending unit, configured to send, to the second cloud control platform that maintains the heartbeat connection, a networking failure message that carries the identifier of the first cloud control platform, where the second cloud control platform is configured according to the first cloud control platform identifier Sending a work status query request to the first cloud control platform;
    接收单元,用于接收所述第二云控制平台反馈的所述第一云控制平台的工作状态;a receiving unit, configured to receive an operating state of the first cloud control platform fed back by the second cloud control platform;
    所述处理单元用于:The processing unit is used to:
    在检测到在预设的第二时长内没有与所述第一云控制平台恢复连接时,且在根据所述工作状态获知所述第一云控制平台工作正常时,进行重启操作与所述多个云控制平台重新建立连接。After detecting that the connection is not restored with the first cloud control platform within a preset second duration, and when it is learned that the first cloud control platform is working normally according to the working state, performing a restart operation and the multiple The cloud control platform re-establishes the connection.
  8. 如权利要求6或7所述的联网模块,其特征在于,还包括:The networking module of claim 6 or claim 7, further comprising:
    第三发送单元,用于若根据所述工作状态获知所述第一云控制平台工作异常,则继续向所述第一云控制平台发送连接请求。And a third sending unit, configured to: if the first cloud control platform works abnormally according to the working state, continue to send a connection request to the first cloud control platform.
  9. 如权利要求6-8任一项所述的联网模块,其特征在于,还包括:The networking module of any of claims 6-8, further comprising:
    注册单元,用于通过所述多个云控制平台分别对应的应用客户端注册用户账号;a registration unit, configured to register a user account by using an application client corresponding to each of the plurality of cloud control platforms;
    登录单元,用于通过所述用户账号登录所述应用客户端的控制页面。The login unit is configured to log in to the control page of the application client by using the user account.
  10. 如权利要求6-9任一项所述的联网模块,其特征在于,所述联网模块包括:The networking module of any of claims 6-9, wherein the networking module comprises:
    Wi-Fi模块、蓝牙模块、以及,NFC模块。Wi-Fi module, Bluetooth module, and NFC module.
  11. 一种物联网家电设备,包括:An Internet of Things appliance, including:
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时,执行以下步骤:One or more programs, the one or more programs being stored in the memory, and when executed by the one or more processors, performing the following steps:
    根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接;Establishing a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintaining a heartbeat connection with multiple cloud control platforms according to a preset period;
    当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求;以及Sending a connection request to the first cloud control platform when detecting a disconnected heartbeat connection with the first cloud control platform and not restoring the connection within a preset first duration;
    若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。 If it is detected that the connection is not restored with the first cloud control platform within the preset second time period, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
  12. 一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行以下步骤:A non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causing the device to perform the following steps:
    根据预设的与多个云控制平台对应的连接协议分别与多个云控制平台建立连接,按照预设周期分别与多个云控制平台保持心跳连接;Establishing a connection with multiple cloud control platforms according to a preset connection protocol corresponding to multiple cloud control platforms, and maintaining a heartbeat connection with multiple cloud control platforms according to a preset period;
    当检测到与第一云控制平台之间断开心跳连接,且在预设的第一时长内没有恢复连接,则向第一云控制平台发送连接请求;以及Sending a connection request to the first cloud control platform when detecting a disconnected heartbeat connection with the first cloud control platform and not restoring the connection within a preset first duration;
    若检测到在预设的第二时长内没有与第一云控制平台恢复连接,则进行重启操作与多个云控制平台重新建立连接。 If it is detected that the connection is not restored with the first cloud control platform within the preset second time period, the restart operation is performed to re-establish connection with the plurality of cloud control platforms.
PCT/CN2017/104477 2017-03-09 2017-09-29 Internet-of-things household appliance off-line recovery method and networking module WO2018161550A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710137971.4 2017-03-09
CN201710137971.4A CN106961658B (en) 2017-03-09 2017-03-09 Internet of things home appliance equipment off-line restoration methods and networking module

Publications (1)

Publication Number Publication Date
WO2018161550A1 true WO2018161550A1 (en) 2018-09-13

Family

ID=59470048

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104477 WO2018161550A1 (en) 2017-03-09 2017-09-29 Internet-of-things household appliance off-line recovery method and networking module

Country Status (2)

Country Link
CN (1) CN106961658B (en)
WO (1) WO2018161550A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660311A (en) * 2021-07-21 2021-11-16 广州心娱网络科技有限公司 User state updating method, system, electronic device and storage medium
CN114125575A (en) * 2021-11-22 2022-03-01 深圳康佳电子科技有限公司 Screen-casting disconnection judgment processing method and device, intelligent terminal and storage medium
CN114143911A (en) * 2021-11-19 2022-03-04 广州朗国电子科技股份有限公司 Android platform-based wireless screen-casting and network-breaking automatic reconnection method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106961658B (en) * 2017-03-09 2019-10-29 广东美的制冷设备有限公司 Internet of things home appliance equipment off-line restoration methods and networking module
CN109507916B (en) * 2017-09-14 2021-06-29 佛山市顺德区美的电热电器制造有限公司 Method, device, server and storage medium for controlling recovery work of household appliance
CN108092847B (en) * 2017-11-28 2019-03-08 南瑞集团有限公司 A kind of electric power LTE wireless terminal remote on-line monitoring method
CN108198349A (en) * 2017-11-28 2018-06-22 深圳市丰巢科技有限公司 Intelligent express delivery cabinet, detecting system and its hardware detection control method and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6768720B1 (en) * 1999-09-30 2004-07-27 Conexant Systems, Inc. Verification of link integrity of a home local area network
CN104812092A (en) * 2015-03-23 2015-07-29 小米科技有限责任公司 Networking method and device of intelligent equipment
CN105159102A (en) * 2015-07-30 2015-12-16 北京京东尚科信息技术有限公司 Smart home appliance, smart home appliance system and method thereof
CN106130842A (en) * 2016-07-25 2016-11-16 深圳市双驰科技有限公司 The control method of home appliance, home appliance and WIFI module thereof
CN106961658A (en) * 2017-03-09 2017-07-18 广东美的制冷设备有限公司 Internet of things home appliance equipment off-line restoration methods and networking module

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281161B (en) * 2013-05-17 2016-04-27 深圳市康凯斯信息技术有限公司 The means of communication of a kind of GPS locating terminal and background server
CN104089367A (en) * 2014-06-27 2014-10-08 陆冬艳 Cloud air conditioning system based on cloud computing
CN104202395B (en) * 2014-09-01 2017-12-19 中国东方电气集团有限公司 A kind of GPRS link establishments and the state machine implementation method for keeping task
CN104243616A (en) * 2014-10-10 2014-12-24 广东志高空调有限公司 Wi-Fi (wireless fidelity) communication based cloud air conditioner system
RU2667598C1 (en) * 2014-10-24 2018-09-21 Макафи, Инк. Control of the presence of the agent for self-restoring
CN104378421A (en) * 2014-11-14 2015-02-25 四川长虹电器股份有限公司 Remote control system and method of intelligent household electrical appliance product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6768720B1 (en) * 1999-09-30 2004-07-27 Conexant Systems, Inc. Verification of link integrity of a home local area network
CN104812092A (en) * 2015-03-23 2015-07-29 小米科技有限责任公司 Networking method and device of intelligent equipment
CN105159102A (en) * 2015-07-30 2015-12-16 北京京东尚科信息技术有限公司 Smart home appliance, smart home appliance system and method thereof
CN106130842A (en) * 2016-07-25 2016-11-16 深圳市双驰科技有限公司 The control method of home appliance, home appliance and WIFI module thereof
CN106961658A (en) * 2017-03-09 2017-07-18 广东美的制冷设备有限公司 Internet of things home appliance equipment off-line restoration methods and networking module

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660311A (en) * 2021-07-21 2021-11-16 广州心娱网络科技有限公司 User state updating method, system, electronic device and storage medium
CN114143911A (en) * 2021-11-19 2022-03-04 广州朗国电子科技股份有限公司 Android platform-based wireless screen-casting and network-breaking automatic reconnection method
CN114143911B (en) * 2021-11-19 2023-12-05 广州朗国电子科技股份有限公司 Method for automatically reconnecting wireless screen-on and screen-off based on Android platform
CN114125575A (en) * 2021-11-22 2022-03-01 深圳康佳电子科技有限公司 Screen-casting disconnection judgment processing method and device, intelligent terminal and storage medium
CN114125575B (en) * 2021-11-22 2024-03-12 深圳康佳电子科技有限公司 Screen disconnection judgment processing method and device, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN106961658A (en) 2017-07-18
CN106961658B (en) 2019-10-29

Similar Documents

Publication Publication Date Title
WO2018161550A1 (en) Internet-of-things household appliance off-line recovery method and networking module
WO2021243968A1 (en) Network distribution method of home appliance, terminal, storage medium, and home appliance
EP3331197B1 (en) A method and system for monitoring a connection status of a device
US7664050B2 (en) Auto-configuring operation modes for network elements
WO2021169377A1 (en) Network configuration method and apparatus, and computer device
US7957330B1 (en) Failsafe management of periodic communications during system upgrade for a network device
JPH1069449A (en) Device and method for recovering session between server and client
KR20050077688A (en) System and method for reestablishing the session between terminal and server
US10523547B2 (en) Methods, systems, and computer readable media for multiple bidirectional forwarding detection (BFD) session optimization
WO2018049545A1 (en) Data processing method, apparatus, and system in sdn, electronic device, and computer program product
CN110427220B (en) Configuration method and device of device command, electronic device and storage medium
WO2016074151A1 (en) Sas system, traversal method and device thereof
CN105337814A (en) Network equipment connection method, equipment and system
WO2018214731A1 (en) State detection of netconf session
US20160246553A1 (en) Information processing apparatus, method of controlling the same, and storage medium
US10489055B2 (en) Z-wave controller shift in thermostats
JP2011044955A (en) Setting change method by network manager equipment and program, control method and program of network equipment, network manager equipment, and network equipment
US10530869B2 (en) Bidirectional forwarding detection accelerator
TWI577162B (en) Method for maintaining transmission control protocol connection and computer system
CN113783961A (en) Remote terminal management method and device, computer equipment and storage medium
CN105554150A (en) Network logging-in method and apparatus
EP3462112A1 (en) Refrigerator, intelligent detection method thereof, and intelligent detection system
US11777840B2 (en) Re-establishing a bidirectional forwarding detection (BFD) session when a discriminator mismatch is detected
WO2020034522A1 (en) Method and apparatus for connecting to network, smart device, and user terminal
US20150131474A1 (en) Synchronization after restart of a fc switch

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17900049

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.01.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17900049

Country of ref document: EP

Kind code of ref document: A1