Equipment networking method and device, electronic equipment and storage medium
By building a WiFi hotspot and uploading connection information when the home network is disconnected, the problem of convenience in reconnecting smart devices is solved, automatic reconnection without repeated network configuration is achieved, and the device networking process is simplified.
Patent Information
- Application Number
- CN202410809303.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-11
AI Technical Summary
After the home network is disconnected abnormally, smart devices need to be reconnected to the network. Especially when there are many devices, the operation is cumbersome and inconvenient.
When the target wireless network is disconnected, a WiFi hotspot is constructed and the connection information is uploaded to the cloud. Other devices save the connection information when it is not disconnected and directly connect to the WiFi hotspot through local information to avoid repeated network configuration operations.
It improves the convenience of device networking, reduces the number of individual network configuration operations for each device, and simplifies the reconnection process.
Smart Images

Figure CN118764937A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a device networking method, device, electronic device and storage medium. Background Art
[0002] With the development of smart home appliance technology, there are a large number of smart devices in the home that can connect to the wireless network. However, if the home network is abnormally disconnected, the device will be offline. At this time, if the device needs to be reconnected to the network, each device must be individually configured for network connection. When there are many devices in the home, it will be very inconvenient to configure each device individually. Summary of the invention
[0003] In order to solve at least one of the technical problems mentioned above, the present disclosure proposes a device networking method, an apparatus, an electronic device and a storage medium.
[0004] In one aspect, the present disclosure provides a device networking method, which is applied to a first electronic device, and the method includes:
[0005] In the case where the target wireless network is disconnected, a WiFi hotspot is constructed, the first electronic device is any electronic device connected to the target wireless network, and connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network;
[0006] Among them, the WiFi hotspot is used to provide a wireless network for at least a first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; according to the connection information, connect to the WiFi hotspot.
[0007] In an optional embodiment, the method further comprises:
[0008] Acquire first network configuration information, where the first network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on a first electronic device;
[0009] When the first network configuration information indicates that the connection information corresponding to the target wireless network has been changed, sending the changed connection information corresponding to the target wireless network to the second electronic device connected to the WiFi hotspot;
[0010] The second electronic device is used to connect to the target wireless network according to the changed connection information.
[0011] In another aspect, the present disclosure provides a device networking method, which is applied to a second electronic device, and the method includes:
[0012] When the target wireless network is not disconnected, the connection information is saved locally; according to the connection information, the WiFi hotspot is connected;
[0013] Among them, the WiFi hotspot is a WiFi hotspot constructed by the first electronic device when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, the second electronic device is any electronic device other than the first electronic device connected to the target wireless network, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network.
[0014] In an optional embodiment, the method further comprises:
[0015] Performing a networking operation on the target wireless network and obtaining a networking result corresponding to the networking operation;
[0016] When the networking result indicates that the networking is successful, sending the networking result to other electronic devices connected to the WiFi hotspot except the second electronic device;
[0017] Among them, other electronic devices except the second electronic device are used to connect to the target wireless network when receiving the networking result.
[0018] In an optional embodiment, the method further comprises:
[0019] Acquire second network configuration information, where the second network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on a second electronic device;
[0020] When the second network configuration information indicates that the connection information corresponding to the target wireless network has been changed, sending the changed connection information corresponding to the target wireless network to other electronic devices other than the second electronic device connected to the WiFi hotspot;
[0021] Among them, other electronic devices except the second electronic device are used to connect to the target wireless network according to the changed connection information.
[0022] In an optional embodiment, connecting to a WiFi hotspot according to the connection information includes:
[0023] Based on the connection information, perform network verification operations;
[0024] If the network verification operation is successful, connect to the WiFi hotspot.
[0025] In a third aspect, the present invention further provides a device networking apparatus, comprising:
[0026] A construction module, used to construct a WiFi hotspot when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, and the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network;
[0027] Among them, the WiFi hotspot is used to provide a wireless network for at least a first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; according to the connection information, connect to the WiFi hotspot.
[0028] In a fourth aspect, the present invention further provides another device networking apparatus, comprising:
[0029] The connection module is used to save the connection information locally when the target wireless network is not disconnected; and connect to the WiFi hotspot according to the connection information;
[0030] Among them, the WiFi hotspot is a WiFi hotspot constructed by the first electronic device when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, the second electronic device is any electronic device other than the first electronic device connected to the target wireless network, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network.
[0031] In a fifth aspect, the present invention further provides an electronic device, comprising:
[0032] processor;
[0033] a memory for storing processor-executable instructions;
[0034] The processor is used to execute instructions to implement the above-mentioned device networking method.
[0035] In a sixth aspect, the present invention further provides a storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the above-mentioned device networking method.
[0036] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
[0037] The implementation of this disclosure has the following beneficial effects:
[0038] When the target wireless network is disconnected, a WiFi hotspot is constructed, the first electronic device is any electronic device connected to the target wireless network, and the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network; wherein the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; according to the connection information, the WiFi hotspot is connected.
[0039] In the present disclosure, when a target wireless network is disconnected, a WiFi hotspot constructed by a first electronic device connected to the target wireless network can provide a wireless network for each electronic device connected to the original target wireless network. Since the connection information of the WiFi hotspot constructed by the first electronic device is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the second electronic device saves the connection information locally from the cloud when the target wireless network is not disconnected, the second electronic device can directly verify the connection of the WiFi hotspot through the locally saved connection information, without the need for the user to re-configure the network for each electronic device, thereby improving the convenience of networking of electronic devices.
[0040] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0042] Figure 1 is a schematic diagram of an implementation environment according to an exemplary embodiment;
[0043] Figure 2 is a flow chart of a device networking method according to an exemplary embodiment;
[0044] Figure 3 is a flow chart showing a method of reconnecting a first electronic device to a network after a network configuration operation is performed on the first electronic device according to an exemplary embodiment;
[0045] Figure 4 is a flow chart showing another device networking method according to an exemplary embodiment;
[0046] Figure 5 is a flowchart showing a method of reconnecting a second electronic device to a target wireless network after the second electronic device performs a networking operation according to an exemplary embodiment;
[0047] Figure 6 is a flow chart showing a method of performing a network configuration operation on a second electronic device and reconnecting the device to the network according to an exemplary embodiment;
[0048] Figure 7 is a schematic diagram of a device networking apparatus according to an exemplary embodiment;
[0049] Figure 8 is a schematic diagram of another device networking apparatus according to an exemplary embodiment;
[0050] Fig. 9 The invention is a block diagram of an electronic device for connecting devices to a network according to an exemplary embodiment. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0053] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated. The word "exemplary" is used specifically herein to mean "serving as an example, embodiment, or illustrative". Any embodiment described herein as "exemplary" is not necessarily to be construed as being superior or better than other embodiments.
[0054] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0055] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0056] See also Figure 1 , Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment. Figure 1 As shown, the application environment may include a server 01 and a terminal 02 .
[0057] In an optional embodiment, server 01 can be used for computing and processing in a device networking method. Specifically, server 01 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0058] In an optional embodiment, the terminal 02 may perform computing processing in combination with the device networking method of the server 01. Specifically, the terminal 02 may include but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices, etc. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux system, Windows system, Unix system, etc.
[0059] For example, when the target wireless network is disconnected, a WiFi hotspot is constructed through terminal 01, and terminal 01 is any electronic device connected to the target wireless network. The connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network; wherein, the WiFi hotspot is used to provide a wireless network for at least terminal 01 and terminal 02, and terminal 02 is an electronic device other than terminal 01 connected to the target wireless network, and terminal 02 is used to save the connection information locally when the target wireless network is not disconnected; according to the connection information, the WiFi hotspot is connected.
[0060] In addition, it should be noted that Figure 1 What is shown is only one application environment provided by the present disclosure. In actual application, other application environments may also be included.
[0061] In the embodiments of this specification, the server 01 and the terminal 02 may be directly or indirectly connected via wired or wireless communication, which is not limited in this disclosure.
[0062] Figure 2 is a flow chart of a device networking method according to an exemplary embodiment, the device networking method is applied to a first electronic device, and the method includes:
[0063] Step S201: When the target wireless network is disconnected, a WiFi hotspot is constructed, the first electronic device is any electronic device connected to the target wireless network, and the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network; wherein the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; according to the connection information, the WiFi hotspot is connected.
[0064] In the disclosed embodiments, the target wireless network may be a home network, a public network, etc., which may provide a wireless network for networked electronic devices within a certain range, and connecting to the target wireless network requires a connection information verification step. The connection information of the target wireless network may be a network name, password, etc. corresponding to the target wireless network.
[0065] In the disclosed embodiment, the first electronic device may be the first electronic device connected to the target wireless network. The first electronic device is equipped with a WiFi module and has the capability of distributing hotspots. When the target wireless network cannot be connected, the WiFi module enables communication between the various electronic devices connected to the target wireless network by building a self-built WiFi local area network.
[0066] Specifically, after the first electronic device d1 successfully connects to the target wireless network for the first time, two random strings S1 and P1 are generated, which respectively represent the network name and password when the first electronic device d1 needs to build a WiFi hotspot R1, and the basic service set identifier (BSSID) of the target wireless network, that is, the unique ID that identifies the wireless network, is uploaded to the cloud together with the strings S1 and P1 for storage. After the user connects other subsequent electronic devices d2, d3... to the network, the BSSID of the target wireless network is used to obtain from the cloud whether the corresponding strings S1 and P1 exist. If so, the strings S1 and P1 are stored locally. If the strings S1 and P1 do not exist, it means that the electronic device is the first electronic device to connect to the target wireless network, and the strings S1 and P1 are generated by the electronic device. When the target wireless network is abnormal and cannot be connected normally, the first electronic device d1 uses the generated strings S1 and P1 to create a WiFi hotspot R1, and other electronic devices connected to the original target wireless network connect to the WiFi hotspot R1 according to the locally stored strings S1 and P1 until the connection is successful. At this time, the devices d1, d2, d3... form a local area network.
[0067] In an optional embodiment, if Figure 3 As shown, the method also includes:
[0068] Step S301: Acquire first network configuration information, where the first network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on a first electronic device.
[0069] In the embodiment of the present disclosure, after the user reconfigures the network of the first electronic device, the network information to which the first electronic device is connected changes. The first network configuration information reflecting the network connection status of the first electronic device can be sent to other devices that are also connected to the WiFi hotspot when the first electronic device is connected to the WiFi hotspot.
[0070] Step S302: When the first network configuration information indicates that the connection information corresponding to the target wireless network has been changed, the changed connection information corresponding to the target wireless network is sent to the second electronic device connected to the WiFi hotspot; wherein the second electronic device is used to connect to the target wireless network according to the changed connection information.
[0071] In the disclosed embodiment, the change in the connection information corresponding to the target wireless network may be a change in the password of the target wireless network. When the first electronic device successfully connects to the target wireless network, it exits the target wireless network and reconnects to the WiFi hotspot. The changed connection information corresponding to the target wireless network is sent to a second electronic device that is also connected to the WiFi hotspot, so that the second electronic device locally knows the changed connection information so that the second electronic device can reconnect to the target wireless network according to the changed connection information.
[0072] Based on the above, it can be known that in the embodiment of the present disclosure, by obtaining the first network configuration information, when the first network configuration information indicates that the connection information corresponding to the target wireless network has been changed, the changed connection information corresponding to the target wireless network is sent to the second electronic device connected to the WiFi hotspot. The changed connection information corresponding to the target wireless network can be shared through the local area network composed of the electronic devices connected to the WiFi hotspot, so that the second electronic device can automatically connect to the target wireless network according to the changed connection information, thereby reducing the number of network configuration operations for the user.
[0073] Figure 4 is a flow chart of a device networking method according to an exemplary embodiment, the device networking method is applied to a second electronic device, and the method includes:
[0074] Step S401: When the target wireless network is not disconnected, the connection information is saved locally; according to the connection information, the WiFi hotspot is connected; wherein the WiFi hotspot is a WiFi hotspot constructed by the first electronic device when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, the second electronic device is any electronic device other than the first electronic device connected to the target wireless network, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network.
[0075] In the disclosed embodiment, after the second electronic device d2 successfully connects to the target wireless network for the first time, it accesses the cloud based on the BSSID of the target wireless network to see if there are corresponding strings S1 and P1, that is, the connection information of the WiFi hotspot that the first connected device under the target wireless network can build. If the strings S1 and P1 exist, they are saved locally. When the target wireless network is disconnected, the WiFi hotspot built by the first electronic device is connected through the locally saved strings S1 and P1.
[0076] In an optional embodiment, connecting to a WiFi hotspot according to the connection information includes:
[0077] Based on the connection information, perform network verification operations.
[0078] In the disclosed embodiment, the second electronic device continuously attempts to perform the network verification operation required to connect to the WiFi hotspot according to the connection information.
[0079] If the network verification operation is successful, connect to the WiFi hotspot.
[0080] In the disclosed embodiment, when the networking verification operation is successful, the second electronic device is successfully connected to the WiFi hotspot.
[0081] In an optional embodiment, if Figure 5 As shown, the method also includes:
[0082] Step S501: Perform a networking operation on a target wireless network and obtain a networking result corresponding to the networking operation.
[0083] In the disclosed embodiment, before the user performs network configuration operation on any electronic device connected to the original target wireless network, any device in the second electronic device can intermittently connect to the target wireless network so as to connect to the target wireless network in time after the target wireless network is restored.
[0084] Step S502: When the networking result indicates that the networking is successful, the networking result is sent to other electronic devices connected to the WiFi hotspot except the second electronic device; wherein the other electronic devices except the second electronic device are used to connect to the target wireless network when receiving the networking result.
[0085] In an embodiment of the present disclosure, when the networking result for the target wireless network indicates successful networking, the second electronic device exits the target wireless network and reconnects to the WiFi hotspot, and sends the networking result to other electronic devices that are also connected to the WiFi hotspot, including the first electronic device, so that the other electronic devices can reconnect to the target wireless network.
[0086] Based on the above, it can be known that in the embodiment of the present disclosure, a networking operation is performed on the target wireless network to obtain a networking result corresponding to the networking operation, and when the networking result indicates that the networking is successful, the networking result is sent to other electronic devices connected to the WiFi hotspot except the second electronic device. The connectable information of the target wireless network can be shared through the local area network composed of the electronic devices connected to the WiFi hotspot, so that other electronic devices can connect to the target wireless network by themselves, thereby reducing the number of network configuration operations for users.
[0087] In an optional embodiment, if Figure 6 As shown, the method also includes:
[0088] Step S601: Acquire second network configuration information, where the second network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on a second electronic device.
[0089] In the embodiment of the present disclosure, after the user reconfigures the network for the second electronic device, the network information to which the second electronic device is connected changes. The second network configuration information reflecting the network connection status of the second electronic device can be sent to other devices that are also connected to the WiFi hotspot when the second electronic device is connected to the WiFi hotspot.
[0090] Step S602: When the second network configuration information indicates that the connection information corresponding to the target wireless network has been changed, the changed connection information corresponding to the target wireless network is sent to other electronic devices other than the second electronic device that are connected to the WiFi hotspot; wherein the other electronic devices other than the second electronic device are used to connect to the target wireless network according to the changed connection information.
[0091] In the disclosed embodiment, the change in the connection information corresponding to the target wireless network may be a change in the password of the target wireless network. When the second electronic device successfully connects to the target wireless network, it exits the target wireless network and reconnects to the WiFi hotspot. The changed connection information corresponding to the target wireless network is sent to other electronic devices that are also connected to the WiFi hotspot, so that the other electronic devices locally know the changed connection information so that they can reconnect to the target wireless network according to the changed connection information.
[0092] Based on the above, it can be known that in the embodiment of the present disclosure, by obtaining the second network configuration information, when the second network configuration information indicates that the connection information corresponding to the target wireless network has been changed, the changed connection information corresponding to the target wireless network is sent to other electronic devices connected to the WiFi hotspot. The changed connection information corresponding to the target wireless network can be shared through the local area network composed of the electronic devices connected to the WiFi hotspot, so that other electronic devices can automatically connect to the target wireless network according to the changed connection information, thereby reducing the number of network configuration operations for users.
[0093] Figure 7 is a block diagram of a device networking apparatus according to an exemplary embodiment. Figure 7 , the device comprises a building block 701, wherein,
[0094] A construction module 701 is used to construct a WiFi hotspot when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, and the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network;
[0095] Among them, the WiFi hotspot is used to provide a wireless network for at least a first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; according to the connection information, connect to the WiFi hotspot.
[0096] In an optional embodiment, the above device further includes:
[0097] A first acquisition module, used to acquire first network configuration information, where the first network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on a first electronic device;
[0098] A first sending module, configured to send the changed connection information corresponding to the target wireless network to the second electronic device connected to the WiFi hotspot when the first network configuration information indicates that the connection information corresponding to the target wireless network has been changed;
[0099] The second electronic device is used to connect to the target wireless network according to the changed connection information.
[0100] Figure 8 FIG. 1 is a block diagram of another device networking apparatus according to an exemplary embodiment. Figure 8 , the device comprises a connection module 801, wherein,
[0101] The connection module 801 is used to save the connection information locally when the target wireless network is not disconnected; connect to the WiFi hotspot according to the connection information; wherein the WiFi hotspot is a WiFi hotspot constructed by the first electronic device when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, the second electronic device is any electronic device other than the first electronic device connected to the target wireless network, the WiFi hotspot is used to provide a wireless network for at least the first electronic device and at least one second electronic device, the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network.
[0102] In an optional embodiment, the above device further includes:
[0103] A networking module is used to perform networking operations on a target wireless network and obtain networking results corresponding to the networking operations;
[0104] A second sending module is used to send the networking result to other electronic devices connected to the WiFi hotspot except the second electronic device when the networking result indicates that the networking is successful;
[0105] Among them, other electronic devices except the second electronic device are used to connect to the target wireless network when receiving the networking result.
[0106] In an optional embodiment, the above device further includes:
[0107] A second acquisition module, used to acquire second network configuration information, where the second network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on a second electronic device;
[0108] A third sending module is used to send the changed connection information corresponding to the target wireless network to other electronic devices connected to the WiFi hotspot except the second electronic device when the second network configuration information indicates that the connection information corresponding to the target wireless network has been changed;
[0109] Among them, other electronic devices except the second electronic device are used to connect to the target wireless network according to the changed connection information.
[0110] In an optional embodiment, the connection module 801 includes:
[0111] A verification module, used to perform network verification operations based on connection information;
[0112] The connection submodule is used to connect to the WiFi hotspot when the network verification operation is successful.
[0113] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware such as processing circuits or memories, or a combination thereof. Similarly, one processor or multiple processors or memories can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0114] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is used for the instructions to implement the device networking method as in the embodiment of the present disclosure.
[0115] Fig. 9 is a block diagram of an electronic device for networking devices according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a device networking method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0116] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0117] In an exemplary embodiment, a storage medium is also provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the device networking method in the embodiment of the present disclosure.
[0118] In an exemplary embodiment, a computer program product containing instructions is also provided. When the computer program product is executed on a computer, the computer is enabled to execute the device networking method in the embodiment of the present disclosure.
[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present disclosure can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0120] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0121] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A device networking method, characterized in that: Applied to a first electronic device, the method includes: In the case where the target wireless network is disconnected, a WiFi hotspot is constructed, wherein the first electronic device is any electronic device connected to the target wireless network, and connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents verification information required to connect to the wireless network; Among them, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; and connect to the WiFi hotspot according to the connection information.
2. The device networking method according to claim 1, characterized in that: The method further comprises: Acquire first network configuration information, where the first network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on the first electronic device; When the first network configuration information indicates that the connection information corresponding to the target wireless network has been changed, sending the changed connection information corresponding to the target wireless network to the second electronic device connected to the WiFi hotspot; The second electronic device is used to connect to the target wireless network according to the changed connection information.
3. A device networking method, characterized in that: Applied to a second electronic device, the method includes: Save the connection information locally when the target wireless network is not disconnected; Connecting to a WiFi hotspot according to the connection information; Among them, the WiFi hotspot is a WiFi hotspot constructed by the first electronic device when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, the second electronic device is any electronic device other than the first electronic device connected to the target wireless network, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network.
4. The device networking method according to claim 3, characterized in that: The method further comprises: Performing a networking operation on the target wireless network and obtaining a networking result corresponding to the networking operation; When the networking result indicates that the networking is successful, sending the networking result to other electronic devices connected to the WiFi hotspot except the second electronic device; The other electronic devices except the second electronic device are used to connect to the target wireless network when receiving the networking result.
5. The device networking method according to claim 3, characterized in that: The method further comprises: Acquire second network configuration information, where the second network configuration information is used to indicate a network connection status corresponding to a network configuration operation performed on the second electronic device; When the second network configuration information indicates that the connection information corresponding to the target wireless network has been changed, sending the changed connection information corresponding to the target wireless network to other electronic devices other than the second electronic device connected to the WiFi hotspot; The other electronic devices except the second electronic device are used to connect to the target wireless network according to the changed connection information.
6. The device networking method according to claim 3, characterized in that: The step of connecting to a WiFi hotspot according to the connection information includes: Based on the connection information, perform an online verification operation; When the network verification operation is successful, connect to the WiFi hotspot.
7. A device networking apparatus, characterized in that: Applied to a first electronic device, the device comprises: A construction module, configured to construct a WiFi hotspot when the target wireless network is disconnected, wherein the first electronic device is any electronic device connected to the target wireless network, and connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, wherein the connection information represents verification information required to connect to the wireless network; Among them, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the at least one second electronic device is an electronic device other than the first electronic device connected to the target wireless network, and the at least one second electronic device is used to save the connection information locally when the target wireless network is not disconnected; and connect to the WiFi hotspot according to the connection information.
8. A device networking apparatus, characterized in that: Applied to a second electronic device, the device comprises: A connection module, used to save the connection information locally when the target wireless network is not disconnected; and connect to the WiFi hotspot according to the connection information; Among them, the WiFi hotspot is a WiFi hotspot constructed by the first electronic device when the target wireless network is disconnected, the first electronic device is any electronic device connected to the target wireless network, the second electronic device is any electronic device other than the first electronic device connected to the target wireless network, the WiFi hotspot is at least used to provide a wireless network for the first electronic device and at least one second electronic device, the connection information corresponding to the WiFi hotspot is uploaded to the cloud by the first electronic device before the target wireless network is disconnected, and the connection information represents the verification information required to connect to the wireless network.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used for executing the instructions to implement the device networking method as described in any one of claims 1 to 6.
10. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the device networking method according to any one of claims 1 to 6.
