Network distribution method, electronic equipment and storage medium
By acquiring and establishing a wireless communication connection, multiple target devices are distributed networks, the inefficiency problem caused by distribution networks in the prior art is solved, and efficient multi-device distribution network operation is achieved.
Patent Information
- Application Number
- CN202510749247.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-07-18
AI Technical Summary
When multiple terminal devices require wireless communication connection, the existing technology requires the distribution network setting for each terminal device one by one, resulting in the distribution network operation being cumbersome, time-consuming and low efficiency.
By acquiring device information of multiple target devices within a preset range, and establishing a wireless communication connection between each target device and an electronic device, the target device is distributed to the network based on the device information.
It realizes the distribution network of multiple target equipment at the same time, improving the distribution network efficiency.
Smart Images

Figure CN120343669A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technologies, and in particular, to a network configuration method, an electronic device, and a storage medium. Background Art
[0002] With the development of Internet of Things technologies, information interaction and remote control can be achieved through wireless communication connections between terminal devices. Before wireless communication connections are established between terminal devices, network configuration needs to be performed on the terminal devices. In related technologies, when multiple terminal devices need to perform wireless communication connections, it is usually necessary to perform network configuration settings on each terminal device one by one. The corresponding network configuration operations are too cumbersome and time-consuming, resulting in low network configuration efficiency. Summary of the Invention
[0003] In view of this, embodiments of this application provide a network configuration method, an electronic device, a self-mobile device, and a storage medium to solve the problem in related technologies that when multiple terminal devices need to perform wireless communication connections, network configuration needs to be performed on each terminal device one by one, resulting in low network configuration efficiency.
[0004] In a first aspect, an embodiment of this application provides a network configuration method applied to an electronic device. The method includes: obtaining device information of a plurality of target devices within a preset range of the electronic device, where the plurality of target devices are devices to be subjected to network configuration operations; establishing a wireless communication connection between each target device and the electronic device; and performing network configuration on each target device based on the device information corresponding to each target device.
[0005] In a possible implementation, the method further includes: uploading first location information of the electronic device to a server, and receiving device information of the plurality of target devices sent by the server, where second location information corresponding to each target device is within the preset range of the first location information.
[0006] In a possible implementation, the obtaining device information of a plurality of target devices within a preset range of the electronic device includes: obtaining the device information of the plurality of target devices by establishing a Near Field Communication (NFC) connection, a Bluetooth communication connection, or a Wi-Fi communication connection with each target device.
[0007] In a possible implementation, the obtaining device information of a plurality of target devices within a preset range of the electronic device includes: broadcasting a wireless communication connection request, and receiving response information of the plurality of target devices to the wireless communication connection request; and obtaining the device information of the plurality of target devices based on the response information.
[0008] In a possible implementation, establishing a wireless communication connection between each target device and the electronic device includes: when the device information of each target device is legal, obtaining the key sent by each target device based on the response information; verifying the key, and when the key passes the verification, establishing a wireless communication connection between each target device and the electronic device.
[0009] In a possible implementation, the method further includes: when the device information of each target device is not configured and bound to the network, determining that the device information of each target device is legal.
[0010] In a possible implementation, configuring each target device based on the device information corresponding to each target device includes: obtaining the hardware information of each target device, binding the hardware information of each target device to the corresponding user account information, and uploading the binding information to the server; sending the network parameters of the network device to each target device, and verifying each target device after each target device connects to the network.
[0011] In a possible implementation, the method further includes: when the hardware information of each target device conforms to a preset rule, binding the hardware information of each target device to the corresponding user account information.
[0012] In a second aspect, an embodiment of the present application provides an electronic device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the above-mentioned network configuration method.
[0013] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor in an electronic device, the above-mentioned network configuration method is implemented.
[0014] The network configuration method, electronic device, and computer-readable storage medium provided by the embodiments of the present application can obtain the device information of multiple target devices to be network-configured within a preset range, and after establishing a communication connection between each target device and the electronic device, configure each target device based on the device information of each target device, which can achieve network configuration of multiple target devices simultaneously and effectively improve the network configuration efficiency. Description of the Drawings
[0015] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on the provided drawings.
[0016] Figure 1 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
[0017] Figure 2 It is a schematic diagram of the hardware structure of a self - moving device provided by an embodiment of the present application.
[0018] Figure 3 It is a flowchart of a network configuration method provided by an embodiment of the present application.
[0019] Figure 4 It is a flowchart of a network configuration method provided by another embodiment of the present application. Detailed implementation manners
[0020] In order to make the purpose, technical solutions, and advantages of the present application clearer, the following will describe the present application in detail with reference to the accompanying drawings and specific embodiments.
[0021] It should be noted that in the present application, "at least one" means one or more, and "a plurality" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the description, claims, and drawings of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0022] In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific manner. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0023] With the development of Internet of Things technology, terminal devices can achieve information interaction and remote control through wireless communication connections. Before the terminal devices are wirelessly communication-connected, network configuration needs to be performed on the terminal devices. In related technologies, when multiple terminal devices need to be wirelessly communication-connected, it is usually necessary to perform network configuration settings on each terminal device one by one. The corresponding network configuration operations are too cumbersome and time-consuming, resulting in low network configuration efficiency.
[0024] For example, the terminal device can be a self-mobile device (such as a lawn mowing robot, a cleaning robot, a food delivery robot, etc.). Using the self-mobile device to replace manual work can greatly improve work efficiency. In other embodiments of the present application, the terminal device can also be a smart home device such as a smart TV or a smart light.
[0025] To solve the problem that when multiple terminal devices need to be wirelessly communication-connected, it is necessary to perform network configuration on each terminal device one by one, resulting in low network configuration efficiency, the embodiments of the present application provide a network configuration method. The method can obtain the device information of multiple target devices to be network-configured within a preset range. After each target device establishes a communication connection with the electronic device, network configuration is performed on each target device based on the device of each target device, and network configuration of multiple target devices can be achieved simultaneously, effectively improving the network configuration efficiency.
[0026] Refer to Figure 1 As shown, it is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. The electronic device 100 includes, but is not limited to, a processor 110 and a memory 120 connected through a communication bus 130. Figure 1 This is only an example of the electronic device and does not constitute a corresponding limitation. In other embodiments of the present application, the electronic device may include more components than those shown in the figure. The network configuration method provided by the embodiments of the present application is applied to the electronic device 100, and the electronic device 100 can be a smart phone, a personal computer, a wearable device, etc.
[0027] Refer to Figure 2 As shown, it is a schematic diagram of the hardware structure of a self-mobile device provided by an embodiment of the present application. The network configuration method in the embodiments of the present application can perform network configuration on the self-mobile device 1. The self-mobile device 1 includes a body and a memory 11, a processor 12, a power supply 13, a sensor 14, a working mechanism 15, a communication module 16, a positioning module 17, a driving wheel 18, and a bus 19 provided on the body. The processor 12 is respectively coupled to the memory 11, the power supply 13, the sensor 14, the working mechanism 15, the communication module 16, the positioning module 17, and the driving wheel 18 through the bus 19. The self-mobile device 1 is an electronic device with a self-mobile function, such as a lawn mowing robot, a cleaning robot, a food delivery robot, etc.
[0028] The memory 11 may include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs). The random access memory can be directly read and written by the processor 12, and can be used to store the operating system or executable programs of other running programs (such as machine instructions), and can also be used to store user and application data, etc. The random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), etc.
[0029] The non-volatile memory can also store executable programs and store user and application data, etc., and can be pre-loaded into the random access memory for direct reading and writing by the processor 12. The non-volatile memory can include disk storage devices and flash memory.
[0030] The memory 11 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 12. The one or more computer programs include a plurality of instructions, and when the plurality of instructions are executed by the processor 103, a network configuration method executed on the self-mobile device 1 can be realized.
[0031] In other embodiments, the self-mobile device 1 further includes an external memory interface for connecting to an external memory to expand the storage capacity of the self-mobile device 1.
[0032] The processor 12 may include one or more processing units. For example, the processor 12 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0033] The processor 12 provides computing and control capabilities. For example, the processor 12 is used to execute the computer program stored in the memory 11 to implement the above-mentioned network configuration method.
[0034] The power supply 13 is used to supply power to the self-mobile device. In an embodiment of the present application, the power supply 13 may include any one or more of power supply devices such as a battery, a fuel generator, a solar power generation module, and a wind power generation module.
[0035] The sensor 14 is used to obtain information for the self-mobile device 1, such as obtaining environmental information and movement information of the self-mobile device 1. In an embodiment of the present application, the sensor 14 may include one or more of sensors such as a lidar, a camera device, an infrared sensor, and an encoder.
[0036] The working mechanism 15 is used to perform corresponding working tasks. For example, mowing, cruising, cleaning, and spraying pesticides, etc. In some embodiments of the present application, the working mechanism 15 may include mechanisms such as a motor, a transmission mechanism, and a cutter head. In some embodiments of the present application, the motor may drive the cutter head to rotate through the transmission mechanism to achieve the mowing function. The motor can also control the movement of the blade to adjust the mowing height and mowing area.
[0037] The communication module 16 is used to realize the communication between the self-mobile device and other devices. In an embodiment of the present application, the communication module 16 may perform data interaction with other devices based on wired communication and / or wireless communication. The above wireless communication may include one or more combinations of communication methods such as Bluetooth communication, Wi-Fi communication, and Near Field Communication (NFC).
[0038] The positioning module 17 is used to determine the position of the self - moving device. In some embodiments of the present application, the positioning module 17 may include one or more of positioning modules of types such as Global Positioning System (GPS), inertial navigation system, Real - time kinematic (RTK) carrier phase differential system, etc.
[0039] The drive wheels 18 are used to enable the self - moving device to move. In some embodiments of the present application, the drive wheels 18 can implement the moving function of the self - moving device according to the control of the processor 12. In some embodiments of the present application, the drive wheels 18 may include a left drive wheel and a right drive wheel.
[0040] The bus 19 is at least used to provide a communication channel for mutual communication among the memory 11, processor 12, power supply 13, sensor 14, working mechanism 15, communication module 16, positioning module 17, and drive wheels 18 in the self - moving device 1.
[0041] In other embodiments of the present application, the self - moving device 1 may further include an anti - collision part and a steering component, etc. The anti - collision part can be used to prevent the drive wheels 18 from colliding with obstacles in front of the self - moving device. The steering component can be used to enable the drive wheels 18 to adjust the driving direction.
[0042] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the self - moving device 1. In other embodiments of the present application, the self - moving device 1 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0043] Refer to Figure 3 As shown, it is a flowchart of a network configuration method provided by an embodiment of the present application. The network configuration method can be applied to an electronic device 100 as shown in Figure 1 As shown. The network configuration method includes the following steps: S101, obtain device information of multiple target devices within a preset range of the electronic device.
[0044] In an embodiment of the present application, the multiple target devices are devices to be subjected to network configuration operations. By scanning the identification codes of each target device, the device information of the multiple target devices is obtained. The device information of the target device may include device name, device model, etc. In other embodiments of the present application, the device information of the target device may further include the device name, device model, etc. of the network device corresponding to the target device. The network device may be a router, a communication base station, etc.
[0045] For example, the identification code may be a QR code. Before leaving the factory, the target device records the device information in the QR code and sets the QR code on the body of the target device. In this way, the electronic device can obtain the device information of the target device by capturing the QR code with the camera device. In other embodiments of the present application, the identification code may also be a bar code.
[0046] In another embodiment of the present application, the electronic device may also establish a Near Field Communication (NFC) with each of the target devices to obtain the device information of the multiple target devices. The target device may be built with an NFC chip, record the device information in the NFC chip, and set a prompt for the position of the NFC chip on the body. The user can control the electronic device to approach the NFC chip according to the prompt and communicate with the NFC chip to read the device information in the NFC chip. In other embodiments of the present application, the device information of the multiple target devices may also be obtained by establishing a Bluetooth communication connection or a Wi-Fi communication connection with each target device.
[0047] In another embodiment of the present application, the electronic device may broadcast a wireless communication connection request and receive the response information of the multiple target devices to the wireless communication connection request. The electronic device obtains the device information of each target device based on the response information.
[0048] For example, the wireless communication connection request may be a Bluetooth connection request. The electronic device broadcasts the Bluetooth connection request through the broadcast channel. When the target device turns on the Bluetooth function, it can receive the Bluetooth connection request and broadcast the response information through the broadcast channel. The response information includes the device information. In this way, the electronic device can receive the device information of the target device. At this time, the preset range of the electronic device is the communication range of Bluetooth. The electronic device scans the surrounding devices through Bluetooth to confirm whether the target device is within the preset range of the electronic device. If the electronic device does not receive the response information, it outputs a prompt message to remind the user to confirm whether the target device is near the electronic device or whether the target device is normally powered on. In other embodiments of the present application, the wireless communication connection request may also be a Wi-Fi connection request.
[0049] In another embodiment of the present application, upload the first location information of the electronic device to the server, and receive the device information of the multiple target devices sent by the server. The second location information corresponding to each target device is within the preset range of the first location information. For example, the first location information and the second location information may be longitude and latitude information.
[0050] For example, the server can provide a network configuration system for the target device. The network configuration system records the second location information and device information of the pre-registered target device. The electronic device can log in to or access the network configuration system through a web page or an application. The target device can be registered in the network configuration system through the SN (Serial Number) code or MAC address. After binding the SN code or MAC address with the second location information and device information, it is uploaded to the server and stored in the network configuration system. After the electronic device logs in to the network configuration system, it uploads the current location information as the first location information to the server. The server compares the second location information of all registered target devices with the first location information, determines the second location information within the preset range of the first location information, and sends the device information of the target device corresponding to the second location information within the preset range of the first location information to the electronic device. In this way, the electronic device can receive the device information of multiple target devices within the preset range. For example, the first preset range can be a radius of 3 meters, 5 meters, 10 meters, or other distance ranges.
[0051] S102. Establish a wireless communication connection between each target device and the electronic device.
[0052] In an embodiment of the present application, based on the response information, obtain the key sent by each target device, verify the key, and establish a wireless communication connection between each target device and the electronic device when the key passes the verification.
[0053] In an embodiment of the present application, after receiving the Bluetooth connection request, the response information broadcast by the target device through the broadcast channel further includes a key for establishing a Bluetooth connection, and the key is a Bluetooth pairing code. After receiving the response information, the electronic device obtains the device information and the key in the response information, verifies the key, determines whether the key is the same as the preset key. If the key is the same as the preset key, it is determined that the key passes the verification. If the key is different from the preset key, it is determined that the key fails to pass the verification. When the key passes the verification, establish a Bluetooth connection between each target device and the electronic device.
[0054] In another embodiment of the present application, after the electronic device logs in to the network configuration system, the device names of the multiple target devices are displayed on the web page interface or application interface corresponding to the network configuration system. The user can manually select all or part of the multiple target devices for network configuration. If the user selects part of the devices for network configuration, the electronic device establishes a wireless communication connection with the selected target devices.
[0055] S103. Perform network configuration on each target device based on the device information corresponding to each target device.
[0056] In one embodiment of the present application, obtain the hardware information of each target device, bind the hardware information of each target device with the corresponding user account information, upload the binding information to the server, send the network parameters of the network device to each target device, and verify each target device when each target device connects to the network.
[0057] In one embodiment of the present application, the hardware information of the target device is the MAC address, and the user account information can be the account information of the electronic device user. After binding the MAC address of each target device with the user account information, upload the binding information to the server. If the network device is a router, the network parameters of the network device include, but are not limited to: network name, preset connection password. Send the network parameters to the target device, so that the target device connects to the wireless network provided by the network device based on the network parameters. During the process of the target device connecting to the network, verify the target device, and determine whether the connection password sent by the target device is the same as the preset connection password. If the connection password sent by the target device is the same as the preset connection password, it is determined that the target device passes the verification, and the target device is allowed to access the network provided by the network device, and the target device completes network configuration. If the connection password sent by the target device is different from the preset connection password, it is determined that the target device fails to pass the verification, and the target device is not allowed to access the network provided by the network device, and the target device fails to configure the network.
[0058] In another embodiment of the present application, the hardware information of the target device includes the characteristic value and the encrypted field of the target device. During the process of the target device establishing a wireless communication connection with the electronic device, the response information sent to the electronic device also includes the encoded hardware information. After the electronic device receives the hardware information, it determines whether the hardware information conforms to the preset rules. Specifically, the electronic device decodes the encoded hardware information, determines whether the data format obtained by decoding is the preset format, and determines whether the data obtained by decoding is complete. If the data format obtained by decoding is the preset format and the data obtained by decoding is complete, it is determined that the hardware information conforms to the preset rules. If the data format obtained by decoding is not the preset format or the data obtained by decoding is incomplete, it is determined that the hardware information does not conform to the preset rules. In the case where the hardware information of the target device conforms to the preset rules, bind the hardware information of the target device with the corresponding user account information. In the case where the hardware information of the target device does not conform to the preset rules, the hardware information of the target device will not be bound with the corresponding user account information.
[0059] Through the above embodiments of the present application, the electronic device can obtain the device information of multiple target devices to be networked within a preset range. After establishing a communication connection between each target device and the electronic device, network the each target device based on the device information of each target device, which can achieve networking for multiple target devices simultaneously and effectively improve the networking efficiency.
[0060] Refer to Figure 4 As shown, it is a flowchart of a networking method provided by another embodiment of the present application. The networking method can be applied to an electronic device 100 as shown in Figure 1 As shown. The networking method includes the following steps: S201, Obtain the device information of multiple target devices within the preset range of the electronic device.
[0061] S202, Determine whether the device information of each target device is legal. If the device information of each target device is legal, the process proceeds to S203; if the device information of any target device is illegal, the process proceeds to S204.
[0062] In an embodiment of the present application, when the device information of the target device is not networked and bound, it is determined that the device information of the target device is legal.
[0063] Specifically, after receiving the device information of the target device, the electronic device sends the device information of the target device to the server, and the server verifies whether the device information of the target device is legal, the server determines whether the device information has been networked and bound, and determines whether the corresponding target device is legal based on the device information. If the device information has not been networked and bound, and the corresponding target device is determined to be legal based on the device information, it is determined that the device information of the target device is legal, and the verification result is sent to the electronic device. If the device information has been networked and bound, and the corresponding target device is determined to be illegal based on the device information, it is determined that the device information of the target device is illegal, and the verification result is sent to the electronic device.
[0064] For example, the server can query the production record and sales channel of the corresponding target device based on the device information. If the production record and sales channel of the target device corresponding to the device information are obtained, it is determined that the target device is legal. If the production record and sales channel of the target device corresponding to the device information are not obtained, it is determined that the target device is illegal.
[0065] S203, Establish a wireless communication connection between each target device and the electronic device.
[0066] In an embodiment of the present application, when the device information of each target device is legal, a key sent by each target device is obtained based on the response information, the key is verified, and when the key passes the verification, a wireless communication connection is established between each target device and the electronic device.
[0067] S204. Establish a wireless communication connection between each target device with legal device information and the electronic device.
[0068] In an embodiment of the present application, if the device information of any target device is illegal, a wireless communication connection is established between each target device with legal device information and the electronic device.
[0069] S205. Perform network configuration for each target device based on the device information corresponding to the target device.
[0070] The specific implementation manners of S201, S203 - S205 are the same as those of S101 - S103, and will not be elaborated herein.
[0071] Through the above embodiments of the present application, after the electronic device receives the device information of the target device, it determines whether the device information is legal, and only performs network configuration for the target device when the device information is legal, effectively improving the success rate of network configuration.
[0072] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program includes program instructions. The method implemented when the program instructions are executed can refer to the methods in the above embodiments of the present application.
[0073] Among them, the computer-readable storage medium may be the internal memory of the electronic device described in the above embodiment, such as the hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the self-mobile device, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.
[0074] In an embodiment of the present application, the computer-readable storage medium may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, application programs required for at least one function, etc.; the storage data area may store data created according to the use of the self-mobile device.
[0075] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For parts not detailed or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0076] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0077] In the embodiments provided in this application, it should be understood that the disclosed device / terminal device and method can be implemented in other ways. For example, the device / terminal device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0078] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0079] The above-described embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of this application, and should all be included in the protection scope of this application.
Claims
1. A power distribution method, applied to an electronic device, characterized in that The method includes: Obtaining device information of multiple target devices within a preset range of the electronic device, where the multiple target devices are devices to perform network configuration operations; Establishing a wireless communication connection between each target device and the electronic device; Performing network configuration on each target device based on the device information corresponding to each target device.
2. The power distribution method according to claim 1, characterized in that The method further includes: Uploading first location information of the electronic device to the server, and receiving device information of the multiple target devices sent by the server, where the second location information corresponding to each target device is within the preset range of the first location information.
3. The distribution network method according to claim 1, wherein The obtaining device information of multiple target devices within a preset range of the electronic device includes: Obtaining device information of the multiple target devices by establishing a Near Field Communication (NFC) connection, a Bluetooth communication connection, or a Wi-Fi communication connection with each target device.
4. The power distribution method according to claim 1, characterized in that, The obtaining device information of multiple target devices within a preset range of the electronic device includes: Broadcasting a wireless communication connection request and receiving response information of the multiple target devices to the wireless communication connection request; Based on the response information, obtaining device information of the multiple target devices.
5. The power distribution method according to claim 4, characterized in that, The establishing a wireless communication connection between each target device and the electronic device includes: In the case where the device information of each target device is legal, obtaining a key sent by each target device based on the response information; Verifying the key, and in the case where the key passes the verification, establishing a wireless communication connection between each target device and the electronic device.
6. The power distribution method according to claim 5, characterized in that The method further includes: Determining that the device information of each target device is legal in the case where the device information of each target device is not network-configured and bound.
7. The power distribution method according to claim 1, wherein The performing network configuration on each target device based on the device information corresponding to each target device includes: Obtaining hardware information of each target device, binding the hardware information of each target device with corresponding user account information, and uploading the binding information to the server; Sending network parameters of the network device to each target device, and verifying each target device after each target device connects to the network.
8. The distribution network method according to claim 7, wherein The method further includes: Binding the hardware information of each target device with corresponding user account information in the case where the hardware information of each target device conforms to a preset rule.
9. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the network configuration method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor in an electronic device, the network configuration method as described in any one of claims 1 to 8 is implemented.