A networking method, device, equipment and computer storage medium
By analyzing and authenticating the data packets of node devices, trusted equipment and central equipment are automatically determined, and network connections are established, which solves the problem of cumbersome networking process of mobile terminal devices, realizes the instant discovery of the device and improves business Transmission efficiency and network performance.
Patent Information
- Application Number
- CN202211121857.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-09-15
AI Technical Summary
In the prior art, the networking process between mobile terminal devices is cumbersome and has low efficiency, and it is impossible to realize the discovery of the equipment and can be used, resulting in low service transmission efficiency.
By receiving data packets sent by the node device, analyzing and obtaining device information, authenticating and determining trusted devices, selecting central devices, and establishing a network connection with other node devices based on the central device to realize automatic networking.
It realizes the instant discovery of the device and is available without waiting for the connection process, which improves service transmission efficiency, saves time and costs, and thus improves network performance.
Smart Images

Figure CN115551124B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a networking method, apparatus, device, and computer storage medium. Background Art
[0002] A mesh network is a multi-node, decentralized, self-organizing wireless multi-hop communication network. Each device in the network is connected and communicates via a communication protocol. These devices are called nodes. This technology allows any node device within the same network to exchange data. This allows third-party applications (apps) to discover any node device in the network, allowing that node device to discover and establish connections with all other nodes in the network.
[0003] In related technologies, there are many types of mobile terminal devices, and near-field devices mainly include mobile phones, tablets, TVs, watches, bracelets, headphones and other terminal devices. Most of the communication scenarios between these near-field devices rely on users to actively initiate connections, and most of them establish point-to-point connections, which leads to a cumbersome networking process and low efficiency when business needs arise. Summary of the Invention
[0004] The present application proposes a networking method, apparatus, device and computer storage medium, which determine a group of trusted devices from a number of node devices to automatically form a network, so that the devices can be used as soon as they are discovered without waiting for the connection process, which can speed up business transmission efficiency and thus improve network performance.
[0005] To achieve the above objectives, the technical solution of this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a networking method, the method comprising:
[0007] Receive data messages sent by several node devices;
[0008] Parsing the data message to obtain device information of each of the plurality of node devices;
[0009] authenticating the plurality of node devices according to the device information to determine a group of trusted devices;
[0010] Determining a central device from the group of trusted devices based on the device information;
[0011] Based on the central device, a network connection is established with other node devices in the group of trusted devices.
[0012] In some embodiments, the method further comprises:
[0013] Collecting data from the plurality of node devices to determine device information of each of the plurality of node devices; wherein the device information includes at least role information, type information, and account information;
[0014] According to the device information, data messages of the respective node devices are constructed so that the respective node devices broadcast and send the data messages.
[0015] In some embodiments, authenticating the plurality of node devices based on the device information to determine a group of trusted devices includes:
[0016] Based on the device information, obtaining account information of each of the plurality of node devices;
[0017] The plurality of node devices are authenticated according to the account information, at least two node devices that are successfully authenticated are determined, and the at least two node devices that are successfully authenticated are used as the group of trusted devices.
[0018] In some embodiments, during the authentication process, the method further includes:
[0019] If the account information of at least two node devices is the same, it is determined that the authentication of the at least two node devices is successful; or,
[0020] If the account information of the at least two node devices all belongs to the same account group, it is determined that the authentication of the at least two node devices is successful.
[0021] In some embodiments, determining a central device in the group of trusted devices based on the device information includes:
[0022] Based on the device information, obtaining role information and type information of each of the plurality of node devices;
[0023] An election is conducted according to the role information and the type information, and the node device that is elected is used as the central device.
[0024] In some embodiments, establishing a network connection with other node devices in the group of trusted devices based on the central device includes:
[0025] Based on the central device, obtaining role information of other node devices in the group of trusted devices;
[0026] Determining a networking mode of the other node devices according to the role information of the other node devices;
[0027] According to the networking mode, a network connection is established between the central device and the other node devices.
[0028] In some embodiments, determining the networking mode of the other node devices according to the role information of the other node devices includes:
[0029] If the role information of the first node device is a rich-capability device, determining that the first node device serves as an intermediate node device to establish a WIFI connection with the second node device, and the second node device includes at least one of the following: the central device, a rich-capability device other than the first node device among the other node devices, and a light-capability device;
[0030] If the role information of the first node device is a light-capability device, determining that the first node device establishes a BLE connection with a third node device as an edge node device, and the third node device is the central device or a rich-capability device among the other node devices;
[0031] The first node device is any one of the other node devices.
[0032] In some embodiments, the method further comprises:
[0033] When one or more node devices in the trusted device scan a new node device other than the trusted device, reporting device information corresponding to the one or more node devices and the new node device to the central device;
[0034] Making a decision based on the reported device information by the central device to determine the target node device;
[0035] Establishing a network connection between the target node device and the new node device.
[0036] In some embodiments, the reported device information includes at least signal strength information, and the central device making a decision based on the reported device information to determine the target node device includes:
[0037] Based on the reported device information, screening out rich-capability devices from the one or more node devices;
[0038] If the number of the rich-capability device is one, use the rich-capability device as the target node device;
[0039] If there are multiple capability-rich devices, a target capability-rich device closest to the new node device is determined from the multiple capability-rich devices according to the signal strength information of the capability-rich devices, and the target capability-rich device is used as the target node device.
[0040] In a second aspect, an embodiment of the present application provides a networking device, characterized in that the networking device includes a receiving unit, a parsing unit, an authentication unit, a determination unit, and a connection unit, wherein:
[0041] The receiving unit is configured to receive data messages sent by a plurality of node devices;
[0042] The parsing unit is configured to parse the data message to obtain device information of each of the plurality of node devices;
[0043] The authentication unit is configured to authenticate the plurality of node devices according to the device information to determine a group of trusted devices;
[0044] The determining unit is configured to determine a central device in the group of trusted devices based on the device information;
[0045] The connection unit is configured to establish a network connection with other node devices in the group of trusted devices based on the central device.
[0046] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a memory and a processor; wherein,
[0047] The memory is used to store a computer program that can be run on the processor;
[0048] The processor is configured to execute the method according to the first aspect when running the computer program.
[0049] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a networking program, which implements the method described in the first aspect when the networking program is executed by at least one processor.
[0050] The networking method, apparatus, device, and computer storage medium provided in the embodiments of the present application receive data packets sent by a plurality of node devices; parse and process the data packets to obtain device information of each of the plurality of node devices; authenticate the plurality of node devices based on the device information to determine a group of trusted devices; determine a central device from the group of trusted devices based on the device information; and establish a network connection with other node devices in the group of trusted devices based on the central device. In this way, a group of trusted devices can be determined from a plurality of node devices to automatically form a network. When business transmission is required, the devices can be discovered and used immediately without waiting for the connection process, which can speed up business transmission efficiency, save time and cost, and thus improve network performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1A flowchart of a networking method provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of an application scenario of a networking method provided in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of a broadcast process of a networking method provided in an embodiment of the present application;
[0054] Figure 4 A detailed flowchart of a networking method provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of device topology connections for a networking method provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of a new device topology connection for a networking method provided in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of a new device connection process for a networking method provided in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of the structure of a networking device provided in an embodiment of the present application;
[0059] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0060] Figure 10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0063] In the following description, reference is made to "some embodiments," which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first, second, and third" in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first, second, and third" may be interchanged in a specific order or sequential order where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0064] As you can understand, Mesh is a multi-node, centerless, self-organizing wireless multi-hop communication network. Each device in a Bluetooth Mesh network communicates via a Bluetooth Low Energy (BLE) connection, and these devices are called node devices. Each node device can send and receive messages, and messages can be relayed between node devices, allowing messages to be transmitted farther than the normal transmission distance of radio waves. In short, Bluetooth Mesh networking is a technology that allows any Bluetooth device within the same network to exchange data. In this way, as long as the app can discover any node device in the network, the node device can discover other node devices in the network, establish connections with any node device, and control them.
[0065] In the relevant technology, Bluetooth Mesh networking only supports Bluetooth Low Energy (BLE) networking and does not support heterogeneous integration of networks with different communication protocols. Bluetooth Mesh is a network feature designed for large-scale node communication, with target applications such as building automation, sensor networks, and more IoT (Internet of Things) applications. Furthermore, Bluetooth Mesh development is currently relatively difficult, primarily due to the incomplete functionality of the Bluetooth Mesh protocol stack available on the market. For example, most vendors have not yet fully implemented Bluetooth Mesh's low-power nodes and friend nodes. Furthermore, Bluetooth Mesh features the ability to configure and deploy the mesh network via a mobile phone, but most vendors have yet to release corresponding configuration apps or libraries. Without a fully developed Bluetooth Mesh framework, asking application developers to develop Bluetooth Mesh applications is like "cooking without rice." Therefore, Bluetooth Mesh currently has significant shortcomings. For example, the related technology proposes a networking method that uses the device's address and signal strength information to select a proxy device to instruct other smart devices as child nodes, thereby realizing data sharing between nodes; however, it does not consider distinguishing roles according to the different resource conditions of smart devices and combining information such as login accounts to reasonably establish a network.
[0066] Currently, there are many types of mobile terminal devices. Near-field devices mainly include mobile phones, tablets, TVs, watches, bracelets, headphones, and other terminal devices. Most of the communication scenarios between these devices rely on users to actively initiate connections, and most of them establish point-to-point connections and do not support multi-terminal device connections. As a result, the networking process is cumbersome and inefficient when business needs arise.
[0067] Based on this, the embodiment of the present application provides a networking method, the basic idea of which is: deploying a networking strategy service in the system, turning on the broadcast scanning function on several devices that need to be networked, and the data message carries the device information of several node devices themselves; the devices scan each other to parse and process the data messages of other device nodes in the near field, and receive the data messages sent by several node devices; parsing and processing the data messages to obtain the device information of several node devices; authenticating several node devices based on the device information to determine a group of trusted devices; determining a central device from a group of trusted devices based on the device information; and establishing a network connection with other node devices in a group of trusted devices based on the central device. Decide how to connect between trusted devices and which communication protocols to choose for connection, and form a heterogeneous network of discrete trusted devices. In this way, a group of trusted devices is determined by several node devices to automatically form a network, so that when the upper-layer business needs to transmit data to a trusted target device, the device can be discovered and used immediately without waiting for the connection process, which can speed up business transmission efficiency, save time and cost, and thus improve network performance.
[0068] In one embodiment of the present application, see Figure 1 , which shows a flow chart of a networking method provided by an embodiment of the present application. Figure 1 As shown, the method may include:
[0069] S101: Receive data messages sent by several node devices.
[0070] It should be noted that the networking method provided in the embodiments of the present application can be applied to devices that require networking, or electronic devices that integrate the device. Here, electronic devices can be computers, smart phones, tablet computers, laptop computers, PDAs, Bluetooth headsets, sports bracelets, smart appliances, etc., and are not specifically limited in the embodiments of the present application.
[0071] It should also be noted that in the embodiment of the present application, several node devices support different communication protocols to connect to form a network, such as standard wireless local area network (Wireless Fidelity, WiFi) connection, Bluetooth (BT) connection, low-power Bluetooth (Bluetooth Low Energy, BLE) connection, etc., to support more upper-layer business APP networking requirements, without any limitation here.
[0072] It should also be noted that in an embodiment of the present application, the device uses the networking policy service deployed in the system to broadcast data packets carrying its own device information and scan data packets initiated by several other devices around it, and parses these data packets after receiving them. These packets can be parsed to obtain the device information of several node devices themselves.
[0073] S102: Parse the data message to obtain device information of each of the several node devices.
[0074] It should be noted that, in the embodiment of the present application, since the data message information is constructed based on the device information of each node device, the device information of each of the node devices can be obtained by parsing the data message.
[0075] In some embodiments, the method may further include:
[0076] Collect data from a plurality of node devices to determine device information of each of the plurality of node devices; wherein the device information includes at least role information, type information, and account information;
[0077] According to the device information, data messages of the respective node devices are constructed so that the respective node devices broadcast and send the data messages.
[0078] It should be noted that in the embodiments of this application, several node devices collect data about their own device information, where the device information may include role information, type information, and account information. Specifically, role information may include rich-capability devices and light-capability devices, type information may include mobile phones, televisions, Bluetooth headsets, smart bracelets, etc., and account information may include account IDs and passwords, etc., which are not specifically limited here.
[0079] S103: Authenticate several node devices according to the device information to determine a group of trusted devices.
[0080] It should be noted that in the embodiment of the present application, during the authentication process of several node devices, authentication can be performed using the account information in the device information, that is, node devices with the same account information are determined to be trusted devices; or several node devices can be authenticated based on account groups, that is, node devices whose account information belongs to the same account group are determined to be trusted devices.
[0081] In some embodiments, authenticating the plurality of node devices according to the device information to determine a group of trusted devices may include:
[0082] Based on the device information, obtain the account information of several node devices;
[0083] Authentication is performed on several node devices according to the account information, at least two node devices that have been successfully authenticated are determined, and the at least two node devices that have been successfully authenticated are used as a group of trusted devices.
[0084] It should be noted that in the embodiment of the present application, the account information in the device information is obtained, and several node devices are authenticated based on the account information. The node devices that have successfully authenticated trust each other, and the trusted devices after successful authentication can be connected to the network for data transmission. There is no trust relationship between the two node devices that fail authentication, so that network connection cannot be made and data transmission cannot be carried out.
[0085] In some embodiments, during the above authentication process, the method may further include:
[0086] If the account information of at least two node devices is the same, it is determined that the authentication of at least two node devices is successful; or,
[0087] If the account information of at least two node devices belongs to the same account group, it is determined that the authentication of at least two node devices is successful.
[0088] It should be noted that in the embodiment of the present application, the node devices with the same account information are node devices of the same user. Therefore, the node devices with the same account information can be determined as trusted devices, and at least two trusted devices can be determined as a group of trusted devices. Devices with different account information are node devices of different users and therefore cannot be determined as trusted devices.
[0089] It should also be noted that in the embodiment of the present application, the node devices whose account information belongs to the same account group are mutually trusted node devices. Therefore, the node devices belonging to the same account group can be determined as trusted devices, and at least two trusted devices can be determined as a group of trusted devices. The node devices whose account information does not belong to the same account group cannot be determined as trusted devices.
[0090] S104: Determine a central device from a group of trusted devices based on the device information.
[0091] It should be noted that in an embodiment of the present application, there can be one central device in a group of trusted devices. In the process of determining the central device, based on performance and power consumption considerations, the central device must select a node device whose role information is a rich-capability device. If there are multiple rich-capability devices, a node device with more stable performance is selected as the central device. For example, a TV can be selected as the central device among a mobile phone, a TV, and a tablet computer because the TV has a stable power supply and is not easy to move, so its performance is more stable and suitable as a central device.
[0092] In some embodiments, determining a central device from a group of trusted devices based on device information may include:
[0093] Based on the device information, obtain the role information and type information of several node devices;
[0094] The node device that is elected is selected based on the role information and type information, and the selected node device is used as the central device.
[0095] It should be noted that in the embodiment of the present application, during the election process of the central device, the most suitable node device is selected as the central device mainly by judging the role information and type information. Specifically, the role information may include rich-capability devices and light-capability devices. Generally, rich-capability devices are selected as central devices. The type information may include televisions, mobile phones, computers, bracelets, etc. Generally, devices with low mobility and high battery life are selected as central devices. Among the above-mentioned types of node devices, televisions can be selected as central devices.
[0096] S105: Based on the central device, a network connection is established with other node devices in a group of trusted devices.
[0097] It should be noted that in the embodiments of the present application, other node devices may include rich-capability devices and light-capability devices. The central device can serve as a central node to connect rich-capability devices and light-capability devices. The rich-capability device can serve as an intermediate node to connect the central device, light-capability devices and other rich-capability devices. The light-capability device can only serve as an edge node to connect rich-capability devices or central devices.
[0098] In some embodiments, establishing a network connection with other node devices in a group of trusted devices based on the central device may include:
[0099] Based on the central device, obtain the role information of other node devices in a group of trusted devices;
[0100] Determine the networking mode of other node devices based on their role information;
[0101] According to the networking mode, establish network connections between the central device and other node devices.
[0102] It should be noted that in the embodiment of the present application, the role information of the node device may include a rich-capability device and a light-capability device, and different role information may be connected to other nodes in different ways. Specifically, the central device may serve as a central node to connect the rich-capability device and the light-capability device, the rich-capability device may serve as an intermediate node to connect the central device, the light-capability device and other rich-capability devices, and the light-capability device may serve as an edge node to connect the rich-capability device and the central device.
[0103] It should also be noted that in the embodiment of the present application, in the process of determining the networking method, if the a-node device can be connected to both the b-node device and the c-node device, then the network connection with b or c will be selected based on the business communication frequency between a and b and the business communication frequency between a and c. Generally, the node device with a higher business communication frequency will be selected for direct connection.
[0104] In some embodiments, determining the networking mode of other node devices based on the role information of other node devices may include:
[0105] If the role information of the first node device is a rich-capability device, determining that the first node device serves as an intermediate node device to establish a Wi-Fi connection with the second node device, and the second node device includes at least one of the following: a central device, a rich-capability device other than the first node device among other node devices, and a light-capability device;
[0106] If the role information of the first node device is a light-capability device, determine that the first node device establishes a BLE connection with the third node device as an edge node device, and the third node device is a central device or a rich-capability device among other node devices;
[0107] The first node device is any one of the other node devices.
[0108] It should be noted that in the embodiment of the present application, if the connection target is a rich-capability device, such as a television (TV), a handheld computer, a mobile phone and other devices, it supports forwarding data from other nodes, and it can continue to connect to other rich-capability devices and light-capability devices; if it is a light-capability device, it cannot forward data from other nodes, and it can only establish a BLE connection with the rich-capability device, and it can no longer continue to connect to other devices, and can only serve as an edge device of the current rich-capability device.
[0109] In some embodiments, the method may further include:
[0110] When one or more node devices in the trusted device scan a new node device other than the trusted device, reporting device information corresponding to the one or more node devices and the new node device to the central device;
[0111] Making a decision based on the reported device information by the central device to determine the target node device;
[0112] Establishing a network connection between the target node device and the new node device.
[0113] It should be noted that in an embodiment of the present application, when a new node device is added to an environment where a network connection has been established, the device information corresponding to the new node device and the node device that scans the new node device needs to be sent to the central device. If multiple node devices scan the new node device, the central device needs to select one node device from the multiple node devices to connect to the new node device.
[0114] In some embodiments, the reported device information includes at least signal strength information. The central device makes a decision based on the reported device information to determine the target node device, which may include:
[0115] Based on the reported device information, select rich-capability devices from one or more node devices;
[0116] If there is only one rich-capability device, the rich-capability device is used as the target node device;
[0117] If there are multiple capability-rich devices, a target capability-rich device closest to the new node device is determined from the multiple capability-rich devices according to the signal strength information of the capability-rich devices, and the target capability-rich device is used as the target node device.
[0118] It should be noted that in the embodiment of the present application, in the process of making decisions on device information, it is first necessary to screen out rich-capability devices, because rich-capability devices have the ability to support forwarding data from other nodes. Therefore, only by connecting to rich-capability devices can the data of the new node device be connected to the established network. Secondly, when there are multiple rich-capability devices, the rich-capability device closest to the new node device among the multiple rich-capability devices is selected according to the signal strength information to connect to the new node device so as to transmit the data of the new node device.
[0119] In summary, this embodiment provides a networking method that receives data packets sent by several node devices; parses and processes the data packets to obtain device information for each of the several node devices; authenticates the several node devices based on the device information to determine a group of trusted devices; determines a central device from the group of trusted devices based on the device information; and, based on the central device, establishes a network connection with other node devices in the group of trusted devices. In this way, a group of trusted devices can be determined from several nodes in the environment to automatically form a network. When data transmission is required, there is no need to re-establish a connection, achieving immediate discovery and availability of devices, simplifying the data transmission process and saving time and costs.
[0120] In another embodiment of the present application, based on the networking method described in the above embodiment, see Figure 2 , which shows a schematic diagram of an application scenario of a networking method provided by an embodiment of the present application. Figure 2 As shown, the application scenario may include: third-party applications (APP), system framework and kernel ( Kernel ). Among them, the system framework may include networking services, custom routing protocols, broadcast / scanning, networking strategies, communication protocols, etc. The networking strategies may include networking service discovery mechanisms, account authentication, central device election + scenario perception and intelligent connection and other steps. Here, the system framework interacts with through broadcast / scanning and communication protocols. In other words, the embodiment of the present application provides a self-organizing network module deployed in the networking system, which can solve how to actively establish connections between near-field devices (i.e., the node devices in the aforementioned embodiment), form networks, and optimize network quality, thereby providing guarantees for users to work efficiently.
[0121] Specifically, a networking service is deployed within this system framework for use by business developers. This service provides detailed network topology and supports cross-device communication within the network. Besides relying on users to proactively initiate connections and establish networks, the networking service can also rely on intelligent networking to automatically pre-configure nearby near-field devices into a network that supports heterogeneous convergence according to specific networking strategies. This eliminates the need for business developers to proactively establish connections. When needed, devices are immediately discovered and available, eliminating the need to wait for connections.
[0122] In a specific embodiment, the implementation of the networking method requires the following steps:
[0123] Step 1: Support each near-field device to collect local device information;
[0124] Step 2: The near-field device broadcasts this device information to other nearby devices;
[0125] Step 3: Enable the scanning function that supports networking services to scan and obtain device information of other nearby devices;
[0126] Step 4: Set up authentication for the same account or account group. Devices with the same account are owned by the same person by default, so they can be connected directly. Account groups composed of different accounts can use account group information to determine whether devices can participate in network formation.
[0127] Step 5: Select the central device (Master) among the near-field devices. Generally, there is only one central device.
[0128] Step 6: The Master device forms a network based on the collected device role information, type information, and received signal strength indicator (RSSI) signal strength.
[0129] An embodiment of the present application proposes a networking method, which automatically connects discrete smart devices to form a network according to a strategy. First, the smart terminal devices are defined as different roles according to their respective attributes and resource conditions, and carry these role information as well as the device type and login account information of the device in the broadcast, and the results of mutual scanning between devices. Finally, a suitable central device is selected, and the central device then decides how to connect the devices and which communication protocols to select for connection based on this information, thereby networking the discrete devices and forming a heterogeneous fusion network with all connected devices.
[0130] In another specific embodiment, the intelligent networking method can be further described as follows:
[0131] (1) Define roles based on the device's own resource conditions.
[0132] The embodiment of the present application defines different networking roles according to the device resource situation, and sends corresponding device information through broadcast, where the device information may include role information, type information and account information. The central device that is elected will then manage it uniformly and intelligently form a network based on the different roles between devices.
[0133] First, based on the resource availability of the node device, two roles are defined, each with different functions deployed:
[0134] Weight devices: These are capable devices with large memory, good performance, and abundant resources. They serve as the core nodes of the network (i.e., the central devices in the aforementioned embodiments), can accommodate more service traffic, and support data forwarding to other nodes, such as mobile phones, PADs, and TVs.
[0135] Light devices: devices with small memory and weak capabilities. They can only act as subsidiary nodes or edge nodes of rich-capability devices. They rely on rich-capability devices for their existence, have limited functions, and cannot forward data from other nodes. They are such as watches, bracelets, and headphones.
[0136] (2) Broadcast the device information through the networking service broadcast.
[0137] Here, see Figure 3 , which shows a broadcast process diagram of a networking method provided by an embodiment of the present application. Figure 3 As shown, the method may include:
[0138] S301: Deploy networking services.
[0139] S302: Collect local device information, including device type, device ID, account, role, etc.
[0140] S303: Construct a data message corresponding to the device information.
[0141] S304: Publish the networking information by broadcasting, that is, broadcast the data message to surrounding devices.
[0142] In this way, a networking service broadcast is deployed to broadcast its own device information (whether it supports networking services, login account, device type and role, etc.); near-field devices start scanning each other, and after discovering the networking service data message, they obtain the device type, role, login account information, etc. carried in the message and report it to the elected central device.
[0143] (3) Use an account or account group for authentication.
[0144] Establishing a network connection before a service begins will result in additional resource consumption and increased power consumption for devices. Therefore, it's generally important to rationally establish a network to minimize resource waste and maximize utilization. For example, in an office setting with many people and devices, it's necessary to identify a user's own device and connect it to a personal device circle. This can be done using a personal account for authentication. Service broadcasts can include the user's device login information. When other devices scan this broadcast and discover that it supports networking services and that their account matches their own, they can identify it as the user's private device, establishing a trusted network in advance for that user's use.
[0145] In a conference room or home scenario, you can specify multiple accounts to form an account group information, carry it in the broadcast, and after the surrounding devices scan, they will decide which devices under which accounts can participate in the network formation based on the account group information.
[0146] (4) Intelligent networking strategy.
[0147] Here, see Figure 4 , which shows a detailed flow diagram of a networking method provided by an embodiment of the present application, such as Figure 4 As shown, the method may include:
[0148] S401: Start scanning service.
[0149] S402: Discovering networking services through scanning.
[0150] S403: Parse the data packet data to obtain node device information.
[0151] S404: Determine whether the account information in each device information is the same.
[0152] It should be noted that, when the account information is the same, the determination as the private device of the same user is completed and the networking process is ended; when the account information is different, S405 is executed.
[0153] S405: Determine whether there is a central node in the node device.
[0154] It should also be noted that, when there is a central node in the node device, S407 is executed; when there is no central node in the node device, S406 is executed.
[0155] S406: A central node is elected based on the device type information and role information.
[0156] S407: Initiate intelligent network connection based on the central node.
[0157] Specifically, using broadcast and scanning mechanisms, peripheral devices can sense each other, authenticate using the account information carried in the broadcast, and then, after matching and filtering through the networking service, the remaining trusted devices can form a network. However, network formation first requires the election of a central device (master), which controls and coordinates the networking model. Once the master is elected, it obtains details of all devices that meet the networking requirements and connects them based on the role information of other devices.
[0158] Further, when setting up a network for the first time, see Figure 5 , which shows a schematic diagram of device topology connection of a networking method provided by an embodiment of the present application. Figure 5 As shown, central devices are marked with M, rich-capability devices are marked with W, and light-capability devices are marked with L.
[0159] Specifically, if the connection target is a rich-capability device (Weight device), such as a TV, PAD, mobile phone, etc., a WiFi connection is initiated, and it can continue to connect to other Weight devices and Light devices;
[0160] If it is a light-capable device (Light device), it can only establish a BLE connection with the Weight device, and it can no longer continue to connect to other devices and can only serve as the edge device of the current Weight; for example, the following figure:
[0161] In other embodiments, when a new device joins an existing network, see Figure 6 , which shows a schematic diagram of a new device topology connection of a networking method provided by an embodiment of the present application, such as Figure 6 As shown, central devices are marked with M, rich-capability devices are marked with W, light-capability devices are marked with L, and those filled with grid lines are new devices.
[0162] It should be noted that after a network is formed, if one or more nodes in the network scan a new device, they will notify the central device of the information of the scanned device and the new device. The central device will make the best connection decision based on the currently reported information. Specifically:
[0163] 1) If multiple Weight devices and Light devices discover a new device together, the Light device is excluded first;
[0164] 2) If there are multiple remaining Weight devices, select the one closest to the new device based on the received RSSI signal strength and notify it to establish a connection with the new device;
[0165] 3) Connection type selection: If the new device is a mobile phone, TV, or PAD device, you can establish a WiFi connection with it. If it is a speaker, headphones, etc., you can establish a BT connection with it. If it is an IoT device such as a bracelet or watch, you can establish a BLE connection with it.
[0166] In some specific embodiments, local network optimization can be performed on the network after networking, and current traffic information can be monitored. If two devices in the network communicate frequently and the traffic is large, the central device can consider directly connecting the two nodes to optimize the network and improve transmission efficiency.
[0167] Through these intelligent networking strategies, the network is established in advance, allowing users to promptly select the most appropriate connection method to handle business, so that it can be used as soon as it is discovered, thereby improving data transmission performance.
[0168] Further, when a new device is added, see Figure 7, which shows a schematic diagram of a new device connection process of a networking method provided by an embodiment of the present application. Figure 7 As shown, the method may include:
[0169] S701: The central node collects new devices scanned by various nodes in the network.
[0170] S702: Determine whether the scanned device is in the network.
[0171] S703: Designate a node in the network to connect to the scanned device.
[0172] S704: According to the node role information of both parties, select to establish a standard Wireless Fidelity (WiFi) connection, (BT) Bluetooth connection, or BLE connection.
[0173] It should be noted that, when the scanned device is in the network, the connection process is terminated; when the scanned device is no longer in the network, S703 is executed.
[0174] It should also be noted that the networking method in the aforementioned embodiment is not limited to current Bluetooth, WiFi and other networks, but can also be applied to other communication protocols. In the future, more communication protocols will be connected to support more upper-layer business APP networking needs.
[0175] This embodiment provides a networking method, which adds a custom networking strategy to the system of the terminal device, bringing value benefits: more and more device communication needs, complex business scenarios, and the need to establish network functions between devices, expand the business scope, and adapt to complex business environments are inevitable trends. According to the resource situation of the node device, the node device is divided into different roles, and pre-connected according to information such as role, device type, and account, so that the surrounding devices automatically form a network. When the user needs to conduct business, there is no need to establish a connection again, and the device can be discovered and used immediately, and the capabilities of each device can be reasonably utilized. Due to busy business, a node device in an IOT will not take on too much business, resulting in a business bottleneck, nor will each core capability device be often idle, so that the performance of each node in the network is reasonably and evenly used, thereby improving transmission efficiency.
[0176] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see Figure 8 , which shows a schematic diagram of the composition structure of a networking device 80 provided in an embodiment of the present application. Figure 8 As shown, the networking device 80 may include: a receiving unit 801, a parsing unit 802, an authentication unit 803, a determination unit 804 and a connection unit 805; wherein,
[0177] The receiving unit 801 is configured to receive data packets sent by a plurality of node devices;
[0178] The parsing unit 802 is configured to parse the data message to obtain device information of each of the plurality of node devices;
[0179] an authentication unit 803 configured to authenticate the plurality of node devices according to the device information and determine a group of trusted devices;
[0180] a determining unit 804 configured to determine a central device from the group of trusted devices based on the device information;
[0181] The connection unit 805 is configured to establish a network connection with other node devices in the group of trusted devices based on the central device.
[0182] In some embodiments, the networking device 80 also includes a broadcast unit 806, which is configured to collect data from the several node devices and determine the device information of each of the several node devices; wherein the device information includes at least role information, type information and account information; and based on the device information, construct data packets for each of the several node devices so that the several node devices broadcast and send their respective data packets.
[0183] In some embodiments, the authentication unit 803 is specifically configured to obtain the account information of each of the several node devices based on the device information; and authenticate the several node devices according to the account information, determine at least two node devices that have successfully authenticated, and use the at least two node devices that have successfully authenticated as the group of trusted devices.
[0184] In some embodiments, the authentication unit 803 is specifically configured to determine that the authentication of the at least two node devices is successful if the account information of the at least two node devices is the same; or, determine that the authentication of the at least two node devices is successful if the account information of the at least two node devices belongs to the same account group.
[0185] In some embodiments, the determination unit 804 is specifically configured to obtain the role information and type information of each of the plurality of node devices based on the device information; and to conduct elections based on the role information and the type information, and use the elected node device as the central device.
[0186] In some embodiments, the connection unit 805 is specifically configured to obtain role information of other node devices in the group of trusted devices based on the central device; and determine the networking mode of the other node devices based on the role information of the other node devices; and establish a network connection between the central device and the other node devices based on the networking mode.
[0187] In some embodiments, the connection unit 805 is specifically configured to, if the role information of the first node device is a rich-capability device, determine that the first node device establishes a WIFI connection with the second node device as an intermediate node device, and the second node device includes at least one of the following: the central device, the rich-capability devices and light-capability devices among the other node devices except the first node device; and if the role information of the first node device is a light-capability device, determine that the first node device establishes a BLE connection with the third node device as an edge node device, and the third node device is the central device or a rich-capability device among the other node devices; wherein, the first node device is any one of the other node devices.
[0188] In some embodiments, the connection unit 805 is further configured to report the device information corresponding to the one or more node devices and the new node device to the central device when one or more node devices in the trusted device scans a new node device other than the trusted device; and to make a decision on the reported device information based on the central device to determine the target node device; and to establish a network connection between the target node device and the new node device.
[0189] In some embodiments, the connection unit 805 is specifically configured to filter out rich-capability devices from the one or more node devices based on the reported device information; and if the number of the rich-capability devices is one, use the rich-capability device as the target node device; and if the number of the rich-capability devices is multiple, determine the target rich-capability device closest to the new node device from the multiple rich-capability devices based on the signal strength information of the rich devices, and use the target rich-capability device as the target node device.
[0190] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.
[0191] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0192] Therefore, this embodiment provides a computer storage medium, which stores a networking program. When the networking program is executed by at least one processor, the steps of the method in any one of the aforementioned embodiments are implemented.
[0193] Based on the composition of the above networking device 80 and the computer storage medium, see Figure 9 , which shows a schematic diagram of the specific hardware structure of the electronic device provided in the embodiment of the present application. Figure 9 As shown, the electronic device 90 may include: a communication interface 901, a memory 902 and a processor 903; each component is coupled together via a bus system 904. It is understood that the bus system 904 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 904 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 9 Various buses are labeled as bus system 904. Among them, the communication interface 901 is used to receive and send signals in the process of sending and receiving information between other external network elements;
[0194] Memory 902, used to store computer programs that can be run on processor 903;
[0195] The processor 903 is configured to, when running the computer program, execute:
[0196] Receive data messages sent by several node devices;
[0197] Parsing the data message to obtain device information of each of the plurality of node devices;
[0198] authenticating the plurality of node devices according to the device information to determine a group of trusted devices;
[0199] Determining a central device from the group of trusted devices based on the device information;
[0200] Based on the central device, a network connection is established with other node devices in the group of trusted devices.
[0201] It is understood that the memory 902 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DRRAM). The memory 902 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0202] The processor 903 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the processor 903. The processor 903 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 902, and the processor 903 reads the information in the memory 902 and, in conjunction with its hardware, completes the steps of the above method.
[0203] It is understood that the embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof.
[0204] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0205] Optionally, as another embodiment, the processor 903 is further configured to execute the steps of the method in any one of the aforementioned embodiments when running the computer program.
[0206] Based on the composition of the above networking device 80 and the computer storage medium, see Figure 10 , which shows a schematic diagram of the composition structure of another electronic device 90 provided in an embodiment of the present application. Figure 10 As shown, the electronic device 90 may include the networking device 80 described in any one of the aforementioned embodiments.
[0207] In an embodiment of the present application, for the electronic device 90, a general intelligent networking strategy is provided here, which can solve how to actively establish connections between near-field devices (i.e., the node devices in the aforementioned embodiment), form a network, and optimize network quality, thereby providing guarantees for users to work efficiently.
[0208] In an embodiment of the present application, for the electronic device 90, it is possible to determine a group of trusted devices from several nodes to automatically form a network. When data transmission is required, there is no need to establish a connection again, so that the device can be discovered and used immediately, which simplifies the business transmission process, saves time costs, and further improves network performance.
[0209] It should be noted that, in this application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0210] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0211] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0212] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0213] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0214] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A networking method, characterized in that: The method comprises: Receiving data messages sent by a plurality of node devices; wherein the plurality of node devices are not connected to each other; the plurality of node devices have a broadcast scanning function; the plurality of node devices can broadcast and send their respective data messages according to a networking strategy service, so that the plurality of node devices can mutually scan the service broadcast to obtain the data message carried by the scanned service broadcast; Parsing the data message to obtain device information of each of the plurality of node devices; Authenticating the plurality of node devices according to the device information to determine a group of trusted devices for network connection; Determining a central device in the group of trusted devices according to the device information; Based on the central device, establishing a network connection with other node devices in the group of trusted devices; The method further comprises: Collecting data from the plurality of node devices to determine device information of each of the plurality of node devices; wherein the device information includes at least role information, type information and account information; Constructing data messages of the plurality of node devices respectively according to the device information, so that the plurality of node devices broadcast and send their respective data messages; The establishing of a network connection with other node devices in the group of trusted devices based on the central device includes: Based on the central device, obtaining role information of other node devices in the group of trusted devices; Determining a networking mode of the other node devices according to the role information of the other node devices; According to the networking mode, a network connection is established between the central device and the other node devices.
2. The method according to claim 1, characterized in that The authenticating the plurality of node devices according to the device information to determine a group of trusted devices includes: Based on the device information, obtaining account information of each of the plurality of node devices; The plurality of node devices are authenticated according to the account information, at least two node devices that have been successfully authenticated are determined, and the at least two node devices that have been successfully authenticated are used as the group of trusted devices.
3. The method according to claim 2, characterized in that During the authentication process, the method further includes: If the account information of at least two node devices is the same, it is determined that the authentication of the at least two node devices is successful; or, If the account information of at least two node devices all belongs to the same account group, it is determined that the authentication of the at least two node devices is successful.
4. The method according to claim 1, characterized in that: Determining a central device in the group of trusted devices according to the device information includes: Based on the device information, obtaining role information and type information of each of the plurality of node devices; An election is conducted according to the role information and the type information, and the node device that is elected is used as the central device.
5. The method according to claim 1, characterized in that The determining, according to the role information of the other node devices, the networking mode of the other node devices includes: If the role information of the first node device is a rich-capability device, it is determined that the first node device establishes a WIFI connection with the second node device as an intermediate node device, and the second node device includes at least one of the following: the central device, a rich-capability device and a light-capability device among the other node devices except the first node device; If the role information of the first node device is a light-capability device, determine that the first node device, as an edge node device, establishes a BLE connection with a third node device, and the third node device is a rich-capability device among the central device or the other node devices; The first node device is any one of the other node devices.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When one or more node devices in the trusted device scan a new node device other than the trusted device, report device information corresponding to the one or more node devices and the new node device to the central device; Making a decision based on the central device on the reported device information to determine the target node device; Establishing a network connection between the target node device and the new node device.
7. The method according to claim 6, characterized in that The reported device information at least includes signal strength information, and the making a decision based on the reported device information by the central device to determine the target node device includes: Based on the reported device information, screening out rich-capability devices from the one or more node devices; If the number of the rich-capability device is one, taking the rich-capability device as the target node device; If there are multiple capability-rich devices, a target capability-rich device closest to the new node device is determined from the multiple capability-rich devices according to the signal strength information of the capability-rich devices, and the target capability-rich device is used as the target node device.
8. A networking device, characterized in that: The networking device includes a receiving unit, a parsing unit, an authentication unit, a determining unit, a connecting unit, and a broadcasting unit, wherein: The receiving unit is configured to receive data packets sent by a plurality of node devices in response to a networking policy service broadcast; wherein the plurality of node devices are not connected to each other; the plurality of node devices have a broadcast scanning function; the plurality of node devices can send their own data packets according to the networking policy service broadcast, so that the plurality of node devices can mutually scan the service broadcast to obtain the scanned service broadcast-carried data packets; The parsing unit is configured to parse the data message to obtain device information of each of the plurality of node devices; The authentication unit is configured to authenticate the plurality of node devices according to the device information and determine a group of trusted devices for network connection; The determining unit is configured to determine a central device in the group of trusted devices according to the device information; The connection unit is configured to establish a network connection with other node devices in the group of trusted devices based on the central device; The broadcast unit is configured to collect data from the plurality of node devices and determine device information of each of the plurality of node devices; wherein the device information includes at least role information, type information and account information; and construct data packets of each of the plurality of node devices according to the device information so that the plurality of node devices broadcast and send their respective data packets; The connection unit is configured to obtain role information of other node devices in the group of trusted devices based on the central device; determine the networking mode of the other node devices according to the role information of the other node devices; and establish a network connection between the central device and the other node devices according to the networking mode.
9. An electronic device, characterized in that: The electronic device comprises: a memory and a processor; wherein, The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the method according to any one of claims 1 to 7 when running the computer program.
10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by at least one processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Networking method of wireless grid network nodes and network node equipment
CN112073920A
Mesh network networking method and device, and computer readable storage medium
CN112752264A
Equipment control method and device
CN114531311A