CN105792328B - Terminal device method for connecting network, device and terminal device - Google Patents

Terminal device method for connecting network, device and terminal device Download PDF

Info

Publication number
CN105792328B
CN105792328B CN201610113603.1A CN201610113603A CN105792328B CN 105792328 B CN105792328 B CN 105792328B CN 201610113603 A CN201610113603 A CN 201610113603A CN 105792328 B CN105792328 B CN 105792328B
Authority
CN
China
Prior art keywords
terminal device
wifi
wifi network
network
module
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
CN201610113603.1A
Other languages
Chinese (zh)
Other versions
CN105792328A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610113603.1A priority Critical patent/CN105792328B/en
Publication of CN105792328A publication Critical patent/CN105792328A/en
Application granted granted Critical
Publication of CN105792328B publication Critical patent/CN105792328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The disclosure is directed to a kind of terminal device method for connecting network, device and terminal devices, this method comprises: whether detection terminal device can access internet by WiFi network;If terminal device can not access internet by WiFi network, the WiFi module of terminal device is closed, so that terminal device accesses internet by mobile data network;After closing the first preset time after WiFi module, it is again turned on WiFi module and detects whether terminal device can access internet by WiFi network, until terminal device can access internet by WiFi network, so that terminal device accesses internet by WiFi network.By closing the WiFi module of terminal device, saving the power consumption of terminal device when terminal device can not access internet by WiFi network.

Description

Terminal device method for connecting network, device and terminal device
Technical field
This disclosure relates to the communication technology more particularly to a kind of terminal device method for connecting network, device and terminal device.
Background technique
With the development of wireless communication technique, the function that terminal device has is more and more, and many functions require It supports internet.Current terminal device support simultaneously mostly mobile network and Wireless Fidelity (WIreless-Fidelity, WiFi) network both can access internet by mobile communications network or access internet by WiFi network.But The speed and stability of mobile communications network are generally lower than WiFi network, and mobile communications network generally uses charge on traffic Strategy, therefore terminal device needs preferentially to access internet by WiFi network.Terminal device connection WiFi network needs pass through WiFi module, in order to guarantee priority access WiFi network, general user can select WiFi module normally opened.But WiFi network Overlay area is typically small, and terminal device, which moves out the overlay area WiFi, can then be switched to mobile communications network, and at this time if WiFi module then will increase the power consumption of terminal device still in opening state.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide a kind of terminal device method for connecting network, device and Terminal device.
According to the first aspect of the embodiments of the present disclosure, a kind of terminal device method for connecting network is provided, comprising:
Whether detection terminal device can access internet by WiFi network;
If the terminal device can not access internet by WiFi network, the WiFi mould of the terminal device is closed Block, so that the terminal device accesses internet by mobile data network;
After closing the first preset time after the WiFi module, it is again turned on the WiFi module and detects the end Whether end equipment can access internet by WiFi network, interconnect until the terminal device can be accessed by WiFi network Net, so that the terminal device accesses internet by WiFi network.
The technical scheme provided by this disclosed embodiment can include the following benefits: by whether detecting terminal device Internet can be accessed by WiFi network, when terminal device can not access internet by WiFi network, close terminal and set Standby WiFi module, so that terminal device accesses internet by mobile data network, and the after closing WiFi module It after one preset time, is again turned on WiFi module and repeats above-mentioned detection process, so that terminal device is preferentially using WiFi net Network accesses on the basis of internet, has saved the power consumption of terminal device.
Further, whether the detection terminal device can access internet by WiFi network, comprising:
Whether detect the terminal device by the WiFi module is to access known WiFi network or access unknown WiFi net, the known WiFi network are the WiFi network that the terminal device once accessed, and the unknown WiFi network is The WiFi network that the terminal device did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then described Terminal device can not access internet by WiFi network.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be by detecting whether to access Known WiFi network or unknown WiFi network determine whether terminal device can access internet by WiFi network, thus Simplify to whether terminal device can access the process that internet is detected by WiFi network.
Further, it is described by the WiFi module detect the terminal device whether do not access known WiFi network or Whether person accesses after unknown WiFi network, further includes:
Detect whether the terminal device can interconnect by the WiFi network access accessed by the WiFi module Network data;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and institute Internet data can not be accessed by the WiFi network accessed by stating terminal device, then the terminal device can not pass through WiFi net Network accesses internet.
The technical scheme provided by this disclosed embodiment can include the following benefits: by having detected whether access Whether on the basis of knowing W iFi network or unknown WiFi network, further detecting terminal device can be by having accessed WiFi network accesses internet data to determine whether terminal device can access internet by WiFi network, so as to essence Really whether detection terminal device can access internet by WiFi network.
Further, if the terminal device can not access internet by WiFi network, the terminal is closed The WiFi module of equipment, comprising:
If the terminal device can not access internet by WiFi network in the second preset time, the end is closed The WiFi module of end equipment.
The technical scheme provided by this disclosed embodiment can include the following benefits: if terminal device is default second Internet can not be accessed by WiFi network in time, just close the WiFi module of terminal device, avoid since WiFi network is short WiFi module frequently opens and closes caused by temporary failure, to further save the power consumption of terminal device.
Further, whether the detection terminal device can be accessed before internet by WiFi network, further includes:
Open the WiFi module.
Further, after the WiFi module for closing the terminal device, further include;
The mobile data module of the terminal device is opened, so that the terminal device is accessed mutually by mobile data network Networking.
Further, the method also includes:
If the terminal device can access internet by WiFi network, the mobile data module is closed.
The technical scheme provided by this disclosed embodiment can include the following benefits: pass through WiFi net in terminal device After network accesses internet, mobile data module is closed, further saves the power consumption of terminal device.
According to the second aspect of an embodiment of the present disclosure, a kind of terminal device network connection device is provided, comprising:
Detection module, is configured as whether detection terminal device can access internet by WiFi network;
Control module, if being configured as the detection module determines that the terminal device can not be accessed mutually by WiFi network Networking, then close the WiFi module of the terminal device, so that the terminal device accesses internet by mobile data network; After closing the first preset time after the WiFi module, it is again turned on the WiFi module and controls the detection module inspection Survey whether the terminal device can access internet by WiFi network, until the terminal device can pass through WiFi net Network accesses internet, so that the terminal device accesses internet by WiFi network.
Further, the detection module, be specifically configured to detect the terminal device by the WiFi module be Whether WiFi network known to no access accesses unknown WiFi network, the known WiFi network be the terminal device once The WiFi network accessed, the unknown WiFi network are the WiFi network that the terminal device did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then described Terminal device can not access internet by WiFi network.
Further, detection module is specifically additionally configured to whether detect the terminal device by the WiFi module Internet data can be accessed by the WiFi network accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and institute Internet data can not be accessed by the WiFi network accessed by stating terminal device, then the terminal device can not pass through WiFi net Network accesses internet.
Further, the control module, can not in the second preset time if being specifically configured to the terminal device Internet is accessed by WiFi network, then closes the WiFi module of the terminal device.
Further, the control module is additionally configured to detect whether terminal device can lead in the detection module It crosses before W iFi network insertion internet, opens the WiFi module.
Further, the control module is additionally configured to after the WiFi module for closing the terminal device, is opened The mobile data module of the terminal device, so that the terminal device accesses internet by mobile data network.
Further, the control module, is additionally configured to, if the detection module determines that the terminal device can lead to WiFi network access internet is crossed, then closes the mobile data module.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal device is provided, comprising: processor, Wireless Fidelity WiFi Module, mobile data module and the memory for storage processor executable instruction;
The processor is configured to:
Whether detection terminal device can access internet by WiFi network;
If the terminal device can not access internet by WiFi network, the WiFi module is closed, so that described Terminal device accesses internet by mobile data network;
After closing the first preset time after the WiFi module, it is again turned on the WiFi module and detects the end Whether end equipment can access internet by WiFi network, interconnect until the terminal device can be accessed by WiFi network Net, so that the terminal device accesses internet by WiFi network.
Further, the processor is specifically configured to whether detect the terminal device by the WiFi module It accesses known WiFi network or whether accesses unknown WiFi network, the known WiFi network is that the terminal device once connect The WiFi network entered, the unknown WiFi network are the WiFi network that the terminal device did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then described Terminal device can not access internet by WiFi network.
Further, whether the processor is additionally configured to by the WiFi module detection terminal device To access internet data by the WiFi network accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and institute Internet data can not be accessed by the WiFi network accessed by stating terminal device, then the terminal device can not pass through WiFi net Network accesses internet.
Further, the processor, if being specifically configured to the terminal device can not lead in the second preset time W iFi network insertion internet is crossed, then closes the WiFi module of the terminal device.
Further, whether the processor is additionally configured to access by WiFi network in detection terminal device Before internet, the WiFi module is opened.
Further, the processor is additionally configured to after the WiFi module for closing the terminal device, opens institute The mobile data module of terminal device is stated, so that the terminal device accesses internet by mobile data network.
Further, the processor interconnects if being additionally configured to the terminal device and can be accessed by WiFi network Net then closes the mobile data module.
The technical scheme provided by this disclosed embodiment can include the following benefits: provide a kind of terminal device network Whether connection method, device and terminal device can access internet by WiFi network by detection terminal device, in terminal When equipment can not access internet by WiFi network, the WiFi module of terminal device is closed, so that terminal device passes through movement Data network accesses internet, and after closing the first preset time after WiFi module, is again turned on WiFi module and lays equal stress on Multiple above-mentioned detection process, so that terminal device has been saved terminal and set on the basis of preferentially using WiFi network access internet Standby power consumption.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart according to the terminal device method for connecting network shown in an exemplary embodiment;
Fig. 2 is the flow chart according to the terminal device method for connecting network shown in another exemplary embodiment;
Fig. 3 is a kind of block diagram of terminal device network connection device embodiment one shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the entity of terminal device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of terminal device 50 shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
With the development of wireless communication technique, mobile terminal device has become essential work in people's daily life Tool.Mobile terminal device includes smart phone, tablet computer, smartwatch etc., it is characterized in that all there is network connecting function, Internet can be accessed by least one wireless network.
Mobile terminal device access internet mainly passes through two kinds of approach, first is that accessed by mobile communications network, such as Global system for mobile communications (Global System for Mobile Communication, GSM), CDMA (Code Division Multiple Access, CDMA), the shifting of each standard such as long term evolution (Long Term Evolution, LTE) Dynamic communication network.Second is that being accessed by WiFi network.Wherein mobile communications network is higher with operation cost due to building, and passes through it Online is according to charge on traffic, therefore user passes through mobile communications network and accesses the costly of internet data.And WiFi Network is typically all to pass through fixed network to be connected to internet, and cost basis approach is generally unrelated with flow, and passes through The rate that WiFi network accesses internet is generally all faster than mobile communications network, therefore user accesses internet by WiFi network The expense of data is lower.Therefore, in the place with the guaranteed WiFi network of safety, user is intended to terminal device can First choice accesses internet by WiFi network.
General in current mobile terminal device to be all configured with WiFi module and mobile data module simultaneously, user can have Internet is accessed selectively through WiFi network or mobile communications network.If terminal device accessed a certain WiFi network, eventually When end equipment is arrived again in the WiFi network coverage area, if WiFi module is in the open state, terminal device can be certainly It is dynamic to access the WiFi network.If terminal device is not in the WiFi network having access to, terminal device can pass through movement Data module accessing mobile communication network.But WiFi module is constantly in opening state, in terminal device access mobile communication When network, additional power consumption can be increased to terminal device, this will affect the stand-by time of terminal device.
Fig. 1 is the flow chart according to the terminal device method for connecting network shown in an exemplary embodiment, and the present embodiment mentions The terminal device method for connecting network of confession can be applied to any while have WiFi network concatenation ability and mobile data network The terminal device of network concatenation ability, as shown in Figure 1, method includes the following steps:
In step s101, whether detection terminal device can access internet by WiFi network.
In this step, terminal device can be detected whether access by WiFi network by a variety of methods and be interconnected Net, wherein internet is the network that the public can be carried out access.Terminal device is with can receive in any internet network The data that location is sent, it may be considered that terminal device can access internet.Terminal device accesses internet by WiFi module, Then terminal device is exactly to pass through WiFi network to access internet;Terminal device accesses internet by mobile data module, then eventually End equipment is exactly to pass through mobile data network to access internet.
Since the WiFi module of terminal device is after accessing WiFi network, the configuration information of the WiFi network can be saved, is wrapped Include the information such as service set (Service Set Identifier, SSID) and the password of WiFi network.Therefore when terminal is set When standby WiFi module is in the open state, if kind end equipment is located at the WiFi network once accessed, WiFi module can be led It is dynamic to access the WiFi network.Therefore it is to access known WiFi network that terminal device can detect terminal device by WiFi module, The known WiFi network is the WiFi network that terminal device once accessed, to determine whether terminal device can pass through WiFi It is mutual to determine that terminal device can be accessed by WiFi network if terminal device accesses known WiFi network for network insertion internet Otherwise networking determines that terminal device can not access internet by WiFi network.
Further, certain WiFi networks are for safety or the demand of privacy, the terminal device only authenticated to it The access service of internet is provided, although WiFi net can be accessed by accessing the unauthenticated terminal device of the WiFi network Network, but still internet can not be accessed by WiFi network.Therefore terminal device can detect terminal device by WiFi module It is the unknown WiFi network of access, to determine whether terminal device can access internet, the unknown WiFi net by WiFi network Network is the WiFi network that terminal device did not accessed.The WiFi network that terminal device did not accessed due to not determining its safety, Terminal device will not be accessed actively, and certainly, user can also connect the WiFi network not accessed by manually mode, only It wants terminal device to access primary WiFi network, becomes known WiFi network.If terminal device accesses unknown WiFi network Then determine that terminal device can not access internet by WiFi network.
Further, internet could be accessed since WiFi network is typically necessary the fixed network being connected through, and If the fixed network of W iFi network connection is there are when problem, terminal device still can not access internet by WiFi network.Cause This, terminal device can also detect whether terminal device can interconnect by the WiFi network access accessed by WiFi module Network data.If terminal device can not access internet data by the WiFi network accessed, terminal device can not pass through Wi Fi network insertion internet, vice versa.Terminal device can into internet, any known network address be sent out by WiFi module Request message is sent, if receiving the response data of network address feedback, that is, can determine can access by the WiFi network accessed Internet data, if being not received by corresponding data within a preset time, can determination can not be by the Wi Fi net that has accessed Network accesses internet data.
In step s 102, if terminal device can not access internet by WiFi network, terminal device is closed WiFi module, so that terminal device accesses internet by mobile data network.
If determining in step s101, terminal device can not access internet by WiFi network, can close terminal and set Standby WiFi module, terminal device is only capable of connecting mobile data network access internet by mobile data module at this time.Terminal Equipment may support the mobile data network of multiple types, and mobile data module can select access according to preset priority Mobile data network.Or mobile data module selects cut-in quality after detecting to accessible mobile data network Best mobile data network.
Since this step is to close terminal after detecting that terminal device can not access internet by WiFi network and set After standby WiFi module, internet is just accessed by mobile data network.Therefore it ensure that terminal device preferentially passes through Wi Fi network insertion internet, and when internet can not be accessed by WiFi network, WiFi module is closed, to save terminal The power consumption of equipment.
In step s 103, it after closing the first preset time after WiFi module, is again turned on WiFi module and detects Whether terminal device can access internet by WiFi network, interconnect until terminal device can be accessed by WiFi network Net, so that terminal device accesses internet by WiFi network.
After closing WiFi module, it is also necessary to which whether timing detection WiFi network can be used.Can preset one first it is default when Between, which can be the time of systemic presupposition, be also possible to user oneself setting.After closing WiFi module The first preset time after, the WiFi module of terminal device can be again turned on, and again successively execute step S101, step S 102 processing.Until detecting that terminal device can access internet by Wireless Fidelity WiFi network in step s101, then Terminal device is set to access internet by WiFi network.After terminal device accesses internet by WiFi network, continue to test When terminal device can not access internet by WiFi network, if it is mutual to detect that terminal device can not be accessed by WiFi network Networking, then repeat the processing of step S102.
Terminal device method for connecting network provided in this embodiment, by detecting whether terminal device can pass through WiFi net Network accesses internet, when terminal device can not access internet by WiFi network, closes the WiFi module of terminal device, with Terminal device is set to access internet by mobile data network, and after closing the first preset time after WiFi module, then Secondary opening WiFi module simultaneously repeats above-mentioned detection process, so that terminal device is preferentially using the base of WiFi network access internet On plinth, the power consumption of terminal device has been saved.
Fig. 2 is the flow chart according to the terminal device method for connecting network shown in another exemplary embodiment, the present embodiment The terminal device method for connecting network of offer can be applied to any while have WiFi network concatenation ability and mobile data The terminal device of network-connectivity, as shown in Fig. 2, method includes the following steps:
In step s 201, the WiFi module for the equipment that opens a terminal.
Since terminal device needs to detect WiFi network by WiFi module, terminal device is in order to determine whether It can be accessed before internet by WiFi network, it is necessary first to determine whether WiFi module is in the open state.If terminal is set Standby WiFi module is in close state, then the WiFi module for the equipment that needs first to open a terminal.
In step S202, whether detection terminal device can access internet by WiFi network.
This step is identical as step S101 in Fig. 1, when detecting that terminal device can access internet by WiFi network When, step S203 is executed, it is no to then follow the steps S204.
In step S203, terminal device accesses internet by WiFi network.Also, optionally, terminal device can be with Close mobile data module.Since mobile data module is also required to the electric energy of consumption terminal device in the on state, In the state that terminal device accesses internet by WiFi network, the mobile data module of terminal device can be closed, thus Further save the power consumption of terminal device.It should be noted that since terminal device will also be carried out by mobile communications network Voice calling service, if the module for carrying out voice communication processing is closed, terminal device possibly can not receive incoming call. Therefore the mobile communication module in terminal device can be divided into mobile data module and mobile voice module, in the present embodiment In, it is simply turned off for providing the mobile data module of mobile data service for terminal device.
In step S204, if terminal device can not access internet by WiFi network in the second preset time, Close the WiFi module of terminal device.
When terminal device connects WiFi network, it may be necessary to carry out verification process, which may need certain time.Separately Outside, although terminal device due to channel disturbance, may be moved to coverage hole in known WiFi network coverage area Situations such as, there is of short duration the case where can not accessing WiFi network.Or there is of short duration failure in the fixed network of WiFi network connection Or there is of short duration failure in the internet address of terminal device access.Above situation, which all may cause terminal device, can not pass through WiFi Network insertion internet.But above-mentioned reason, which belongs to, to be restored in a short time, and terminal device can pass through again after recovery WiFi network accesses the case where internet.And if detect terminal device can not by WiFi network access internet after, directly WiFi module is closed, then after above situation restores normal, and the opening of WiFi module can be triggered, frequently opens, close in this way WIFi module will increase the power consumption of terminal device instead.
Therefore after detecting that terminal device can not access internet by WiFi network in step S202, one can be waited Preset second preset time, if terminal device can not all be interconnected by WiFI network insertion in the second preset time range Net, just the WiFi module of terminal device is then closed in confirmation.Second preset time can be the time of systemic presupposition, be also possible to User oneself setting.
In addition, it is also contemplated that WiFi network is fixed deployment, if WiFi network access interconnection is used in terminal device Net, and terminal device is not in moving condition, when detecting that terminal device can not access internet by WiFi network at this time, Can determine be WiFi network or WiFi network connection fixed network go wrong caused by.If closing WiFi at this time Module, then after WiFi network recovery, terminal device also needs to open WiFi module.Therefore, if detecting, terminal device can not When accessing internet by WiFi network, the moving condition of terminal device can also be judged simultaneously, if terminal device is not In moving condition, then WiFi module can not be closed.
In step S205, the mobile data module for the equipment that opens a terminal, so that terminal device passes through mobile data network Access internet.
After closing the WiFi module of terminal device, interconnected to access terminal device by mobile data network Net, first also it needs to be determined that whether the mobile data module of terminal device is in the open state.If mobile data module is in and beats Open state then directly can access internet, the mobile data for the equipment that otherwise needs first to open a terminal by mobile data network Module just can make middle end equipment access internet by mobile data network.
In step S206, after the first preset time after WiFi module is closed in step S204, it is again turned on WiFi Module, i.e. execution step S201.
In the present embodiment, it by the way that reasonable first preset time and the second preset time is arranged, then can save well The about power consumption of terminal device, and user still preferentially can access internet using WiFi network, maintain the good body of user It tests.
Since the present embodiment is to detect that terminal device can not be mutual by WiFi network access in the second preset time After networking, the WiFi module of terminal device is just closed, internet is just then accessed by mobile data network.Therefore guarantee Terminal device preferentially accesses internet by WiFi network, and when that can not access internet by WiFi network, closes WiFi module, while avoiding and frequently switching on WiFi module and the power consumption of terminal device is caused to increase, to further save The power consumption of terminal device.
Fig. 3 is a kind of block diagram of terminal device network connection device embodiment one shown according to an exemplary embodiment, As shown in Fig. 3, the terminal device network connection device 30, comprising:
Detection module 31, is configured as whether detection terminal device can access internet by WiFi network.
Control module 32 interconnects if being configured as detection module 31 and determining that terminal device can not be accessed by WiFi network Net then closes the WiFi module of terminal device, so that terminal device accesses internet by mobile data network;Closing WiFi After the first preset time after module, it is again turned on WiFi module and controls detection module 31 and detect whether terminal device can lead to WiFi network access internet is crossed, until terminal device can access internet by WiFi network.
Terminal device network connection device provided in this embodiment is for realizing terminal device network connection side shown in FIG. 1 The technical solution of method, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Optionally, in the embodiment shown in fig. 3, detection module 31 are specifically configured to detect terminal by WiFi module Whether equipment accesses known WiFi network or whether accesses unknown WiFi network, it is known that WiFi network is that terminal device once connect The WiFi network entered, unknown WiFi network are the WiFi network that the terminal device did not accessed.Terminal device can not pass through WiFi network accesses internet, comprising: terminal device does not access known WiFi network or terminal device accesses unknown Wi Fi net Network, then terminal device can not access internet by WiFi network.
Optionally, in the embodiment shown in fig. 3, detection module 31 are specifically additionally configured to detect eventually by WiFi module Whether end equipment can access internet data by the WiFi network accessed;Terminal device can not be accessed by WiFi network Internet, comprising: terminal device does not access known WiFi network or terminal device accesses unknown WiFi network, and terminal is set Standby to access internet data by the WiFi network accessed, then terminal device can not be accessed by WiFi network and be interconnected Net.
Optionally, in the embodiment shown in fig. 3, control module 32, if it is default second to be specifically configured to terminal device Internet can not be accessed by WiFi network in time, then close the WiFi module of terminal device.
Optionally, in the embodiment shown in fig. 3, control module 32 are additionally configured to detect terminal device in detection module Before whether internet being accessed by WiFi network, WiFi module is opened.
Optionally, in the embodiment shown in fig. 3, control module 32 are additionally configured in the WiFi mould for closing terminal device After block, the mobile data module for the equipment that opens a terminal, so that terminal device accesses internet by mobile data network.
Optionally, in the embodiment shown in fig. 3, control module 32 are additionally configured to, if detection module 31 determines that terminal is set It is standby internet to be accessed by WiFi network, then close mobile data module.
The foregoing describe the inner function module of terminal device network connection device and structural representation, substantial execution Main body should be terminal device, and Fig. 4 is a kind of block diagram of the entity of terminal device shown according to an exemplary embodiment, reference Fig. 4, the terminal device can implement are as follows: processor 41, WiFi module 42, mobile data module 43 and at storage Manage the memory 44 of 41 executable instruction of device.Terminal device can access internet by WiFi module 42, can also pass through shifting Dynamic data module 43 accesses internet.
Processor 41 is configured as: whether detection terminal device can access internet by WiFi network;If terminal is set It is standby to access internet by WiFi network, then WiFi module 42 is closed, so that terminal device is connect by mobile data network Enter internet;After closing the first preset time after WiFi module 42, it is again turned on WiFi module 42 and detects terminal device Whether internet can be accessed by WiFi network, until terminal device can access internet by WiFi network.
Optionally, whether processor 41 are specifically configured to access by the detection terminal device of WiFi module 42 known Whether WiFi network accesses unknown WiFi network, it is known that and WiFi network is the WiFi network that terminal device once accessed, Unknown WiFi network is the WiFi network that terminal device did not accessed;Terminal device can not access internet by WiFi network, It include: that terminal device does not access known WiFi network or the unknown WiFi network of terminal device access, then terminal device can not lead to Cross WiFi network access internet.
Optionally, whether processor 41 are additionally configured to detect terminal device can be by having connect by WiFi module 42 The WiFi network access internet data entered;Terminal device can not access internet by WiFi network, comprising: terminal device is not In known WiFi network coverage area or terminal device is in unknown WiFi network coverage area, and terminal device Internet data can not be accessed by the WiFi network accessed, then terminal device can not access internet by WiFi network.
Optionally, processor 41, can not be by WiFi net in the second preset time if being specifically configured to terminal device Network accesses internet, then closes the WiFi module 42 of terminal device.
Optionally, processor 41 are additionally configured to interconnect whether detection terminal device can access by WiFi network Before net, WiFi module 42 is opened.
Optionally, processor 41 are additionally configured to after the WiFi module 42 for closing terminal device, and open a terminal equipment Mobile data module 43 so that terminal device accesses internet by mobile data network.
Optionally, processor 41 are closed if internet can be accessed by WiFi network by being additionally configured to terminal device Mobile data module 43.
In the embodiment of the terminal device of above- mentioned information, it should be appreciated that the processor can be central processing unit (Central Processing Unit, CPU), can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc., and aforementioned Memory can be read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory, hard disk or solid state hard disk.The step of method in conjunction with disclosed in the embodiment of the present disclosure, can Execute completion to be embodied directly in hardware processor, or in processor hardware and software module combination execute completion.
Fig. 5 is a kind of block diagram of terminal device 500 shown according to an exemplary embodiment.For example, the terminal device 500 Can be smart phone, tablet computer etc. can access the terminal device of internet by wireless network.Referring to Fig. 5, terminal is set Standby 500 may include following one or more components: processing component 502, memory 504, power supply module 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514 and communication component 516.
The integrated operation of the usual controlling terminal equipment 500 of processing component 502, such as with display, data communication, multimedia behaviour Make and record operates associated operation.Processing component 502 may include one or more processors 520 to execute instruction, with It performs all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, convenient for place Manage the interaction between component 502 and other assemblies.For example, processing component 502 may include multi-media module, to facilitate multimedia Interaction between component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in terminal device 500.These data Example include any application or method for being operated on terminal device 500 instruction, Various types of data, message, figure Piece, video etc..Memory 504 can be real by any kind of volatibility or non-volatile memory device or their combination Existing, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is only It reads memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic Disk or CD.
Power supply module 506 provides electric power for the various assemblies of terminal device 500.Power supply module 506 may include power supply pipe Reason system, one or more power supplys and other with for terminal device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between the terminal device 500 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when terminal device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 504 or via logical Believe that component 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..
Sensor module 514 includes one or more sensors, for providing the state of various aspects for terminal device 500 Assessment.For example, sensor module 514 can detecte the state that opens/closes of terminal device 500, the relative positioning of component, example As the component be terminal device 500 display and keypad, sensor module 514 can also detect terminal device 500 or The position change of 500 1 components of terminal device, the existence or non-existence that user contacts with terminal device 500, terminal device 500 The temperature change of access or acceleration/deceleration and terminal device 500.Sensor module 514 may include proximity sensor, be configured For detecting the presence of nearby objects without any physical contact.Sensor module 514 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between terminal device 500 and other equipment. Terminal device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one In example property embodiment, communication component 516 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.In the present embodiment, communication component 516 includes at least WiFi mould Block 522 and mobile data module 524.
In the exemplary embodiment, terminal device 500 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of terminal device 500 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by terminal device 500 When processing component 502 executes, so that the processing component 502 of terminal device 500 is able to carry out a kind of terminal device network connection, it should Method includes:
Whether detection terminal device can access internet by WiFi network;
If the terminal device can not access internet by WiFi network, the WiFi module of the terminal device is closed 52 2, so that the terminal device accesses internet by mobile data network;
After closing the first preset time after the WiFi module 522, it is again turned on the WiFi module 522 and detects Whether the terminal device can access internet by WiFi network, until the terminal device can be connect by WiFi network Enter internet, so that the terminal device accesses internet by WiFi network.
Further, whether the detection terminal device can access internet by WiFi network, comprising:
Whether detect the terminal device by the WiFi module 522 is to access known WiFi network or access unknown WiF i net, the known WiFi network are the WiFi network that the terminal device once accessed, and the unknown WiFi network is The WiFi network that the terminal device did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then described Terminal device can not access internet by WiFi network.
Further, described to detect whether the terminal device does not access known WiFi net by the WiFi module 522 Whether network accesses after unknown WiFi network, further includes:
Detect whether the terminal device can access mutually by the WiFi network accessed by the WiFi module 522 Networking data;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and institute Internet data can not be accessed by the WiFi network accessed by stating terminal device, then the terminal device can not pass through WiFi net Network accesses internet.
Further, if the terminal device can not access internet by WiFi network, the terminal is closed The WiFi module 522 of equipment, comprising:
If the terminal device can not access internet by WiFi network in the second preset time, the end is closed The WiFi module 522 of end equipment.
Further, whether the detection terminal device can be accessed before internet by WiFi network, further includes:
Open the WiFi module 522.
Further, after the WiFi module 522 for closing the terminal device, further include;
The mobile data module 524 of the terminal device is opened, so that the terminal device is connect by mobile data network Enter internet.
Further, if the terminal device can access internet by WiFi network, the mobile data is closed Module 524.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (18)

1. a kind of terminal device method for connecting network characterized by comprising
Detect whether terminal device can access internet by Wireless Fidelity WiFi network;
If the terminal device can not access internet by WiFi network, the WiFi module of the terminal device is closed, with The terminal device is set to access internet by mobile data network;
After closing the first preset time after the WiFi module, it is again turned on the WiFi module and detects the terminal and set It is standby whether internet to be accessed by WiFi network, until the terminal device can access internet by WiFi network, So that the terminal device accesses internet by WiFi network;
Whether the detection terminal device can access internet by WiFi network, comprising:
Detecting the terminal device by the WiFi module is to access known WiFi network or whether access unknown WiFi net, The known WiFi network is the WiFi network that the terminal device once accessed, and the unknown WiFi network is the terminal The WiFi network that equipment did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then the terminal Equipment can not access internet by WiFi network.
2. the method according to claim 1, wherein described detect the terminal device by the WiFi module Known WiFi network whether is not accessed or whether is accessed after unknown WiFi network, further includes:
Detect whether the terminal device can interconnect netting index by the WiFi network access accessed by the WiFi module According to;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and the end End equipment can not access internet data by the WiFi network accessed, then the terminal device can not be connect by WiFi network Enter internet.
3. method according to claim 1 or 2, which is characterized in that if the terminal device can not pass through WiFi net Network accesses internet, then closes the WiFi module of the terminal device, comprising:
If the terminal device can not access internet by WiFi network in the second preset time, closes the terminal and set Standby WiFi module.
4. method according to claim 1 or 2, which is characterized in that whether the detection terminal device can pass through Wi Fi Before network insertion internet, further includes:
Open the WiFi module.
5. method according to claim 1 or 2, which is characterized in that the WiFi module for closing the terminal device it Afterwards, further include;
The mobile data module of the terminal device is opened, is interconnected so that the terminal device is accessed by mobile data network Net.
6. method according to claim 1 or 2, which is characterized in that further include:
If the terminal device can access internet by WiFi network, the mobile data module is closed.
7. a kind of terminal device network connection device characterized by comprising
Detection module, is configured as whether detection terminal device can access internet by Wireless Fidelity WiFi network;
Control module interconnects if being configured as the detection module and determining that the terminal device can not be accessed by WiFi network Net then closes the WiFi module of the terminal device, so that the terminal device accesses internet by mobile data network;? After the first preset time after closing the WiFi module, it is again turned on the WiFi module and controls the detection module detection Whether the terminal device can access internet by WiFi network, until the terminal device can be connect by WiFi network Enter internet, so that the terminal device accesses internet by WiFi network;
Be specifically configured to detect by the WiFi module terminal device whether access known WiFi network or whether Unknown WiFi network is accessed, the known WiFi network is the WiFi network that the terminal device once accessed, described unknown WiFi network is the WiFi network that the terminal device did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then the terminal Equipment can not access internet by WiFi network.
8. device according to claim 7, which is characterized in that the detection module is specifically additionally configured to by described WiFi module detects whether the terminal device can access internet data by the WiFi network accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and the end End equipment can not access internet data by the WiFi network accessed, then the terminal device can not be connect by WiFi network Enter internet.
9. device according to claim 7 or 8, which is characterized in that the control module, if being specifically configured to the end End equipment can not access internet by WiFi network in the second preset time, then close the Wi Fi mould of the terminal device Block.
10. device according to claim 7 or 8, which is characterized in that the control module is additionally configured in the inspection Before whether survey module detection terminal device can access internet by WiFi network, the WiFi module is opened.
11. device according to claim 7 or 8, which is characterized in that the control module is additionally configured to closing institute After the WiFi module for stating terminal device, the mobile data module of the terminal device is opened, so that the terminal device passes through Mobile data network accesses internet.
12. device according to claim 7 or 8, which is characterized in that the control module is additionally configured to, if the inspection It surveys module and determines that the terminal device can access internet by WiFi network, then close the mobile data module.
13. a kind of terminal device characterized by comprising processor, Wireless Fidelity WiFi module, mobile data module and Memory for storage processor executable instruction;
The processor is configured to:
Whether detection terminal device can access internet by WiFi network;
If the terminal device can not access internet by WiFi network, the WiFi module is closed, so that the terminal Equipment accesses internet by mobile data network;
After closing the first preset time after the WiFi module, it is again turned on the WiFi module and detects the terminal and set It is standby whether internet to be accessed by WiFi network, until the terminal device can access internet by WiFi network, So that the terminal device accesses internet by WiFi network;
The processor is specifically configured to detect whether the terminal device accesses known WiFi net by the WiFi module Whether network accesses unknown WiFi network, and the known WiFi network is the WiFi net that the terminal device once accessed Network, the unknown WiFi network are the WiFi network that the terminal device did not accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, then the terminal Equipment can not access internet by WiFi network.
14. terminal device according to claim 13, which is characterized in that the processor is additionally configured to by described WiFi module detects whether the terminal device can access internet data by the WiFi network accessed;
The terminal device can not access internet by WiFi network, comprising:
The terminal device does not access known WiFi network or the terminal device accesses unknown WiFi network, and the end End equipment can not access internet data by the WiFi network accessed, then the terminal device can not be connect by WiFi network Enter internet.
15. terminal device described in 3 or 14 according to claim 1, which is characterized in that the processor, if being specifically configured to The terminal device can not access internet by WiFi network in the second preset time, then close the terminal device WiFi module.
16. terminal device described in 3 or 14 according to claim 1, which is characterized in that the processor is additionally configured to examining Before whether survey terminal device can access internet by WiFi network, the WiFi module is opened.
17. terminal device described in 3 or 14 according to claim 1, which is characterized in that the processor is additionally configured to closing It closes after the WiFi module of the terminal device, opens the mobile data module of the terminal device, so that the terminal device Internet is accessed by mobile data network.
18. terminal device described in 3 or 14 according to claim 1, which is characterized in that the processor, if being additionally configured to institute Internet can be accessed by WiFi network by stating terminal device, then closes the mobile data module.
CN201610113603.1A 2016-02-29 2016-02-29 Terminal device method for connecting network, device and terminal device Active CN105792328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610113603.1A CN105792328B (en) 2016-02-29 2016-02-29 Terminal device method for connecting network, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610113603.1A CN105792328B (en) 2016-02-29 2016-02-29 Terminal device method for connecting network, device and terminal device

Publications (2)

Publication Number Publication Date
CN105792328A CN105792328A (en) 2016-07-20
CN105792328B true CN105792328B (en) 2019-04-16

Family

ID=56386669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610113603.1A Active CN105792328B (en) 2016-02-29 2016-02-29 Terminal device method for connecting network, device and terminal device

Country Status (1)

Country Link
CN (1) CN105792328B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603436A (en) * 2016-12-01 2017-04-26 美的智慧家居科技有限公司 Method and system for intelligent device connecting to network
CN106814040A (en) * 2017-03-18 2017-06-09 南京科捷分析仪器有限公司 Full-automatic online Element detection instrument
CN107426782A (en) * 2017-08-24 2017-12-01 深圳双创科技发展有限公司 Network switching terminal and related product
CN108777880A (en) * 2018-06-01 2018-11-09 Oppo广东移动通信有限公司 Method for connecting network, device, terminal and storage medium
CN110366273B (en) * 2019-07-25 2021-06-22 维沃移动通信有限公司 Communication method and related equipment
CN111106846A (en) * 2019-12-25 2020-05-05 惠州Tcl移动通信有限公司 Method, system and mobile terminal for reducing SAR value

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438079A (en) * 2011-09-22 2012-05-02 中兴通讯股份有限公司 Mobile terminal and control method of wireless fidelity module thereof
CN103686900A (en) * 2012-09-26 2014-03-26 中国电信股份有限公司 A method for a mobile station to be switched to a WiFi network
CN104427538A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 WIFI-carried terminal energy saving processing method and device
CN105142234A (en) * 2015-08-12 2015-12-09 Tcl集团股份有限公司 Network connection method and network connection system of intelligent terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979097B2 (en) * 2008-03-18 2011-07-12 Kyocera Corporation Power management for multimode wireless communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438079A (en) * 2011-09-22 2012-05-02 中兴通讯股份有限公司 Mobile terminal and control method of wireless fidelity module thereof
CN103686900A (en) * 2012-09-26 2014-03-26 中国电信股份有限公司 A method for a mobile station to be switched to a WiFi network
CN104427538A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 WIFI-carried terminal energy saving processing method and device
CN105142234A (en) * 2015-08-12 2015-12-09 Tcl集团股份有限公司 Network connection method and network connection system of intelligent terminal

Also Published As

Publication number Publication date
CN105792328A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105792328B (en) Terminal device method for connecting network, device and terminal device
RU2648612C2 (en) Method and device for accessing operator network
KR101956226B1 (en) Wireless audio output devices
CN105553963B (en) The control method and device of positioning service
US9589118B2 (en) Context-based authentication mode selection
KR101678038B1 (en) Method, apparatus, program, and recording medium for automatically connecting wireless network
CN104837154B (en) The control method and device of wireless access points
CN105554884A (en) Method and device for paging response
CN106454801B (en) Method for switching network and terminal
CN109658927A (en) Wake-up processing method, device and the management equipment of smart machine
CN105955441B (en) Application management method and device
EP3668126A1 (en) Unmanned aerial vehicle access method and device
CN103167184A (en) Terminal device and control method thereof
US11968557B2 (en) MDT information notifying method and MDT information receiving method
CN106454998A (en) Wireless local area network access method and apparatus, and terminal
CN104219391A (en) Communication request responding method and device and mobile terminal based on double card
CN107635231A (en) Control method, device and the mobile terminal of focus WIFI switches
CN105068651A (en) Method, device, terminal and server for controlling alarm clock
US11641618B2 (en) Cell access method and apparatus
CN105682071A (en) Wireless local area network information configuring method, device and system
US9723639B2 (en) Communication method and terminal
CN106357610B (en) Communication means and device
CN105101125A (en) Method and device for setting call forwarding
CN109451840A (en) District staying method, device and user equipment
CN105101078A (en) Information prompting method, terminal and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant