CN113596938A - Network switching method and device of mobile terminal, storage medium and electronic device - Google Patents

Network switching method and device of mobile terminal, storage medium and electronic device Download PDF

Info

Publication number
CN113596938A
CN113596938A CN202110736080.7A CN202110736080A CN113596938A CN 113596938 A CN113596938 A CN 113596938A CN 202110736080 A CN202110736080 A CN 202110736080A CN 113596938 A CN113596938 A CN 113596938A
Authority
CN
China
Prior art keywords
proxy node
mobile terminal
node
target
proxy
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.)
Pending
Application number
CN202110736080.7A
Other languages
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110736080.7A priority Critical patent/CN113596938A/en
Publication of CN113596938A publication Critical patent/CN113596938A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Abstract

The embodiment of the invention provides a network switching method and device of a mobile terminal, a storage medium and an electronic device, wherein the method comprises the following steps: determining a weight value of a target agent node in a wireless mesh network to obtain a target weight value; and under the condition that the target weight value is larger than the weight values of other agent nodes in the wireless mesh network, switching to the target agent node to establish network connection with the target agent node. The invention solves the problem of connection between the terminal equipment and the wireless grid network in the related technology, and achieves the effect of improving the communication quality of the mobile terminal after accessing the wireless grid network.

Description

Network switching method and device of mobile terminal, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a network switching method and device of a mobile terminal, a storage medium and an electronic device.
Background
The mobile terminal communicates with the devices in the mesh network of the wireless mesh network, and currently, there are two schemes: the first is that the mobile terminal communicates with the devices in the mesh network through the mesh gateway, and the second is that the mobile terminal communicates with other devices in the mesh network through connecting the proxy node in the mesh network.
The first scheme needs to use a gateway device, which causes extra cost and depends on the stability of the gateway device, and the second scheme has the problems of connection interruption and unstable signal quality because of the mobile property of the mobile terminal.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides a network switching device, a storage medium and an electronic device of a mobile terminal, which are used for at least solving the problem of connection between terminal equipment and a wireless mesh network in the related technology.
According to an embodiment of the present invention, there is provided a network handover method of a mobile terminal, including: determining the current network connection state of the mobile terminal; determining a target proxy node among N proxy nodes in the wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes; and switching the proxy node currently connected with the mobile terminal to the target proxy node so as to establish network connection with the target proxy node.
According to another embodiment of the present invention, there is provided a network connection apparatus of a mobile terminal, including: the first determining module is used for determining the current network connection state of the mobile terminal; a second determining module for determining a target proxy node among the N proxy nodes in the wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes; the first switching module is used for switching the proxy node currently connected with the mobile terminal to the target proxy node so as to establish network connection with the target proxy node.
In an exemplary embodiment, the first determining module includes: a first determining unit, configured to determine a signal strength of a current proxy node to which the mobile terminal is currently connected; a second determining unit, wherein the user determines the communication quality of the mobile terminal in a preset time period; a third determining unit, configured to determine a current network connection status of the mobile terminal based on the signal strength and the communication quality.
In one exemplary embodiment, the second determining module includes: a fourth determining unit, configured to receive a broadcast message sent by each of the N proxy nodes when the network connection state is abnormal when communication is performed through a current proxy node connected to a mobile terminal, to obtain N broadcast messages, where each broadcast message in the N broadcast messages includes a signal strength of one proxy node and a device type of a routing device in which the one proxy node is located; a fifth determining unit, configured to determine the target proxy node from the N proxy nodes based on the signal strength of the target proxy node and a device type of a routing device in which the target proxy node is located.
In an exemplary embodiment, the fifth determining unit includes: and the first determining subunit is configured to determine, as the target proxy node, a proxy node that has the strongest signal strength and for which the routing device meets a preset type, among the N proxy nodes.
In an exemplary embodiment, the first switching module includes: a disconnection subunit, configured to disconnect the currently connected proxy node; and the connection subunit is used for establishing network connection with the target agent node.
In an exemplary embodiment, the apparatus further includes: a storage module, configured to switch an agent node currently connected to the mobile terminal to the target agent node, and store the signal strengths of the N agent nodes and the device type of the routing device into a database according to a red-black tree structure, where the database includes identification information of the target agent node to identify an association relationship between the device type of the routing device and the signal strength; and the first receiving module is used for receiving the broadcast message sent by the proxy node with the changed signal strength in the N proxy nodes under the condition that the database is determined to be changed.
In an exemplary embodiment, the apparatus further includes: and the termination module is used for terminating the switching to the target agent node under the condition that the target agent node is the same as the current agent node currently connected with the mobile terminal.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the current network connection state of the mobile terminal is determined; determining a target proxy node among N proxy nodes in the wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes; and switching the proxy node currently connected with the mobile terminal to the target proxy node so as to establish network connection with the target proxy node. The aim that the mobile terminal can be connected to the proxy node with better network quality in the moving process of the mobile terminal is achieved. Therefore, the problem of connection between the terminal device and the wireless mesh network in the related art can be solved, and the effect of improving the communication quality of the mobile terminal after accessing the wireless mesh network is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a network handover method of the mobile terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of a network handover method of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an interaction process of a mobile terminal and a mesh network according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an interactive process between a mobile terminal and a mesh network according to an embodiment of the present invention;
FIG. 5 is a flow diagram of a preferred connection broker node according to an embodiment of the present invention;
fig. 6 is a block diagram of a network switching apparatus of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a network switching method of the mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the network switching method of the mobile terminal in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a network handover method of a mobile terminal is provided, and fig. 2 is a flowchart of a network handover method of a mobile terminal according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, determining the current network connection state of the mobile terminal;
step S204, determining a target proxy node from N proxy nodes in the wireless mesh network based on the network connection state, wherein the target proxy node is included in the N proxy nodes;
step S206, the agent node currently connected with the mobile terminal is switched to the target agent node so as to establish network connection with the target agent node.
The execution subject of the above steps may be a terminal, but is not limited thereto.
The embodiment includes but is not limited to the application in the scene of communication between the mobile terminal and the device in the mesh network.
In this embodiment, the mesh network includes a plurality of proxy nodes. The mobile terminal is generally connected with only one proxy node, the mobile terminal is connected to the mesh network through any proxy node in the mesh network, and the mobile terminal can communicate with any node in the mesh network after being connected to the proxy node.
In this embodiment, the mobile terminal, as a mobile device, cannot always form a good signal connection with a node in the mesh network. After the mobile terminal is connected with one proxy node in the mesh network, a connectable proxy node with higher signal quality may exist after the mobile terminal moves. For example, when the proxy node to which the mobile terminal is currently connected is in the user's living room and the mobile terminal enters the bedroom, the signal quality of the current connection becomes poor, and if the proxy node exists in the bedroom, the signal quality of the proxy node in the bedroom is higher than that of the proxy node in the living room at the moment.
Through the steps, the current network connection state of the mobile terminal is determined; determining a target proxy node among N proxy nodes in the wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes; and switching the proxy node currently connected with the mobile terminal to the target proxy node so as to establish network connection with the target proxy node. The aim that the mobile terminal can be connected to the proxy node with better network quality in the moving process of the mobile terminal is achieved. Therefore, the problem of connection between the terminal device and the wireless mesh network in the related art can be solved, and the effect of improving the communication quality of the mobile terminal after accessing the wireless mesh network is achieved.
In one exemplary embodiment, determining the current network connection status of the mobile terminal comprises:
s1, determining the signal strength of the current proxy node currently connected with the mobile terminal;
s2, determining the communication quality of the mobile terminal in a preset time period;
and S3, determining the current network connection state of the mobile terminal based on the signal strength and the communication quality.
In this embodiment, for example, in the time T, the signal strength of the mobile terminal is less than the preset signal strength, and if the mobile terminal has an abnormal communication, it is determined that the current network connection state of the mobile terminal is abnormal.
In one exemplary embodiment, a target proxy node is determined among N proxy nodes in a wireless mesh network based on the network connection status:
s1, when the current proxy node connected by the mobile terminal is used for communication and the network connection state is abnormal, receiving the broadcast message sent by each proxy node in N proxy nodes to obtain N broadcast messages, wherein each broadcast message in the N broadcast messages comprises the signal intensity of one proxy node and the equipment type of the routing equipment where the proxy node is located;
s2, determining the target proxy node from the N proxy nodes based on the signal strength of the target proxy node and the device type of the routing device in which the target proxy node is located.
In an exemplary embodiment, determining the target proxy node from the N proxy nodes based on the signal strength of the target proxy node and the device type of the routing device in which the target proxy node is located includes:
and S1, determining the proxy node with the strongest signal strength and the routing equipment meeting the preset type as the target proxy node.
In one exemplary embodiment, the proxy node to which the mobile terminal is currently connected is handed over to the target proxy node to establish a network connection with the target proxy node:
s1, disconnecting the proxy node which is currently connected;
and S2, establishing network connection with the target agent node.
In this embodiment, when the mobile terminal side accesses the mesh network, and when no proxy node is connected, the mobile terminal side directly connects when discovering the proxy node.
In an exemplary embodiment, before the proxy node to which the mobile terminal is currently connected is handed over to the target proxy node to establish a network connection with the target proxy node, the method further includes:
s1, storing the signal strength of N proxy nodes and the equipment type of the routing equipment into a database according to a red-black tree structure, wherein the database comprises identification information of target proxy nodes so as to identify the association relationship between the equipment type and the signal strength of the routing equipment;
and S2, receiving the broadcast message sent by the agent node with the changed signal strength in the N agent nodes under the condition that the database is determined to be changed.
In this embodiment, the signal strengths of N proxy nodes and the device types of the routing devices are inserted into the database of the red-black tree structure in a sorted manner, and when the database of the red-black tree structure changes, the switching of the nodes is triggered; or, when the connection state of the connected proxy node is abnormal, for example, the mobile terminal reports connection failure, the node switching is triggered; or when the device in the mesh network communicates with the proxy node, an exception occurs, and the switching of the node is triggered.
In this embodiment, when communicating with the device in the mesh network through the proxy node, an exception occurs, and an exception event stamp and an exception type are recorded.
In one exemplary embodiment, the method further comprises:
and under the condition that the target agent node is the same as the current agent node currently connected with the mobile terminal, terminating the switching to the target agent node.
In this embodiment, the judgment condition is determined by whether the proxy node addresses are the same. When executing switching, if the target agent node is the same as the current agent node, the switching is abandoned.
The invention is illustrated below with reference to specific examples:
the mesh network described in this embodiment includes a ble mesh network (mesh networking technology based on bluetooth low energy).
After the proxy node is connected to the mesh network, the method and the device ensure the stability of proxy node connection as much as possible, ensure the optimal proxy node connection all the time, and improve the success rate of communication. Meanwhile, the embodiment does not deny the help of a gateway communication mode, and a mobile phone terminal dual-channel mode (gateway + proxy node connection) is accessed to the mesh network, so that the communication quality is also improved. The embodiment explains that the communication quality of the channel is improved only by means of the proxy node, and finally, the overall communication quality is improved.
As shown in fig. 3, which is an interactive process between the mobile terminal and the mesh network in this embodiment, the mobile terminal calculates a weight value of the proxy node (whether to express that the proxy node is more worthy of connection), and the weight value is used to determine which node should be connected. The specific flow chart is shown in fig. 4, and includes the following steps:
after the mobile terminal starts a process of accessing the mesh network, a cyclic process of discovering the proxy node and calculating a weight value is started;
after the mobile terminal is connected to the mesh network through one of the nodes connected to the mesh network, the node weight value calculation cycle is still not stopped;
the loop is driven by the node broadcast reporting event, and after receiving the broadcast of each node, a calculation flow aiming at the node is executed;
the weighted value of the node is influenced by the signal strength of the node, and is specifically represented as that the signal strength of the node is multiplied by a constant to be used as a part of the weighted value, and the constant is prefabricated by a developer;
the weight value of the node is influenced by the equipment type of the node, and is specifically represented as that the initial weight value corresponding to the equipment type is multiplied by a constant to be used as a part of the weight value, and the constant is prefabricated by a developer;
the corresponding relation between the device type and the type initial weight value is preset by a developer, for example, the initial weight value of the node with the device type as a router is larger than the initial weight value of the node with the device type as a lamp;
after the weight values are calculated, (the node and the weight values) are stored into a memory as a whole, and are sequenced in the inserting process in a red-black tree mode;
the (node + weight value) is stored using the unique identity of the node as the deduplication criterion, such as the address of the node. As can be seen from the above process, the weight values of the nodes are dynamically changed.
In this embodiment, as shown in fig. 5, when the mobile terminal accesses the mesh network, the proxy node is preferentially connected to the mobile terminal; when no node is connected, when the node is found, the node is directly connected. The method specifically comprises the following steps:
after the weight value of the agent node is calculated, inserting the red and black trees in a sequencing mode, and triggering the process when the red and black trees are changed;
when the connected node connection state is abnormal, for example, the mobile terminal reports connection failure, the process is triggered;
when the communication with the equipment in the mesh network is carried out through the proxy node, the abnormality occurs, and the process is triggered;
when the communication with the equipment in the mesh network is carried out through the proxy node, an exception occurs, and an exception event stamp and an exception type are recorded;
after entering a switching flow, firstly judging whether the connection state of the current node is abnormal or not, and executing switching if the connection state of the current node is abnormal;
if the current node connection state is normal, judging whether communication abnormity occurs within T time, if the communication abnormity occurs, executing switching, and performing T by a developer;
if the communication within the time T is abnormal, judging whether the signal strength of the node connected at present is weaker than Z, if so, executing switching, wherein Z is prefabricated by a developer
When switching is executed, if the node to be switched is found to be the same as the current node (the node address is used as the judgment input for judging whether the node is the same or not), the switching is abandoned;
when a new node is successfully connected, disconnecting the previous node, in the time period when two nodes are connected together, logically filtering repeated reported messages last time, and using the new node when sending the messages;
when no agent node is connected temporarily, the mobile terminal side temporarily stores the message into the memory, the message is sent after the connection is successful, and the temporary storage retention time is preset for a developer.
To sum up, the mobile terminal dynamically selects connection according to the signal strength of the proxy node in the mesh network; the mobile terminal dynamically selects connection through the equipment type of the proxy node in the mesh network; the optimal connection proxy node is dynamically selected, so that the communication quality of the mobile terminal after the mobile terminal is accessed to the mesh network can be improved, and the success rate of command and state receiving can be controlled; and entering the process of switching the proxy node before the exception completely occurs.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a network connection device of a mobile terminal is further provided, where the network connection device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a network switching apparatus of a mobile terminal according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
a first determining module 62, which is used for determining the current network connection state of the mobile terminal;
a second determining module 64 for determining a target proxy node among the N proxy nodes in the wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes;
and the first switching module 66 is used for switching the proxy node to which the mobile terminal is currently connected to the target proxy node so as to establish network connection with the target proxy node.
In an exemplary embodiment, the first determining module includes:
a first determining unit, configured to determine a signal strength of a current proxy node to which the mobile terminal is currently connected;
a second determining unit, wherein the user determines the communication quality of the mobile terminal in a preset time period;
a third determining unit, configured to determine a current network connection status of the mobile terminal based on the signal strength and the communication quality.
In one exemplary embodiment, the second determining module includes:
a fourth determining unit, configured to receive a broadcast message sent by each of the N proxy nodes when the network connection state is abnormal when communication is performed through a current proxy node connected to a mobile terminal, to obtain N broadcast messages, where each broadcast message in the N broadcast messages includes a signal strength of one proxy node and a device type of a routing device in which the one proxy node is located;
a fifth determining unit, configured to determine the target proxy node from the N proxy nodes based on the signal strength of the target proxy node and a device type of a routing device in which the target proxy node is located.
In an exemplary embodiment, the fifth determining unit includes:
and the first determining subunit is configured to determine, as the target proxy node, a proxy node that has the strongest signal strength and for which the routing device meets a preset type, among the N proxy nodes.
In an exemplary embodiment, the first switching module includes:
a disconnection subunit, configured to disconnect the currently connected proxy node;
and the connection subunit is used for establishing network connection with the target agent node.
In an exemplary embodiment, the apparatus further includes:
a storage module, configured to switch an agent node currently connected to the mobile terminal to the target agent node, and store the signal strengths of the N agent nodes and the device type of the routing device into a database according to a red-black tree structure, where the database includes identification information of the target agent node to identify an association relationship between the device type of the routing device and the signal strength;
and the first receiving module is used for receiving the broadcast message sent by the proxy node with the changed signal strength in the N proxy nodes under the condition that the database is determined to be changed.
In an exemplary embodiment, the apparatus further includes:
and the termination module is used for terminating the switching to the target agent node under the condition that the target agent node is the same as the current agent node currently connected with the mobile terminal.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the above steps.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the above steps by a computer program.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A network switching method of a mobile terminal is characterized by comprising the following steps:
determining the current network connection state of the mobile terminal;
determining a target proxy node among N proxy nodes in a wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes;
and switching the proxy node currently connected with the mobile terminal to the target proxy node so as to establish network connection with the target proxy node.
2. The method of claim 1, wherein determining the current network connection status of the mobile terminal comprises:
determining the signal strength of a current proxy node currently connected with the mobile terminal;
determining the communication quality of the mobile terminal in a preset time period;
and determining the current network connection state of the mobile terminal based on the signal strength and the communication quality.
3. The method of claim 1, wherein determining a target proxy node among N proxy nodes in a wireless mesh network based on the network connection status comprises:
when the current proxy node connected through a mobile terminal is used for communication, and the network connection state is abnormal, receiving broadcast messages sent by each proxy node in the N proxy nodes to obtain N broadcast messages, wherein each broadcast message in the N broadcast messages comprises the signal intensity of one proxy node and the equipment type of the routing equipment where the proxy node is located;
and determining the target proxy node from the N proxy nodes based on the signal strength of the target proxy node and the device type of the routing device in which the target proxy node is positioned.
4. The method of claim 3, wherein determining the target proxy node from the N proxy nodes based on the signal strength of the target proxy node and the device type of the routing device in which the target proxy node is located comprises:
and determining the proxy node with the strongest signal strength and the routing equipment meeting the preset type in the N proxy nodes as the target proxy node.
5. The method of claim 1, wherein handing over the proxy node to which the mobile terminal is currently connected to the target proxy node to establish a network connection with the target proxy node comprises:
disconnecting the currently connected proxy node;
and establishing network connection with the target agent node.
6. The method of claim 1, wherein before handing over the proxy node to which the mobile terminal is currently connected to the target proxy node to establish a network connection with the target proxy node, the method further comprises:
simultaneously storing the signal strengths of the N agent nodes and the equipment type of the routing equipment into a database according to a red-black tree structure, wherein the database comprises identification information of the target agent node so as to identify the association relationship between the equipment type of the routing equipment and the signal strength;
and under the condition that the database is determined to be changed, receiving a broadcast message sent by the proxy node with the changed signal strength in the N proxy nodes.
7. The method of claim 1, further comprising:
and under the condition that the target agent node is the same as the current agent node currently connected with the mobile terminal, terminating the switching to the target agent node.
8. A network switching apparatus of a mobile terminal, comprising:
the first determining module is used for determining the current network connection state of the mobile terminal;
a second determining module for determining a target proxy node among N proxy nodes in a wireless mesh network based on the network connection status, wherein the target proxy node is included in the N proxy nodes;
and the first switching module is used for switching the proxy node currently connected with the mobile terminal to the target proxy node so as to establish network connection with the target proxy node.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202110736080.7A 2021-06-30 2021-06-30 Network switching method and device of mobile terminal, storage medium and electronic device Pending CN113596938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110736080.7A CN113596938A (en) 2021-06-30 2021-06-30 Network switching method and device of mobile terminal, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110736080.7A CN113596938A (en) 2021-06-30 2021-06-30 Network switching method and device of mobile terminal, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113596938A true CN113596938A (en) 2021-11-02

Family

ID=78245427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110736080.7A Pending CN113596938A (en) 2021-06-30 2021-06-30 Network switching method and device of mobile terminal, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113596938A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017063485A1 (en) * 2015-10-15 2017-04-20 华为技术有限公司 Wireless communications access method, device, processor and wireless terminal
CN107241771A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium
CN111245948A (en) * 2020-01-16 2020-06-05 深圳市网心科技有限公司 DHT network connection method, electronic device, and medium
CN111405492A (en) * 2020-04-08 2020-07-10 浙江大华技术股份有限公司 Method, device, storage medium, and electronic device for connecting to target network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017063485A1 (en) * 2015-10-15 2017-04-20 华为技术有限公司 Wireless communications access method, device, processor and wireless terminal
CN107241771A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium
CN111245948A (en) * 2020-01-16 2020-06-05 深圳市网心科技有限公司 DHT network connection method, electronic device, and medium
CN111405492A (en) * 2020-04-08 2020-07-10 浙江大华技术股份有限公司 Method, device, storage medium, and electronic device for connecting to target network

Similar Documents

Publication Publication Date Title
CN111865736B (en) Equipment control method and device
CN111885115B (en) Device binding changing method and device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN112596768B (en) Updating method and device of equipment, storage medium and electronic device
CN101902731B (en) Internet access method based on mobile communication equipment terminals
CN111884875A (en) Offline device determination method and device
CN112437454A (en) Data transmission method and device, storage medium and electronic device
EP3700258A1 (en) Method and apparatus for processing link establishment failure, and computer storage medium
CN112738785B (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN112566104B (en) Roaming coordination method based on Mesh network, wireless access point and storage medium
CN112671575B (en) Working link switching method and device, storage medium and electronic device
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN113596938A (en) Network switching method and device of mobile terminal, storage medium and electronic device
CN113596939A (en) Network connection method and device of mobile terminal, storage medium and electronic device
CN111385110B (en) Network management method and device
CN112751706A (en) Target data transmission method and device
CN114390454A (en) Message transmission method, system, electronic device and storage medium
CN112383438A (en) Method for constructing distribution network error code, and method and device for distributing network of intelligent equipment
CN112433480A (en) Intelligent household system and control method and device thereof
CN113660734B (en) Connection method and device of network equipment, network equipment and medium
CN110532012A (en) A kind of distributed system software upgrade method and device
CN112689010B (en) Equipment message transmission method and device, storage medium and electronic device
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device
CN113747415B (en) Connection method and device of wireless access point, storage medium and electronic device

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