CN114363973A - Network switching method and device, electronic equipment and computer readable storage medium - Google Patents

Network switching method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114363973A
CN114363973A CN202210010811.4A CN202210010811A CN114363973A CN 114363973 A CN114363973 A CN 114363973A CN 202210010811 A CN202210010811 A CN 202210010811A CN 114363973 A CN114363973 A CN 114363973A
Authority
CN
China
Prior art keywords
wireless network
network
signal receiving
preset
current state
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
CN202210010811.4A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210010811.4A priority Critical patent/CN114363973A/en
Publication of CN114363973A publication Critical patent/CN114363973A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application relates to a network switching method, a network switching device, a computer device, a storage medium and a computer program product. The method comprises the following steps: after the wireless network equipment is connected, the communication is carried out through a wireless network provided by the wireless network equipment; in the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, detecting the network environment of the signal receiving equipment in the current state; determining a target scene in which the signal receiving equipment is located in the current state based on the network environment; and if the target scene is a preset scene, switching the wireless network. The method can improve the network switching speed.

Description

Network switching method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a network switching method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
As the internet has become more developed, various electronic devices almost all need to access the internet for communication. In daily life, WiFi (WIreless Fidelity) networks have faster network speeds, and users generally prefer to access WiFi networks. When a problem occurs in the WiFi network, it needs to switch to other networks to realize continuous communication.
However, the conventional network handover method generally determines the communication quality of the current network by obtaining various parameters, and in order to ensure that the parameters can accurately reflect the communication quality of the current network, continuous observation and calculation are required for a long time, thereby causing a problem of slow network handover.
Disclosure of Invention
The embodiment of the application provides a network switching method, a network switching device, electronic equipment, a computer readable storage medium and a computer program product, which can improve the network switching speed.
A network switching method is applied to a signal receiving device, and comprises the following steps:
after the wireless network equipment is connected, the communication is carried out through a wireless network provided by the wireless network equipment;
in the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, detecting the network environment of the signal receiving equipment in the current state;
determining a target scene in which the signal receiving equipment is located in the current state based on the network environment;
and if the target scene is a preset scene, switching the wireless network.
A network switching apparatus, applied to a signal receiving device, the apparatus comprising:
the communication module is used for communicating through a wireless network provided by the wireless network equipment after the wireless network equipment is connected;
the detection module is used for detecting the network environment of the signal receiving equipment in the current state if the fluency of the wireless network is detected to be lower than a preset fluency threshold value in the communication process;
the scene determining module is used for determining a target scene in which the signal receiving equipment is positioned in the current state based on the network environment;
and the switching module is used for switching the wireless network if the target scene is a preset scene.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program, the computer program, when executed by the processor, causing the processor to perform the steps of the network switching method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.
A computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method described above.
According to the network switching method, the network switching device, the electronic equipment, the computer readable storage medium and the computer program product, after the signal receiving equipment is connected with the wireless network equipment, the signal receiving equipment communicates through a wireless network provided by the wireless network equipment. In the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, which indicates that the wireless network accessed by the signal receiving equipment can not normally provide services for communication, the network environment of the signal receiving equipment in the current state is detected, the target scene of the signal receiving equipment in the current state can be rapidly determined based on the network environment, and the communication quality of the wireless network can be obtained only by continuously detecting parameters. Then, if the target scene of the current state of the signal receiving equipment is a preset scene, the wireless network can be switched quickly, the network switching speed is increased, and the non-perception switching of the network is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary network handover method;
FIG. 2 is a flow diagram of a method for network handover in one embodiment;
FIG. 3 is a flow chart of a network handover method in another embodiment;
FIG. 4 is a block diagram of a network switch device in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The network switching method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The wireless network device 102 provides a wireless network, and the signal receiving device 104 accesses the wireless network and communicates with the wireless network device 102 through the wireless network. After the signal receiving device 104 is connected to the wireless network device 102, it communicates through the wireless network provided by the wireless network device 102; in the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting the network environment of the signal receiving equipment 104 in the current state; determining a target scene in which the signal receiving device 104 is currently located based on a network environment; and if the target scene is a preset scene, switching the wireless network. The wireless network device 102 may be, but is not limited to, various routers, various personal computers and notebook computers capable of providing wireless networks, and the like. The signal receiving device 104 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like.
In one embodiment, as shown in fig. 2, a network handover method is provided, which is described by taking the method as an example applied to the signal receiving apparatus in fig. 1, and includes the following steps:
step 202, after connecting the wireless network device, communicating through a wireless network provided by the wireless network device.
The wireless network refers to a network that can interconnect various communication devices without wiring. Wireless networking technologies cover a wide range of technologies, including both global voice and data networks that allow users to establish long-range wireless connections, and infrared and radio frequency technologies optimized for short-range wireless connections. Wireless networks can be classified into Wireless Wide Area Networks (WWANs), Wireless Local Area Networks (WLANs), Wireless Metropolitan Area Networks (WMANs), and Wireless Personal Area Networks (WPANs), depending on the coverage of the Network. The wireless network may specifically be a WiFi network.
The wireless network device is a device providing a wireless network, that is, an Access Point (AP) device. The signal receiving device is a device for receiving wireless network signals, namely, a Station. For example, the wireless network device is a router and may provide a WiFi network, and the signal receiving device is a mobile phone and may receive the WiFi network signal, so as to access the WiFi network and perform communication through the WiFi network.
It should be noted that the wireless network device may also include a signal receiver, and if the signal receiver operates, the wireless network device may also serve as a signal receiving device. Similarly, the signal receiving device may also have a device and a signal transmitter for providing a wireless network, and if the device and the signal transmitter for providing a wireless network operate, the wireless network may be provided, and the signal receiving device may also serve as a wireless network device. For example, the smart phone may be used as a signal receiving device to receive WiFi signals, and may also be used as a hotspot signal providing device to provide hotspot signals, that is, wireless network signals.
It will be appreciated that the wireless network devices may transmit wireless network signals during operation. The signal receiving device can receive the wireless network signal, so as to connect the wireless network device, access the wireless network and communicate through the wireless network.
Step 204, in the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting the network environment of the signal receiving equipment in the current state.
Fluency is generally the number of successful transfers of data per unit time. The preset fluency threshold may be set as desired.
The network environment is an environment in the network in which the signal receiving apparatus is currently located. A plurality of information may be included in the network environment, and in particular, the network environment may include network parameter information, interference signals, etc. received from the wireless network device, and may further include other information such as the number of wireless networks, location information of the wireless networks, etc., without being limited thereto.
The signal receiving equipment can detect the fluency of the wireless network in real time in the communication process, and if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, the network environment of the signal receiving equipment in the current state is detected, and all information in the network environment is obtained.
And if the fluency of the wireless network is detected to be higher than or equal to the preset fluency threshold, not switching the network, and continuously detecting the fluency of the wireless network.
And step 206, determining a target scene in which the signal receiving equipment is positioned in the current state based on the network environment.
The target scenario may specifically be congestion, interference or weak signals. The target scene may also be a smooth, non-interfering or strong signal scene.
The signal receiving device determines a target scene in the current state of the signal receiving device based on various information in the network environment. For example, the signal receiving device detects that there are many electronic devices connected to the wireless network in the network environment, and the signal transmission speed is slow, and it may be determined that the target scene in which the signal receiving device is located in the current state is congested. For another example, when the signal receiving device detects that a large number of co-frequency electromagnetic signals exist in the network environment, it may be determined that the target scene where the signal receiving device is located in the current state is interference.
And step 208, if the target scene is a preset scene, switching the wireless network.
The preset scene is a scene needing network switching. The preset scene can be set as required. For example, the preset scenario may be congestion, interference, or weak signal.
And if the target scene is a preset scene, switching the wireless network to a cellular network or a new wireless network. Among them, a Cellular network (Cellular network), also called a mobile network (mobile network) or a Radio Frequency (RF) network, is a mobile communication network.
According to the network switching method, the signal receiving equipment is connected with the wireless network equipment and then communicates through the wireless network provided by the wireless network equipment. In the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, which indicates that the wireless network accessed by the signal receiving equipment can not normally provide services for communication, the network environment of the signal receiving equipment in the current state is detected, the target scene of the signal receiving equipment in the current state can be rapidly determined based on the network environment, and the communication quality of the wireless network can be obtained only by continuously detecting parameters. Then, if the target scene of the current state of the signal receiving equipment is a preset scene, the wireless network can be switched quickly, the network switching speed is increased, and the non-perception switching of the network is realized. And the network switching is carried out quickly, so that the method can be used when the network environment of the wireless network is good, and can also be switched to other networks when the fluency of the wireless network is lower than a preset fluency threshold value, thereby realizing continuous communication.
In one embodiment, if it is detected that the fluency of the wireless network is lower than a preset fluency threshold, detecting a network environment of the signal receiving device in a current state includes: if the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting network parameter information received from the wireless network equipment by the signal receiving equipment in the current state; determining a target scene in which the signal receiving equipment is located in the current state based on the network environment, wherein the method comprises the following steps: and determining the target scene of the signal receiving equipment in the current state based on the network parameter information.
The network parameter information refers to network-related parameter information provided by the wireless network device. The network parameter information may specifically include one or more of a preemption communication parameter on the wireless network device, a received signal strength indication, a number of tasks that the wireless network needs to process, a coverage area of the wireless network, information of the wireless network device, and the like.
Specifically, if it is detected that the fluency of the wireless network is lower than a preset fluency threshold, the signal receiving device receives and detects network parameter information from the wireless network device, and a target scene where the current state of the signal receiving device is located can be determined based on the network parameter information.
In this embodiment, if it is detected that the fluency of the wireless network is lower than the preset fluency threshold, the network parameter information received from the wireless network device in the current state of the signal receiving device is detected, and the information of the wireless network provided by the wireless network device can be acquired based on the network parameter information, so that the target scene in which the signal receiving device is in the current state is accurately determined.
In one embodiment, determining the target scene in which the signal receiving device is currently located based on the network parameter information includes: if the network parameter information is the preemption communication parameter on the wireless network equipment, comparing the preemption communication parameter with a preset parameter threshold, and if the preemption communication parameter is greater than the preset parameter threshold, determining that the target scene of the signal receiving equipment in the current state is congested; if the network parameter information is the received signal strength indication, determining the distance between the signal receiving equipment and the wireless network equipment based on the received signal strength indication; and if the distance is greater than the preset distance threshold, the target scene in which the signal receiving equipment is located in the current state is a weak signal.
Preemption of communication parameters is the Cw parameter in the communication protocol. Physical meaning of the Cw parameter: for a plurality of devices accessing a wireless network provided by the same wireless network device, each device seizes the opportunity of communicating with the wireless network device through the Cw parameter; when there is a plurality of device communication collision, each device waits (2 × Cw-1) × slot time and continues to attempt communication, and if collision still occurs at this time, Cw +1 continues to wait for the next attempt to communicate. That is to say, the larger the Cw parameter is, the more devices accessing the same wireless network are, and each device accessing the wireless network switches communication in a time domain through a time division mechanism, and if the number of devices accessing the wireless network is larger, the lower the network throughput (throughput) allocated to each device is, which may cause a problem of network congestion. The slot time is an interval time set in the communication protocol.
The signal receiving equipment receives the preemption communication parameter from the wireless network equipment, compares the preemption communication parameter with a preset parameter threshold, and if the preemption communication parameter is larger than the preset parameter threshold, the more the equipment accessed by the wireless network is, the more tasks the wireless network equipment needs to process are indicated, and the wireless network has a congestion condition, namely the target scene in which the signal receiving equipment is located in the current state is congestion. If the preemption communication parameter is less than or equal to the preset parameter threshold, it indicates that the wireless network has less access devices and the wireless network does not have congestion. The preset parameter threshold value can be set according to needs.
Further, the signal receiving device may further perform smoothing on the preemption communication parameter, and then compare the smoothed preemption communication parameter with a preset parameter threshold.
The Signal Strength Indication (RSSI) is information used for positioning.
The wireless network equipment sends the received signal strength indication to the signal receiving equipment, the signal receiving equipment receives the received signal strength indication, and the distance between the signal receiving equipment and the wireless network equipment is determined through a preset positioning measurement technology. If the distance is greater than the preset distance threshold, it indicates that the distance between the wireless network device and the signal receiving device is large, the strength of the wireless network signal transmitted by the wireless network device is small, and the wireless network signal is weak, that is, the target scene in which the signal receiving device is located in the current state is a weak signal. If the distance is smaller than or equal to the preset distance threshold, it indicates that the distance between the wireless network device and the signal receiving device is small, and the wireless network signal is strong, that is, the target scene in which the signal receiving device is located in the current state is a strong signal. The preset distance threshold value can be set according to needs.
Further, the wireless network device sends the received signal strength indication to the signal receiving device in real time, and the signal receiving device receives the received signal strength indication in real time.
In this embodiment, if the network parameter information is a preemption communication parameter on the wireless network device, the preemption communication parameter is compared with a preset parameter threshold, and if the preemption communication parameter is greater than the preset parameter threshold, it indicates that the more devices accessed by the wireless network, the more tasks that the wireless network device needs to process, and the target scene in which the signal receiving device is located in the current state is determined to be congested accurately. Moreover, the time for acquiring the preemption communication parameters on the wireless network device by the signal receiving device each time is short, and is usually within 10 milliseconds, so that the target scene of the signal receiving device in the current state can be quickly judged based on the quickly acquired preemption communication parameters, thereby quickly performing network switching and improving the network switching speed.
If the network parameter information is the received signal strength indication, determining the distance between the signal receiving equipment and the wireless network equipment based on the received signal strength indication; if the distance is greater than the preset distance threshold value, the distance between the wireless network device and the signal receiving device is larger, and the target scene in which the signal receiving device is located in the current state can be accurately determined to be a weak signal. Moreover, the time for the signal receiving device to acquire the received signal strength indication on the wireless network device is short, and is usually within 1 second, and the target scene of the signal receiving device in the current state can be quickly judged based on the quickly acquired received signal strength indication, so that network switching is quickly performed, and the network switching speed is increased.
In one embodiment, if it is detected that the fluency of the wireless network is lower than a preset fluency threshold, detecting a network environment of the signal receiving device in a current state includes: if the fluency of the wireless network is detected to be lower than a preset fluency threshold, scanning an interference signal in the network environment of the signal receiving equipment in the current state; or if the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting the packet loss rate; determining a target scene in which the signal receiving equipment is located in the current state based on the network environment, wherein the method comprises the following steps: detecting signal energy of an interference signal, and if the signal energy is greater than a preset energy threshold, determining that a target scene in which the signal receiving equipment is located in the current state is interference; or if the packet loss rate is greater than the preset packet loss rate threshold, the target scene in which the signal receiving equipment is located in the current state is interference.
An interfering signal refers to a signal that interferes with normal communication of the wireless network. The interference signal specifically includes one or more of an intra-frequency electromagnetic signal and noise. The Loss Rate (Loss Tolerance or Packet Loss Rate) is the ratio of the number of lost packets in the transmitted data group during the test.
Specifically, if it is detected that the fluency of the wireless network is lower than a preset fluency threshold, the signal receiving device enters an Rx (communication receiving unit) mode, and scans an interference signal in a network environment of the signal receiving device in a current state in the Rx mode; calculating the signal energy of the interference signal by adopting a preset signal energy calculation formula, wherein if the signal energy is greater than a preset energy threshold value, which indicates that a large number of interference signals exist in the network environment, the target scene in which the signal receiving equipment is located in the current state can be determined as interference; if the signal energy is less than or equal to the preset energy threshold, it indicates that a small amount of interference signals exist or no interference signals exist in the network environment, and it may be determined that the target scene where the signal receiving device is located in the current state is non-interference. Wherein, the preset energy threshold value can be set according to the requirement. The signal energy is in direct proportion to the number of interference signals.
Specifically, if the fluency of the wireless network is detected to be lower than a preset fluency threshold, the signal receiving device detects a packet loss rate, and if the packet loss rate is greater than the preset packet loss rate threshold, it can be considered that a large amount of electromagnetic noise exists in the network environment at the moment, which is not beneficial to wireless network communication, and it can be determined that the target scene in which the signal receiving device is located in the current state is interference.
In this embodiment, if it is detected that the fluency of the wireless network is lower than a preset fluency threshold, whether a target scene in which the signal receiving device is located is interfered in the current state can be accurately determined by scanning an interference signal in a network environment or detecting a packet loss rate. And the signal receiving device scans or detects the packet loss rate quickly, which is usually completed within 1 second, and the target scene of the signal receiving device in the current state can be quickly judged based on the quick scanning result or the detected packet loss rate, so that the network switching is quickly performed, and the network switching speed is increased.
In one embodiment, if the target scene is a preset scene, switching the wireless network includes: if the target scene is a congested or weak signal, detecting whether a new wireless network meeting the network access condition exists in the current space range of the signal receiving equipment; if a new wireless network meeting the network access condition exists, switching the wireless network to the new wireless network meeting the network access condition; and if no new wireless network meeting the network access condition exists, switching the wireless network to the cellular network.
The network access condition may specifically include one or more of that the preemption communication parameter is less than or equal to a preset parameter threshold, the distance between the signal receiving device and the wireless network device is less than or equal to a preset distance threshold, the signal energy of the interference signal is less than or equal to a preset energy threshold, and the packet loss rate is less than or equal to a preset packet loss rate threshold.
If the target scene is a congested or weak signal, the signal receiving equipment acquires new wireless networks in the current space range of the signal receiving equipment, and whether each new wireless network meets network access conditions is detected; if the new wireless network meets the network access condition, switching the wireless network currently accessed by the signal receiving equipment to the new wireless network; and if no new wireless network meets the network access condition, switching the wireless network currently accessed by the signal receiving equipment to the cellular network.
In this embodiment, if the target scene is a congested or weak signal, which indicates that the network to which the signal receiving device is currently connected cannot provide a smooth communication service, it is detected whether a new wireless network meeting a network access condition exists in a spatial range in which the signal receiving device is currently located, if so, the wireless network is switched to the new wireless network, otherwise, the wireless network is switched to a cellular network, and the new network can be quickly selected for switching.
In one embodiment, if the target scene is a preset scene, switching the wireless network includes: and if the target scene is interference, switching the wireless network to the cellular network.
It can be understood that, if the target scenario is interference, each wireless network in the current network environment of the signal receiving device receives the interference, and therefore the wireless network is directly switched to the cellular network.
In one embodiment, as shown in fig. 3, after connecting the wireless network device, the signal receiving device communicates through the wireless network provided by the wireless network device. In the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, detecting a network environment, and determining a target scene of the signal receiving equipment in the current state based on the network environment. And if the target scene is congested, judging whether the target scene can be switched to other wireless networks, if so, switching to a new wireless network, and if not, switching to a cellular network. And if the target scene is a weak signal, judging whether to switch to other wireless networks, if so, switching to a new wireless network, and if not, switching to a cellular network. And if the target scene is interference, switching to the cellular network.
In one embodiment, determining a target scenario in which the signal receiving device is currently located based on a network environment includes: if the current state of the signal receiving equipment is determined to be in at least 2 candidate scenes based on the network environment, the priority of each candidate scene is respectively obtained; and determining the target scene from the candidate scenes based on the priority of the candidate scenes.
The priority of the candidate scenes can be set as needed. For example, the priority of congestion in the candidate scene is the same as the priority of weak signal in the candidate scene, and the priority of interference in the candidate scene is the highest. For another example, the priority of the weak signal in the candidate scene is first level, the priority of the congestion in the candidate scene is second level, and the priority of the interference in the candidate scene is third level.
In one embodiment, the signal receiving apparatus may determine a candidate scene with the highest priority as the target scene. In another embodiment, the signal receiving apparatus may determine a candidate scene with the lowest priority as the target scene.
In this embodiment, if it is determined that the signal receiving device is in at least 2 candidate scenes in the current state based on the network environment, the priorities of the candidate scenes are respectively obtained, and the target scene can be accurately determined from the candidate scenes based on the priorities of the candidate scenes.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a network switching apparatus for implementing the above-mentioned network switching method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the network handover apparatus provided below may refer to the limitations on the network handover method in the foregoing, and details are not described herein again.
In one embodiment, as shown in fig. 4, there is provided a network switching apparatus, including: a communication module 402, a detection module 404, a scenario determination module 406, and a switching module 408, wherein:
a communication module 402, configured to communicate through a wireless network provided by a wireless network device after connecting the wireless network device.
The detecting module 404 is configured to detect a network environment of the signal receiving device in a current state if it is detected that the fluency of the wireless network is lower than a preset fluency threshold during the communication process.
And a scene determining module 406, configured to determine a target scene in which the signal receiving apparatus is currently located based on the network environment.
The switching module 408 is configured to switch the wireless network if the target scene is a preset scene.
In an embodiment, the detecting module 404 is further configured to detect network parameter information received from the wireless network device in the current state of the signal receiving device if the fluency of the wireless network is detected to be lower than a preset fluency threshold; the scene determining module 406 is further configured to determine a target scene in which the signal receiving apparatus is currently located based on the network parameter information.
In an embodiment, the scene determining module 406 is further configured to compare the preemptive communication parameter with a preset parameter threshold if the network parameter information is the preemptive communication parameter on the wireless network device, and if the preemptive communication parameter is greater than the preset parameter threshold, determine that the target scene in which the signal receiving device is located in the current state is congested; if the network parameter information is the received signal strength indication, determining the distance between the signal receiving equipment and the wireless network equipment based on the received signal strength indication; and if the distance is greater than the preset distance threshold, the target scene in which the signal receiving equipment is located in the current state is a weak signal.
In an embodiment, the detecting module 404 is further configured to scan an interference signal in a network environment of the signal receiving device in a current state if it is detected that the fluency of the wireless network is lower than a preset fluency threshold; or if the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting the packet loss rate; the scene determining module 406 is further configured to detect signal energy of the interference signal, and if the signal energy is greater than a preset energy threshold, a target scene in which the signal receiving device is located in the current state is interference; or if the packet loss rate is greater than the preset packet loss rate threshold, the target scene in which the signal receiving equipment is located in the current state is interference.
In an embodiment, the switching module 408 is further configured to detect whether there is a new wireless network meeting a network access condition in a spatial range where the signal receiving device is currently located if the target scene is a congested or weak signal; if a new wireless network meeting the network access condition exists, switching the wireless network to the new wireless network meeting the network access condition; and if no new wireless network meeting the network access condition exists, switching the wireless network to the cellular network.
In one embodiment, the handover module 408 is further configured to handover the wireless network to the cellular network if the target scenario is interference.
In an embodiment, the scene determining module 406 is further configured to, if it is determined that the signal receiving apparatus is in at least 2 candidate scenes in the current state based on the network environment, respectively obtain priorities of the candidate scenes; and determining the target scene from the candidate scenes based on the priority of the candidate scenes.
The modules in the network switching device can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer apparatus includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected by a system bus, and the communication interface, the display unit and the input device are connected by the input/output interface to the system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a network handover method. The display unit of the computer device is used for forming a visual picture and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the network handover method.
Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform a network handover method.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (11)

1. A network switching method applied to a signal receiving device, the method comprising:
after the wireless network equipment is connected, the communication is carried out through a wireless network provided by the wireless network equipment;
in the communication process, if the fluency of the wireless network is detected to be lower than a preset fluency threshold value, detecting the network environment of the signal receiving equipment in the current state;
determining a target scene in which the signal receiving equipment is located in the current state based on the network environment;
and if the target scene is a preset scene, switching the wireless network.
2. The method of claim 1, wherein detecting the network environment of the signal receiving device in the current state if it is detected that the fluency of the wireless network is lower than a preset fluency threshold comprises:
if the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting network parameter information received from the wireless network equipment by the signal receiving equipment in the current state;
the determining the target scene in which the signal receiving device is currently located based on the network environment comprises:
and determining a target scene in which the signal receiving equipment is positioned in the current state based on the network parameter information.
3. The method of claim 2, wherein the determining the target scenario in which the signal receiving device is currently located based on the network parameter information comprises:
if the network parameter information is a preemptive communication parameter on the wireless network equipment, comparing the preemptive communication parameter with a preset parameter threshold, and if the preemptive communication parameter is greater than the preset parameter threshold, determining that a target scene in which the signal receiving equipment is located in the current state is congested;
if the network parameter information is a received signal strength indication, determining a distance between the signal receiving equipment and the wireless network equipment based on the received signal strength indication; and if the distance is greater than a preset distance threshold, the target scene in which the signal receiving equipment is located in the current state is a weak signal.
4. The method of claim 1, wherein detecting the network environment of the signal receiving device in the current state if it is detected that the fluency of the wireless network is lower than a preset fluency threshold comprises:
if the fluency of the wireless network is detected to be lower than a preset fluency threshold, scanning an interference signal in a network environment of the signal receiving equipment in the current state; or
If the fluency of the wireless network is detected to be lower than a preset fluency threshold, detecting a packet loss rate;
the determining the target scene in which the signal receiving device is currently located based on the network environment comprises:
detecting signal energy of the interference signal, wherein if the signal energy is larger than a preset energy threshold, a target scene in which the signal receiving equipment is located in the current state is interference; or
And if the packet loss rate is greater than a preset packet loss rate threshold value, the target scene in which the signal receiving equipment is located in the current state is interference.
5. The method of claim 1, wherein switching the wireless network if the target scene is a preset scene comprises:
if the target scene is a congested or weak signal, detecting whether a new wireless network meeting network access conditions exists in a current spatial range of the signal receiving equipment;
if a new wireless network meeting the network access condition exists, switching the wireless network to the new wireless network meeting the network access condition;
and if no new wireless network meeting the network access condition exists, switching the wireless network to a cellular network.
6. The method of claim 1, wherein switching the wireless network if the target scene is a preset scene comprises:
and if the target scene is interference, switching the wireless network to a cellular network.
7. The method of claim 1, wherein the determining a target scenario in which the signal receiving device is currently located based on the network environment comprises:
if the signal receiving equipment is determined to be in at least 2 candidate scenes in the current state based on the network environment, respectively acquiring the priority of each candidate scene;
and determining the target scene from the candidate scenes based on the priority of the candidate scenes.
8. A network switching apparatus, applied to a signal receiving device, the apparatus comprising:
the communication module is used for communicating through a wireless network provided by the wireless network equipment after the wireless network equipment is connected;
the detection module is used for detecting the network environment of the signal receiving equipment in the current state if the fluency of the wireless network is detected to be lower than a preset fluency threshold value in the communication process;
the scene determining module is used for determining a target scene in which the signal receiving equipment is positioned in the current state based on the network environment;
and the switching module is used for switching the wireless network if the target scene is a preset scene.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the network switching method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
CN202210010811.4A 2022-01-05 2022-01-05 Network switching method and device, electronic equipment and computer readable storage medium Pending CN114363973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210010811.4A CN114363973A (en) 2022-01-05 2022-01-05 Network switching method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210010811.4A CN114363973A (en) 2022-01-05 2022-01-05 Network switching method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114363973A true CN114363973A (en) 2022-04-15

Family

ID=81107105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210010811.4A Pending CN114363973A (en) 2022-01-05 2022-01-05 Network switching method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114363973A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114867075A (en) * 2022-06-09 2022-08-05 西安紫光展锐科技有限公司 Wireless network switching method, device, equipment, storage medium and product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130267271A1 (en) * 2012-04-06 2013-10-10 Htc Corporation Wireless Data Network Switching Method and Electronic Device Thereof
WO2015058502A1 (en) * 2013-10-22 2015-04-30 惠州Tcl移动通信有限公司 Method, system, and storage medium for intelligent switchover of network connections
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN107734359A (en) * 2017-09-29 2018-02-23 四川长虹电器股份有限公司 A kind of method of the adaptive preempting resources of intelligent television under complex environment
CN108391298A (en) * 2018-05-25 2018-08-10 四川斐讯全智信息技术有限公司 A kind of system and electronic equipment of network automatic switchover
CN113068229A (en) * 2019-12-16 2021-07-02 青岛海信移动通信技术股份有限公司 Communication terminal and wireless network switching method
CN113490242A (en) * 2021-07-16 2021-10-08 广东石油化工学院 Sub-network switching method and system of heterogeneous wireless network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130267271A1 (en) * 2012-04-06 2013-10-10 Htc Corporation Wireless Data Network Switching Method and Electronic Device Thereof
WO2015058502A1 (en) * 2013-10-22 2015-04-30 惠州Tcl移动通信有限公司 Method, system, and storage medium for intelligent switchover of network connections
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN107734359A (en) * 2017-09-29 2018-02-23 四川长虹电器股份有限公司 A kind of method of the adaptive preempting resources of intelligent television under complex environment
CN108391298A (en) * 2018-05-25 2018-08-10 四川斐讯全智信息技术有限公司 A kind of system and electronic equipment of network automatic switchover
CN113068229A (en) * 2019-12-16 2021-07-02 青岛海信移动通信技术股份有限公司 Communication terminal and wireless network switching method
CN113490242A (en) * 2021-07-16 2021-10-08 广东石油化工学院 Sub-network switching method and system of heterogeneous wireless network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114867075A (en) * 2022-06-09 2022-08-05 西安紫光展锐科技有限公司 Wireless network switching method, device, equipment, storage medium and product

Similar Documents

Publication Publication Date Title
CN111246399B (en) Method for discovering Bluetooth device and related product
EP4301049A1 (en) Network access method, network access apparatus, and storage medium
CN112399484A (en) Data transmission method, device, storage medium and electronic equipment
JP7453422B2 (en) Wireless communication methods and devices, terminals and storage media
CN113316206A (en) Cell reselection method, device, terminal equipment and storage medium
TWI621361B (en) Transmission device, transmission method and transmission system for sharing an unlicensed channel in a wireless communications system
CN114363973A (en) Network switching method and device, electronic equipment and computer readable storage medium
CN113938990B (en) Equipment management method and communication device
CN113055933A (en) Cell access method, user equipment and base station
CN111132197B (en) Wireless mesh dual-frequency return performance optimization method, server and storage medium
KR101863180B1 (en) Apparatus and method for dynamically determining communication link in communication system
WO2023103995A1 (en) Cell measurement method and apparatus, terminal, storage medium, and program product
WO2012073059A1 (en) Methods, apparatuses and computer program products for using downlink and uplink over separate radio channels or different operators
CN113079551B (en) Method and device for determining access cell in mobile communication, terminal and non-transitory storage medium
CN112886990B (en) Interference elimination method and device and electronic equipment
CN112153679B (en) Network switching method and device
US11930519B2 (en) Mechanism of measurement sharing and restriction for CSI-RS and SSB based UE activities in NR
CN109274442B (en) Retransmission time configuration method, device, base station and system
CN116584134A (en) Determination method of measurement parameters, terminal device, chip and storage medium
RU2791546C1 (en) Method and apparatus for allocating resources
WO2024002114A1 (en) Communication method and related device
RU2791059C1 (en) Method and device for allocation of resources for request in beam failure
US20230176164A1 (en) Ranging by a network device during a beacon interval
US20240137851A1 (en) Network access method, network access apparatus, and storage medium
WO2024022290A1 (en) Resource selection method, and terminal

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