CN110572208A - Network switching method and related equipment - Google Patents

Network switching method and related equipment Download PDF

Info

Publication number
CN110572208A
CN110572208A CN201910872421.6A CN201910872421A CN110572208A CN 110572208 A CN110572208 A CN 110572208A CN 201910872421 A CN201910872421 A CN 201910872421A CN 110572208 A CN110572208 A CN 110572208A
Authority
CN
China
Prior art keywords
network
lifi
determining
application
value
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.)
Granted
Application number
CN201910872421.6A
Other languages
Chinese (zh)
Other versions
CN110572208B (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xinguang Enterprise Management Consulting Co 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 CN201910872421.6A priority Critical patent/CN110572208B/en
Publication of CN110572208A publication Critical patent/CN110572208A/en
Application granted granted Critical
Publication of CN110572208B publication Critical patent/CN110572208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation
    • H04B10/54Intensity modulation
    • 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/14Reselecting a network or an air interface
    • 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
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data

Landscapes

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

Abstract

The application discloses a network switching method and related equipment, which are applied to electronic equipment, wherein the electronic equipment is currently accessed to a first LIFI network, and the method comprises the following steps: determining a first application running in the foreground of the electronic equipment; determining a first distance between the electronic device and an access point of the first LIFI network, and/or determining a data transmission rate of the first LIFI network; determining whether network switching is needed according to the first application and at least one of the first distance and the data transmission rate; and if the network switching is determined to be needed, determining a network to be switched, and accessing the network to be switched, wherein the network to be switched is a second LIFI network or a first WIFI network. By adopting the embodiment of the application, the normal operation of foreground application of the electronic equipment can be ensured.

Description

network switching method and related equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a network switching method and a related device.
Background
the visible light communication is a communication mode which uses light in a visible light waveband as an information carrier, does not use transmission media of wired channels such as optical fibers and the like, can directly transmit optical signals only in the air, and has great research value and wide application prospect. However, visible light cannot penetrate walls and coverage is small, and visible light communication can be affected in some cases (e.g., the electronic device is in motion, there is a shelter, etc.).
disclosure of Invention
the embodiment of the application provides a network switching method and related equipment, which are used for ensuring the normal operation of foreground application.
in a first aspect, an embodiment of the present application provides a network switching method, which is applied to an electronic device, where the electronic device has currently accessed a first LIFI network, and the method includes:
Determining a first application running in the foreground of the electronic equipment;
Determining at least one of a first distance between the electronic device and an access point of the first LIFI network, and/or a data transmission rate of the first LIFI network;
determining whether network switching is needed according to the first application and at least one of the first distance and the data transmission rate;
and if the network switching is determined to be needed, determining a network to be switched, and accessing the network to be switched, wherein the network to be switched is a second LIFI network or a first WIFI network.
in a second aspect, an embodiment of the present application provides an apparatus for network handover, where the apparatus includes:
The first determining unit is used for determining a first application running in the foreground of the electronic equipment;
A second determining unit, configured to determine a first distance between the electronic device and an access point of the first LIFI network, and/or determine a data transmission rate of the first LIFI network;
A third determining unit, configured to determine whether network handover is required according to the first application and at least one of the first distance and the data transmission rate;
and the network switching unit is used for determining a network to be switched and accessing the network to be switched if the network switching is determined to be required, wherein the network to be switched is a second LIFI network or a first WIFI network.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect of the embodiment of the present application.
in a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
in a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device first determines the first application running in the foreground, and then selects a network capable of ensuring normal running of the foreground application for the electronic device according to a first distance between an access point of the first LIFI network and the electronic device and/or a data transmission rate of the first LIFI network, so as to improve performance of the electronic device.
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. 1A is a schematic structural diagram of a communication system according to an embodiment of the present application;
Fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A is a flowchart illustrating a method for network handover according to an embodiment of the present application;
Fig. 2B is an interface schematic diagram of an LIFI function provided in an embodiment of the present application;
Fig. 2C is a schematic diagram of an LIFI setting interface provided in an embodiment of the present application;
Fig. 2D is a schematic diagram of a WIFI setting interface provided in an embodiment of the present application;
Fig. 3 is a flowchart illustrating another method for switching networks according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a network handover apparatus according to an embodiment of the present application.
Detailed Description
in order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
referring to fig. 1A, fig. 1A is a communication system provided in an embodiment of the present application, where the communication system includes a plurality of electronic devices, a plurality of first wireless Access Points (APs), and a plurality of second APs, each first AP corresponds to one WIFI network, and each second AP corresponds to one LIFI network. In the embodiment of the application, the electronic device can access to a WIFI network and also can access to an LIFI network. The form and number of the electronic devices and APs shown in fig. 1A are merely examples, and do not limit the embodiments of the present application.
The second AP includes, for example, an LED lamp, a laser diode, a light emitting diode, and the like, and the second AP integrates an LIFI network module, which is used to implement an LIFI function (e.g., creating an LIFI network, accessing other devices to the created LIFI network, and the like).
the specific implementation mode of accessing the electronic device to the LIFI network includes: the method comprises the steps that the electronic equipment firstly scans the LIFI network to determine the accessible LIFI network, then the electronic equipment sends a LIFI network access request to an AP of the connectable LIFI network, then the AP of the connectable LIFI network sends a LIFI network access response to the electronic equipment according to the LIFI network access request, and finally the electronic equipment receives the LIFI network access response to access the LIFI network.
electronic devices may include various handheld devices, vehicle mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so forth.
As shown in fig. 1B, fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a processor, a Memory, a signal processor, a transceiver, a display screen, a loudspeaker, a microphone, a Random Access Memory (RAM), a camera, a sensor WIFI network module, an LIFI network module and the like. The storage, the signal processor, the display screen, the loudspeaker, the microphone, the RAM, the camera, the sensor, the WIFI network module and the LIFI network module are connected with the processor, and the transceiver is connected with the signal processor.
The Display screen may be a Liquid Crystal Display (LCD), an Organic or inorganic Light-Emitting Diode (OLED), an active matrix Organic Light-Emitting Diode (AMOLED), or the like.
The camera may be a common camera or an infrared camera, and is not limited herein. The camera may be a front camera or a rear camera, and is not limited herein.
wherein the sensor comprises at least one of: light-sensitive sensors, gyroscopes, infrared proximity sensors, fingerprint sensors, pressure sensors, etc. Among them, the light sensor, also called an ambient light sensor, is used to detect the ambient light brightness. The light sensor may include a light sensitive element and an analog to digital converter. The photosensitive element is used for converting collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the light sensor may further include a signal amplifier, and the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The processor is a control center of the electronic equipment, various interfaces and lines are used for connecting all parts of the whole electronic equipment, and various functions and processing data of the electronic equipment are executed by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the electronic equipment is monitored integrally.
the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
the memory is used for storing software programs and/or modules, and the processor executes various functional applications and data processing of the electronic equipment by operating the software programs and/or modules stored in the memory. The memory mainly comprises a program storage area and a data storage area, wherein the program storage area can store an operating system, a software program required by at least one function and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The WIFI network module supports a WIFI function, and the electronic end equipment can be accessed to a WIFI network through the WIFI network module. The WIFI module may be, for example, a Dual Band Dual Current (DBDC) module, a Dual Band Simultaneouss (DBS) module, or another chip module.
The LIFI network module supports the LIFI function, and the LIFI network module can realize the function of accessing the electronic equipment into the LIFI network.
The following describes embodiments of the present application in detail.
As shown in fig. 2A, a method for network handover provided in an embodiment of the present application is applied to the electronic device, where the electronic device has currently accessed a first LIFI network, and specifically includes the following steps:
step 201: determining a first application running in the foreground of the electronic equipment.
before accessing the first LIFI network, the electronic equipment starts the LIFI function. The specific implementation mode of the electronic device for starting the LIFI function is as follows: the method comprises the steps that an electronic device displays a setting interface, wherein the setting interface comprises an LIFI setting item, the LIFI setting item comprises an LIFI setting switch, and the LIFI setting switch is in a closed state at present; and under the condition that the clicking operation aiming at the LIFI setting switch is detected, the electronic equipment places the LIFI setting switch in an opening state and starts the LIFI function, and an interface is displayed as shown in fig. 2B.
the first LIFI network is the LIFI network with the maximum data transmission rate in the LIFI networks which can be accessed by the electronic equipment. For example, the LIFI network accessible to the electronic device includes an LIFI network 1, an LIFI network 2, and an LIFI network 3, where a data transmission rate of the LIFI network 1 is less than a data transmission rate of the LIFI network 2 is less than a data transmission rate of the LIFI network 3, and then the first LIFI network is the LIFI network 3.
or the first LIFI network is the LIFI network which is closest to the first distance between the access point and the electronic equipment in the LIFI network which can be accessed by the electronic equipment. For example, an LIFI network accessible to the electronic device includes an LIFI network 1, an LIFI network 2, and an LIFI network 3, a distance between an access point of the LIFI network 1 and the electronic device is 3 meters, a distance between the access point of the LIFI network 1 and the electronic device is 4 meters, a distance between the access point of the LIFI network 1 and the electronic device is 5 meters, and if the distance between the access point of the LIFI network 1 and the electronic device is < the distance between the access point of the LIFI network 2 and the electronic device < the distance between the access point of the LIFI network 3 and the electronic device, the LIFI network 1 is the first LIFI network.
or the first LIFI network is a LIFI network randomly selected from LIFI networks accessible to the electronic device.
Or the first LIFI network is a LIFI network which is accessed by the electronic equipment by default. For example, the LIFI network accessible to the electronic device includes an LIFI network 1, an LIFI network 2, and an LIFI network 3, where the LIFI network 2 is the LIFI network that the electronic device is defaulted to access, and then the LIFI network 2 is the first LIFI network.
Step 202: determining a first distance between the electronic device and an access point of the first LIFI network, and/or determining a data transmission rate of the first LIFI network.
Wherein the determining a first distance between the electronic device and an access point of the first LIFI network comprises: sending a distance detection request to an access point of the first LIFI network, wherein the distance detection request is used for requesting immediate feedback response when the distance detection request is received; receiving a distance detection response sent by an access point of the first LIFI network for the distance detection request; and determining a first distance between the electronic equipment and an access point of the first LIFI network according to the sending time of the distance detection request and the receiving time of the distance detection response.
Step 203: and determining whether network switching is needed according to the first application and at least one of the first distance and the data transmission rate.
Step 204: and if the network switching is determined to be needed, determining a network to be switched, and accessing the network to be switched, wherein the network to be switched is a second LIFI network or a first WIFI network.
After determining that network handover is required, the method further includes: the connection with the first LIFI network is disconnected.
In an implementation manner of the present application, after step 204, the method further includes: and limiting access to the first LIFI network, wherein the limiting time duration is a first time duration.
Wherein the first duration is fixed (e.g., 8min, 25min, 40min, 1h or other values). Or the first duration is determined by the electronic device based on the current first application, and specifically includes: the electronic device determines the duration corresponding to the current first application based on a first mapping relationship between the first application and the duration, where the first mapping relationship between the first application and the first duration is shown in table 1.
TABLE 1
First application Duration of time
Video chat 10min
Game machine 5min
Reading 4min
…… ……
In an implementation manner of the present application, after the limiting access to the first LIFI network, the method further includes: and marking the first LIFI network in an LIFI setting interface. The LIFI setting interface after marking the first LIFI network is shown in fig. 2C, the first LIFI network is "2345", and the first LIFI network is marked by thickening the name of the first LIFI network. The labeling shown in fig. 2C is for example only and does not limit the embodiments of the present application.
The first LIFI network may be marked by changing a color of a name of the first LIFI network, or by adding a mark beside the name of the first LIFI network.
it can be seen that, in the embodiment of the present application, the electronic device first determines the first application running in the foreground, and then selects a network capable of ensuring normal running of the foreground application for the electronic device according to a first distance between an access point of the first LIFI network and the electronic device and/or a data transmission rate of the first LIFI network, so as to improve performance of the electronic device.
in an implementation manner of the present application, the determining a data transmission rate of the first LIFI network includes:
Determining a first numerical value and/or a second numerical value, wherein the first numerical value is the total data volume sent by the electronic equipment by using the first LIFI network in a first time period, the second numerical value is the total data volume received by the electronic equipment by using the first LIFI network in the first time period, and the termination time of the first time period is the current time; and determining the data transmission rate of the first LIFI network according to the first numerical value and/or the second numerical value.
The duration of the first time interval may be, for example, 2min, 4min, 5min, 9min, 15min, or other values.
Optionally, the determining a data transmission rate of the first LIFI network according to the first value and/or the second value includes: determining the data transmission rate based on a first formula, the first numerical value, and the second numerical value if the current task of the first application is a first task.
Wherein, under the first task, the total data volume expected to be received by the electronic equipment and the total data volume expected to be sent are both greater than a first value. The first task is, for example, voice chat, video chat, game, or other tasks that send and receive large amounts of data.
Wherein the first formula is: the speed is a data transmission rate, T is a duration of a first time period, a is a total data volume sent by the electronic device using the first LIFI network, and B is a total data volume received by the electronic device using the first LIFI network.
for example, assuming that the duration of the first period is 2min, the first value determined by the electronic device is 6MB, and the second value is 5MB, the data transmission rate of the first LIFI network is [ (6+5) ]/2 is 5.5 MB/min.
Optionally, the determining the data transmission rate according to the first value and/or the second value includes: determining the data transmission rate based on a second formula and the second value in a case where the current task of the first application is a second task.
And under the second task, the total data amount expected to be received by the electronic equipment is larger than a second value, and the total data amount expected to be sent by the electronic equipment is smaller than the second value. The second task is, for example, audio playing, video downloading, video watching, or other tasks that receive a large amount of data.
Wherein the second formula is: the speed is (E + F)/T, where the speed is a data transmission rate, the T is a duration of a first time period, the E is a total data volume received by the electronic device using the first LIFI network, and the F is a fixed value.
for example, assuming that the duration of the first period is 2min, the second value is 9MB, and F is 0.1MB, the data transmission rate of the first LIFI network is (9+0.1)/2 is 4.55 MB/min.
optionally, the determining the data transmission rate according to the first value and/or the second value includes: determining the data transmission rate based on a third formula and the first value in a case where the current task of the first application is a third task.
And under the third task, the total data amount expected to be sent by the electronic equipment is larger than a third value, and the total data amount expected to be received by the electronic equipment is smaller than the third value. The third task is, for example, application upload, video upload, audio upload, or other task that transmits a large amount of data.
wherein the third formula is: the speed is a data transmission rate, T is a duration of a first time period, G is a total data volume sent by the electronic device using the first LIFI network, and H is a fixed value.
for example, assuming that the duration of the first period is 2min, the first value is 9MB, and H is 0.2MB, then the data transmission rate of the first LIFI network is (9+0.2)/2 is 4.6 MB/min.
It can be seen that, in the embodiment of the present application, the data transmission rate of the first LIFI network is calculated by using the total data amount sent and/or received by the electronic device through the first LIFI network, so that the accuracy of determining the data transmission rate can be improved.
The first value, the second value, and the third value may be the same or different, and are not limited herein.
in an implementation manner of the present application, the determining whether a network handover is required according to the first application and at least one of the first distance and the data transmission rate includes:
predicting a first total data volume needing to be transmitted by the first application in a second time interval, wherein the starting time of the second time interval is the current time;
If a first condition is met, determining that network handover is required, wherein in a first case, the first condition includes at least two of the following: the first distance is greater than or equal to a first threshold, the data transmission rate is less than a second threshold, and the first total data amount is greater than or equal to a third threshold;
In a second case, the first condition includes at least two of: the first distance is smaller than the first threshold, the data transmission rate is smaller than a fourth threshold, the first total data amount is larger than or equal to a third threshold, and the fourth threshold is larger than the second threshold.
Wherein the duration of the second time period is, for example, 1min, 3min, 8min, 9min, 15min or other values.
the first threshold, the second threshold, the third threshold, and the fourth threshold are associated with the first application, that is, the 4 thresholds corresponding to different applications may be the same or different. For example, the first threshold of the application 1 association is a1, the second threshold is a2, the third threshold is a3, and the fourth threshold is a4, and the first threshold of the application 2 association is a1, the second threshold is a5, the third threshold is a6, and the fourth threshold is a 4. The first threshold of the application 3 association is a7, the second threshold is a8, the third threshold is a9, and the fourth threshold is a 10.
Wherein the first threshold may be 5m, 10m, 14m, 17m or other values. The second threshold may be 20kb/s, 50kb/s, 300kb/s, 600kb/s or other values. The second threshold may be 3MB, 4MB, 5MB, 10MB, 30MB, or other values. The fourth threshold may be 5MB, 9MB, 15MB, 16MB, 34MB, or other values.
it can be seen that, in the embodiment of the present application, whether to perform network handover is determined according to the first application and at least one of the first distance and the data transmission rate, so that accuracy of network handover is ensured.
in an implementation manner of the present application, the first total data amount expected to be transmitted by the first application in the second time period includes: predicting the first total data amount according to the first value and/or the second value.
Optionally, said predicting said first total data amount according to said first value and/or said second value comprises: predicting the first total data amount based on a fourth formula, the first numerical value, and the second numerical value in a case where a current task of the first application is the first task.
wherein the fourth formula is: and Z is a (X + Y), wherein a is a fixed value (a may be different in different cases), Z is an estimated total data amount, X is a total data amount sent by the electronic device using the LIFI network, and Y is a total data amount received by the electronic device using the LIFI network.
For example, assuming that a is 2, the first value is 5MB, and the second value is 7MB, the first total number expected to be transmitted by the first application in the second period is 24 MB.
Optionally, said predicting said first total data amount according to said first value and/or said second value comprises: in a case where the current task of the first application is the second task, the first total data amount is predicted based on a fifth formula and the second numerical value.
Wherein the fifth formula is: d ═ b × C, where b is a fixed value (which may be different in different cases), D is an expected total data volume, and C is a total data volume received by the electronic device using the LIFI network.
For example, assuming that b is 1.5 and the second value is 7MB, the first total number of transmissions required by the first application in the second period is expected to be 10.5 MB.
optionally, said predicting said first total data amount according to said first value and/or said second value comprises: in a case where the current task of the first application is the third task, the first total data amount is predicted based on a sixth formula and the first numerical value.
wherein the sixth formula is: p ═ c × O, c is a fixed value (which may be different in different cases), and P is an expected total data volume; the O is the total data volume sent by the electronic equipment by using the LIFI network.
For example, assuming that c is 1 and the first value is 5MB, the first total number of transmissions required by the first application in the second period is expected to be 5 MB.
Optionally, when the electronic device runs the first application for the first time, the first total data amount is predicted according to the first numerical value and/or the second numerical value.
It can be seen that, in this embodiment, the first total data amount is predicted according to the total data amount sent and/or received by the electronic device through the first LIFI network, so that the prediction accuracy can be improved.
in an implementation manner of the present application, the first total data amount expected to be transmitted by the first application in the second time period includes:
determining at least two of a third value, a fourth value and a fifth value, wherein the fifth value is the number of times that the electronic device runs the first application in a third time period, the third value is the total data volume sent by the electronic device each time the first application is run, and the fourth value is the total data volume received by the electronic device each time the first application is run;
And predicting the first total data quantity according to at least two of the third numerical value, the fourth numerical value and the fifth numerical value.
wherein the duration of the third period of time may be 3 hours, 5 hours, 20 hours, 1 day, 3 days, 7 days, 8 days, 10 days, or other values.
optionally, said predicting the first total data amount according to at least two of the third value, the fourth value and the fifth value includes:
Predicting the first total data amount based on a seventh formula, the third numerical value, the fourth numerical value, and the fifth numerical value in a case where a current task of the first application is the first task.
wherein the seventh formula is:
wherein, the S1Is the predicted total data volume; d is1To be a fixed value (which may be different in different cases), the Jithe total data volume sent by the electronic equipment when the application is operated for the ith time, QiThe total data volume received by the electronic equipment when the application is run for the ith time, N1is the number of times.
For example, d1if 2, the fifth value is 3, the third value is 7MB, 8MB, 10MB, respectively, and the fourth value is 8MB, 10MB, 12MB, respectively, then the expected first total number is 33.33 MB.
Optionally, said predicting said first total data amount according to said third value and/or said fourth value, said fifth value comprises:
Predicting the first total data amount based on an eighth formula, the fourth numerical value, and the fifth numerical value in a case where a current task of the first application is the second task.
Wherein the eighth formula is:
Wherein, the S2Is the predicted total data volume; d is2To be a fixed value (which may be different in different cases), the Qithe total data volume received by the electronic equipment when the application is run for the ith time, N2Is the number of times.
for example, d2if the fifth value is 3 and the fourth value is 8MB, 10MB, 12MB, respectively, for 1.5, then the first total number of transmissions required by the first application during the second time interval is expected to be 15 MB.
optionally, said predicting said first total data amount according to said third value and/or said fourth value, said fifth value comprises:
Predicting the first total data amount based on a ninth formula, the third numerical value, and the fifth numerical value in a case where the current task of the first application is the third task.
Wherein the ninth formula is:
wherein, the S3is the predicted total data volume; d is3to be a fixed value (which may be different in different cases), the Jithe application is the total data volume sent by the electronic equipment for the ith running, and N is3Is the number of times.
For example, d3If 1.5, the fifth value is 3 and the third values are 7MB, 8MB, 10MB, respectively, then the first total number of transmissions required by the first application during the second time period is expected to be 12.5 MB.
optionally, the first total data amount is predicted according to at least two of the third value, the fourth value and the fifth value only when the electronic device does not run the first application for the first time.
it can be seen that, in the present embodiment, the first total data amount is based on the data associated with the first application, so that the predicted accuracy can be improved.
In an implementation manner of the present application, the determining a network to be switched includes:
if the first application is a first preset application under the first condition, determining that the network to be switched is the first WIFI network;
If the first application is not the first preset application under the first condition, determining that the network to be switched is the second LIFI network;
And if so, determining the network to be switched to be the second LIFI network.
Wherein, the first preset application comprises game application (such as Rong of the King, Happy and Xiao le, Happy and fighting landlord, etc.), video application (such as Aiqi art, Teng Xin video, etc.), downloading application (such as thunder, etc.), audio playing application (such as QQ music, cool dog music, etc.), etc.
Wherein, the determining that the network to be switched is the first WIFI network comprises:
Carrying out WIFI scanning to obtain a plurality of WIFI networks which are allowed to be accessed by the electronic equipment;
Determining an access priority, signal strength and a third distance between the corresponding access point of each of the plurality of WIFI networks and the electronic device;
Determining a first WIFI network based on the determined plurality of access priorities, the plurality of signal strengths, and the plurality of third distances, the plurality of WIFI networks including the first WIFI network.
optionally, determining an access priority of each WIFI network of the plurality of WIFI networks includes:
Determining the access times of the electronic equipment accessing each WIFI network in a fourth time period, wherein the termination time of the fourth time period is the current time;
And determining the access priority of each WIFI network based on the determined access times and a second mapping relation, wherein the second mapping relation is the mapping relation between the access times and the access priority.
The duration of the fourth time period may be, for example, 5h, 10h, 20h, 1 day, 3 days, 10 days, or other values. The second mapping relationship is shown in table 2, and as shown in table 2, the access priority corresponding to the larger the number of accesses is, and the access priority corresponding to the smaller the number of accesses is.
TABLE 2
Number of accesses Priority of access
1~5 1
6~12 2
13~20 3
…… ……
Optionally, the determining the signal strength of each WIFI network includes:
Reading the state of the signal strength identifier associated with each WIFI network;
And determining the signal strength of each WIFI network based on the state of the signal strength identifier and a third mapping relation, wherein the third mapping relation is the mapping relation between the state of the signal strength identifier and the signal strength.
The third mapping relationship is shown in table 3.
TABLE 3
Status of signal strength indicator Signal strength
one lattice signal 1
Two-grid signal 2
Three-lattice signal 3
The signal strength indicator has, for example, a one-cell signal, a two-cell signal, and a three-cell signal. As shown in fig. 2D, in the currently accessible WIFI network of the electronic device, for example, the WIFI network 1234 and the WIFI network 2345, the state of the signal strength identifier of the WIFI network 1234 is a two-lattice signal, the state of the signal strength identifier of the WIFI network 2345 is a three-lattice signal, and the electronic device may determine, based on table 3, that the signal strength of the WIFI network 1234 is 2, and the signal strength of the WIFI network 2345 is 3.
Optionally, the determining a third distance between the electronic device and the access point corresponding to each WIFI network includes:
The electronic equipment sends a distance detection request to an access point corresponding to each WIFI network, wherein the distance detection request is used for requesting immediate feedback response when the distance detection request is received; receiving a distance detection response sent by an access point corresponding to each WIFI network aiming at the distance detection request; and determining a third distance between the electronic equipment and the access point corresponding to each WIFI network according to the sending time of the distance detection request and the receiving time of the distance detection response.
Optionally, determining the first WIFI network based on the determined multiple access priorities, the multiple signal strengths, and the multiple third distances includes:
respectively determining an evaluation value of each WIFI network in the WIFI networks based on a tenth formula, the access priorities, the signal strengths and the third distances, wherein the evaluation value is used for evaluating the importance degree of each WIFI network;
And determining a first WIFI network based on the plurality of determined evaluation values.
Wherein the tenth formula is: t is an evaluation value, o, p and q are weights, the sum of o, p and q is equal to 1, U is an access priority, V is a signal strength, and W is a distance. O may be greater than p, less than p, or equal to p; a may be greater than q, may be less than q, or may be equal to q; p may be greater than q, less than q, or equal to q, and is not limited herein.
Wherein the evaluation value of the first WIFI network association is greater than the evaluation values of WIFI network associations other than the first WIFI network in the plurality of WIFI networks.
For example, assume that the WIFI networks accessible to the electronic device include a WIFI network 1 and a WIFI network 2, an access priority of the WIFI network 1 is 1, an access priority of the WIFI network 1 is 2, a signal strength of the WIFI network 1 is 2, an access priority of the WIFI network 2 is 3, a distance between an access point of the WIFI network 1 and the electronic device is 2m, a distance between an access point of the WIFI network 1 and the electronic device is 3m, if a is 0.2, b is 0.5, and c is 0.3, then an evaluation value of the WIFI network 1 is 0.2 + 1+0.5 + 2+0.3 is 1.8, and an evaluation value of the WIFI network 2 is 0.2 + 2.5 + 3+0.3 is 2.8, then the first WIFI network is the WIFI network 2.
It should be noted that the specific implementation manner of determining that the network to be switched is the second LIFI network is similar to the specific implementation manner of determining that the network to be switched is the first WIFI network, and specific reference is made to the specific implementation manner of determining that the network to be switched is the first WIFI network, which is not described herein again.
It can be seen that, in the embodiment of the present application, the network to be switched is determined according to the first condition, the second condition and the first application in the first condition, so that the normal operation of the first application is ensured. In addition, the network to be actually accessed is determined based on the access priority, the signal strength and the third distance of the network, and the rationality of the accessed network is improved.
In an implementation manner of the present application, after accessing the network to be switched, the method further includes:
If a second distance between the access point of the second LIFI network and the electronic device is greater than or equal to a fifth threshold, determining a target illumination intensity based on the second distance, wherein the target illumination intensity is greater than the current illumination intensity of the access point of the second LIFI network;
and sending an illumination intensity adjustment request to an access point of the second LIFI network, wherein the illumination intensity adjustment request carries the target illumination intensity, and the illumination intensity adjustment request is used for requesting to adjust the illumination intensity to the target illumination intensity.
The fifth threshold may be 8m, 10m, 13m, 14m, or other values.
And the second distance and the target illumination intensity have a corresponding relation. For example, when the second distance is 15m, the illumination intensity of the corresponding target is 2; the second distance is 18m, which corresponds to a target illumination intensity of 3.
it can be seen that, in the embodiment of the present application, the target illumination intensity is adjusted according to the second distance between the access point of the second LIFI network and the electronic device, so that the second LIFI network can meet different requirements, and the performance of the second LIFI network is improved.
referring to fig. 3, fig. 3 is a schematic flow chart of another network switching method according to an embodiment of the present application, and the method is applied to the electronic device, and specifically includes the following steps:
Step 301: determining a first application running in the foreground of the electronic equipment.
step 302: a first value and/or a second value is determined.
Step 303: and determining the data transmission rate of the first LIFI network according to the first numerical value and/or the second numerical value.
Step 304: a first total amount of data that the first application is expected to need to transmit during a second time period. After step 304 is performed, step 305 may be performed or step 306 may be performed.
wherein the starting time of the second time interval is the current time.
Step 305: and predicting a first total data volume required to be transmitted by the first application in a second time period according to the first value and/or the second value.
Step 306: and determining the third value and/or the fourth value and the fifth value. After step 306 is performed, step 307 may be performed.
Step 307: and predicting the first total data quantity according to the third value and/or the fourth value and the fifth value.
Step 308: judging whether at least two of the following are satisfied: the first distance is greater than or equal to a first threshold, the data transmission rate is less than a second threshold, the first total data volume is greater than or equal to a third threshold, and the first application is a first preset application.
If yes, go to step 309;
if not, go to step 310.
Step 309: and determining that the network to be switched is the first WIFI network.
step 310: judging whether at least two of the following are satisfied: the first distance is larger than or equal to a first threshold, the data transmission rate is smaller than a second threshold, the first total data volume is larger than or equal to a third threshold, and the first application is not a first preset application.
If not, go to step 311;
If yes, go to step 312.
Step 311: judging whether at least two of the following are satisfied: the first distance is smaller than the first threshold, the data transmission rate is smaller than a fourth threshold, the first total data amount is larger than or equal to a third threshold, and the fourth threshold is larger than the second threshold.
if yes, go to step 312.
If not, no operation is performed.
Step 312: and determining the network to be switched as a second LIFI network.
Step 313: and judging whether a second distance between the access point of the second LIFI network and the electronic equipment is greater than or equal to a fifth threshold value.
If yes, go to step 314.
If not, no operation is performed.
Step 314: determining a target illumination intensity based on the second distance.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
In accordance with the embodiments shown in fig. 2A and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
Determining a first application running in the foreground of the electronic equipment;
Determining a first distance between the electronic device and an access point of the first LIFI network, and/or determining a data transmission rate of the first LIFI network;
Determining whether network switching is needed according to the first application and at least one of the first distance and the data transmission rate;
And if the network switching is determined to be needed, determining a network to be switched, and accessing the network to be switched, wherein the network to be switched is a second LIFI network or a first WIFI network.
In an implementation manner of the present application, in determining the data transmission rate of the first LIFI network, the program includes instructions specifically configured to perform the following steps:
Determining a first numerical value and/or a second numerical value, wherein the first numerical value is the total data volume sent by the electronic equipment by using the first LIFI network in a first time period, the second numerical value is the total data volume received by the electronic equipment by using the first LIFI network in the first time period, and the termination time of the first time period is the current time;
and determining the data transmission rate of the first LIFI network according to the first numerical value and/or the second numerical value.
In an implementation manner of the present application, in determining whether a network handover is required according to the first application and at least one of the first distance and the data transmission rate, the program includes instructions specifically configured to perform the following steps:
Predicting a first total data volume needing to be transmitted by the first application in a second time interval, wherein the starting time of the second time interval is the current time;
if a first condition is met, determining that network handover is required, wherein in a first case, the first condition includes at least two of the following: the first distance is greater than or equal to a first threshold, the data transmission rate is less than a second threshold, and the first total data amount is greater than or equal to a third threshold.
In a second case, the first condition includes at least two of: the first distance is smaller than the first threshold, the data transmission rate is smaller than a fourth threshold, the first total data amount is larger than or equal to a third threshold, and the fourth threshold is larger than the second threshold.
In an implementation of the present application, in terms of a first total amount of data expected to be transmitted by the first application in the second time period, the program includes instructions specifically for performing the following steps:
And predicting a first total data volume required to be transmitted by the first application in a second time period according to the first value and/or the second value.
in an implementation of the present application, in anticipation of said first total data volume, the program comprises instructions for carrying out in particular the following steps:
Determining at least two of a third value, a fourth value and a fifth value, wherein the fifth value is the number of times that the electronic device runs the first application in a third time period, the third value is the total data volume sent by the electronic device each time the first application is run, and the fourth value is the total data volume received by the electronic device each time the first application is run;
and predicting the first total data quantity according to at least two of the third numerical value, the fourth numerical value and the fifth numerical value.
In an implementation manner of the present application, in determining a network to be switched, the program includes instructions specifically configured to perform the following steps:
if the first application is a first preset application under the first condition, determining that the network to be switched is the WIFI network;
If the first application is not the first preset application under the first condition, determining that the network to be switched is the second LIFI network;
and if so, determining the network to be switched to be the second LIFI network.
In an implementation manner of the present application, after accessing the network to be switched, the program further includes instructions for executing the following steps:
If a second distance between the access point of the second LIFI network and the electronic device is greater than or equal to a fifth threshold, determining a target illumination intensity based on the second distance, wherein the target illumination intensity is greater than the current illumination intensity of the access point of the second LIFI network;
And sending an illumination intensity adjustment request to an access point of the second LIFI network, wherein the illumination intensity adjustment request carries the target illumination intensity, and the illumination intensity adjustment request is used for requesting to adjust the illumination intensity to the target illumination intensity.
referring to fig. 5, fig. 5 is a device for network handover, which is applied to an electronic device, where the electronic device has currently accessed a first LIFI network, and the device includes:
A first determining unit 501, configured to determine a first application running in a foreground of the electronic device;
a second determining unit 502, configured to determine a first distance between the electronic device and an access point of the first LIFI network, and/or determine a data transmission rate of the first LIFI network;
A third determining unit 503, configured to determine whether network handover is required according to the first application and at least one of the first distance and the data transmission rate;
the network switching unit 504 is configured to determine a network to be switched and access the network to be switched if it is determined that network switching is required, where the network to be switched is a second LIFI network or a first WIFI network.
In an implementation manner of the application, in determining the data transmission rate of the first LIFI network, the second determining unit 502 is further configured to:
determining a first numerical value and/or a second numerical value, wherein the first numerical value is the total data volume sent by the electronic equipment by using the first LIFI network in a first time period, the second numerical value is the total data volume received by the electronic equipment by using the first LIFI network in the first time period, and the termination time of the first time period is the current time;
and determining the data transmission rate of the first LIFI network according to the first numerical value and/or the second numerical value.
in an implementation manner of the application, in determining whether a network handover is required according to the first application and at least one of the first distance and the data transmission rate, the third determining unit 503 is further configured to:
predicting a first total data volume needing to be transmitted by the first application in a second time interval, wherein the starting time of the second time interval is the current time;
If a first condition is met, determining that network handover is required, wherein in a first case, the first condition includes at least two of the following: the first distance is greater than or equal to a first threshold, the data transmission rate is less than a second threshold, and the first total data amount is greater than or equal to a third threshold.
In a second case, the first condition includes at least two of: the first distance is smaller than the first threshold, the data transmission rate is smaller than a fourth threshold, the first total data amount is larger than or equal to a third threshold, and the fourth threshold is larger than the second threshold.
in an implementation manner of the application, in terms of the first total data amount expected to be transmitted by the first application in the second time period, the third determining unit 503 is further configured to:
predicting the first total data amount according to the first value and/or the second value.
in an implementation manner of the application, in terms of the first total data amount expected to be transmitted by the first application in the second time period, the third determining unit 503 is further configured to:
Determining at least two of a third value, a fourth value and a fifth value, wherein the fifth value is the number of times that the electronic device runs the first application in a third time period, the third value is the total data volume sent by the electronic device each time the first application is run, and the fourth value is the total data volume received by the electronic device each time the first application is run;
And predicting the first total data quantity according to at least two of the third numerical value, the fourth numerical value and the fifth numerical value.
In an implementation manner of the application, in determining a network to be switched, the network switching unit 504 is further configured to:
If the first application is a first preset application under the first condition, determining that the network to be switched is the WIFI network;
If the first application is not the first preset application under the first condition, determining that the network to be switched is the second LIFI network;
And if so, determining the network to be switched to be the second LIFI network.
In one implementation of the application,
after the network to be switched is accessed, the method further comprises the following steps:
If a second distance between the access point of the second LIFI network and the electronic device is greater than or equal to a fifth threshold, determining a target illumination intensity based on the second distance, wherein the target illumination intensity is greater than the current illumination intensity of the access point of the second LIFI network;
And sending an illumination intensity adjustment request to an access point of the second LIFI network, wherein the illumination intensity adjustment request carries the target illumination intensity, and the illumination intensity adjustment request is used for requesting to adjust the illumination intensity to the target illumination intensity.
It should be noted that the first determining unit 501, the second determining unit 502, the third determining unit 503, and the network switching unit 504 may be implemented by a processor.
The present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the electronic device in the above method embodiments.
embodiments of the present application also provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in the electronic device in the above method. The computer program product may be a software installation package.
The steps of a method or algorithm described in the embodiments of the present application may be implemented in hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in an access network device, a target network device, or a core network device. Of course, the processor and the storage medium may reside as discrete components in an access network device, a target network device, or a core network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functionality described in the embodiments of the present application may be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the embodiments of the present application in further detail, and it should be understood that the above-mentioned embodiments are only specific embodiments of the present application, and are not intended to limit the scope of the embodiments of the present application, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (10)

1. a method for network switching is applied to an electronic device, wherein the electronic device has access to a first visible light communication (LIFI) network currently, and the method comprises the following steps:
Determining a first application running in the foreground of the electronic equipment;
Determining a first distance between the electronic device and an access point of the first LIFI network, and/or determining a data transmission rate of the first LIFI network;
determining whether network switching is needed according to the first application and at least one of the first distance and the data transmission rate;
And if the network switching is determined to be needed, determining a network to be switched, and accessing the network to be switched, wherein the network to be switched is a second LIFI network or a first wireless fidelity WIFI network.
2. the method of claim 1, wherein the determining the data transmission rate of the first LIFI network comprises:
determining a first numerical value and/or a second numerical value, wherein the first numerical value is the total data volume sent by the electronic equipment by using the first LIFI network in a first time period, the second numerical value is the total data volume received by the electronic equipment by using the first LIFI network in the first time period, and the termination time of the first time period is the current time;
And determining the data transmission rate of the first LIFI network according to the first numerical value and/or the second numerical value.
3. the method of claim 1 or 2, wherein determining whether a network handover is required according to the first application and at least one of the first distance and the data transmission rate comprises:
Predicting a first total data volume needing to be transmitted by the first application in a second time interval, wherein the starting time of the second time interval is the current time;
if a first condition is met, determining that network handover is required, wherein in a first case, the first condition includes at least two of the following: the first distance is greater than or equal to a first threshold, the data transmission rate is less than a second threshold, and the first total data amount is greater than or equal to a third threshold;
In a second case, the first condition includes at least two of: the first distance is smaller than the first threshold, the data transmission rate is smaller than a fourth threshold, the first total data amount is larger than or equal to a third threshold, and the fourth threshold is larger than the second threshold.
4. The method of claim 3, wherein predicting the first total amount of data that the first application needs to transmit during the second time period comprises:
Predicting the first total data amount according to the first value and/or the second value.
5. The method of claim 3, wherein predicting the first total amount of data that the first application needs to transmit during the second time period comprises:
Determining at least two of a third value, a fourth value and a fifth value, wherein the fifth value is the number of times that the electronic device runs the first application in a third time period, the third value is the total data volume sent by the electronic device each time the first application is run, and the fourth value is the total data volume received by the electronic device each time the first application is run;
And predicting the first total data quantity according to at least two of the third numerical value, the fourth numerical value and the fifth numerical value.
6. the method according to any of claims 3-5, wherein said determining a network to be switched comprises:
If the first application is a first preset application under the first condition, determining that the network to be switched is the first WIFI network;
If the first application is not the first preset application under the first condition, determining that the network to be switched is the second LIFI network;
And if so, determining the network to be switched to be the second LIFI network.
7. The method of claim 6, wherein after accessing the network to be switched, the method further comprises:
if a second distance between the access point of the second LIFI network and the electronic device is greater than or equal to a fifth threshold, determining a target illumination intensity based on the second distance, wherein the target illumination intensity is greater than the current illumination intensity of the access point of the second LIFI network;
And sending an illumination intensity adjustment request to an access point of the second LIFI network, wherein the illumination intensity adjustment request carries the target illumination intensity, and the illumination intensity adjustment request is used for requesting to adjust the illumination intensity to the target illumination intensity.
8. An apparatus for network handover, applied to an electronic device, currently accessed to a first visible light communication (LIFI) network, the apparatus comprising:
The first determining unit is used for determining a first application running in the foreground of the electronic equipment;
A second determining unit, configured to determine a first distance between the electronic device and an access point of the first LIFI network, and/or determine a data transmission rate of the first LIFI network;
a third determining unit, configured to determine whether network handover is required according to the first application and at least one of the first distance and the data transmission rate;
And the network switching unit is used for determining a network to be switched and accessing the network to be switched if the network switching is determined to be required, wherein the network to be switched is a second LIFI network or a first wireless fidelity WIFI network.
9. An electronic device, comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program is processed to perform the method according to any of claims 1-7.
CN201910872421.6A 2019-09-16 2019-09-16 Network switching method and related equipment Active CN110572208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872421.6A CN110572208B (en) 2019-09-16 2019-09-16 Network switching method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872421.6A CN110572208B (en) 2019-09-16 2019-09-16 Network switching method and related equipment

Publications (2)

Publication Number Publication Date
CN110572208A true CN110572208A (en) 2019-12-13
CN110572208B CN110572208B (en) 2021-07-16

Family

ID=68780169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872421.6A Active CN110572208B (en) 2019-09-16 2019-09-16 Network switching method and related equipment

Country Status (1)

Country Link
CN (1) CN110572208B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050370A (en) * 2020-01-16 2020-04-21 惠州Tcl移动通信有限公司 Network switching method and device, storage medium and electronic equipment
CN111182595A (en) * 2019-12-30 2020-05-19 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment
WO2023087853A1 (en) * 2021-11-18 2023-05-25 荣耀终端有限公司 Network acceleration method, electronic device, chip system, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101541057A (en) * 2009-05-08 2009-09-23 北京邮电大学 Method and device for multi-mode terminal handover
CN103607780A (en) * 2013-11-19 2014-02-26 惠州Tcl移动通信有限公司 Mobile device and network connection method thereof
CN105451288A (en) * 2016-01-07 2016-03-30 中国联合网络通信集团有限公司 Method for switching between Wi-Fi network and Li-Fi network, and network access device
CN105873157A (en) * 2015-11-13 2016-08-17 乐视移动智能信息技术(北京)有限公司 Automatic network switching method and device, and mobile terminal
CN107994946A (en) * 2017-12-11 2018-05-04 欧普照明股份有限公司 A kind of dual-mode communication system, method and lighting apparatus
WO2018108294A1 (en) * 2016-12-16 2018-06-21 Telefonaktiebolaget Lm Ericsson (Publ) Ue communication handover between light fidelity access points in a communication system
CN108322599A (en) * 2018-01-23 2018-07-24 维沃移动通信有限公司 A kind of Network Access Method and mobile terminal
CN108366403A (en) * 2018-02-02 2018-08-03 广东欧珀移动通信有限公司 Method for switching network, device, terminal and storage medium
CN108900248A (en) * 2018-06-27 2018-11-27 中国联合网络通信集团有限公司 The distribution method and device of access point in a kind of visible light wireless communication system
CN109511144A (en) * 2018-12-26 2019-03-22 清华大学深圳研究生院 Network insertion type decision method, apparatus, switching control and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101541057A (en) * 2009-05-08 2009-09-23 北京邮电大学 Method and device for multi-mode terminal handover
CN103607780A (en) * 2013-11-19 2014-02-26 惠州Tcl移动通信有限公司 Mobile device and network connection method thereof
CN105873157A (en) * 2015-11-13 2016-08-17 乐视移动智能信息技术(北京)有限公司 Automatic network switching method and device, and mobile terminal
CN105451288A (en) * 2016-01-07 2016-03-30 中国联合网络通信集团有限公司 Method for switching between Wi-Fi network and Li-Fi network, and network access device
WO2018108294A1 (en) * 2016-12-16 2018-06-21 Telefonaktiebolaget Lm Ericsson (Publ) Ue communication handover between light fidelity access points in a communication system
CN107994946A (en) * 2017-12-11 2018-05-04 欧普照明股份有限公司 A kind of dual-mode communication system, method and lighting apparatus
CN108322599A (en) * 2018-01-23 2018-07-24 维沃移动通信有限公司 A kind of Network Access Method and mobile terminal
CN108366403A (en) * 2018-02-02 2018-08-03 广东欧珀移动通信有限公司 Method for switching network, device, terminal and storage medium
CN108900248A (en) * 2018-06-27 2018-11-27 中国联合网络通信集团有限公司 The distribution method and device of access point in a kind of visible light wireless communication system
CN109511144A (en) * 2018-12-26 2019-03-22 清华大学深圳研究生院 Network insertion type decision method, apparatus, switching control and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王春喜: "基于用户体验的VLC/WiFi 异构网络切换算法", 《信号处理》 *
赵贝贝: "室内可见光通信系统切换机制设计", 《西安交通大学学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182595A (en) * 2019-12-30 2020-05-19 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment
CN111182595B (en) * 2019-12-30 2021-08-24 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment
CN111050370A (en) * 2020-01-16 2020-04-21 惠州Tcl移动通信有限公司 Network switching method and device, storage medium and electronic equipment
WO2023087853A1 (en) * 2021-11-18 2023-05-25 荣耀终端有限公司 Network acceleration method, electronic device, chip system, and storage medium

Also Published As

Publication number Publication date
CN110572208B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN110572208B (en) Network switching method and related equipment
JP7221971B2 (en) Transmission method, mobile terminal and network equipment
CN110536016B (en) Network sharing method and related equipment
CN111641962A (en) Cell measurement method and terminal equipment
KR101113867B1 (en) Mobile Telecommunication Device Having Bluetooth Module and Method for Adjusting Search Period of Bluetooth Device thereby
CN110730517A (en) Network connection control method and related product
CN109890072B (en) Terminal power saving control method and device, mobile terminal and readable storage medium
CN111836376A (en) Uplink transmission method, uplink transmission control method and related equipment
CN110632734B (en) Focusing method and related product
KR102481349B1 (en) Power headroom reporting method and terminal device
CN109388947B (en) Background management method, device and computer readable storage medium
CN111278114B (en) Power control method, terminal equipment and network side equipment
CN106713648A (en) Communication method and mobile terminal
US20220151018A1 (en) Wifi network disconnecting method and related device
CN111601031B (en) Shooting parameter adjusting method and device
CN111210299B (en) Single number generation and management method and device
CN110740446B (en) Communication configuration method and related equipment
CN110493831B (en) Power determination method and terminal equipment
CN110830495A (en) Network access management method and related equipment
CN112543474A (en) Network connection method, mobile terminal and storage medium
CN112787734A (en) Signal-to-interference-and-noise ratio measuring method, device, equipment and medium
CN112399442A (en) Data transmission method and related device
CN113126857A (en) Data processing method and related equipment
CN111435902A (en) Control signal sending method and transmission node
CN117689672B (en) Facial mask nutrient solution spraying method based on image processing

Legal Events

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

Effective date of registration: 20240423

Address after: Room A039, Room 801, No. 190 Kaitai Avenue, Huangpu District, Guangzhou City, Guangdong Province, 510700

Patentee after: Guangzhou Xinguang Enterprise Management Consulting Co.,Ltd.

Country or region after: China

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Country or region before: China

TR01 Transfer of patent right