Network distribution method, module, device and computer readable medium
By collecting smart home device information through proxy devices and using servers for network configuration, the problem of cumbersome and time-consuming network configuration steps for smart home devices is solved, and fast one-click network configuration and intelligent operation are achieved.
Patent Information
- Application Number
- CN202211643872.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2042-12-20
AI Technical Summary
The steps for configuring smart home devices are cumbersome and time-consuming. The existing configuration-free method based on WiFi AP mode still requires obtaining identification data, which makes the configuration process cumbersome.
The proxy device collects the device information of unconnected devices in the target area and sends it to the mobile terminal and server for storage. When the user issues a network connection request on the mobile terminal, the server connects to the network based on the device information.
It realizes fast one-click network configuration of smart home devices, reduces user operation waiting time, and improves the convenience and intelligence of the network configuration process.
Smart Images

Figure CN116094909B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and particularly relates to a network configuration method, a module, a device and a computer readable medium. BACKGROUND
[0002] With the update iteration of communication technology, the Internet of Things thought of everything connected has entered all aspects of home life. In the field of smart home, smart home devices have become the first choice of users for home products. However, each smart home device needs to be configured to complete remote control and other intelligent operations. When the number of smart home devices is large, the cumbersome and time-consuming network configuration steps of each smart home device have always been a pain point for users using smart home devices.
[0003] At present, in the related technology, the network configuration method based on the AP mode of WiFi can be used. However, this method still avoids obtaining the identification data of the smart home, and then obtaining the device identification data of the smart home from the cloud according to the identification data, and sending the device identification data to the smart home through the mobile terminal to activate and connect the smart home. The scheme still has a cumbersome network configuration process.
[0004] At present, there is no effective solution to the problem of cumbersome and time-consuming network configuration steps of smart home devices. SUMMARY
[0005] The present application provides a network configuration method, a module, a device and a computer readable medium to solve the technical problem of cumbersome and time-consuming network configuration steps of smart home devices.
[0006] According to one aspect of the embodiments of the present application, the present application provides a network configuration method, comprising: collecting device information of unconfigured devices in a target area through a proxy device, wherein the proxy device is a configured device in the target area; sending the device information to a mobile terminal for display and to a server for storage; and in the case that the mobile terminal sends a network configuration request of a target device, configuring the target device based on the device information of the target device through the server, wherein the target device is an unconfigured device.
[0007] Optionally, before collecting the device information of the unconfigured devices in the target area through the proxy device, the method further comprises determining the proxy device in the following manner: searching for and identifying configured devices; dividing the configured devices into a plurality of preset areas according to the locations of the configured devices; selecting a center device in each preset area from all the configured devices in the respective area; and determining the center device as the proxy device of the corresponding area.
[0008] Optionally, the screening of the center device in each preset area from all the networked devices in the respective area comprises: sending a center device election instruction to all the networked devices, so that all the networked devices detect the signal strength and relative distance of other networked devices in the respective area, and the center device in the respective area is elected according to the signal strength and relative distance.
[0009] Optionally, the collecting of the device information of the non-networked device in the target area by the proxy device comprises: scanning all the devices in the target area by the proxy device according to a preset period when the proxy device does not establish a communication connection with the server; and collecting the device information of the non-networked device when a hot spot of the non-networked device is scanned.
[0010] Optionally, the network configuration of the target device by the server based on the device information of the target device comprises: broadcasting, by the server, encrypted data carrying the device information of the target device and a server password, so that the target device receives and reads the server password, and connects the server for network configuration according to the server password, wherein the device information of the target device is used to set the target device as a readable device of the server password.
[0011] Optionally, the method further comprises: in the case that the mobile terminal issues a one-key network configuration request of a plurality of target devices, broadcasting, by the server, encrypted data carrying the device information of each target device and a server password, so that each target device receives and reads the server password, and connects the server for network configuration according to the server password, wherein the device information of each target device is used to set each target device as a readable device of the server password.
[0012] According to another aspect of the embodiments of the present application, the present application provides a network configuration module, comprising: a proxy unit configured to collect device information of a non-networked device in a target area by a proxy device, wherein the proxy device is a networked device in the target area; a distribution unit configured to send the device information to a mobile terminal for display, and send the device information to a server for storage; and a network configuration unit configured to network configure a target device based on device information of the target device by a server in the case that the mobile terminal issues a network configuration request of the target device, wherein the target device is the non-networked device.
[0013] According to another aspect of the embodiments of the present application, the present application provides an electronic device, comprising a memory, a processor, a communication interface and a communication bus, the memory stores a computer program which can be run on the processor, the memory, the processor and the communication interface communicate through the communication bus, and the processor implements the steps of the above method when executing the computer program.
[0014] According to another aspect of the embodiments of the present application, the present application further provides a computer readable medium having non-volatile program codes executable by a processor, the program codes causing the processor to perform the method described above.
[0015] The above technical solution provided by the embodiments of the present application has the following advantages compared with the related art.
[0016] The technical solution of the present application collects the device information of the un-networked device in the target area through the proxy device, wherein the proxy device is a networked device in the target area; the device information is sent to the mobile terminal for display and to the server for storage; in the case that the mobile terminal issues a network configuration request for the target device, the server configures the network for the target device based on the device information of the target device, wherein the target device is an un-networked device. The present application completes the step of collecting the un-networked device information in the mobile terminal AP network configuration process through the proxy device, so that the smart home does not need to obtain the identification data of the smart home from the mobile terminal during network configuration, and the user can quickly one-key network configuration, solving the technical problem of complicated and time-consuming smart home device network configuration steps. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the accompanying drawings needed to be used in the embodiments or related art description will be briefly introduced. Obviously, those skilled in the art can obtain other drawings according to these drawings without any creative effort.
[0019] Figure 1 An optional network configuration method hardware environment schematic diagram is provided according to the embodiments of the present application;
[0020] Figure 2 An optional network configuration method flowchart schematic diagram is provided according to the embodiments of the present application;
[0021] Figure 3 An optional overall flowchart schematic diagram is provided according to the embodiments of the present application;
[0022] Figure 4 An optional network configuration module block diagram is provided according to the embodiments of the present application;
[0023] Figure 5 An optional electronic device structure schematic diagram is provided according to the embodiments of the present application. DETAILED DESCRIPTION
[0024] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0025] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of this application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.
[0026] In the related technology, a network configuration-free method based on the WiFi AP mode can be adopted. However, although this method reduces the network configuration process to a certain extent, it still cannot avoid obtaining the identification data of the smart home, and then obtaining the device identification data of the smart home from the cloud based on the identification data, and sending the device identification data to the smart home through the mobile terminal to activate and connect the smart home solution. The network configuration process is still cumbersome.
[0027] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of a network distribution method is provided.
[0028] Optionally, in the embodiment of the present application, the above network configuration method can be applied to Figure 1 In the hardware environment shown in FIG. 1 , a mobile terminal 101, a server 103, and an agent device 105 are formed. Figure 1 As shown, the server 103 is connected to the mobile terminal 101 and the proxy device 105 through a network, and can be used to provide services (such as network distribution services) for the mobile terminal or the proxy device. The above-mentioned network provides but is not limited to: wide area network, metropolitan area network or local area network, the mobile terminal 101 includes but is not limited to PC, mobile phone, tablet computer, etc., and the proxy device 105 includes but is not limited to smart home.
[0029] A network configuration method in the embodiment of the present application can be executed by the server 103, or can be executed jointly by the server 103 and the mobile terminal 101, such as Figure 2 As shown, the method may include the following steps:
[0030] Step S202: collecting device information of unconfigured devices in the target area through a proxy device, wherein the proxy device is a configured device in the target area;
[0031] Step S204: sending the device information to the mobile terminal for display and sending the device information to the server for storage;
[0032] Step S206, in the case that the mobile terminal sends a network configuration request of the target device, the server configures the network for the target device based on the device information of the target device, wherein the target device is an unconfigured device.
[0033] Through steps S202 to S206, the application completes the step of collecting device information of the unconfigured device in the mobile terminal AP network configuration process by the proxy device, so that the smart home does not need to obtain the identification data of the smart home by the mobile terminal during network configuration. The user can quickly configure the network by one key, which solves the technical problem of complicated and time-consuming smart home device network configuration steps. The user can manually select the network configuration device and perform one-key networking operation, so that the user can remotely obtain the related information of the unconfigured device through the proxy device, without repeating the network configuration process for each device, reducing the operation waiting time of the user during the network configuration process, and making the network configuration process of the entire smart home system more humanized, intelligent and convenient.
[0034] In step S202, the application gives the permission to the configured device in the specified area, so as to complete the collection of device information of the unconfigured device in the area as a proxy device. The application integrates the device information of the unconfigured device and pushes it to the user when the mobile device logs in the application. The user confirms the unconfigured device and performs one-key network configuration operation, which reduces the cumbersome process of network configuration of each device by the user, and makes the device network configuration more intelligent and humanized. The selection of the proxy device is described below.
[0035] Optionally, before the proxy device collects the device information of the unconfigured device in the target area, the method further comprises determining the proxy device in the following manner: searching and identifying the configured device; dividing the configured device into a plurality of preset areas according to the location of the configured device; selecting a center device of each area from all the configured devices in each preset area; and determining the center device as the proxy device of the corresponding area.
[0036] In the embodiment of the application, the user can open the mobile terminal application program, and trigger the application program to search and identify all the configured devices in the mobile hotspot range through the 'proxy device and area device' function. The above-mentioned preset area can be divided according to the living room, bedroom, kitchen, bathroom and the like. The user can manually divide the area on the application program, and the configured devices in the entire room can also be clustered. The cluster formed after clustering is the divided area, and the clustering center can also be used as the proxy device of the corresponding area.
[0037] In addition, the central device of each region can also be selected by all the networked devices in the region. Specifically, the selection of the central device of each region from all the networked devices in each preset region comprises: sending a central device selection instruction to all the networked devices to enable all the networked devices to detect the signal strength and relative distance of other networked devices in the region, and selecting the central device in the region according to the signal strength and relative distance.
[0038] In the embodiment of the application, when the application program completes the search of the networked devices, a central device selection instruction can be sent to all the networked devices to enable all the networked devices to search for other networked devices in the device hotspot, and to calculate the signal strength and relative distance between the devices, so as to select the networked device with the strongest signal strength or the networked device with a symmetrical distribution of relative distances with other networked devices (i.e. the networked device located at the center of the region) as the central device of the region.
[0039] Optionally, the step S202 of collecting the device information of the non-networked devices in the target region by the proxy device comprises: periodically scanning all the devices in the target region by the proxy device according to a preset period when the proxy device does not establish a communication connection with the server; and collecting the device information of the non-networked devices when the hotspots of the non-networked devices are scanned.
[0040] In the embodiment of the application, the proxy device has a hotspot scanning function. The proxy device periodically automatically disconnects the networking state with the server in the idle time, scans the hotspots of the non-networked devices nearby and acquires the device information, and uploads the acquired non-networked device information to the server according to the region and displays it on the mobile terminal, such as the application program, which can display the non-networked devices in the living room, kitchen, bedroom and other regions. The user can directly select the non-networked devices to perform one-key network configuration.
[0041] In the embodiment of the application, after the proxy device is selected, the proxy device can automatically collect the device information of the related non-networked devices and report it to the user and the server instead of the mobile terminal. The user does not need to manually operate the mobile terminal to perform the step of collecting the device information of the non-networked devices. Therefore, when the user opens the application program, the device information of the non-networked devices has already been displayed to the user, and the user can directly select the non-networked devices to perform network configuration.
[0042] Optionally, the step S206 of performing network configuration on the target device by the server based on the device information of the target device comprises: broadcasting, by the server, encrypted data carrying the device information of the target device and the server password, so that the target device receives and reads the server password, and connects the server to perform network configuration according to the server password, wherein the device information of the target device is used to set the target device as a readable device of the server password.
[0043] In the embodiments of the application, when the server receives the one-key network configuration request for the target device sent by the user mobile terminal device, the server broadcasts the server password and other information through encrypted data, and the broadcast content includes the device information of the target device selected by the user. When the to-be-configured device receiving the broadcast packet is a readable device, the server password is obtained and network configuration is performed, and the device information of each target device is used to set each target device as a readable device of the server password.
[0044] Optionally, the method further includes: in the case that the mobile terminal sends a one-key network configuration request for a plurality of target devices, the server broadcasts encrypted data carrying the device information of each target device and the server password, so that each target device receives and reads the server password, and connects the server for network configuration according to the server password, wherein the device information of each target device is used to set each target device as a readable device of the server password.
[0045] In the embodiments of the application, the user can select a plurality of target devices for network configuration at a time. When the server receives the one-key network configuration request for the plurality of target devices sent by the user mobile terminal device, the server broadcasts the server password and other information through encrypted data, and the broadcast content includes the device information of the plurality of target devices selected by the user. When the to-be-configured device receiving the broadcast packet is a readable device, the server password is obtained and network configuration is performed, and the device information of each target device is used to set each target device as a readable device of the server password.
[0046] The application completes the step of collecting to-be-configured device information in the mobile terminal AP network configuration process through the proxy device, so that the smart home does not need to obtain the identification data of the smart home by the mobile terminal during network configuration, the user can quickly perform one-key network configuration, the technical problem of complicated and time-consuming network configuration steps of the smart home device is solved, the user can manually select the network configuration device and perform one-key networking operation, the user can remotely obtain the related information of the to-be-configured device through the proxy device, the single device needs to be repeatedly configured, the waiting time of the user in the network configuration process is reduced, and the network configuration process of the entire smart home system is more humanized, intelligent and convenient.
[0047] The complete process of the network configuration method provided by the application will be described below. Figure 3 The complete network configuration process includes the following steps.
[0048] As shown in Figure 3 , the complete network configuration process includes the following steps.
[0049] S01: The user opens the mobile terminal APP, clicks on
proxy device and area setting
[0050] S02: After the APP completes the search for networked devices, it will send a command to all networked devices to search for all networked devices in the device hotspot, and filter out the central devices in different areas and set them as proxy devices in the area.
[0051] S03: The proxy device has a hotspot scanning function. It will periodically scan all devices in the area during its idle time, that is, when it is not communicating with the server. If it finds a hotspot with unconnected devices in the area, it will collect the network configuration information of all unconnected devices in the area and upload it to the server when it reconnects to the server after the scan is completed.
[0052] S04: When the user opens the mobile device APP again, the user can see a list of devices to be networked in different areas in the APP. At this time, the user can manually select the device to be networked and perform one-click network configuration.
[0053] S05: When the server receives a one-click network configuration request from the user's mobile device, it will broadcast the server password and other information through encrypted data. The broadcast content includes the device information selected by the user. When the device to be configured that receives the broadcast packet is a readable device, it will obtain the server password and perform network configuration.
[0054] During the implementation of the present invention, the user uses the APP to set the networked devices within the hotspot range of the mobile device with one click, and then filters and sets proxy devices in different regions. The proxy devices automatically disconnect from the network during idle time, scan the hotspots of nearby unconnected devices, obtain device information, and upload the obtained unconnected device information to the server by region. When the user's mobile device enters the APP again, all the collected unconnected device information is displayed to the user by region. The user can manually filter the connected devices and perform a one-click connection operation, allowing the user to remotely obtain relevant information about the devices to be connected through the proxy device, eliminating the need to repeat the connection process for each individual device to be connected, reducing the user's waiting time during the connection process, and making the connection process of the entire smart home system more user-friendly, intelligent, and convenient.
[0055] According to another aspect of the embodiment of the present application, Figure 4 As shown, a distribution network module is provided, including:
[0056] The proxy unit 401 is configured to collect device information of unconfigured devices in a target area through a proxy device, wherein the proxy device is a configured device in the target area;
[0057] The distribution unit 403 is used to send the device information to the mobile terminal for display and send the device information to the server for storage;
[0058] The network distribution unit 405 is configured to, in response to the mobile terminal sending a network distribution request of the target device, distribute the network to the target device based on the device information of the target device through the server, wherein the target device is the un-distributed device.
[0059] It should be noted that the proxy unit 401 in this embodiment can be used to execute step S202 in the embodiments of the present application, the distribution unit 403 in this embodiment can be used to execute step S204 in the embodiments of the present application, and the network distribution unit 405 in this embodiment can be used to execute step S206 in the embodiments of the present application.
[0060] It should be noted that the above modules have the same examples and application scenarios as the corresponding steps, but are not limited to the above disclosed contents. It should be noted that the above modules as part of the device can run in the hardware environment as shown in Figure 1 It can be implemented by software or hardware.
[0061] Optionally, the network distribution module further includes a proxy device screening unit, configured to: search and identify the distributed devices; divide the distributed devices into a plurality of preset areas according to the locations of the distributed devices; screen the center devices in each preset area from all the distributed devices in the area; and determine the center devices as the proxy devices of the corresponding areas.
[0062] Optionally, the proxy device screening unit is further configured to: send a center device election instruction to all the distributed devices, so that all the distributed devices detect the signal strength and relative distance of other distributed devices in the area where they are located, and elect the center devices in the area where they are located according to the signal strength and relative distance.
[0063] Optionally, the proxy unit is specifically configured to: when the proxy device and the server do not establish a communication connection, scan all the devices in the target area according to a preset period through the proxy device; and in the case of scanning the hotspot of the un-distributed device, collect the device information of the un-distributed device.
[0064] Optionally, the network distribution unit is specifically configured to: broadcast the encrypted data carrying the device information of the target device and the server password through the server, so that the target device receives and reads the server password, and connects the server for network distribution according to the server password, wherein the device information of the target device is used to set the target device as the readable device of the server password.
[0065] Optionally, the network configuration unit is further configured to: in the case that the mobile terminal sends a one-key network configuration request of a plurality of target devices, broadcast, through the server, encrypted data carrying device information of each target device and a server password, so that each target device receives and reads the server password, and connects the server for network configuration according to the server password, wherein the device information of each target device is used to set each target device as a readable device of the server password.
[0066] According to another aspect of the embodiments of the present application, the present application provides an electronic device, as shown in the accompanying drawings, comprising a memory 501, a processor 503, a communication interface 505 and a communication bus 507, the memory 501 stores a computer program executable on the processor 503, the memory 501 and the processor 503 communicate through the communication interface 505 and the communication bus 507, and the processor 503 executes the computer program to implement the steps of the above method. Figure 5
[0067] The memory, the processor in the above electronic device communicate through the communication bus and the communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0068] The memory can include a Random Access Memory (RAM) and can also include a non-volatile memory, such as at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0069] The above processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0070] According to a further aspect of the embodiments of the present application, a computer program product or computer program is also provided, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above embodiments.
[0071] Optionally, in the embodiments of the present application, the computer readable medium is configured to store program codes for the processor to perform the following steps:
[0072] Collecting device information of the uncommissioned device in the target area by a proxy device, wherein the proxy device is a commissioned device in the target area;
[0073] Sending the device information to a mobile terminal for display and to a server for storage;
[0074] In the case that the mobile terminal issues a commissioning request for the target device, commissioning the target device based on the device information of the target device by the server, wherein the target device is the uncommissioned device.
[0075] Optionally, the specific examples in the embodiments of the present application can refer to the examples described in the above embodiments, which will not be described herein again.
[0076] When the embodiments of the present application are implemented, the above-mentioned embodiments can be referred to, and the corresponding technical effects can be achieved.
[0077] It can be understood that the embodiments described herein can be realized by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described in the embodiments of the present application, or a combination thereof.
[0078] For software implementation, the technical solutions described herein can be realized by units performing the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0079] Those skilled in the art can clearly understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0080] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0081] In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other means. For example, the apparatus embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0082] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment.
[0083] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0084] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various program codes that can be stored in the medium. It should be noted that, in this document, relationship terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the processes, methods, articles or devices that include a series of elements not only include those elements, but also include other elements not explicitly listed or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0085] The above description is only a specific implementation of the present application, which enables those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features applied herein.
Claims
1. A network distribution method, characterized in that: include: Collecting device information of unconfigured devices in a target area through a proxy device, wherein the proxy device is a configured device in the target area and is pre-granted with information collection authority. When a mobile terminal logs in, the proxy device pushes the collected device information of unconfigured devices in the target area to the mobile terminal; Send the device information to the mobile terminal for display, and send the device information to the server for storage; When the mobile terminal issues a network configuration request for a target device, configuring the target device for a network based on the device information of the target device through the server, wherein the target device is the unconfigured device; Before collecting device information of unconfigured devices in the target area through the proxy device, the method further includes determining the proxy device in the following manner: searching for and identifying configured devices; dividing the configured devices into a plurality of preset areas according to the locations of the configured devices; screening out a central device of each area from all the configured devices in each preset area; and determining the central device as the proxy device of the corresponding area; The selecting the central device of each area from among all the configured network devices in each of the preset areas includes: sending a central device selection instruction to all the configured network devices, so that all the configured network devices detect the signal strength and relative distance of other configured network devices in their respective areas, and selecting the central device in their respective areas according to the signal strength and the relative distance; The dividing the networked devices into a plurality of preset areas includes any one of the following: dividing the preset areas according to rooms; receiving a division instruction from a user and dividing the preset areas according to the division instruction; clustering all networked devices and using the clusters formed by the clustering as the preset areas; The step of selecting the central device of each area from all the network-connected devices in each of the preset areas further comprises: using the cluster center as the central device of the corresponding area.
2. The method according to claim 1, characterized in that The collecting of device information of unconnected devices in the target area by the proxy device includes: When the proxy device has not established a communication connection with the server, scanning all devices in the target area by the proxy device according to a preset period; When the hotspot of the unconfigured device is scanned, the device information of the unconfigured device is collected.
3. The method according to claim 1, characterized in that The configuring the target device for network configuration based on the device information of the target device by the server includes: The server broadcasts encrypted data carrying the device information and server password of the target device, so that the target device receives and reads the server password, and connects to the server for network configuration according to the server password, wherein the device information carrying the target device is used to set the target device as a readable device of the server password.
4. The method according to claim 1, wherein The method further comprises: In the case where the mobile terminal issues a one-click network configuration request for multiple target devices, the server broadcasts encrypted data carrying the device information and server password of each target device, so that each target device receives and reads the server password, and connects to the server according to the server password for network configuration, wherein the device information of each target device is used to set each target device as a readable device of the server password.
5. A network distribution module, used to implement the network distribution method according to any one of claims 1 to 4, characterized in that: include: An agent unit is configured to collect device information of unconfigured devices in a target area through an agent device, wherein the agent device is a configured device in the target area, the agent device is pre-granted with information collection authority, and when a mobile terminal logs in, the agent device pushes the collected device information of unconfigured devices in the target area to the mobile terminal; a distribution unit, configured to send the device information to a mobile terminal for display and to send the device information to a server for storage; A network configuration unit is used to configure the target device for network configuration based on the device information of the target device through a server when the mobile terminal issues a network configuration request for the target device, wherein the target device is the unconfigured device.
6. An electronic device comprising a memory, a processor, a communication interface, and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate via the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that The program code enables the processor to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Wireless remote network distribution method, control center and equipment
CN114727367A
Intelligent equipment batch network distribution method and equipment and computer readable storage medium
CN114745259A