CN104981030B - network connection control method and device - Google Patents

network connection control method and device Download PDF

Info

Publication number
CN104981030B
CN104981030B CN201510408833.6A CN201510408833A CN104981030B CN 104981030 B CN104981030 B CN 104981030B CN 201510408833 A CN201510408833 A CN 201510408833A CN 104981030 B CN104981030 B CN 104981030B
Authority
CN
China
Prior art keywords
data network
network
mobile
mobile data
radio
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.)
Active
Application number
CN201510408833.6A
Other languages
Chinese (zh)
Other versions
CN104981030A (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 CN201510408833.6A priority Critical patent/CN104981030B/en
Publication of CN104981030A publication Critical patent/CN104981030A/en
Application granted granted Critical
Publication of CN104981030B publication Critical patent/CN104981030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

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

Abstract

Embodiments provide a kind of network connection control method, be applied to mobile terminal, set up mobile data network and connect;Whether detecting exists radio data network;Set up radio data network to connect;The instruction closing mobile data network is not sent in the range of default time threshold values, so that mobile data network and radio data network deposit.Present invention also offers a kind of network and connect control device.The network connection control method that the present invention provides, ensureing in the case that radio data network is normally set up, mobile data network keeps unimpeded, it is achieved radio data network and mobile data network are simultaneously deposited, reach Double Data network the effect deposited, improve data transmission efficiency.

Description

Network connection control method and device
Technical field
The present invention relates to the communications field, particularly relate to network connection control method and device.
Background technology
Mobile data services and wireless data service are the main sides that current intelligent terminal user is surfed the Net Formula, and, terminal in the market all supports mobile data services and wireless data service mostly.When User out of doors when, main use mobile data services to realize the use demands such as online.When user is in indoor When, then many employing wireless data services realize the use demands such as online.Existing intelligent terminal with movement After data channel establishes connection, after now user selects to set up with wireless data channel, then terminal meeting Automatically the connection with mobile data channel is disconnected, it is impossible to realize that altitude information transmits.
Content of the invention
Present invention is primarily targeted at a kind of network connection control method of proposition and device, so that intelligence is eventually End can be set up with mobile data network and radio data network simultaneously be connected.
For achieving the above object, embodiments provide a kind of network connection control method, be applied to Mobile terminal, sets up mobile data network and connects;Whether detecting exists radio data network;Set up wireless Data network connects;The instruction closing mobile data network is not sent in the range of default time threshold values, So that mobile data network and radio data network deposit.
Preferably, in the range of default time threshold values, do not send the instruction of closedown mobile data network, with Make mobile data network and radio data network and deposit step and farther include: a time threshold values is set, when Between threshold values represent that to be connected to radio data network from mobile terminal many long afterwards, close mobile data network;Detect Survey and whether be connected with radio data network foundation;When detect with radio data network set up be connected when, Then timing is carried out to the Connection Time of radio data network;When the Connection Time of radio data network is more than Between threshold values when, then disconnect mobile data network.
Preferably, when the Connection Time of radio data network is less than time threshold values, mobile data network is detected Whether the data link of network is all discharged;When the data link of mobile data network is all discharged, Then disconnect mobile data network.
Preferably, connected wireless if detecting, then started timing wireless connection time step and enter One step includes,
When detect connected upper wireless when, ccf layer start timer, timer is used for recording nothing The line Connection Time.
Preferably, mobile data network is LTE data network, disconnects mobile data network step further Including: send request to the modem of mobile terminal, to close mobile data network.
Preferably, send request to the modem of mobile terminal, betide ccf layer.
Preferably, mobile data network is 2G or 3G data network, disconnects mobile data network step and enters One step includes: sends to the modem of mobile terminal and asks, to close mobile data network, wherein, Modem according to the request receiving to base station send the first message request;Modem is according to base The feedback message stood disconnects mobile data network.
Present invention also offers a kind of network and connect control device, network connects control device and is connected to mobile Data network, the first link block, it is used for setting up mobile data network and connect;Detecting module, is used for detecing Survey and whether there is radio data network;Second link block, is used for setting up radio data network and connects;Control Molding block, for not sending the instruction closing mobile data network in the range of default time threshold values, with Make mobile data network and radio data network and deposit.
Preferably, device also includes: logging modle, is used for setting time threshold values, and time threshold values represents even Connect the many closedown mobile data networks long afterwards of radio data network;Timing module, for when detecting module detecting To when having connected upper radio data network, timing is carried out to the Connection Time of radio data network;Control Module, for when the radio data network Connection Time is more than time threshold values, disconnecting mobile data network.
Preferably, control module is additionally operable to, if the radio data network Connection Time is less than time threshold values, Whether the data link of detecting mobile data network is all released;If the data link of mobile data network It is all released, then disconnect mobile data network.
The embodiment of the present invention utilizes setting to represent many closedown long afterwards of mobile terminal connection radio data network and moves The time threshold values of data network, starts to radio data network after radio data network on connecting simultaneously Connection Time carries out timing, when the Connection Time of radio data network is less than time threshold values, at time valve The connection status of mobile terminal and mobile data network and radio data network is kept in the period of value, and then It is transmitted becoming dual-channel transmission from original single channel, improve efficiency of transmission.
Brief description
Fig. 1 is the hardware architecture diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet that inventive network connects control method first embodiment;
Fig. 4 is the flow chart that inventive network connects S340 step in control method first embodiment
Fig. 5 is the schematic flow sheet of the S340 that inventive network connects in control method the second embodiment;
Fig. 6 is the schematic flow sheet that inventive network connects control method the 3rd embodiment;
Fig. 7 is the schematic flow sheet in a concrete scene;
Fig. 8 is the high-level schematic functional block diagram that inventive network connects control device first embodiment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further Explanation.
Detailed description of the invention
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit Determine the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description In, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to this The explanation of invention, itself does not has specific meaning.Therefore, " module " and " parts " can mixedly make With.
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include (individual digital helps for such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA Reason), PAD (panel computer), PMP (portable media player), the mobile end of guider etc. The fixed terminal of end and such as numeral TV, desktop computer etc..Hereinafter it is assumed that terminal is mobile whole End.However, it will be understood by those skilled in the art that, in addition to being used in particular for the element of mobile purpose, Construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
The 120th, mobile terminal 100 can include wireless communication unit the 110th, A/V (audio/video) input block The 170th, the 130th, user input unit sense unit the 140th, output unit the 150th, memory the 160th, interface unit Controller 180 and power subsystem 190 etc..Fig. 1 shows the mobile terminal with various assembly, but should It is understood by, it is not required that implement all assemblies illustrating.Can alternatively implement more or less of group Part.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, its allow mobile terminal 100 with wireless Radio communication between communicator or network.For example, wireless communication unit can include broadcast reception Unit the 111st, mobile comm unit the 112nd, wireless interconnected net unit the 113rd, short-range communication unit 114 and position letter At least one in interest statement unit 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receive broadcast singal and/ Or broadcast related information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast control services Device can be generate and send the server of broadcast singal and/or broadcast related information or reception before generate Broadcast singal and/or broadcast related information and the server sending it to terminal.Broadcast singal is permissible Including TV broadcast singal, radio signals, data broadcasting signal etc..And, broadcast singal can To farther include the broadcast singal combining with TV or radio signals.Broadcast related information is also permissible There is provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, and for example, it can be wide with digital multimedia Broadcast electronic program guides (EPG), the electronic service guidebooks of digital video broadcast-handheld (DVB-H) of (DMB) Etc. (ESG) form and exist.Broadcast reception module 111 can be by using various types of broadcast dress Put receipt signal broadcast.Especially, broadcast reception module 111 can by use such as multimedia broadcasting- Ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), Forward link media (MediaFLO@) data broadcaster, received terrestrial digital broadcasting integrated service (ISDB-T) Etc. digital broadcast apparatus receive digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for The various broadcaster of broadcast singal and above-mentioned digital broadcast apparatus.Receive via broadcast reception module 111 Broadcast singal and/or broadcast related information can be stored in memory 160 (or other type of storage is situated between Matter) in.
Mobile communication module 112 send radio signals to base station (for example, access point, node B etc.), In exterior terminal and server at least one and/or receive from it radio signal.Such radio Signal can include voice call signal, video calling signal or according to text and/or Multimedia Message The various types of data sending and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internal or It is externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (nothing Line LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (at a high speed Downlink packets accesses) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology Including bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTM Etc..
Positional information module 115 is the module of positional information for checking or obtaining mobile terminal.Position is believed The typical case of breath module is GPS (global pick device).According to current technology, GPS module 115 calculates From the range information of three or more satellites and correct time information and for the Information application calculating Triangulation, thus according to longitude, latitude and highly accurately calculating three-dimensional current location information.When Before, the method for calculating position and temporal information uses three satellites and by using other one Satellite corrects the error of the position calculating and temporal information.Additionally, GPS module 115 can be by real time Ground Continuous plus current location information calculates velocity information.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include phase Machine 121 and microphone 122, camera 121 in Video Capture pattern or image capture mode by image capture Static images or the view data of video that device obtains are processed.Picture frame after process can show On display unit 151.Picture frame after processing through camera 121 can be stored in memory 160, and (or other deposit Storage media) in or be transmitted via wireless communication unit 110, can provide according to the construction of mobile terminal Two or more cameras 121.Microphone 122 can be in telephone calling model, logging mode, speech recognition Pattern etc. operational mode receives sound (voice data) via microphone, and can be by such sound It is processed as voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model For can be sent to the form output of mobile communication base station via mobile comm unit 112.Microphone 122 is permissible Implement various types of noise and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and transmission audio signal During produce noise or interference.
User input unit 130 can generate key input data to control movement according to the order that user inputs The various operations of terminal.User input unit 130 allows user to input various types of information, and permissible Including keyboard, metal dome, touch pad (for example, detection due to touched and cause resistance, pressure, electricity The sensitive component of change holding etc.), roller, rocking bar etc..Especially, when touch pad as a layer When being superimposed upon on display unit 151, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 open or Closed mode), the position of mobile terminal 100, user is for the contact (that is, touch input) of mobile terminal 100 Presence or absence, the orientation of mobile terminal 100, the acceleration of mobile terminal 100 or speed is moved and direction etc., And generate the order being used for controlling the operation of mobile terminal 100 or signal.For example, when mobile terminal 100 When being embodied as sliding-type mobile phone, it is to engage on or off that sensing unit 140 can sense this sliding-type number Close.In addition, sensing unit 140 can detect whether power subsystem 190 provides electric power or interface unit 170 Whether couple with external device (ED).It is tactile that sensing unit 140 can include that proximity transducer 1410 will combine below Touch screen to be described this.
Interface unit 170 is used as at least one external device (ED) and is connected connecing of can passing through with mobile terminal 100 Mouthful.For example, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery Charger) port, wired or wireless FPDP, memory card port, for connect there is identification module The port of device, audio frequency input/output (I/O) port, video i/o port, ear port etc..Identify mould Block can be that storage is for verifying that user uses the various information of mobile terminal 100 and can include user Identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc..In addition, The device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, knows Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 is permissible For receiving from the input (for example, data message, electric power etc.) of external device (ED) and defeated by receive Enter to be transferred to the one or more element in mobile terminal 100 or may be used in mobile terminal and outside Data are transmitted between device.
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing to lead to Crossing it provides the path of mobile terminal 100 by electric power from base or can serve as allowing from base input Various command signals be transferred to the path of mobile terminal by it.Various command signals from base input Or electric power may serve as identifying whether mobile terminal is accurately fitted within the signal on base.Output is single Unit 150 be configured to vision, audio frequency and/or tactile manner provide output signal (for example, audio signal, Vision signal, alarm signal, vibration signal etc.).The 151st, output unit 150 can include display unit Audio output unit the 152nd, alarm unit 153 etc..
Display unit 151 may be displayed on the information processing in mobile terminal 100.For example, mobile terminal is worked as 100 when being in telephone calling model, display unit 151 can show and call or other communicate (for example, civilian This information receiving and transmitting, multimedia file download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 Can show the image of capture and/or the image of reception, illustrate video or image and correlation function UI or GUI etc..
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen when, aobvious Show that unit 151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexibility are aobvious Show at least one in device, three-dimensional (3D) display etc..Some in these displays may be constructed such that Transparence is to allow user to watch from outside, and this is properly termed as transparent display, typical transparent display Can for example, TOLED (transparent organic light emitting diode) display etc..According to the specific enforcement wanted Mode, mobile terminal 100 can include two or more display units (or other display devices), for example, Mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can For detecting touch input pressure and touch input position and touch input area.
Audio output unit 152 can be in call signal at mobile terminal and receive pattern, call mode, note When under the isotypes such as record pattern, speech recognition mode, broadcast reception mode, wireless communication unit 110 is connect Receive or in memory 160 storage voice data transducing audio signal and be output as sound.And And, the related audio frequency of the specific function that audio output unit 152 can provide to mobile terminal 100 performs is defeated Go out (for example, call signal receives sound, message sink sound etc.).Audio output unit 152 can wrap Include sound pick-up, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typically Event can include calling reception, message sink, key signals input, touch input etc..Except audio frequency Or outside video frequency output, alarm unit 153 can provide in a different manner and export sending out with notification event Raw.For example, alarm unit 153 can with vibration form provide output, when receive calling, message or During some other entrance communication (incoming communication), alarm unit 153 can provide sense of touch defeated Go out (that is, vibration) to notify to user.By providing such sense of touch output, even if in the shifting of user When mobile phone is in the pocket of user, user also can recognize that the generation of various event.Alarm unit The output of 153 generations that notification event also can be provided via display unit 151 or audio output unit 152.
Memory 160 can store the process being performed by controller 180 and the software program etc. of control operation Deng, or can temporarily store oneself through export or will export data (for example, telephone directory, message, Still image, video etc.).And, memory 160 can store with regard to when touch is applied to touch-screen The vibration of the various modes of output and the data of audio signal.
Memory 160 can include the storage medium of at least one type, described storage medium include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only storage (ROM), electrically erasable Read-only storage (EEPROM), programmable read only memory (PROM), magnetic storage, disk, light Dish etc..And, mobile terminal 100 can be connected the storage function performing memory 160 with by network Network storage device cooperation.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 performs and voice The related control of call, data communication, video calling etc. and process.In addition, controller 180 can wrap Including the multimedia unit 181 for reproducing (or playback) multi-medium data, multimedia unit 181 can construct In controller 180, or it is so structured that separate with controller 180.Controller 180 can perform pattern to be known Other places are managed, and are identified as character or figure so that the handwriting input performing on the touchscreen or picture are drawn input Picture.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides behaviour Make the suitable electric power needed for each element and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any group The computer-readable medium closing is implemented.Implementing for hardware, embodiment described herein can pass through Use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, control It device, microcontroller, microprocessor, is designed to perform in the electronic unit of function described herein extremely Few one is implemented, and in some cases, such embodiment can be implemented in controller 180.Right Implementing in software, the embodiment of such as process or function can perform at least one function or behaviour with permission The single software unit made is implemented.Software code can be by writing with any suitable programming language Software application (or program) is implemented, and software code can be stored in memory 160 and by controlling Device 180 performs.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe Various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. In slide type mobile terminal as example.Therefore, the present invention can be applied to any kind of mobile whole End, and it is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that and utilizes via frame or packet transmission data Such as wired and radio communication device and satellite-based communicator operate.
Referring now to Fig. 2, the communicator being wherein operable to according to the mobile terminal of the present invention is described.
Such communicator can use different air interfaces and/or physical layer.For example, filled by communication The air interface putting use includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) move lead to universal mobile communications device (UMTS) (especially, Long Term Evolution (LTE)), the whole world T unit (GSM) etc..As non-limiting example, explained below relates to cdma communication device, but It is that such teaching is equally applicable to other type of device.
With reference to Fig. 2, cdma wireless communication device can include multiple mobile terminal the 100th, multiple base stations (BS) the 270th, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to Form interface with Public Switched Telephony Network (PSTN) 290.MSC280 be also structured to can via return The BSC275 that journey circuit is couple to base station 270 forms interface.If the interface that back haul link can be known according to Ganji In any one construct, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or sensing certain party To antenna cover each subregion radially away from BS270.Or, each subregion can be by for dividing Two or more antennas that collection receives cover.Each BS270 may be constructed such that support multiple frequency distribution, And the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 also can be referred to as base station The sub-device of transceiver (BTS) or other equivalent terms.In this case, term " base station " can be used In broadly representing single BSC275 and at least one BS270.Base station also can be referred to as " cellular station ". Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the shifting operating in device by broadcsting transmitter (BT) 295 Dynamic terminal 100.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences reception The broadcast singal being sent by BT295.In fig. 2 it is shown that several global pick devices (GPS) satellite 300. Satellite 300 helps at least one in the multiple mobile terminal 100 of positioning.
In fig. 2, multiple satellite 300 is depicted, but it is understood that, it is possible to use any number Satellite obtain useful positioning information.GPS module 115 as shown in Figure 1 is generally configured to and satellite 300 coordinate to obtain the positioning information wanted.Substitute GPS tracking technique or outside GPS tracking technique, Other technology of the position that can follow the tracks of mobile terminal can be used.In addition, at least one gps satellite 300 Can optionally or additionally process satellite dmb transmission.
As a typical operation of radio communication device, BS270 receives from various mobile terminals 100 Reverse link signal.Mobile terminal 100 generally participates in call, information receiving and transmitting and other type of communication.Special Each reverse link signal determining base station 270 reception is processed in specific BS270.The data obtaining It is forwarded to the BSC275 being related to.BSC provides the call soft handover that resource is distributed and included between BS270 The mobile management function of the coordination of process.The data receiving also are routed to MSC280 by BSC275, its There is provided for the extra route service with PSTN290 formation interface.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 So that forward link signals to be sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration, the structure of communicator, each is real to propose the inventive method Execute example.
As it is shown on figure 3, first embodiment of the invention provides a kind of network connection control method, the method Being applied in mobile terminal, the UI Preferences of this mobile terminal has mobile data network connecting valve, Radio data network switchs, and user is by triggering mobile data network connecting valve or radio data network Switch can make mobile terminal be connected with mobile data network or radio data network foundation.Wherein, move What dynamic data network represented is the data network of card, and it includes the mobile data network of existing all standards, For example: 2G, 3G and LTE etc.;The network of radio data network covering scope current focus class, including WIFI and wlan etc..The method comprising the steps of:
S310. set up mobile data network to connect.
Specifically, the user of mobile device carries out file download at needs mobile terminal or watches When Internet videos etc. need the business that data are transmitted, user triggers mobile number by the touch-screen of mobile terminal It according to network switching, is connected so that mobile terminal is set up with mobile data network.In the present embodiment, move Dynamic data network is LTE data network.In other embodiments, mobile data network can for 2G, The data networks such as 3G.
S320. detect and whether there is radio data network.
When user is in indoor, when if desired carrying out file download or viewing Internet video, user passes through The touch-screen of mobile terminal triggers radio data network switch, makes the wireless data network to surrounding for the mobile terminal Network scans for.In the present embodiment, wireless data networking is wifi.Concrete implementation method can be led to Cross existing radio data network searching method to complete, do not limit at this.When detect exist wireless During data network, enter step S330.
S330. set up radio data network to connect.
When mobile scanning terminal is to when existing radio data network, user is chosen by mobile terminal touch screen Corresponding radio data network, makes mobile terminal set up with radio data network and is connected.
S340. in the range of default time threshold values, the instruction closing mobile data network is not sent, so that moving Dynamic data network and radio data network are simultaneously deposited.
After mobile terminal is set up with radio data network and mobile data network simultaneously and is connected, mobile terminal System in a time threshold range, can not send to the modem of mobile terminal and close mobile data Instruction, thus can ensure that in the case that radio data network is normally set up, and mobile data network is protected Hold unimpeded, it is achieved radio data network and mobile data network are simultaneously deposited, reached Double Data network and deposited Effect, improves data transmission efficiency.
As shown in Figure 4, this step specifically includes:
S341., time threshold values is set.
Time threshold values represents that mobile terminal connects many closedown long afterwards of radio data network and moves data channel.When After mobile terminal receives setting instruction, mobile terminal instructs according to this setting and completes corresponding time threshold values Setting.Wherein, the network of radio data network covering scope current focus class, including WIFI and wlan Deng.
In the present embodiment, instruction is set and comes from the technical staff before dispatching from the factory, specifically, work as movement After terminal is connected to computer, mobile terminal is sent with setprop under adb shell pattern and sets by technical staff Put instruction, the configuration to mobile terminal time threshold values, time threshold values can be 5 minutes, 10 minutes or Other bigger numerical value.In other embodiments, the user that instruction can come from this mobile terminal is set Specifically, interface, Yong Huke can be set at the UI Preferences of mobile terminal corresponding time threshold values Instructing to send corresponding setting by the input equipment of mobile terminal, this input unit can be aobvious for touching Display screen or button, the mode of input can be for selecting the corresponding time by way of option, it is also possible to For being manually entered the mode of numerical value, input the concrete time.
S342. detect and whether be connected with radio data network foundation.
Mobile terminal detects when being connected with radio data network foundation, enters step S343.
S343. timing is carried out to the Connection Time of radio data network.
Specifically, the framework ccf layer at android can start a timer, and this timer exists Be activated after detecting the upper radio data network of connection, and start to record be connected to radio data network when Between.It is of course also possible to complete the Connection Time to radio data network in other way to carry out record.
S344. judge whether the Connection Time of radio data network is more than time threshold values.
By the Connection Time of radio data network is monitored in real time, and carry out in real time with time threshold values Comparison, when the Connection Time of radio data network is more than time threshold values, enters step S345;When wireless When the Connection Time of data network is less than time threshold values, return step S343, due to now mobile terminal and The all built vertical connection of mobile data network and radio data network, therefore, when the company of radio data network When the time that connects is less than time threshold values, mobile data network and radio data network are practically at and deposit state, Double Data network the effect deposited are reached.
S345. mobile data network is disconnected.
When the radio data network Connection Time is more than time threshold values, user can be notified the need of prolongation Time threshold values, so that mobile data network continues to keep connection status, it is also possible to when radio data network connects When the time that connects is more than time threshold values, directly disconnected mobile data network by mobile terminal system.
Network connection control method by described in first embodiment: by arranging time threshold values, and right The radio data network Connection Time carries out recording comparison, is detecting connection nothing to extend mobile terminal system During line data network, mobile data network is turned off, it is achieved that reached dual data channels the effect deposited Really, efficiency of transmission is improved.
On the basis of first embodiment, as it is shown in figure 5, give the second embodiment, as it is shown in figure 5, Wherein S341`, S342`, S343`, S344` and S345` respectively with the S341 in first embodiment, S342, S343, S344 and S345 are identical, and difference is, little when the Connection Time of radio data network When time threshold values, enter step S346.
Whether the data link S346. detecting mobile data network is completely released.
When the data link of mobile data network is not yet completely released, then enter step S343`;Work as shifting When the data link of dynamic data network is completely released, then enter step S345`.
For example, due to the radio data network Connection Time less than time threshold values when, wireless data network Network and mobile data network are simultaneously deposited, if in the range of time threshold values, user is carrying out file download, that , each data network existing multithreading and downloads, each thread is that a TCP connects, phase When a then strip data channel, each thread of download is responsible for the data block of oneself, when responsible After download block completes, this connection can be fallen clearly, automatically when mobile terminal identifies mobile data network In after all of TCP connects and is all released, enter S345`, disconnect mobile data channel.At other In embodiment, if after all TCP connection detecting in radio data network is all released, then Then disconnection of wireless data network.
The network connection control method being provided by the second embodiment: in the range of time threshold values, by knowing The working condition of not corresponding data network, opens corresponding data network from dynamic circuit breaker, can save movement Power consumption of terminal, serves the effect of power saving, it is also possible to the Internet resources of timely release busy.
Based on first and second embodiment, when mobile data network is 2G or 3G, disconnect mobile data network The step of network includes: send request to the modem of mobile terminal, to close mobile data channel, Wherein, modem according to the request receiving to base station send the first message request;Modem Feedback message according to base station disconnects mobile data channel.
Specifically, as shown in Figure 6, square frame illustrates the aerial friendship of concrete disconnection mobile data network Mutual information, framework ccf layer can send deactive to the Modem modem of mobile terminal The message of data call, message request (the deactive PDP that then data service can be deactivated by Modem Context request) it is sent to corresponding base station, carry out data service and deactivate negotiation, when base station is responded After deactive PDP context request message, mobile terminal disconnects mobile data network.
When mobile data network is 4G/LTE, the step disconnecting mobile data network includes: whole to moving The modem of end sends request, and to close mobile data network, wherein, this request is to betide Framework ccf layer.
Specifically, 4G is due to the relation of default bearing, mobile terminal according to framework ccf layer to The message of the deactive data call that modem modem sends, directly closes mobile data services simultaneously By service request message signals base.
As it is shown in fig. 7, in order to clearly illustrate the present embodiment, be illustrated with a concrete scene, its In:
S710. set up LTE data network to connect.
Specifically, the user of mobile device carries out file download at needs mobile terminal or watches When Internet videos etc. need the business that data are transmitted, user triggers LTE number by the touch-screen of mobile terminal It according to network switching, is connected so that mobile terminal is set up with LTE data network.
S720. detect and whether there is wifi data network.
When user is in indoor, when if desired carrying out file download or viewing Internet video, user passes through The touch-screen of mobile terminal triggers wifi data network switch, makes the wifi data network to surrounding for the mobile terminal Network scans for.
S730. set up wifi data network to connect.
When mobile scanning terminal is to when existing wifi data network, user is chosen by mobile terminal touch screen Corresponding wifi data network, makes mobile terminal set up with wifi data network and is connected.
S740. in the range of default time threshold values, do not send the instruction closing LTE data network, so that LTE data network and wifi data network are simultaneously deposited.
After mobile terminal is set up with wifi data network and LTE data network simultaneously and is connected, mobile terminal System in a time threshold range, can not send to the modem of mobile terminal and close LTE data Instruction, thus can ensure that in the case that wifi data network is normally set up, and LTE data network is protected Hold unimpeded, it is achieved wifi data network and LTE data network are simultaneously deposited, reached Double Data network and deposited Effect, improves data transmission efficiency.
Other steps and beneficial effect are referred to the relevant portion of first and second embodiment, do not describe in detail herein.
As shown in Figure 8, first embodiment of the invention provides a kind of network connection control device, comprising: First link block the 101st, detecting module the 102nd, the second link block the 103rd, control module the 104th, record Module 105 and timing module 106.
First link block 101, is used for setting up mobile data network and connects.
Specifically, the user of mobile device carries out file download at needs mobile terminal or watches When Internet videos etc. need the business that data are transmitted, user triggers mobile number by the touch-screen of mobile terminal It according to network switching, is connected so that mobile terminal is set up with mobile data network.In the present embodiment, move Dynamic data network is LTE data network.In other embodiments, mobile data network can for 2G, The data networks such as 3G.
Whether detecting module 102, exist radio data network for detecting.
When user is in indoor, when if desired carrying out file download or viewing Internet video, user passes through The touch-screen of mobile terminal triggers radio data network switch, makes the wireless data network to surrounding for the mobile terminal Network scans for.In the present embodiment, wireless data networking is wifi.Concrete implementation method can be led to Cross existing radio data network searching method to complete, do not limit at this.
Second link block 103, for when detecting module 102 detects and has radio data network, builds Vertical radio data network connects.
When mobile scanning terminal is to when existing radio data network, user is chosen by mobile terminal touch screen Corresponding radio data network, makes mobile terminal set up with radio data network and is connected.
Control module 104, closes mobile data network for not sending in the range of default time threshold values Instruction, so that mobile data network and radio data network deposit.
After mobile terminal is set up with radio data network and mobile data network simultaneously and is connected, mobile terminal System in a time threshold range, can not send to the modem of mobile terminal and close mobile data Instruction, thus can ensure that in the case that radio data network is normally set up, and mobile data network is protected Hold unimpeded, it is achieved radio data network and mobile data network are simultaneously deposited, reached Double Data network and deposited Effect, improves data transmission efficiency.
Logging modle 105, is used for arranging time threshold values.
Time threshold values represents that mobile terminal connects many closedown long afterwards of radio data network and moves data channel.When After mobile terminal receives setting instruction, mobile terminal instructs according to this setting and completes corresponding time threshold values Setting.Wherein, the network of radio data network covering scope current focus class, including WIFI and wlan Deng.
In the present embodiment, instruction is set and comes from the technical staff before dispatching from the factory, specifically, work as movement After terminal is connected to computer, mobile terminal is sent with setprop under adb shell pattern and sets by technical staff Put instruction, the configuration to mobile terminal time threshold values, time threshold values can be 5 minutes, 10 minutes or Other bigger numerical value.In other embodiments, the user that instruction can come from this mobile terminal is set Specifically, interface, Yong Huke can be set at the UI Preferences of mobile terminal corresponding time threshold values Instructing to send corresponding setting by the input equipment of mobile terminal, this input unit can be aobvious for touching Display screen or button, the mode of input can be for selecting the corresponding time by way of option, it is also possible to For being manually entered the mode of numerical value, input the concrete time.
Timing module 106, sets up after being connected, to nothing for the second link block 103 and radio data network The Connection Time of line data network carries out timing.
Specifically, timing module 106 is a timer, and the framework ccf layer of android can start One timer, this timer is activated after radio data network in connection detecting, and starts record It is connected to the time of radio data network.It is of course also possible to complete in other way to wireless data The Connection Time of network carries out record.
Control module 104, if be additionally operable to the wireless data channel Connection Time more than described time threshold values when, disconnected Open mobile data channel.Control module 104 is by supervising in real time to the Connection Time of radio data network Control, and carry out real-time comparison with time threshold values, it is more than time threshold values when the Connection Time of radio data network When, control module 104 disconnects mobile data network;It is less than the time when the Connection Time of radio data network During threshold values, control module 104 controls timing module 106 and continues to carry out the radio data network Connection Time Record.
Further, control module 104 is additionally operable to be more than time threshold values when the radio data network Connection Time When, can notify user the need of extend time threshold values so that mobile data network continue keep connect State, it is also possible to when the radio data network Connection Time is more than time threshold values, straight by control module 104 Connect disconnection mobile data network.
Second embodiment of the invention provides a kind of network and connects control device, comprising: logging modle is the 101st, Detecting module the 102nd, timing module the 103rd, control module the 104th, logging modle 105 and timing module 106. Wherein, difference is, control module 104 is additionally operable to be less than when the Connection Time of radio data network During time threshold values, whether the data link of detecting mobile data network is released completely.Work as mobile data network When the data link of network is not yet completely released, control module 104 controls timing module 105 and continues to nothing The Connection Time of line data network carries out record.When the data link of mobile data network is completely released, Control module 104 disconnects mobile data network.
For example, due to the radio data network Connection Time less than time threshold values when, wireless data network Network and mobile data network are simultaneously deposited, if in the range of time threshold values, user is carrying out file download, that , each data network existing multithreading and downloads, each thread is that a TCP connects, phase When a then strip data channel, each thread of download is responsible for the data block of oneself, when responsible After download block completes, this connection can be fallen clearly, automatically when mobile terminal identifies mobile data network In after all of TCP connects and is all released, disconnect mobile data channel.In other embodiments, If after all TCP connection detecting in radio data network is all released, then then disconnection of wireless number According to network.
The network that the network connection device providing based on first embodiment and the second embodiment provide connects dress Putting, when mobile data network is 2G or during 3G data network, further, control module 104 is used for Send request to the modem of mobile terminal, to close mobile data channel, wherein, modulation /demodulation Device according to the request receiving to base station send the first message request;Modem is according to the feedback of base station Message disconnects mobile data channel.Specifically, control module 104 is whole to moving at framework ccf layer The Modem modem of end sends the message of deactive data call, and then Modem can be by data The message request (deactive PDP context request) of service deactivation is sent to corresponding base station, enters Row data service deactivation is consulted, after deactive PDP context request message is responded in base station, and control Molding block 104 disconnects mobile data network.
When mobile network is for LTE data network, further, control module 104 is used for moving whole The modem of end sends request, and to close mobile data network, wherein, this request is to betide Framework ccf layer.Specifically, 4G is due to the relation of default bearing, and mobile terminal is according to framework The message of the deactive data call that ccf layer sends to modem modem, directly closes mobile Data service simultaneously passes through service request message signals base.
It should be noted that herein, term " includes ", "comprising" or its any other variant are intended to Cover comprising of nonexcludability, so that include the process of a series of key element, method, article or dress Put and not only include those key elements, but also include other key elements being not expressly set out, or also include The key element intrinsic for this process, method, article or device.In the case of there is no more restriction, The key element being limited by statement " including ... ", it is not excluded that including the process of this key element, method, thing Product or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's The part that prior art is contributed by technical scheme substantially in other words can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every Utilize the equivalent structure that description of the invention and accompanying drawing content made or equivalence flow process conversion, or directly or Connect and be used in other related technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (8)

1. a network connection control method, is applied to mobile terminal, it is characterised in that bag Include:
Set up mobile data network to connect;
Whether detecting exists radio data network;
When detecting radio data network, then set up radio data network and connect;
The instruction closing mobile data network is not sent in the range of default time threshold values, so that Mobile data network and radio data network are simultaneously deposited, wherein,
The described instruction not sending closedown mobile data network in the range of default time threshold values, So that mobile data network and radio data network deposit step and farther include:
Arranging a time threshold values, described time threshold values represents and is connected to wireless from described mobile terminal Data network is many long afterwards, closes mobile data network;
Whether detecting is connected with radio data network foundation;
When detect with radio data network set up be connected when, then to radio data network Connection Time carries out timing;
When the Connection Time of radio data network is more than described time threshold values, then disconnect described shifting Dynamic data network.
2. network connection control method as claimed in claim 1, it is characterised in that work as nothing When the Connection Time of line data network is less than described time threshold values,
Whether the data link detecting described mobile data network is all discharged;
When the data link of described mobile data network is all discharged, then disconnect described movement Data network.
3. network connection control method as claimed in claim 1 or 2, it is characterised in that If described detecting has connected wireless, then start timing wireless connection time step and enter one Step includes,
When detect connected upper wireless when, ccf layer start timer, described timer For recording the wireless connection time.
4. network connection control method as claimed in claim 1 or 2, it is characterised in that Described mobile data network is LTE data network, and described disconnection mobile data network step is entered One step includes:
Send request to the modem of described mobile terminal, to close mobile data network.
5. network connection control method as claimed in claim 4, it is characterised in that described Send request to the modem of mobile terminal, betide ccf layer.
6. network connection control method as claimed in claim 1 or 2, it is characterised in that Described mobile data network is 2G or 3G data network, and described disconnection mobile data network walks Suddenly farther include:
Send request to the modem of described mobile terminal, to close described mobile data network Network, wherein, described modem sends the first message according to the request receiving to base station please Ask;
Described modem disconnects described mobile data network according to the feedback message of base station.
7. network connects a control device, and described network connects control device and is connected to mobile Data network, it is characterised in that include:
First link block, is used for setting up mobile data network and connects;
Whether detecting module, exist radio data network for detecting;
Second link block, is used for setting up radio data network and connects;
Control module, for not sending closedown mobile data network in the range of default time threshold values The instruction of network, so that mobile data network and radio data network deposit;
Logging modle, is used for setting time threshold values, and described time threshold values represents connection wireless data Network is many closes described mobile data network long afterwards;
Timing module, for having connected upper radio data network when described detecting module detects When, timing is carried out to the Connection Time of radio data network;
Described control module, for being more than described time threshold values when the radio data network Connection Time When, disconnect described mobile data network.
8. network as claimed in claim 7 connects control device, it is characterised in that described Control module is additionally operable to, if the radio data network Connection Time is less than described time threshold values, detects Whether the data link surveying described mobile data network is all released;
If the data link of mobile data network is all released, then disconnect described mobile data network Network.
CN201510408833.6A 2015-07-10 2015-07-10 network connection control method and device Active CN104981030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510408833.6A CN104981030B (en) 2015-07-10 2015-07-10 network connection control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510408833.6A CN104981030B (en) 2015-07-10 2015-07-10 network connection control method and device

Publications (2)

Publication Number Publication Date
CN104981030A CN104981030A (en) 2015-10-14
CN104981030B true CN104981030B (en) 2016-11-09

Family

ID=54276978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510408833.6A Active CN104981030B (en) 2015-07-10 2015-07-10 network connection control method and device

Country Status (1)

Country Link
CN (1) CN104981030B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430701A (en) * 2015-10-28 2016-03-23 努比亚技术有限公司 Wireless network intelligent control method and device
CN106941705A (en) * 2016-01-04 2017-07-11 ***通信集团公司 A kind of network setting method and device
CN106162568A (en) * 2016-06-06 2016-11-23 深圳市贝美互动科技有限公司 Internet of things equipment and networked deployment method, intelligent terminal and Internet of things system
CN107566146B (en) * 2016-06-30 2021-03-19 北京北信源软件股份有限公司 Method for automatically switching network cards
WO2019134076A1 (en) * 2018-01-03 2019-07-11 Oppo广东移动通信有限公司 Method and device for inter-system handover
CN110049071A (en) * 2018-01-15 2019-07-23 中兴通讯股份有限公司 Network data exchange control method, device and terminal
CN108834221B (en) * 2018-06-01 2022-09-20 南昌黑鲨科技有限公司 Network connection control method, computer-readable storage medium, and mobile terminal
CN109151784B (en) * 2018-08-14 2021-08-17 Oppo广东移动通信有限公司 Network connection method and device and electronic equipment
CN111263307B (en) * 2020-02-14 2021-09-24 Oppo广东移动通信有限公司 Network hosting method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491653A (en) * 2013-05-13 2014-01-01 上海盛本通讯科技有限公司 WiFi and 3G coexisting method based on Android intelligent terminal
CN103973800A (en) * 2014-05-19 2014-08-06 普天信息技术有限公司 Android-based double-network-card concurrence implementation method
CN104770006A (en) * 2012-11-07 2015-07-08 高通股份有限公司 Method and apparatus to reduce signaling spikes when moving between WLAN and WWAN coverage areas

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9572175B2 (en) * 2013-03-15 2017-02-14 Apple Inc. Conditional transmission deferral for dual wireless band coexistence
US9215659B2 (en) * 2013-07-19 2015-12-15 Google Technology Holdings LLC Method and apparatus for disconnecting a wireless communication link between a communication device and a mobile device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104770006A (en) * 2012-11-07 2015-07-08 高通股份有限公司 Method and apparatus to reduce signaling spikes when moving between WLAN and WWAN coverage areas
CN103491653A (en) * 2013-05-13 2014-01-01 上海盛本通讯科技有限公司 WiFi and 3G coexisting method based on Android intelligent terminal
CN103973800A (en) * 2014-05-19 2014-08-06 普天信息技术有限公司 Android-based double-network-card concurrence implementation method

Also Published As

Publication number Publication date
CN104981030A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104981030B (en) network connection control method and device
CN105848268B (en) A kind of method and terminal reducing power consumption
CN104968027B (en) Wi-Fi control method and device
CN105979095A (en) Mobile terminal and application power consumption control method
CN104967810A (en) Call mode conversion method and terminal device
CN105978788A (en) Message pushing device and method thereof
CN106155695A (en) The removing control device and method of background application
CN105872948A (en) Virtual SIM (Subscriber Identity Module) card realization device and method
CN105979098A (en) Screen management method of double-sided screen and terminal
CN105101317A (en) Network switching device and method
CN106304037A (en) The management method of virtual SIM card and device
CN104902448B (en) Follow the trail of the method and system of mobile terminal
CN104660820A (en) Implementation method of management mode of mobile terminal and mobile terminal
CN106028404A (en) Terminal power consumption optimization device and method
CN104821990A (en) Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN106775372A (en) A kind of display adjusting method of suspension procedure disk, device and terminal
CN106488420A (en) Call processing method, apparatus and system
CN106658159A (en) Control method and first electronic equipment, and target equipment
CN105554869A (en) Mobile terminal communication method, equipment and communication system
CN105101084A (en) Electronic device and travel reminding information processing method
CN105450865A (en) Mobile terminal and method thereof for realizing Wi-Fi management
CN104902098A (en) Method and system for switching sidebar of mobile terminal
CN106412265B (en) Method for pushing and device are reminded in interaction based on location information
CN105939425A (en) Device and method for dynamic monitoring of screen
CN106681768A (en) Process control method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant