Method, system and device for realizing automatic networking based on Internet of Things, medium and product
By sending discovery messages between IoT devices and automatically updating roles, the cumbersome problem of traditional Mesh networking is solved, and automatic networking is realized, improving the convenience and flexibility of networking is improved.
Patent Information
- Application Number
- CN202510263832.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-06
AI Technical Summary
The traditional Mesh networking process is cumbersome, and users need to manually configure the device role and connection method, which limits the convenience and flexibility of networking.
By sending preset discovery messages between IoT devices, it is determined whether the received messages are received through the WAN interface and include identification fields, and the device role is automatically updated and networking is organized.
Automatic networking is realized, which improves the convenience and flexibility of the networking process, reduces user operation steps, and simplifies the networking configuration process.
Smart Images

Figure CN120110902A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to methods, systems, devices, media and products for realizing automatic networking based on the Internet of Things. Background Art
[0002] With the rapid development of IoT technology, EasyMesh (a standard developed by the Wi-Fi Alliance to connect AP devices from different manufacturers to build a multi-access point wireless network) has been widely used in various scenarios that require large-area wireless coverage due to its high reliability, high scalability, and easy deployment. In this network, the control role plays a core role in control and measurement, responsible for managing and coordinating multiple other proxy devices, thereby greatly improving the user's network experience. However, in the traditional Mesh networking process, users still need to manually configure the roles of the device, such as the control role and the proxy role, and network through network cable connection or pressing buttons. This process is not only cumbersome, but also limits the convenience and flexibility of networking, and the user experience needs to be further improved. Summary of the invention
[0003] The main purpose of this application is to provide a method, system, device, medium and product for automatic networking based on the Internet of Things, aiming to achieve automatic networking and improve the convenience and flexibility of the networking process.
[0004] To achieve the above objectives, the present application proposes a method for realizing automatic networking based on the Internet of Things, which is applied to a first network device and includes:
[0005] Sending a preset first discovery message to the second network device, and determining whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, wherein the second network device sends the second discovery message to the first network device;
[0006] If a second discovery message is received through the first wide area network interface within a preset time, detecting whether the second discovery message includes a preset identification field, wherein the identification field is a data packet including a type, a length and / or a value;
[0007] If the second discovery message includes an identification field, the role of the first network device is updated to a proxy role, and networking is performed with the second network device as a control role, wherein the physical connection of the wide area network port of the second network device is successful. If the first discovery message is not received through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within a preset time and the first discovery message does not include a preset identification field, the role of the second network device is updated to a control role; if the physical connection of the wide area network fails, an attempt will be made to use a wireless network card to connect to the wireless network of the second network device. If the wireless connection is successful, the wireless networking is maintained. If the wireless networking is not successful within the preset time, the second network device will be switched to a control role.
[0008] In one embodiment, after the step of determining whether the second discovery message sent by the second network device is received through the first wide area network interface within a preset time, the step includes:
[0009] If the second discovery message is not received through the first wide area network interface within the preset time, or if the second discovery message is received through the first wide area network interface within the preset time and the second discovery message does not include an identification field, the role of the first network device is updated to a control role, and a network is formed with a second network device with a proxy role, wherein if the second network device detects that the first discovery message includes an identification field, the role of the second network device is updated to a proxy role.
[0010] In one embodiment, before the step of sending a preset first discovery message to the second network device, the method further includes:
[0011] Generate a first original message, and update a preset identification field into the first original message to obtain a first update message, and use the first original message or the first update message as a first discovery message;
[0012] The first discovery message is sent to the second network device through the first wide area network interface according to a preset period.
[0013] In one embodiment, the second network device and the first network device are physically connected to each other, and the method for realizing automatic networking based on the Internet of Things includes:
[0014] Sending a preset second discovery message to the first network device, and determining whether the first discovery message sent by the first network device is received through the second wide area network interface within a preset time, wherein the first network device sends the first discovery message to the second network device;
[0015] If the second network device receives the first discovery message through the second wide area network interface within a preset time, detecting whether the first discovery message includes a preset identification field, wherein the identification field is a data packet including a type, a length and / or a value;
[0016] If the second network device is currently in a proxy role and has not received the first discovery message through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within a preset time and the first discovery message does not include an identification field, and wireless networking initiated to the first network device is unsuccessful, the role of the second network device is updated to a control role, and networking is performed with the first network device in a proxy role, wherein if the first network device detects that the second discovery message includes an identification field, the role of the first network device is updated to a proxy role.
[0017] In one embodiment, after the step of determining whether the first discovery message sent by the first network device is received through the second wide area network interface within a preset time, the step includes:
[0018] If the received first discovery message includes an identification field, the role of the second network device is updated to an agent role, and a network is formed with the first network device as a control role, wherein if the first network device does not receive the second discovery message through the first wide area network interface within a preset time, or if the second discovery message is received through the first wide area network interface within a preset time and the second discovery message does not include a preset identification field, the role of the first network device is updated to a control role.
[0019] In one embodiment, before the step of sending a preset second discovery message to the first network device, the step includes:
[0020] Generate a second original message, and update the preset identification field into the second original message to obtain a second update message, and use the second original message or the second update message as the second discovery message;
[0021] The second discovery message is sent to the first network device through the local area network interface according to a preset period.
[0022] In addition, to achieve the above-mentioned purpose, the present application implements an automatic networking system based on the Internet of Things, and the automatic networking system based on the Internet of Things includes a first network device and a second network device, and the first network device and the second network device are physically connected to each other:
[0023] A first network device, used for sending a preset first discovery message to a second network device, determining whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, and if the second discovery message is received through the first wide area network interface within the preset time, detecting whether the second discovery message includes a preset identification field, and if the second discovery message includes the identification field, updating the role of the first network device to an agent role, and networking with the second network device as a control role;
[0024] The second network device is used to send a second discovery message to the first network device. If the first discovery message is not received through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within the preset time and the first discovery message does not include a preset identification field, and the wireless networking initiated to the first network device is unsuccessful, the role of the second network device is updated to a control role.
[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a device for realizing automatic networking based on the Internet of Things. The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the method for realizing automatic networking based on the Internet of Things as described above.
[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a medium, which is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for realizing automatic networking based on the Internet of Things as described above are implemented.
[0027] In addition, to achieve the above-mentioned purpose, the present application also provides a product, which is a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, the steps of the method for realizing automatic networking based on the Internet of Things as described above are implemented.
[0028] One or more technical solutions proposed in this application have at least the following technical effects:
[0029] The present application is applied to a first network device, wherein the first network device and the second network device are physically connected to each other, and a preset first discovery message is sent to the second network device, and a second discovery message is received from the second network device, wherein the second network device sends the second discovery message to the first network device, and receives the first discovery message sent from the first network device, so that the device discovery information in the network can be discovered and processed in time, thereby improving the efficiency and flexibility of networking; judging whether the second discovery message is received through the first wide area network interface and contains a preset identification field, this design allows the network device to adaptively adjust the behavior according to the message content, thereby enhancing the compatibility and scalability of the network, and improving the intelligence level of networking; if the second discovery message is received through the first wide area network interface and contains the identification field, the role of the first network device is updated to the agent role, and networking is performed with the second network device which is the control role, wherein the second network device does not receive the first discovery message containing the identification field through the second wide area network interface within a preset time, and the role of the second network device is updated to the control role, and this transformation reduces user operations, simplifies the configuration process of networking, realizes role switching adaptation, thereby realizing automatic networking, and improving the convenience and flexibility of the networking process. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 This is a flow chart of Embodiment 1 of the method for realizing automatic networking based on the Internet of Things in this application;
[0033] Figure 2 This is a process diagram of Embodiment 2 of the method for realizing automatic networking based on the Internet of Things in this application;
[0034] Figure 3 This is a process diagram of Embodiment 3 of the method for realizing automatic networking based on the Internet of Things in this application;
[0035] Figure 4 This is a schematic diagram of the module structure of the automatic networking device based on the Internet of Things in the embodiment of the present application;
[0036] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the automatic networking method based on the Internet of Things in the embodiment of the present application.
[0037] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0038] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0039] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0040] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a terminal system, etc. The following takes the system as an example to illustrate this embodiment and the following embodiments.
[0041] Based on this, this embodiment provides a method for realizing automatic networking based on the Internet of Things. Figure 1 , Figure 1This is a flow chart of the automatic networking method based on the Internet of Things in this application, which is applied to a first network device. The first network device and the second network device are physically connected to each other. The automatic networking method based on the Internet of Things includes steps S10 to S30:
[0042] Step S10, sending a preset first discovery message to the second network device, and determining whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, wherein the second network device sends the second discovery message to the first network device;
[0043] Step S20, if the second discovery message is received through the first wide area network interface within the preset time, detecting whether the second discovery message includes a preset identification field, wherein the identification field is a data packet including a type, length and / or value;
[0044] Step S30, if the second discovery message includes an identification field, the role of the first network device is updated to a proxy role, and networking is performed with the second network device as a control role, wherein the physical connection of the wide area network port of the second network device is successful. If the first discovery message is not received through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within a preset time and the first discovery message does not include a preset identification field, the role of the second network device is updated to a control role; if the physical connection of the wide area network fails, an attempt will be made to use a wireless network card to connect to the wireless network of the second network device. If the wireless connection is successful, the wireless networking is maintained. If the wireless networking is not successful within the preset time, the second network device is switched to a control role.
[0045] It should be noted that the first network device and the second network device represent two key nodes in the network system, and they cooperate with each other in the networking process. The first network device is assigned a clear role identification, which is the control role, which means that it plays a leading role in networking and is responsible for managing and controlling the topology of the entire network. Correspondingly, the second network device is also initially set as the control role, but their role and subsequent changes need to be understood in conjunction with subsequent steps. The first network device and the second network device are physically connected to determine whether the discovery message is received from the wide area network port or the local area network port. If the discovery message is received by the local area network port, no processing will be performed. If it is received by the wide area network, the automatic networking mechanism will be triggered. The reason for the physical connection is to determine whether the network device needs to automatically switch roles through the local area network and wide area network ports. After the networking is successful, the wide area network port cable can be unplugged, and then it will automatically switch to wireless networking. The wide area network interface mentioned here is a physical or logical interface on the network device used to connect to an external wide area network. It is crucial in data transmission, especially in the initial stage of networking and communication. The identification field is a key parameter, which consists of three parts: type, length and value. These clear data structures enable the identification field to clearly express specific attributes or indication information in the data packet, providing a basis for network devices to identify and process messages. The first discovery message and the second discovery message are important message forms for communication and networking negotiation between network devices. The discovery message is essentially an IEEE1905 Discover message (a protocol discovery message). The first network device and the second network device have no difference in the content sent. The difference lies in which network port of the network device receives the discovery message, whether it is a local area network (LAN) port or a wide area network (WAN) port. If the discovery message is received by the LAN port, whether the message carries a TLV with a marking meaning, it will not affect the networking role switching; only when the WAN port receives the discovery message and the discovery message contains a TLV with a marking meaning, the role will be switched from control to proxy, and if the role is already a proxy, the current proxy role will be maintained (after the proxy role and the control role are successfully networked, the wireless network configuration and other information of the control role will be synchronized, which is equivalent to the expansion of the coverage of the wireless network, which is one of the meanings of networking).
[0046] During the networking process, the first network device first sends a preset first discovery message to the second network device, which is the beginning of the networking information exchange. The first discovery message is like a letter of introduction, which announces the existence of the first network device and its networking capabilities, status and other information to the second network device. Subsequently, after receiving the first discovery message, the second network device will generate and send a second discovery message to reply to the first network device. This behavior is similar to a handshake response, indicating that it has also received and understood the intention of the first network device and has joined the networking negotiation. While sending the second discovery message, the second network device is also waiting to receive the first discovery message sent by the first network device. This process is bidirectional, ensuring that both parties can perceive the existence of each other.
[0047] Next, the first network device will parse and judge the received second discovery message. It needs to check whether the message is received through the first wide area network interface and whether it contains a preset identification field. This judgment process is like verifying a secret code. Only when these two conditions are met, that is, the message is received from the wide area network interface and contains a specific identification field, will the first network device trigger the next action. If the conditions are met, the first network device will immediately update its role from the control role to the agent role, which is similar to a power transfer process. Then, it will network with the second network device that is still in the control role. In this networking process, the second network device did not receive the first discovery message containing the identification field through the second wide area network interface within the preset time (the specific time may vary depending on the system design), so it did not trigger the condition for role update and continued to maintain the control role. In this way, the two devices play the roles of controller and agent respectively, establish a stable networking structure, start to work together, share network resources, and provide seamless network coverage and services.
[0048] The design of this networking process is based on the interactive mechanism of network communication and the principle of dynamic role switching. In terms of communication interaction, network devices transmit the information required for networking by sending messages of specific structures. These messages pass through the WAN interface during transmission and follow the established communication protocol to ensure that data can be sent and received accurately. When the device receives the message, it will parse and judge it according to the preset rules and conditions, which involves the identification of the data packet structure and the interpretation of the content. The identification field, as the key information in the message, plays a role of distinction and identification. Its existence and specific content determine the role division and behavior triggering in the networking process.
[0049] The principle of dynamic role switching is the core of this process. Devices may be initially set to control roles, but by receiving messages with specific conditions, devices can automatically update their roles according to preset logic. This dynamic switching not only simplifies the networking configuration process, but also enhances the adaptability and flexibility of the network. For example, when two devices are connected through different interfaces, they can automatically negotiate and determine their respective roles without manual intervention. At the same time, this mechanism can also reduce user operation steps, improve network networking efficiency and user experience, and enable network devices to work together more intelligently in complex network environments.
[0050] For example, if the current role is Agent, and the WAN port and the uplink port lose physical connection at some point, (1) the Agent will give priority to using the wireless network interface to connect to the Controller's WIFI, i.e., switching from wired networking to wireless networking. (2) If the wireless networking is unsuccessful and no Discover (TLV with tag meaning) is received from the WAN port for more than 80 seconds, the Agent will automatically switch to the Controller role. At this time, if there are other Agents on the LAN port, the other Agents will re-network with the device that has switched from Agent to Controller. For example, in the connection of Controller01->Agent01->Agent02->Agent03, if Controller01 loses power, Agent01 will automatically switch to Controller02, as the manager role of the current networking Topology. Other Agents will not switch roles because they can still receive TLV from the WAN port.
[0051] For example, when a user needs to network two routers, the traditional method is to manually set one device as a controller and the other as a proxy device, and then connect and configure them via a network cable. However, using the networking method of this embodiment, the user only needs to connect the two routers via a network cable, and the devices will automatically interact with each other through discovery messages. According to the identification field in the message and the reception status of the wide area network interface, the roles are automatically assigned and the networking is completed, without the need for additional user operations, which greatly simplifies the networking process.
[0052] Furthermore, the role can be determined by the hardware address or other unique identifier, or different message formats and interaction logic can be used. For example, the serial number or physical address of the device can be used as an identifier to determine which device becomes the controller. However, this method may increase the complexity of device configuration and require additional processing when the device is replaced or expanded. This embodiment has greater flexibility and adaptability by extending the TLV (type-length-value) field in the discovery message and combining it with the interface type for judgment. For example, when adding new equipment manufacturers, as long as they follow the IEEE1905 protocol (an abstract layer protocol between the data link layer and the network layer in the seven-layer network model) and support the extension of the TLV field, they can be easily integrated into the existing networking system without changing the architecture and logic of the entire network.
[0053] Furthermore, the networking algorithm can be optimized. When the network topology changes, such as adding or removing devices, the system can automatically adjust the networking structure to ensure network stability and connectivity. In addition, by introducing load balancing and congestion control strategies, network performance is further improved, ensuring that every user can get a good network experience in high-density user access scenarios.
[0054] This embodiment is applied to a first network device, the first network device and the second network device are physically connected to each other, and a preset first discovery message is sent to the second network device, and a second discovery message is received from the second network device, wherein the second network device sends the second discovery message to the first network device, and receives the first discovery message sent from the first network device, which can timely discover and process device discovery information in the network, thereby improving the efficiency and flexibility of networking; it is determined whether the second discovery message is received through the first wide area network interface and contains a preset identification field. This design allows the network device to adaptively adjust the behavior according to the message content, thereby enhancing the compatibility and scalability of the network and improving the intelligence level of networking; if the second discovery message is received through the first wide area network interface and contains the identification field, the role of the first network device is updated to the agent role, and networking is performed with the second network device as the control role, wherein the second network device does not receive the first discovery message containing the identification field through the second wide area network interface within a preset time, and the role of the second network device is updated to the control role. This change reduces user operations, simplifies the configuration process of networking, realizes role switching adaptation, thereby realizing automatic networking, and improving the convenience and flexibility of the networking process.
[0055] In a feasible implementation manner, step S10 further includes step A10:
[0056] Step A10, if the second discovery message is not received through the first wide area network interface within the preset time, or if the second discovery message is received through the first wide area network interface within the preset time and the second discovery message does not include an identification field, the role of the first network device is updated to a control role, and networking is performed with a second network device as a proxy role, wherein if the second network device detects that the first discovery message includes an identification field, the role of the second network device is updated to a proxy role.
[0057] It should be noted that, in this embodiment, the preset time is a specific time interval used to determine whether the device receives a specific message within a specified time. The first wide area network interface is a specific interface on a network device for connecting to a wide area network (WAN). The identification field is a data packet field containing a type, length, and value (TLV) for identifying specific information. The second discovery message is a message used for discovery and communication between network devices. The first network device and the second network device are two devices participating in networking, and they can receive and send messages through the wide area network interface. The control role and the proxy role are two roles that a network device may play in the networking process. The control role is responsible for managing and controlling the networking process, and the proxy role is managed by the control role. When the first network device does not receive the second discovery message containing the identification field through the first wide area network interface within the preset time, it will update its role to the control role and network with the second network device. If the second network device receives the first discovery message containing the identification field through the second wide area network interface, it will update its role to the proxy role.
[0058] In this embodiment, the first network device and the second network device communicate through their respective wide area network interfaces. First, the first network device waits to receive the second discovery message from the second network device. If the first network device does not receive the second discovery message containing the identification field through the first wide area network interface within the preset time, it will determine that it should assume the control role. At this time, the first network device will update its role to the control role and start networking with the second network device. In this process, the first network device will send the first discovery message to the second network device to inform its role and networking intention. At the same time, the second network device receives the first discovery message sent by the first network device through the second wide area network interface. If the second network device receives the first discovery message containing the identification field within the preset time, it will determine that it should assume the proxy role. At this time, the second network device will update its role to the proxy role and network with the first network device. In this process, the second network device will synchronize the configuration information according to the instructions of the first network device to complete the networking process.
[0059] For example, in a home network environment, the user has two routers that need to be networked. The first router (first network device) waits to receive the second discovery message from the second router (second network device). If the message containing the identification field is not received within the preset time, the first router will automatically be set to the control role and network with the second router. After the second router receives the first discovery message from the first router, it will automatically be set to the proxy role to complete the networking process. This process does not require manual configuration by the user. The devices can automatically identify and switch roles to achieve rapid networking.
[0060] In practical applications, the networking process can be further optimized. For example, in a smart home scenario, there are many devices and they are widely distributed. By adding low-power communication modules such as Bluetooth to the devices, rapid discovery and networking between devices can be achieved. When the first network device does not receive the second discovery message containing the identification field through the first wide area network interface, it can simultaneously send a broadcast signal through the Bluetooth module to quickly discover the surrounding second network devices. After receiving the broadcast signal, the second network device can quickly respond through the low-power communication module to complete role switching and networking. In addition, environmental perception functions can be added to the device, such as using sensors to detect the signal strength and interference around the device, dynamically adjusting the networking strategy, and improving the stability and performance of the network.
[0061] This embodiment reduces the complexity of manual configuration by users and improves networking efficiency through automatic role switching and networking. Devices can quickly identify and work together, enhancing the adaptability and stability of the network. In practical applications, it can help users quickly build a network environment and improve user experience, and is particularly suitable for multi-device networking scenarios such as smart homes and office parks.
[0062] In a feasible implementation manner, before step S10, steps B10 to B20 are also included:
[0063] Step B10, generating a first original message, and updating a preset identification field into the first original message to obtain a first update message, and using the first original message or the first update message as a first discovery message;
[0064] Step B20: Send a first discovery message to the second network device through the first wide area network interface according to a preset period.
[0065] It should be noted that, in this embodiment, the first original message is an initial message generated by the network device, which contains basic network information and device status. The preset identification field is a field used to identify specific information, which consists of type, length and value (TLV), and is used to help the device identify and distinguish different message types or functions. By updating the preset identification field to the first original message, the first network device can generate a first discovery message, which not only contains the original network information, but also has an identification function. The first wide area network interface refers to the interface on the network device for connecting to the wide area network, which is an important channel for the device to communicate with the external network. Sending the first discovery message to the second network device through the first wide area network interface according to the preset period means that the network device will send the generated message to another network device through a specific interface at a predetermined time interval, thereby realizing information interaction and networking between devices. It is worth mentioning that the preset period here should be less than the preset time in step A10 to prevent an error in role conversion, thereby causing networking interruption.
[0066] The first network device first generates a first original message. This process generates a message containing basic network data based on the network configuration and status information inside the device. Then, by updating the preset identification field to the first original message, the first network device generates a first discovery message. Compared with the original message, this message adds specific identification information, which gives the message a special function and meaning. After generation, the first network device will send the first discovery message to the second network device through the first wide area network interface according to the preset period. The preset period here is a pre-set time interval. The network device will send messages regularly within this time interval to ensure the timely transmission of information and the connectivity of the network.
[0067] The message generation process involves the internal data processing and protocol stack operation of the network device. The device will generate a message containing network information according to its own hardware and software configuration and a specific network protocol. In this embodiment, the addition of the identification field is based on the IEEE1905.1 protocol, which is an abstract layer between the data link layer and the network layer in the seven-layer network model. It has the functions of ease of use, robustness, high throughput, multi-channel flow, load balancing, and strong compatibility. By adding an identification field to the message, the function of the protocol can be used to realize automatic discovery and networking of the device. The preset periodic sending mechanism is based on the reliability and real-time requirements of network communication. By periodically sending messages, it can be ensured that in the network environment, the devices can receive each other's signals in time to maintain the connectivity and stability of the network. This mechanism is similar to the heartbeat mechanism, which is used to detect the survival status of devices in the network and the connectivity of the network.
[0068] In practical applications, there may be other message generation and sending mechanisms. For example, an event-driven approach can be adopted, whereby messages are generated and sent only when network devices detect certain specific events, rather than sending them at a fixed period. This mechanism may reduce the occupancy of network resources, but may not be as good as a periodic sending mechanism in terms of network connectivity and real-time performance. In addition, there may be multiple variations in the way the identification field is added, such as an encrypted identification field or a dynamically generated identification field, to enhance the security and flexibility of the network. However, the scheme in this embodiment is a discovery message based on the IEEE1905 protocol, which ensures that the information interaction and networking process between devices can be carried out stably and reliably by adding a preset identification field to the message and sending it periodically. This scheme has good versatility and compatibility in most network environments.
[0069] In order to further optimize the message sending process in this embodiment, the sending period can be adjusted when the device is first started or the network topology changes significantly. Specifically, an adaptive period adjustment mechanism can be used to dynamically adjust the message sending period according to the actual state of the network and the connection quality between the devices. For example, when the device detects that the network connection is unstable or lost, the sending period can be shortened and the message sending frequency can be increased to restore the network connection and networking structure more quickly. When the network connection is stable and the networking is normal, the sending period can be appropriately extended to reduce the occupation of network resources. In addition, a message confirmation mechanism can also be introduced. When the second network device receives the first discovery message, it will send a confirmation message to the first network device. The first network device can adjust the subsequent message sending strategy according to the situation of the confirmation message. This mechanism can further improve the reliability and efficiency of the network. Through these optimization measures, the network device can send and receive messages more intelligently under different network environments, thereby improving the reliability and performance of the networking, while reducing the consumption of network resources.
[0070] This embodiment periodically sends the first discovery message containing the identification field to ensure that network devices can exchange information and switch roles in a timely manner, thereby achieving automatic networking. This not only improves the connectivity and stability of the network, but also simplifies the user's configuration process and improves the user experience. It is particularly suitable for scenarios that require rapid networking, such as smart homes and office parks.
[0071] In a feasible implementation manner, step S30 may include steps T10 to T20:
[0072] Step T10, receiving a networking command sent by the second network device;
[0073] Step T20, executing the networking command.
[0074] It should be noted that in the method for realizing automatic networking based on the Internet of Things described in this embodiment, the "second network device" is a device that establishes a physical connection with the first network device, and is responsible for sending networking commands during the networking process. The "networking command" is an information instruction used to instruct a device to perform a specific networking operation. When the first network device updates its role to an agent role, the second network device will generate and send a networking command. This networking command contains the necessary information required to complete the networking, such as network configuration parameters, connection methods, etc. After receiving the command, the first network device will parse it and perform corresponding operations, thereby realizing network connection and data interaction between the two devices.
[0075] In the process of realizing automatic networking based on the Internet of Things, the first step is that the first network device receives the networking command from the second network device. This process involves the second network device actively initiating communication and sending the networking command to the first network device through a physical connection channel. When the second network device decides to initiate networking, it generates a networking command, which may contain multiple parameters, such as network configuration files, security keys, etc. Then, the second network device encapsulates this command into a network data packet and sends it out through a pre-established physical connection (such as Ethernet cable, wireless radio frequency, etc.). The network interface of the first network device monitors the communication channel, and when a data packet is detected to have arrived, the network interface receives it and passes it to the device's operating system. After a series of data packet processing, including decoding and verification, the operating system finally passes the networking command to the networking management module of the first network device.
[0076] The next step is for the first network device to execute the networking command. After receiving the complete networking command, the networking management module of the first network device will parse its content. If the command contains network configuration parameters, such as network address, subnet mask, etc., the networking management module will update the network configuration of the device so that it can access the specified network. If the command contains security keys or authentication information, the networking management module will enable the corresponding security protocols, such as WPA2 (a security protocol) or TLS (a security protocol), to ensure the security of communication. In addition, the networking command may also involve establishing a specific network connection or data transmission channel. For example, if the purpose of networking is to share files or media streams, the networking management module will configure the device's file sharing service or streaming media service so that it can interact with the second network device.
[0077] By executing the networking command, the first network device and the second network device can automatically form a network. Assume that in a smart home environment, the first network device is a smart router and the second network device is a smart thermostat. As the second network device, the smart thermostat will send a networking command to the smart router, instructing it to join the home network and obtain network configuration information. The smart router receives and executes the command, assigns a network address to the smart thermostat, sets network parameters, and ensures that it can securely access the home network. In this way, users can control the smart thermostat through mobile phone applications or other network devices to remotely adjust the indoor temperature.
[0078] Furthermore, in terms of specific implementation methods, in order to improve the reliability and efficiency of networking, a retransmission mechanism and confirmation feedback mechanism for networking commands can be introduced. When the first network device receives a networking command, the command may be incomplete or erroneous due to communication interference, data packet loss, etc. Therefore, after sending the networking command, the second network device will wait for a confirmation response. If no confirmation is received within a preset time, the second network device will automatically retransmit the networking command. At the same time, after successfully receiving and parsing the networking command, the first network device will send a confirmation message to the second network device to ensure that both parties have a consistent understanding of the networking status.
[0079] In addition, networking commands can be encrypted and authenticated to enhance the security of the networking process. Using encryption algorithms to encrypt networking commands can prevent sensitive information (such as network configuration and security keys) from being stolen or tampered with during transmission. Using digital certificates or pre-shared keys for identity authentication can ensure that only legitimate devices can send and receive networking commands, thereby preventing unauthorized devices from accessing the network.
[0080] In this embodiment, by optimizing the reception and execution process of the networking command, the performance and security of the automatic networking method based on the Internet of Things can be improved. In the smart home system, this can not only simplify the configuration process of the device, but also enhance the security and availability of the home network, providing users with a more intelligent and convenient life experience.
[0081] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be repeated in the following. On this basis, the present embodiment provides a method for realizing automatic networking based on the Internet of Things, which is applied to a second network device, the second network device and the first network device are physically connected to each other, and the method for realizing automatic networking based on the Internet of Things includes steps C10 to C30:
[0082] Step C10, sending a preset second discovery message to the first network device, and determining whether the first discovery message sent by the first network device is received through the second wide area network interface within a preset time, wherein the first network device sends the first discovery message to the second network device;
[0083] Step C20, if the first discovery message is received through the second wide area network interface within a preset time, whether the first discovery message includes a preset identification field, wherein the identification field is a data packet including a type, length and / or value;
[0084] Step C30, if the first discovery message is not received through the second wide area network interface within the preset time, or if the first discovery message is received through the second wide area network interface within the preset time and the first discovery message does not include an identification field, the role of the second network device is updated to a control role, and networking is performed with the first network device which is a proxy role, wherein if the first network device detects that the second discovery message includes an identification field, the role of the first network device is updated to a proxy role.
[0085] Step C20 further includes step D10:
[0086] Step D10, if the received first discovery message includes an identification field, the role of the second network device is updated to an agent role, and networking is performed with the first network device as a control role, wherein if the first network device does not receive the second discovery message through the first wide area network interface within a preset time, or if the second discovery message is received through the first wide area network interface within a preset time and the second discovery message does not include a preset identification field, the role of the first network device is updated to a control role.
[0087] Before step C10, steps E10 to E20 are also included:
[0088] Step E10, generating a second original message, and updating a preset identification field into the second original message to obtain a second update message, and using the second original message or the second update message as a second discovery message;
[0089] Step E20: Send a second discovery message to the first network device through the local area network interface according to a preset period.
[0090] It should be noted that this embodiment is similar to the first embodiment and will not be described in detail here.
[0091] In a specific application scenario, such as a smart home system, the first network device can be a smart gateway, and the second network device can be a smart camera. Through the above-mentioned automatic networking process, the smart gateway and the smart camera can automatically establish a connection to form a smart home network, which is convenient for users to remotely monitor and manage. In order to optimize this process, it is possible to consider adding more device information to the discovery message, such as device type, device status, etc., so as to better identify and configure the device during the networking process. At the same time, the settings of the preset cycle and preset time can be optimized, and adjusted according to the actual network environment and device performance to improve the efficiency and stability of the networking.
[0092] For example, refer to Figure 2 ,exist Figure 2 In the example, there are router A (first network device) and router B (second network device). The LAN port of router A is physically connected to the WAN port of router B. Router A will send a discovery message to router B. Figure 3 When router B receives a discovery message, it will determine whether the discovery message comes from the WAN port. If it does not come from the WAN port, networking will not be triggered. If it comes from the WAN port, it will determine whether the discovery message carries an identification field. If it does not carry an identification field, networking will not be triggered. If it carries an identification field, it will automatically switch to the proxy role for networking.
[0093] Based on the first or second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first or second embodiment can refer to the above introduction, and will not be repeated in the following. Figure 4 This embodiment provides an automatic networking system based on the Internet of Things. The automatic networking system based on the Internet of Things includes a first network device and a second network device. The first network device and the second network device are physically connected to each other:
[0094] The first network device 10 is used to send a preset first discovery message to the second network device, determine whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, if the second discovery message is received through the first wide area network interface within the preset time, then detect whether the second discovery message includes a preset identification field, if the second discovery message includes the identification field, then update the role of the first network device to an agent role, and network with the second network device as a control role;
[0095] The second network device 20 is used to send a second discovery message to the first network device. If the first discovery message is not received through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within the preset time and the first discovery message does not include a preset identification field, the role of the second network device is updated to a control role.
[0096] The automatic networking system based on the Internet of Things provided by the present application adopts the automatic networking method based on the Internet of Things in the above-mentioned embodiment, which can realize automatic networking and improve the convenience and flexibility of the networking process. Compared with the prior art, the beneficial effects of the automatic networking device based on the Internet of Things provided by the present application are the same as the beneficial effects of the automatic networking method based on the Internet of Things provided by the above-mentioned embodiment, and other technical features in the automatic networking device based on the Internet of Things are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0097] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method of realizing automatic networking based on the Internet of Things in the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0098] The automatic networking device based on the Internet of Things provided by the present application adopts the automatic networking method based on the Internet of Things in the above-mentioned embodiment, which can realize automatic networking and improve the convenience and flexibility of the networking process. Compared with the prior art, the beneficial effects of the automatic networking device based on the Internet of Things provided by the present application are the same as the beneficial effects of the automatic networking method based on the Internet of Things provided by the above-mentioned embodiment, and other technical features in the automatic networking device based on the Internet of Things are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0099] The present application provides an automatic networking device based on the Internet of Things, and the automatic networking device based on the Internet of Things includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automatic networking method based on the Internet of Things in the above-mentioned embodiment one.
[0100] Reference below Figure 5 , which shows a schematic diagram of the structure of an automatic networking device based on the Internet of Things suitable for implementing the embodiment of the present application. The automatic networking device based on the Internet of Things in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5The automatic networking device based on the Internet of Things shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0101] like Figure 5 As shown, the automatic networking device based on the Internet of Things may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 or the program loaded from the storage device 1003 to the random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the automatic networking device based on the Internet of Things are also stored. The processing device 1001, the read-only memory 1002 and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the automatic networking device based on the Internet of Things to communicate with other devices wirelessly or wired to exchange data. Although the figure shows the automatic networking device based on the Internet of Things with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0102] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0103] The automatic networking device based on the Internet of Things provided by the present application adopts the automatic networking method based on the Internet of Things in the above-mentioned embodiment, which can realize automatic networking and improve the convenience and flexibility of the networking process. Compared with the prior art, the beneficial effects of the automatic networking device based on the Internet of Things provided by the present application are the same as the beneficial effects of the automatic networking method based on the Internet of Things provided by the above-mentioned embodiment, and the other technical features of the automatic networking device based on the Internet of Things are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0104] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0105] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0106] The present application provides a medium, which is a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for realizing automatic networking based on the Internet of Things in the above-mentioned embodiment.
[0107] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0108] The computer-readable storage medium may be included in the automatic networking device based on the Internet of Things; or may exist independently without being assembled into the automatic networking device based on the Internet of Things.
[0109] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the automatic networking device based on the Internet of Things, the automatic networking device based on the Internet of Things:
[0110] Sending a preset first discovery message to the second network device, and determining whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, wherein the second network device sends the second discovery message to the first network device;
[0111] If a second discovery message is received through the first wide area network interface within a preset time, detecting whether the second discovery message includes a preset identification field, wherein the identification field is a data packet including a type, a length and / or a value;
[0112] If the second discovery message includes an identification field, the role of the first network device is updated to an agent role, and a network is formed with the second network device as a control role, wherein if the second network device does not receive the first discovery message through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within a preset time and the first discovery message does not include a preset identification field, the role of the second network device is updated to a control role.
[0113] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0115] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0116] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for realizing automatic networking based on the Internet of Things, which can realize automatic networking and improve the convenience and flexibility of the networking process. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the method for realizing automatic networking based on the Internet of Things provided in the above-mentioned embodiment, and will not be repeated here.
[0117] The present application also provides a product, which is a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the above-mentioned method for realizing automatic networking based on the Internet of Things are implemented.
[0118] The computer program product provided by the present application can realize automatic networking and improve the convenience and flexibility of the networking process. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the method for realizing automatic networking based on the Internet of Things provided by the above embodiment, and will not be repeated here.
[0119] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for realizing automatic networking based on the Internet of Things, characterized in that: Applied to a first network device, the first network device and the second network device are physically connected to each other, and the method for realizing automatic networking based on the Internet of Things includes: Sending a preset first discovery message to the second network device, and determining whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, wherein the second network device sends the second discovery message to the first network device; If the second discovery message is received through the first wide area network interface within a preset time, detecting whether the second discovery message includes a preset identification field, wherein the identification field is a data packet including a type, a length and / or a value; If the second discovery message includes the identification field, the role of the first network device is updated to the proxy role, and networking is performed with the second network device as the control role, wherein the physical connection of the wide area network port of the second network device is successful. If the first discovery message is not received through the second wide area network interface within the preset time, or if the first discovery message is received through the second wide area network interface within the preset time and the first discovery message does not include the preset identification field, the role of the second network device is updated to the control role; if the physical connection of the wide area network fails, an attempt will be made to use the wireless network card to connect to the wireless network of the second network device. If the wireless connection is successful, the wireless networking is maintained. If the wireless networking is not successful within the preset time, the second network device is switched to the control role.
2. The method for realizing automatic networking based on the Internet of Things as claimed in claim 1, characterized in that: After the step of determining whether the second discovery message sent by the second network device is received through the first wide area network interface within a preset time, the following steps are included: If the second discovery message is not received through the first wide area network interface within the preset time, or if the second discovery message is received through the first wide area network interface within the preset time and the second discovery message does not include the identification field, the role of the first network device is updated to a control role, and networking is performed with the second network device which is a proxy role, wherein if the second network device detects that the first discovery message includes the identification field, the role of the second network device is updated to a proxy role.
3. The method for realizing automatic networking based on the Internet of Things as claimed in claim 1, characterized in that: Before the step of sending the preset first discovery message to the second network device, the method further includes: Generate a first original message, and update a preset identification field into the first original message to obtain a first update message, and use the first original message or the first update message as a first discovery message; The first discovery message is sent to the second network device through the first wide area network interface according to a preset period.
4. A method for realizing automatic networking based on the Internet of Things, characterized in that: Applied to a second network device, the second network device and the first network device are physically connected to each other, and the method for realizing automatic networking based on the Internet of Things includes: Sending a preset second discovery message to the first network device, and determining whether the first discovery message sent by the first network device is received through the second wide area network interface within a preset time, wherein the first network device sends the first discovery message to the second network device; If the second network device receives the first discovery message through the second wide area network interface within a preset time, detecting whether the first discovery message includes a preset identification field, wherein the identification field is a data packet including a type, a length and / or a value; If the second network device is currently in a proxy role and has not received the first discovery message through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within a preset time and the first discovery message does not include the identification field, and wireless networking initiated to the first network device is unsuccessful, the role of the second network device is updated to a control role, and networking is performed with the first network device in a proxy role, wherein if the first network device detects that the second discovery message includes the identification field, the role of the first network device is updated to a proxy role.
5. The method for realizing automatic networking based on the Internet of Things as claimed in claim 4, characterized in that: After the step of determining whether the first discovery message sent by the first network device is received through the second wide area network interface within a preset time, the following steps are included: If the first discovery message received includes the identification field, the role of the second network device is updated to an agent role, and networking is performed with the first network device as a control role, wherein if the first network device does not receive the second discovery message through the first wide area network interface within a preset time, or if the second discovery message is received through the first wide area network interface within a preset time and the second discovery message does not include a preset identification field, the role of the first network device is updated to a control role.
6. The method for realizing automatic networking based on the Internet of Things as claimed in claim 4, characterized in that: Before the step of sending a preset second discovery message to the first network device, the step includes: Generate a second original message, and update a preset identification field into the second original message to obtain a second update message, and use the second original message or the second update message as a second discovery message; The second discovery message is sent to the first network device through the local area network interface according to a preset period.
7. An automatic networking system based on the Internet of Things, the automatic networking system based on the Internet of Things comprising a first network device and a second network device, the first network device and the second network device are physically connected to each other: The first network device is used to send a preset first discovery message to the second network device, determine whether a second discovery message sent by the second network device is received through the first wide area network interface within a preset time, if the second discovery message is received through the first wide area network interface within the preset time, then detect whether the second discovery message includes a preset identification field, if the second discovery message includes the identification field, then update the role of the first network device to a proxy role, and network with the second network device with a control role; The second network device is used to send the second discovery message to the first network device. If the first discovery message is not received through the second wide area network interface within a preset time, or if the first discovery message is received through the second wide area network interface within the preset time, and the first discovery message does not include a preset identification field, and the wireless networking initiated to the first network device is unsuccessful, the role of the second network device is updated to a control role.
8. An automatic networking device based on the Internet of Things, characterized in that: The automatic networking device based on the Internet of Things includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automatic networking method based on the Internet of Things as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for realizing automatic networking based on the Internet of Things as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method for realizing automatic networking based on the Internet of Things as claimed in any one of claims 1 to 6 are implemented.