CN105306682A - Method and device for automatically disconnecting network connection - Google Patents

Method and device for automatically disconnecting network connection Download PDF

Info

Publication number
CN105306682A
CN105306682A CN201510600391.5A CN201510600391A CN105306682A CN 105306682 A CN105306682 A CN 105306682A CN 201510600391 A CN201510600391 A CN 201510600391A CN 105306682 A CN105306682 A CN 105306682A
Authority
CN
China
Prior art keywords
mobile terminal
connecting valve
network connecting
wifi
out screen
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
CN201510600391.5A
Other languages
Chinese (zh)
Other versions
CN105306682B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510600391.5A priority Critical patent/CN105306682B/en
Publication of CN105306682A publication Critical patent/CN105306682A/en
Application granted granted Critical
Publication of CN105306682B publication Critical patent/CN105306682B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides a method and a device for automatically disconnecting network connection, being applied to the field of communication. The method comprises steps of detecting whether a mobile terminal is in a black screen state or not; if the mobile terminal is in a black screen state, detecting whether the network of the mobile terminal is connected or not; and if the network of the mobile terminal is connected, disconnecting the network of the mobile terminal. Through adoption of the method and device, the network can be disconnected at a higher speed.

Description

The method of automatic closedown network connecting valve and device
Technical field
The embodiment of the present invention belongs to the communications field, particularly relates to a kind of method and device of automatic closedown network connecting valve.
Background technology
At present, most mobile terminal all has the function that network connects, and user is the electricity of saving mobile terminal or is saving data traffic, the wifi connecting valve (or data network connecting valve) of turning-off mobile terminal usually all can be selected when not using wifi to connect (or usage data network does not connect) or minimizing radiation.
In existing network connecting valve method for closing, due to certain customers through be everlasting bright screen time forget close wifi connecting valve (or data network connecting valve), therefore, user is needed again to light screen, unlock screen closes wifi connecting valve (or data network connecting valve) again could disconnect wifi connection (or data network connection), thus cause closedown wifi connecting valve (or data network connecting valve) excessively slow, reduce the good experience of user.
Summary of the invention
Embodiments provide a kind of method and device of automatic closedown network connecting valve, be intended to solve existing method and close the excessively slow problem of network connecting valve.
The embodiment of the present invention is achieved in that a kind of method of automatic closedown network connecting valve, and described method comprises:
Whether detection mobile terminal is in and puts out screen state;
Mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode;
When the network connecting valve of mobile terminal is in open mode, close the network connecting valve of described mobile terminal.
Another object of the embodiment of the present invention is the device providing a kind of automatic closedown network connecting valve, and described device comprises:
Put out screen state detection unit, whether be in put out screen state for detecting mobile terminal;
Network connecting valve state detection unit, when putting out screen state for being at mobile terminal, whether the network connecting valve detecting mobile terminal is in open mode;
Network connecting valve closing unit, for when the network connecting valve of mobile terminal is in open mode, closes the network connecting valve of described mobile terminal.
In embodiments of the present invention, the network connecting valve of automatic turning-off mobile terminal when putting out screen state owing to being at mobile terminal, therefore, user is made also to close network connecting valve without the need to the network linkage interface at the mobile terminal opened without the need to the screen again lighting mobile terminal, thus save the time of the network connecting valve of turning-off mobile terminal, improve the good experience of user.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for a kind of automatic closedown network connecting valve that first embodiment of the invention provides;
Fig. 2 is the structure chart of the device of a kind of automatic closedown network connecting valve that second embodiment of the invention provides;
Fig. 3 is the structure chart of a kind of mobile terminal that second embodiment of the invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In the embodiment of the present invention, detect mobile terminal be in put out screen state time, whether the network connecting valve detecting mobile terminal is in open mode, when the network connecting valve of mobile terminal is in open mode, closes the network connecting valve of described mobile terminal.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
embodiment one:
Fig. 1 shows the flow chart of the method for a kind of automatic closedown network connecting valve that first embodiment of the invention provides, and details are as follows:
Step S11, whether detection mobile terminal is in and puts out screen state.
Particularly, judged by the brightness value of backlight detecting mobile terminal, if the brightness value of backlight reaches the threshold value putting out screen, then judge that mobile terminal is in and put out screen state, otherwise, judge that mobile terminal is in and non-ly put out screen state.
Step S12, mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode.
Wherein, network connecting valve here comprises wifi connecting valve and data network connecting valve.In this step, whether the network connecting valve detecting mobile terminal is in open mode is specially: whether the wifi connecting valve and/or the data network connecting valve that detect mobile terminal are in open mode.
Alternatively, described mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode, specifically comprise:
A1, mobile terminal be in put out screen state time, judge that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold.Wherein, it is usually shorter that time threshold is shielded in default putting out, and such as, is set as 2 seconds, 3 seconds etc.
A2, mobile terminal be in the time of putting out screen state be less than default put out screen time threshold time, whether the network connecting valve detecting mobile terminal is in open mode.
In above-mentioned A1 and A2, when judge mobile terminal be in put out screen state time, continue to judge that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold, if be less than, then show that user has just terminated to use mobile terminal soon, now, detect the network connecting valve of mobile terminal and close the network connecting valve being in open mode, the resource loss brought owing to opening network connecting valve can be reduced in time, thus save the electricity of mobile terminal, decrease the radiation of opening network connecting valve and bringing.
Alternatively, except the length by putting out the screen time judges whether user has just terminated to use except mobile terminal, whether can also there is projection to judge, now by the screen detecting mobile terminal, before whether the network connecting valve detecting mobile terminal is in open mode, comprising:
B1, judge that described mobile terminal is in and puts out screen state before, whether the screen of described mobile terminal exists projection.Particularly, by the light sensation modular spacing set time (as 1 millisecond, interval, 10 milliseconds etc.) detect the light intensity projecting mobile terminal, when the difference of the light intensity of the mobile terminal surrounding environment of the light intensity and detection that project mobile terminal is greater than default Intensity threshold, judge that the screen of mobile terminal exists projection, and when the screen of mobile terminal exists projection, the user of mobile terminal is probably using described mobile terminal.Certainly, before this step, need in real time or the screen detecting mobile terminal within interval time whether there is projection, so that after mobile terminal is in and puts out screen state, the information stored in certain hour before putting out screen can be taken out, before judging that mobile terminal is in and puts out screen state again, whether the screen of mobile terminal exists projection.
B2, described mobile terminal screen exist projection time, judge whether the size of the area of described projection changes in Preset Time, so that whether the network connecting valve detecting mobile terminal when the size of the area of described projection changes in Preset Time is in open mode.Because user is often kept in motion (swing etc. of such as head), therefore, if the projection being projected as user of mobile terminal, then the size of the area of the projection of described mobile terminal can change in Preset Time.Certainly, because user is when preparing to use mobile terminal, it can not produce excessive swing, therefore, only change in Preset Time in the size of the area of projection, and projection is just judged to be the projection of user when being less than default area threshold by the change occurred, to improve the accuracy rate whether user judging mobile terminal is using described mobile terminal.
Step S13, when the network connecting valve of mobile terminal is in open mode, closes the network connecting valve of described mobile terminal.
Wherein, the network connecting valve of turning-off mobile terminal refers to the switch of closing for interconnection network, such as, suppose that " 0 " represents that the network connecting valve of mobile terminal is for closing, when " 1 " represents the network connecting valve of mobile terminal for opening, then the network connecting valve of closing described mobile terminal is specially and " 0 " is set to " 1 ".
Alternatively, when data network connecting valve and wifi connecting valve are all in open mode, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
The wifi information of C1, acquisition current environment, and judge whether described mobile terminal preserves the wifi information of described current environment.Wherein, the wifi information of current environment comprises: the wifi unique identification (as title), connection password etc. of current environment.Particularly, when mobile terminal accesses a wifi, preserve the information of described wifi, therefore, when acquisition for mobile terminal is to new wifi information (the wifi information of current environment), this new wifi information is compared with the wifi information of preservation, if identical (wifi unique identification be connected password all identical), then judges that mobile terminal preserves the wifi information of described current environment.
C2, when described mobile terminal preserves the wifi information of described current environment, close the data network connecting valve of described mobile terminal.Because mobile terminal can access the wifi of current environment, therefore, the data network connecting valve of a turning-off mobile terminal, retains the wifi connecting valve opened, not only can save electricity, reduce radiation, mobile terminal also can be made to continue to keep the state of access network.
C3, when described mobile terminal does not preserve the wifi information of described current environment, close the data network connecting valve of described mobile terminal and close the wifi connecting valve of described mobile terminal.When mobile terminal does not preserve the wifi information of described current environment, even if wifi connecting valve opens the wifi that can not access current environment, therefore, closedown wifi connecting valve and data network connecting valve can reduce the electricity owing to opening spent by wifi connecting valve and data network connecting valve further simultaneously.
In above-mentioned C1 ~ C3, when wifi connecting valve and data network connecting valve are all in open mode, by judging the wifi whether mobile terminal can access current environment selects whether to close wifi connecting valve, in a practical situation, also directly can close wifi connecting valve and data network connecting valve, now simultaneously, alternatively, when data network connecting valve and wifi connecting valve are all in open mode, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
D1, close and be in the data network connecting valve of the mobile terminal of open mode.And,
D2, close and be in the wifi connecting valve of the mobile terminal of open mode.
In above-mentioned D1 and D2, when the time judging that the button that mobile terminal is specified is pressed exceedes default compressing time threshold value, close wifi connecting valve and data network connecting valve, without the need to user's multi-pass operation, improve the good experience of user.
Certainly, when any one in data network connecting valve and wifi connecting valve is in open mode, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
E1, when data network connecting valve is in open mode, closes and be in the data network connecting valve of open mode.
E2, when wifi connecting valve is in open mode, closes and be in the wifi connecting valve of open mode.
In above-mentioned E1 and E2, when judge wifi connecting valve be in closed condition and data network connecting valve be in open mode time, then close data network connecting valve; On the contrary, then wifi connecting valve is closed.Owing to closing any one the wifi connecting valve being in open mode and data network connecting valve, wifi connecting valve and data network connecting valve is made all to be in closed condition, therefore, it is possible to greatly save the electricity of mobile terminal.
Alternatively, when closedown is in the wifi connecting valve of open mode, comprising:
Whether inquiry user closes wifi connecting valve, or prompting user has closed wifi connecting valve.
Because existing application is frequently by the automatic downloaded resources in backstage, the application to upgrade in time, and close wifi connecting valve and may be difficult to download resource requirement in time, therefore, before closedown is in the wifi connecting valve of open mode, whether inquiry user closes wifi connecting valve, or, after closedown is in the wifi connecting valve of open mode, prompting user has closed wifi connecting valve, and user can be made to know more amount of information.Certainly, whether inquiry user closes wifi connecting valve, or, when prompting user has closed wifi connecting valve, need to light screen, and shown corresponding information on the screen lighted.
In first embodiment of the invention, detect mobile terminal be in put out screen state time, whether the network connecting valve detecting mobile terminal is in open mode, when the network connecting valve of mobile terminal is in open mode, closes the network connecting valve of described mobile terminal.The network connecting valve of automatic turning-off mobile terminal when putting out screen state owing to being at mobile terminal, therefore, user is made also to close network connecting valve without the need to the network linkage interface at the mobile terminal opened without the need to the screen again lighting mobile terminal, thus save the time of the network connecting valve of turning-off mobile terminal, improve the good experience of user.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
embodiment two:
Fig. 2 shows the structure chart of the device of a kind of automatic closedown network connecting valve that second embodiment of the invention provides, this device of automatically closing network connecting valve can be applicable in mobile terminal, and the mobile terminal described in the disclosure comprises mobile phone, smart phone, laptop computer, digital broadcast terminal, PDA (personal digital assistant), PMP (portable media player), navigation system etc.Except when when being only applied to mobile terminal, the embodiment described in the disclosure can be applied to the such as fixed terminal such as Digital Television, desktop computer.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
This device of automatically closing network connecting valve comprises: put out screen state detection unit 21, network connecting valve state detection unit 22, network connecting valve closing unit 23.Wherein:
Put out screen state detection unit 21, whether be in put out screen state for detecting mobile terminal.
Particularly, judged by the brightness value of backlight detecting mobile terminal, if the brightness value of backlight reaches the threshold value putting out screen, then judge that mobile terminal is in and put out screen state, otherwise, judge that mobile terminal is in and non-ly put out screen state.
Network connecting valve state detection unit 22, when putting out screen state for being at mobile terminal, whether the network connecting valve detecting mobile terminal is in open mode.
Wherein, network connecting valve here comprises wifi connecting valve and data network connecting valve.Whether the network connecting valve detecting mobile terminal is in open mode is specially: whether the wifi connecting valve and/or the data network connecting valve that detect mobile terminal are in open mode.
Alternatively, described network connecting valve state detection unit 22 comprises:
Putting out screen time judgment module, when putting out screen state for being at mobile terminal, judging that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold.Wherein, it is usually shorter that time threshold is shielded in default putting out, and such as, is set as 2 seconds, 3 seconds etc.
Network connecting valve condition judgment module, for be at mobile terminal the time of putting out screen state be less than default put out screen time threshold time, whether the network connecting valve detecting mobile terminal is in open mode.
Above-mentioned putting out is shielded in time judgment module and network connecting valve condition judgment module, when judge mobile terminal be in put out screen state time, continue to judge that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold, if be less than, then show that user has just terminated to use mobile terminal soon, now, detect the network connecting valve of mobile terminal and close the network connecting valve being in open mode, the resource loss brought owing to opening network connecting valve can be reduced in time, thus save the electricity of mobile terminal, decrease the radiation of opening network connecting valve and bringing.
Alternatively, except the length by putting out the screen time judges whether user has just terminated to use except mobile terminal, whether can also there is projection to judge by the screen detecting mobile terminal, now, the device of described automatic closedown network connecting valve comprises:
Projection detecting unit, before judging that described mobile terminal is in and puts out screen state, whether the screen of described mobile terminal exists projection.Particularly, by the light sensation modular spacing set time (as 1 millisecond, interval, 10 milliseconds etc.) detect the light intensity projecting mobile terminal, when the difference of the light intensity of the mobile terminal surrounding environment of the light intensity and detection that project mobile terminal is greater than default Intensity threshold, judge that the screen of mobile terminal exists projection, and when the screen of mobile terminal exists projection, the user of mobile terminal is probably using described mobile terminal.
Projected area judging unit, for when there is projection in the screen of described mobile terminal, judge whether the size of the area of described projection changes in Preset Time, so that whether the network connecting valve detecting mobile terminal when the size of the area of described projection changes in Preset Time is in open mode.Because user is often kept in motion (swing etc. of such as head), therefore, if the projection being projected as user of mobile terminal, then the size of the area of the projection of described mobile terminal can change in Preset Time.Certainly, because user is when preparing to use mobile terminal, it can not produce excessive swing, therefore, only change in Preset Time in the size of the area of projection, and projection is just judged to be the projection of user when being less than default area threshold by the change occurred, to improve the accuracy rate whether user judging mobile terminal is using described mobile terminal.
Network connecting valve closing unit 23, for when the network connecting valve of mobile terminal is in open mode, closes the network connecting valve of described mobile terminal.
Alternatively, when data network connecting valve and wifi connecting valve are all in open mode, described network connecting valve closing unit 23 comprises:
Wifi data obtaining module, for obtaining the wifi information of current environment, and judges whether described mobile terminal preserves the wifi information of described current environment.Wherein, the wifi information of current environment comprises: the wifi unique identification (as title), connection password etc. of current environment.Particularly, when mobile terminal accesses a wifi, preserve the information of described wifi, therefore, when acquisition for mobile terminal is to new wifi information (the wifi information of current environment), this new wifi information is compared with the wifi information of preservation, if identical (wifi unique identification be connected password all identical), then judges that mobile terminal preserves the wifi information of described current environment.
First network connecting valve closing module, during for preserving the wifi information of described current environment at described mobile terminal, closes the data network connecting valve of described mobile terminal.Because mobile terminal can access the wifi of current environment, therefore, the data network connecting valve of a turning-off mobile terminal, retains the wifi connecting valve opened, not only can save electricity, reduce radiation, mobile terminal also can be made to continue to keep the state of access network.
Second network connecting valve closing module, during for not preserving the wifi information of described current environment at described mobile terminal, closes the data network connecting valve of described mobile terminal and closes the wifi connecting valve of described mobile terminal.When mobile terminal does not preserve the wifi information of described current environment, even if wifi connecting valve opens the wifi that can not access current environment, therefore, closedown wifi connecting valve and data network connecting valve can reduce the electricity owing to opening spent by wifi connecting valve and data network connecting valve further simultaneously.
Alternatively, directly closing wifi connecting valve and data network connecting valve, described network connecting valve closing unit 23 comprises simultaneously:
Data network connecting valve closing module, for closing the data network connecting valve of the mobile terminal being in open mode.And,
Wifi connecting valve closing module, for closing the wifi connecting valve of the mobile terminal being in open mode.
In above-mentioned data network connecting valve closing module and wifi connecting valve closing module, owing to directly closing data network connecting valve and wifi connecting valve, therefore, without the need to user's multi-pass operation, thus improve the good experience of user.
Alternatively, when closedown is in the wifi connecting valve of open mode, comprising:
Whether inquiry user closes wifi connecting valve, or prompting user has closed wifi connecting valve.
Because existing application is frequently by the automatic downloaded resources in backstage, the application to upgrade in time, and close wifi connecting valve and may be difficult to download resource requirement in time, therefore, before closedown is in the wifi connecting valve of open mode, whether inquiry user closes wifi connecting valve, or, after closedown is in the wifi connecting valve of open mode, prompting user has closed wifi connecting valve, and user can be made to know more amount of information.Certainly, whether inquiry user closes wifi connecting valve, or, when prompting user has closed wifi connecting valve, need to light screen, and shown corresponding information on the screen lighted.
In second embodiment of the invention, the network connecting valve of automatic turning-off mobile terminal when putting out screen state owing to being at mobile terminal, therefore, user is made also to close network connecting valve without the need to the network linkage interface at the mobile terminal opened without the need to the screen again lighting mobile terminal, thus save the time of the network connecting valve of turning-off mobile terminal, improve the good experience of user.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Fig. 3 shows a kind of structured flowchart of mobile terminal, and this mobile terminal may be used for the method implementing the automatic interconnection network provided in above-described embodiment.
As shown in Figure 3, the parts such as mobile terminal 1200 can comprise RF (RadioFrequency, radio frequency) circuit 110, includes the memory 120 of one or more (only illustrating one in figure) computer-readable recording mediums, input unit 130, display unit 140, transducer 150, voicefrequency circuit 160, transport module 170, the processor 180 including more than one or one (only illustrating one in figure) process core and power supply 190.It will be understood by those skilled in the art that mobile terminal 1200 structure shown in Fig. 3 does not form the restriction to mobile terminal 1200, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110, for receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and the signal of telecommunication, thus carries out communication with communication network or other equipment.RF circuit 110 can comprise the various existing circuit element for performing these functions, such as, and antenna, radio-frequency (RF) transceiver, digital signal processor, encrypt/decrypt chip, subscriber identity module (SIM) card, memory etc.RF circuit 110 can with various network as the Internet, intranet, wireless network carry out communication or carry out communication by wireless network and other equipment.Above-mentioned wireless network can comprise cellular telephone networks, WLAN (wireless local area network) or metropolitan area network.Above-mentioned wireless network can use various communication standard, agreement and technology, include, but are not limited to global system for mobile communications (GlobalSystemforMobileCommunication, GSM), enhancement mode mobile communication technology (EnhancedDataGSMEnvironment, EDGE), Wideband CDMA Technology (WidebandCodeDivisionMultipleAccess, WCDMA), CDMA (Code Division Multiple Access) (CodeDivisionAccess, CDMA), tdma (TimeDivisionMultipleAccess, TDMA), adopting wireless fidelity technology (WirelessFidelity, Wi-Fi) (as IEEE-USA standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone (VoiceoverInternetProtocol, VoIP), worldwide interoperability for microwave access (WorldwideInteroperabilityforMicrowaveAccess, Wi-Max), other are for mail, the agreement of instant messaging and short message, and any other suitable communications protocol, even can comprise those current agreements be developed not yet.
Memory 120 can be used for storing software program and module, program command/module that method, device as automatically closed network connecting valve in above-described embodiment is corresponding, processor 180 is by running the software program and module that are stored in memory 120, thus perform the application of various function and data processing, namely realize the function of the automatic closedown network connecting valve of mobile terminal.Memory 120 can comprise high speed random asccess memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 120 can comprise the memory relative to the long-range setting of processor 180 further, and these remote memories can be connected to mobile terminal 1200 by network.The example of above-mentioned network includes but not limited to the Internet, intranet, local area network (LAN), mobile radio communication and combination thereof.
Input unit 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Particularly, input unit 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input unit 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the mobile terminal 1200 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display floater 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display floater 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in figure 3, Touch sensitive surface 131 and display floater 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display floater 141 integrated and realize input and output function.
Mobile terminal 1200 also can comprise at least one transducer 150, such as optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 141, proximity transducer when mobile terminal 1200 moves in one's ear, can cut out display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for mobile terminal 1200 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and mobile terminal 1200.Voicefrequency circuit 160 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 161, by loud speaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to memory 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and mobile terminal 1200.
By transport module 170 (such as Wi-Fi module), mobile terminal 1200 can help that user sends and receive e-mail, browsing page and access streaming video etc., the access of its broadband internet wireless for user provides.Although Fig. 3 shows transport module 170, be understandable that, it does not belong to must forming of mobile terminal 1200, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centres of mobile terminal 1200, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 120 and/or module is stored in by running or performing, and call the data be stored in memory 120, perform various function and the deal with data of mobile terminal 1200, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Mobile terminal 1200 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, mobile terminal 1200 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of mobile terminal is touch-screen display, mobile terminal also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to be performed by more than one or one processor state more than one or one program package containing the instruction for carrying out following operation:
Whether detection mobile terminal is in and puts out screen state;
Mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode;
When the network connecting valve of mobile terminal is in open mode, close the network connecting valve of described mobile terminal.
Suppose that above-mentioned is the first possible execution mode, in the execution mode that the second then provided based on the execution mode that the first is possible is possible, described mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode, specifically comprise:
Mobile terminal be in put out screen state time, judge that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold;
Mobile terminal be in the time of putting out screen state be less than default put out screen time threshold time, whether the network connecting valve detecting mobile terminal is in open mode.
In the third the possible execution mode provided based on the execution mode that the first is possible, before whether the network connecting valve detecting mobile terminal is in open mode, comprising:
Before judging that described mobile terminal is in and puts out screen state, whether the screen of described mobile terminal exists projection;
When there is projection in the screen of described mobile terminal, judge whether the size of the area of described projection changes in Preset Time, so that whether the network connecting valve detecting mobile terminal when the size of the area of described projection changes in Preset Time is in open mode.
At the first, based on the second, the third possible execution mode and in the 4th kind of possible execution mode provided, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
Obtain the wifi information of current environment, and judge whether described mobile terminal preserves the wifi information of described current environment;
When described mobile terminal preserves the wifi information of described current environment, close the data network connecting valve of described mobile terminal;
When described mobile terminal does not preserve the wifi information of described current environment, close the data network connecting valve of described mobile terminal and close the wifi connecting valve of described mobile terminal.
At the first, based on the second, the third possible execution mode and in the 5th kind of possible execution mode provided, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
Close the data network connecting valve being in the mobile terminal of open mode; And,
Close the wifi connecting valve being in the mobile terminal of open mode.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (10)

1. automatically close a method for network connecting valve, it is characterized in that, described method comprises:
Whether detection mobile terminal is in and puts out screen state;
Mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode;
When the network connecting valve of mobile terminal is in open mode, close the network connecting valve of described mobile terminal.
2. method according to claim 1, is characterized in that, described mobile terminal be in put out screen state time, detect the network connecting valve of mobile terminal and whether be in open mode, specifically comprise:
Mobile terminal be in put out screen state time, judge that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold;
Mobile terminal be in the time of putting out screen state be less than default put out screen time threshold time, whether the network connecting valve detecting mobile terminal is in open mode.
3. method according to claim 1, is characterized in that, before whether the network connecting valve detecting mobile terminal is in open mode, comprising:
Before judging that described mobile terminal is in and puts out screen state, whether the screen of described mobile terminal exists projection;
When there is projection in the screen of described mobile terminal, judge whether the size of the area of described projection changes in Preset Time, so that whether the network connecting valve detecting mobile terminal when the size of the area of described projection changes in Preset Time is in open mode.
4. the method according to any one of claims 1 to 3, is characterized in that, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
Obtain the wifi information of current environment, and judge whether described mobile terminal preserves the wifi information of described current environment;
When described mobile terminal preserves the wifi information of described current environment, close the data network connecting valve of described mobile terminal;
When described mobile terminal does not preserve the wifi information of described current environment, close the data network connecting valve of described mobile terminal and close the wifi connecting valve of described mobile terminal.
5. the method according to any one of claims 1 to 3, is characterized in that, the network connecting valve of the described mobile terminal of described closedown, specifically comprises:
Close the data network connecting valve being in the mobile terminal of open mode; And,
Close the wifi connecting valve being in the mobile terminal of open mode.
6. automatically close a device for network connecting valve, it is characterized in that, described device comprises:
Put out screen state detection unit, whether be in put out screen state for detecting mobile terminal;
Network connecting valve state detection unit, when putting out screen state for being at mobile terminal, whether the network connecting valve detecting mobile terminal is in open mode;
Network connecting valve closing unit, for when the network connecting valve of mobile terminal is in open mode, closes the network connecting valve of described mobile terminal.
7. device according to claim 6, is characterized in that, described network connecting valve state detection unit comprises:
Putting out screen time judgment module, when putting out screen state for being at mobile terminal, judging that mobile terminal is in the time of putting out screen state and whether is less than and default puts out screen time threshold;
Network connecting valve condition judgment module, for be at mobile terminal the time of putting out screen state be less than default put out screen time threshold time, whether the network connecting valve detecting mobile terminal is in open mode.
8. device according to claim 6, is characterized in that, described device comprises:
Projection detecting unit, before judging that described mobile terminal is in and puts out screen state, whether the screen of described mobile terminal exists projection;
Projected area judging unit, for when there is projection in the screen of described mobile terminal, judge whether the size of the area of described projection changes in Preset Time, so that whether the network connecting valve detecting mobile terminal when the size of the area of described projection changes in Preset Time is in open mode.
9. the device according to any one of claim 6 to 8, is characterized in that, described network connecting valve closing unit comprises:
Wifi data obtaining module, for obtaining the wifi information of current environment, and judges whether described mobile terminal preserves the wifi information of described current environment;
First network connecting valve closing module, during for preserving the wifi information of described current environment at described mobile terminal, closes the data network connecting valve of described mobile terminal;
Second network connecting valve closing module, during for not preserving the wifi information of described current environment at described mobile terminal, closes the data network connecting valve of described mobile terminal and closes the wifi connecting valve of described mobile terminal.
10. want the device described in 6 to 8 any one according to right, it is characterized in that, described network connecting valve closing unit comprises:
Data network connecting valve closing module, for closing the data network connecting valve of the mobile terminal being in open mode; And,
Wifi connecting valve closing module, for closing the wifi connecting valve of the mobile terminal being in open mode.
CN201510600391.5A 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed Expired - Fee Related CN105306682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510600391.5A CN105306682B (en) 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510600391.5A CN105306682B (en) 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed

Publications (2)

Publication Number Publication Date
CN105306682A true CN105306682A (en) 2016-02-03
CN105306682B CN105306682B (en) 2019-01-11

Family

ID=55203413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510600391.5A Expired - Fee Related CN105306682B (en) 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed

Country Status (1)

Country Link
CN (1) CN105306682B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517089A (en) * 2016-02-26 2016-04-20 宁波萨瑞通讯有限公司 Method capable of automatically connecting to network and mobile terminal
CN105791586A (en) * 2016-04-25 2016-07-20 努比亚技术有限公司 WIFI automatic closing method and device and mobile terminal
CN106060913A (en) * 2016-07-29 2016-10-26 宇龙计算机通信科技(深圳)有限公司 Wake-on-LAN method and device
CN106060909A (en) * 2016-05-26 2016-10-26 珠海市魅族科技有限公司 Network access method and mobile terminal
CN106125884A (en) * 2016-06-16 2016-11-16 维沃移动通信有限公司 The processing method of the background task of a kind of mobile terminal and mobile terminal
CN106255146A (en) * 2016-08-16 2016-12-21 广东欧珀移动通信有限公司 The electricity-saving control method of a kind of terminal, device and terminal
CN106302984A (en) * 2016-07-28 2017-01-04 努比亚技术有限公司 A kind of method and device controlling data cube computation
CN106527932A (en) * 2016-10-25 2017-03-22 惠州Tcl移动通信有限公司 Switching method and system of WiFi (Wireless Fidelity) mode
CN107087299A (en) * 2017-04-05 2017-08-22 中国联合网络通信集团有限公司 Wireless networking control method and device
CN107094322A (en) * 2017-04-28 2017-08-25 维沃移动通信有限公司 A kind of WLAN connection method and mobile terminal
CN109379498A (en) * 2018-11-13 2019-02-22 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus
WO2019071523A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Wireless network control method and wireless network control apparatus based on intelligent terminal
WO2019071524A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Intelligent terminal-based wireless network control method and wireless network control device
CN110493892A (en) * 2019-08-12 2019-11-22 RealMe重庆移动通信有限公司 Method for connecting network and device, storage medium, communication terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236403A (en) * 2010-04-23 2011-11-09 三竹资讯股份有限公司 Automatic online and offline device and method for financial tape reading software of mobile device
CN103167185A (en) * 2011-12-09 2013-06-19 网秦无限(北京)科技有限公司 Battery energy conservation method and battery energy conservation system
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN103442148A (en) * 2013-09-11 2013-12-11 广州市久邦数码科技有限公司 Intelligent power-saving system and intelligent power-saving method for mobile terminals
CN104394582A (en) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 WiFi sleeping method for Android device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236403A (en) * 2010-04-23 2011-11-09 三竹资讯股份有限公司 Automatic online and offline device and method for financial tape reading software of mobile device
CN103167185A (en) * 2011-12-09 2013-06-19 网秦无限(北京)科技有限公司 Battery energy conservation method and battery energy conservation system
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN103442148A (en) * 2013-09-11 2013-12-11 广州市久邦数码科技有限公司 Intelligent power-saving system and intelligent power-saving method for mobile terminals
CN104394582A (en) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 WiFi sleeping method for Android device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517089A (en) * 2016-02-26 2016-04-20 宁波萨瑞通讯有限公司 Method capable of automatically connecting to network and mobile terminal
CN105791586A (en) * 2016-04-25 2016-07-20 努比亚技术有限公司 WIFI automatic closing method and device and mobile terminal
CN106060909B (en) * 2016-05-26 2019-07-16 珠海市魅族科技有限公司 A kind of method for connecting network and mobile terminal
CN106060909A (en) * 2016-05-26 2016-10-26 珠海市魅族科技有限公司 Network access method and mobile terminal
CN106125884A (en) * 2016-06-16 2016-11-16 维沃移动通信有限公司 The processing method of the background task of a kind of mobile terminal and mobile terminal
CN106125884B (en) * 2016-06-16 2019-05-17 维沃移动通信有限公司 A kind of processing method and mobile terminal of the background task of mobile terminal
CN106302984A (en) * 2016-07-28 2017-01-04 努比亚技术有限公司 A kind of method and device controlling data cube computation
CN106060913A (en) * 2016-07-29 2016-10-26 宇龙计算机通信科技(深圳)有限公司 Wake-on-LAN method and device
CN106255146A (en) * 2016-08-16 2016-12-21 广东欧珀移动通信有限公司 The electricity-saving control method of a kind of terminal, device and terminal
CN106527932A (en) * 2016-10-25 2017-03-22 惠州Tcl移动通信有限公司 Switching method and system of WiFi (Wireless Fidelity) mode
CN107087299A (en) * 2017-04-05 2017-08-22 中国联合网络通信集团有限公司 Wireless networking control method and device
CN107087299B (en) * 2017-04-05 2019-12-03 中国联合网络通信集团有限公司 Wireless Networking control method and device
CN107094322A (en) * 2017-04-28 2017-08-25 维沃移动通信有限公司 A kind of WLAN connection method and mobile terminal
WO2019071523A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Wireless network control method and wireless network control apparatus based on intelligent terminal
WO2019071524A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Intelligent terminal-based wireless network control method and wireless network control device
CN109379498A (en) * 2018-11-13 2019-02-22 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus
CN109379498B (en) * 2018-11-13 2020-12-22 Oppo广东移动通信有限公司 Electromagnetic interference control method and related device
US11563500B2 (en) 2018-11-13 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for electromagnetic interference control and related devices
CN110493892A (en) * 2019-08-12 2019-11-22 RealMe重庆移动通信有限公司 Method for connecting network and device, storage medium, communication terminal
CN110493892B (en) * 2019-08-12 2021-07-16 RealMe重庆移动通信有限公司 Network connection method and device, storage medium and communication terminal

Also Published As

Publication number Publication date
CN105306682B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN105306682A (en) Method and device for automatically disconnecting network connection
CN103458124B (en) A kind of shutdown processing method of terminal, device and terminal equipment
CN105187653A (en) Turning off method and apparatus of network connecting switch
CN105282823A (en) Network access method and apparatus of intelligent device
CN103605077B (en) Predetermined battery recognition methods, device and electronic equipment
CN105141854A (en) Flashlight control method, flashlight control device and terminal equipment
CN103686963A (en) Method, device, equipment and system for controlling wireless network to be switched on/off
CN104348956A (en) Antitheft method and apparatus for mobile terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104301504A (en) Message viewing method and device and mobile terminal
CN105138239A (en) Application operation method and device and terminal device
CN104866167A (en) Method and device for controlling quick floating layer panel
CN105187652A (en) Recording method and apparatus
CN104216726A (en) Loading method and device for Android virtual machine
US11138041B2 (en) Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal
CN106358225A (en) Network data processing method, network data processing device and mobile terminal
CN105357657A (en) Mesh network construction method and device
CN106454975A (en) Hotspot network switching method and terminal equipment
CN105162930A (en) Recording method and device for mobile terminal
CN105120158A (en) Shooting method and apparatus for mobile terminal
CN105100361A (en) Mobile terminal recording method and device
CN105792299A (en) Optimum usage method for 3G network, optimum usage device and mobile terminal
CN105282330A (en) Method and apparatus for automatically accessing network
CN110209415A (en) Firmware method for refreshing, device and storage medium
CN104468961A (en) Method and device for prompting position of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190111

CF01 Termination of patent right due to non-payment of annual fee