Automatic network connection method, equipment and medium
By establishing a cloud connection between smart terminals and edge devices, receiving and storing WiFi information, and automatically accessing WiFi with matching signals, the problem of complexity of connecting WiFi to smart terminals is solved, and automated access and security improvement is achieved.
Patent Information
- Application Number
- CN202411581562.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-01-10
AI Technical Summary
The WiFi process of smart terminals connecting edge devices is complicated, and the QR code encoding methods of different manufacturers are different, which makes it impossible to apply to smart terminals of different manufacturers and cannot achieve automatic connection.
By establishing a cloud connection between the device to be accessed and the edge device, receiving and storing WiFi information sent by the edge device, automatically accessing WiFi when a matching signal is detected, avoiding users from filling in WiFi identification and password.
It simplifies the WiFi access process and realizes automatic access to edge device WiFi of the device to be accessed, reduces operational complexity, and improves security and connection speed.
Smart Images

Figure CN119300172A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a network automatic connection method, device and medium. Background Art
[0002] Smart terminals can achieve network connection by scanning Wi-Fi signals and connecting to the Wi-Fi of edge devices.
[0003] At present, when a smart terminal connects to the wifi of an edge device, it needs to obtain the corresponding wifi information, such as the wifi account and password. Usually, a QR code is generated based on the wifi account and password. The smart terminal to be connected to the wifi scans the QR code and automatically adds the wifi information to the network connection settings to complete the configuration of WiFi access.
[0004] However, the generation of the QR code depends on the manufacturer of the smart terminal. Different manufacturers usually use different QR code encoding methods, resulting in the method of automatically connecting to the network by scanning the QR code not being applicable to smart terminals produced by different manufacturers. Summary of the invention
[0005] The present invention provides a network automatic connection method, device and medium to solve the problem of complex network connection operation of a device to be connected, simplify the process of the device to be connected accessing Wi-Fi, and realize automatic access of the device to be connected to the Wi-Fi of an edge device.
[0006] According to one aspect of the present invention, a network automatic connection method is provided, which is applied to a device to be connected, and the method includes:
[0007] Establish a cloud connection between the device to be connected and the edge device, receive the wifi information sent by the edge device, and store the wifi information locally;
[0008] When a WiFi signal matching the WiFi information is detected, the WiFi of the edge device is accessed based on the WiFi information.
[0009] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0010] at least one processor; and
[0011] a memory communicatively connected to at least one processor; wherein,
[0012] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the network automatic connection method of any embodiment of the present invention.
[0013] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network automatic connection method of any embodiment of the present invention when executed.
[0014] The technical solution of the embodiment of the present invention establishes a cloud connection between the device to be accessed and the edge device, receives the WiFi information sent by the edge device, and stores the WiFi information locally; when a WiFi signal matching the WiFi information is detected, the WiFi of the edge device is accessed based on the WiFi information without the need for the user to fill in the WiFi ID and WiFi password, thereby solving the problem of complex network connection operations for the device to be accessed and enabling the device to be accessed to automatically access the WiFi of the edge device without the need for the user to perform excessive operations, thereby reducing the complexity of operations.
[0015] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 is a flow chart of a network automatic connection method provided by Embodiment 1 of the present invention;
[0018] Figure 2 is a flow chart of a network automatic connection method provided by Embodiment 2 of the present invention;
[0019] Figure 3 It is a structural schematic diagram of an electronic device for implementing the network automatic connection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] 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 interchanged 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 device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] Embodiment 1
[0023] Figure 1 This is a flowchart of an automatic network connection method provided in Example 1 of the present invention. This embodiment is applicable to the situation where automatic network connection is performed on a device to be connected. The method can be applied to electronic devices such as mobile phones, computers and watches, and the above electronic devices can be devices to be connected.
[0024] The network automatic connection method provided in this embodiment realizes the process of automatically connecting the device to be connected to the wifi of the edge device through cloud connection. Among them, the device to be connected is a device of the wifi of the edge device to be connected. The edge device is any type of server-side device that provides computing at the logical edge of the network suitable for IoT applications, and is integrated with a routing component, wherein the routing component is a device component with routing function, including but not limited to a router. The edge device generates the wifi of the edge device based on the routing component. Cloud connection is to connect the device to be connected and the edge device to the cloud platform through the Internet, and realize the communication connection between the device to be connected and the edge device based on the cloud platform. Based on the cloud connection, the device to be connected can access the edge device anytime and anywhere.
[0025] like Figure 1 As shown, the method includes:
[0026] S110: Establish a cloud connection between the device to be connected and the edge device, receive the wifi information sent by the edge device, and store the wifi information locally.
[0027] Specifically, a cloud connection between the device to be connected and the edge device is established by connecting the device to be connected and the edge device to the same cloud platform. Optionally, a connection invitation sent by an associated control terminal of the edge device is received, and a cloud connection between the device to be connected and the edge device is established in response to the connection invitation.
[0028] In this embodiment, the associated control terminal is a device end that has a communication connection with the edge device. The associated control terminal may be a control end of the edge device. The associated control terminal may be a mobile terminal such as a mobile phone or a tablet device.
[0029] The associated control terminal generates a connection invitation in response to the connection invitation operation, and sends the connection invitation to the device to be connected, wherein the connection invitation includes the cloud connection information of the edge device. The device to be connected parses the received connection invitation, obtains the cloud connection information of the edge device, and establishes a cloud connection between the associated control terminal and the edge device based on the cloud connection information.
[0030] The client of the edge device is installed in the associated control terminal and the device to be connected. Specifically, the associated control terminal displays the management page of the client, and the management page may include an invitation control of the device to be connected. In response to the triggering operation of the invitation control, an invitation information input interface is displayed, and the information of the device to be connected is added in the invitation information input interface. In response to the invitation operation, a connection invitation is generated. Among them, the invitation information input interface may include an information input box for collecting information of the device to be connected; or, the invitation information input interface includes a device selection control, and by triggering the device selection control, a device selection page can be displayed. The device selection page may be a device list page. In response to the selection operation on the device list page, the information of the device to be connected is added in the invitation information input interface. The associated control terminal generates a connection invitation based on the information of the device to be connected collected in the client and sends it to the device to be connected. The device to be connected receives the connection invitation based on the client, and establishes a cloud connection between the device to be connected and the edge device based on the connection invitation.
[0031] It can be understood that when the associated control terminal generates a connection invitation, the information of the device to be connected is transmitted to the edge device. The edge device stores the information of the device to be connected and verifies the device to be connected before establishing a cloud connection. If the verification is successful, a cloud connection is established between the device to be connected and the edge device.
[0032] The technical solution of this embodiment establishes a cloud connection between the device to be connected and the edge device based on the connection invitation sent by the associated control terminal, which helps to improve the security of establishing the cloud connection and prevent the edge device from being maliciously attacked or unauthorized access.
[0033] When a cloud connection is established between the device to be connected and the edge device, the edge device triggers the wifi information sending operation and sends the wifi information of the routing component to the device to be connected. The device to be connected stores the received wifi information sent by the edge device locally. Optionally, the wifi information includes a wifi identifier and a wifi password. Among them, the wifi identifier is a service set identifier (Service Set Identifier, SSID), which is used to identify the name of the wifi. The wifi password is a password used to protect the security of the wifi, which can prevent unauthorized users from accessing the WiFi and protect the security of network resources and information. Exemplarily, the wifi identifier can be "SSID" and the wifi password can be "passwords". By storing the wifi information locally, the device to be connected can quickly access the wifi when the wifi signal corresponding to the wifi information is searched.
[0034] In this embodiment, the edge device transmits wifi information to the device to be connected through cloud connection, without the need to inquire about the wifi information, or display and scan the wifi information, which simplifies the process of the device to be connected obtaining the wifi information and avoids the leakage of wifi information.
[0035] S120: When a wifi signal matching the wifi information is detected, access the wifi of the edge device based on the wifi information.
[0036] Specifically, the device to be connected detects the wifi signal and matches the locally stored wifi information with the detected wifi signal to match a connectable wifi signal. When a wifi signal consistent with the locally stored wifi information is matched, a wifi connection is performed. The device to be connected can store multiple wifi information.
[0037] Optionally, when the connected WiFi is disconnected or a WiFi connection operation is received, a WiFi signal search is performed to obtain a list of detected WiFi signals. If the WiFi signal list includes a WiFi signal that matches the WiFi identifier, the WiFi password in the WiFi information is sent to the WiFi module, so that the WiFi module accesses the WiFi of the edge device based on the WiFi password.
[0038] In this embodiment, the wifi signal list is a list with one or more wifi signals detected by the device to be connected as elements. The wifi signal list is obtained by storing the wifi signals detected by the device to be connected in real time in the form of a list.
[0039] Specifically, by traversing the wifi signals in the wifi signal list, and performing string matching on the wifi identifier of the traversed wifi signal and the wifi identifier in the locally stored wifi information, if the two wifi identifier strings match successfully, it can be determined that the traversed wifi signal matches the locally stored traversed wifi information, then the device to be connected calls the locally stored wifi information, and sends the wifi password in the wifi information to the wifi module, wherein the wifi module is an integrated module in the device to be connected, and is used to connect the device to be connected to the wifi of the edge device. The wifi module accesses the wifi signal corresponding to the wifi identifier based on the wifi password, so that the device to be connected can access the wifi of the edge device.
[0040] For example, assuming that there are two wifi signals in the wifi signal list, the wifi identifiers are "SSID1" and "SSID2", the wifi identifier in the locally stored wifi information is "SSID2", and the wifi password may be "passwords", then the wifi module accesses the wifi signal "SSID2" based on the wifi password "passwords".
[0041] The technical solution of this embodiment determines the matching WiFi signal based on the WiFi signal list, and accesses the WiFi of the edge device based on the locally stored WiFi password, which helps to improve the security of the WiFi of the edge device accessed by the device to be accessed.
[0042] It is worth noting that the device to be connected can encrypt and store the Wi-Fi information to prevent unauthorized access and theft.
[0043] In some embodiments, the wifi of the edge device includes a long-term wifi. The long-term wifi is a wifi generated by the routing component of the edge device for a long time. In the connection invitation sent by the associated control terminal to the device to be connected, if the wifi of the edge device to be connected is set to be accessed for a long time, the device to be connected can access the long-term wifi of the edge device, and the device to be connected can automatically access the wifi of the edge device for a long time after the long-term wifi of the edge device is accessed for the first time.
[0044] In some embodiments, optionally, the wifi of the edge device includes a temporary wifi; when it is detected that the location information of the device to be accessed and the location information of the edge device meet the distance condition, the edge device is controlled to create a temporary wifi; and when it is detected that the device to be accessed is disconnected from the wifi of the edge device, the edge device is controlled to delete the temporary wifi.
[0045] In this embodiment, the WiFi is temporarily generated by the routing component of the temporary WiFi edge device, and the device to be accessed can access the WiFi of the edge device once based on the temporary WiFi, which helps to protect the privacy of the WiFi of the edge device.
[0046] Specifically, in the connection invitation sent by the associated control terminal to the device to be accessed, when the device to be accessed is set to temporarily access the WiFi of the edge device, the routing component of the edge device creates a temporary WiFi so that the device to be accessed can access the temporary WiFi of the edge device. The location information of the device to be accessed and the location information of the edge device are detected in real time by the associated control terminal, and the real-time distance between the device to be accessed and the edge device is determined based on the location information of the device to be accessed and the location information of the edge device. By comparing the distance with the distance condition, when the distance meets the distance condition, the edge device responds to the temporary WiFi creation request sent by the cloud platform or the associated control terminal, and generates a WiFi signal including a temporary WiFi identifier and a temporary WiFi password to achieve the creation of the temporary WiFi so that the device to be accessed can access the temporary WiFi of the edge device. Among them, the distance condition can include that the real-time distance between the device to be accessed and the edge device is less than or equal to a preset distance threshold, and the preset distance threshold is a preset threshold of the distance between the device to be accessed and the edge device, which is used to determine whether the real-time distance between the device to be accessed and the edge device meets the distance condition. For example, the preset distance threshold is 10 meters.
[0047] The associated control terminal detects the connection status of the temporary wifi between the device to be accessed and the edge device. When it is detected that the temporary wifi between the device to be accessed and the edge device is disconnected, the edge device responds to the temporary wifi deletion request sent by the cloud platform or the associated control terminal, and deletes the temporary wifi by deleting the wifi signal including the temporary wifi identifier and the temporary wifi password. Exemplarily, the detection of the connection status can be based on the temporary wifi to perform a heartbeat keep-alive detection on the device to be accessed. If the edge device does not receive a new heartbeat keep-alive message within a preset heartbeat waiting time, it is determined that the device to be accessed is disconnected from the wifi of the edge device, wherein the preset heartbeat waiting time is the preset interval time between two adjacent heartbeat keep-alive messages, which can be 10 seconds; the detection of the connection status can also be when it is detected that the location information of the device to be accessed and the location information of the edge device do not meet the distance condition, it is determined that the device to be accessed is disconnected from the wifi of the edge device. This embodiment does not limit this.
[0048] Optionally, in the process of generating a connection invitation by the associated control terminal, the devices to be accessed may be classified, where the classification includes long-term access and temporary access. Accordingly, the edge device determines the wifi information to be sent to the device to be accessed based on the type of the device to be accessed. For example, if the type of the device to be accessed is temporary access, the wifi information sent to the device to be accessed is the wifi information of the temporary wifi.
[0049] The technical solution of this embodiment, by creating a temporary WiFi so that the device to be connected can access the temporary WiFi of the edge device instead of the long-term WiFi, can improve the security and privacy protection of the long-term WiFi of the edge device, especially for devices containing sensitive information, and can also reduce the load of the long-term Wi-Fi, thereby improving network performance and speed.
[0050] The associated control terminal can set the performance of the access device to the wifi of the edge device. Optionally, when it is detected that the access device is accessing the wifi of the edge device, the access permission of the access device can be set, and / or the network speed of the access device can be set.
[0051] In this embodiment, the access rights of the device to be accessed are the access rights of the device to be accessed to the wifi of the edge device, including but not limited to the access duration, the number of accesses and the access time period. If the associated control terminal detects that the device to be accessed accesses the wifi of the edge device, the associated control terminal sets the access rights of the device to be accessed based on the identification information of the device to be accessed. The associated control terminal can also set the network speed of the device to be accessed. For example, when multiple devices to be accessed access the wifi of the edge device, one or more of the network speed priority, the upper limit of the network speed and the lower limit of the network speed can be set for multiple devices to be accessed. This embodiment does not limit this. The technical solution of this embodiment can effectively reduce the unauthorized access of the devices to be accessed to the wifi of the edge device by setting the access rights of the devices to be accessed, and reduce the risk of network attacks and data leakage; it can also limit the number and type of devices to be accessed that access the wifi of the edge device to avoid network congestion and resource waste; by setting the network speed of the devices to be accessed, the network speed can be allocated to different devices to be accessed to ensure the rational use of network resources and improve the overall network performance and user experience.
[0052] The technical solution of this embodiment establishes a cloud connection between the device to be accessed and the edge device, receives the WiFi information sent by the edge device, and stores the WiFi information locally; when a WiFi signal matching the WiFi information is detected, the WiFi of the edge device is accessed based on the WiFi information without the need for the user to fill in the WiFi ID and WiFi password, thereby solving the problem of complex network connection operations for the device to be accessed and enabling the device to be accessed to automatically access the WiFi of the edge device without the need for the user to perform excessive operations, thereby reducing the complexity of operations.
[0053] On the basis of the above embodiment, optionally, after establishing a cloud connection between the device to be connected and the edge device, a wifi access request is sent to the edge device; if the device to be connected is a cloud connection device, the wifi of the edge device is automatically connected. The wifi access request is a request sent by the device to be connected to the edge device, which is used to connect the device to be connected to the wifi of the edge device.
[0054] Specifically, the device to be connected sends a wifi access request to the edge device. The edge device responds to the wifi access request and determines the connection status with the device to be connected. When the edge device and the device to be connected are in a cloud connection state, the device to be connected can be considered as a cloud connection device. In the case that the device to be connected is a cloud connection device, the edge device automatically accesses the wifi of the device to be connected based on the wifi access request. The automatic access can be a password-free access, that is, an access method that does not require the device to be connected to enter the wifi password. When the edge device and the device to be connected are in a non-cloud connection state, wait for the device to be connected to enter the wifi password, and access the wifi after the wifi password is successfully verified.
[0055] Exemplarily, after the access device 1 and the access device 2 are in a cloud connection state with the edge device, the access device 2 disconnects the cloud connection with the edge device; the access device 1 and the access device 2 send a wifi access request to the edge device, and the edge device responds to the wifi access request of the access device 1 and automatically connects the access device 1 to the wifi of the edge device; the edge device sends a prompt to enter the wifi password to the access device 2, and after the access device 2 sends the wifi and the verification is successful, the access device 2 accesses the wifi.
[0056] The technical solution of this embodiment is that the edge device receives the Wi-Fi access request sent by the device to be accessed, and when the device to be accessed is a cloud connection device, the device to be accessed is automatically connected to the Wi-Fi of the edge device, which can improve the speed of automatic network connection.
[0057] Embodiment 2
[0058] Figure 21 is a flow chart of a network automatic connection method provided by Embodiment 2 of the present invention. The technical solution of the embodiment of the present invention is further optimized based on any of the above embodiments. Figure 2 As shown, the method includes:
[0059] S210: Establish a cloud connection between the device to be connected and the edge device, receive the wifi information sent by the edge device, and store the wifi information locally.
[0060] S220: Receive location information of the edge device sent by the edge device, and store the location information of the edge device locally.
[0061] Specifically, when the device to be connected establishes a cloud connection with the edge device, the edge device sends the location information of the edge device to the device to be connected through the cloud connection, and the device to be connected stores the location information of the edge device locally, so that the location information of the edge device can be directly retrieved locally later, thereby improving the real-time distance detection speed.
[0062] For example, assuming that the location of the edge device is fixed, the location information of the edge device only needs to be detected once. The edge device sends the location information to the positioning server. After receiving the location information, the positioning server parses the device ID, horizontal coordinate, vertical coordinate and other fields in the location information, and sends the parsed location information to the device to be connected, so that the device to be connected can store the location information of the edge device locally.
[0063] S230: Obtain device location information, and when the device location information and the edge device location information meet a distance condition, detect the Wi-Fi signal to obtain a Wi-Fi signal list.
[0064] Specifically, the device to be accessed performs a positioning detection on the device to be accessed based on each preset detection time interval of the positioning module to obtain the device location information of the device to be accessed, wherein the preset detection time interval is the preset time interval between two adjacent positioning detections. The positioning module is a module for positioning integrated in the device to be accessed, such as a Bluetooth positioning module and a WiFi positioning module. By calling the location information of the edge device stored locally, the difference between the location information of the edge device and the device location information is calculated to obtain the distance between the edge device and the device to be accessed, and the distance between the edge device and the device to be accessed and the distance condition are compared. If the distance between the edge device and the device to be accessed meets the distance condition, the wifi signal is collected in real time, and the collected multiple wifi signals are stored in a list to obtain a wifi signal list; if the distance between the edge device and the device to be accessed does not meet the distance condition, the wifi signal is not collected.
[0065] Exemplarily, assuming that the distance condition is that the distance between the edge device and the device to be accessed is less than or equal to 5 meters, the preset detection time interval is 5 minutes, and a positioning detection is performed on the device to be accessed every 5 minutes to obtain the device location information, and the distance between the edge device and the device to be accessed is calculated based on the most recently obtained device location information and the edge device location information. When the distance between the edge device and the device to be accessed is greater than 5 meters, the wifi signal is not detected; when the distance between the edge device and the device to be accessed is less than or equal to 5 meters, the wifi signal is detected and a wifi signal list is generated.
[0066] In some embodiments, optionally, the preset detection time interval is adjusted based on the distance between the edge device and the device to be connected, so that the smaller the distance between the edge device and the device to be connected, the shorter the preset detection time interval. Specifically, a relationship between the distance between the edge device and the device to be connected and the preset detection time interval can be constructed, for example, an inverse proportional relationship; the corresponding preset detection time interval can be set based on the numerical range to which the distance between the edge device and the device to be connected belongs, for example, the distance value is divided into 3 numerical ranges from large to small, namely greater than 20 meters, 10 meters to 5 meters, and less than 5 meters, each numerical range corresponds to a preset detection time interval, and the preset detection time intervals corresponding to these three numerical ranges are 10 minutes, 30 seconds, and 1 second, respectively.
[0067] In some embodiments, the wifi of the edge device is not turned on. Optionally, when the device location information and the edge device location information meet the distance condition and no wifi signal matching the wifi information is detected, one or more of the following is performed: sending a control instruction to the edge device to enable the edge device to enable wifi; sending a prompt message to an associated control terminal of the edge device to enable the associated control terminal to control the edge device to enable wifi; outputting a prompt message of the edge device not enabling wifi, and when receiving the control message for the edge device, controlling the edge device to enable wifi.
[0068] In some embodiments, the device to be connected generates a control instruction, and sends the control instruction to the edge device through a cloud connection with the edge device, so that the edge device turns on the wifi of the routing component in response to the control instruction, thereby realizing that the edge device turns on the wifi. The control instruction is an instruction for controlling the edge device to turn on the wifi of the routing component. Exemplarily, the device to be connected generates a control instruction including wifi information, so that the routing component of the edge device turns on the wifi, and creates the wifi based on the wifi information.
[0069] In some embodiments, the device to be connected generates prompt information, and sends the prompt information to the associated control terminal of the edge device through the communication connection between the device to be connected and the associated control terminal, so that the associated control terminal controls the routing control in the edge device to start the wifi based on the prompt information. The prompt information includes the wifi information stored locally in the device to be connected. Exemplarily, when the device to be connected detects that the edge device is turned on but the wifi of the routing component is not turned on, the network automatic connection application in the device to be connected pushes the prompt information that the wifi of the routing component is not turned on to the associated control terminal.
[0070] In some embodiments, the device to be connected directly outputs a prompt message to the user to remind the user that the wifi of the edge device is not started and needs to be manually turned on. After the user manually starts the edge device, control information for the edge device is received based on the user's interactive operation, a control instruction is generated based on the control information, and the control instruction is sent to the edge device through the cloud connection between the device to be connected and the turned-on edge device, so that the edge device turns on the wifi of the routing component in response to the control instruction. Exemplarily, when the device to be connected detects that the edge device is not turned on, the network automatic connection application in the device to be connected pushes a prompt message that the edge device is not turned on.
[0071] S240: When a wifi signal matching the wifi information is detected, access the wifi of the edge device based on the wifi information.
[0072] The technical solution of this embodiment establishes a cloud connection between the device to be connected and the edge device, receives the wifi information sent by the edge device, and stores the wifi information locally; receives the location information of the edge device sent by the edge device, and stores the location information of the edge device locally; obtains the device location information, and detects the wifi signal to obtain a wifi signal list when the device location information and the edge device location information meet the distance condition; when a wifi signal matching the wifi information is detected, accesses the wifi of the edge device based on the wifi information, and can control the device to be connected to detect the wifi signal only when the device location information and the edge device location information meet the distance condition, instead of detecting the wifi signal all the time, thereby reducing the energy consumption of the device to be connected, reducing the redundant wifi signals in the wifi signal list, and saving storage space.
[0073] Embodiment 3
[0074] Figure 31 is a schematic diagram of the structure of an electronic device that implements the network automatic connection method of an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0075] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0076] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0077] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a network automatic connection method.
[0078] In some embodiments, the network automatic connection method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the network automatic connection method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the network automatic connection method in any other appropriate manner (for example, by means of firmware).
[0079] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0080] The computer program for implementing the network automatic connection method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or the block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, as an independent software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.
[0081] Embodiment 4
[0082] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a network automatic connection method, the method comprising:
[0083] Establish a cloud connection between the device to be connected and the edge device, receive the WiFi information sent by the edge device, and store the WiFi information locally; when a WiFi signal matching the WiFi information is detected, access the WiFi of the edge device based on the WiFi information.
[0084] In the context of the present invention, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. More specific examples of machine readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0085] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0087] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0089] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A network automatic connection method, characterized in that: Applied to the device to be connected, the method includes: Establishing a cloud connection between the device to be connected and the edge device, receiving the wifi information sent by the edge device, and storing the wifi information locally; When a wifi signal matching the wifi information is detected, the wifi of the edge device is accessed based on the wifi information.
2. The method according to claim 1, characterized in that The establishing of a cloud connection between the device to be connected and the edge device includes: A connection invitation sent by an associated control terminal of the edge device is received, and a cloud connection is established between the device to be connected and the edge device in response to the connection invitation.
3. The method according to claim 1, characterized in that The wifi information includes a wifi identifier and a wifi password; When a wifi signal matching the wifi information is detected, accessing the wifi of the edge device based on the wifi information includes: Obtain a list of detected wifi signals, and if the wifi signal list includes a wifi signal that matches the wifi identifier, send the wifi password in the wifi information to the wifi module, so that the wifi module accesses the wifi of the edge device based on the wifi password.
4. The method according to claim 1, characterized in that: After establishing a cloud connection with the edge device, the method further includes: receiving location information of the edge device sent by the edge device, and storing the location information of the edge device locally; Obtain device location information, and when the device location information and the edge device location information meet the distance condition, detect the Wi-Fi signal to obtain a Wi-Fi signal list.
5. The method according to claim 4, characterized in that The method further comprises: When the device location information and the edge device location information meet the distance condition and no wifi signal matching the wifi information is detected, perform one or more of the following: Sending a control instruction to the edge device to enable the edge device to turn on Wi-Fi; Sending a prompt message to an associated control terminal of the edge device so that the associated control terminal controls the edge device to turn on Wi-Fi; Output the prompt information of the edge device that the wifi is not started, and when receiving the control information of the edge device, control the edge device to turn on the wifi.
6. The method according to claim 1, characterized in that After establishing a cloud connection between the device to be connected and the edge device, the method further includes: Sending a wifi access request to the edge device; When the device to be connected is a cloud connection device, the wifi of the edge device is automatically connected.
7. The method according to claim 2, characterized in that The Wi-Fi of the edge device includes a temporary Wi-Fi; The associated control terminal of the edge device is also used to: control the edge device to create the temporary wifi when it is detected that the location information of the device to be connected and the location information of the edge device meet the distance condition; And, when it is detected that the device to be connected is disconnected from the WiFi of the edge device, the edge device is controlled to delete the temporary WiFi.
8. The method according to claim 1, characterized in that The associated control terminal of the edge device is also used to: when it is detected that the device to be connected is connected to the wifi of the edge device, set the access permission of the device to be connected, and / or set the network speed of the device to be connected.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network automatic connection method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network automatic connection method according to any one of claims 1 to 8 when executed.