CN110366117A - A kind of mobile terminal network switching method and device - Google Patents

A kind of mobile terminal network switching method and device Download PDF

Info

Publication number
CN110366117A
CN110366117A CN201910646471.2A CN201910646471A CN110366117A CN 110366117 A CN110366117 A CN 110366117A CN 201910646471 A CN201910646471 A CN 201910646471A CN 110366117 A CN110366117 A CN 110366117A
Authority
CN
China
Prior art keywords
time
mobile terminal
charging
real
communication network
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
CN201910646471.2A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910646471.2A priority Critical patent/CN110366117A/en
Publication of CN110366117A publication Critical patent/CN110366117A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/16Performing reselection for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a kind of mobile terminal network switching method and devices.This method comprises: obtaining the real time position of mobile terminal;The distance between each charging place in the real time position and charge rule is calculated, and therefrom selects the shortest distance;Judge whether the shortest distance is greater than or equal to the first distance threshold value of setting, if so, obtaining the real-time time and real time electrical quantity of the mobile terminal, the first distance threshold value is preset distance threshold;The mobile terminal, which is calculated, according to the real-time time and mechanics answers standby time;And theoretical standby time of the mobile terminal under each communication network standard is calculated according to the real time electrical quantity;The communication network of the mobile terminal is switched into the target communication network standard.This method extends the use and stand-by time of mobile terminal in the case where mobile terminal uninterrupted use, and then improves user experience.

Description

A kind of mobile terminal network switching method and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of mobile terminal network switching method and device.
Background technique
Mobile Internet is popularized so that mobile terminal is not limited to means of communication, and becomes people's study, work and life Ancillary equipment living.In use, since the electricity of battery determines use and the standby time of mobile terminal, and become shadow The outstanding problem of user experience is rung, therefore, the consumption of electricity is reduced, the consumption of electricity is especially reduced when remaining capacity deficiency Emphasis as concern.
The mode for reducing electric quantity consumption at present mainly has reduction mobile terminal processor (Central Processing Unit, CPU) running frequency, or reduce screen brightness.These modes can reduce the consumption of electricity, but still have other The mode for reducing electric quantity consumption is not used by exploitation, such as in the case where a variety of communication network standards coexist, since difference is logical The power consumption of communication network standard is different, if be used, can reduce the consumption of electricity.However, current network switching is equal It is to switch according to network performance, when existing simultaneously such as 4G and 3G network, preferentially switches to the 4G network operation, this is to reducing electricity Consumption has no benefit.Especially when mobile terminal is kept in motion network cell gravity treatment or frequent switching, this communication network Network standard switching mode causes power consumption more obvious.
Summary of the invention
For this purpose, the present invention provides a kind of mobile terminal network switching method and device, to solve in the prior art due to logical The problem of power consumption is high caused by communication network standard switching mode, causes stand-by time short, poor user experience.
To achieve the goals above, first aspect present invention provides a kind of mobile terminal network switching method, the method Include:
Obtain the real time position of mobile terminal;
The distance between each charging place in the real time position and charge rule is calculated, and therefrom selects most short distance From, wherein the charge rule is statistics, analyzes the rule obtained after user's history charge information;
Judge whether the shortest distance is greater than or equal to the first distance threshold value of setting, if so, obtaining the movement The real-time time and real time electrical quantity of terminal, the first distance threshold value are preset distance threshold;
The mobile terminal is calculated according to the real-time time and mechanics and answers standby time, and the mechanics is institute State mechanics corresponding to each charging place of the mobile terminal in charge rule;And it is calculated according to the real time electrical quantity Theoretical standby time of the mobile terminal under each communication network standard;
Standby time and theoretical standby time is answered to determine target communication network standard according to described in, and by the mobile terminal Communication network switch to the target communication network standard.
Wherein, the charge rule is obtained by following steps:
Charge information when statistics charges every time, the charge information are tied including charging place, charging time started, charging Beam time, charging, which start electricity and charging, terminates electricity;
The charge information is analyzed, obtains the charge rule.
Wherein, described that the charge information is analyzed, obtain the charge rule step, comprising:
According to the charging time started and charging the end time obtain charging duration, according to the charging start electricity with Charging terminates electricity and obtains charge capacity;
Judge whether the charging duration is effective charging duration, if so, determining the charging time started and charging End time is effective charge information, if it is not, then determining the charging time started and charging end time for invalid charging letter Breath;
Judge whether the charge capacity is effective charge capacity, if so, determining that the charging starts electricity and charging End electricity is effective charge information;If it is not, then determining that the charging starts electricity and charging and terminates electricity as invalid charging letter Breath;
The charging place is normalized, normalization charging place is obtained;
The number that the charging place occurs in normalization charging place is judged, if the number is more than or equal to pre- If charging times threshold value, then determine that normalization charging place is effective charge information;
It counts effective charge information and obtains the charge rule.
Wherein, the mechanics is obtained by following steps:
Obtain the real time position and real-time time of the mobile terminal;
Judge whether the real time position of the mobile terminal is identical as one of charging place in the charge rule, if It is the real time position and real-time time for then counting the mobile terminal, obtains mechanics.
Wherein, the real time position and real-time time obtained to the mobile terminal period, moreover, at the mobile terminal It is greater than the cycle duration that the mobile terminal is in moving condition in the cycle duration of stationary state.
Wherein, the real time position for judging the mobile terminal whether with the charging place in the charge rule it One it is identical when, if the distance between the real time position of the mobile terminal and the charging place any in the charge rule are small The real time position for then determining the mobile terminal when second distance threshold value and the charging place in the charge rule One of it is identical.
Wherein, described to answer standby time step according to the real-time time and the mechanics calculating mobile terminal, it wraps It includes:
Calculate the time interval of the real-time time with the corresponding mechanics in each charging place;
Extract be divided between the real-time time and the shortest time of the corresponding mechanics in the charging place it is described should be to Machine duration.
Wherein, it answers standby time and theoretical standby time to determine target communication network standard step described in the foundation, wraps It includes:
Compare the theoretical standby time for answering standby time Yu each communication network standard;
If the theoretical standby time of each communication network standard is respectively less than described when answering standby time, Choice Theory is standby The longest communication network standard of duration;
When the theoretical standby time of the communication network standard answers standby time greater than described in if it exists, then the reason is selected It is greater than the communication network standard for answering standby time by standby time.
Wherein, if the theoretical standby time of multiple communication network standards answers standby time greater than described, net is selected The communication network standard of network best performance.
To achieve the goals above, second aspect of the present invention provides a kind of mobile terminal network switching device, and feature exists In, comprising:
First obtains module, for obtaining the real time position of mobile terminal;
First computing module, for calculating the distance between each charging place in the real time position and charge rule, Wherein, the charge rule is statistics, analyzes the rule obtained after user's history charge information;
First choice module, for selecting the shortest distance in each charging place in the real time position and charge rule;
Judgment module, for judging whether the shortest distance is greater than or equal to the first distance threshold value of setting, described One distance threshold is preset distance threshold;
Second obtains module, when for being greater than or equal to the first distance threshold value of setting in the shortest distance, obtains institute State the real-time time of mobile terminal;
Third obtains module, when for being greater than or equal to the first distance threshold value of setting in the shortest distance, obtains institute State the real time electrical quantity of mobile terminal;
Second computing module, when answering standby for calculating the mobile terminal according to the real-time time and mechanics Long, the mechanics is mechanics corresponding to each charging place of the mobile terminal in charge rule;
Third computing module, for calculating the mobile terminal under each communication network standard according to the real time electrical quantity Theoretical standby time;
Second selecting module, for answering standby time and theoretical standby time to determine target communication network system according to described in Formula;
Network handover module, for the communication network of the mobile terminal to be switched to the target communication network standard.
The present invention has the advantage that
Mobile terminal network switching method provided by the invention by obtaining the real time position of mobile terminal, and calculates institute State the distance between each charging place in real time position and charge rule, when the shortest distance be greater than or equal to the first of setting away from When from threshold value, the real-time time and real time electrical quantity of the mobile terminal are obtained, then according to the real-time time and mechanics It calculates the mobile terminal and answers standby time, calculate the mobile terminal under each communication network standard according to the real time electrical quantity Theoretical standby time, it is last that standby time and theoretical standby time is answered to determine target communication network standard according to described in, and will The communication network of mobile terminal switches to the target communication network standard, thus the case where mobile terminal uninterruptedly uses Under, the use and stand-by time of mobile terminal are extended, and then improve user experience.
Detailed description of the invention
The drawings are intended to provide a further understanding of the invention, and constitutes part of specification, with following tool Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.
Fig. 1 is a kind of flow chart of mobile terminal network switching method provided in an embodiment of the present invention;
Fig. 2 carries out the flow chart that analysis obtains charge rule to charge information to be provided in an embodiment of the present invention;
Fig. 3 is a kind of functional block diagram of mobile terminal network switching device provided in an embodiment of the present invention.
In the accompanying drawings:
Obtain mould 32: the first computing module at 31: the first
33: first choice module 34: judgment module
Obtain module 36 at 35: the second: third obtains module
37: the second computing modules 38: third computing module
39: the second selecting modules 310: network handover module
Specific embodiment
Below in conjunction with attached drawing, detailed description of the preferred embodiments.It should be understood that this place is retouched The specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
Mobile terminal network switching method provided in this embodiment is for the mobile end for supporting a variety of communication network standards The 5th third generation mobile communication network (5G), forth generation mobile communications network (4G), 3 G mobile communication network (3G) are such as supported in end With in Generation Mobile Telecommunication System network (2G) it is any two or more.
As shown in Figure 1, mobile terminal network switching method provided in this embodiment includes:
Step S101 obtains the real time position of mobile terminal.
Mobile terminal monitors the position of oneself in real time, for example, mobile terminal can be by third-party positioning system (such as GPS or A-GPS) positioning, or positioned by mobile communications network, it can also position otherwise, such as Wifi Local area network.
Step S102 calculates the distance between each charging place in real time position and charge rule, and therefrom selects most Short distance.
Wherein, charge rule is statistics, analyzes the charge rule obtained after user's history charge information.Charge rule passes through Following manner obtains:
When charging every time using connection cables to mobile terminal, the whole process of charging is monitored to obtain charging letter Breath, charge information include charge place, time started of charging, the end time of charging, battery capacity when starting to charge and end The information such as battery capacity when charging, and in the database by charge information storage.
Wherein, charging place is can be obtained by positioning system (such as GPS/A-GPS) or mobile communications network, and charging starts Time and charging end time can be obtaining by way of reading the local clock of mobile terminal, and battery when starting to charge is electric Amount and the battery capacity terminated when charging can be obtained by detecting the voltage of battery.
After the data scale of charge information in database is more than preset data scale threshold value, mobile terminal starts to filling Power information is analyzed and processed.That is, it is judged that whether charge information is more than certain threshold value, if it is not, then continuing to obtain charge information; If so, mobile terminal starts to be analyzed and processed charge information, to confirm or update charge rule.Wherein, preset data Size threshold can be customized by the user, can also be by manufacturer's recommended.For example data scale threshold definitions are 200 and filled by user Power information is analyzed and processed charge information when the data scale of charge information is more than 200.
In one embodiment, periodically analysis processing charge information, such as analysis in one week handle a charge information, Or charge information is analyzed and processed after each charging.
In one embodiment, as shown in Fig. 2, carrying out analysis to charge information show that charge rule step includes:
Step S201, obtains charging duration according to charging time started and charging end time, starts electricity according to charging Terminate electricity with charging and obtains charge capacity.
Charging time started and end time of charging can be opened obtaining by way of reading the local clock of mobile terminal Battery capacity when battery capacity and end when beginning charging charge can be obtained by the voltage of detection battery.
Step S202 judges whether charging duration is effective charging duration, if so, determining charging time started and charging End time is effective charge information, if it is not, then determine to charge time started and end time of charging is invalid charge informations.Tool Body, charging duration threshold value is set, when length is greater than charging duration threshold value when charging, determines that this is charged as effectively charging, this Charging time started corresponding to secondary charging and charging end time are effective charge information.For example, charging duration threshold value is set It is set to 30 minutes, it is long when charging to be greater than or equal to 30 minutes, then it is assumed that the charging time started of this charging and charging terminate Time is effective charge information.
Step S203 judges whether charge capacity is effective charge capacity, if so, determining that charging starts electricity and charging End electricity is effective charge information;If it is not, then determining that charging starts electricity and charging end electricity is invalid charge information.It is logical It crosses and judges whether charging duration and charge capacity are effective, screen to charge information.Specifically, charge capacity threshold value is set, When charge capacity is greater than charge capacity threshold value, determine that this is charged as effectively charging, the corresponding charging of this charging starts It is effective charge information that electricity and charging, which terminate electricity,.For example, charge capacity threshold value is set as 10%, if what this was filled with Electricity is more than 10%, then this charging process is considered as effective charge information.
By judging whether charging duration is effective charging duration and judges whether charge capacity is effective charge capacity pair Charge information is screened, to obtain more acurrate, effective charge information.
Charging place is normalized in step S204, obtains normalization charging place.
If the distance between any charging place is less than or equal to second in the real time position and charge rule of mobile terminal When distance threshold, then determine that the real time position of mobile terminal is identical as certain charging place in charge rule.
Specifically, the charging place by distance range in second distance threshold value is considered as same charging place, such as setting the Two distance thresholds are 100 meters, then two or more charging places within the scope of 100 meters are regarded as same charging ground Point.
In one embodiment, judge charge place normalization charging place occur number, if number be greater than or Equal to preset charged frequency threshold value, then determine that normalization charging place is effective charge information.
After the place normalized that will charge, according to the number that mobile terminal occurs in charging place, further determines that and fill Whether electric place is effective charging place.Specifically, charging times threshold value is set, when mobile terminal charges in same charging place Number be greater than or equal to charging times threshold value when, then it is assumed that the charging place be effectively charging place.
Step S205 counts effective charge information and obtains charge rule.
It counts effective charge information and obtains charge rule, that is, obtain effectively charging place, and the place storage that will effectively charge In the database.
In the present embodiment, after periodically analysis processing charge information, charge rule is updated;Or every After secondary charging, analysis processing charge information, and charge rule is updated.
It should be noted that the charging duration threshold value referred in the present embodiment, charge capacity threshold value, second distance threshold value and Charging times threshold value can allow use by that by factory pre-set, can also provide operation interface on mobile terminals when mobile terminal dispatches from the factory Family self-defining.
Step S103, judges whether the shortest distance is greater than or equal to the first distance threshold value of setting, if so, obtaining movement The real-time time and real time electrical quantity of terminal.
The shortest distance in place of charging in the real time position and charge rule selected in step s 102 is less than the of setting One distance threshold does not switch over the mobile standard network of mobile terminal then.If the shortest distance is greater than or equal to setting First distance threshold value obtains the real-time time and real time electrical quantity of mobile terminal.Wherein, first distance threshold value is by producer or user Preset distance threshold, such as first distance threshold value are 3000 meters.
It should be noted that the position acquisition mode of mobile terminal is identical as step S101, the time of mobile terminal is obtained Mode is identical as step S102, repeats no more again.
Step S104 calculates mobile terminal according to real-time time and mechanics and answers standby time;And according to electricity in real time Amount calculates theoretical standby time of the mobile terminal under each communication network standard.
Wherein, answer standby time refer to mobile terminal from current location reach charge rule in charging place most in short-term Between, this period should keep mobile terminal normally use with it is standby.Specifically, calculate mobile terminal real-time time with The time interval of charging place mechanics in charge rule, and select mobile terminal real-time time and filling in charge rule The shortest time interval of electric place mechanics, the time interval are exactly that mobile terminal answers standby duration.
Mechanics is mechanics, such as mobile terminal corresponding to each charging place of the mobile terminal in charge rule In the mechanics of charging place A, i.e., in the charging time started and charging end time of charging place A.Mechanics storage In the database.When the charge rule in database is not empty, that is, charge rule is had been obtained for, periodically obtained mobile whole The position at end and time.
Mechanics is obtained by following steps, that is, obtains the real time position and real-time time of mobile terminal;Judgement movement Whether the real time position of terminal is identical as one of charging place in charge rule, if so, the real-time position of statistics mobile terminal It sets and real-time time, obtains mechanics.
Specifically, mobile terminal judges in charge rule with the presence or absence of charging ground identical with mobile terminal real time position Point, if being that any charging place is identical in the real time position of mobile terminal and charge rule, the real time position that will acquire is timely Between save in the database;Otherwise, the time is not saved.
In one embodiment, the real time position and real-time time obtained to mobile terminal period, moreover, mobile whole The cycle duration to remain static is held to be greater than the cycle duration that mobile terminal is in moving condition.
For example, mobile terminal each 30 minutes obtain real time position and real-time time, the acquisition modes of real time position with Step S101 is identical, and the acquisition modes of real-time time are identical as step S103, and details are not described herein.
When mobile terminal remains static, the period of real time position and real-time time is obtained relative to longer.Work as shifting When dynamic terminal is in moving condition, the period of real time position and real-time time is obtained relative to shorter.
In one embodiment, judge that mobile terminal is to remain static by sensor, be in mobile shape State.When sensor judges that mobile terminal is in moving condition, the period for obtaining real time position and real-time time is relatively long.Example Such as, when mobile terminal remains static, the period for obtaining real time position and real-time time is 1 hour, at mobile terminal When moving condition, the period for obtaining real time position and real-time time is 10 minutes.
In another embodiment, mobile terminal triggered according to the data variation of sensor obtain real time position and in real time The movement of time.Such as, when sensor judges that mobile terminal remains static, mobile terminal do not obtain real time position and in real time Time.When sensor judges that mobile terminal is in moving condition, sensor-triggered acquisition for mobile terminal real time position and in real time Time.
It should be noted that the period of acquisition for mobile terminal real time position and real-time time can mobile terminal dispatch from the factory when by Factory pre-set, or operation interface is provided on mobile terminals and makes user customized.
In one embodiment, mobile terminal is while standby time is answered in calculating, according to the real-time electricity of mobile terminal It is standby to calculate its theory under different communication network standard for the depletion rate of battery capacity under amount and different communication network standard Duration.For example, calculating separately theoretical standby time of the mobile terminal under 5G and 4G network according to the real time electrical quantity of mobile terminal For 2 hours and 3 hours.
It should be noted that the depletion rate of battery capacity can measure in laboratory environments under different communication network standard It is acquired after the standby current of battery capacity under different communication network standard, mobile terminal can also be measured under real network environment and existed Under different communication network standard it is standby and using when average current after acquire.In addition, battery electricity under different communication network standard The depletion rate of amount can be when terminal be dispatched from the factory by factory pre-set.
Step S105, foundation answer standby time and theoretical standby time to determine target communication network standard.
Specifically, it is determined that target communication network standard can answer standby time and real time electrical quantity to exist by comparing mobile terminal The size of theoretical standby time under different communication network standard is answered if the theoretical standby time of each communication network standard is respectively less than When standby time, the longest communication network standard of Choice Theory standby time.
The theoretical standby time of communication network standard is greater than when answering standby time if it exists, then Choice Theory standby time is big In answer the communication network standard of standby time as target communication network standard.If the theory of multiple communication network standards is standby Length, which is greater than, answers standby time, then is greater than according to network performance preferential principle selection standby time and answers standby time and network performance The target communication network standard that optimal communication network standard should be used as mobile terminal.
For example, it is 2.5 hours that mobile terminal, which answers standby time, and calculated according to the real time electrical quantity of mobile terminal, it is mobile Theoretical standby time of the terminal at 5G, 4G and 3G network is respectively 2 hours, 3 hours and 4 hours, then mobile terminal is in 4G It is all larger than with the theoretical standby time under 3G network and answers standby time.On this basis, it is answered according to network performance preferential principle Select 4G network.Therefore, it both can guarantee mobile terminal normal use and standby before reaching the charging place in charge rule, Preferable network performance is obtained again.
It should be noted that the rule for the network formats that mobile terminal uses can terminal dispatch from the factory when by factory pre-set or Operation interface is provided on mobile terminal makes user customized.
The communication network of mobile terminal is switched to target communication network standard by step S106.
After the target communication network standard that mobile terminal confirmation should use, communication network standard currently in use is obtained, and Whether network formats more currently in use and the network formats that should be used are identical.If the two is identical, this process terminates; Otherwise, mobile terminal should be by network switching currently in use to the mobile standard network of target.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed Core design with process is all in the protection scope of the patent.
It is specific below with reference to one in order to more intuitively specifically describe the course of work of mobile terminal network switching method Ground embodiment is described in detail the course of work of mobile terminal network switching method.
It is assumed that the mobile terminal of user has the function of switching mobile standard network, and have been obtained for movement end The charge rule and mechanics at end, it is specific as shown in table 1.
Table 1: the charge rule and mechanics of mobile terminal.
After mobile terminal opens the function of selection and handover network mode, with 15 minutes for the period, by third-party The modes such as positioning system or mobile communications network obtain real time position.Calculate each charging in " real time position 5 " and charge rule The distance between place, as shown in table 2.
Table 2 is the list of the distance between each charging place in real time position and charge rule.
" real time position 5 " most short, i.e. L1≤L2≤L3 or L1≤L3≤L2 at a distance from place 1 of charging in charge rule. If shortest distance L1 is 500 meters, first distance threshold value is such as 200 meters.L1 is greater than first distance threshold value, then obtains mobile terminal Real-time time is " 8:00 " and real time electrical quantity (remaining capacity) is 15%.Calculate the activity time in real-time time and mechanics Time interval, as shown in table 3.
Table 3 is the time interval of the activity time in real-time time and mechanics.
As shown in Table 3, the stand-by time of answering that mobile terminal reaches place 2 of charging from real time position is 50 minutes.
Assuming that mobile terminal it is standby under different communication network standard and use when battery capacity depletion rate it is known that root Theoretical standby time is calculated according to the depletion rate of real time electrical quantity and battery capacity, as shown in table 4, wherein t1 >=t2 >=t3 >=t4.
When table 4 is the depletion rate and standby corresponding theory of the battery capacity of mobile terminal under different communication network standard It is long.
In the present embodiment, mobile terminal answers standby time T2=50 minutes, and 15% real time electrical quantity is in different communication network Theoretical standby time t1, t2, t3, t4 under standard, the communication network standard that determination should use according to the following rules:
When 0≤T2≤t4, the communication network standard that should be used is 5G;
When t4≤T2≤t3, the communication network standard that should be used is 4G;
When t3≤T2≤t2, the communication network standard that should be used is 3G;
When t2≤T2≤t1, the communication network standard that should be used is 2G;
When t1≤T2, the communication network standard that should be used is 2G.
In the present embodiment, if according to mentioned above principle judge target communication network standard that mobile terminal should use for 3G, i.e., t3≤T2≤t2.Switch the communication network of mobile terminal according to above-mentioned selection.Specifically, if the currently used communication of mobile terminal Network formats are 3G, then without switching.If the currently used communication network standard of mobile terminal is 4G, according to above-mentioned rule Communication network standard " 4G " currently in use is switched into target communication network standard " 3G ".
Mobile terminal network switching method provided by the above embodiment by obtaining the real time position of mobile terminal, and is counted Calculate the distance between each charging place in real time position and charge rule, when the shortest distance be greater than or equal to the first of setting away from When from threshold value, the real-time time and real time electrical quantity of mobile terminal are obtained, then calculates movement according to real-time time and mechanics Terminal answers standby time, calculates theoretical standby time of the mobile terminal under each communication network standard according to real time electrical quantity, finally Foundation answers standby time and theoretical standby time to determine target communication network standard, and the communication network of mobile terminal is switched to Target communication network standard extends the use of mobile terminal and standby thus in the case where mobile terminal uninterrupted use Time, and then improve user experience.
Of the invention second implements to provide a kind of network switching device, as shown in figure 3, network switching device includes:
First obtains module 31, for obtaining the real time position of mobile terminal.
Wherein, it is identical to obtain the method introduced in the mode and step S101 of real time position for the first acquisition module 31, herein It repeats no more.
First computing module 32, for calculating the distance between each charging place in real time position and charge rule.
Wherein, charge rule is statistics, analyzes the rule obtained after user's history charge information.The acquisition side of charge rule Formula is identical as the method introduced in step 102, and details are not described herein.
First choice module 33, for selecting the shortest distance in each charging place in real time position and charge rule.
Judgment module 34, for judging whether the shortest distance is greater than or equal to the first distance threshold value of setting.
Wherein, first distance threshold value is preset distance threshold, and first distance threshold value can be when mobile terminal dispatches from the factory By factory pre-set, or operation interface is provided on mobile terminals and makes user customized.
Second obtains module 35, when for being greater than or equal to the first distance threshold value of setting in the shortest distance, obtains movement The real-time time of terminal.
Third obtains module 36, when for being greater than or equal to the first distance threshold value of setting in the shortest distance, obtains movement The real time electrical quantity of terminal.
Second computing module 37 answers standby time for calculating mobile terminal according to real-time time and mechanics, activity Rule is mechanics corresponding to each charging place of the mobile terminal in charge rule.
Third computing module 38, for calculating the mobile terminal under each communication network standard according to the real time electrical quantity Theoretical standby time.
Second selecting module 39 answers standby time and theoretical standby time to determine target communication network standard for foundation.
Network handover module 310, for the communication network of mobile terminal to be switched to target communication network standard.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment Member.
Network switching device provided in this embodiment is calculated in real time position and charge rule by the first computing module The distance between each charging place, when judgment module judges that the shortest distance is greater than or equal to the first distance threshold value of setting, second It obtains module and third obtains module and obtains real-time time and real time electrical quantity respectively, the second computing module is according to real-time time and work Dynamic rule calculates mobile terminal and answers standby time, and the second selecting module foundation answers standby time and theoretical standby time to determine target The communication network of mobile terminal is switched to target communication network standard by communication network standard, network handover module, thus moving In the case where the dynamic uninterrupted use of terminal, the use and stand-by time of mobile terminal are extended, and then improve user experience.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (10)

1. a kind of mobile terminal network switching method, which is characterized in that the described method includes:
Obtain the real time position of mobile terminal;
The distance between each charging place in the real time position and charge rule is calculated, and therefrom selects the shortest distance, In, the charge rule is statistics, analyzes the rule obtained after user's history charge information;
Judge whether the shortest distance is greater than or equal to the first distance threshold value of setting, if so, obtaining the mobile terminal Real-time time and real time electrical quantity, the first distance threshold value be preset distance threshold;
The mobile terminal is calculated according to the real-time time and mechanics and answers standby time, and the mechanics is the shifting Mechanics corresponding to dynamic each charging place of the terminal in charge rule;And according to described in real time electrical quantity calculating Theoretical standby time of the mobile terminal under each communication network standard;
Standby time and theoretical standby time is answered to determine target communication network standard, and leading to the mobile terminal according to described in Communication network switches to the target communication network standard.
2. the method according to claim 1, wherein the charge rule is obtained by following steps:
Charge information when statistics charges every time, at the end of the charge information includes charging place, charging time started, charging Between, charging start electricity and charging terminate electricity;
The charge information is analyzed, obtains the charge rule.
3. according to the method described in claim 2, obtaining described it is characterized in that, described analyze the charge information Charge rule step, comprising:
Charging duration is obtained according to the charging time started and charging end time, and electricity and charging are started according to the charging Terminate electricity and obtains charge capacity;
Judge whether the charging duration is effective charging duration, if so, determining that the charging time started and charging terminate Time is effective charge information, if it is not, then determining that the charging time started and charging end time are invalid charge information;
Judge whether the charge capacity is effective charge capacity, if so, determining that the charging starts electricity and charging and terminates Electricity is effective charge information;If it is not, then determining that the charging starts electricity and charging and terminates electricity as invalid charge information;
The charging place is normalized, normalization charging place is obtained;
The number that the charging place occurs in normalization charging place is judged, if the number is greater than or equal to default fill Electric frequency threshold value then determines that normalization charging place is effective charge information;
It counts effective charge information and obtains the charge rule.
4. according to the method described in claim 2, it is characterized in that, the mechanics is obtained by following steps:
Obtain the real time position and real-time time of the mobile terminal;
Judge whether the real time position of the mobile terminal is identical as one of charging place in the charge rule, if so, The real time position and real-time time of the mobile terminal are counted, mechanics is obtained.
5. according to the method described in claim 4, it is characterized in that, the mobile terminal period the real time position that obtains and Real-time time, moreover, the cycle duration that the mobile terminal remains static, which is greater than the mobile terminal, is in moving condition Cycle duration.
6. according to the method described in claim 4, it is characterized in that, the real time position for judging the mobile terminal whether When identical as one of charging place in the charge rule, if in the real time position of the mobile terminal and the charge rule When the distance between any described charging place is less than or equal to second distance threshold value, then the real-time position of the mobile terminal is determined It sets identical as one of charging place in the charge rule.
7. the method according to claim 1, wherein described calculate institute according to the real-time time and mechanics It states mobile terminal and answers standby time step, comprising:
Calculate the time interval of the real-time time with the corresponding mechanics in each charging place;
Extract be divided between the real-time time and the shortest time of the corresponding mechanics in the charging place it is described when answering standby It is long.
8. the method according to claim 1, wherein answering standby time and theoretical standby time described in the foundation Determine target communication network standard step, comprising:
Compare the theoretical standby time for answering standby time Yu each communication network standard;
If the theoretical standby time of each communication network standard is respectively less than described when answering standby time, Choice Theory standby time Longest communication network standard;
The theoretical standby time of the communication network standard is greater than described when answering standby time if it exists, then select it is described it is theoretical to Machine duration is greater than the communication network standard for answering standby time.
9. according to the method described in claim 8, it is characterized in that, the if theoretical standby time of multiple communication network standards Standby time is answered greater than described, then selects the communication network standard that network performance is optimal.
10. a kind of mobile terminal network switching device characterized by comprising
First obtains module, for obtaining the real time position of mobile terminal;
First computing module, for calculating the distance between each charging place in the real time position and charge rule, wherein The charge rule is statistics, analyzes the rule obtained after user's history charge information;
First choice module, for selecting the shortest distance in each charging place in the real time position and charge rule;
Judgment module, for judging whether the shortest distance is greater than or equal to the first distance threshold value of setting, described first away from It is preset distance threshold from threshold value;
Second obtains module, when for being greater than or equal to the first distance threshold value of setting in the shortest distance, obtains the shifting The real-time time of dynamic terminal;
Third obtains module, when for being greater than or equal to the first distance threshold value of setting in the shortest distance, obtains the shifting The real time electrical quantity of dynamic terminal;
Second computing module answers standby time for calculating the mobile terminal according to the real-time time and mechanics, institute Stating mechanics is mechanics corresponding to each charging place of the mobile terminal in charge rule;
Third computing module, for calculating theory of the mobile terminal under each communication network standard according to the real time electrical quantity Standby time;
Second selecting module, for answering standby time and theoretical standby time to determine target communication network standard according to described in;
Network handover module, for the communication network of the mobile terminal to be switched to the target communication network standard.
CN201910646471.2A 2019-07-17 2019-07-17 A kind of mobile terminal network switching method and device Pending CN110366117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910646471.2A CN110366117A (en) 2019-07-17 2019-07-17 A kind of mobile terminal network switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910646471.2A CN110366117A (en) 2019-07-17 2019-07-17 A kind of mobile terminal network switching method and device

Publications (1)

Publication Number Publication Date
CN110366117A true CN110366117A (en) 2019-10-22

Family

ID=68219984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910646471.2A Pending CN110366117A (en) 2019-07-17 2019-07-17 A kind of mobile terminal network switching method and device

Country Status (1)

Country Link
CN (1) CN110366117A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112886655A (en) * 2021-01-08 2021-06-01 中国联合网络通信集团有限公司 Charging management method, system, mobile terminal and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347285A (en) * 2013-07-16 2013-10-09 福州大学 Network type automatic switching method for mobile platform
US20140274009A1 (en) * 2013-03-12 2014-09-18 Qualcomm Incorporated Location-aware network selection
CN105357403A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Network switching method and device for communication terminal and communication terminal
CN108279764A (en) * 2017-01-04 2018-07-13 北京搜狗科技发展有限公司 A kind of application control method, device and mobile terminal
CN108736084A (en) * 2018-05-25 2018-11-02 中国联合网络通信集团有限公司 Charging method and terminal
CN108900707A (en) * 2018-06-27 2018-11-27 中国联合网络通信集团有限公司 Terminal and its work pattern selection method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140274009A1 (en) * 2013-03-12 2014-09-18 Qualcomm Incorporated Location-aware network selection
CN103347285A (en) * 2013-07-16 2013-10-09 福州大学 Network type automatic switching method for mobile platform
CN105357403A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Network switching method and device for communication terminal and communication terminal
CN108279764A (en) * 2017-01-04 2018-07-13 北京搜狗科技发展有限公司 A kind of application control method, device and mobile terminal
CN108736084A (en) * 2018-05-25 2018-11-02 中国联合网络通信集团有限公司 Charging method and terminal
CN108900707A (en) * 2018-06-27 2018-11-27 中国联合网络通信集团有限公司 Terminal and its work pattern selection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112886655A (en) * 2021-01-08 2021-06-01 中国联合网络通信集团有限公司 Charging management method, system, mobile terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
JP3310581B2 (en) Battery monitoring method and device
US7548767B2 (en) Low power warning in a portable communication device based on predicted device utilization
CN100514082C (en) Battery remaining power calculating method, battery remaining power calculating device, and battery remaining power calculating program
CN104375085B (en) A kind of method, apparatus and terminal detecting battery capacity
CN1811481B (en) Apparatus for displaying the remaining capacity of a battery and wireless telephone apparatus
CN105979103B (en) Battery power guarantee method and device for portable electronic product and mobile terminal
US5248929A (en) Battery time monitor for cellular telephone
CN107436418B (en) Method, terminal and device for calibrating electric quantity attenuation of battery
CN103455126A (en) Method and client device for determining residual service life of battery and mobile terminal
CN102165668A (en) Mobile device, battery pack, display control method, and display control program
CN112014749B (en) Method, device, chip and storage medium for determining battery display electric quantity
CN1955752B (en) Method for monitoring charging process of battery of mobile terminal
CN104503276A (en) Intelligent power utilization method, device and terminal
CN110879361A (en) Method and device for estimating residual capacity of battery and electronic equipment
CN100498364C (en) System and method of battery capacity estimation
CN110297192A (en) Electricity bearing calibration when the method and booting of electricity when a kind of estimation battery charging and discharging
CN110366117A (en) A kind of mobile terminal network switching method and device
Pröbstl et al. Intelligent chargers will make mobile devices live longer
CN113036544A (en) Intelligent socket, charging control method and computer readable storage medium
JP4255755B2 (en) Secondary battery remaining capacity calculation device and remaining capacity calculation method thereof
JP2000253596A (en) Equipment and method for charging secondary battery
US20040204174A1 (en) Method for using system information from a wireless network to predict current consumption in different modes of a mobile telephone
JP2002075463A (en) Charge control device of secondary cell, and charging method of the same
CN108900707A (en) Terminal and its work pattern selection method
JP5685690B2 (en) Portable terminal, portable terminal system, battery remaining amount warning method and program

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022