CN109922515A - Mobile terminal stays method, mobile terminal and the storage medium of net - Google Patents

Mobile terminal stays method, mobile terminal and the storage medium of net Download PDF

Info

Publication number
CN109922515A
CN109922515A CN201910147311.3A CN201910147311A CN109922515A CN 109922515 A CN109922515 A CN 109922515A CN 201910147311 A CN201910147311 A CN 201910147311A CN 109922515 A CN109922515 A CN 109922515A
Authority
CN
China
Prior art keywords
mobile terminal
net
network
cell
uniform velocity
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
CN201910147311.3A
Other languages
Chinese (zh)
Other versions
CN109922515B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910147311.3A priority Critical patent/CN109922515B/en
Publication of CN109922515A publication Critical patent/CN109922515A/en
Application granted granted Critical
Publication of CN109922515B publication Critical patent/CN109922515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure is directed to method, mobile terminal and storage mediums that a kind of mobile terminal stays net.This method comprises: mobile terminal determines whether itself is at the uniform velocity moving condition according to the gyroscope of itself and the detection data of gravity sensor, if the baroceptor for then triggering itself detects the atmospheric pressure value of the mobile terminal present position;Judge the atmospheric pressure value that detects whether linear change, if then searching for network according to the first preset rules and staying net.The disclosure can determine whether the mobile terminal is in elevator, and triggering mobile phone searches net again in advance, and improve mobile terminal searches net performance, allows users to quickly be registered to network.

Description

Mobile terminal stays method, mobile terminal and the storage medium of net
Technical field
This disclosure relates to mobile device technology more particularly to a kind of mobile terminal stay the method for net, mobile terminal and Storage medium.
Background technique
For mobile phone often without signal, however out after elevator, having longer period of time does not have network yet in most elevators, makes It is inconvenient for use at user.This, which is primarily due to terminal, which searches net mechanism, causes, and usual terminal goes to search with specific time, a rule Net, if the time less than, would not attempt to search net next time, thus cause even if from elevator come out, also have the time without net Network.
Therefore, it is necessary to which providing the new technical solution of one kind improves one or more problem present in above scheme.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The method, mobile terminal and the storage medium that are designed to provide a kind of mobile terminal and stay net of the disclosure, Jin Erzhi It is few to overcome the problems, such as caused by the limitation and defect due to the relevant technologies one or more to a certain extent.
According to the first aspect of the embodiments of the present disclosure, a kind of method that mobile terminal stays net is provided, comprising:
Mobile terminal determines whether itself is according to the gyroscope of itself and the detection data of gravity sensor and at the uniform velocity moves Dynamic state, if the baroceptor for then triggering itself detects the atmospheric pressure value of the mobile terminal present position;
Judge the atmospheric pressure value that detects whether linear change, if then searching for network according to the first preset rules and staying Net.
In embodiment of the disclosure, first preset rules are search periphery available cell, according to each the first net of cell Network index successively stays net toward low priority from high;
First network index C2=(the S/L)/N;
Wherein, S indicates that the radius of society of cell, L indicate that the mobile terminal of cell arrives the distance of base station, and N indicates current small Number in network users in area.
In embodiment of the disclosure, this method further include:
If the mobile terminal is not at the uniform velocity moving condition, and when the atmospheric pressure value nonlinear change, then according to second Preset rules search for network and stay net.
In embodiment of the disclosure, second preset rules are search periphery available cell, according to each the second net of cell Network index successively stays net toward low priority from high;
Second network index C1=(1/L) × T × (the 1/A)/N;
Wherein, L indicates the mobile terminal of cell to the distance of base station, the theoretical throughput of T expression cell, A expression cell Telephone traffic, N indicates number in network users in current cell.
In embodiment of the disclosure, the at the uniform velocity moving condition includes at the uniform velocity propradation or uniform descent state.
In embodiment of the disclosure, judge the atmospheric pressure value detected whether linear change, if then pre- according to first If rule search network and the step of in net, comprising:
Judge whether the atmospheric pressure value linearly increases or linearly reduce, if then simultaneously according to the first preset rules search network In net.
In embodiment of the disclosure, when the mobile terminal is at the uniform velocity moving condition, which is located at elevator It is interior.
In embodiment of the disclosure, mobile terminal determines certainly according to the gyroscope of itself and the detection data of gravity sensor Whether body is in the step of at the uniform velocity moving condition, comprising:
When the acceleration that the gravity sensor detects is zero, and the moving direction that the gyroscope detects is upward When, the mobile terminal is at the uniform velocity propradation;
When the acceleration that the gravity sensor detects is zero, and the moving direction that the gyroscope detects is downward When, the mobile terminal is in uniform descent state.
According to the second aspect of an embodiment of the present disclosure, a kind of mobile terminal is provided, comprising:
Processor;And
Memory, for storing the computer program that can be run on the processor;
Wherein, one kind described in any one above-mentioned embodiment is realized when the computer program is executed by the processor Mobile terminal stays the step of method of net.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine program, the program realize a kind of method that mobile terminal stays net described in any one above-mentioned embodiment when being executed by processor The step of.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In a kind of embodiment of the disclosure, detect whether mobile terminal is in vertical even by gravity sensor and gyroscope The mobile state of speed, and detection atmospheric value is combined, it can determine whether the mobile terminal is in elevator, and trigger mobile phone in advance Again net is searched, improve mobile terminal searches net performance, allows users to quickly be registered to network.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
Fig. 1 schematically shows a kind of hardware structural diagram of mobile terminal in disclosure exemplary embodiment;
Fig. 2 schematically shows a kind of communications network system configuration diagram in disclosure exemplary embodiment;
Fig. 3 schematically shows the method flow diagram that a kind of mobile terminal in disclosure exemplary embodiment stays net;
Fig. 4 schematically shows the mobile terminal schematic diagram that a kind of mobile terminal in disclosure exemplary embodiment stays net;
Fig. 5 schematically shows a kind of computer readable storage medium schematic diagram in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
A kind of method that mobile terminal stays net is provided firstly in this example embodiment, this method can be applied to a tool The terminal device of standby display screen, such as can be mobile phone, personal digital assistant, laptop, tablet computer, smartwatch Equal mobile terminals.With reference to shown in Fig. 3, this method may include:
Step S301, mobile terminal determine whether itself locates according to the gyroscope of itself and the detection data of gravity sensor In at the uniform velocity moving condition, if the baroceptor for then triggering itself detects the atmospheric pressure value of the mobile terminal present position;
Step S302, judge the atmospheric pressure value detected whether linear change, if then being searched according to the first preset rules Rope network simultaneously stays net.
In the above method, detect whether mobile terminal is in the shape vertically at the uniform velocity moved by gravity sensor and gyroscope State, and detection atmospheric value is combined, it can determine whether the mobile terminal is in elevator, and triggering mobile phone searches net again in advance, Improve mobile terminal searches net performance, allows users to quickly be registered to network.
In the following, each step of the reference Fig. 3 to the above method in this example embodiment is described in detail.
In step S301, the gyroscope is a kind of mechanical device, major part be one to rotary shaft with high The rotor of angular speed rotation, rotor is in a bracket;Add an interior ring stand on passing through rotor center axis, then gyroscope can Make free movement around two axis of plane;Then, a upper outer ring stand is added outside interior ring stand;There are two balance rings for this gyroscope, can Make free movement to surround three axis of plane, is exactly a complete Space top instrument.
The working principle of gyroscope is that the direction of the rotary shaft meaning of a rotating object is when not influenced by external force It will not change.People keep direction with it according to this working principle, and the thing manufactured is just called gyroscope.Top Spiral shell instrument will give its power at work, rotate it quickly, can generally reach hundreds of thousands per minute and turn, can work very For a long time.Then direction indicated by axis is read with a variety of methods, and data-signal is transmitted to control system automatically.
Gyroscope is widely used in the technical fields such as Aeronautics and Astronautics, navigation and communication.This is because its two are basic Characteristic: one is gyroscopic inertia, and another is precession, both characteristics are all built upon under the principle of the conservation of angular momentum.It is raw in reality In work, the feed motion that gyroscope occurs is occurred under the action of gravity torque.
The gravity sensor is a kind of novel category sensor technology, and cantilevered displacement is made using elastic sensing element in it Device, and drives electric contact using energy-stored spring made of elastic sensing element, completes the conversion from Gravity changer to electric signal. It is widely used in various mobile terminals at present.For example, gravity sensor when mobile phone is vertical and horizontal screen can from turn, Playing game can replace up and down, such as car race game of joking, and can not lay flat mobile phone by key, be swung left and right just The direction that can replace simulation machine game moves left and right.
Gravity sensor is the principle according to piezoelectric effect come work.So-called piezoelectric effect is exactly " for being not present Other than the heteropolar crystal of symmetrical centre is added in the external force on crystal deformation occurs in addition to making crystal, it will also change the polarization shape of crystal State establishes electric field in crystals, and this since mechanical force makes medium, there is a phenomenon where the referred to as direct piezoelectric effects that polarizes ". Gravity sensor is exactly that this characteristic of the crystal modification as caused by acceleration of its inside is utilized.Since this deformation can produce Raw voltage, as long as calculating the relationship generated between voltage and the acceleration applied, so that it may which acceleration is converted to voltage Output.
The acceleration due to caused by gravity can also be measured by gravity sensor, and calculates equipment with respect to the horizontal plane Tilt angle.By analyzing dynamic acceleration, and it can analyze out the mobile mode of equipment.
The baroceptor is the instrument for measuring the absolute pressure of gas, and the baroceptor in mobile terminal can To sense the atmospheric pressure around mobile terminal.
Working principle based on above-mentioned gyroscope, gravity sensor, baroceptor, in the present embodiment, mobile terminal Determine whether itself is at the uniform velocity moving condition according to the detection data of the gyroscope of itself and gravity sensor, if then triggering The baroceptor of itself detects the atmospheric pressure value of the mobile terminal present position, further accurately judges movement entrained by user Whether terminal is in elevator.
In one embodiment, it constantly walks about in elevator as user or when a certain layer residence time is too long, causes The detection data of gyroscope and gravity sensor can not determine that the mobile terminal that user carries is no in the shape vertically at the uniform velocity moved When state, it is also desirable to baroceptor is triggered, by detecting the variation of ambient atmosphere pressure, further to judge entrained by user Mobile terminal whether be in elevator.
In step s 302, by judging whether the atmospheric pressure value detected changes linearly, which selection should use Kind rule search network simultaneously stays net.
In one embodiment, when the atmospheric pressure value detected changes linearly, it may be determined that user is still in elevator In, therefore select the first preset rules search network and stay net.When the atmospheric pressure value detected does not change linearly, It can determine that user has walked out elevator at this time, may be selected to search for network with the second preset rules and stay net.
In one embodiment, based on the basis of previous embodiment, first preset rules are that search periphery can be with small Area successively stays net toward low priority from high according to each cell first network index;
First network index C2=(the S/L)/N;
Wherein, S indicates that the radius of society of cell, L indicate that the mobile terminal of cell arrives the distance of base station, and N indicates current small Number in network users in area.
In this way, just trigger the mobile terminal also do not go out elevator before just search net in advance, and in first preset rules only with Data in cell range locating for user are to calculate sample, improve and search network speed rate, so that user one goes out elevator, mobile terminal horse On just can connect to network.
In one embodiment, based on the basis of previous embodiment, the method that a kind of mobile terminal of the disclosure stays net is gone back The following steps are included:
Step S303, if the mobile terminal is not at the uniform velocity moving condition, and when the atmospheric pressure value nonlinear change, then Network is searched for according to the second preset rules and stays net.
At this point, the mobile terminal that can determine whether out that user carries has been moved off elevator, so that selection is according to the second preset rules It searches for network and stays net.Specifically, second preset rules are search periphery available cell, refer to according to each the second network of cell Number successively stays net toward low priority from high;
Second network index C1=(1/L) × T × (the 1/A)/N;
Wherein, L indicates the mobile terminal of cell to the distance of base station, the theoretical throughput of T expression cell, A expression cell Telephone traffic, N indicates number in network users in current cell.
The handling capacity refers to network, equipment, port, virtual circuit or other facilities, is successfully delivered in the unit time The quantity of data.The telephone traffic is the abbreviation of telecommunication service flow, also referred to as telecommunications load capacity, it both indicates telecommunication apparatus The load of receiving also illustrates that user to the degree of communication requirement.In general, the size of telephone traffic is communicated with number of users, user Frequent degree, each user communicate the duration occupied and the duration investigated is related.If the number of communications in the unit time is got over More, the time that communication occupies every time is longer, and the time investigated is also longer, then telephone traffic is also bigger.Due to user The generation of calling and complete the length the time required to primary communication, be all random and variation, thus telephone traffic be one with The stochastic variable of time change.
According to the calculating of the second network index, the degree of priority of surrounding network can be calculated, so according to priority from It is high to Low successively to stay net, this computation rule, it is ensured that mobile terminal entrained by user accesses signal most with most fast speed Excellent network.
In one embodiment, based on the basis of previous embodiment, the at the uniform velocity moving condition includes at the uniform velocity rising shape State or uniform descent state.
Usual elevator is risen or fallen with uniform speed, and the specific speed of service depends on the height of place floor Degree.General 12 layers of elevator speed below is 1.5m/s, and 12 layers to 22 layers are 1.75m/s, and 22 layers to 32 layers are 2.0m/s.
In one embodiment, based on the basis of previous embodiment, judge whether the atmospheric pressure value detected is linear Variation, further comprising the steps of if then searching for network and the step of in net according to the first preset rules:
Step S3021, judges whether the atmospheric pressure value linearly increases or linearly reduce, if then according to the first preset rules It searches for network and stays net.
When elevator is in different height, it is detected around atmospheric pressure value can also change, in general, elevator distance The distance on ground more hyperbar value is lower, therefore when user takes elevator and goes downstairs, detected atmospheric pressure value can linearly increase Greatly, when user, which multiplies, to go upstairs by an elevator, detected atmospheric pressure value can linearly reduce.
In one embodiment, when the mobile terminal is at the uniform velocity moving condition, which is located in elevator, At the uniform velocity moving condition herein refers at the uniform velocity propradation or uniform descent state.
In one embodiment, based on the basis of previous embodiment, mobile terminal is according to itself gyroscope and gravity The detection data of sensor determines the step of whether itself is at the uniform velocity moving condition, further comprising the steps of:
Step S3011, when the acceleration that the gravity sensor detects is zero, and the movement that the gyroscope detects When direction is upward, the mobile terminal is at the uniform velocity propradation;
Step S3012, when the acceleration that the gravity sensor detects is zero, and the movement that the gyroscope detects When direction is downward, the mobile terminal is in uniform descent state.
It should be noted that although describing each step of method in the disclosure in the accompanying drawings with particular order, This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps Row, and/or a step is decomposed into execution of multiple steps etc..In addition, being also easy to understand, these steps be can be Such as it is either synchronously or asynchronously executed in multiple module/process/threads.
Further, in this example embodiment, the device that a kind of mobile terminal stays net is additionally provided.With reference to institute in Fig. 4 Show, device 400 may include state detection module 401 and judgment module 402.Wherein:
State detection module 401, it is true according to the detection data of itself gyroscope and gravity sensor for mobile terminal It is fixed itself whether to be at the uniform velocity moving condition, if the baroceptor for then triggering itself detects the mobile terminal present position Atmospheric pressure value;
Judgment module 402, judge the atmospheric pressure value detected whether linear change, if then according to the first preset rules It searches for network and stays net.
In one embodiment, the judgment module 402 further includes the first module in net and the second module in net.
First module in net, for searching for network according to the first preset rules and staying net, first preset rules To search for periphery available cell, net is successively stayed toward low priority from high according to each cell first network index;
First network index C2=(the S/L)/N;
Wherein, S indicates that the radius of society of cell, L indicate that the mobile terminal of cell arrives the distance of base station, and N indicates current small Number in network users in area.
Second module in net, if being not at the uniform velocity moving condition for the mobile terminal, and the atmospheric pressure value is non- When linear change, network is searched for according to the second preset rules and stays net.
In one embodiment, second preset rules are search periphery available cell, according to each the second network of cell Index successively stays net toward low priority from high;
Second network index C1=(1/L) × T × (the 1/A)/N;
Wherein, L indicates the mobile terminal of cell to the distance of base station, the theoretical throughput of T expression cell, A expression cell Telephone traffic, N indicates number in network users in current cell.
In one embodiment, the state detection module 401, be also used to judge the atmospheric pressure value whether linearly increase or It is linear to reduce, if then searching for network according to the first preset rules and staying net.
In one embodiment, the state detection module 401 further includes first state detection sub-module and the second state Detection sub-module.
Wherein, the first state detection sub-module, the acceleration for detecting when the gravity sensor is zero, and When the moving direction that the gyroscope detects is upward, the mobile terminal is at the uniform velocity propradation.
The second state-detection submodule, the acceleration for detecting when the gravity sensor is zero, and described When the moving direction that gyroscope detects is downward, the mobile terminal is in uniform descent state.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.As module or list The component of member display may or may not be physical unit, it can and it is in one place, or may be distributed over In multiple network units.It can select some or all of the modules therein according to the actual needs to realize the open scheme of wood Purpose.Those of ordinary skill in the art can understand and implement without creative efforts.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, meter is stored thereon with Institute in any one above-mentioned embodiment may be implemented when for example, at least a processor executes in calculation machine program, the computer program State the step of a kind of mobile terminal stays the method for net.In some possible embodiments, various aspects of the invention can be with It is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal device Program code is used to that the terminal device to be made to execute a kind of above-mentioned mobile terminal of this specification to stay described in the method part of net The step of various illustrative embodiments according to the present invention.
Refering to what is shown in Fig. 5, describing the program product for realizing the above method of embodiment according to the present invention 300, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on mobile phone.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appoints What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its It is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In an exemplary embodiment of the disclosure, a kind of mobile terminal is also provided, which may include processor, And the memory of the executable instruction for storing the processor.Wherein, the processor is configured to via described in execution Executable instruction executes the step of a kind of mobile terminal described in any one above-mentioned embodiment stays the method for net.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of method that mobile terminal stays net, which is characterized in that this method comprises:
Mobile terminal determines whether itself is according to the gyroscope of itself and the detection data of gravity sensor and at the uniform velocity moves shape State, if the baroceptor for then triggering itself detects the atmospheric pressure value of the mobile terminal present position;
Judge the atmospheric pressure value that detects whether linear change, if then searching for network according to the first preset rules and staying net.
2. method according to claim 1, which is characterized in that first preset rules are search periphery available cell, are pressed Net is successively stayed toward low priority from high according to each cell first network index;
First network index C2=(the S/L)/N;
Wherein, S indicates the radius of society of cell, and L indicates that the mobile terminal of cell arrives the distance of base station, in the current cell of N expression Number in network users.
3. method according to claim 2, which is characterized in that this method further include:
It is if the mobile terminal is not at the uniform velocity moving condition, and when the atmospheric pressure value nonlinear change, then default according to second Rule search network simultaneously stays net.
4. method according to claim 3, which is characterized in that second preset rules are search periphery available cell, are pressed Net is successively stayed toward low priority from high according to each cell the second network index;
Second network index C1=(1/L) × T × (the 1/A)/N;
Wherein, L indicates the mobile terminal of cell to the distance of base station, if T indicates that the theoretical throughput of cell, A indicate cell Business amount, N indicate number in network users in current cell.
5. the method according to claim 1~one of 4, which is characterized in that the at the uniform velocity moving condition includes at the uniform velocity rising shape State or uniform descent state.
6. method according to claim 5, which is characterized in that judge the atmospheric pressure value detected whether linear change, if It is then to search for network and the step of in net according to the first preset rules, comprising:
Judge whether the atmospheric pressure value linearly increases or linearly reduce, if then searching for network according to the first preset rules and staying Net.
7. method according to claim 6, which is characterized in that when the mobile terminal is at the uniform velocity moving condition, the shifting Dynamic terminal is located in elevator.
8. method according to claim 5, which is characterized in that mobile terminal is according to itself gyroscope and gravity sensor Detection data determines the step of whether itself is at the uniform velocity moving condition, comprising:
When the acceleration that the gravity sensor detects is zero, and when the moving direction that detects of the gyroscope is upward, The mobile terminal is at the uniform velocity propradation;
When the acceleration that the gravity sensor detects is zero, and when the moving direction that detects of the gyroscope is downward, The mobile terminal is in uniform descent state.
9. a kind of mobile terminal characterized by comprising
Processor;
Memory is stored with the computer program that can be run on a processor on a memory;
Wherein, realize that any one of claim 1~8 mobile terminal stays net when the processor executes the computer program Method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the method that the mobile terminal as described in any one of claim 1~8 stays net when the computer is executed by processor The step of.
CN201910147311.3A 2019-02-27 2019-02-27 Mobile terminal network-residing method, mobile terminal and storage medium Active CN109922515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147311.3A CN109922515B (en) 2019-02-27 2019-02-27 Mobile terminal network-residing method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147311.3A CN109922515B (en) 2019-02-27 2019-02-27 Mobile terminal network-residing method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109922515A true CN109922515A (en) 2019-06-21
CN109922515B CN109922515B (en) 2022-03-18

Family

ID=66962617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147311.3A Active CN109922515B (en) 2019-02-27 2019-02-27 Mobile terminal network-residing method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109922515B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826324A (en) * 2014-03-18 2014-05-28 江苏智优信息技术有限公司 System and method for interacting information based on Bluetooth capturing mobile intelligent terminal
CN105681585A (en) * 2016-03-22 2016-06-15 努比亚技术有限公司 Web searching method, and terminal
CN107182109A (en) * 2017-07-17 2017-09-19 努比亚技术有限公司 A kind of mobile network's connection register method, device and computer-readable recording medium
CN108563739A (en) * 2018-04-11 2018-09-21 平安科技(深圳)有限公司 Weather data acquisition methods and device, computer installation and readable storage medium storing program for executing
US20180350144A1 (en) * 2018-07-27 2018-12-06 Yogesh Rathod Generating, recording, simulating, displaying and sharing user related real world activities, actions, events, participations, transactions, status, experience, expressions, scenes, sharing, interactions with entities and associated plurality types of data in virtual world

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826324A (en) * 2014-03-18 2014-05-28 江苏智优信息技术有限公司 System and method for interacting information based on Bluetooth capturing mobile intelligent terminal
CN105681585A (en) * 2016-03-22 2016-06-15 努比亚技术有限公司 Web searching method, and terminal
CN107182109A (en) * 2017-07-17 2017-09-19 努比亚技术有限公司 A kind of mobile network's connection register method, device and computer-readable recording medium
CN108563739A (en) * 2018-04-11 2018-09-21 平安科技(深圳)有限公司 Weather data acquisition methods and device, computer installation and readable storage medium storing program for executing
US20180350144A1 (en) * 2018-07-27 2018-12-06 Yogesh Rathod Generating, recording, simulating, displaying and sharing user related real world activities, actions, events, participations, transactions, status, experience, expressions, scenes, sharing, interactions with entities and associated plurality types of data in virtual world

Also Published As

Publication number Publication date
CN109922515B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN109831586A (en) A kind of user interface switching display methods, mobile terminal and storage medium
CN107145257A (en) A kind of touch threshold method to set up, equipment and storage medium
CN109701266A (en) Game vibrating method, device, mobile terminal and computer readable storage medium
CN109697010A (en) A kind of suspended window position control method, terminal and computer readable storage medium
CN109270986A (en) Flexible screen terminal and its display methods and computer readable storage medium
CN108319421A (en) A kind of display triggering method and mobile terminal
CN108521658A (en) Reduce interference method, mobile terminal and computer readable storage medium
CN109471571A (en) Display methods, mobile terminal and the computer readable storage medium of suspension control
CN110134301A (en) A kind of application function operating method, terminal and computer readable storage medium
CN109995936A (en) Screen lighting method, mobile terminal and storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN109726179A (en) Screenshot picture processing method, storage medium and mobile terminal
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN109445547A (en) A kind of wearable device heat dissipating method, wearable device and readable storage medium storing program for executing
CN108563388A (en) Screen operating method, mobile terminal and computer readable storage medium
CN109885224A (en) Interface of input method display methods, storage medium and mobile terminal
CN109976641A (en) Operating method, terminal and computer readable storage medium based on screenshot picture
CN109271073A (en) Desktop dynamic icon implementation method, terminal and computer-readable medium
CN109189515A (en) A kind of application starting method, terminal and computer readable storage medium
CN107943406A (en) A kind of touch-screen touch point determines method and terminal
CN109885237A (en) Prevent fingerprint method, mobile terminal and storage medium that accidentally touching unlocks
CN109800097A (en) Notification message based reminding method, storage medium and mobile terminal
CN110209434A (en) A kind of EMS memory management process, device and computer readable storage medium
CN109889665A (en) A kind of volume adjusting method, mobile terminal and storage medium
CN109710207A (en) Method, dual-screen mobile terminal and the storage medium of dual-screen mobile terminal preview picture

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