A smart device networking method and device and readable storage medium

By introducing wireless access points (APs) as fog nodes into the IoT system, the problem of redundant configuration when adding or removing IoT devices in the park's intranet environment is solved, achieving efficient management of device access and real-time data monitoring, and improving device access efficiency.

CN117641511BActive Publication Date: 2026-11-20CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311634429.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2026-11-20
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

In existing technologies, when IoT devices are added or removed during use in a park, they need to be activated and configured one by one, resulting in repetitive work and affecting device access efficiency.

Method used

By introducing wireless access points (APs) as fog nodes into the IoT system, new device types can be identified and corresponding network policies and IP addresses can be returned. This supports protocol conversion for different devices, reduces requests to the server, and distributes computing pressure to the fog nodes.

Benefits of technology

It enables efficient management of device access in the smart park intranet environment, reduces server pressure, improves device access efficiency, and supports dynamic IP access and real-time data monitoring for different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117641511B_ABST
    Figure CN117641511B_ABST
Patent Text Reader

Abstract

The application provides a smart device networking method and device and a readable storage medium. Specifically, in response to receiving a registration packet request initiated by a new device, it is determined whether the new device belongs to a preset type of Internet of Things device. If the new device belongs to the preset type of Internet of Things device, a response packet is returned to the new device, the response packet including a network strategy corresponding to the preset type of Internet of Things device and an IP address corresponding to the new device. On the one hand, the application realizes dynamic IP access and real-time data supervision in a software manner, thereby providing a feasible solution for the management of Internet of Things devices in a smart park. On the other hand, the AP fog node scheme proposed by the application can reduce a large number of requests of a large number of Internet of Things devices to a server, reduce the pressure on the server, disperse the computing pressure to fog nodes, and thereby improve the device access efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a method, apparatus, and readable storage medium for networking smart devices. Background Technology

[0002] With the technological advancements in smart parks and IoT devices, their applications are becoming increasingly widespread, placing higher demands on network infrastructure. For network-connected smart IoT devices, intranet access is generally required to ensure data isolation and security. Simultaneously, IoT devices utilize publicly available IoT protocols to achieve real-time data interaction and data service management. Furthermore, different types of IoT devices need to be integrated with corresponding business platforms to achieve end-to-end, visualized management.

[0003] Because IoT devices in the park undergo dynamic changes such as additions or reductions during actual use, current technologies may require individual activation and configuration for batch device access, increasing repetitive work.

[0004] Therefore, improving the access efficiency of new devices when they are connected to the current wireless routing environment is a problem that needs to be solved. Summary of the Invention

[0005] The technical problem to be solved by this application is to address the above-mentioned shortcomings of the prior art by providing a method, apparatus and readable storage medium for networking smart devices, so as to solve the problems existing in the prior art.

[0006] In a first aspect, this application provides a method for networking smart devices, applied to a wireless access point (AP) in an Internet of Things (IoT) system. The IoT system further includes an IoT gateway platform communicating with the AP, and the AP is a fog node in the IoT system. The method includes:

[0007] S1. In response to receiving a registration request initiated by a new device, determine whether the new device belongs to a preset type of Internet of Things (IoT) device;

[0008] S2. If the new device belongs to the preset type of IoT device, then a response packet is returned to the new device. The response packet includes the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device.

[0009] In some embodiments, S1, determining whether the new device belongs to a preset type of IoT device includes:

[0010] S11. Obtain the device type code from the registration package request;

[0011] S12. Determine whether the device type code is consistent with the preset type code, wherein the preset type code is the type code corresponding to the IoT device of the preset type;

[0012] S13. If the device type code is consistent with the preset type code, then the new device is determined to belong to the IoT device of the preset type.

[0013] In some embodiments, it also includes:

[0014] S3. If the new device does not belong to the preset type of IoT device, the registration packet is forwarded to the IoT gateway platform for new device registration processing.

[0015] In some embodiments, it also includes:

[0016] S4. Receive new device registration information sent by the IoT gateway platform, and update the network-side access device information according to the new device registration information.

[0017] In some embodiments, the new device registration information includes the device type corresponding to the new device and the type code corresponding to the device type of the new device.

[0018] In some embodiments, it also includes:

[0019] S5. In response to receiving the policy update instruction, send the updated network policy to the new device.

[0020] In some embodiments, the IoT system further includes an application layer that communicates with the AP, and the policy update instruction is sent to the AP by the application layer.

[0021] Secondly, this application provides a smart device networking apparatus for use in a wireless access point (AP) of an Internet of Things (IoT) system. The IoT system further includes an IoT gateway platform communicating with the AP. The AP is a fog node in the IoT system. The apparatus includes:

[0022] The judgment module is configured to, in response to receiving a registration packet request initiated by a new device, determine whether the new device belongs to a preset type of Internet of Things device;

[0023] The processing module is configured to return a response packet to the new device if the new device belongs to the preset type of IoT device. The response packet includes the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device.

[0024] Thirdly, this application provides a smart device networking apparatus, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the smart device networking method described in the first aspect above.

[0025] Fourthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the intelligent device networking method described in the first aspect.

[0026] The intelligent device networking method, apparatus, and readable storage medium provided in this application, specifically, in response to receiving a registration packet request initiated by a new device, determines whether the new device belongs to a preset type of IoT device; if the new device belongs to the preset type of IoT device, a response packet is returned to the new device, the response packet including the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device. On one hand, this application addresses the requirements of smart park intranet environments and the situation where the business platform and IoT hardware devices have different protocols, supporting protocol conversion for different devices. That is, it does not require hardware modifications to a large number of devices, but instead achieves dynamic IP access and real-time data monitoring through software, thus providing a feasible solution for IoT device management in smart parks. On the other hand, the AP fog node scheme proposed in this application can reduce the large number of requests from a large number of IoT devices to the server when a new device accesses the current wireless routing environment, reducing server pressure and distributing some of the computing pressure to the fog nodes, thereby improving the overall system's device access efficiency. Attached Figure Description

[0027] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0028] Figure 1 This is a schematic diagram of the IoT system involved in this application;

[0029] Figure 2 A schematic diagram of a smart device networking method provided in an embodiment of this application;

[0030] Figure 3 Another schematic diagram of the intelligent device networking method provided in the embodiments of this application;

[0031] Figure 4 This is a schematic diagram of an intelligent device networking apparatus provided in an embodiment of this application;

[0032] Figure 5 Another schematic diagram of the intelligent device networking device provided in the embodiments of this application.

[0033] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0034] To enable those skilled in the art to better understand the technical solution of this application, the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0035] It is understood that the specific embodiments and accompanying drawings described herein are merely for explaining this application and are not intended to limit this application.

[0036] It is understood that, without conflict, the various embodiments and features in the embodiments of this application can be combined with each other.

[0037] It is understood that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, while parts unrelated to this application are not shown in the drawings.

[0038] It is understood that each unit or module involved in the embodiments of this application may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units or modules may be integrated into one entity structure.

[0039] It is understood that the terms "first," "second," etc., used in the embodiments of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0040] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of this application may occur in a different order than those marked in the accompanying drawings.

[0041] It is understood that the flowcharts and block diagrams of this application illustrate the possible architecture, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of this application. Each block in a flowchart or block diagram may represent a unit, module, program segment, or code, containing executable instructions for implementing the specified function. Furthermore, each block or combination of blocks in the block diagrams and flowcharts may be implemented using a hardware-based system to implement the specified function, or using a combination of hardware and computer instructions.

[0042] It is understood that the units and modules involved in the embodiments of this application can be implemented by software or by hardware. For example, the units and modules can be located in the processor.

[0043] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0044] To facilitate understanding, the Internet of Things (IoT) system involved in this application will first be explained.

[0045] Figure 1 This is a schematic diagram of the IoT system involved in this application, such as... Figure 1 As shown, for the smart power strip networking architecture based on the intranet environment, the smart power strip (i.e., smart device) only supports the CoAP (Constrained Application Protocol) protocol when it leaves the factory. The equipment management platform (Device Management, DM) in the data center supports the LwM2M (Lightweight M2M) protocol. Without modifying the smart power strip chip, the protocol conversion is performed by introducing an IoT gateway platform.

[0046] To enable the power strip to support the LwM2M protocol with the device management platform and business platform (intelligent workstation system), a set of object models needs to be designed for the power strip, that is, the field format requirements need to be specified, so as to realize the data interaction between the power strip and the IoT gateway. The protocol interaction process is shown in the table below.

[0047]

[0048]

[0049] For IoT gateway platforms, real-time data is managed by creating MQTT (Message Queuing Telemetry Transport) message queues. Data entering the MQTT Broker forms message queues, with different topics for normal and abnormal data. Data in the queues is parsed and reported according to the power strip's object model via the IDSLwM2M service component. Heartbeat data is directly reported to the device management platform, while other data (e.g., voltage, power, current, model, unique endpoint) requires waiting for the application layer to initiate a subscription or read action. Upon receiving a subscription instruction, data in the message queue is sequentially reported and persistently stored in the database. Furthermore, the power strip model includes an "executable" attribute field, indicating support for opening / closing the power strip.

[0050] For the smart power strip model (oma.lwm2m format), the object definitions are as follows:

[0051]

[0052] The resource definitions for the smart power strip model are as follows:

[0053]

[0054] In addition, this application also involves an intelligent workstation system, which interacts with the equipment management platform DM. The main processes include:

[0055] (1) When the system initializes or restarts, it actively reads the list of currently online devices and initiates a subscription operation for all devices;

[0056] (2) After subscription, the system obtains and stores real-time data from the topic_plug of the message queue, thereby calculating the details of electricity consumption in different time dimensions such as daily, 7-day, and monthly; among them, the data flow of the system-DM-IoT can be obtained directly through different MQTT topics, or the result can be returned by initiating an HTTP request.

[0057] (3) Static data of other power strips can be actively read by the system;

[0058] (4) For abnormal values ​​in real-time data, enter topic_exception.

[0059] For the aforementioned IoT system, once the initial batch of IoT devices has been configured and connected to the network, when new devices subsequently connect, dynamic access and seamless identification can be achieved by following the smart device networking method provided in the embodiments of this application.

[0060] Figure 2 This is a schematic diagram of the intelligent device networking method provided in an embodiment of this application. Figure 3 This is another schematic diagram of the intelligent device networking method provided in the embodiments of this application, as shown below. Figure 2 as well as Figure 3 As shown, this application provides a smart device networking method, which is applied to a wireless access point (AP) in an Internet of Things (IoT) system. The IoT system also includes an IoT gateway platform that communicates with the AP. The AP is a fog node in the IoT system. In this system architecture, the AP, as a fog node, has a certain computing power and can determine the data packet format and complete simple policy processing.

[0061] Specifically, a fog node refers to a node in fog computing, an extension of cloud computing. Fog computing is primarily used to manage data from sensors and edge devices, centralizing data, processing, and applications at the network edge, rather than storing everything in cloud data centers. Adding another layer of "fog"—the network edge layer—between the terminal devices and the cloud data center—such as a small server or router with storage, allows data that doesn't need to be stored in the cloud to be processed and stored directly at this layer. This significantly reduces the computing and storage pressure on the cloud, improves efficiency, increases transmission speed, and reduces latency.

[0062] refer to Figure 2 as well as Figure 3 The method includes:

[0063] S01. The new device is powered on and sends a registration packet request to the nearest AP.

[0064] S1. Upon receiving a registration request from a new device, the AP determines whether the new device belongs to a preset type of IoT device.

[0065] Optionally, in S1, the AP determines whether the new device belongs to a preset type of IoT device, including:

[0066] S11. Obtain the device type code from the registration package request;

[0067] S12. Determine whether the device type code is consistent with the preset type code, wherein the preset type code is the type code corresponding to the IoT device of the preset type;

[0068] S13. If the device type code is consistent with the preset type code, then the new device is determined to belong to the IoT device of the preset type.

[0069] Specifically, after receiving the registration packet, the AP checks the data packet format. If the device type code matches the preset type code, for example: device_type = x0001 (this value can be set by yourself, it is just an example), then the AP determines that the type of the newly connected device is a smart power strip.

[0070] S2. If the new device belongs to the preset type of IoT device, the AP returns a response packet to the new device. The response packet includes the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device.

[0071] Specifically, if the AP determines that the type of the newly connected device is a smart power strip, the AP will synchronize the network policy of the smart power strip for the new device and assign it an IP address.

[0072] Among them, dynamic IPs are plugged in to form an array of endpoint-IP-MAC mappings.

[0073] In some embodiments, the method further includes:

[0074] S3. If the new device does not belong to the preset type of IoT device, the AP will forward the registration packet to the IoT gateway platform for new device registration processing.

[0075] Specifically, the AP forwards the registration packet to the IoT gateway platform, which then executes the device's initial network access and registration process, i.e., data processing is completed on the IoT gateway platform.

[0076] In some embodiments, the method further includes:

[0077] S4.AP receives new device registration information sent by the IoT gateway platform and updates the network-side access device information based on the new device registration information.

[0078] Optionally, the new device registration information includes the device type corresponding to the new device and the type code corresponding to the device type of the new device.

[0079] Specifically, after executing the initial network access and registration process for the device, the IoT gateway platform synchronizes information such as different IoT device types and corresponding data packet formats and fields (including type codes) to the AP, which then updates the network-side access device information.

[0080] In some embodiments, the method further includes:

[0081] S5. In response to receiving the policy update instruction, send the updated network policy to the new device.

[0082] Optionally, the IoT system also includes an application layer (e.g., a smart workstation system) that communicates with the AP, and the policy update instruction is sent from the application layer to the AP.

[0083] Specifically, the intelligent workstation system can create / update device policies, such as scheduled tasks, and send the corresponding instructions to the AP. After receiving the instructions, the AP sends the updated network policy to the new device by broadcasting the update instructions, thereby completing the device policy update.

[0084] This application proposes a smart device networking method. On the one hand, considering the requirements of the smart park intranet environment and the different protocols of the business platform and IoT hardware devices, it can support protocol conversion for different devices. This means that it eliminates the need for hardware modifications to a large number of devices, instead enabling dynamic IP access and real-time data monitoring through software. This provides a feasible solution for IoT device management in smart parks. On the other hand, the AP fog node scheme proposed in this application reduces the number of requests from a large number of IoT devices to the server when new devices connect to the current wireless routing environment, reducing server load and distributing some of the computational burden to the fog nodes, thereby improving the overall system's device access efficiency.

[0085] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0086] Figure 4 This is a schematic diagram of the intelligent device networking device provided in the embodiments of this application, such as... Figure 4 As shown, this application provides a smart device networking device applied to a wireless access point (AP) in an Internet of Things (IoT) system. The IoT system further includes an IoT gateway platform communicating with the AP. The AP is a fog node in the IoT system. The device includes:

[0087] The judgment module 11 is configured to determine whether the new device belongs to a preset type of Internet of Things device in response to receiving a registration packet request initiated by a new device;

[0088] The processing module 12 is configured to return a response packet to the new device if the new device belongs to the preset type of IoT device. The response packet includes the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device.

[0089] This application proposes a smart device networking device. On the one hand, addressing the requirements of smart park intranet environments and the different protocols of business platforms and IoT hardware devices, it supports protocol conversion for different devices. This eliminates the need for extensive hardware modifications to numerous devices; instead, it enables dynamic IP access and real-time data monitoring through software, providing a feasible solution for IoT device management in smart parks. On the other hand, the AP fog node scheme proposed in this application reduces the number of requests from numerous IoT devices to the server when new devices connect to the current wireless routing environment, thus reducing server load and distributing some of the computational burden to the fog nodes, thereby improving the overall system's device access efficiency.

[0090] Regarding the limitations on the intelligent device networking device, please refer to the limitations on the intelligent device networking method in the above embodiments of this application, which will not be repeated here.

[0091] Figure 5 This is another schematic diagram of the intelligent device networking device provided in the embodiments of this application, as shown below. Figure 5 As shown, in some embodiments, this application provides a smart device networking apparatus, including a memory 22 and a processor 21. The memory stores a computer program, and the processor is configured to run the computer program to execute the smart device networking method in the above embodiments of this application.

[0092] The memory is connected to the processor. The memory can be flash memory, read-only memory or other types of memory. The processor can be a central processing unit or a microcontroller.

[0093] In some embodiments, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the smart device networking method in the above embodiments of this application.

[0094] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), DVD or other optical disc storage, cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.

[0095] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of this application, and this application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of this application, and these modifications and improvements are also considered to be within the scope of protection of this application.

Claims

1. A method for networking intelligent devices, characterized in that, A wireless access point (AP) is applied in an Internet of Things (IoT) system. The IoT system also includes an IoT gateway platform communicating with the AP. The AP is a fog node in the IoT system, and the fog node possesses computing power to determine data packet formats and perform policy processing. The method includes: S1. In response to receiving a registration packet request initiated by a new device, obtain the device type code from the registration packet request; determine whether the device type code is consistent with a preset type code, wherein the preset type code is the type code corresponding to the IoT device of the preset type; if the device type code is consistent with the preset type code, determine that the new device belongs to the IoT device of the preset type. S2. If the new device belongs to the preset type of IoT device, then return a response packet to the new device. The response packet includes the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device. S3. If the new device does not belong to the preset type of IoT device, the registration packet is forwarded to the IoT gateway platform for new device registration processing, and the IoT gateway platform executes the device's initial network access and registration process.

2. The intelligent device networking method according to claim 1, characterized in that, Also includes: S4. Receive new device registration information sent by the IoT gateway platform, and update the network-side access device information according to the new device registration information.

3. The intelligent device networking method according to claim 2, characterized in that, The new device registration information includes the device type corresponding to the new device and the type code corresponding to the device type of the new device.

4. The intelligent device networking method according to any one of claims 1-3, characterized in that, Also includes: S5. In response to receiving the policy update instruction, send the updated network policy to the new device.

5. The intelligent device networking method according to claim 4, characterized in that, The IoT system also includes an application layer that communicates with the AP, and the policy update command is sent to the AP by the application layer.

6. A smart device networking device, characterized in that, A wireless access point (AP) is used in an Internet of Things (IoT) system. The IoT system also includes an IoT gateway platform that communicates with the AP. The AP is a fog node in the IoT system, and the fog node has computing power to determine data packet formats and perform policy processing. The device includes: The judgment module is configured to, in response to receiving a registration packet request initiated by a new device, obtain a device type code from the registration packet request; determine whether the device type code is consistent with a preset type code, wherein the preset type code is the type code corresponding to an IoT device of the preset type; if the device type code is consistent with the preset type code, then determine that the new device belongs to the IoT device of the preset type. The processing module is configured to return a response packet to the new device if the new device belongs to the preset type of IoT device. The response packet includes the network policy corresponding to the preset type of IoT device and the IP address corresponding to the new device. The processing module is further configured to, if the new device does not belong to the preset type of IoT device, forward the registration packet to the IoT gateway platform for new device registration processing, and have the IoT gateway platform execute the device's initial network access and registration process.

7. A smart device networking device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to implement the intelligent device networking method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the intelligent device networking method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Access point and terminal access method

    CN102711275A

  • Registration method and device of Internet of Things equipment, communication equipment, core network equipment, storage medium and system

    CN116347591A