Information processing method and apparatus, and storage medium
Patent Information
- Application Number
- CN202210635508.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-06-06
AI Technical Summary
In home or office LANs, the process of adding a gateway is cumbersome and inefficient, requiring users to manually select the target LAN, which complicates the process.
The first platform receives gateway and user information requests from clients, determines whether a local area network (LAN) exists, and sends the network information to the gateway to join or create the LAN, simplifying the process.
It enables gateways to automatically join designated local area networks, simplifying the process, improving joining efficiency, and ensuring that each user's information corresponds to a local area network.
Smart Images

Figure CN117240895B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart devices, and more particularly to an information processing method, apparatus, and storage medium. Background Technology
[0002] In existing technologies, when establishing a local area network (LAN) for a home, company, or other organization, there may be multiple LANs established for the same user information. If a user wants to add a gateway to a LAN under their user information, the user needs to specify a particular LAN and then add the gateway to that LAN, resulting in a cumbersome process. Furthermore, if the user does not specify a LAN, it is necessary to select the target LAN to which the gateway should join from among multiple LANs, leading to low operational efficiency. Summary of the Invention
[0003] This invention provides an information processing method, apparatus, and storage medium.
[0004] The technical solution of this invention is implemented as follows:
[0005] This invention provides an information processing method, executed by a first platform, the method comprising:
[0006] Receive request information sent by the client; the request information includes at least: gateway information of the gateway and user information, used to request to join the local area network established based on the user information;
[0007] Determine whether a local area network already exists based on the user information;
[0008] If a local area network (LAN) already exists based on the user information, then the network information of the LAN is sent to the gateway according to the gateway information; the network information is used by the gateway to join the LAN.
[0009] In the above scheme, determining whether a local area network based on the user information already exists further includes:
[0010] If no local area network (LAN) exists based on the user information, a LAN creation command is sent to the gateway according to the gateway information; wherein the LAN creation command includes: user information used by the gateway to establish the LAN.
[0011] The method in the above scheme further includes:
[0012] Receive the network access success message returned by the gateway after it has successfully joined the local area network;
[0013] Based on the successful network access information, a successful network access notification is sent to the client.
[0014] In the above scheme, sending a network access success notification to the client based on the network access success information includes:
[0015] Every fourth preset time interval, receive an inquiry request sent by the client;
[0016] Based on the inquiry request and the network access success information, a network access success notification is sent to the client.
[0017] The method in the above scheme further includes:
[0018] If no network access success message is received from the gateway within a first preset time period starting from the date the request information is received from the client, a network access failure message is sent to the client.
[0019] The method in the above scheme further includes:
[0020] The system receives a network connection request from the client, wherein the network connection request includes at least: the user information and user terminal information of the user terminal corresponding to the user information;
[0021] Based on the user information, a user terminal addition instruction, including the user terminal information, is sent to the gateway that joins the local area network established based on the user information; wherein, the user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information.
[0022] The method in the above scheme further includes:
[0023] At every second preset time interval, network topology information reported by the gateway is received; wherein, the network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information;
[0024] Based on the network topology information of the gateway and the first terminal information, monitor the status changes of the user terminal corresponding to the user information;
[0025] When the state of a user terminal corresponding to the user information changes, a status change notification message for the user terminal is sent to the client.
[0026] This invention also provides another information processing method, executed by a gateway, the method comprising:
[0027] Receive network information of the local area network sent by the first platform; the local area network is established based on the user information corresponding to the client that initiated the request information;
[0028] Based on the network information, join the local area network corresponding to the network information.
[0029] The method in the above scheme further includes:
[0030] If a local area network (LAN) creation instruction is received from the first platform, wherein the LAN creation instruction includes user information corresponding to the client that initiated the request, then the LAN is established based on the user information.
[0031] In the above scheme, after joining the local area network established based on the user information corresponding to the network information, the method further includes:
[0032] Send a network access success message to the first platform.
[0033] The method in the above scheme further includes:
[0034] Receive a user terminal addition instruction sent by the first platform; the user terminal addition instruction includes: user terminal information of the user terminal corresponding to the user information;
[0035] Based on the user terminal information, the user terminal corresponding to the user information is added to the local area network established based on the user information.
[0036] The method in the above scheme further includes:
[0037] At every second preset time interval, network topology information is reported to the first platform; the network topology information is used by the first platform to monitor the status changes of the user terminal corresponding to the user information;
[0038] The network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information.
[0039] In the above scheme, before reporting network topology information to the first platform at each second preset time interval, the method further includes:
[0040] Receive status information sent by the first user terminal every third preset time interval;
[0041] The network topology information is updated based on the first terminal information received from the first user terminal.
[0042] This invention also provides an information processing device applied to a first platform, the device comprising: a first receiving module, a determining module, and a first sending module;
[0043] The first receiving module is used to receive request information sent by the client; the request information includes at least: gateway information of the gateway and user information, and is used to request to join the local area network established based on the user information;
[0044] The determining module is used to determine whether a local area network has already been established based on the user information;
[0045] The first sending module is used to send network information of the local area network to the gateway according to the gateway information if a local area network already exists based on the user information; the network information is used by the gateway to join the local area network.
[0046] This invention also provides another information processing device, which is applied to a gateway and includes: a second receiving module and a joining module;
[0047] The second receiving module is used to receive network information of the local area network sent by the first platform; the local area network is established based on the user information corresponding to the client that initiated the request information;
[0048] The joining module is used to join the local area network corresponding to the network information according to the network information.
[0049] This invention also provides an information processing apparatus, the apparatus comprising: a processor and a memory for storing computer programs capable of running on the processor;
[0050] Wherein, when the processor runs the computer program, it executes the steps of any of the above information processing methods.
[0051] This invention also provides a computer storage medium, characterized in that the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, they can implement the steps of the above-described information processing method.
[0052] In this embodiment, after receiving a request from the client including gateway information and user information, it is determined whether a local area network (LAN) based on the user information already exists. If a LAN based on the user information already exists, the network information of the LAN is sent to the gateway according to the gateway information, so that the gateway can join the LAN. In this way, all gateways corresponding to the same user information are joined to the LANs established based on the user information. When adding a gateway to a LAN, there is no need to face the problem of choosing which LAN to join, thus realizing that one user information corresponds to only one LAN and simplifying the process. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0054] Figure 1 A flowchart illustrating the information processing method provided by the present invention;
[0055] Figure 2 A flowchart illustrating another information processing method provided by the present invention;
[0056] Figure 3 A flowchart illustrating another information processing method provided by the present invention;
[0057] Figure 4 This is a flowchart illustrating the Thread gateway network access process provided in an embodiment of the present invention.
[0058] Figure 5 This is a schematic diagram illustrating the process of creating a local area network according to an embodiment of the present invention;
[0059] Figure 6 This is a schematic diagram of the Thread smoke detector terminal network configuration process provided in an embodiment of the present invention;
[0060] Figure 7 This is a schematic diagram of the Thread smoke detector terminal state synchronization process provided in an embodiment of the present invention;
[0061] Figure 8 This is a schematic diagram of the structure of an information processing device provided in an embodiment of the present invention;
[0062] Figure 9 This is a schematic diagram of another information processing device provided in an embodiment of the present invention;
[0063] Figure 10This is a schematic diagram of the structure of another information processing device provided in an embodiment of the present invention;
[0064] Figure 11 This is a schematic diagram of another information processing device provided in an embodiment of the present invention. Detailed Implementation
[0065] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0066] Unless otherwise specified, the embodiments and features described herein can be combined arbitrarily. The steps illustrated in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.
[0068] Before providing a further detailed description of the embodiments of the present invention, the nouns and terms used in communication involved in the embodiments of the present invention will be explained.
[0069] This invention provides an information processing method. Figure 1 A flowchart illustrating the information processing method provided by this invention; as shown. Figure 1 As shown, the method is executed by a first platform and includes:
[0070] Step S101: Receive request information sent by the client; the request information includes at least: gateway information of the gateway and user information, used to request to join the local area network established based on the user information;
[0071] Step S102: Determine whether a local area network already exists based on the user information;
[0072] Step S103: If a local area network (LAN) already exists based on the user information, then according to the gateway information, the network information of the LAN is sent to the gateway; the network information is used by the gateway to join the LAN.
[0073] Specifically, in step S101, the client is an application in the terminal device, and the user information is the account information registered by the user when logging into the application; the gateway can be a wireless gateway, an Internet gateway, a LAN gateway, or a Zigbee gateway, Thread gateway, etc.
[0074] In this embodiment, the gateway is a Thread gateway. A gateway based on the Thread multi-threaded network protocol can achieve low-power data transmission, and the mesh-distributed network structure has no single point of failure and supports multi-threaded data transmission.
[0075] The gateway information can be the gateway ID corresponding to the Thread gateway, the gateway serial number (SN) information of the Thread gateway, or the gateway ID and gateway SN information of the Thread gateway; in this embodiment, the gateway information is the SN information of the Thread gateway.
[0076] The gateway SN information of the Thread gateway is a unique identifier generated by the Thread gateway when the device leaves the factory, and is attached to the Thread gateway device in the form of a first graphic identifier; the first graphic identifier can be a QR code or a barcode, etc.
[0077] The gateway ID of the Thread gateway is generated based on the gateway SN information when the client scans the first graphic identifier to activate the Thread gateway. Both the gateway ID and the gateway SN information are unique identifiers of the currently activated Thread gateway. The gateway ID generated after the Thread gateway is activated is associated with the user information corresponding to the client currently performing the activation operation.
[0078] It should be noted that before step S101, after the Thread gateway is powered on and reset, it connects to the first platform via the network, such as cellular mobile network: 5G, 4G, etc. or Ethernet, and registers the gateway information with the first platform.
[0079] In this embodiment, after the Thread gateway registers the gateway information with the first platform, the client scans the QR code on the Thread gateway device, parses the gateway SN information of the Thread gateway and generates a product ID, and sends a request message containing the user information corresponding to the client and the gateway SN information of the Thread gateway to the first platform.
[0080] It should be noted that after power-on reset, the Thread gateway sends its gateway SN information to the first platform for registration, so that the first platform can store the gateway information of the registered Thread gateways.
[0081] After receiving the Thread gateway's gateway SN information from the request information sent by the client, the first platform can quickly find the corresponding Thread gateway from the gateway information of registered Thread gateways stored in the first platform using the gateway SN information, and determine the Thread gateway corresponding to the gateway information sent by the client.
[0082] Specifically, in step S103, the network information may include the gateway address, subnet mask, etc. of the local area network established based on the user information.
[0083] Specifically, if the first platform determines that a local area network (LAN) has already been established based on the user information, it will find the Thread gateway to be added to the LAN from the stored LAN information of registered Thread gateways according to the gateway information of the Thread gateway, and send the network information of the LAN established based on the user information to the Thread gateway; the Thread gateway will then join the corresponding LAN according to the network information.
[0084] It should be noted that, in this embodiment, the local area network established based on the user information may include multiple Thread gateways. In this way, an architecture of mutual backup through multiple Thread gateways is realized at the communication level, which improves stability and ensures that services will not be interrupted due to a single point of failure of a gateway.
[0085] Furthermore, in step S103 above, determining whether a local area network (LAN) already exists based on the user information further includes: if no LAN exists based on the user information, then sending a LAN creation instruction to the gateway according to the gateway information; wherein the LAN creation instruction includes: user information used by the gateway to establish the LAN.
[0086] Specifically, if the first platform determines that no local area network (LAN) exists based on the user information, it sends a LAN creation command to the Thread gateway; the LAN creation command includes the user information; after receiving the LAN creation command from the first platform, the Thread gateway creates the LAN according to the user information and the gateway SN information of the Thread gateway, and sends a network creation success message to the first platform; here, the network creation success message includes the network information of the LAN and the user information corresponding to the LAN.
[0087] It should be noted that in this embodiment, after the first platform receives the request information including gateway information and user information sent by the client, when it determines that a local area network (LAN) has been established based on the user information, it sends the network information of the LAN to the gateway according to the gateway information, so that the gateway can join the LAN. In this way, all gateways corresponding to the same user information are joined to the LAN established based on the user information. When performing the operation of adding a gateway to a LAN, there is no need to face the problem of choosing which LAN to join, realizing that one user information corresponds to only one LAN, simplifying the process.
[0088] Furthermore, the method also includes: receiving network access success information returned by the gateway after successfully joining the local area network; and sending a network access success notification to the client based on the network access success information.
[0089] Furthermore, the method also includes: sending a network access success notification to the client based on the network access success information, comprising: receiving an inquiry request sent by the client every fourth preset time interval; and sending a network access success notification to the client based on the inquiry request and the network access success information.
[0090] Specifically, the fourth preset time can be a user-defined duration or a system default duration; there is no specific limitation here. For example, the fourth preset time can be 3 seconds, 5 seconds, or 10 seconds, etc.
[0091] Specifically, after sending the request information, the client sends an inquiry request to the first platform every fourth preset time interval; the inquiry request is used to determine whether the Thread gateway has successfully joined the local area network.
[0092] After receiving the network access success information returned by the Thread gateway after it has successfully joined the local area network, if the first platform receives an inquiry request from the client, it sends a network access success notification to the client based on the inquiry request and the network access success information. After receiving the network access success notification, the client indicates that the Thread gateway requested by the client has successfully joined the network and has been successfully bound to the user information.
[0093] Furthermore, the method also includes: if no network access success information is received from the gateway within a first preset time period starting from the date the request information is received from the client, then a network access failure prompt is sent to the client.
[0094] Specifically, in some embodiments, the first preset time period can be a duration dynamically customized by the user or a system default duration, without specific limitations; the first preset time period can be 60 seconds, 120 seconds, or 180 seconds, etc.
[0095] Specifically, within a first preset time period starting from the date of receiving the request information sent by the client, if the first platform does not receive the network access success information returned by the Thread gateway, then when it receives the inquiry request sent by the client, it sends a network access failure prompt to the client. After receiving the network access failure prompt, the client indicates that the Thread gateway requested by the client has failed to access the network and the Thread gateway binding is unsuccessful.
[0096] Furthermore, the method further includes: receiving a network connection request from a user terminal sent by the client, the network connection request including at least: the user information and user terminal information of the user terminal corresponding to the user information; according to the user information, sending a user terminal addition instruction including the user terminal information to the gateway joining the local area network established based on the user information; wherein, the user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information.
[0097] As people's living standards continue to improve, their demand for fire safety is also increasing. Based on this, smoke detectors have become more widespread and play a role in fire prevention and disaster reduction. Intelligent smoke detection systems can be broadly divided into two categories:
[0098] One type is a standalone smoke detector that connects directly to the platform via wireless networks such as WiFi, cellular mobile networks such as 5G or 4G, or narrowband Internet of Things (NB-IoT).
[0099] Another type is the smoke detector connected through a gateway. The smoke detector connects to the gateway through local protocols such as Zigbee and Bluetooth, and the gateway connects to the platform through network cable, WiFi, etc.
[0100] For standalone smoke detectors, the device connects directly to the platform, resulting in a relatively simple architecture and easier implementation. However, most smoke detectors currently rely on battery power, which has high power consumption requirements. For example, smoke detectors that connect to the platform via WiFi have high output power and high power consumption, severely limiting the capabilities of battery-powered smoke detectors.
[0101] For smoke detectors that use 4G or 2G to connect to the platform, they face the problem of high power consumption as well as increased costs due to the use of 4G or 2G IoT cards.
[0102] For smoke detectors that connect to the platform using NB-IoT, their heartbeat cycle is relatively long, generally exceeding 24 hours. This means that when a device goes offline abnormally, the platform needs a long time to detect it, resulting in untimely handling of device anomalies. Furthermore, when a large number of smoke detectors need to be deployed in the same area, smoke detectors connected to the platform using NB-IoT are prone to concurrent congestion.
[0103] For smoke detectors connected via a gateway, the detector first needs to connect to the gateway via local short-range protocols such as Zigbee or Bluetooth, and then the gateway connects to the platform via WiFi, wired Ethernet, etc. The smoke detector and the platform cannot directly exchange data; the gateway acts as an information terminal platform connecting the detector and the platform. This results in a complex logical architecture, with the gateway possessing many capabilities it doesn't actually have, capabilities that belong to the smoke detector. Furthermore, communication between the device and the platform depends on a single gateway; if the gateway fails, communication is interrupted, and services are disrupted.
[0104] Specifically, in this embodiment, the user terminal is a Thread smoke detector terminal; the attribute information of the Thread smoke detector terminal includes: the smoke detector terminal SN information of the Thread smoke detector terminal, the 64-bit Extended Unique Identifier (EUI64) of the Thread smoke detector terminal, and the version number information of the Thread smoke detector terminal, etc.
[0105] Here, the SN information of the Thread smoke detector terminal, the EUI64 of the Thread smoke detector terminal, and the version number information of the Thread smoke detector terminal are fixed identifiers generated at the time of device manufacturing, and are attached to the Thread smoke detector terminal device in a preset form of a second graphic identifier; the second graphic identifier can be a QR code or a barcode, etc.; the user can obtain the Thread smoke detector terminal information by scanning the second graphic identifier through the client.
[0106] The user terminal information is the Thread smoke detector terminal information, including: the EUI64 of the Thread smoke detector terminal; the smoke detector terminal based on the Thread multi-threaded network protocol has the characteristics of low power consumption, which solves the problems of high power consumption and high power of independent smoke detector devices.
[0107] Specifically, in this embodiment, the client scans the QR code on the Thread smoke detector terminal device, parses the Thread smoke detector terminal information from the obtained attribute information of the Thread smoke detector terminal, and sends a network connection request for the Thread smoke detector terminal containing the user information corresponding to the client and the Thread smoke detector terminal information corresponding to the user information to the first platform.
[0108] The first platform sends a Thread smoke detector addition instruction, including the Thread smoke detector terminal information, to all Thread gateways that have joined the local area network established based on the user information, according to the user information.
[0109] The Thread gateway, based on the Thread smoke detector terminal information in the Thread smoke detector terminal addition instruction, configures the Thread smoke detector terminal according to the Thread protocol, and adds the Thread smoke detector terminal corresponding to the user information to the local area network established based on the user information.
[0110] Furthermore, after the Thread gateway successfully adds the Thread smoke detector terminal to the local area network, the Thread smoke detector terminal is successfully configured for network use. The Thread smoke detector terminal connects to the first platform through the Thread gateway and registers its EUI64 with the first platform.
[0111] It should be noted that in this embodiment, the Thread smoke detector terminal joins the local area network by connecting to the network through the Thread gateway based on the Thread protocol, which simplifies the independent smoke detector device at the business level and reduces architectural complexity. After registering its own information with the first platform, the Thread smoke detector terminal communicates directly with the platform without the need for the gateway to forward information at the business level.
[0112] Furthermore, in some embodiments, after sending a network connection request for the Thread smoke detector terminal, the client sends a network connection result request for the Thread smoke detector terminal to the first platform every fifth preset time interval.
[0113] Here, the fifth preset time can be a user-defined duration or a system default duration; no specific limitation is made here. The fifth preset time can be 3 seconds, 5 seconds, or 10 seconds, etc.
[0114] In this embodiment, the client sends a network connection result request for the Thread smoke detector terminal to the first platform every 5 seconds. After receiving the Thread smoke detector terminal registration information, the first platform sends a Thread smoke detector terminal network configuration success notification to the client upon receiving the network connection result request from the client. After receiving the Thread smoke detector terminal network configuration success notification, the client indicates that the Thread smoke detector terminal requested by the client has successfully joined the local area network corresponding to the user information and has been successfully bound to the user information.
[0115] If the first platform does not receive the Thread smoke sensor information registered by the Thread smoke sensor within the sixth preset time period starting from the client sending the network connection request for the Thread smoke sensor terminal, then when it receives the network connection result request sent by the client, it sends a Thread smoke sensor network configuration failure prompt to the client, indicating that the network connection requested by the client for the Thread smoke sensor terminal has failed, that is, the network configuration has failed, and the Thread smoke sensor terminal has not been successfully bound to the user information.
[0116] Here, the sixth preset time period can be a user-adjustable custom duration or a system default duration; no specific limitation is made here. The sixth preset time period can be 60 seconds, 120 seconds, or 180 seconds, etc.
[0117] Furthermore, the method further includes: receiving network topology information reported by the gateway at second preset time intervals; wherein the network topology information includes: network topology structure information of the gateway and first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information; monitoring the status changes of the user terminals corresponding to the user information according to the network topology structure information of the gateway and the first terminal information; and sending a status change prompt message of the user terminal whose status has changed to the client when there is a status change among the user terminals corresponding to the user information.
[0118] Specifically, the second preset time period can be a user-adjustable custom duration or a system default duration; there is no specific limitation here. The second preset time period can be 30 seconds, 1 minute, or 2 minutes, etc.
[0119] The first user terminal is the online smoke sensor terminal among the Thread smoke sensor terminals corresponding to the user information, that is, the Thread smoke sensor terminal that has joined the local area network established based on the user information and is online; the Thread smoke sensor terminal that has joined the local area network established based on the user information but is offline is referred to as the second user terminal.
[0120] Specifically, in this embodiment, the first platform receives network topology information reported by each Thread gateway in the local area network corresponding to the user information every minute. The network topology information includes the network topology structure information of the Thread gateway and the smoke sensor terminal information of the Thread smoke sensor terminals that have joined the local area network through the Thread gateway and are online, i.e., the first terminal information. The first platform monitors the status changes of the Thread smoke sensor terminals corresponding to the user information based on the network topology structure information reported by the Thread gateway and the first terminal information received.
[0121] Based on the received first terminal information, update the online time of the first user terminal, and update the status of the second user terminal (excluding the first user terminal) among the Thread smoke detector terminals corresponding to the user information to offline status; when the status of a user terminal among the user terminals corresponding to the user information changes, send a status change notification message of the user terminal whose status has changed to the client.
[0122] It should be noted that, in this embodiment, by periodically updating the network topology of the Thread gateway, the online or offline status of the Thread smoke detector terminals connected to the first platform through the Thread gateway is updated in real time, which solves the problem that the heartbeat cycle of the smoke detector terminals is too long and cannot be resolved in time when the abnormal offline situation of the smoke detector terminals is not resolved. At the same time, by dynamically adjusting the periodic interval of the synchronization status between the Thread smoke detector terminals and the Thread gateway, the effectiveness of the synchronization of the online and offline status of the Thread smoke detector terminals is greatly improved while meeting the power consumption requirements.
[0123] This invention provides another information processing method applied to a gateway. Figure 2 A flowchart illustrating another information processing method provided by the present invention; as shown. Figure 2 As shown, the method includes:
[0124] Step S201: Receive network information of the local area network sent by the first platform; the local area network is established based on the user information corresponding to the client that initiated the request information;
[0125] Step S202: Join the local area network corresponding to the network information according to the network information.
[0126] Specifically, in this embodiment, the gateway is a Thread gateway; a gateway based on the Thread multi-threaded network protocol can achieve low-power data transmission, and the mesh-distributed network structure has no single point of failure and supports multi-threaded data transmission.
[0127] The network information may include the gateway address, subnet mask, etc. of the local area network established based on the user information.
[0128] Before step S201, after power-on reset, the Thread gateway connects to the first platform via a network, such as a cellular mobile network (5G, 4G, etc.) or Ethernet, and registers the gateway information with the first platform.
[0129] The gateway information can be the gateway ID corresponding to the Thread gateway, the gateway serial number (SN) information of the Thread gateway, or the gateway ID and gateway SN information of the Thread gateway; in this embodiment, the gateway information is the SN information of the Thread gateway.
[0130] The gateway SN information of the Thread gateway is a unique identifier generated by the Thread gateway when the device leaves the factory, and is attached to the Thread gateway device in the form of a first graphic identifier; the first graphic identifier can be a QR code or a barcode, etc.
[0131] The gateway ID of the Thread gateway is generated based on the SN information when the client scans the first graphic identifier to activate the Thread gateway; both the gateway ID and the gateway SN information are unique identifiers of the currently activated Thread gateway, and the gateway ID generated after the Thread gateway is activated is associated with the user information corresponding to the client currently performing the activation operation.
[0132] It should be noted that in this embodiment, the gateway establishes the network information of the local area network (LAN) based on the user information corresponding to the client that initiated the request information sent by the first platform, and then joins the LAN corresponding to the network information. This realizes that all gateways corresponding to the same user information are added to the LAN established based on the user information. When adding a gateway to a LAN, there is no need to face the problem of choosing which LAN to add the gateway to. This ensures that one user information corresponds to only one LAN, simplifying the process.
[0133] Furthermore, the method also includes: if a local area network (LAN) creation instruction is received from the first platform, wherein the LAN creation instruction includes user information corresponding to the client that initiated the request information, then a LAN is established based on the user information.
[0134] Specifically, if the Thread gateway receives a local area network creation instruction containing user information sent by the first platform, it creates a local area network based on the user information and the SN information of the Thread gateway.
[0135] Furthermore, after joining the local area network established based on the user information corresponding to the network information according to the network information, the method further includes: sending a network access success message to the first platform.
[0136] Furthermore, the method further includes: receiving a user terminal addition instruction sent by the first platform; the user terminal addition instruction includes: user terminal information of the user terminal corresponding to the user information; and adding the user terminal corresponding to the user information to the local area network established based on the user information according to the user terminal information.
[0137] Specifically, in this embodiment, the user terminal is a Thread smoke detector terminal; the user terminal information is the Thread smoke detector terminal information, including: the EUI64 of the Thread smoke detector terminal;
[0138] The attribute information of the Thread smoke detector terminal includes: the SN information of the Thread smoke detector terminal, the 64-bit Extended Unique Identifier (EUI64) of the Thread smoke detector terminal, and the version number information of the Thread smoke detector terminal, etc.
[0139] Here, the SN information, EUI64, and version number information of the Thread smoke detector terminal are fixed identifiers generated at the time of device manufacturing and attached to the Thread smoke detector terminal device in a preset form of a second graphic identifier; the second graphic identifier can be a QR code or a barcode, etc.; the user can obtain the Thread smoke detector terminal information by scanning the second graphic identifier through the client.
[0140] Specifically, all Thread gateways in the local area network receive the Thread smoke detector terminal addition instruction sent by the first platform; the Thread smoke detector terminal addition instruction includes: Thread smoke detector terminal information corresponding to the user information; the Thread gateways in the local area network configure the Thread smoke detector terminal according to the Thread protocol, and add the Thread smoke detector terminal corresponding to the user information to the local area network established based on the user information.
[0141] Furthermore, the method further includes: reporting network topology information to the first platform at second preset time intervals; the network topology information is used by the first platform to monitor the status changes of the user terminal corresponding to the user information; wherein, the network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information.
[0142] Specifically, the second preset time can be a user-adjustable custom duration or a system default duration; there is no specific limitation here. The second preset time period can be 30 seconds, 1 minute, or 2 minutes, etc.
[0143] Specifically, in this embodiment, each Thread gateway in the local area network corresponding to the user information reports network topology information to the first platform every minute. This network topology information includes the network topology structure information of the Thread gateway and the smoke sensor terminal information of the Thread smoke sensor terminals that have joined the local area network through the Thread gateway and are online, i.e., the first terminal information. Here, the network topology information is used by the first platform to monitor and update the status changes of the user terminal corresponding to the user information in real time. Based on the first terminal information in the received network topology information, the online time of the first user terminal is updated.
[0144] It should be noted that, in this embodiment, by periodically updating the network topology of the Thread gateway, the online or offline status of the Thread smoke detector terminals connected to the first platform through the Thread gateway is updated in real time, which solves the problem that the heartbeat cycle of the smoke detector terminals is too long and cannot be resolved in time when the abnormal offline situation of the smoke detector terminals is not resolved. At the same time, by dynamically adjusting the periodic interval of the synchronization status between the Thread smoke detector terminals and the Thread gateway, the effectiveness of the synchronization of the online and offline status of the Thread smoke detector terminals is greatly improved while meeting the power consumption requirements.
[0145] Furthermore, before reporting network topology information to the first platform at each second preset time interval, the method further includes: receiving status information sent by the first user terminal every third preset time interval; and updating the network topology information based on the first terminal information received from the first user terminal.
[0146] Specifically, the status information refers to whether the first user terminal is online or offline; the third preset time can be a user-adjustable custom duration or a system default duration, without specific limitations; the third preset time period can be 2 minutes, 5 minutes, or 6 minutes, etc.
[0147] Specifically, in this embodiment, the first user terminal sends its own status information to the Thread gateway every 5 minutes, that is, the Thread gateway receives the status information sent by the first user terminal every 5 minutes; if it does not send its own status information to the Thread gateway within 5 minutes, it indicates that the Thread smoke detector terminal is offline, and the offline smoke detector terminal is represented by the second user terminal; the Thread gateway updates the network topology information of the Thread gateway in the network topology information according to the status information of the first user terminal and the first terminal information.
[0148] This invention provides another information processing method, applied to a client. Figure 3 This is a flowchart illustrating another information processing method provided by the present invention; as follows: Figure 3 As shown, the method includes:
[0149] Step S301: Obtain gateway information and user information from the gateway;
[0150] Step S302: Generate request information based on the obtained user information and gateway information of the gateway;
[0151] Step S303: Send the request information to the first platform; the request information is used to request that the gateway be added to the local area network established based on the user information.
[0152] Specifically, the client is an application in the terminal device, and the user information is the account information registered by the user when logging into the application; the gateway information can be the gateway ID corresponding to the Thread gateway, or the gateway serial number (SN) information of the Thread gateway, or the gateway ID and gateway SN information of the Thread gateway; in this embodiment, the gateway information is the SN information of the Thread gateway.
[0153] Furthermore, in step S301 above, obtaining the gateway information of the gateway includes: scanning the first graphic identifier of the gateway and generating the gateway information of the gateway.
[0154] The gateway SN information of the Thread gateway is a unique identifier generated by the Thread gateway when the device leaves the factory, and is attached to the Thread gateway device in the form of a first graphic identifier; the first graphic identifier can be a QR code or a barcode, etc.
[0155] When the client scans the first graphic identifier to activate the Thread gateway, it can obtain the gateway SN information of the gateway.
[0156] Furthermore, the method further includes: sending an inquiry request to the first platform every fourth preset time interval; the inquiry request is used to determine whether the gateway has successfully joined the local area network; receiving a network access success message returned by the first platform based on the inquiry request, the network access success message indicating that the gateway has successfully joined the local area network.
[0157] Specifically, the fourth preset time can be a user-defined duration or a system default duration; there is no specific limitation here. For example, the fourth preset time can be 3 seconds, 5 seconds, or 10 seconds, etc.
[0158] Specifically, after sending the request information, the client sends an inquiry request to the first platform every fourth preset time interval; the inquiry request is used to determine whether the Thread gateway has successfully joined the local area network.
[0159] After receiving the network access success information returned by the Thread gateway after it has successfully joined the local area network, and after receiving the inquiry request sent by the client, the first platform sends a network access success notification to the client based on the inquiry request and the network access success information. The client then receives the network access success notification returned by the first platform based on the inquiry request. Upon receiving the network access success notification, it indicates that the Thread gateway requested by the client has successfully joined the network and has been successfully bound to the user information.
[0160] Furthermore, the method also includes: receiving a network access failure prompt returned by the first platform based on the inquiry request.
[0161] Specifically, if no successful network access notification is received from the first platform within the first preset time period starting from when the client sends the request information, the client will receive a network access failure notification returned by the first platform based on the query request. The network access failure notification indicates that the client's request for the Thread gateway has failed to access the network, and the Thread gateway binding is unsuccessful.
[0162] Here, the first preset time period can be a duration dynamically defined by the user or a system default duration; no specific limitation is made here. The first preset time period can be 60 seconds, 120 seconds, or 180 seconds, etc.
[0163] Furthermore, the method further includes: obtaining user terminal information corresponding to the user information; sending a network connection request for the user terminal to the first platform based on the user terminal information and the user information; the network connection request is used by the first platform to send a user terminal addition instruction to the gateway that has joined the local area network established based on the user information.
[0164] Furthermore, obtaining the user terminal information corresponding to the user information includes: scanning the second graphic identifier of the user terminal to obtain the user terminal information corresponding to the user information.
[0165] Specifically, the user terminal is a Thread smoke detector terminal; the user terminal information is the Thread smoke detector terminal information, including: the EUI64 of the Thread smoke detector terminal; the second graphic identifier can be a QR code, a barcode, etc.
[0166] The attribute information of the Thread smoke detector terminal includes: the SN information of the Thread smoke detector terminal, the 64-bit Extended Unique Identifier (EUI64) of the Thread smoke detector terminal, and the version number information of the Thread smoke detector terminal, etc.
[0167] Here, the SN information of the Thread smoke detector terminal, the EUI64 of the Thread smoke detector terminal, and the version number information of the Thread smoke detector terminal are fixed identifiers generated at the time of device manufacturing, and are attached to the Thread smoke detector terminal device in a preset form of a second graphic identifier; the second graphic identifier can be a QR code or a barcode, etc.; the user can obtain the Thread smoke detector terminal information by scanning the second graphic identifier through the client.
[0168] Specifically, in this embodiment, the client scans the QR code on the Thread smoke detector terminal device, parses the Thread smoke detector terminal information from the obtained attribute information of the Thread smoke detector terminal, and sends a network connection request for the Thread smoke detector terminal containing the user information corresponding to the client and the Thread smoke detector terminal information corresponding to the user information to the first platform; the network connection request is used by the first platform to send a Thread smoke detector terminal addition instruction including the Thread smoke detector terminal information to all Thread gateways that have joined the local area network established based on the user information, according to the user information.
[0169] Furthermore, in some embodiments, after sending a network connection request for the Thread smoke detector terminal, the client sends a network connection result request for the Thread smoke detector terminal to the first platform every fifth preset time interval.
[0170] Here, the fifth preset time can be a user-defined duration or a system default duration; no specific limitation is made here. The fifth preset time can be 3 seconds, 5 seconds, or 10 seconds, etc.
[0171] In this embodiment, the client sends a network connection result request for the Thread smoke detector terminal to the first platform every 5 seconds. If the first platform receives the Thread smoke detector terminal registration information, it sends a Thread smoke detector terminal network configuration success message to the client upon receiving the network connection result request from the client. The client receives the Thread smoke detector terminal network configuration success message from the first platform. The Thread smoke detector terminal network configuration success message indicates that the Thread smoke detector terminal requested by the client has successfully joined the local area network corresponding to the user information and has been successfully bound to the user information.
[0172] If, within the sixth preset time period starting from when the client sends the network connection request for the Thread smoke detector terminal, no network configuration success notification is received from the first platform, then a network configuration failure notification for the Thread smoke detector terminal is received from the first platform. The network configuration failure notification indicates that the network connection requested by the client for the Thread smoke detector terminal failed, that is, the network configuration failed, and the binding of the Thread smoke detector terminal to the user information was unsuccessful.
[0173] Here, the sixth preset time period can be a user-adjustable custom duration or a system default duration; no specific limitation is made here. The sixth preset time period can be 60 seconds, 120 seconds, or 180 seconds, etc.
[0174] Furthermore, the method also includes: receiving a status change notification message from the first platform indicating that the status of the user terminal has changed.
[0175] Specifically, when the first platform detects a change in the status of the Thread smoke detector terminal, such as changing from offline to online or from online to offline, it sends a status change notification message to the client indicating that the Thread smoke detector terminal has changed status; the client receives the status change notification message sent by the first platform indicating that the Thread smoke detector terminal has changed status.
[0176] In this way, the client can monitor the status of the Thread smoke detector in real time. When the smoke detector is found to be abnormally offline, it can resolve the abnormal situation in a timely manner. This solves the problem in the prior art where users cannot resolve the abnormal offline situation of the smoke detector in a timely manner because the heartbeat cycle of the smoke detector is too long.
[0177] The following describes the information processing method of this invention using a specific example. Figure 4 This is a flowchart illustrating the Thread gateway device binding process provided in an embodiment of the present invention. Figure 5 This is a schematic diagram illustrating the process of creating a local area network according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the Thread smoke detector terminal network configuration process provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the Thread smoke detector terminal state synchronization process provided in an embodiment of the present invention;
[0178] Step A: The client binds to the Thread gateway device on the first platform.
[0179] Step 1: The client sends a network access request to the Thread gateway to the first platform;
[0180] Step 1.1: The Thread gateway registers its gateway information with the first platform;
[0181] Specifically, the gateway information includes the gateway ID and gateway SN information of the Thread gateway. Here, the Thread gateway is connected to the platform via 5G, 4G, or wired Ethernet.
[0182] Step 1.2: The client obtains the gateway information of the Thread gateway;
[0183] Specifically, users scan the QR code on the Thread gateway device using a client to parse the Thread gateway's product ID and gateway SN information.
[0184] Step 1.3: The client sends a network access request to the Thread gateway to the first platform;
[0185] Specifically, the client sends a request to the first platform containing the user information corresponding to the client, the product ID of the Thread gateway, and the gateway SN information.
[0186] Step 2: The first platform determines whether the local area network corresponding to the user information exists.
[0187] Specifically, if a local area network corresponding to the user information exists, then proceed to Step 2.1; if no local area network corresponding to the user information exists, then proceed to Step 2.2.
[0188] Step 2.1: Based on the gateway information of the Thread gateway, send the dataset information of the local area network established based on the user information to the Thread gateway, and then execute Step 3;
[0189] Step 2.2: Send a command to the Thread gateway to create a local area network, including the user information, and then execute Step 4;
[0190] Step 3: The Thread gateway joins the local area network based on the received local area network dataset information and sends a network access success message to the first platform, then proceeds to Step 5.
[0191] Step 4: The Thread gateway creates a local area network (LAN) based on the received user information, its own product ID, and gateway SN information, and reports a network creation success message to the first platform, then proceeds to Step 6; here, the network creation success message includes the LAN's dataset information.
[0192] Step 5: The client determines whether the Thread gateway device has been successfully bound;
[0193] Step 5.1: After sending the Thread gateway's network access request, the client sends an inquiry request to the first platform for the Thread gateway every 5 seconds;
[0194] Step 5.2: After receiving the network access success information sent by the Thread gateway and the query request sent by the client, the first platform returns a network access success prompt to the client, indicating that the Thread gateway requested by the client has successfully entered the network and has been successfully bound to the user information;
[0195] Step 5.3: If the client does not receive a successful network access notification from the first platform within 180 seconds after sending the Thread gateway network access request, a network access failure notification is sent to the client. Upon receiving the network access failure notification, the client indicates that the Thread gateway network access request has failed and the Thread gateway binding has not been successful.
[0196] Step 6: The client determines whether the Thread gateway has successfully created a local area network based on the user information;
[0197] Step 6.1: After sending the Thread gateway's network access request, the client sends a local area network creation result request to the first platform every 5 seconds;
[0198] Step 6.2: After receiving the network creation success information sent by the Thread gateway and the LAN creation result request sent by the client, the first platform sends a LAN creation success prompt to the client, indicating that the LAN based on the user information has been successfully created;
[0199] Step 6.3: If the client does not receive a successful LAN creation notification from the first platform within 180 seconds after sending the Thread gateway's network access request, the client sends a LAN creation failure notification to the client. Upon receiving the LAN creation failure notification, the client indicates that the Thread gateway has failed to create the LAN based on the user information.
[0200] Step B: The client adds the Thread smoke detector terminal to the local area network established by the user information corresponding to the client for network configuration, and binds it with the user information.
[0201] Step 7: If the first platform determines that the user information corresponding to the client exists in a local area network established based on the user information, and the local area network includes at least one successfully bound Thread network, then proceed to Step 8.
[0202] Step 8: Set the Thread smoke detector terminal to network configuration mode, and have the client send a network connection request for the Thread smoke detector terminal device to the first platform.
[0203] Step 8.1: The client obtains the smoke sensor terminal information of the Thread smoke sensor terminal;
[0204] Specifically, the client scans the QR code on the Thread smoke detector terminal device to parse the Thread smoke detector terminal information; the Thread smoke detector terminal information includes at least: the product ID of the Thread smoke detector terminal, the SN information of the Thread smoke detector terminal, the 64-bit extended unique identifier of the Thread smoke detector terminal, and the version number information of the Thread smoke detector terminal.
[0205] Step 8.2: The client sends a network connection request for the Thread smoke detector terminal, which includes the user information corresponding to the client and the Thread smoke detector terminal information corresponding to the user information, to the first platform.
[0206] Step 9: The first platform sends a Thread smoke detector addition command, including the Thread smoke detector terminal information, to all Thread gateways that have joined the local area network established based on the user information.
[0207] Step 10: The Thread gateway adds the Thread smoke detector terminal to the local area network;
[0208] Specifically, the Thread gateway, based on the Thread smoke detector terminal information in the Thread smoke detector terminal addition instruction, configures the Thread smoke detector terminal according to the Thread protocol, adds the Thread smoke detector terminal corresponding to the user information to the local area network established based on the user information, and completes the network configuration operation.
[0209] Step 11: After the Thread gateway successfully adds the Thread smoke detector terminal to the local area network, the Thread smoke detector terminal connects to the first platform through the Thread gateway and registers the product ID and SN information of the Thread smoke detector terminal with the first platform.
[0210] Step 12: The client determines whether the Thread smoke detector terminal has been successfully configured with the network;
[0211] Step 12.1: After sending the network connection request of the Thread smoke detector terminal, the client sends the network connection result request of the Thread smoke detector terminal to the first platform every 5 seconds;
[0212] Step 12.2: After receiving the product ID and SN information of the Thread smoke detector terminal registered by the first platform, if the first platform receives a network connection result request sent by the client, it sends a Thread smoke detector terminal network configuration success prompt to the client; after the client receives the Thread smoke detector terminal network configuration success prompt, it indicates that the Thread smoke detector terminal requested by the client has successfully joined the local area network corresponding to the user information, that is, it has been successfully configured and successfully bound to the user information.
[0213] Step 12.3: If the first platform does not receive the registered product ID and SN information of the Thread smoke detector within the sixth preset time period starting from the client sending the network connection request of the Thread smoke detector terminal, then the platform sends a Thread smoke detector network configuration failure prompt to the client, indicating that the network connection requested by the client for the Thread smoke detector terminal has failed, that is, the network configuration has failed, and the binding of the Thread smoke detector terminal with the user information has failed.
[0214] Step C: Real-time synchronization of the Thread smoke detector terminal status.
[0215] Step 13: The Thread smoke detector terminal synchronizes its own status information with the Thread gateway at a certain period.
[0216] Specifically, the Thread smoke detector terminal that has joined the local area network through the Thread gateway and is online is represented by a first user terminal. The first user terminal sends its own status information to the Thread gateway every 5 minutes. If it does not send its own status information to the Thread gateway within 5 minutes, it indicates that the Thread smoke detector terminal is offline, and the smoke detector terminal in the offline state is represented by a second user terminal.
[0217] Step 14: The Thread gateway reports network topology information to the first platform every 1 minute;
[0218] Specifically, the network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information, that is, the Thread smoke detector terminal that has joined the local area network through the Thread gateway and is online.
[0219] Step 14.1: The Thread gateway updates the network topology information of the Thread gateway in the network topology information based on the received status information and smoke sensor information of the Thread smoke sensor terminals that have joined the local area network through the Thread gateway and are online.
[0220] Step 14.2: Every minute, the Thread gateway reports its network topology information and the smoke sensor terminal information of the Thread smoke sensor terminals that have joined the local area network through the Thread gateway and are online to the first platform.
[0221] Step 15: The first platform monitors the status changes of the Thread smoke detector terminal corresponding to the user information based on the network topology information reported by the Thread gateway.
[0222] Step 15.1: Based on the network topology information reported by the Thread gateway, update the online time of each Thread smoke detector terminal in the network topology information of the Thread gateway;
[0223] Specifically, the first platform iterates through the list of all Thread smoke detectors corresponding to the user information every minute, and updates the online time of the first user terminal in the smoke detector list according to the received first terminal information; if the Thread smoke detector does not update its online time for more than 5 minutes, it indicates that the Thread smoke detector is offline and has not sent its own status information to the Thread gateway.
[0224] Step 15.2: When the state of a user terminal corresponding to the user information changes, send a state change notification message of the user terminal to the client.
[0225] like Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of an information processing device provided in an embodiment of the present invention. The device is applied to a first platform and includes: a first receiving module 801, a determining module 802, and a first sending module 803.
[0226] The first receiving module 801 is used to receive request information sent by the client; the request information includes at least: gateway information of the gateway and user information, and is used to request to join the local area network established based on the user information;
[0227] The determining module 802 is used to determine whether a local area network has already been established based on the user information;
[0228] The sending module 803 is used to send network information of the local area network to the gateway according to the gateway information if a local area network already exists based on the user information; the network information is used by the gateway to join the local area network.
[0229] like Figure 9 As shown, Figure 9 This is a schematic diagram of another information processing device provided in an embodiment of the present invention. The device is applied to a gateway and includes: a second receiving module 901 and a joining module 902.
[0230] The second receiving module 901 is used to receive network information of the local area network sent by the first platform; the local area network is established based on the user information corresponding to the client that initiated the request information;
[0231] The joining module 902 is used to join the local area network corresponding to the network information according to the network information.
[0232] like Figure 10 As shown, Figure 10 This is a schematic diagram of another information processing device provided in an embodiment of the present invention. The device is applied to a client and includes: an acquisition module 1001, a generation module 1002, and a second sending module 1003.
[0233] The acquisition module 1001 is used to acquire gateway information and user information of the gateway;
[0234] The generation module 1002 is used to generate request information based on the obtained user information and gateway information of the gateway;
[0235] The second sending module 1003 is used to send the request information to the first platform; the request information is used to request that the gateway be added to the local area network established based on the user information.
[0236] To implement the method of the embodiments of the present invention, the embodiments of the present invention provide another structural schematic diagram of an information processing device, specifically, as shown in the figure. Figure 11 As shown, the device 110 includes a processor 1101 and a memory 1102 for storing computer programs that can run on the processor;
[0237] When the processor 1101 runs the computer program, it performs the following actions: receiving request information sent by a client; the request information includes at least gateway information and user information, used to request joining a local area network (LAN) established based on the user information; determining whether a LAN already exists based on the user information; if a LAN already exists based on the user information, sending the network information of the LAN to the gateway according to the gateway information; the network information is used by the gateway to join the LAN.
[0238] In one embodiment, the processor 1101 is further configured to, when running the computer program, execute: if no local area network (LAN) exists based on the user information, send a LAN creation instruction to the gateway according to the gateway information; wherein the LAN creation instruction includes: user information used by the gateway to establish the LAN.
[0239] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving network access success information returned by the gateway after successfully joining the local area network; and sending a network access success notification to the client based on the network access success information.
[0240] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: every fourth preset time interval, receive an inquiry request sent by the client; and based on the inquiry request and the network access success information, send a network access success notification to the client.
[0241] In one embodiment, the processor 1101 is further configured to, when running the computer program, execute: if no network access success information is received from the gateway within a first preset time period starting from the date the request information is received from the client, then send a network access failure prompt to the client.
[0242] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving a network connection request from a user terminal sent by the client, the network connection request including at least: the user information and user terminal information of the user terminal corresponding to the user information; and, based on the user information, sending a user terminal addition instruction including the user terminal information to the gateway joining the local area network established based on the user information; wherein the user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information.
[0243] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving network topology information reported by the gateway at second preset time intervals; wherein the network topology information includes: network topology structure information of the gateway and first terminal information of a first user terminal; the first user terminal is a user terminal that is online among the user terminals corresponding to the user information; monitoring the status changes of the user terminals corresponding to the user information according to the network topology structure information of the gateway and the first terminal information; and sending a status change prompt message of the user terminal whose status has changed to the client when there is a status change among the user terminals corresponding to the user information.
[0244] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving network information of a local area network sent by a first platform; establishing the local area network based on user information corresponding to the client that initiated the request information; and joining the local area network corresponding to the network information according to the network information.
[0245] In one embodiment, the processor 1101 is further configured to, when running the computer program, execute: if a local area network (LAN) creation instruction is received from the first platform, wherein the LAN creation instruction includes user information corresponding to the client that initiated the request information, then a LAN is established based on the user information.
[0246] In one embodiment, the processor 1101 is further configured to, when running the computer program, execute: sending network access success information to the first platform.
[0247] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving a user terminal addition instruction sent by the first platform; the user terminal addition instruction includes: user terminal information of the user terminal corresponding to the user information; and adding the user terminal corresponding to the user information to the local area network established based on the user information according to the user terminal information.
[0248] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: reporting network topology information to the first platform at second preset time intervals; the network topology information is used by the first platform to monitor the status changes of the user terminal corresponding to the user information; wherein, the network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information.
[0249] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving status information sent by the first user terminal every third preset time interval; and updating the network topology information based on the first terminal information received from the first user terminal.
[0250] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: obtaining gateway information and user information of the gateway; generating request information based on the obtained user information and gateway information of the gateway; sending the request information to the first platform; the request information is used to request that the gateway be added to the local area network established based on the user information.
[0251] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: scan the first graphic identifier of the gateway and generate gateway information of the gateway.
[0252] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: every fourth preset time interval, send an inquiry request to the first platform; the inquiry request is used to determine whether the gateway has successfully joined the local area network; receive a network access success message returned by the first platform based on the inquiry request, the network access success message indicating that the gateway has successfully joined the local area network.
[0253] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving a network access failure prompt returned by the first platform based on the query request.
[0254] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: obtain user terminal information corresponding to the user information; send a network connection request for the user terminal to the first platform based on the user terminal information and the user information; the network connection request is used by the first platform to send a user terminal addition instruction to the gateway that has joined the local area network established based on the user information.
[0255] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: scan the second graphic identifier of the user terminal to obtain user terminal information of the user terminal corresponding to the user information.
[0256] In one embodiment, the processor 1101 is further configured to, when running the computer program, perform the following: receiving a status change notification message from the first platform indicating a change in the status of a user terminal.
[0257] It should be noted that the information processing device and information processing method provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0258] Of course, in practical applications, such as Figure 11 As shown, the device 110 may further include at least one network interface 1103. The various components in the information processing device 110 are coupled together via a bus system 1104. It is understood that the bus system 1104 is used to implement communication between these components. In addition to a data bus, the bus system 1104 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 11 All buses are labeled as bus system 1104. The number of processors 1101 can be at least one. Network interface 1103 is used for wired or wireless communication between information processing device 110 and other devices.
[0259] The memory 1102 in this embodiment of the invention is used to store various types of data to support the operation of the information processing device 110.
[0260] The methods disclosed in the above embodiments of the present invention can be applied to processor 1101, or implemented by processor 1101. Processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 1101 or by instructions in the form of software. The processor 1101 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 1101 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present invention can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 1102. Processor 1101 reads the information in memory 1102 and combines its hardware to complete the steps of the aforementioned method.
[0261] In an exemplary embodiment, the information processing device 110 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0262] In an exemplary embodiment, the present invention also provides a computer-readable storage medium, such as a memory 1102 including a computer program, which can be executed by a processor 1101 of an information processing device 110 to complete the steps described in the aforementioned method.
[0263] Specifically, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it performs the following: receiving request information sent by a client; the request information includes at least: gateway information of a gateway and user information, used to request joining a local area network (LAN) established based on the user information; determining whether a LAN already exists based on the user information; if a LAN already exists based on the user information, sending network information of the LAN to the gateway according to the gateway information; the network information is used by the gateway to join the LAN.
[0264] In one embodiment, when the computer program is run by the processor, it executes the following: if no local area network (LAN) exists based on the user information, it sends a LAN creation instruction to the gateway according to the gateway information; wherein the LAN creation instruction includes: user information used by the gateway to establish the LAN.
[0265] In one embodiment, when the computer program is run by the processor, it performs the following: receiving network access success information returned by the gateway after successfully joining the local area network; and sending a network access success notification to the client based on the network access success information.
[0266] In one embodiment, when the computer program is run by the processor, it performs the following: every fourth preset time interval, it receives an inquiry request sent by the client; based on the inquiry request and the network access success information, it sends a network access success notification to the client.
[0267] In one embodiment, when the computer program is run by the processor, it performs the following: if no network access success information is received from the gateway within a first preset time period starting from the time the request information sent by the client is received, a network access failure prompt is sent to the client.
[0268] In one embodiment, when the computer program is run by the processor, it performs the following actions: receiving a network connection request from a user terminal sent by the client, the network connection request including at least: the user information and user terminal information of the user terminal corresponding to the user information; and, based on the user information, sending a user terminal addition instruction including the user terminal information to the gateway that has joined the local area network established based on the user information; wherein, the user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information.
[0269] In one embodiment, when the computer program is run by the processor, it performs the following: receiving network topology information reported by the gateway at second preset time intervals; wherein the network topology information includes: network topology structure information of the gateway and first terminal information of a first user terminal; the first user terminal is a user terminal that is online among the user terminals corresponding to the user information; monitoring the status changes of the user terminals corresponding to the user information according to the network topology structure information of the gateway and the first terminal information; and sending a status change prompt message of the user terminal whose status has changed to the client when there is a status change among the user terminals corresponding to the user information.
[0270] In one embodiment, when the computer program is run by the processor, it performs the following actions: receiving network information of a local area network sent by a first platform; establishing the local area network based on user information corresponding to the client that initiated the request information; and joining the local area network corresponding to the network information according to the network information.
[0271] In one embodiment, when the computer program is run by the processor, it performs the following: if a local area network (LAN) creation instruction is received from the first platform, wherein the LAN creation instruction includes user information corresponding to the client that initiated the request, then a LAN is established based on the user information.
[0272] In one embodiment, when the computer program is run by the processor, it executes the following: sending network access success information to the first platform.
[0273] In one embodiment, when the computer program is run by the processor, it performs the following: receiving a user terminal addition instruction sent by the first platform; the user terminal addition instruction includes: user terminal information of the user terminal corresponding to the user information; and adding the user terminal corresponding to the user information to the local area network established based on the user information according to the user terminal information.
[0274] In one embodiment, when the computer program is run by the processor, it performs the following: reporting network topology information to the first platform at second preset time intervals; the network topology information is used by the first platform to monitor the status changes of the user terminal corresponding to the user information; wherein, the network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information.
[0275] In one embodiment, when the computer program is run by the processor, it performs the following: receiving status information sent by the first user terminal every third preset time interval; and updating the network topology information based on the first terminal information received from the first user terminal.
[0276] In one embodiment, when the computer program is run by the processor, it performs the following: obtaining gateway information and user information of the gateway; generating request information based on the obtained user information and gateway information of the gateway; sending the request information to the first platform; the request information is used to request that the gateway be added to the local area network established based on the user information.
[0277] In one embodiment, when the computer program is run by the processor, it performs the following: scanning the first graphical identifier of the gateway and generating gateway information of the gateway.
[0278] In one embodiment, when the computer program is run by the processor, it performs the following: every fourth preset time interval, it sends an inquiry request to the first platform; the inquiry request is used to determine whether the gateway has successfully joined the local area network; and it receives a network access success message returned by the first platform based on the inquiry request, the network access success message indicating that the gateway has successfully joined the local area network.
[0279] In one embodiment, when the computer program is run by the processor, it performs the following: receiving a network access failure message returned by the first platform based on the query request.
[0280] In one embodiment, when the computer program is run by the processor, it performs the following: obtaining user terminal information corresponding to the user information; sending a network connection request for the user terminal to the first platform based on the user terminal information and the user information; the network connection request is used by the first platform to send a user terminal addition instruction to the gateway that has joined the local area network established based on the user information.
[0281] In one embodiment, when the computer program is run by the processor, it performs the following: scanning the second graphic identifier of the user terminal to obtain user terminal information corresponding to the user information.
[0282] In one embodiment, when the computer program is run by the processor, it performs the following: receiving a status change notification message from the first platform indicating a change in the status of the user terminal.
[0283] It should be noted that the computer-readable storage medium provided in the embodiments of the present invention may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a device including one or any combination of the above-mentioned memories.
[0284] The above description is merely an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of the present invention are included within the scope of protection of the present invention.
Claims
1. An information processing method, characterized in that, The method, executed by the first platform, includes: The gateway information of the gateway is registered; the gateway connects to the first platform via the network after power-on reset, and the gateway is a Thread gateway; Receive request information sent by the client; the request information includes at least: gateway information of the gateway and user information, used to request to join the local area network established based on the user information; Determine whether a local area network already exists based on the user information; If a local area network (LAN) already exists based on the user information, then the network information of the LAN is sent to the gateway according to the gateway information; the network information is used for the gateway to join the LAN, so that one user information corresponds to one LAN; wherein, the LAN established based on the user information includes multiple gateways, and the multiple gateways back each other up; The system receives a network connection request from the client for a user terminal, the network connection request including at least: the user information and user terminal information of the user terminal corresponding to the user information; wherein, the user terminal is a Thread smoke detector terminal. Based on the user information, a user terminal addition instruction, including the user terminal information, is sent to all gateways that have joined the local area network established based on the user information. The user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information. The user terminal joining the local area network indicates that the user terminal is connected to the first platform through the gateway, and the user terminal registers its terminal information with the first platform to communicate directly with the first platform.
2. The information processing method according to claim 1, characterized in that, The step of determining whether a local area network based on the user information already exists also includes: If no local area network (LAN) exists based on the user information, a LAN creation command is sent to the gateway according to the gateway information; wherein the LAN creation command includes: user information used by the gateway to establish the LAN.
3. The information processing method according to claim 1, characterized in that, The method further includes: Receive the network access success message returned by the gateway after it has successfully joined the local area network; Based on the successful network access information, a successful network access notification is sent to the client.
4. The information processing method according to claim 3, characterized in that, The step of sending a network access success notification to the client based on the network access success information includes: Every fourth preset time interval, receive an inquiry request sent by the client; Based on the inquiry request and the network access success information, a network access success notification is sent to the client.
5. The information processing method according to claim 3, characterized in that, The method further includes: If no network access success message is received from the gateway within a first preset time period starting from the date the request information is received from the client, a network access failure message is sent to the client.
6. The information processing method according to claim 1, characterized in that, The method further includes: At every second preset time interval, network topology information reported by the gateway is received; wherein, the network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information; Based on the network topology information of the gateway and the first terminal information, monitor the status changes of the user terminal corresponding to the user information; When the state of a user terminal corresponding to the user information changes, a status change notification message for the user terminal is sent to the client.
7. An information processing method, characterized in that, The method, executed by the gateway, includes: After power-on reset, the gateway connects to the first platform via the network and registers its gateway information with the first platform; the gateway is a Thread gateway. The system receives network information of a local area network (LAN) sent by a first platform; wherein the LAN is established based on user information corresponding to the client that initiated the request; one user information corresponds to one LAN; the LAN established based on the user information includes multiple gateways, and the multiple gateways back each other up; Based on the network information, join the local area network corresponding to the network information; The system receives a user terminal addition instruction sent by the first platform; the user terminal addition instruction includes: user terminal information of the user terminal corresponding to the user information; wherein, the user terminal is a Thread smoke detector terminal; According to the user terminal information, the user terminal corresponding to the user information is added to the local area network established based on the user information; wherein, the user terminal being added to the local area network indicates that the user terminal is connected to the first platform through the gateway, and the user terminal registers its terminal information with the first platform to communicate directly with the first platform.
8. The information processing method according to claim 7, characterized in that, The method further includes: If a local area network (LAN) creation instruction is received from the first platform, wherein the LAN creation instruction includes user information corresponding to the client that initiated the request, then a LAN is established based on the user information.
9. The information processing method according to claim 7, characterized in that, After joining the local area network established based on the user information corresponding to the network information according to the network information, the method further includes: Send a network access success message to the first platform.
10. The information processing method according to claim 7, characterized in that, The method further includes: At every second preset time interval, network topology information is reported to the first platform; the network topology information is used by the first platform to monitor the status changes of the user terminal corresponding to the user information; The network topology information includes: the network topology structure information of the gateway and the first terminal information of the first user terminal; the first user terminal is the user terminal that is online among the user terminals corresponding to the user information.
11. The information processing method according to claim 10, characterized in that, Before reporting network topology information to the first platform at each second preset time interval, the method further includes: Receive status information sent by the first user terminal every third preset time interval; The network topology information is updated based on the first terminal information received from the first user terminal.
12. An information processing method, characterized in that, The method, executed by the client, includes: obtaining gateway information and user information of the gateway; the gateway, after being powered on and reset, connects to the first platform via the network and registers its gateway information with the first platform; the gateway is a Thread gateway. Based on the obtained user information and gateway information, request information is generated; The request information is sent to the first platform; the request information is used to request that the gateway be added to the local area network established based on the user information; wherein, one user information corresponds to one local area network; the local area network established based on the user information includes multiple gateways, and the multiple gateways back each other up; Obtain user terminal information corresponding to the user information; wherein, the user terminal is a Thread smoke detector terminal; Based on the user terminal information and the user information, a network connection request for the user terminal is sent to the first platform. The network connection request is used by the first platform to send a user terminal addition instruction to all gateways that have joined the local area network established based on the user information. The user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information. The user terminal joining the local area network indicates that the user terminal is connected to the first platform through the gateway, and the user terminal registers its terminal information with the first platform to communicate directly with the first platform.
13. The information processing method according to claim 12, characterized in that, The process of obtaining gateway information includes: Scan the first graphic identifier of the gateway to generate the gateway information.
14. The information processing method according to claim 12, characterized in that, The method further includes: Every fourth preset time interval, an inquiry request is sent to the first platform; the inquiry request is used to determine whether the gateway has successfully joined the local area network. The gateway receives a network access success message returned by the first platform based on the query request, indicating that the gateway has successfully joined the local area network.
15. The information processing method according to claim 14, characterized in that, The method further includes: Receive the network access failure message returned by the first platform based on the query request.
16. The information processing method according to claim 12, characterized in that, The step of obtaining the user terminal information corresponding to the user information includes: Scan the second graphic identifier of the user terminal to obtain the user terminal information corresponding to the user information.
17. The information processing method according to claim 12, characterized in that, The method further includes: Receive status change notification information from the first platform indicating a change in the status of the user terminal.
18. An information processing device, characterized in that, The device is applied to a first platform and includes: a first receiving module, a determining module, a first sending module, a network connection request receiving module, and an add instruction sending module; The first receiving module is configured to: register the gateway information of the gateway; the gateway connects to the first platform via the network after power-on reset, and the gateway is a Thread gateway; receive request information sent by the client; the request information includes at least: the gateway information of the gateway and user information, for requesting to join the local area network established based on the user information; The determining module is used to determine whether a local area network has already been established based on the user information; The first sending module is used to send network information of the local area network to the gateway according to the gateway information if a local area network already exists based on the user information; the network information is used for the gateway to join the local area network so that one user information corresponds to one local area network; wherein, the local area network established based on the user information includes multiple gateways, and the multiple gateways back each other up; The network connection request receiving module is used to receive a network connection request from a user terminal sent by the client. The network connection request includes at least: the user information and user terminal information of the user terminal corresponding to the user information; wherein, the user terminal is a Thread smoke detector terminal. The add instruction sending module is used to send a user terminal add instruction, including the user terminal information, to all gateways that have joined the local area network established based on the user information, according to the user information; wherein, the user terminal add instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information; the user terminal joining the local area network indicates that the user terminal is connected to the first platform through the gateway, and the user terminal registers its terminal information with the first platform to communicate directly with the first platform.
19. An information processing device, characterized in that, The device is applied to a gateway, and the device includes: a second receiving module, a joining module, a joining instruction receiving module, and a user terminal joining module; The joining module is used to: connect to the first platform via the network after power-on reset, and register gateway information with the first platform; the gateway is a Thread gateway. The second receiving module is used to receive network information of the local area network sent by the first platform; wherein, the local area network is established based on the user information corresponding to the client that initiated the request information; one user information corresponds to one local area network; the local area network established based on the user information includes multiple gateways, and the multiple gateways back each other up; The joining module is further configured to join the local area network corresponding to the network information according to the network information; The add instruction receiving module is used to receive a user terminal add instruction sent by the first platform; the user terminal add instruction includes: user terminal information of the user terminal corresponding to the user information; wherein, the user terminal is a Thread smoke detector terminal; The user terminal network access module is used to add the user terminal corresponding to the user information to the local area network established based on the user information, according to the user terminal information; wherein, the user terminal joining the local area network indicates that the user terminal is connected to the first platform through the gateway, and the user terminal registers its terminal information with the first platform to communicate directly with the first platform.
20. An information processing device, characterized in that, The device is applied to a client and includes: an acquisition module, a generation module, a second sending module, a user terminal information acquisition module, and a network connection request sending module; The acquisition module is used to acquire gateway information and user information of the gateway; after power-on reset, the gateway connects to the first platform via the network and registers its gateway information with the first platform; the gateway is a Thread gateway. The generation module is used to generate request information based on the acquired user information and gateway information of the gateway; wherein, one user information corresponds to one local area network; the local area network established based on the user information includes multiple gateways, and the multiple gateways back each other up; The second sending module is used to send the request information to the first platform; the request information is used to request that the gateway be added to the local area network established based on the user information; The user terminal information acquisition module is used to acquire user terminal information of the user terminal corresponding to the user information; wherein, the user terminal is a Thread smoke detector terminal. The network connection request sending module is used to send a network connection request from the user terminal to the first platform based on the user terminal information and the user information. The network connection request is used by the first platform to send a user terminal addition instruction to all gateways that have joined the local area network established based on the user information. The user terminal addition instruction is used by the gateway to add the user terminal corresponding to the user information to the local area network established based on the user information. The user terminal joining the local area network indicates that the user terminal is connected to the first platform through the gateway, and the user terminal registers its terminal information with the first platform to communicate directly with the first platform.
21. An information processing device, characterized in that, The device includes: a processor and a memory for storing computer programs capable of running on the processor; When the processor is used to run the computer program, it performs the steps of any of the methods of claims 1 to 6, or the steps of any of the methods of claims 7 to 11, or the steps of any of the methods of claims 12 to 17.
22. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of any of the methods of claims 1 to 6, or when the computer program is executed by a processor, it implements the steps of any of the methods of claims 7 to 11, or performs the steps of any of the methods of claims 12 to 17.
Citation Information
Patent Citations
Logical network generation using primary gateway credentials
US20150280994A1
Network device source entity triggered device configuration setup
US20170289901A1
