A power distribution method, system, apparatus, equipment, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2026-08-11
AI Technical Summary
但是,若AP和STA为不同厂家的产品,则存在AP和STA无法相互配合的情况,即AP将携带配网信息的报文广播后,STA无法对接收到的报文进行解析
[0072]本申请实施例提供的方案,第一网络设备在接收到第二网络设备发送的用于请求配网信息的配网请求报文后,向第二网络设备发送携带AP的配网信息的配网信息报文,以使第二网络设备利用接收到的配网信息报文中携带的配网信息接入AP。可见,本方案能够通过已接入AP的第一网络设备向未接入AP的第二网络设备传递配网信息,第二网络设备接收到配网信息后,可以利用接收到的配网信息接入AP,实现自动配网。相较于在AP和STA无法相互配合的情况下,手动对各个STA进行逐一配网的方式而言,本方案可以实现自动配网,提高配网效率。
Smart Images

Figure CN122554919A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a distribution network method, system, apparatus, device, and storage medium. Background Technology
[0002] With the development of the Internet of Things, smart devices are increasingly being used in people's homes. When using smart devices for the first time, it is necessary to configure the network for the smart devices.
[0003] Currently, network configuration is typically performed in batches using Access Points (APs). STAs include smart devices such as smart cameras and smart speakers. However, if the AP and STAs are from different manufacturers, they may not be able to cooperate. Specifically, after the AP broadcasts a message carrying network configuration information, the STA may not be able to parse the received message. In this case, the user needs to manually configure each STA individually, resulting in low network configuration efficiency.
[0004] Therefore, how to improve the efficiency of power distribution network when AP and STA cannot cooperate with each other has become an urgent technical problem to be solved. Summary of the Invention
[0005] The purpose of this application is to provide a power distribution method, system, device, equipment, and storage medium to achieve automatic power distribution and improve power distribution efficiency. The specific technical solution is as follows:
[0006] In a first aspect, embodiments of this application provide a network configuration method, applied to a first network device currently connected to a wireless access point (AP), the method comprising:
[0007] Receive a network configuration request message sent by a second network device that is not currently connected to the AP, requesting network configuration information;
[0008] Send a network distribution information message carrying the network distribution information of the AP to the second network device, so that the second network device can access the AP using the network distribution information carried in the received network distribution information message.
[0009] Optionally, the network distribution information message sent by the first network device carries the remaining network distribution time;
[0010] The receiving of a network configuration request message from a second network device that is not currently connected to the AP, requesting network configuration information, includes:
[0011] If the current remaining network distribution time is greater than 0, a network distribution request message for requesting network distribution information is received from a second network device that is not currently connected to the AP; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time is received and the current time;
[0012] The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment.
[0013] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0014] Optionally, the distribution information message sent by the first network device carries a signal strength threshold.
[0015] The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP;
[0016] The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP;
[0017] Sending the distribution network information message carrying the distribution network information to the second network device includes:
[0018] If the received signal strength index (RSSI) of the received distribution network request message is determined to be not less than the pre-acquired signal strength threshold, a distribution network information message carrying the distribution network information is sent to the second network device.
[0019] Optionally, the first network device sends the distribution network information message as an encrypted message, so that the second network device can access the AP using the distribution network information obtained by decrypting the received distribution network information message.
[0020] Secondly, embodiments of this application provide a network configuration method applied to a second network device that is not currently connected to a wireless access point (AP), the method comprising:
[0021] Send a network distribution request message to request network distribution information;
[0022] In response to receiving a distribution information message carrying the distribution information of the AP, the network device accesses the AP using the distribution information carried in the received distribution information message; wherein, the distribution information message is sent by the first network device that is currently connected to the AP to the second network device after receiving a distribution request message sent by the second network device.
[0023] Optionally, the method further includes:
[0024] If the second network device has established a communication connection with the designated user equipment, then upon receiving the network configuration information of the AP sent by the designated user equipment, it uses the received network configuration information to access the AP; wherein the received network configuration information is input by the user through the designated user equipment.
[0025] Optionally, the distribution network information message carries the remaining distribution network duration;
[0026] If the first network device currently connected to the AP receives a network distribution request message sent by the second network device to request network distribution information when the current remaining network distribution time is greater than 0; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time was received and the current time;
[0027] The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment.
[0028] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0029] Optionally, the distribution network information message carries a signal strength threshold;
[0030] The network distribution information message is sent by the first network device currently connected to the AP after receiving the network distribution request message sent by the second network device, and after determining that the Received Signal Strength Indicator (RSSI) value of the received network distribution request message is greater than a pre-acquired signal strength threshold.
[0031] The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP;
[0032] The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP.
[0033] Optionally, the distribution network information message is an encrypted message;
[0034] The step of accessing the AP using the distribution network information carried in the received distribution network information message includes:
[0035] The distribution network information obtained by decrypting the received distribution network information message is used to access the AP.
[0036] Thirdly, embodiments of this application provide a distribution network system, including a first network device that is currently connected to a wireless access point (AP) and a second network device that is not currently connected to the AP;
[0037] The first network device is used to perform the network distribution method described in the first aspect above;
[0038] The second network device is used to perform the network distribution method described in the second aspect above.
[0039] Fourthly, embodiments of this application provide a network distribution device applied to a first network device that is currently connected to a wireless access point (AP). The device includes:
[0040] The first receiving module is used to receive a network distribution request message sent by a second network device that is not currently connected to the AP, which requests network distribution information.
[0041] The first sending module is used to send a network distribution information message carrying the network distribution information of the AP to the second network device, so that the second network device can access the AP using the network distribution information carried in the received network distribution information message.
[0042] Optionally, the network distribution information message sent by the first network device carries the remaining network distribution time;
[0043] The first receiving module is specifically configured to: receive a network distribution request message sent by a second network device that is not currently connected to the AP, requesting network distribution information, when the current remaining network distribution time is greater than 0; wherein, the current remaining network distribution time is the difference between the received remaining network distribution time and the current spent time; the current spent time is the time between the time when the received remaining network distribution time was received and the current time.
[0044] The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment.
[0045] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0046] Optionally, the distribution information message sent by the first network device carries a signal strength threshold.
[0047] The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP;
[0048] The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP;
[0049] The first sending module is specifically used to: send a distribution network information message carrying the distribution network information to the second network device when it is determined that the Received Signal Strength Indicator (RSSI) value of the received distribution network request message is not less than a pre-acquired signal strength threshold.
[0050] Optionally, the first network device sends the distribution network information message as an encrypted message, so that the second network device can access the AP using the distribution network information obtained by decrypting the received distribution network information message.
[0051] Fifthly, embodiments of this application provide a network distribution device applied to a second network device that is not currently connected to a wireless access point (AP). The device includes:
[0052] The second sending module is used to send a network distribution request message for requesting network distribution information;
[0053] The second receiving module is configured to, in response to receiving a distribution information message carrying the distribution information of the AP, access the AP using the distribution information carried in the received distribution information message; wherein, the distribution information message is sent by the first network device currently connected to the AP to the second network device after receiving a distribution request message sent by the second network device.
[0054] Optionally, the device further includes:
[0055] The third receiving module is used to access the AP by receiving the AP's network configuration information sent by the designated user equipment when the second network device has established a communication connection with the designated user equipment; wherein the received network configuration information is input by the user through the designated user equipment.
[0056] Optionally, the distribution network information message carries the remaining distribution network duration;
[0057] If the first network device currently connected to the AP receives a network distribution request message sent by the second network device to request network distribution information when the current remaining network distribution time is greater than 0; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time was received and the current time;
[0058] The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment.
[0059] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0060] Optionally, the distribution network information message carries a signal strength threshold;
[0061] The network distribution information message is sent by the first network device currently connected to the AP after receiving the network distribution request message sent by the second network device, and after determining that the Received Signal Strength Indicator (RSSI) value of the received network distribution request message is greater than a pre-acquired signal strength threshold.
[0062] The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP;
[0063] The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP.
[0064] Optionally, the distribution network information message is an encrypted message;
[0065] The second receiving module is specifically used to: access the AP using the distribution network information obtained by decrypting the received distribution network information message.
[0066] Sixthly, embodiments of this application provide an electronic device, including:
[0067] Memory, used to store computer programs;
[0068] The processor, when executing a program stored in memory, implements any of the above-described network distribution methods.
[0069] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the network distribution method described in any of the preceding claims.
[0070] Eighthly, embodiments of this application provide a computer program product comprising executable instructions that, when executed on a computer, cause the computer to perform any of the above-described network distribution methods.
[0071] Beneficial effects of the embodiments in this application:
[0072] The solution provided in this application embodiment involves a first network device receiving a network configuration request message from a second network device requesting network configuration information. The first network device then sends a network configuration information message carrying the configuration information of the access point (AP) to the second network device, enabling the second network device to access the AP using the received network configuration information message. Therefore, this solution allows a first network device already connected to the AP to transmit network configuration information to a second network device not connected to the AP. Upon receiving the network configuration information, the second network device can access the AP using it, achieving automatic network configuration. Compared to manually configuring each STA one by one when the AP and STAs cannot cooperate, this solution achieves automatic network configuration, improving network configuration efficiency.
[0073] Furthermore, once any second network device accesses the AP using the received network configuration information, it can then become the first network device and send network configuration information to other second network devices that are not currently connected to the AP. This allows any network device to send network configuration information to other network devices that are not connected to the AP after completing network configuration, thereby assisting them in completing network configuration and enabling batch network configuration.
[0074] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.
[0076] Figure 1 A flowchart illustrating a power distribution method provided in this application embodiment;
[0077] Figure 2A A schematic diagram of a distribution network scenario for implementing the distribution network method of this application embodiment;
[0078] Figure 2B A schematic diagram illustrating another distribution network scenario for implementing the distribution network method of this application embodiment;
[0079] Figure 3 A flowchart illustrating another network distribution method provided in this application embodiment;
[0080] Figure 4 A schematic diagram illustrating the interaction between a network-configured device and a device to be configured, provided in an embodiment of this application;
[0081] Figure 5A A flowchart for configuring a network for an already configured device is provided as an embodiment of this application;
[0082] Figure 5B A flowchart illustrating network distribution for a device to be distributed, provided as an embodiment of this application;
[0083] Figure 6 This application provides a schematic diagram of the structure of a power distribution network system according to an embodiment of the present application.
[0084] Figure 7 This is a schematic diagram of the structure of a power distribution network device provided in an embodiment of this application;
[0085] Figure 8This is a schematic diagram of another power distribution network device provided in an embodiment of this application;
[0086] Figure 9 A block diagram of an electronic device for implementing the network distribution method provided in the embodiments of this application. Detailed Implementation
[0087] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.
[0088] It is understandable that in actual network configuration scenarios, multiple network devices typically need to be configured. To improve configuration efficiency, this application provides a configuration method from the perspective of a first network device currently connected to an AP, and a configuration method from the perspective of a second network device not currently connected to an AP.
[0089] It should be noted that the first and second network devices involved in this application embodiment are only distinguished by their network connection status. That is, in a network configuration scenario involving multiple network devices, the network device connected to the AP is referred to as the first network device, and the network device not connected to the AP is referred to as the second network device. In practical applications, the first and second network devices can be the same type of smart device or different types of smart devices. For example, each network device can be a smart camera, a smart door lock, a smart air conditioner, a smart refrigerator, etc.
[0090] like Figure 1 As shown, the network configuration method provided by the first network device currently connected to the AP in this embodiment includes steps S101-S102:
[0091] S101, Receive a network distribution request message sent by a second network device that is not currently connected to the AP, which requests network distribution information;
[0092] S102, a distribution network information message carrying the distribution network information of the AP is sent to the second network device so that the second network device can access the AP using the distribution network information carried in the received distribution network information message.
[0093] As we can understand, an Access Point (AP) is a Wi-Fi (Wireless Fidelity) access point that provides Wi-Fi signals to various network devices within a certain area. Network devices can access the internet after connecting to the AP. The process of connecting to the AP using its configuration information is called network configuration. The AP's configuration information is the information required to connect to the AP, and this information includes at least the SSID (Service Set Identifier) and password for the Wi-Fi network corresponding to the AP. In practical applications, an SSID needs to be assigned to the AP during installation. This SSID is an identification name set by the AP for its Wi-Fi network, helping users select and connect to the correct network among many options.
[0094] In this embodiment, a second network device that is not currently connected to the AP can send a network distribution request message to request network distribution information. After receiving the network distribution request message sent by the second network device, the first network device that is connected to the AP sends a network distribution information message carrying the network distribution information of the AP to the second network device, so that the second network device can use the network distribution information carried in the received network distribution information message to access the AP.
[0095] For example, in a real-world power distribution network scenario, a user can operate a second network device to put it into power distribution mode. Once in power distribution mode, the second network device sends broadcast management frames carrying power distribution request commands on various broadcast channels. These broadcast management frames are power distribution request messages used to request power distribution information. It should be noted that the method by which the user operates the second network device to put it into power distribution mode is related to the device type of the second network device, and this application embodiment does not limit this method. For example, in one embodiment, the second network device is a smart camera, and this smart camera enters power distribution mode when its indicator light flashes blue after the power switch is turned on. Therefore, the user can put the smart camera into power distribution mode by turning on the power switch and waiting for the indicator light to flash blue.
[0096] It is understandable that any network device, after connecting to an access point (AP), can perform broadcast scanning. This allows the first network device, already connected to the AP, to scan for broadcast messages in the current environment, thereby enabling it to receive network configuration request messages sent by second network devices not currently connected to the AP. For example, in one embodiment, the network configuration request message may carry a first predetermined identifier indicating that the message is a network configuration request message. This allows the first network device, upon scanning any broadcast message, to parse the broadcast message and obtain the first predetermined identifier, thus identifying the broadcast message as a network configuration request message. For instance, if the first predetermined identifier is a request field, then after parsing the scanned broadcast message, if the broadcast message contains a request field, the first network device will identify the broadcast message as a network configuration request message.
[0097] In addition, the network configuration request message sent by any second network device may also carry its own device identifier, such as the device's MAC (Media Access Control) address, serial number, etc. It is understood that, to protect the security of device information, the network configuration request message may also be an encrypted broadcast message. After receiving the network configuration request message, the first network device can use a pre-agreed decryption password to decrypt the received network configuration request message to obtain the information carried in the message. It should be noted that the specific information carried in the network configuration request message is not limited in this embodiment. Furthermore, the encryption method of the network configuration request message can be symmetric encryption or asymmetric encryption, both of which are reasonable.
[0098] For example, in practical applications, each of the first network devices and the second network devices can be devices manufactured by the same manufacturer, and each of the first network devices and the second network devices can be configured with encryption and decryption passwords for network distribution request messages before leaving the factory; or, relevant technical personnel can configure each of the first network devices and the second network devices with encryption and decryption passwords for network distribution request messages before performing network distribution, which is reasonable.
[0099] After receiving a network distribution request message from any second network device, the first network device can send a network distribution information message carrying the network distribution information of the AP to the second network device from which the network distribution request message originated, so that the second network device that sent the network distribution request message can access the AP using the network distribution information carried in the received network distribution information message.
[0100] For example, the distribution network information message may carry a second predetermined identifier indicating that the message is a distribution network information message, so that when the second network device receives any message, if it parses the message to obtain the second predetermined identifier, it will determine that the message is a distribution network information message.
[0101] In one implementation, the network distribution request message sent by any second network device carries its own device identifier. After receiving the network distribution request message, the first network device sends a network distribution information message to the network device represented by the device identifier carried in the network distribution request message. For example, in practical applications, after receiving the network distribution request message, the first network device can send the network distribution information message to the network device represented by the device identifier carried in the received network distribution request message via a request-to-play method.
[0102] It is understandable that any second network device becomes a first network device after connecting to the access point (AP) using distribution network information. That is, in a real distribution network scenario, the number of second and first network devices is constantly changing. As more network devices connect to the AP, the number of second network devices gradually decreases, while the number of first network devices gradually increases. When all network devices in a distribution network scenario are connected to the AP, there are no second network devices in that scenario.
[0103] The following is combined Figure 2A and Figure 2B A specific example of implementing the power distribution method provided in the embodiments of this application will be introduced, such as... Figure 2A As shown, in this network distribution scenario, STA1 is already connected to the AP, and is therefore a network-distributed device (corresponding to the first network device mentioned above). STA2 and STA3 are not connected to the AP, and are therefore network-pending devices (corresponding to the second network device mentioned above). STA2 broadcasts a network distribution request message on each broadcast channel. After receiving the network distribution request message from STA2, STA1 sends a network distribution information message to STA2. After receiving the network distribution information message, STA2 uses the network distribution information carried in the message to connect to the AP.
[0104] Network configuration scenarios after STA2 connects to AP, such as Figure 2B As shown, both STA1 and STA2 are connected to the AP at this time. STA3 broadcasts a network distribution request message on each broadcast channel. After receiving the network distribution request message sent by STA3, STA2 sends a network distribution information message to STA3. After receiving the network distribution information message, STA3 uses the network distribution information carried in the network distribution information message to connect to the AP.
[0105] Understandably, since the first network device connected to the AP in the distribution network scenario can send the distribution network information to the second network device that is not currently connected to the AP, the distribution network information can be continuously transmitted from the network-connected device to the network-unconnected device. Compared with the method of manually configuring each STA one by one when the AP and STA cannot cooperate with each other, this solution can achieve automatic network configuration and improve network configuration efficiency.
[0106] Optionally, in one implementation, the first network device sends the distribution network information message as an encrypted message, so that the second network device can access the AP using the distribution network information obtained by decrypting the received distribution network information message.
[0107] Understandably, to protect network security and prevent any network device from arbitrarily accessing the AP, this implementation encrypts the distribution network information packets carrying distribution network information. That is, the first network device sends encrypted distribution network information packets. In a distribution network scenario, legitimate network devices can pre-agree on encryption and decryption passwords for the distribution network information packets. This allows a legitimate second network device, upon receiving the distribution network information packet, to successfully decrypt it using the pre-agreed decryption password, extract the distribution network information carried in the decryption result, and then use the extracted information to access the AP. It should be noted that the encryption method for the distribution network information packets can be either symmetric or asymmetric encryption; both are acceptable.
[0108] For example, in practical applications, each legitimate first network device and second network device can be manufactured by the same manufacturer, and each legitimate first network device and second network device can be configured with encryption and decryption passwords for distribution network information messages before leaving the factory; or, relevant technical personnel can configure each legitimate first network device and second network device with encryption and decryption passwords for distribution network information messages before performing distribution network operations, which is all reasonable.
[0109] The solution provided in this application embodiment involves a first network device receiving a network distribution request message from a second network device requesting network distribution information. The first network device then sends a network distribution information message carrying the network distribution information of the access point (AP) to the second network device, enabling the second network device to access the AP using the network distribution information carried in the received message. This solution allows the first network device, already connected to the AP, to continuously transmit network distribution information to a second network device not connected to the AP. Upon receiving the network distribution information, the second network device can then access the AP using it, achieving automatic network distribution. Compared to manually configuring each STA one by one when the AP and STAs cannot cooperate, this solution enables automatic network distribution, improving network distribution efficiency.
[0110] Furthermore, once any second network device accesses the AP using the received network configuration information, it can then become the first network device and send network configuration information to other second network devices that are not currently connected to the AP. This allows any network device to send network configuration information to other network devices that are not connected to the AP after completing network configuration, thereby assisting them in completing network configuration and enabling batch network configuration.
[0111] Optionally, in another embodiment of this application, the network distribution information message sent by the first network device carries the remaining network distribution time;
[0112] Accordingly, in this embodiment, receiving a network distribution request message for requesting network distribution information sent by a second network device that is not currently connected to the AP in step S101 includes:
[0113] If the remaining network distribution time is greater than 0, receive a network distribution request message sent by a second network device that is not currently connected to the AP, requesting network distribution information; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time was received and the current time;
[0114] The remaining network configuration duration received by the first network device that first accesses the AP is: sent by the designated user equipment to the first network device that first accesses the AP; the first network device that first accesses the AP accesses the AP by using the AP's network configuration information sent by the designated user equipment.
[0115] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0116] It is understandable that, for the first network device connected to the AP, when the device is not connected to the AP, since there are no other first network devices connected to the AP in the network configuration scenario, the user needs to manually configure the network. For example, the user can use Bluetooth network configuration, AP network configuration, acoustic wave network configuration, etc. when manually configuring the network. This application embodiment does not limit the method of manual network configuration.
[0117] For example, when a user performs manual network configuration, if Bluetooth configuration is used, the user first enables the Bluetooth configuration mode of the device to be configured, establishing a Bluetooth connection between the designated user device and the device to be configured. Then, the user inputs the AP's configuration information into the designated user device, which then sends the configuration information to the device to be configured via Bluetooth, allowing the device to access the AP using the received configuration information. The designated user device can be a smart device such as a mobile phone or tablet that provides an interactive interface.
[0118] Understandably, to protect network security, users can set a remaining configuration duration when manually configuring network devices in a configuration network scenario. Each network device, upon receiving the remaining configuration duration, will only transmit configuration information if the current remaining duration is greater than 0. When no network device is already connected to the AP in the configuration network scenario, after a user manually configures a network device, that network device becomes the first network device connected to the AP (hereinafter referred to as the first network device). For example, after any network device receives the remaining configuration duration, the current remaining configuration duration can be the remaining duration obtained by counting down from the received remaining configuration duration.
[0119] After a user manually configures the network on the first network device, they can send the remaining configuration time to the network device through a designated user equipment. For example, upon receiving the remaining configuration time, the first network device enables batch configuration (i.e., broadcast scanning), allowing it to scan for configuration request packets sent by the second network device. It also starts timing while enabling batch configuration; when the currently timed elapsed duration reaches the received remaining configuration time, it disables batch configuration and stops receiving configuration request packets from the second network device. Correspondingly, other network devices, besides the first network device, upon receiving the configuration information packet, first use the configuration information carried in the received packet to access the AP. After accessing the AP, they enable batch configuration and start timing. When the currently timed elapsed duration reaches the received remaining configuration time, they disable batch configuration and stop broadcast scanning.
[0120] After receiving a network distribution request message from a second network device, any first network device that has been connected to the AP sends a network distribution information message carrying the remaining network distribution time to the second network device. At this time, the remaining network distribution time carried in the network distribution information message sent by the first network device to the second network device is the remaining network distribution time when the first network device sends the network distribution information message.
[0121] For example, if the remaining network distribution time received by the first network device is 10 minutes, and the first network device receives a network distribution request message A sent by the second network device A 2 minutes after receiving the remaining network distribution time, and receives a network distribution request message B sent by the second network device B 3 minutes after receiving the remaining network distribution time; then the remaining network distribution time carried in the network distribution information message A sent by the first network device to the second network device A is 8 minutes, and the remaining network distribution time carried in the network distribution information message B sent by the first network device to the second network device B is 7 minutes.
[0122] It is understood that the remaining network configuration duration sent by the designated user equipment to the first network device can also be referred to as the initial remaining network configuration duration. In practical applications, the initial remaining network configuration duration can be set by the user after estimating the network configuration duration based on the number of all devices to be configured in the network configuration scenario. For example, the initial remaining network configuration duration can be 10 minutes, 20 minutes, etc., and the length of the initial remaining network configuration duration is not limited in this embodiment of the application.
[0123] In addition, it is understandable that in practical applications, in order to further improve the efficiency of network configuration, when there are no network devices connected to the AP in the network configuration scenario, users can manually configure multiple network devices, which is reasonable.
[0124] As can be seen, this solution allows users to estimate the required network configuration time for all legitimate devices in a network configuration scenario and set an initial remaining configuration time based on the estimated time. This ensures that each network device only activates the batch configuration function within the user-defined remaining configuration time, meaning that each network device transmits configuration information within that timeframe. Once the user-defined remaining configuration time is reached, the batch configuration function is disabled, preventing configuration information from being stolen by network devices entering the configuration scenario later. This prevents malicious devices from accessing the network and protects network security.
[0125] Optionally, in another embodiment of this application, the distribution information message sent by the first network device carries a signal strength threshold.
[0126] The signal strength threshold in the distribution information message sent by the first network device that first accesses the AP is the one sent by the designated user equipment to the first network device that first accesses the AP; the first network device that first accesses the AP accesses the AP by using the distribution information of the AP sent by the designated user equipment.
[0127] The signal strength threshold carried in the distribution information message sent by any first network device other than the first access AP is: the signal strength threshold carried in the distribution information message received by the first network device before accessing the AP;
[0128] Send a network distribution information message carrying network distribution information to the second network device, including:
[0129] If the RSSI (Received Signal Strength Indication) value of the received distribution network request message is not less than the pre-acquired signal strength threshold, a distribution network information message carrying distribution network information is sent to the second network device.
[0130] In this embodiment, after manually configuring the first network device, the user can also send a signal strength threshold to the first network device through a designated user equipment. For example, the signal strength threshold could be -50dBm (decibels per milliwatt), -60dBm, etc. It should be noted that in practical applications, this signal strength threshold is set by the user based on experience, and this embodiment does not limit this setting.
[0131] After receiving a network distribution request message from a second network device, if the RSSI value carried in the network distribution request message is not less than the received signal strength threshold, the first network device sends a network distribution information message to the second network device. This network distribution information message carries at least network distribution information and the signal strength threshold. This allows the second network device, after accessing the AP, to determine whether to send a network distribution information message to the network device from which the network distribution request message originated by comparing the RSSI value of the received network distribution request message with the received signal strength threshold.
[0132] In another implementation, if the specified user equipment does not send a signal strength threshold to the first network device, the distribution network information message may also carry a default signal strength threshold.
[0133] It is understandable that by setting a signal strength threshold, network devices that are too far away from the AP can be prevented from connecting to the AP, thereby ensuring that network devices connected to the AP have a strong network signal strength.
[0134] As can be seen, this solution can ensure that network devices connected to the AP have strong network signal strength.
[0135] Corresponding to the above-described network configuration method provided from the first network device that is currently connected to the AP, this application embodiment also provides a network configuration method provided from the second network device that is not currently connected to the AP, such as... Figure 3 As shown, steps S301-S302 are included:
[0136] S301, Send a network distribution request message to request network distribution information;
[0137] S302, in response to receiving a distribution information message carrying distribution information of the AP, accessing the AP using the distribution information carried in the received distribution information message; wherein, the distribution information message is sent by the first network device that is currently connected to the AP to the second network device after receiving a distribution request message sent by the second network device.
[0138] It should be noted that the relevant content of steps S301-S302 has been described in steps S101-S102 above, and will not be repeated here.
[0139] Optionally, in one implementation, if the second network device has established a communication connection with the designated user equipment, then when it receives the AP's network configuration information sent by the designated user equipment, it uses the received network configuration information to access the AP; wherein the received network configuration information is input by the user through the designated user equipment.
[0140] In this implementation, when a communication connection is established between the second network device and the designated user device, the user can input the AP's network configuration information in the designated user device's preset interactive interface. Then, the designated user device sends the user-input network configuration information to the second network device. Upon receiving the network configuration information from the designated user device, the second network device uses the received information to access the AP. For example, the designated user device can be a user's mobile phone, tablet, or other smart device capable of providing an interactive interface.
[0141] For example, the communication connection established between the second network device and the designated user device can be a Bluetooth connection, a hotspot connection, an acoustic connection, etc. The data transmission methods between the designated user device and the first network device differ in different communication connection scenarios. For example, in a Bluetooth connection scenario, the second network device needs to enter Bluetooth mode, i.e., turn on Bluetooth, and the designated user device connects to the second network device's Bluetooth and sends network configuration information to the second network device via Bluetooth; in a hotspot connection scenario, the second network device needs to enter AP mode, i.e., turn on the hotspot, and the designated user device connects to the second network device's hotspot and sends network configuration information to the second network device via the hotspot; in an acoustic connection scenario, the second network device needs to enter acoustic mode, i.e., start sound recording, and the designated user device plays the audio encoded from the network configuration information, while the second network device records the sound waves and decodes them to obtain the network configuration information.
[0142] Optionally, in one implementation, the distribution network information message carries the remaining distribution network duration;
[0143] Accordingly, in this implementation, when the remaining network distribution time is greater than 0, the first network device currently connected to the AP receives a network distribution request message sent by the second network device to request network distribution information; wherein, the current remaining network distribution time is the difference between the received remaining network distribution time and the current consumed time; the current consumed time is the time between the time when the received remaining network distribution time was received and the current time.
[0144] The remaining network configuration duration received by the first network device that first accesses the AP is: sent by the designated user equipment to the first network device that first accesses the AP; the first network device that first accesses the AP accesses the AP by using the AP's network configuration information sent by the designated user equipment.
[0145] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0146] It should be noted that this implementation method has been described in the above embodiment of the network configuration method provided by the first network device currently connected to the AP, and will not be repeated here.
[0147] Optionally, in one implementation, the distribution network information message carries a signal strength threshold;
[0148] The distribution network information message is sent by the first network device that is currently connected to the AP after receiving the distribution network request message sent by the second network device, and if it is determined that the received signal strength indicator (RSSI) value of the received distribution network request message is greater than the pre-acquired signal strength threshold.
[0149] The signal strength threshold in the distribution information message sent by the first network device that first accesses the AP is the one sent by the designated user equipment to the first network device that first accesses the AP; the first network device that first accesses the AP accesses the AP by using the distribution information of the AP sent by the designated user equipment.
[0150] The signal strength threshold carried in the distribution information message sent by any first network device other than the first access AP is: the signal strength threshold carried in the distribution information message received by the first network device before accessing the AP.
[0151] It should be noted that this implementation method has been described in the above embodiment of the network configuration method provided by the first network device currently connected to the AP, and will not be repeated here.
[0152] Optionally, in one implementation, the distribution network information message is an encrypted message;
[0153] Step S302 above, which utilizes the distribution network information carried in the received distribution network information message to access the AP, includes:
[0154] Access to the AP is achieved by decrypting the received distribution network information messages.
[0155] It should be noted that this implementation method has been described in the above embodiment of the network configuration method provided by the first network device currently connected to the AP, and will not be repeated here.
[0156] As can be seen, this solution enables the first network device connected to the AP to continuously transmit network configuration information to a second network device not connected to the AP. Upon receiving the network configuration information, the second network device can then connect to the AP, achieving automatic network configuration. Compared to manually configuring each STA one by one when the AP and STAs cannot cooperate, this solution achieves automatic network configuration, improving network configuration efficiency.
[0157] Furthermore, once any second network device accesses the AP using the received network configuration information, it can then become the first network device and send network configuration information to other second network devices that are not currently connected to the AP. This allows any network device to send network configuration information to other network devices that are not connected to the AP after completing network configuration, thereby assisting them in completing network configuration and enabling batch network configuration.
[0158] To better understand the power distribution method provided in the embodiments of this application, a specific example of the power distribution method provided in the embodiments of this application is introduced below.
[0159] like Figure 4 As shown, the distribution network scenario includes already-distributed network devices (corresponding to the first network device mentioned above) and devices to be distributed network devices (corresponding to the second network device mentioned above). The distribution network process, in which the already-distributed network devices assist the devices to be distributed network devices in performing distribution, includes:
[0160] S401, Batch network configuration function is enabled for network-configured devices.
[0161] For example, users can control the batch network configuration function of network-configured devices through an application or webpage. When enabling the batch network configuration function, users can send the RSSI threshold (corresponding to the signal strength threshold mentioned above) and the batch network configuration duration (corresponding to the remaining configuration duration mentioned above) to the network-configured devices. After enabling the batch network configuration function, the network-configured devices can perform broadcast scanning, receiving broadcast messages from other network devices. If the user-set duration is reached, the broadcast scanning ends.
[0162] S402, the device to be distributed sends a distribution request message on each broadcast channel to request distribution information.
[0163] The device to be distributed sends an encrypted message carrying its own device identifier to request distribution network information; this encrypted message is the distribution network request message.
[0164] S403, the network-distributed equipment judges the RSSI value in the received network distribution request message.
[0165] Within the user-defined activation timeframe, already configured devices can receive network configuration request messages from devices awaiting network configuration. Upon receiving a network configuration request message, the system determines whether the RSSI value in the message reaches the user-defined RSSI threshold.
[0166] S404 decrypts the distribution network request message if the RSSI value meets the requirements.
[0167] When the RSSI value of the distribution network request message is not less than the RSSI threshold set by the user, the distribution network request message is decrypted using the decryption password agreed upon in advance by the distributed network device and the device to be distributed network, so as to obtain the device identifier carried in the distribution network request message. Based on the device identifier, the device that sent the distribution network request message can be identified.
[0168] S405, if decryption is successful, sends a network distribution information message to the device to be distributed;
[0169] If decryption is successful, the device sending the network distribution request message is identified as legitimate. At this point, the already networked device sends a network distribution information message to the device awaiting network distribution. The network distribution information message can carry network distribution information, the RSSI threshold, and the remaining activation duration for batch network distribution. In this case, the remaining activation duration is the difference between the user-set activation duration and the currently consumed duration.
[0170] S406, the device to be distributed uses the distribution information carried in the received distribution information message to access the AP.
[0171] After receiving a distribution network information message, the device to be distributed first decrypts the message using a pre-agreed decryption password between the existing and new distribution network devices. After extracting the distribution network information from the decryption result, it connects to the access point (AP) using this information. Once connected to the AP, the device becomes a distributed network device, and this connection can be used as a step to enable batch distribution functionality for existing distribution network devices.
[0172] To better understand this solution, the following will be combined with... Figure 5A and Figure 5B The network distribution process is described from both the perspectives of existing network equipment and equipment awaiting network distribution. For the network distribution process executed by existing network equipment, please refer to [link to relevant documentation]. Figure 5A ,include:
[0173] S501: Enable batch network configuration function and set RSSI threshold and activation duration;
[0174] Step S501 is described in the same way as step S401, and will not be repeated here.
[0175] S502: Check if the distribution network time has expired; if not, proceed to step S503; if yes, proceed to step S507.
[0176] After receiving the user-set activation duration, the network-configured devices can periodically check whether the current elapsed duration has been reached. If not, the network configuration period has not expired; otherwise, the network configuration period has expired, and the network configuration process ends.
[0177] S503: Passively receive network distribution request messages sent by devices to be distributed;
[0178] Once the batch network configuration function is enabled on the network-configured devices, they can perform broadcast scanning before the network configuration period expires to receive network configuration request messages sent by other network devices.
[0179] S504, Check whether the RSSI value of the distribution network request message has reached the set RSSI threshold; if yes, proceed to step S505; if no, proceed to step S507.
[0180] After receiving a network distribution request message, the network-distributed device obtains the RSSI value carried in the network distribution request message sent by the device to be distributed. If the RSSI reaches the RSSI threshold, the subsequent process is executed; otherwise, the network distribution process ends.
[0181] S505, verify whether the received network distribution request message is valid; if yes, proceed to step S506; if no, proceed to step S507.
[0182] The network-connected devices decrypt the received network distribution request message. If the decryption is successful, the received network distribution request message is considered legitimate.
[0183] S506, Send a network distribution information message to the device to be configured; and return to execute step S502;
[0184] After confirming that the received network distribution request message is valid, the network distribution device sends a network distribution information message to the network distribution device that sent the network distribution request message, so that the network distribution device can access the AP using the network distribution information carried in the network distribution information message.
[0185] S507, end the distribution network process.
[0186] The network distribution process executed on the device side is as follows: Figure 5B ,include:
[0187] S511, enter network distribution mode;
[0188] Users can operate the devices to be distributed, causing them to enter distribution mode. The method by which users operate the devices to enter distribution mode depends on the type of device being distributed.
[0189] S512 sends distribution request messages on various broadcast channels;
[0190] Once the distribution network equipment enters the distribution network mode, it can periodically send distribution network request messages on various broadcast channels.
[0191] S513, check if the distribution network time has expired; if not, proceed to step S514; if yes, proceed to step S517.
[0192] After the device to be distributed enters the distribution mode, the distribution mode can be set with an activation duration, which allows the device to continuously send distribution request messages on various broadcast channels within the activation duration. When the activation duration is reached, the distribution time expires and the distribution process ends.
[0193] S514 passively receives network distribution information messages sent by network-distributed devices;
[0194] During the duration of the network distribution mode activation of the device to be distributed, the device to be distributed can perform broadcast scanning and receive network distribution information messages sent by the devices already distributed.
[0195] S515, verify whether the received distribution network information message is valid; if yes, proceed to step S516; if no, return to step S512.
[0196] After receiving the distribution network information message, the distribution network device decrypts the message. If the message can be successfully decrypted, the received distribution network information message is considered valid.
[0197] S516 utilizes the distribution network information carried in the distribution network information message to perform distribution network;
[0198] After verifying the legitimacy of the distribution network information message, the device to be distributed uses the distribution network information carried in the distribution network information message to access the AP and complete the distribution network.
[0199] S517, end the distribution network process.
[0200] As can be seen, this solution allows pre-configured devices to assist devices in configuration. Specifically, after receiving a configuration request from the device in question, the pre-configured device sends configuration information to it. This function is transitive; once one device completes its configuration, it can then assist other devices not connected to the AP in configuration, thus enabling batch configuration. Furthermore, configuration for individual STAs does not require AP cooperation, exhibiting strong independence. Therefore, this solution eliminates the need for cooperation between APs and STAs, enabling automatic configuration even when APs and STAs cannot cooperate, thereby improving configuration efficiency.
[0201] Corresponding to the above method embodiments, this application also provides a distribution network system, such as... Figure 6 As shown, it includes a first network device 610 that is currently connected to the AP and a second network device 620 that is not currently connected to the AP;
[0202] The first network device 610 is used to execute the above-described network configuration method provided from the first network device side that is currently connected to the AP;
[0203] The second network device 620 is used to perform the above-described network configuration method provided from the side of the second network device that is not currently connected to the AP.
[0204] The specific functional implementation of the first and second network devices involved in this system can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.
[0205] Corresponding to the above-described network configuration method provided by the first network device currently connected to the AP, this application embodiment also provides a network configuration device applied to the first network device currently connected to the AP, such as... Figure 7 As shown, the device includes:
[0206] The first receiving module 710 is used to receive a network distribution request message sent by a second network device that is not currently connected to the AP, which requests network distribution information.
[0207] The first sending module 720 is used to send a network distribution information message carrying the network distribution information of the AP to the second network device, so that the second network device can access the AP using the network distribution information carried in the received network distribution information message.
[0208] Optionally, the network distribution information message sent by the first network device carries the remaining network distribution time;
[0209] The first receiving module 710 is specifically configured to: receive a network distribution request message sent by a second network device that is not currently connected to the AP, requesting network distribution information, when the current remaining network distribution time is greater than 0; wherein, the current remaining network distribution time is the difference between the received remaining network distribution time and the current spent time; the current spent time is the duration between the time when the received remaining network distribution time was received and the current time.
[0210] The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment.
[0211] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0212] Optionally, the distribution information message sent by the first network device carries a signal strength threshold.
[0213] The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP;
[0214] The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP;
[0215] The first sending module 720 is specifically used to: send a distribution network information message carrying the distribution network information to the second network device when it is determined that the received signal strength indicator (RSSI) value of the received distribution network request message is not less than a pre-acquired signal strength threshold.
[0216] Optionally, the first network device sends the distribution network information message as an encrypted message, so that the second network device can access the AP using the distribution network information obtained by decrypting the received distribution network information message.
[0217] Corresponding to the above-described network configuration method provided by a second network device that is not currently connected to an AP, this application embodiment also provides a network configuration device applied to the second network device that is not currently connected to an AP, such as... Figure 8 As shown, the device includes:
[0218] The second sending module 810 is used to send a network distribution request message for requesting network distribution information;
[0219] The second receiving module 820 is configured to, in response to receiving a distribution information message carrying distribution information of the AP, access the AP using the distribution information carried in the received distribution information message; wherein, the distribution information message is sent by the first network device currently connected to the AP to the second network device after receiving a distribution request message sent by the second network device.
[0220] Optionally, the device further includes:
[0221] The third receiving module is used to access the AP by receiving the AP's network configuration information sent by the designated user equipment when the second network device has established a communication connection with the designated user equipment; wherein the received network configuration information is input by the user through the designated user equipment.
[0222] Optionally, the distribution network information message carries the remaining distribution network duration;
[0223] If the first network device currently connected to the AP receives a network distribution request message sent by the second network device to request network distribution information when the current remaining network distribution time is greater than 0; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time was received and the current time;
[0224] The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment.
[0225] The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
[0226] Optionally, the distribution network information message carries a signal strength threshold;
[0227] The network distribution information message is sent by the first network device currently connected to the AP after receiving the network distribution request message sent by the second network device, and after determining that the Received Signal Strength Indicator (RSSI) value of the received network distribution request message is greater than a pre-acquired signal strength threshold.
[0228] The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP;
[0229] The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP.
[0230] Optionally, the distribution network information message is an encrypted message;
[0231] The second receiving module 820 is specifically used to: access the AP using the distribution network information obtained by decrypting the received distribution network information message.
[0232] In the technical solution of this application, all operations involving the acquisition, storage, use, processing, transmission, provision, and disclosure of distribution network information and equipment identification are carried out with the user's authorization.
[0233] This application also provides an electronic device, such as... Figure 9 As shown, it includes:
[0234] Memory 901 is used to store computer programs;
[0235] The processor 902, when executing the program stored in the memory 901, implements the steps of any of the above-mentioned network distribution methods;
[0236] Furthermore, the aforementioned electronic device may also include a communication bus and / or a communication interface, with the processor 902, communication interface, and memory 901 communicating with each other via the communication bus.
[0237] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not indicate that there is only one bus or one type of bus.
[0238] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0239] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0240] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0241] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described distribution network methods.
[0242] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the network distribution methods described above.
[0243] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a solid-state drive (SSD), etc.
[0244] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0245] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, systems, electronic devices, and computer-readable storage media are basically similar to the method embodiments, and therefore the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0246] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.
Claims
1. A network configuration method, characterized by, The method, applied to a first network device that is currently connected to a wireless access point (AP), includes: Receive a network configuration request message sent by a second network device that is not currently connected to the AP, requesting network configuration information; Send a network distribution information message carrying the network distribution information of the AP to the second network device, so that the second network device can access the AP using the network distribution information carried in the received network distribution information message.
2. The method of claim 1, wherein, The network distribution information message sent by the first network device carries the remaining network distribution time; The receiving of a network configuration request message from a second network device that is not currently connected to the AP, requesting network configuration information, includes: If the current remaining network distribution time is greater than 0, a network distribution request message for requesting network distribution information is received from a second network device that is not currently connected to the AP; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time is received and the current time; The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment. The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
3. The method according to claim 1 or 2, characterized in that, The distribution information message sent by the first network device carries a signal strength threshold. The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP; The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP; Sending the distribution network information message carrying the distribution network information to the second network device includes: If the received signal strength index (RSSI) of the received distribution network request message is determined to be not less than the pre-acquired signal strength threshold, a distribution network information message carrying the distribution network information is sent to the second network device.
4. The method according to any one of claims 1 to 3, characterized in that, The first network device sends the distribution network information message as an encrypted message, so that the second network device can access the AP using the distribution network information obtained by decrypting the received distribution network information message.
5. A network configuration method characterized by comprising: The method, applied to a second network device that is not currently connected to a wireless access point (AP), includes: Send a network distribution request message to request network distribution information; In response to receiving a distribution information message carrying the distribution information of the AP, the network device accesses the AP using the distribution information carried in the received distribution information message; wherein, the distribution information message is sent by the first network device that is currently connected to the AP to the second network device after receiving a distribution request message sent by the second network device.
6. The method of claim 5, wherein, The method further includes: If the second network device has established a communication connection with the designated user equipment, then upon receiving the network configuration information of the AP sent by the designated user equipment, it uses the received network configuration information to access the AP; wherein the received network configuration information is input by the user through the designated user equipment.
7. The method according to claim 5 or 6, characterized in that, The distribution network information message carries the remaining distribution network duration; If the first network device currently connected to the AP receives a network distribution request message sent by the second network device to request network distribution information when the current remaining network distribution time is greater than 0; wherein, the current remaining network distribution time is: the difference between the received remaining network distribution time and the current spent time; the current spent time is: the time between the time when the received remaining network distribution time was received and the current time; The remaining network configuration duration received by the first network device connected to the AP is: sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP accesses the AP using the network configuration information of the AP sent by the designated user equipment. The remaining network distribution duration carried in the network distribution information message sent by any network device currently connected to the AP is: the remaining network distribution duration when the network device sends the network distribution information message.
8. The method according to claim 5 or 6, characterized in that, The distribution network information message carries a signal strength threshold. The network distribution information message is sent by the first network device currently connected to the AP after receiving the network distribution request message sent by the second network device, and after determining that the Received Signal Strength Indicator (RSSI) value of the received network distribution request message is greater than a pre-acquired signal strength threshold. The signal strength threshold in the distribution information message sent by the first network device connected to the AP is sent by the designated user equipment to the first network device connected to the AP; the first network device connected to the AP uses the distribution information of the AP sent by the designated user equipment to access the AP; The signal strength threshold carried in the distribution information message sent by any first network device other than the first one connected to the AP is: the signal strength threshold carried in the distribution information message received by the first network device before it connected to the AP.
9. The method according to claim 5 or 6, characterized in that, The distribution network information message is an encrypted message; The step of accessing the AP using the distribution network information carried in the received distribution network information message includes: The distribution network information obtained by decrypting the received distribution network information message is used to access the AP.
10. A network configuration system characterized by comprising: This includes a first network device that is currently connected to a wireless access point (AP) and a second network device that is not currently connected to the AP; The first network device is configured to perform the method according to any one of claims 1-4; The second network device is configured to perform the method according to any one of claims 5-9.
11. A network device, comprising: A first network device applied to a currently connected wireless access point (AP), the device comprising: The first receiving module is used to receive a network distribution request message sent by a second network device that is not currently connected to the AP, which requests network distribution information. The first sending module is used to send a network distribution information message carrying the network distribution information of the AP to the second network device, so that the second network device can access the AP using the network distribution information carried in the received network distribution information message.
12. A network device, comprising: A second network device applied to a wireless access point (AP) that is not currently connected to, the device comprising: The second sending module is used to send a network distribution request message for requesting network distribution information; The second receiving module is configured to, in response to receiving a distribution information message carrying the distribution information of the AP, access the AP using the distribution information carried in the received distribution information message; wherein, the distribution information message is sent by the first network device currently connected to the AP to the second network device after receiving a distribution request message sent by the second network device.
13. An electronic device, comprising: include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-9.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-9.