CN114245432B - Network connection method, device, system, electronic equipment and storage medium - Google Patents

Network connection method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114245432B
CN114245432B CN202111523138.6A CN202111523138A CN114245432B CN 114245432 B CN114245432 B CN 114245432B CN 202111523138 A CN202111523138 A CN 202111523138A CN 114245432 B CN114245432 B CN 114245432B
Authority
CN
China
Prior art keywords
target terminal
equipment
network
notification message
devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111523138.6A
Other languages
Chinese (zh)
Other versions
CN114245432A (en
Inventor
梁志涛
李喜林
覃广志
肖岱云
刘洪钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111523138.6A priority Critical patent/CN114245432B/en
Publication of CN114245432A publication Critical patent/CN114245432A/en
Application granted granted Critical
Publication of CN114245432B publication Critical patent/CN114245432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/38Reselection control by fixed network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention relates to a network connection method, a device, a system, electronic equipment and a storage medium, wherein the method is applied to first Access Point (AP) equipment in a wireless Mesh network, the first AP equipment is any AP equipment in the Mesh network, and the method comprises the following steps: detecting the distance between a target terminal which is accessed to the first AP equipment at present and the first AP equipment; when the distance meets the set condition, determining a second AP device closest to the target terminal from the Mesh network; switching a network access point of the target terminal from the first AP device to the second AP device. Therefore, the stability of the target terminal network can be improved, and the user experience is improved.

Description

Network connection method, device, system, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network security, in particular to a network connection method, a network connection device, a network connection system, electronic equipment and a storage medium.
Background
With the development of the technology, home network configuration and large mall network configuration are being upgraded and updated, generally a Mesh (Multi-Hop) networking technology is adopted, and a network coverage area is increased and a network service environment is optimized through a network topology structure.
In the Mesh network environment, each AP (Access Point) device has a fixed location, a fixed network coverage area, and a mobile terminal used by a user generally has a variable location. Therefore, how to achieve seamless switching of the AP devices accessed by the terminal in the terminal moving process is an urgent technical problem to be solved.
Disclosure of Invention
In view of this, in order to solve the technical problem that the AP device accessed by the terminal cannot be seamlessly switched currently, embodiments of the present invention provide a network connection method, an apparatus, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a network connection method, where the method is applied to a first AP device in a Mesh network, where the first AP device is any AP device in the Mesh network, and the method includes:
detecting the distance between a target terminal which is accessed to the first AP equipment at present and the first AP equipment;
when the distance meets the set condition, determining a second AP device closest to the target terminal from the Mesh network;
switching a network access point of the target terminal from the first AP device to the second AP device.
In one possible embodiment, the method further comprises:
when detecting that any terminal enters a network coverage area of the first AP device, sending a notification message to other AP devices in the Mesh network, wherein the notification message at least carries device information of the any terminal;
the determining a second AP device closest to the target terminal from the Mesh network includes:
receiving the notification message from at least one third AP device, wherein the target terminal enters a network coverage area of the third AP device;
analyzing the equipment information of the target terminal from the received notification message;
and when the target terminal is determined to have accessed the first AP equipment according to the analyzed equipment information of the target terminal, determining a second AP equipment closest to the target terminal from at least one third AP equipment.
In a possible implementation manner, the notification message further carries a distance between the any terminal and the first AP device;
the determining a second AP device closest to the target terminal from among the at least one third AP device includes:
when the number of the third AP devices is 1, determining the third AP devices as second AP devices closest to the target terminal;
when the number of the third AP devices is multiple, analyzing the distance from the received multiple notification messages, respectively;
and determining the third AP equipment corresponding to the minimum distance in the distances as the second AP equipment closest to the target terminal.
In one possible implementation, the switching the network access point of the target terminal from the first AP device to the second AP device includes:
sending an access request to the second AP device, wherein the access request carries access information of the target terminal, so that the second AP device accesses the target terminal to the second AP device based on the access information;
and receiving a response message from the second AP equipment, wherein the response message is used for representing that the target terminal has accessed the second AP equipment and disconnecting the target terminal from the first AP equipment.
In one possible embodiment, the method further comprises:
detecting the number of terminals which have access to the first AP equipment at present;
and when detecting that the number of the terminals is greater than or equal to a preset number threshold, sending an alarm message to a Mesh router in the Mesh network, so that the Mesh router receives the alarm message from a plurality of AP devices and then reallocates channels for subnets where the AP devices are located.
In a second aspect, an embodiment of the present invention provides a network connection apparatus, where the apparatus includes:
a detection module, configured to detect a distance between a target terminal currently accessed to the first AP device and the first AP device;
a determining module, configured to determine, when it is detected that the distance satisfies a set condition, a second AP device closest to the target terminal from the Mesh network;
a switching module, configured to switch a network access point of the target terminal from the first AP device to the second AP device.
In one possible embodiment, the apparatus further comprises:
a sending module, configured to send a notification message to other AP devices in the Mesh network when it is detected that any terminal enters a network coverage area of the first AP device, where the notification message at least carries device information of the any terminal;
the determining module comprises:
a receiving submodule, configured to receive the notification message from at least one third AP device, where the target terminal enters a network coverage area of the third AP device;
the analysis submodule is used for analyzing the equipment information of the target terminal from the received notification message;
and the determining submodule is used for determining a second AP device closest to the target terminal from at least one third AP device when the target terminal is determined to have accessed to the first AP device according to the analyzed device information of the target terminal.
In one possible implementation, the sending module is further configured to:
the notification message also carries the distance between the any terminal and the first AP equipment;
the determination submodule is specifically configured to:
when the number of the third AP devices is 1, determining the third AP devices as second AP devices closest to the target terminal;
when the number of the third AP devices is multiple, analyzing the distance from the received multiple notification messages, respectively;
and determining the third AP equipment corresponding to the minimum distance in the distances as the second AP equipment closest to the target terminal.
In one possible embodiment, the switching module includes:
a sending sub-module, configured to send an access request to the second AP device, where the access request carries access information of the target terminal, so that the second AP device accesses the target terminal to the second AP device based on the access information;
and a disconnection submodule, configured to receive a response message from the second AP device, where the response message is used to characterize that the target terminal has accessed the second AP device, and disconnect the target terminal from the first AP device.
In one possible embodiment, the apparatus further comprises:
the quantity detection module is used for detecting the quantity of the terminals which are currently accessed to the first AP equipment;
and the alarm sending module is used for sending an alarm message to a Mesh router in the Mesh network when detecting that the number of the terminals is greater than or equal to a preset number threshold value, so that the Mesh router receives the alarm message from the plurality of AP devices and then allocates channels to the subnets where the plurality of AP devices are located again.
In a third aspect, an embodiment of the present invention provides a Mesh network system, where the Mesh network system includes:
a plurality of AP devices;
any one of the AP devices is used for detecting the distance between a target terminal which is accessed to the AP device at present and the AP device; when the distance is detected to meet a set condition, determining a second AP device closest to the target terminal from the Mesh network system; and switching the network access point of the target terminal from the AP equipment to the second AP equipment.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, the processor being configured to execute a network connection method stored in the memory to implement the network connection method of any of the first aspects.
In a fifth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the network connection method according to any one of the first aspects.
According to the technical scheme provided by the embodiment of the invention, the distance between the target terminal which is currently accessed to the first AP equipment and the first AP equipment is detected, when the distance is detected to meet the set condition, the second AP equipment which is closest to the target terminal is determined from the Mesh network, and the network access point of the target terminal is switched from the first AP equipment to the second AP equipment. In the process of switching the network access point of the target terminal, the first AP equipment determines the second AP equipment closest to the target terminal and then directly switches the network access point of the target terminal from the first AP equipment to the second AP equipment, and the process does not involve any operation of the target terminal, so that the network access point of the target terminal is seamlessly switched under the condition of not disconnecting the network connection of the target terminal, the stability of the network of the target terminal is improved, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of an embodiment of a network connection method according to an embodiment of the present invention;
fig. 2 is a flowchart of an embodiment of switching a network access point of a target terminal from a first AP device to a second AP device according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a target terminal access point handover provided in an embodiment of the present invention;
fig. 4 is a flowchart of another network connection method according to an embodiment of the present invention;
fig. 5 is a flowchart of another network connection method according to an embodiment of the present invention;
fig. 6 is an application scenario diagram of a network connection method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a Mesh network system architecture according to an embodiment of the present invention;
FIG. 8 is a block diagram of an embodiment of a network connection device according to the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The network connection method provided by the present invention is further explained with specific embodiments in the following with reference to the drawings, and the embodiments do not limit the embodiments of the present invention.
Referring to fig. 1, a flowchart of an embodiment of a network connection method according to an embodiment of the present invention is provided. As shown in fig. 1, the process may include the following steps:
step 101, detecting a distance between a target terminal currently accessed to a first AP device and the first AP device.
And 102, when the distance is detected to meet the set condition, determining a second AP device closest to the target terminal from the Mesh network.
The following describes steps 101 and 102 collectively:
the execution main body of the embodiment of the present invention may be a first AP device, where the first AP device may be any AP device in a Mesh network. Correspondingly, the target terminal refers to a terminal currently accessed to the first AP device.
In an embodiment, the first AP device may detect a distance between the target terminal and the first AP device in real time, and detect whether the distance satisfies a set condition. Optionally, the setting condition includes that the distance between the target terminal and the first AP device is greater than or equal to a preset distance threshold. Here, the preset distance threshold may be a radius of a network coverage area of the first AP device.
When detecting that the distance between the target terminal and the first AP device satisfies the set condition, it means that the target terminal has moved out of the network coverage area of the first AP device, or is located at the boundary of the network coverage area of the first AP device, at this time, since the target terminal is far away from the first AP device, it is likely that the network connection state is unstable, and the target terminal is not suitable for continuing to access the first AP device.
Based on this, the first AP device determines a second AP device closest to the target terminal from the Mesh network, and specifically, how to determine the second AP device closest to the target terminal is described in detail in fig. 4 below.
And 103, switching the network access point of the target terminal from the first AP equipment to the second AP equipment.
In an embodiment, switching the network access point of the target terminal from the first AP device to the second AP device may be implemented by the flowchart of the embodiment shown in fig. 2. As shown in fig. 2, a flowchart of an embodiment of switching a network access point of a target terminal from a first AP device to a second AP device according to the embodiment of the present invention may include the following steps:
step 201, sending an access request to a second AP device, where the access request carries access information of a target terminal, so that the second AP device accesses the target terminal to the second AP device based on the access information.
Step 202, receiving a response message from the second AP device, where the response message is used to characterize that the target terminal has accessed the second AP device.
And step 203, disconnecting the target terminal from the first AP equipment.
The following describes steps 201 to 203 collectively:
for convenience of understanding, fig. 3 is shown below, which is a schematic diagram of handover of an access point of a target terminal according to an embodiment of the present invention. The above steps 201 to 203 will be described with reference to fig. 3.
In an embodiment, as shown in fig. 3, after a target terminal accesses a first AP device, when the first AP device determines that a network access point of the target terminal is to be switched from the first AP device to a second AP device, the first AP device sends an access request to the second AP device, where the access request carries access information of the target terminal, and the second AP device accesses the target terminal to the second AP device according to the access information of the target terminal carried in the access request.
After that, the second AP device may further send a response message to the first AP device, where the response message is used to characterize that the target terminal has accessed the second AP device. When the first AP device receives the response message from the second AP device, it may determine that the target terminal has accessed the second AP device, and at this time, disconnect the target terminal from the first AP device.
To this end, the first AP device successfully switches the network access point of the target terminal from the first AP device to the second AP device.
In the embodiment of the invention, by detecting the distance between a target terminal which is accessed to a first AP device and the first AP device, when the distance is detected to meet a set condition, a second AP device which is closest to the target terminal is determined from the Mesh network, and a network access point of the target terminal is switched from the first AP device to the second AP device. In the process of switching the network access point of the target terminal, the first AP equipment determines the second AP equipment closest to the target terminal and then directly switches the network access point of the target terminal from the first AP equipment to the second AP equipment, and the process does not involve any operation of the target terminal, so that the network access point of the target terminal is seamlessly switched under the condition of not disconnecting the network connection of the target terminal, the stability of a target terminal network is improved, and the user experience is improved.
In an embodiment, when detecting that any terminal enters a network coverage area of a first AP device, a first AP device (that is, any AP device in a Mesh network) sends a notification message to other AP devices in the Mesh network, where the notification message at least carries device information of any terminal. In this way, when the other AP devices receive the notification message, the device information of the terminal may be analyzed from the notification message, and it is determined that the terminal has currently accessed the first AP device.
On this basis, the flow shown in fig. 4 is shown, and the flow shown in fig. 4 focuses on how to determine the second AP device closest to the target terminal on the basis of the flow shown in fig. 1, and includes the following steps:
step 401, the first AP device detects a distance between a target terminal currently accessed to the first AP device and the first AP device.
Step 401 is described in detail in step 101, and is not described herein again.
Step 402, the first AP device receives a notification message from at least one third AP device.
In an embodiment, the third AP device may be an AP device that the target terminal enters into its network coverage area.
Step 403, when the first AP device detects that the distance satisfies the setting condition, parsing the device information of the target terminal from the received at least one notification message.
Step 404, when the first AP device determines that the target terminal has accessed the first AP device according to the analyzed device information of the target terminal, determining a second AP device closest to the target terminal from at least one third AP device.
The following takes the Mesh network architecture diagram shown in fig. 6 as an example to collectively describe steps 403 and 404:
as shown in fig. 6, an architecture diagram of a Mesh network system provided in an embodiment of the present invention is shown in fig. 6 as an example, and includes: AP device 61, AP device 62, AP device 63, and target terminal 64.
The current access point of the target terminal 64 is the AP device 61 (that is, the AP device 61 is a first AP device, hereinafter referred to as a first AP device 61), the network coverage area of the first AP device 61 is 611, the network coverage area of the AP device 62 is 621, the network coverage area of the AP device 63 is 631, the intersection of the network coverage area 611, the network coverage area 621, and the network coverage area 631 is an area 651.
The target terminal 64 may be a hardware device or software that supports network connectivity to provide various network services. When the target terminal 64 is hardware, it may be a device supporting various electronic devices with a display screen, including but not limited to a smart phone, a tablet computer, a laptop computer, etc., and the smart phone is only used as an example in fig. 6. When the target terminal 64 is software, it can be installed in the electronic devices listed above.
When the target terminal 64 moves to the position point a shown in fig. 6, the position of the point a is in the area 651 and is at the boundary of the first AP device 61, at this time, the AP device 62 and the AP device 63 detect that the target terminal 64 has entered the network coverage area 621 and the network coverage area 631, respectively, and simultaneously send the notification message to the other AP devices, that is, the AP device 62 simultaneously sends the notification message to the first AP device 61 and the AP device 63, and the AP device 63 simultaneously sends the notification message to the AP device 62 and the first AP device 61, that is, both the AP device 62 and the AP device 63 serve as a third AP device to send the notification message to the first AP device 61. The notification message carries at least the device information of the target terminal 64.
Then, the first AP device 61 parses the device information of the target terminal 64 from the received at least one notification message, and determines, according to the device information of the target terminal 64, that the target terminal 64 has accessed the first AP device 61, a second AP device closest to the target terminal 64 from at least one third AP device, that is, a second AP device closest to the target terminal 64 from the AP devices 62 and 63.
Specifically, the notification message also carries the distance between the target terminal 64 and the AP device, that is, the notification message sent by the AP device 62 carries the distance L1 between the AP device 62 and the target terminal 64, and the notification message sent by the AP device 63 carries the distance L2 between the AP device 63 and the target terminal 64. When L1 is smaller than L2, it indicates that the distance between the AP device 62 and the target terminal 64 is closest, and the AP device 62 is regarded as the second AP device.
Optionally, the notification message may also carry the signal strength of the AP device relative to the target terminal 64, that is, the notification message sent by the AP device 62 carries the signal strength Q1 of the AP device 62 relative to the target terminal 64, and the notification message sent by the AP device 63 carries the signal strength Q2 of the AP device 63 relative to the target terminal 64. When Q1 is greater than Q2, since the closer the AP device is to the target terminal 64, the stronger the signal, based on which, the closer the AP device 62 is to the target terminal 64, the AP device 62 is considered as the second AP device. It can be understood that the notification message may also carry other information, and the present invention is not limited thereto.
As an embodiment, when the target terminal 64 enters the location B point shown in fig. 6, which is in the network coverage area 631 of the AP device 63, at this time, the AP device 63 transmits the notification message to the first AP device 61 when detecting that the target terminal 64 enters the area 631. After receiving the notification message, the first AP device 61 directly determines the AP device 63 as the second AP device when determining that the target terminal 64 has accessed the first AP device according to the device information carried in the analyzed notification message.
Step 405, switching the network access point of the target terminal from the first AP device to the second AP device.
Step 405 is described in detail in step 103, and is not described in detail here.
In the embodiment of the present invention, when determining the second AP device closest to the target terminal, and when the target terminal enters the network coverage area of the third AP device, the first AP device receives the notification message from at least one third AP device, and analyzes the device information of the target terminal from the notification message. Determining second AP equipment closest to the target terminal according to the number of third AP equipment after the target terminal is determined to be accessed to the first AP equipment according to the equipment information, and determining the third AP equipment as the second AP equipment closest to the target terminal when the number of the third AP equipment is 1; and when the number of the third AP devices is multiple, determining the third AP device corresponding to the minimum distance in the distances between the target device and the first AP device, which are carried in the notification message sent by the third AP device, as the second AP device closest to the target terminal. When the first AP equipment determines the second AP equipment, the third AP equipment closest to the target terminal is determined as the second AP equipment according to the received notification message of the third AP equipment, so that the stability of the network when the first AP equipment switches the network access point of the target terminal into the second AP equipment is ensured, the stability of the network of the target terminal is improved, and the user experience is improved.
Referring to fig. 5, a flowchart of another embodiment of a network connection method according to an embodiment of the present invention is provided. As shown in fig. 5, the process may include the following steps:
step 501, detecting the number of terminals currently accessed to the first AP device.
Step 502, when it is detected that the number of the terminals is greater than or equal to a preset number threshold, sending an alarm message to a Mesh router in the Mesh network, so that the Mesh router reallocates channels to a subnet where the plurality of AP devices are located after receiving the alarm message from the plurality of AP devices.
Step 501 and step 502 are explained below in a unified manner:
in an embodiment, as shown in fig. 7, a Mesh network structure includes multiple subnets, each subnet includes multiple AP devices, and each AP device has access to a different number of terminals. In order to avoid network congestion caused when a large number of terminals access the AP device, the first AP device may periodically detect the number of terminals currently accessing the first AP device. When detecting that the number of the terminals is greater than or equal to the preset number threshold, the first AP device may send an alarm message to a Mesh router in the Mesh network, so that the Mesh router receives the alarm message from the multiple AP devices and reallocates a channel for a subnet where the multiple AP devices are located. It should be noted that the preset number threshold may be 50 or 100, and the present invention is not limited to this.
In the embodiment of the invention, the number of terminals which are currently accessed to the first AP equipment is detected by the first AP equipment, and when the number of the terminals is detected to be larger than or equal to the preset number threshold, the first AP equipment sends the alarm message to the Mesh router in the Mesh network, so that the Mesh router receives the alarm messages from the plurality of AP equipment and then reallocates channels for the subnets where the plurality of AP equipment are located. By detecting the number of currently accessed terminals and sending out warning messages when the number of the terminals exceeds a preset number threshold, network congestion caused when a large number of terminals are accessed into the AP equipment is avoided, and therefore the stability of a target terminal network is improved, and user experience is improved.
Referring to fig. 8, a block diagram of an embodiment of a network connection device according to an embodiment of the present invention is shown. As shown in fig. 8, the apparatus includes:
a detecting module 81, configured to detect a distance between a target terminal that has currently accessed the first AP device and the first AP device;
a determining module 82, configured to determine, when it is detected that the distance satisfies a set condition, a second AP device closest to the target terminal from the Mesh network;
a switching module 83, configured to switch the network access point of the target terminal from the first AP device to the second AP device.
In a possible embodiment, the device further comprises (not shown in the figures):
a sending module, configured to send a notification message to other AP devices in the Mesh network when it is detected that any terminal enters a network coverage area of the first AP device, where the notification message at least carries device information of the any terminal;
the determination module 82 includes:
a receiving submodule, configured to receive the notification message from at least one third AP device, where the target terminal enters a network coverage area of the third AP device;
the analysis submodule is used for analyzing the equipment information of the target terminal from the received notification message;
and the determining submodule is used for determining a second AP device closest to the target terminal from at least one third AP device when the target terminal is determined to be accessed to the first AP device according to the analyzed device information of the target terminal.
In one possible implementation, the sending module is further configured to:
the notification message also carries the distance between any terminal and the first AP equipment;
the determination submodule is specifically configured to:
when the number of the third AP devices is 1, determining the third AP devices as second AP devices closest to the target terminal;
when the number of the third AP devices is multiple, analyzing the distance from the received multiple notification messages, respectively;
and determining the third AP equipment corresponding to the minimum distance in the distances as the second AP equipment closest to the target terminal.
In one possible implementation, the switching module 83 includes:
a sending sub-module, configured to send an access request to the second AP device, where the access request carries access information of the target terminal, so that the second AP device accesses the target terminal to the second AP device based on the access information;
and the disconnection sub-module is configured to receive a response message from the second AP device, where the response message is used to indicate that the target terminal has accessed the second AP device, and disconnect the target terminal from the first AP device.
In a possible embodiment, the device further comprises (not shown in the figures):
the number detection module is used for detecting the number of the terminals which have access to the first AP equipment at present;
and the alarm sending module is used for sending an alarm message to a Mesh router in the Mesh network when detecting that the number of the terminals is greater than or equal to a preset number threshold value, so that the Mesh router receives the alarm message from the plurality of AP devices and then allocates channels to the subnets where the plurality of AP devices are located again.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 900 shown in fig. 9 includes: at least one processor 901, memory 902, at least one network interface 904, and other user interfaces 903. Various components in the electronic device 900 are coupled together by a bus system 905. It is understood that the bus system 905 is used to enable communications among the components. The bus system 905 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 9 as bus system 905.
The user interface 903 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 902 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM ), enhanced Synchronous DRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 902 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 902 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 9021 and application programs 9022.
The operating system 9021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, and is configured to implement various basic services and process hardware-based tasks. The application 9022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in application 9022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 902, specifically, a program or an instruction stored in the application 9022, the processor 901 is configured to execute the method steps provided by the method embodiments, for example, including:
detecting the distance between a target terminal which is accessed to the first AP equipment at present and the first AP equipment;
when the distance meets the set condition, determining a second AP device closest to the target terminal from the Mesh network;
and switching the network access point of the target terminal from the first AP equipment to the second AP equipment.
The method provided by the above embodiment of the present invention may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 901. The processor 901 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and in combination with the hardware thereof, performs the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 9, and may perform all the steps of the network connection method shown in fig. 1-2, so as to achieve the technical effect of the network connection method shown in fig. 1-2, and for brevity, it is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of the above kinds of memories.
When one or more programs in the storage medium are executable by one or more processors to implement the network connection method described above as being executed on the network connection device side.
The processor is configured to execute the network connection program stored in the memory to implement the following steps of the network connection method executed on the network connection device side:
detecting the distance between a target terminal which is accessed to the first AP equipment at present and the first AP equipment;
when the fact that the distance meets the set condition is detected, determining a second AP device closest to the target terminal from the Mesh network;
and switching the network access point of the target terminal from the first AP equipment to the second AP equipment.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A network connection method is applied to a first wireless Access Point (AP) device in a wireless Mesh network, wherein the first AP device is any AP device in the Mesh network, and the method comprises the following steps:
when detecting that any terminal enters a network coverage area of the first AP device, sending a notification message to other AP devices in the Mesh network, wherein the notification message at least carries device information of the any terminal;
detecting the distance between a target terminal which is accessed to the first AP equipment at present and the first AP equipment;
when the fact that the distance meets the set condition is detected, a second AP device closest to the target terminal is determined from the Mesh network, and the method comprises the following steps: receiving the notification message from at least one third AP device, wherein the target terminal enters a network coverage area of the third AP device; analyzing the equipment information of the target terminal from the received notification message; when the target terminal is determined to have accessed the first AP device according to the analyzed device information of the target terminal, determining a second AP device closest to the target terminal from at least one third AP device;
switching a network access point of the target terminal from the first AP device to the second AP device.
2. The method of claim 1, wherein the notification message further carries a distance between the any terminal and the first AP device;
the determining a second AP device closest to the target terminal from among the at least one third AP device includes:
when the number of the third AP devices is 1, determining the third AP devices as second AP devices closest to the target terminal;
when the number of the third AP devices is multiple, analyzing the distance from the received multiple notification messages, respectively;
and determining the third AP equipment corresponding to the minimum distance in the distances as the second AP equipment closest to the target terminal.
3. The method of claim 1, wherein the handing over the network access point of the target terminal from the first AP device to the second AP device comprises:
sending an access request to the second AP device, wherein the access request carries access information of the target terminal, so that the second AP device accesses the target terminal to the second AP device based on the access information;
and receiving a response message from the second AP device, wherein the response message is used for representing that the target terminal has accessed the second AP device and disconnecting the target terminal from the first AP device.
4. The method of claim 1, further comprising:
detecting the number of terminals which have access to the first AP equipment at present;
and when detecting that the number of the terminals is greater than or equal to a preset number threshold, sending an alarm message to a Mesh router in the Mesh network, so that the Mesh router receives the alarm message from a plurality of AP devices and then reallocates channels for subnets where the AP devices are located.
5. A network connection apparatus, the apparatus comprising:
a sending module, configured to send a notification message to other AP devices in a Mesh network when detecting that any terminal enters a network coverage area of a first AP device, where the notification message at least carries device information of the any terminal, and the first AP device is any AP device in the Mesh network;
a detection module, configured to detect a distance between a target terminal currently accessed to the first AP device and the first AP device;
a determining module, configured to determine, when it is detected that the distance satisfies a set condition, a second AP device closest to the target terminal from the Mesh network, where the determining module includes: receiving the notification message from at least one third AP device, wherein the target terminal enters a network coverage area of the third AP device; analyzing the equipment information of the target terminal from the received notification message; when the target terminal is determined to have accessed to the first AP equipment according to the analyzed equipment information of the target terminal, determining second AP equipment which is closest to the target terminal from at least one third AP equipment;
a switching module, configured to switch the network access point of the target terminal from the first AP device to the second AP device.
6. A Mesh network system, characterized in that the Mesh network system comprises:
a plurality of AP devices;
a first AP device, which is any one of the AP devices, and is configured to send a notification message to other AP devices in the Mesh network when it is detected that any terminal enters a network coverage area of the first AP device, where the notification message at least carries device information of the any terminal; detecting the distance between a target terminal which is accessed to the first AP equipment at present and the first AP equipment; when the fact that the distance meets the set condition is detected, determining a second AP device closest to the target terminal from the Mesh network system comprises the following steps: receiving the notification message from at least one third AP device, wherein the target terminal enters a network coverage area of the third AP device; analyzing the equipment information of the target terminal from the received notification message; when the target terminal is determined to have accessed to the first AP equipment according to the analyzed equipment information of the target terminal, determining second AP equipment which is closest to the target terminal from at least one third AP equipment; and switching the network access point of the target terminal from the first AP equipment to the second AP equipment.
7. An electronic device, comprising: a processor and a memory, the processor being configured to execute a network connection program stored in the memory to implement the network connection method according to any one of claims 1 to 4.
8. A storage medium storing one or more programs executable by one or more processors to implement the network connection method according to any one of claims 1 to 4.
CN202111523138.6A 2021-12-13 2021-12-13 Network connection method, device, system, electronic equipment and storage medium Active CN114245432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111523138.6A CN114245432B (en) 2021-12-13 2021-12-13 Network connection method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111523138.6A CN114245432B (en) 2021-12-13 2021-12-13 Network connection method, device, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114245432A CN114245432A (en) 2022-03-25
CN114245432B true CN114245432B (en) 2023-04-07

Family

ID=80755555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111523138.6A Active CN114245432B (en) 2021-12-13 2021-12-13 Network connection method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114245432B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117062175B (en) * 2023-10-13 2024-04-02 荣耀终端有限公司 Switching method and device of wireless Access Point (AP)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243484A (en) * 2016-12-26 2018-07-03 华为技术有限公司 Cut-in method, access point AP and site STA in WLAN
CN109565735A (en) * 2017-08-09 2019-04-02 北京小米移动软件有限公司 The methods, devices and systems of network connection management
CN113115383A (en) * 2021-03-17 2021-07-13 深信服科技股份有限公司 Signal management method, device and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852190A (en) * 2005-08-15 2006-10-25 华为技术有限公司 Access-in spot switching-over method and wireless local network using same
US9008045B2 (en) * 2012-04-12 2015-04-14 Time Warner Cable Enterprises Llc Handoffs between access points in a Wi-Fi environment
TWI684380B (en) * 2018-09-26 2020-02-01 啟碁科技股份有限公司 Wireless mesh network topology map management method based on positioning technique
CN110650455B (en) * 2019-09-12 2022-04-05 华侨大学 Internet of vehicles access point switching method based on software defined network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243484A (en) * 2016-12-26 2018-07-03 华为技术有限公司 Cut-in method, access point AP and site STA in WLAN
CN109565735A (en) * 2017-08-09 2019-04-02 北京小米移动软件有限公司 The methods, devices and systems of network connection management
CN113115383A (en) * 2021-03-17 2021-07-13 深信服科技股份有限公司 Signal management method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN114245432A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
EP3337245B1 (en) Method and apparatus for handling abnormality of network communication function and storage medium
CN107079356B (en) Selective scanning for legacy radio coverage in idle mode
KR20210147030A (en) Method and apparatus for determining analysis of behavior for a terminal
WO2018107892A1 (en) Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium
CN106658568B (en) Method and equipment for providing available wireless access point information
CN111417111A (en) Data processing method and network equipment
EP3220691B1 (en) Network node selection and activation method and apparatus
CN114245432B (en) Network connection method, device, system, electronic equipment and storage medium
CN108605280B (en) Techniques for remotely managing device connectivity in response to cellular network disruption
CN108260159B (en) Different system service self-adaptive switching method and base station
CN105357049A (en) Network communication functional abnormity processing method, application processor and mobile terminal
CN113784402A (en) Method, device, mobile terminal and storage medium for switching and registering IMS
CN108174416B (en) Method and apparatus for determining mobile terminal residence area and storage medium
CN105634794B (en) Processing method, modem and the mobile terminal of network communicating function exception
CN112291821A (en) Information configuration method and device, related equipment and storage medium
CN107548030B (en) WiFi switch control and data query service method, device and medium
CN105491604A (en) Network communication function abnormality processing method, modulator-demodulator and user terminal
CN113316205B (en) Cell switching method, device, electronic equipment and computer readable storage medium
CN113676894B (en) Service processing method and equipment
CN108282804B (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN112654068B (en) Reselection control method of mobile terminal and base station
US9100878B2 (en) Apparatus and method for connecting with network in portable terminal
CN113079475B (en) Method and device for remotely managing device connections
WO2021102849A1 (en) Resource acquisition method and apparatus, and electronic device
CN107949009B (en) Method and device for detecting LTE network access result and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant