WO2019037734A1 - Internet of things connecting method, terminal and internet of things platform - Google Patents

Internet of things connecting method, terminal and internet of things platform Download PDF

Info

Publication number
WO2019037734A1
WO2019037734A1 PCT/CN2018/101663 CN2018101663W WO2019037734A1 WO 2019037734 A1 WO2019037734 A1 WO 2019037734A1 CN 2018101663 W CN2018101663 W CN 2018101663W WO 2019037734 A1 WO2019037734 A1 WO 2019037734A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
internet
connection
things platform
information
Prior art date
Application number
PCT/CN2018/101663
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 WO2019037734A1 publication Critical patent/WO2019037734A1/en

Links

Images

Classifications

    • 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

  • Embodiments of the present disclosure relate to the field of Internet of Things, and in particular, to a method, a terminal, and an Internet of Things platform for connecting an Internet of Things.
  • the Internet of Things is an important part of the new generation of information technology, and an important stage of development in the "informatization" era.
  • the Internet of Things is the Internet of things that can extend and extend its client to any item and item for information exchange and communication.
  • Each terminal node in the IoT platform needs to be connected to the IoT platform in real time. Once the terminal is disconnected from the IoT platform due to poor network status and low battery power, the user cannot view the information of the disconnected terminal or perform the same. control. If the information of the terminal is important to the user, it will affect the user experience.
  • the IoT terminal loses data or restores the factory settings, although data backup and recovery can be performed from the IoT platform, this may result in traffic consumption and power consumption; and if the data recovery is slow or unrecoverable, it will also affect the user experience.
  • a method for connecting an Internet of Things comprising the steps of: after a terminal disconnects from an Internet of Things platform, searching for a target terminal that can access the Internet of Things platform; and if the target terminal is found, establishing with the target terminal Connecting, connecting to the Internet of Things platform through a network of the target terminal.
  • a terminal includes: a lookup module configured to: after the terminal is disconnected from the Internet of Things platform, find a target terminal that can access the IoT platform; and a connection module configured to find the target The terminal establishes a connection with the target terminal, and connects to the Internet of Things platform through a network of the target terminal.
  • a terminal includes: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the following steps: after the terminal is disconnected from the Internet of Things platform And searching for a target terminal that can access the IoT platform; and if the target terminal is found, establishing a connection with the target terminal, and connecting to the Internet of Things platform through a network of the target terminal.
  • a method for connecting an Internet of Things comprising the steps of: an IoT platform polling a terminal status, viewing a terminal that has not transmitted the last message information at a specified time; finding a target terminal connectable with the terminal; and transmitting the location to the target terminal The terminal information and the recovery connection command information.
  • An Internet of Things platform comprising: a polling module configured to poll a terminal status, view a terminal that has not sent the last message information at a specified time; a search module configured to find a target terminal connectable with the terminal; and send And a module configured to send information of the terminal and resume connection command information to the target terminal.
  • An Internet of Things platform includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: the Internet of Things platform polls the terminal status Viewing a terminal that has not transmitted the last message information at a specified time; finding a target terminal connectable with the terminal; and transmitting information of the terminal and restoring connection command information to the target terminal.
  • a method for connecting an Internet of Things comprising the steps of: after receiving the specified information, attempting to establish a connection with the designated terminal; and after establishing a connection with the designated terminal, accepting the terminal to establish with the Internet of Things platform through the network thereof Connecting, or forwarding information exchanged between the terminal and the Internet of Things platform.
  • a terminal comprising: a connection module configured to, after receiving the specified information, attempt to establish a connection with the designated terminal; and a processing module configured to: after establishing a connection with the designated terminal, accepting the terminal through the network thereof
  • the Internet of Things platform establishes a connection or forwards information exchanged between the terminal and the Internet of Things platform.
  • a terminal comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the following steps: after receiving the specified information, attempting and specifying The terminal establishes a connection; and after establishing a connection with the designated terminal, accepting the terminal to establish a connection with the Internet of Things platform through its own network, or forwarding information exchanged between the terminal and the Internet of Things platform.
  • FIG. 1 is a flow chart of a method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure.
  • FIG. 2 is a flow chart of another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure.
  • FIG. 3 is a flow chart of yet another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of an IoT platform connected to an access terminal in accordance with an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a terminal transmitting a legacy message according to an embodiment of the present disclosure.
  • FIG. 6 is a flow diagram of establishing a connection between a terminal and a connectable terminal in accordance with an embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a process after a terminal is disconnected from an IoT platform according to an embodiment of the present disclosure.
  • FIG. 8 is a flowchart of a process in which a normal in-network terminal D2 adds an abnormal terminal D1 to its own network according to an embodiment of the present disclosure.
  • FIG. 9 is a flow chart of a terminal performing data backup according to an embodiment of the present disclosure.
  • FIG. 10 is a block diagram of a terminal (anomaly) according to an embodiment of the present disclosure.
  • FIG. 11 is a block diagram of an Internet of Things platform in accordance with an embodiment of the present disclosure.
  • Figure 12 is a block diagram of a terminal (on the network) of an embodiment of the present disclosure.
  • FIG. 1 is a flow chart of a method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure. As shown in Figure 1, the method includes the following steps 11-12. The method steps can be performed at a networked (abnormal) terminal.
  • the target terminal that can access the IoT platform is searched for.
  • step 12 if the target terminal is found, a connection is established with the target terminal, and the network of the target terminal is connected to the Internet of Things platform.
  • the short-range wireless communication function module for example, Zigbee
  • low-power communication modules such as Bluetooth
  • FIG. 2 is a flow chart of another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure. As shown in FIG. 2, the method includes the following steps 21-23. The method steps can be performed at the IoT platform.
  • the Internet of Things platform polls the terminal status to view terminals that have not sent the last message information for a specified time.
  • a target terminal connectable to the terminal is looked up.
  • the terminal information and the resume connection command information are transmitted to the target terminal.
  • FIG. 3 is a flow chart of yet another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure. As shown in FIG. 3, the method includes the following steps 31-32. The method steps can be performed at the terminal of the network.
  • step 31 after receiving the specified information, an attempt is made to establish a connection with the designated terminal.
  • step 32 after establishing a connection with the designated terminal, accepting the designated terminal to establish a connection with the Internet of Things platform through its own network, or forwarding information exchanged between the designated terminal and the Internet of Things platform.
  • the step of receiving the specified information comprises the steps of: receiving heartbeat information sent by the designated terminal, including a disconnected state from the Internet of Things platform, or receiving a resume connection command sent by the Internet of Things platform. information.
  • FIG. 4 is a schematic diagram of an IoT platform connected to an access terminal according to an embodiment of the present disclosure. As shown in FIG. 4, the IoT platform can access multiple terminal devices P1, P2, P3, .
  • FIG. 5 is a flowchart of a terminal transmitting a legacy message according to an embodiment of the present disclosure. As shown in FIG. 5, the process includes the following steps: 201-204.
  • terminal D1 accesses the IoT platform.
  • the IoT platform determines whether the terminal D1 is the first access, and if so, proceeds to step 203; if not, proceeds to step 204.
  • the IoT platform After the IoT terminal (for example, D1) accesses the IoT platform for the first time, the IoT platform records the terminal ID of D1.
  • the method for determining whether the terminal D1 is the first time to access the IoT platform is: if the terminal ID ID of the accessed terminal ID record recorded by the IoT platform does not include the terminal ID, it is determined to be the first access, otherwise it is not the first access.
  • the IoT platform records and stores the terminal ID in the accessed terminal ID list, records its IP address, establishes a message channel with it, and proceeds to step 204.
  • the terminal D1 starts to continuously send the last words information to the IoT platform at a fixed time interval, and the last words information includes: a terminal name, a terminal IP, a terminal location, a current time, a cell ID, and the like.
  • Each terminal in the IoT platform sends the legacy information to the IoT platform at regular intervals.
  • the IoT platform saves the last message information to the database based on the terminal ID.
  • T can be greater than 30 minutes.
  • FIG. 6 is a flowchart of establishing a connection between a terminal and a connectable terminal according to an embodiment of the present disclosure. As shown in FIG. 6, the flow includes the following steps: 301-304.
  • terminal D1 establishes a connection with the IoT platform.
  • the IoT platform searches for other terminals (which may be one terminal or multiple terminals) that are closest to the location of the terminal D1, and transmits information such as terminal name, terminal IP, terminal location, and the like to the terminal D1.
  • the IoT platform searches for the access terminal closest to the D1 (for example, the terminal D2) in all the terminals accessing the IoT platform according to the terminal location or the cell ID in the legacy information, and includes the terminal ID, the terminal name, and the terminal of the D2.
  • the terminal information such as the location is transmitted to the terminal D1, and the terminal D1 stores the terminal information of the terminal D2.
  • terminal D1 and terminal D2 attempt to establish a connection through their own short-range wireless communication functions, such as Zigbee, Bluetooth, or WiFi.
  • the terminal D1 transmits heartbeat information to the terminal D2 at a certain time interval.
  • Terminal D1 and terminal D2 open their ZigBee (Zibebe Protocol), Bluetooth or WiFi (Wireless Fidelity) functions, terminal D2 sets itself to the discovered mode, and terminal D1 attempts to establish a data connection with terminal D2. If a data connection can be established, the two terminals start to send heartbeat information at fixed time intervals, and the heartbeat information includes information such as the connection state with the IoT platform.
  • ZigBee ZigBee Protocol
  • WiFi Wireless Fidelity
  • the terminal D1 and the terminal D2 can also send their own configuration files or other information to the other party as a backup, and upload the backup status information to the IoT platform. If a terminal in the terminal D1 and the terminal D2 needs to be restored to the factory settings due to a failure, the IoT platform may be queried to the terminal that has established a heartbeat connection, and the backup data information is restored therefrom.
  • the terminal can open its own low-power device such as Zigbee or Bluetooth after detecting disconnection from the IoT, and set itself up.
  • the terminal with which the heartbeat is established can also turn on its own Zigbee or Bluetooth function to search for the disconnected terminal and attempt to establish a connection with it.
  • FIG. 7 is a flowchart of a process after a terminal is disconnected from an IoT platform according to an embodiment of the present disclosure. As shown in FIG. 7, the process includes the following steps: 401-486.
  • terminal D1 is disconnected from the IoT platform.
  • the terminal D1 determines whether there is a terminal D2 that has established a heartbeat connection with the terminal D1, and if yes, proceeds to step 403; if not, proceeds to step 406.
  • the terminal D1 sets the IoT platform connection state in the heartbeat information to off when the heartbeat information is transmitted next time.
  • the terminal D2 After receiving the heartbeat information disconnected from the IoT platform, the terminal D2 establishes a connection with the terminal D1 via Bluetooth, WiFi, or the like.
  • the disconnected terminal D1 accesses the IoT platform through the network of the terminal D2.
  • terminal D1 looks up the connectable in-network terminal.
  • Terminal D1 calculates the time difference between the time of disconnection and the last time the last message was sent to the IoT platform, and records it as t. If t>T, that is, the time difference is greater than the last sentence transmission interval T, the terminal D1 opens the Zigbee, Bluetooth or WiFi function of the terminal D1 at a certain time interval T1, and sets it as a networkable or discoverable state, and the state is Hold for a period of time T2, where T1 is greater than T2.
  • the Zigbee, Bluetooth or WiFi function is turned off, and the Zigbee, Bluetooth or WiFi function is turned on after waiting for the time T1 and the self is set to be discoverable.
  • FIG. 8 is a flowchart of a process in which a normal in-network terminal D2 adds an abnormal terminal D1 to its own network according to an embodiment of the present disclosure. As shown in FIG. 8, the flow includes the following steps: 501-507.
  • the IoT platform polls the status of each terminal.
  • the IoT platform checks to see if there is a terminal timeout that has not sent the last message.
  • a terminal that has not sent the last message information, such as terminal D1, is found.
  • the IoT platform determines whether a terminal is disconnected according to the time interval T reported by the terminal. For example, after the last report of the last message from a terminal has passed the interval T time, the IoT platform does not receive the new testimony sent by the terminal, and the IoT platform can determine that the terminal is abnormally disconnected and set its state to an abnormal state. .
  • the abnormally disconnected terminal is recorded as D1.
  • the in-network terminal D2 that appeared before D1 and is closest to the distance D1 is found.
  • the IoT transmits information such as the ID, name, IP, location, and the like of the terminal D1 to the terminal D2, and transmits a resume connection command for the terminal D1.
  • the IoT platform queries the location information in all the access terminal information that it saves, and searches for a mobile access terminal (referred to as D2) that is located in the vicinity of the terminal D1 and is closest to the terminal D1.
  • the IoT platform will be the terminal D1.
  • the terminal information including the terminal ID, the terminal name, the terminal location, and the like is transmitted to the terminal D2, and the restoration connection command for the terminal D1 is transmitted to the terminal D2, and the terminal D2 searches for the terminal D1 and attempts to restore the networking of the terminal D1.
  • terminal D2 continuously checks its own location information to determine if it has reached the vicinity of terminal D1, i.e., determines if D2 is already within the D1 connectable range.
  • the terminal D2 determines that the Zigbee or Bluetooth function of the terminal D2 is turned on after determining that the terminal D1 has arrived in the vicinity of the terminal D1, and searches for the surrounding device according to the name of the terminal D1. At this time, if the Zigbee or Bluetooth of the terminal D1 is in a networkable or discoverable state, the terminal D2 can find the terminal D1, and add the terminal D1 to the network of the terminal D2, and establish a connection with the IoT platform through the terminal D2.
  • a backup query request can be sent to the IoT platform for backup.
  • FIG. 9 is a flowchart of performing data backup by a terminal according to an embodiment of the present disclosure. As shown in FIG. 9, the flow includes the following steps: 601-605.
  • the terminal loses data due to a failure, or needs to recover data after restoring the factory settings.
  • the terminal sends a backup query request to the IoT platform to query whether a neighboring device has its own backup file.
  • the terminal receives a backup response message returned by the IoT platform. According to the backup response message, if a neighboring device saves its own backup file, go to step 604.
  • the terminal turns on Bluetooth, Zigbee, etc., and sets itself to a discoverable state, and sends a backup request to the terminal that holds its own backup file.
  • the terminal that saves its own backup file starts its own Zigbee or Bluetooth, searches for the terminal and attempts to establish a connection with it, and after the connection is established successfully, the backup file can be sent to the terminal.
  • the terminal can recover its own data information through data backup of other terminals.
  • the above method is not limited to establishing heartbeat and backup data only with one of the adjacent terminals, and can also perform heartbeat connection and data backup simultaneously with multiple surrounding terminals to increase the probability of recovery.
  • the short-range wireless communication function can be used to restore the connection.
  • the IoT terminal can back up data with the adjacent terminal.
  • the IoT platform can be queried to the terminal with which the heartbeat has been established, and the backup data information is restored therefrom.
  • the door magnetic, temperature and humidity sensors can be connected to the IoT platform via WiFi. If the WiFi hotspot is broken or the network is abnormal, the magnetic door, temperature and humidity sensor can continue to access the IoT platform through the user's mobile phone. in.
  • Embodiments of the present disclosure relate to an Internet of Things platform, an abnormal terminal, and an in-network terminal.
  • the following describes the Internet of Things platform, an abnormal terminal, and an in-network terminal.
  • FIG. 10 is a block diagram of a terminal (anomaly) according to an embodiment of the present disclosure. As shown in FIG. 10, the terminal includes: a lookup module and a connection module.
  • the searching module is configured to find a target terminal that can access the IoT platform after the terminal is disconnected from the Internet of Things platform.
  • the connection module is configured to establish a connection with the target terminal if the target terminal is found, and connect to the Internet of Things platform through a network of the target terminal.
  • a terminal may use a short-range wireless communication function (for example, a low-power communication module such as Zigbee or Bluetooth) if the terminal has a normal intra-network IoT terminal due to network abnormality, traffic exhaustion, or the like. ) to restore its connection to the IoT platform.
  • a short-range wireless communication function for example, a low-power communication module such as Zigbee or Bluetooth
  • the lookup module is configured to find a target terminal accessible to the Internet of Things platform by querying whether a connection has been established with the terminal before disconnecting from the IoT platform The terminal, if yes, determining that the terminal that has established a connection with the terminal is a target terminal that can access the Internet of Things platform, and if not, turns on the short-range wireless communication function every first specified time And setting the terminal to a discoverable state, and maintaining the discoverable state for a second specified time, where the first specified time is greater than the second specified time.
  • the terminal further includes: a sending module, configured to periodically send the last word information to the Internet of Things platform before disconnecting from the Internet of Things platform, where the last word information includes at least one of the following items Item: terminal name, terminal IP, terminal location, current time, and cell identity.
  • the terminal further includes: a receiving module configured to receive information of one or more connectable terminals sent by the Internet of Things platform; and the sending module is further configured to be connected to the connectable terminal After the connection is established, heartbeat information is periodically sent to the connectable terminal, and the heartbeat information includes connection state information with the Internet of Things platform.
  • the terminal further includes: a backup module, configured to send a specified file to the connectable terminal for backup after establishing a connection with the connectable terminal, or receive the sent by the connectable terminal The file is backed up and the backup status is uploaded to the IoT platform.
  • a backup module configured to send a specified file to the connectable terminal for backup after establishing a connection with the connectable terminal, or receive the sent by the connectable terminal The file is backed up and the backup status is uploaded to the IoT platform.
  • the backup module is further configured to send a query backup request to the Internet of Things platform, and after receiving the backup backup response returned by the Internet of Things platform, establish a connection with the connectable terminal.
  • the connectable terminal acquires a backup file.
  • An embodiment of the present disclosure further provides a terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: After the platform is disconnected, searching for a target terminal that can access the IoT platform; and if the target terminal is found, establishing a connection with the target terminal, performing a network with the target terminal and the Internet of Things platform connection.
  • the Internet of Things platform includes a polling module, a lookup module, and a sending module.
  • the polling module is configured to poll the terminal status to view terminals that have not sent the last message information for a specified time.
  • the lookup module is configured to look up a target terminal connectable to the terminal.
  • the sending module is configured to send information of the terminal and resume connection command information to the target terminal.
  • the Internet of Things platform further includes: a receiving module, configured to periodically receive the last message sent by the terminal before viewing the terminal that has not sent the last message information at a specified time, where the last message information includes the following At least one of the items: terminal name, terminal IP, terminal location, current time, and cell identity.
  • the Internet of Things platform further includes: a connection module configured to establish a connection with the terminal; and the lookup module is further configured to look up one or more terminals to be connected that are connectable to the terminal Sending information of the terminal to be connected to the terminal.
  • the receiving module is further configured to receive and record backup status information of the terminal.
  • An embodiment of the present disclosure further provides an Internet of Things platform, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps:
  • the networking platform polls the terminal status, looks at the terminal that has not sent the last message information at the specified time; searches for the target terminal that can be connected to the terminal; and transmits the information of the terminal and the recovery connection command information to the target terminal.
  • FIG. 12 is a block diagram of a terminal (on the network) according to an embodiment of the present disclosure. As shown in FIG. 12, the terminal includes: a connection module and a processing module.
  • the connection module is configured to attempt to establish a connection with the designated terminal after receiving the specified information.
  • the processing module is configured to, after establishing a connection with the designated terminal, accept the terminal to establish a connection with the Internet of Things platform through its own network, or forward information exchanged between the terminal and the Internet of Things platform.
  • connection module is configured to receive the specified information by receiving the heartbeat information sent by the designated terminal, including the disconnected state from the Internet of Things platform, or receiving the sent by the Internet of Things platform. Restore connection command information.
  • connection module is configured to attempt to establish a connection with the designated terminal by: if it is determined that the specified terminal is within the specified range, the proximity wireless communication function is turned on, and the designated terminal is searched.
  • the terminal further includes: a backup module configured to perform backup after receiving the specified file of the designated terminal; or after receiving the backup request of the designated terminal, corresponding to the designated terminal The file is sent to the designated terminal.
  • a backup module configured to perform backup after receiving the specified file of the designated terminal; or after receiving the backup request of the designated terminal, corresponding to the designated terminal The file is sent to the designated terminal.
  • An embodiment of the present disclosure further provides a terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: receiving the designation After the information, attempt to establish a connection with the designated terminal; and after establishing a connection with the designated terminal, accepting that the terminal establishes a connection with the Internet of Things platform through its own network, or forwarding between the terminal and the Internet of Things platform Interactive information.

Abstract

The present disclosure provides an Internet of things connecting method, a terminal and an Internet of things platform. The Internet of things connecting method comprises the following steps: after a terminal is disconnected from an Internet of things platform, searching for a target terminal accessible to the Internet of things platform; and if the target terminal is found, establishing a connection with the target terminal, and connecting to the Internet of things platform by means of the network of the target terminal.

Description

一种连接物联网的方法、终端及物联网平台Method, terminal and internet of things platform for connecting internet of things 技术领域Technical field
本公开实施例涉及物联网领域,具体涉及一种连接物联网的方法、终端及物联网平台。Embodiments of the present disclosure relate to the field of Internet of Things, and in particular, to a method, a terminal, and an Internet of Things platform for connecting an Internet of Things.
背景技术Background technique
物联网(Internet of things,简称IoT)是新一代信息技术的重要组成部分,也是“信息化”时代的重要发展阶段。物联网就是物物相连的互联网,其可以将其用户端延伸和扩展到任何物品与物品之间以进行信息交换和通信。Internet of Things (IoT) is an important part of the new generation of information technology, and an important stage of development in the "informatization" era. The Internet of Things is the Internet of things that can extend and extend its client to any item and item for information exchange and communication.
IoT平台中各个终端节点需要实时与IoT平台保持连接,一旦终端由于网络状态不佳、电池电量低等原因与IoT平台断开连接,用户就无法查看断网的终端的信息,也无法对其进行控制。若该终端的信息对用户而言较为重要,则会影响用户体验。Each terminal node in the IoT platform needs to be connected to the IoT platform in real time. Once the terminal is disconnected from the IoT platform due to poor network status and low battery power, the user cannot view the information of the disconnected terminal or perform the same. control. If the information of the terminal is important to the user, it will affect the user experience.
同时,如果IoT终端丢失数据或者恢复出厂设置,虽然可以从IoT平台进行数据备份和恢复,但这可能导致流量消耗和电量消耗;而如果数据恢复较慢或者无法恢复,也会影响用户体验。At the same time, if the IoT terminal loses data or restores the factory settings, although data backup and recovery can be performed from the IoT platform, this may result in traffic consumption and power consumption; and if the data recovery is slow or unrecoverable, it will also affect the user experience.
发明内容Summary of the invention
一种连接物联网的方法,包括以下步骤:终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。A method for connecting an Internet of Things, comprising the steps of: after a terminal disconnects from an Internet of Things platform, searching for a target terminal that can access the Internet of Things platform; and if the target terminal is found, establishing with the target terminal Connecting, connecting to the Internet of Things platform through a network of the target terminal.
一种终端,包括:查找模块,其设置为所述终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及连接模块,其设置为若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。A terminal includes: a lookup module configured to: after the terminal is disconnected from the Internet of Things platform, find a target terminal that can access the IoT platform; and a connection module configured to find the target The terminal establishes a connection with the target terminal, and connects to the Internet of Things platform through a network of the target terminal.
一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以 下步骤:终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。A terminal includes: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the following steps: after the terminal is disconnected from the Internet of Things platform And searching for a target terminal that can access the IoT platform; and if the target terminal is found, establishing a connection with the target terminal, and connecting to the Internet of Things platform through a network of the target terminal.
一种连接物联网的方法,包括以下步骤:物联网平台轮询终端状态,查看超过指定时间未发送遗言信息的终端;查找可与所述终端连接的目标终端;以及向所述目标终端发送所述终端的信息及恢复连接命令信息。A method for connecting an Internet of Things, comprising the steps of: an IoT platform polling a terminal status, viewing a terminal that has not transmitted the last message information at a specified time; finding a target terminal connectable with the terminal; and transmitting the location to the target terminal The terminal information and the recovery connection command information.
一种物联网平台,包括:轮询模块,其设置为轮询终端状态,查看超过指定时间未发送遗言信息的终端;查找模块,其设置为查找可与所述终端连接的目标终端;以及发送模块,其设置为向所述目标终端发送所述终端的信息及恢复连接命令信息。An Internet of Things platform, comprising: a polling module configured to poll a terminal status, view a terminal that has not sent the last message information at a specified time; a search module configured to find a target terminal connectable with the terminal; and send And a module configured to send information of the terminal and resume connection command information to the target terminal.
一种物联网平台,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:物联网平台轮询终端状态,查看超过指定时间未发送遗言信息的终端;查找可与所述终端连接的目标终端;以及向所述目标终端发送所述终端的信息及恢复连接命令信息。An Internet of Things platform includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: the Internet of Things platform polls the terminal status Viewing a terminal that has not transmitted the last message information at a specified time; finding a target terminal connectable with the terminal; and transmitting information of the terminal and restoring connection command information to the target terminal.
一种连接物联网的方法,包括以下步骤:接收到指定信息后,尝试与指定终端建立连接;以及与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。A method for connecting an Internet of Things, comprising the steps of: after receiving the specified information, attempting to establish a connection with the designated terminal; and after establishing a connection with the designated terminal, accepting the terminal to establish with the Internet of Things platform through the network thereof Connecting, or forwarding information exchanged between the terminal and the Internet of Things platform.
一种终端,包括:连接模块,其设置为接收到指定信息后,尝试与指定终端建立连接;以及处理模块,其设置为与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。A terminal, comprising: a connection module configured to, after receiving the specified information, attempt to establish a connection with the designated terminal; and a processing module configured to: after establishing a connection with the designated terminal, accepting the terminal through the network thereof The Internet of Things platform establishes a connection or forwards information exchanged between the terminal and the Internet of Things platform.
一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:接收到指定信息后,尝试与指定终端建立连接;以及与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。A terminal comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the following steps: after receiving the specified information, attempting and specifying The terminal establishes a connection; and after establishing a connection with the designated terminal, accepting the terminal to establish a connection with the Internet of Things platform through its own network, or forwarding information exchanged between the terminal and the Internet of Things platform.
附图说明DRAWINGS
图1为根据本公开实施例的一种连接物联网的方法的流程图。1 is a flow chart of a method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure.
图2为根据本公开实施例的另一种连接物联网的方法的流程图。2 is a flow chart of another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure.
图3为根据本公开实施例的又一种连接物联网的方法的流程图。3 is a flow chart of yet another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure.
图4为根据本公开实施例的IoT平台与接入终端连接的示意图。4 is a schematic diagram of an IoT platform connected to an access terminal in accordance with an embodiment of the present disclosure.
图5为根据本公开实施例的终端发送遗言信息的流程图。FIG. 5 is a flowchart of a terminal transmitting a legacy message according to an embodiment of the present disclosure.
图6为根据本公开实施例的终端与可连接终端建立连接的流程图。6 is a flow diagram of establishing a connection between a terminal and a connectable terminal in accordance with an embodiment of the present disclosure.
图7为根据本公开实施例的终端与IoT平台断开连接后的处理流程图。FIG. 7 is a flowchart of a process after a terminal is disconnected from an IoT platform according to an embodiment of the present disclosure.
图8为根据本公开实施例的正常在网终端D2将异常终端D1加入自己网络的处理流程图。FIG. 8 is a flowchart of a process in which a normal in-network terminal D2 adds an abnormal terminal D1 to its own network according to an embodiment of the present disclosure.
图9为根据本公开实施例的终端进行数据备份的流程图。9 is a flow chart of a terminal performing data backup according to an embodiment of the present disclosure.
图10为本公开实施例的终端(异常)的框图。FIG. 10 is a block diagram of a terminal (anomaly) according to an embodiment of the present disclosure.
图11为本公开实施例的物联网平台的框图。11 is a block diagram of an Internet of Things platform in accordance with an embodiment of the present disclosure.
图12为本公开实施例的终端(在网)的框图。Figure 12 is a block diagram of a terminal (on the network) of an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开的目的、技术方案和优点更加清楚明白,下文中将结合附图对本公开的实施例进行详细说明。需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be arbitrarily combined with each other without conflict.
图1为根据本公开实施例的一种连接物联网的方法的流程图。如图1所示,所述方法包括以下步骤11-12。所述方法步骤可以在断网(异常)的终端处执行。1 is a flow chart of a method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure. As shown in Figure 1, the method includes the following steps 11-12. The method steps can be performed at a networked (abnormal) terminal.
在步骤11处,终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端。At step 11, after the terminal is disconnected from the Internet of Things platform, the target terminal that can access the IoT platform is searched for.
在步骤12处,若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。At step 12, if the target terminal is found, a connection is established with the target terminal, and the network of the target terminal is connected to the Internet of Things platform.
根据所述连接物联网的方法,在IoT平台的终端由于网络异常、流量耗尽等原因断网后,若其周围有正常在网的IoT终端,则可以利 用近距离无线通信功能模块(例如Zigbee、蓝牙等低功耗通讯模块)来恢复其与IoT平台的连接,以提高用户体验。According to the method for connecting the Internet of Things, after the network of the IoT platform is disconnected due to network abnormality, exhausted traffic, etc., if there is a normal IoT terminal around the network, the short-range wireless communication function module (for example, Zigbee) can be utilized. , low-power communication modules such as Bluetooth) to restore their connection to the IoT platform to enhance the user experience.
图2为根据本公开实施例的另一种连接物联网的方法的流程图。如图2所示,所述方法包括以下步骤21-23。所述方法步骤可以在IoT平台处执行。2 is a flow chart of another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure. As shown in FIG. 2, the method includes the following steps 21-23. The method steps can be performed at the IoT platform.
在步骤21处,物联网平台轮询终端状态,查看超过指定时间未发送遗言信息的终端。At step 21, the Internet of Things platform polls the terminal status to view terminals that have not sent the last message information for a specified time.
在步骤22处,查找可与所述终端连接的目标终端。At step 22, a target terminal connectable to the terminal is looked up.
在步骤23处,向所述目标终端发送所述终端的信息及恢复连接命令信息。At step 23, the terminal information and the resume connection command information are transmitted to the target terminal.
图3为根据本公开实施例的又一种连接物联网的方法的流程图。如图3所示,所述方法包括以下步骤31-32。所述方法步骤可以在在网的终端处执行。3 is a flow chart of yet another method of connecting an Internet of Things, in accordance with an embodiment of the present disclosure. As shown in FIG. 3, the method includes the following steps 31-32. The method steps can be performed at the terminal of the network.
在步骤31处,接收到指定信息后,尝试与指定终端建立连接。At step 31, after receiving the specified information, an attempt is made to establish a connection with the designated terminal.
在步骤32处,与所述指定终端建立连接后,接受所述指定终端通过本身的网络与所述物联网平台建立连接,或者转发所述指定终端与所述物联网平台之间交互的信息。At step 32, after establishing a connection with the designated terminal, accepting the designated terminal to establish a connection with the Internet of Things platform through its own network, or forwarding information exchanged between the designated terminal and the Internet of Things platform.
在一个实施例中,所述接收到指定信息的步骤包括以下步骤:接收所述指定终端发送的包括与物联网平台断开连接状态的心跳信息,或者接收所述物联网平台发送的恢复连接命令信息。In an embodiment, the step of receiving the specified information comprises the steps of: receiving heartbeat information sent by the designated terminal, including a disconnected state from the Internet of Things platform, or receiving a resume connection command sent by the Internet of Things platform. information.
以下通过具体实施例对上述各实施例的连接物联网的方法进行详细的说明。The method of connecting the Internet of Things in the above embodiments will be described in detail below by way of specific embodiments.
图4为根据本公开实施例的IoT平台与接入终端连接的示意图,如图4所示,IoT平台可以接入多个终端设备P1,P2,P3……Pi。4 is a schematic diagram of an IoT platform connected to an access terminal according to an embodiment of the present disclosure. As shown in FIG. 4, the IoT platform can access multiple terminal devices P1, P2, P3, .
图5为根据本公开实施例的终端发送遗言信息的流程图。如图5所示,所述流程包括以下步骤:201-204。FIG. 5 is a flowchart of a terminal transmitting a legacy message according to an embodiment of the present disclosure. As shown in FIG. 5, the process includes the following steps: 201-204.
在步骤201处,终端D1接入IoT平台。At step 201, terminal D1 accesses the IoT platform.
在步骤202处,IoT平台判断该终端D1是否为首次接入,如是,则转步骤203;如不是,则转步骤204。At step 202, the IoT platform determines whether the terminal D1 is the first access, and if so, proceeds to step 203; if not, proceeds to step 204.
IoT终端(例如D1)在首次接入IoT平台后,IoT平台会记录 D1的终端ID。After the IoT terminal (for example, D1) accesses the IoT platform for the first time, the IoT platform records the terminal ID of D1.
判断终端D1是否为首次接入IoT平台的方法为:若IoT平台记录的已接入过的终端ID列表中不包含该终端ID,则判断为首次接入,否则为非首次接入。The method for determining whether the terminal D1 is the first time to access the IoT platform is: if the terminal ID ID of the accessed terminal ID record recorded by the IoT platform does not include the terminal ID, it is determined to be the first access, otherwise it is not the first access.
在步骤203处,若为首次接入,IoT平台将该终端ID记录并保存于已接入过的终端ID列表中,同时记录其IP地址,与其建立消息通道,转步骤204。At step 203, if it is the first time access, the IoT platform records and stores the terminal ID in the accessed terminal ID list, records its IP address, establishes a message channel with it, and proceeds to step 204.
在步骤204处,终端D1开始以固定时间间隔不断地向IoT平台发送遗言信息,遗言信息包括:终端名称、终端IP、终端位置、当前时间、小区ID等。At step 204, the terminal D1 starts to continuously send the last words information to the IoT platform at a fixed time interval, and the last words information includes: a terminal name, a terminal IP, a terminal location, a current time, a cell ID, and the like.
IoT平台中的每个终端以一定时间间隔,向IoT平台发送遗言信息。IoT平台根据终端ID将遗言信息保存到数据库中。考虑到终端功耗问题,T可以大于30分钟。Each terminal in the IoT platform sends the legacy information to the IoT platform at regular intervals. The IoT platform saves the last message information to the database based on the terminal ID. Considering the power consumption problem of the terminal, T can be greater than 30 minutes.
图6为根据本公开实施例的终端与可连接终端建立连接的流程图,如图6所示,所述流程包括以下步骤:301-304。FIG. 6 is a flowchart of establishing a connection between a terminal and a connectable terminal according to an embodiment of the present disclosure. As shown in FIG. 6, the flow includes the following steps: 301-304.
在步骤301处,终端D1与IoT平台建立连接。At step 301, terminal D1 establishes a connection with the IoT platform.
在步骤302处,IoT平台查找距离该终端D1位置最近的其他终端(可以是一个终端,也可以是多个终端),并将其终端名称、终端IP、终端位置等信息发送给该终端D1。At step 302, the IoT platform searches for other terminals (which may be one terminal or multiple terminals) that are closest to the location of the terminal D1, and transmits information such as terminal name, terminal IP, terminal location, and the like to the terminal D1.
IoT平台根据遗言信息中的终端位置或者小区ID,在所有接入IoT平台的终端中查找距离该D1最近的接入终端(例如,终端D2),并将D2的包括终端ID、终端名称、终端位置等终端信息发送给终端D1,终端D1保存终端D2的终端信息。The IoT platform searches for the access terminal closest to the D1 (for example, the terminal D2) in all the terminals accessing the IoT platform according to the terminal location or the cell ID in the legacy information, and includes the terminal ID, the terminal name, and the terminal of the D2. The terminal information such as the location is transmitted to the terminal D1, and the terminal D1 stores the terminal information of the terminal D2.
在步骤303处,终端D1和终端D2通过自身的近距离无线通信功能,例如Zigbee、蓝牙或WiFi等功能,尝试建立连接。At step 303, terminal D1 and terminal D2 attempt to establish a connection through their own short-range wireless communication functions, such as Zigbee, Bluetooth, or WiFi.
在步骤304处,连接成功后终端D1以一定时间间隔向终端D2发送心跳信息。At step 304, after the connection is successful, the terminal D1 transmits heartbeat information to the terminal D2 at a certain time interval.
终端D1和终端D2打开其ZigBee(紫蜂协议)、蓝牙或者WiFi(Wireless Fidelity,无线保真)功能,终端D2将自身设为被发现模式,终端D1尝试与终端D2建立数据连接。如果可以建立数据连接, 则两个终端开始以固定时间间隔发送心跳信息,心跳信息包含与IoT平台连接状态等信息。Terminal D1 and terminal D2 open their ZigBee (Zibebe Protocol), Bluetooth or WiFi (Wireless Fidelity) functions, terminal D2 sets itself to the discovered mode, and terminal D1 attempts to establish a data connection with terminal D2. If a data connection can be established, the two terminals start to send heartbeat information at fixed time intervals, and the heartbeat information includes information such as the connection state with the IoT platform.
终端D1和终端D2还可以将自身配置文件或者其他信息发送给对方作为备份,并将备份状态信息上传至IoT平台。后续若终端D1和终端D2中的某个终端因故障需恢复出厂设置,可向IoT平台查询与其建立过心跳连接的终端,并从其恢复备份的数据信息。The terminal D1 and the terminal D2 can also send their own configuration files or other information to the other party as a backup, and upload the backup status information to the IoT platform. If a terminal in the terminal D1 and the terminal D2 needs to be restored to the factory settings due to a failure, the IoT platform may be queried to the terminal that has established a heartbeat connection, and the backup data information is restored therefrom.
如果某个终端由于网络状态不佳、流量耗尽等原因与IoT断开连接,该终端在检测到与IoT断开连接后,可以打开自身的Zigbee或蓝牙等低功耗设备,并将自身设置为可被发现状态,在这种情况下,和其建立心跳的终端也可以开启自身Zigbee或者蓝牙功能,以搜寻断网终端并尝试与其建立连接。If a terminal disconnects from the IoT due to poor network status, exhausted traffic, etc., the terminal can open its own low-power device such as Zigbee or Bluetooth after detecting disconnection from the IoT, and set itself up. In order to be discoverable, in this case, the terminal with which the heartbeat is established can also turn on its own Zigbee or Bluetooth function to search for the disconnected terminal and attempt to establish a connection with it.
图7为根据本公开实施例的终端与IoT平台断开连接后的处理流程图,如图7所示,所述流程包括以下步骤:401-406。FIG. 7 is a flowchart of a process after a terminal is disconnected from an IoT platform according to an embodiment of the present disclosure. As shown in FIG. 7, the process includes the following steps: 401-486.
在步骤401处,终端D1与IoT平台断开连接。At step 401, terminal D1 is disconnected from the IoT platform.
在步骤402处,终端D1判断之前是否有和终端D1建立心跳连接的终端D2,如有,则转步骤403;如没有,则转步骤406。At step 402, the terminal D1 determines whether there is a terminal D2 that has established a heartbeat connection with the terminal D1, and if yes, proceeds to step 403; if not, proceeds to step 406.
在步骤403处,终端D1在下次发送心跳信息时,将心跳信息中的IoT平台连接状态设置为断开。At step 403, the terminal D1 sets the IoT platform connection state in the heartbeat information to off when the heartbeat information is transmitted next time.
在步骤404处,终端D2收到与IoT平台断开连接的心跳信息后,通过蓝牙、WiFi等与终端D1建立连接。At step 404, after receiving the heartbeat information disconnected from the IoT platform, the terminal D2 establishes a connection with the terminal D1 via Bluetooth, WiFi, or the like.
在步骤405处,断开连接的终端D1通过终端D2的网络接入到IoT平台中。At step 405, the disconnected terminal D1 accesses the IoT platform through the network of the terminal D2.
在步骤406处,终端D1查找可连接的在网终端。At step 406, terminal D1 looks up the connectable in-network terminal.
终端D1计算断开连接的时间与上次向IoT平台发送遗言的时间的时间差,并将其记为t。如果t>T,即时间差大于遗言发送间隔T,则终端D1以一定时间间隔T1打开本终端D1的Zigbee、蓝牙或者WiFi功能,并将其设为可联网或者可被发现状态,并将该状态保持一段时间T2,其中T1大于T2。Terminal D1 calculates the time difference between the time of disconnection and the last time the last message was sent to the IoT platform, and records it as t. If t>T, that is, the time difference is greater than the last sentence transmission interval T, the terminal D1 opens the Zigbee, Bluetooth or WiFi function of the terminal D1 at a certain time interval T1, and sets it as a networkable or discoverable state, and the state is Hold for a period of time T2, where T1 is greater than T2.
若经过T2时间后,终端D1仍未连接到IoT平台,则关闭Zigbee、蓝牙或WiFi功能,并等待时间T1后再打开所述Zigbee、蓝牙或WiFi 功能并将本身设为可被发现状态。If the terminal D1 is still not connected to the IoT platform after the T2 time, the Zigbee, Bluetooth or WiFi function is turned off, and the Zigbee, Bluetooth or WiFi function is turned on after waiting for the time T1 and the self is set to be discoverable.
图8为根据本公开实施例的正常在网终端D2将异常终端D1加入自己网络的处理流程图,如图8所示,所述流程包括以下步骤:501-507。FIG. 8 is a flowchart of a process in which a normal in-network terminal D2 adds an abnormal terminal D1 to its own network according to an embodiment of the present disclosure. As shown in FIG. 8, the flow includes the following steps: 501-507.
在步骤501处,IoT平台轮询每个终端的状态。At step 501, the IoT platform polls the status of each terminal.
在步骤502处,IoT平台查看是否有终端超时未发送遗言信息。At step 502, the IoT platform checks to see if there is a terminal timeout that has not sent the last message.
在步骤503处,找到超时未发送遗言信息的终端(异常终端),例如终端D1。At step 503, a terminal (abnormal terminal) that has not sent the last message information, such as terminal D1, is found.
IoT平台根据终端上报遗言的时间间隔T来判断是否有终端断开连接。例如,距某一终端上一次上报遗言经过了间隔T时间后,IoT平台没有收到该终端发送的新遗言,则IoT平台即可认定该终端异常断开连接,并将其状态设为异常状态。将异常断开的终端记为D1。The IoT platform determines whether a terminal is disconnected according to the time interval T reported by the terminal. For example, after the last report of the last message from a terminal has passed the interval T time, the IoT platform does not receive the new testimony sent by the terminal, and the IoT platform can determine that the terminal is abnormally disconnected and set its state to an abnormal state. . The abnormally disconnected terminal is recorded as D1.
在步骤504处,查找之前出现在D1附近且距离D1最近的在网终端D2。At step 504, the in-network terminal D2 that appeared before D1 and is closest to the distance D1 is found.
在步骤505处,IoT将终端D1的ID、名称、IP、位置等信息发送给终端D2,并发送针对终端D1的恢复连接命令。At step 505, the IoT transmits information such as the ID, name, IP, location, and the like of the terminal D1 to the terminal D2, and transmits a resume connection command for the terminal D1.
IoT平台查询其保存的所有接入终端信息中的位置信息,查找之前多次出现在终端D1附近,且距离终端D1最近的可移动的接入终端(记为D2),IoT平台将终端D1的包括终端ID、终端名称、终端位置等的终端信息发送给终端D2,并将针对终端D1的恢复连接命令发送给终端D2,由终端D2查找终端D1并尝试恢复终端D1的联网。The IoT platform queries the location information in all the access terminal information that it saves, and searches for a mobile access terminal (referred to as D2) that is located in the vicinity of the terminal D1 and is closest to the terminal D1. The IoT platform will be the terminal D1. The terminal information including the terminal ID, the terminal name, the terminal location, and the like is transmitted to the terminal D2, and the restoration connection command for the terminal D1 is transmitted to the terminal D2, and the terminal D2 searches for the terminal D1 and attempts to restore the networking of the terminal D1.
在步骤506处,终端D2不断查看自身位置信息,以确定是否已到达终端D1附近,即判断D2是否已经在D1可连接范围内。At step 506, terminal D2 continuously checks its own location information to determine if it has reached the vicinity of terminal D1, i.e., determines if D2 is already within the D1 connectable range.
在步骤507处,终端D2根据位置信息判断已经到达终端D1附近后,开启终端D2的Zigbee或者蓝牙功能,并根据终端D1的名称来搜寻周围设备。此时,终端D1的Zigbee或者蓝牙若处于可联网或者可被发现状态,则终端D2可查找到终端D1,并将终端D1加入到终端D2网络中,通过终端D2建立与IoT平台的连接。At step 507, the terminal D2 determines that the Zigbee or Bluetooth function of the terminal D2 is turned on after determining that the terminal D1 has arrived in the vicinity of the terminal D1, and searches for the surrounding device according to the name of the terminal D1. At this time, if the Zigbee or Bluetooth of the terminal D1 is in a networkable or discoverable state, the terminal D2 can find the terminal D1, and add the terminal D1 to the network of the terminal D2, and establish a connection with the IoT platform through the terminal D2.
如果某个终端由于故障而恢复出厂设置,则可向IoT平台发送备份查询请求,以进行备份。If a terminal is restored to factory settings due to a failure, a backup query request can be sent to the IoT platform for backup.
图9为根据本公开实施例的终端进行数据备份的流程图,如图9所示,所述流程包括以下步骤:601-605。FIG. 9 is a flowchart of performing data backup by a terminal according to an embodiment of the present disclosure. As shown in FIG. 9, the flow includes the following steps: 601-605.
在步骤601处,终端由于故障而导致数据丢失,或者恢复出厂设置后需要恢复数据。At step 601, the terminal loses data due to a failure, or needs to recover data after restoring the factory settings.
在步骤602处,该终端向IoT平台发送备份查询请求,查询是否有相邻设备保存有自身的备份文件。At step 602, the terminal sends a backup query request to the IoT platform to query whether a neighboring device has its own backup file.
在步骤603处,终端接收IoT平台返回的备份响应消息。根据所述备份响应消息,如有相邻设备保存有自身的备份文件,则转步骤604。At step 603, the terminal receives a backup response message returned by the IoT platform. According to the backup response message, if a neighboring device saves its own backup file, go to step 604.
在步骤604处,终端打开蓝牙、Zigbee等功能,并将本身设置为可被发现状态,向保存有自身的备份文件的终端发送备份请求。At step 604, the terminal turns on Bluetooth, Zigbee, etc., and sets itself to a discoverable state, and sends a backup request to the terminal that holds its own backup file.
在步骤605处,保存有自身的备份文件的终端开启自身Zigbee或者蓝牙,搜寻该终端并尝试与其建立连接,建立连接成功后,即可将备份文件发送给该终端。At step 605, the terminal that saves its own backup file starts its own Zigbee or Bluetooth, searches for the terminal and attempts to establish a connection with it, and after the connection is established successfully, the backup file can be sent to the terminal.
通过以上方法步骤,该终端能够通过其他终端的数据备份来恢复自身数据信息。Through the above method steps, the terminal can recover its own data information through data backup of other terminals.
上述方法不限于仅与相邻的某一个终端建立心跳以及备份数据,也可与周围多个终端同时进行心跳连接以及数据备份,以增加恢复的几率。The above method is not limited to establishing heartbeat and backup data only with one of the adjacent terminals, and can also perform heartbeat connection and data backup simultaneously with multiple surrounding terminals to increase the probability of recovery.
通过以上方法步骤,在IoT终端由于网络异常、流量耗尽而与IoT平台断开后,若其周围有正常在网的IoT终端,可以利用近距离无线通信功能来恢复其连接。Through the above method steps, after the IoT terminal is disconnected from the IoT platform due to network abnormality and traffic exhaustion, if there is a normal IoT terminal around the network, the short-range wireless communication function can be used to restore the connection.
IoT终端可以与相邻终端互相备份数据,当某个IoT终端由于故障恢复出厂设置后,可向IoT平台查询与其建立过心跳的终端,并从其处恢复备份的数据信息。The IoT terminal can back up data with the adjacent terminal. When an IoT terminal is restored to the factory settings due to a failure, the IoT platform can be queried to the terminal with which the heartbeat has been established, and the backup data information is restored therefrom.
智能家居场景中,门磁、温湿度传感器等都可以通过WiFi接入到IoT平台,如果WiFi热点坏掉或者网络异常,则门磁、温湿度传感器等可以通过用户的手机继续接入到IoT平台中。In the smart home scene, the door magnetic, temperature and humidity sensors can be connected to the IoT platform via WiFi. If the WiFi hotspot is broken or the network is abnormal, the magnetic door, temperature and humidity sensor can continue to access the IoT platform through the user's mobile phone. in.
本公开实施例涉及物联网平台、异常终端和在网终端,以下对所述物联网平台、异常终端和在网终端进行说明。Embodiments of the present disclosure relate to an Internet of Things platform, an abnormal terminal, and an in-network terminal. The following describes the Internet of Things platform, an abnormal terminal, and an in-network terminal.
图10为根据本公开实施例的终端(异常)的框图,如图10所示,所述终端包括:查找模块和连接模块。FIG. 10 is a block diagram of a terminal (anomaly) according to an embodiment of the present disclosure. As shown in FIG. 10, the terminal includes: a lookup module and a connection module.
所述查找模块设置为终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端。The searching module is configured to find a target terminal that can access the IoT platform after the terminal is disconnected from the Internet of Things platform.
所述连接模块设置为若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。The connection module is configured to establish a connection with the target terminal if the target terminal is found, and connect to the Internet of Things platform through a network of the target terminal.
根据本公开实施例的终端在由于网络异常、流量耗尽等原因断网后,若其周围有正常在网的IoT终端,可以利用近距离无线通信功能(例如Zigbee、蓝牙等低功耗通讯模块)来恢复其与IoT平台的连接。A terminal according to an embodiment of the present disclosure may use a short-range wireless communication function (for example, a low-power communication module such as Zigbee or Bluetooth) if the terminal has a normal intra-network IoT terminal due to network abnormality, traffic exhaustion, or the like. ) to restore its connection to the IoT platform.
在一实施例中,所述查找模块设置为通过以下步骤来查找可接入所述物联网平台的目标终端:查询在与所述物联网平台断开连接之前是否有已与所述终端建立连接的终端,其中,若有,则确定所述已与所述终端建立连接的终端为可接入所述物联网平台的目标终端,若没有,则每隔第一指定时间打开近距离无线通信功能,设置本终端为可被发现状态,将该可被发现状态保持第二指定时间,所述第一指定时间大于所述第二指定时间。In an embodiment, the lookup module is configured to find a target terminal accessible to the Internet of Things platform by querying whether a connection has been established with the terminal before disconnecting from the IoT platform The terminal, if yes, determining that the terminal that has established a connection with the terminal is a target terminal that can access the Internet of Things platform, and if not, turns on the short-range wireless communication function every first specified time And setting the terminal to a discoverable state, and maintaining the discoverable state for a second specified time, where the first specified time is greater than the second specified time.
在一实施例中,所述终端还包括:发送模块,其设置为与物联网平台断开连接前,定期向所述物联网平台发送遗言信息,所述遗言信息包括以下各项中的至少一项:终端名称、终端IP、终端位置、当前时间和小区标识。In an embodiment, the terminal further includes: a sending module, configured to periodically send the last word information to the Internet of Things platform before disconnecting from the Internet of Things platform, where the last word information includes at least one of the following items Item: terminal name, terminal IP, terminal location, current time, and cell identity.
在一实施例中,所述终端还包括:接收模块,其设置为接收所述物联网平台发送的一个或多个可连接终端的信息;并且所述发送模块还设置为与所述可连接终端建立连接后,定期向所述可连接终端发送心跳信息,所述心跳信息包括与所述物联网平台的连接状态信息。In an embodiment, the terminal further includes: a receiving module configured to receive information of one or more connectable terminals sent by the Internet of Things platform; and the sending module is further configured to be connected to the connectable terminal After the connection is established, heartbeat information is periodically sent to the connectable terminal, and the heartbeat information includes connection state information with the Internet of Things platform.
在一实施例中,所述终端还包括:备份模块,其设置为与所述可连接终端建立连接后,将指定文件发送给所述可连接终端进行备份,或者接收所述可连接终端发送的文件进行备份,将备份状态上传给所述物联网平台。In an embodiment, the terminal further includes: a backup module, configured to send a specified file to the connectable terminal for backup after establishing a connection with the connectable terminal, or receive the sent by the connectable terminal The file is backed up and the backup status is uploaded to the IoT platform.
在一实施例中,所述备份模块还设置为向所述物联网平台发送 查询备份请求,接收到所述物联网平台返回的有备份的备份响应后,与所述可连接终端建立连接,向所述可连接终端获取备份文件。In an embodiment, the backup module is further configured to send a query backup request to the Internet of Things platform, and after receiving the backup backup response returned by the Internet of Things platform, establish a connection with the connectable terminal. The connectable terminal acquires a backup file.
本公开实施例还提供一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。An embodiment of the present disclosure further provides a terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: After the platform is disconnected, searching for a target terminal that can access the IoT platform; and if the target terminal is found, establishing a connection with the target terminal, performing a network with the target terminal and the Internet of Things platform connection.
图11为根据本公开实施例的物联网平台的框图,如图11所示,所述物联网平台包括:轮询模块、查找模块和发送模块。11 is a block diagram of an Internet of Things platform according to an embodiment of the present disclosure. As shown in FIG. 11, the Internet of Things platform includes a polling module, a lookup module, and a sending module.
所述轮询模块设置为轮询终端状态,查看超过指定时间未发送遗言信息的终端。The polling module is configured to poll the terminal status to view terminals that have not sent the last message information for a specified time.
所述查找模块设置为查找可与所述终端连接的目标终端。The lookup module is configured to look up a target terminal connectable to the terminal.
所述发送模块设置为向所述目标终端发送所述终端的信息及恢复连接命令信息。The sending module is configured to send information of the terminal and resume connection command information to the target terminal.
在一实施例中,所述物联网平台还包括:接收模块,其设置为查看超过指定时间未发送遗言信息的终端之前,定期接收所述终端发送所述遗言信息,所述遗言信息包括以下各项中的至少一项:终端名称、终端IP、终端位置、当前时间和小区标识。In an embodiment, the Internet of Things platform further includes: a receiving module, configured to periodically receive the last message sent by the terminal before viewing the terminal that has not sent the last message information at a specified time, where the last message information includes the following At least one of the items: terminal name, terminal IP, terminal location, current time, and cell identity.
在一实施例中,所述物联网平台还包括:连接模块,其设置为与所述终端建立连接;并且所述查找模块还设置为查找可与所述终端连接的一个或多个待连接终端,将所述待连接终端的信息发送给所述终端。In an embodiment, the Internet of Things platform further includes: a connection module configured to establish a connection with the terminal; and the lookup module is further configured to look up one or more terminals to be connected that are connectable to the terminal Sending information of the terminal to be connected to the terminal.
在一实施例中,所述接收模块还设置为接收并记录所述终端的备份状态信息。In an embodiment, the receiving module is further configured to receive and record backup status information of the terminal.
本公开实施例还提供一种物联网平台,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:物联网平台轮询终端状态,查看超过指定时间未发送遗言信息的终端;查找可与所述终端连接的目标终端;以及向所述目标终端发送所述终端的信息及恢复连接命令信息。An embodiment of the present disclosure further provides an Internet of Things platform, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: The networking platform polls the terminal status, looks at the terminal that has not sent the last message information at the specified time; searches for the target terminal that can be connected to the terminal; and transmits the information of the terminal and the recovery connection command information to the target terminal.
图12为根据本公开实施例的终端(在网)的框图,如图12所示,所述终端包括:连接模块和处理模块。FIG. 12 is a block diagram of a terminal (on the network) according to an embodiment of the present disclosure. As shown in FIG. 12, the terminal includes: a connection module and a processing module.
所述连接模块设置为接收到指定信息后,尝试与指定终端建立连接。The connection module is configured to attempt to establish a connection with the designated terminal after receiving the specified information.
所述处理模块设置为与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。The processing module is configured to, after establishing a connection with the designated terminal, accept the terminal to establish a connection with the Internet of Things platform through its own network, or forward information exchanged between the terminal and the Internet of Things platform.
在一实施例中,所述连接模块设置为通过以下操作来接收到指定信息:接收所述指定终端发送的包括与物联网平台断开连接状态的心跳信息,或者接收所述物联网平台发送的恢复连接命令信息。In an embodiment, the connection module is configured to receive the specified information by receiving the heartbeat information sent by the designated terminal, including the disconnected state from the Internet of Things platform, or receiving the sent by the Internet of Things platform. Restore connection command information.
在一实施例中,所述连接模块设置为通过以下操作来尝试与指定终端建立连接:若确定距所述指定终端在指定范围内,则开启近距离无线通信功能,搜寻所述指定终端。In an embodiment, the connection module is configured to attempt to establish a connection with the designated terminal by: if it is determined that the specified terminal is within the specified range, the proximity wireless communication function is turned on, and the designated terminal is searched.
在一实施例中,所述终端还包括:备份模块,其设置为接收到所述指定终端的指定文件后进行备份;或者接收到所述指定终端的备份请求后,将所述指定终端对应的文件发送给所述指定终端。In an embodiment, the terminal further includes: a backup module configured to perform backup after receiving the specified file of the designated terminal; or after receiving the backup request of the designated terminal, corresponding to the designated terminal The file is sent to the designated terminal.
本公开实施例还提供一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:接收到指定信息后,尝试与指定终端建立连接;以及与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。An embodiment of the present disclosure further provides a terminal, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the following steps: receiving the designation After the information, attempt to establish a connection with the designated terminal; and after establishing a connection with the designated terminal, accepting that the terminal establishes a connection with the Internet of Things platform through its own network, or forwarding between the terminal and the Internet of Things platform Interactive information.
本领域普通技术人员可以理解,上述方法中的全部或部分步骤可通过程序来指令相关硬件完成。所述程序可以存储于计算机可读存储介质中,所述存储介质如只读存储器、磁盘或光盘等。上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本公开不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk. All or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The present disclosure is not limited to any specific form of combination of hardware and software.
以上仅为本公开的示例性实施例。在不背离本公开精神及其实 质的情况下,本领域技术人员可根据本公开作出各种相应的改变和变形,但这些相应的改变和变形都应属于本公开所附的权利要求的保护范围。The above is merely an exemplary embodiment of the present disclosure. A person skilled in the art can make various changes and modifications in accordance with the present disclosure without departing from the spirit and scope of the disclosure, but the corresponding changes and modifications are intended to fall within the scope of the appended claims. .

Claims (33)

  1. 一种连接物联网的方法,包括以下步骤:A method of connecting an Internet of Things, comprising the steps of:
    终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及After the terminal is disconnected from the Internet of Things platform, searching for a target terminal that can access the IoT platform;
    若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。And if the target terminal is found, establishing a connection with the target terminal, and connecting to the Internet of Things platform through a network of the target terminal.
  2. 如权利要求1所述的方法,其中,所述查找可接入所述物联网平台的目标终端的步骤包括以下步骤:The method of claim 1 wherein said step of finding a target terminal accessible to said IoT platform comprises the steps of:
    查询在与所述物联网平台断开连接之前是否有已与所述终端建立连接的终端,其中,若有,则确定所述已与所述终端建立连接的终端为可接入所述物联网平台的目标终端,若没有,则每隔第一指定时间打开近距离无线通信功能,设置所述终端为可被发现状态,将该可被发现状态保持第二指定时间。Querying whether there is a terminal that has established a connection with the terminal before disconnecting from the Internet of Things platform, and if yes, determining that the terminal that has established a connection with the terminal is accessible to the Internet of Things The target terminal of the platform, if not, opens the short-range wireless communication function every first designated time, sets the terminal to be discoverable, and maintains the discoverable state for a second specified time.
  3. 如权利要求2所述的方法,其中,The method of claim 2, wherein
    所述第一指定时间大于所述第二指定时间。The first specified time is greater than the second specified time.
  4. 如权利要求1所述的方法,其中,所述终端与物联网平台断开连接的步骤前,还包括以下步骤:The method of claim 1, wherein before the step of disconnecting the terminal from the Internet of Things platform, the method further comprises the steps of:
    所述终端定期向所述物联网平台发送遗言信息,所述遗言信息包括以下各项中的至少一项:终端名称、终端IP、终端位置、当前时间和小区标识。The terminal periodically sends the last words information to the Internet of Things platform, and the last word information includes at least one of the following: a terminal name, a terminal IP, a terminal location, a current time, and a cell identifier.
  5. 如权利要求1所述的方法,其中,所述与物联网平台断开连接的步骤前,还包括以下步骤:The method of claim 1 wherein said step of disconnecting from the Internet of Things platform further comprises the steps of:
    接收所述物联网平台发送的一个或多个可连接终端的信息;以及Receiving information of one or more connectable terminals sent by the Internet of Things platform;
    与所述可连接终端建立连接后,定期向所述可连接终端发送心 跳信息,所述心跳信息包括与所述物联网平台的连接状态信息。After establishing a connection with the connectable terminal, the heartbeat information is periodically sent to the connectable terminal, and the heartbeat information includes connection state information with the Internet of Things platform.
  6. 如权利要求5所述的方法,其中,所述与所述可连接终端建立连接的步骤后,还包括以下步骤:The method of claim 5, wherein the step of establishing a connection with the connectable terminal further comprises the steps of:
    将指定文件发送给所述可连接终端进行备份,或者接收所述可连接终端发送的文件进行备份,将备份状态上传给所述物联网平台。Sending the specified file to the connectable terminal for backup, or receiving the file sent by the connectable terminal for backup, and uploading the backup status to the Internet of Things platform.
  7. 如权利要求6所述的方法,其中,所述将备份状态上传给所述物联网平台的步骤之后,还包括以下步骤:The method of claim 6, wherein after the step of uploading the backup status to the Internet of Things platform, the method further comprises the steps of:
    向所述物联网平台发送查询备份请求;以及Sending a query backup request to the IoT platform;
    接收到所述物联网平台返回的有备份的备份响应后,与所述可连接终端建立连接,向所述可连接终端获取备份文件。After receiving the backed up backup response returned by the Internet of Things platform, establishing a connection with the connectable terminal, and obtaining a backup file from the connectable terminal.
  8. 如权利要求1-7任一项所述的方法,其中,所述与所述目标终端建立连接的步骤包括以下步骤:The method of any of claims 1-7, wherein the step of establishing a connection with the target terminal comprises the steps of:
    通过近距离无线通信功能与所述目标终端建立连接。Establishing a connection with the target terminal through a short-range wireless communication function.
  9. 一种终端,包括:A terminal comprising:
    查找模块,其设置为所述终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及a search module, configured to: after the terminal is disconnected from the Internet of Things platform, searching for a target terminal that can access the IoT platform;
    连接模块,其设置为若查找到所述目标终端,与所述目标终端建立连接,通过所述目标终端的网络与所述物联网平台进行连接。And a connection module, configured to establish a connection with the target terminal if the target terminal is found, and connect to the Internet of Things platform through a network of the target terminal.
  10. 如权利要求9所述的终端,其中,The terminal of claim 9, wherein
    所述查找模块设置为通过以下步骤来查找可接入所述物联网平台的目标终端:查询在与所述物联网平台断开连接之前是否有已与所述终端建立连接的终端,其中,若有,则确定所述已与所述终端建立连接的终端为可接入所述物联网平台的目标终端,若没有,则每隔第一指定时间打开近距离无线通信功能,设置所述终端为可被发现状态,将该可被发现状态保持第二指定时间,所述第一指定时间大于所述第 二指定时间。The searching module is configured to: search for a target terminal that can access the Internet of Things platform by querying whether there is a terminal that has established a connection with the terminal before disconnecting from the Internet of Things platform, where If yes, the terminal that has established a connection with the terminal is a target terminal that can access the Internet of Things platform. If not, the short-range wireless communication function is turned on every first specified time, and the terminal is set to be A state can be discovered that maintains the discoverable state for a second specified time, the first specified time being greater than the second specified time.
  11. 如权利要求9所述的终端,其中,所述终端还包括:The terminal of claim 9, wherein the terminal further comprises:
    发送模块,其设置为与物联网平台断开连接前,定期向所述物联网平台发送遗言信息,所述遗言信息包括以下各项中的至少一项:终端名称、终端IP、终端位置、当前时间和小区标识。a sending module, configured to periodically send the legacy information to the Internet of Things platform before disconnecting from the Internet of Things platform, the last message information including at least one of the following: a terminal name, a terminal IP, a terminal location, and a current Time and cell identification.
  12. 如权利要求9所述的终端,其中,所述终端还包括:The terminal of claim 9, wherein the terminal further comprises:
    接收模块,其设置为接收所述物联网平台发送的一个或多个可连接终端的信息;并且a receiving module, configured to receive information of one or more connectable terminals sent by the Internet of Things platform; and
    所述发送模块还设置为与所述可连接终端建立连接后,定期向所述可连接终端发送心跳信息,所述心跳信息包括与所述物联网平台的连接状态信息。The sending module is further configured to periodically send heartbeat information to the connectable terminal after establishing a connection with the connectable terminal, where the heartbeat information includes connection state information with the Internet of Things platform.
  13. 如权利要求12所述的终端,其中,所述终端还包括:The terminal of claim 12, wherein the terminal further comprises:
    备份模块,其设置为与所述可连接终端建立连接后,将指定文件发送给所述可连接终端进行备份,或者接收所述可连接终端发送的文件进行备份,将备份状态上传给所述物联网平台。a backup module, configured to send a specified file to the connectable terminal for backup after establishing a connection with the connectable terminal, or receive a file sent by the connectable terminal for backup, and upload a backup status to the object Networked platform.
  14. 如权利要求13所述的终端,其中,The terminal of claim 13 wherein
    所述备份模块还设置为向所述物联网平台发送查询备份请求,接收到所述物联网平台返回的有备份的备份响应后,与所述可连接终端建立连接,向所述可连接终端获取备份文件。The backup module is further configured to send a query backup request to the Internet of Things platform, and after receiving the backup backup response returned by the Internet of Things platform, establish a connection with the connectable terminal, and obtain the connection with the connectable terminal. backup file.
  15. 一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:A terminal comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor performs the following steps when executing the program:
    终端与物联网平台断开连接后,查找可接入所述物联网平台的目标终端;以及After the terminal is disconnected from the Internet of Things platform, searching for a target terminal that can access the IoT platform;
    若查找到所述目标终端,与所述目标终端建立连接,通过所述 目标终端的网络与所述物联网平台进行连接。And if the target terminal is found, establishing a connection with the target terminal, and connecting to the Internet of Things platform through a network of the target terminal.
  16. 一种连接物联网的方法,包括以下步骤:A method of connecting an Internet of Things, comprising the steps of:
    物联网平台轮询终端状态,查看超过指定时间未发送遗言信息的终端;The Internet of Things platform polls the terminal status and views terminals that have not sent the last message information at a specified time;
    查找可与所述终端连接的目标终端;以及Finding a target terminal connectable to the terminal;
    向所述目标终端发送所述终端的信息及恢复连接命令信息。Sending information of the terminal and restoring connection command information to the target terminal.
  17. 如权利要求16所述的方法,其中,所述物联网平台查看超过指定时间未发送遗言信息的终端的步骤之前,包括以下步骤:The method of claim 16, wherein the IoT platform includes the following steps before the step of viewing the terminal that has not sent the last message information at a specified time:
    所述物联网平台定期接收所述终端发送所述遗言信息,所述遗言信息包括以下各项中的至少一项:终端名称、终端IP、终端位置、当前时间和小区标识。The Internet of Things platform periodically receives the terminal to send the last message information, and the last word information includes at least one of the following: a terminal name, a terminal IP, a terminal location, a current time, and a cell identifier.
  18. 如权利要求17所述的方法,其中,所述物联网平台定期接收所述终端发送所述遗言信息的步骤之前,还包括以下步骤:The method of claim 17, wherein the IoT platform periodically receives the step of the terminal transmitting the last message, and further comprises the steps of:
    所述物联网平台与所述终端建立连接;以及The Internet of Things platform establishes a connection with the terminal;
    查找可与所述终端连接的一个或多个待连接终端,将所述待连接终端的信息发送给所述终端。Searching for one or more terminals to be connected that are connectable to the terminal, and transmitting information of the terminal to be connected to the terminal.
  19. 如权利要求18所述的方法,其中,所述物联网平台与所述终端建立连接的步骤之后,还包括以下步骤:The method of claim 18, wherein after the step of establishing the connection between the Internet of Things platform and the terminal, the method further comprises the steps of:
    所述物联网平台接收并记录所述终端的备份状态信息。The Internet of Things platform receives and records backup status information of the terminal.
  20. 一种物联网平台,包括:An Internet of Things platform, including:
    轮询模块,其设置为轮询终端状态,查看超过指定时间未发送遗言信息的终端;a polling module, configured to poll the terminal status, and view a terminal that has not sent the last message information at a specified time;
    查找模块,其设置为查找可与所述终端连接的目标终端;以及a lookup module configured to find a target terminal connectable to the terminal;
    发送模块,其设置为向所述目标终端发送所述终端的信息及恢复连接命令信息。And a sending module, configured to send information of the terminal and resume connection command information to the target terminal.
  21. 如权利要求20所述的物联网平台,其中,所述物联网平台还包括:The Internet of Things platform of claim 20, wherein the Internet of Things platform further comprises:
    接收模块,其设置为查看超过指定时间未发送遗言信息的终端之前,定期接收所述终端发送所述遗言信息,所述遗言信息包括以下各项中的至少一项:终端名称、终端IP、终端位置、当前时间和小区标识。a receiving module, configured to periodically receive the last message sent by the terminal before viewing the terminal that has not sent the last message information at a specified time, where the last message includes at least one of the following: a terminal name, a terminal IP, and a terminal Location, current time, and cell ID.
  22. 如权利要求21所述的物联网平台,其中,所述物联网平台还包括:The Internet of Things platform of claim 21, wherein the Internet of Things platform further comprises:
    连接模块,其设置为与所述终端建立连接;并且a connection module configured to establish a connection with the terminal; and
    所述查找模块还设置为查找可与所述终端连接的一个或多个待连接终端,将所述待连接终端的信息发送给所述终端。The searching module is further configured to search for one or more terminals to be connected that are connectable to the terminal, and send information about the terminal to be connected to the terminal.
  23. 如权利要求21所述的物联网平台,其中,The Internet of Things platform according to claim 21, wherein
    所述接收模块还设置为接收并记录所述终端的备份状态信息。The receiving module is further configured to receive and record backup status information of the terminal.
  24. 一种物联网平台,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:An Internet of Things platform includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor performs the following steps when executing the program:
    物联网平台轮询终端状态,查看超过指定时间未发送遗言信息的终端;The Internet of Things platform polls the terminal status and views terminals that have not sent the last message information at a specified time;
    查找可与所述终端连接的目标终端;以及Finding a target terminal connectable to the terminal;
    向所述目标终端发送所述终端的信息及恢复连接命令信息。Sending information of the terminal and restoring connection command information to the target terminal.
  25. 一种连接物联网的方法,包括以下步骤:A method of connecting an Internet of Things, comprising the steps of:
    接收到指定信息后,尝试与指定终端建立连接;以及After receiving the specified information, try to establish a connection with the specified terminal;
    与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。After establishing a connection with the designated terminal, the terminal is accepted to establish a connection with the Internet of Things platform through its own network, or forward information exchanged between the terminal and the Internet of Things platform.
  26. 如权利要求25所述的方法,其中,所述接收到指定信息的步骤包括以下步骤:The method of claim 25 wherein said step of receiving the specified information comprises the steps of:
    接收所述指定终端发送的包括与物联网平台断开连接状态的心跳信息,或者接收所述物联网平台发送的恢复连接命令信息。Receiving heartbeat information sent by the designated terminal, including a disconnected state from the Internet of Things platform, or receiving resume connection command information sent by the Internet of Things platform.
  27. 如权利要求25所述的方法,其中,所述尝试与指定终端建立连接的步骤包括以下步骤:The method of claim 25 wherein said step of attempting to establish a connection with a designated terminal comprises the steps of:
    若确定距所述指定终端在指定范围内,则开启近距离无线通信功能,搜寻所述指定终端。If it is determined that the specified terminal is within the specified range, the short-range wireless communication function is turned on to search for the designated terminal.
  28. 如权利要求25所述的方法,其中,所述与所述指定终端建立连接的步骤后,还包括以下步骤:The method of claim 25, wherein the step of establishing a connection with the designated terminal further comprises the steps of:
    接收到所述指定终端的指定文件后进行备份;或者Backing up after receiving the specified file of the specified terminal; or
    接收到所述指定终端的备份请求后,将所述指定终端对应的文件发送给所述指定终端。After receiving the backup request of the specified terminal, the file corresponding to the specified terminal is sent to the designated terminal.
  29. 一种终端,包括:A terminal comprising:
    连接模块,其设置为接收到指定信息后,尝试与指定终端建立连接;以及a connection module configured to, after receiving the specified information, attempt to establish a connection with the designated terminal;
    处理模块,其设置为与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。And a processing module, configured to: after establishing a connection with the designated terminal, accepting, by the terminal, establishing a connection with the Internet of Things platform through a network thereof, or forwarding information exchanged between the terminal and the Internet of Things platform.
  30. 如权利要求29所述的终端,其中,The terminal of claim 29, wherein
    所述连接模块设置为通过以下步骤来接收到指定信息:接收所述指定终端发送的包括与物联网平台断开连接状态的心跳信息,或者接收所述物联网平台发送的恢复连接命令信息。The connection module is configured to receive the specified information by receiving the heartbeat information sent by the designated terminal, including the disconnected state from the Internet of Things platform, or receiving the resume connection command information sent by the Internet of Things platform.
  31. 如权利要求29所述的终端,其中,The terminal of claim 29, wherein
    所述连接模块设置为通过以下步骤来尝试与指定终端建立连接:若确定距所述指定终端在指定范围内,则开启近距离无线通信功能,搜寻所述指定终端。The connection module is configured to attempt to establish a connection with the designated terminal by determining to open the short-range wireless communication function to search for the designated terminal if it is determined that the specified terminal is within the specified range.
  32. 如权利要求29所述的终端,其中,所述终端还包括:The terminal of claim 29, wherein the terminal further comprises:
    备份模块,其设置为接收到所述指定终端的指定文件后进行备份;或者接收到所述指定终端的备份请求后,将所述指定终端对应的文件发送给所述指定终端。And the backup module is configured to perform the backup after receiving the specified file of the specified terminal; or after receiving the backup request of the designated terminal, send the file corresponding to the designated terminal to the designated terminal.
  33. 一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:A terminal comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor performs the following steps when executing the program:
    接收到指定信息后,尝试与指定终端建立连接;以及After receiving the specified information, try to establish a connection with the specified terminal;
    与所述指定终端建立连接后,接受所述终端通过本身的网络与所述物联网平台建立连接,或者转发所述终端与所述物联网平台之间交互的信息。After establishing a connection with the designated terminal, the terminal is accepted to establish a connection with the Internet of Things platform through its own network, or forward information exchanged between the terminal and the Internet of Things platform.
PCT/CN2018/101663 2017-08-23 2018-08-22 Internet of things connecting method, terminal and internet of things platform WO2019037734A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710729942.7A CN109429204A (en) 2017-08-23 2017-08-23 A kind of method, terminal and platform of internet of things connecting Internet of Things
CN201710729942.7 2017-08-23

Publications (1)

Publication Number Publication Date
WO2019037734A1 true WO2019037734A1 (en) 2019-02-28

Family

ID=65439928

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101663 WO2019037734A1 (en) 2017-08-23 2018-08-22 Internet of things connecting method, terminal and internet of things platform

Country Status (2)

Country Link
CN (1) CN109429204A (en)
WO (1) WO2019037734A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101663911A (en) * 2006-12-28 2010-03-03 沃达方集团有限公司 Do not have the source mobile device of the network coverage and the communication means between the target device in preset time
US20160011910A1 (en) * 2014-07-14 2016-01-14 Samsung Electronics Co., Ltd. Method and Device for Executing a Function Between a Plurality of Electronic Devices
CN106209613A (en) * 2016-08-31 2016-12-07 上海宏力达信息技术股份有限公司 A kind of gateway based on LoRa wireless technology
CN106856415A (en) * 2015-12-08 2017-06-16 香港生产力促进局 The reconnection method that goes offline based on MOST fiber optic networks

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368873B (en) * 2011-09-16 2013-05-08 东南大学 Double-path connection M2M (machine-to-machine) system, terminal and connection method thereof
CN104639356B (en) * 2013-11-14 2018-08-14 中国移动通信集团公司 A kind of fault recovery method and equipment
CN105245574B (en) * 2015-09-09 2018-09-28 深圳市唯传科技有限公司 Internet of Things network control method and system based on mobile terminal multi-hop
US10715599B2 (en) * 2015-11-30 2020-07-14 Verizon Patent And Licensing, Inc. Internet of things (IoT) platform and application framework

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101663911A (en) * 2006-12-28 2010-03-03 沃达方集团有限公司 Do not have the source mobile device of the network coverage and the communication means between the target device in preset time
US20160011910A1 (en) * 2014-07-14 2016-01-14 Samsung Electronics Co., Ltd. Method and Device for Executing a Function Between a Plurality of Electronic Devices
CN106856415A (en) * 2015-12-08 2017-06-16 香港生产力促进局 The reconnection method that goes offline based on MOST fiber optic networks
CN106209613A (en) * 2016-08-31 2016-12-07 上海宏力达信息技术股份有限公司 A kind of gateway based on LoRa wireless technology

Also Published As

Publication number Publication date
CN109429204A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
US11921838B2 (en) Method and system of secure configuration of at least one electronic device
US10305729B2 (en) Systems and methods of providing an edge cloud storage and caching system operating over a local area network
WO2015090243A1 (en) Ip management method, client and server
US20160277237A1 (en) Network bootstrapping for a distributed storage system
US20210385649A1 (en) Secure beacon identity
CN110875857B (en) Method, device and system for reporting disconnected network state
US20210058376A1 (en) Anonymization and randomization of device identities
US8837283B2 (en) Mobile node assignement to a router in a WPAN stimulation
US8909600B2 (en) Information processing apparatus, information processing method, and storage medium
WO2020043006A1 (en) Terminal connection restoration method and apparatus
JP2006525729A (en) Ad hoc network, network device, and configuration management method thereof
US11140533B2 (en) Enable reliable and distributed M2M/IoT services
US11171868B2 (en) Systems and methods for centrally-assisted distributed hash table
WO2018050055A1 (en) Data request processing method and system, access device, and storage device therefor
WO2019037734A1 (en) Internet of things connecting method, terminal and internet of things platform
KR100772879B1 (en) Apparatus, system and method for executing discovery in network
JP2009206731A (en) Monitoring system, monitoring device, monitoring method, and program
CN114090342A (en) Storage disaster tolerance link management method, message execution node and storage control cluster
CN114143904A (en) CPE management method based on 5G fusion network shunt
JP6251210B2 (en) Terminal device, communication session establishment method, and program
Lombera et al. Peer-to-peer publication, search and retrieval using the Android mobile platform
CN112751907A (en) Information processing method, information processing apparatus, storage medium, and electronic apparatus
US20120124652A1 (en) Synchronization apparatus and method
US20220015087A1 (en) Method and system for resource management in blockchain based iot network
CN115190168A (en) Edge server management system and server cluster

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: 18848655

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18848655

Country of ref document: EP

Kind code of ref document: A1