CN105759934B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN105759934B
CN105759934B CN201410805700.8A CN201410805700A CN105759934B CN 105759934 B CN105759934 B CN 105759934B CN 201410805700 A CN201410805700 A CN 201410805700A CN 105759934 B CN105759934 B CN 105759934B
Authority
CN
China
Prior art keywords
network
electronic equipment
working condition
standby mode
standby
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
CN201410805700.8A
Other languages
Chinese (zh)
Other versions
CN105759934A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410805700.8A priority Critical patent/CN105759934B/en
Publication of CN105759934A publication Critical patent/CN105759934A/en
Application granted granted Critical
Publication of CN105759934B publication Critical patent/CN105759934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

This application discloses a kind of information processing methods, for solving the technical problem more poor to the active control ability of network connection of electronic equipment in the prior art, the described method includes: detection connect whether disconnect with the first network of first network when the electronic equipment is in standby;If disconnecting, working condition is switched to from the standby mode;Under the working condition, the second network connection is established with the second network, so that the electronic equipment restores network connection;It controls the electronic equipment and the standby mode is switched back by the working condition.Disclosed herein as well is corresponding electronic equipments.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of information processing methods and electronic equipment.
Background technique
With flourishing for electronics market and Internet technology, such as mobile phone, computer, tablet computer etc. are various Type electronic device is also continuously available universal, and people can be enjoyed by various types of electronic equipments and be brought with development in science and technology The comfortable life of pleasure, as the improvement of people's living standards, user is also higher and higher to the various requirement of electronic equipment.
For example, enhancing the usage experience of user in order to improve the multifunction of electronic equipment and otherness as far as possible, It is proposed AOAC (Always On Always Connected is always connected online) function.By taking laptop as an example, have The laptop of AOAC function, even at suspend mode, remaining on can keep being connected to the network, so as in lower power consumption In the state of some network tasks are still executed by the network of connection, to facilitate user's processing business or work.For example, with Family is downloaded data using the laptop, receives mail, or makes some application programs such as QQ (a kind of instant chat is soft Part) it is always maintained at online reception message, etc..
However, in the prior art, when electronic equipment is in standby mode or suspend mode and keeps network connection, example It, should if causing the network interruption currently connected due to some accidental causes if electronic equipment is when executing AOAC function Electronic equipment can not then continue to use AOAC function, naturally also can not just be further continued for executing the preceding various nets carried out that break in a network Network task.
It can be seen that network connection is once disconnected in the prior art when electronic equipment is in standby mode or suspend mode It opens, electronic equipment can not just continue to keep network connection state, to carry out before also can not just continuing to execute network interruption each Kind network task, that is, the electronic equipment technical problem poor to the control ability of network connection exists in the prior art.
Summary of the invention
The embodiment of the present application provides a kind of information processing method and electronic equipment, for solving electronic equipment in the prior art The technical problem poor to the control ability of network connection.
On the one hand, the embodiment of the present application provides a kind of information processing method, is applied in electronic equipment, the electronic equipment It can be carried out data transmission by network, which comprises
When the electronic equipment is in standby, detection connect whether disconnect with the first network of first network;
If disconnecting, working condition is switched to from the standby mode;
Under the working condition, the second network connection is established with the second network, so that the electronic equipment restores network Connection;
It controls the electronic equipment and the standby mode is switched back by the working condition.
Optionally, if disconnecting, working condition is switched to from the standby mode, is specifically included:
If disconnecting, detect whether that there are second networks in the said standby state;
If it exists, then the working condition is switched to from the standby mode.
Optionally, it detects whether in the said standby state there are after second network, the method also includes:
If it does not exist, the standby mode is kept, and is continued to test according to the first predetermined period with the presence or absence of described second Network.
Optionally, if disconnecting, working condition is switched to from the standby mode, is specifically included:
If disconnecting, the working condition is switched to from the standby mode, and detect whether to deposit under the working condition In second network;
If it exists, second network is determined.
Optionally, it if disconnecting, is detected whether under the working condition there are after second network, the method Further include:
If it does not exist, the working condition is kept, and is continued to test according to the second predetermined period with the presence or absence of described second Network.
Optionally, it detects whether to specifically include there are second network:
Download the effective wireless network library stored in the electronic equipment;Wherein, include in effective wireless network library With the valid wireless network for being less than pre-determined distance at a distance from the electronic equipment, the valid wireless network refers to the electricity Sub- equipment can pass through the wireless network of its safety verification;
According to preset rules, whether judge in effective wireless network library comprising second network;Wherein, if it is described Include second network in effective wireless network library, then shows that there are second networks.
Optionally, it detects whether to specifically include there are second network:
Judge whether the electronic equipment has client identification module SIM card, and works in shifting corresponding with the SIM card Dynamic communication network;Wherein, if so, showing that there are second networks.
Optionally, it is detecting whether there are after second network, the method also includes:
If it does not exist, it generates and exports prompt information;Wherein, the prompt information uses the electronic equipment for prompting User: the electronic equipment has disconnected network connection.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, and the electronic equipment can be carried out by network Data transmission, the electronic equipment include:
First detection module, for detecting the first net with first network when the electronic equipment is in standby Whether network connection disconnects;
First switching module, if switching to working condition from the standby mode for disconnecting;
Network connecting module, for the second network connection being established with the second network, so that described under the working condition Electronic equipment restores network connection;
Second switching module switches back into the standby mode by the working condition for controlling the electronic equipment.
Optionally, first switching module is specifically used for:
If disconnecting, detect whether that there are second networks in the said standby state;
If it exists, then the working condition is switched to from the standby mode.
Optionally, the electronic equipment further includes the second detection module, is specifically used for:
It detects whether if it does not exist, to keep the standby shape there are after second network in the said standby state State, and continue to test according to the first predetermined period with the presence or absence of second network.
Optionally, first switching module is specifically used for:
If disconnecting, the working condition is switched to from the standby mode, and detect whether to deposit under the working condition In second network;
If it exists, second network is determined.
Optionally, the electronic equipment further includes third detection module, is specifically used for:
It detects whether if it does not exist, to keep the work shape there are after second network under the working condition State, and continue to test according to the second predetermined period with the presence or absence of second network.
Optionally, first switching module is specifically used for detecting whether there are second network, specifically:
Download the effective wireless network library stored in the electronic equipment;Wherein, include in effective wireless network library With the valid wireless network for being less than pre-determined distance at a distance from the electronic equipment, the valid wireless network refers to the electricity Sub- equipment can pass through the wireless network of its safety verification;
According to preset rules, whether judge in effective wireless network library comprising second network;Wherein, if it is described Include second network in effective wireless network library, then shows that there are second networks.
Optionally, first switching module is specifically used for detecting whether there are second network, specifically:
Judge whether the electronic equipment has client identification module SIM card, and works in shifting corresponding with the SIM card Dynamic communication network;Wherein, if so, showing that there are second networks.
Optionally, the electronic equipment further includes output module, is specifically used for:
It is detecting whether if it does not exist, to generate there are after second network and export prompt information;Wherein, described Prompt information is used to prompt the user using the electronic equipment: the electronic equipment has disconnected network connection.
In the embodiment of the present application, when electronic equipment is in the standby mode, once it detects and the first network First network connect and disconnect, actively from the standby mode will be switched to the working condition, and in the work shape Under state, then with second network the second network connection is established, so that the electronic equipment can remain network connection, and The standby mode is switched back into again after restoring network connection, that is, when the electronic equipment is in the standby mode, even if The network (the i.e. described first network) for due to some accidental causes the electronic equipment currently being connected is disconnected, the electronics Equipment can also in time, initiatively be attached with second network, so that the electronic equipment as far as possible can be again Under the premise of low-power consumption, still keep network connection to execute some network tasks.
For compared with the existing technology, by the technical solution in the embodiment of the present application, the electronic equipment is in use example During AOAC function, if the network currently connected is surprisingly disconnected, the electronic equipment can also in time again with institute It states the second network to be attached so that the electronic equipment remains the state of network connection, improves the electronic equipment and exist Active control ability when being connected to the network enables the electronic equipment execute within user's desired period as far as possible AOAC function.
Further, with after second network connection, the electronic equipment can continue in the standby mode It works, that is to say, that the electronic equipment can continue under the low-power consumption working condition of standby mode or suspend mode The network task carried out before network disconnects is executed, for example, file of downloading data or transmit can be continued, that is, the electronics is set It is standby to be performed simultaneously set by user or desired network task under the premise of reducing oneself power consumption as far as possible, it can be as far as possible That improves the electronic equipment uses time and working efficiency, enhances the practicability of the electronic equipment, and then improve user's Usage experience.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Apply embodiment, for those of ordinary skill in the art, without creative efforts, can also basis mention The attached drawing of confession obtains other attached drawings.
Fig. 1 is the broad flow diagram of information processing method in the embodiment of the present application;
Fig. 2 is the primary structure block diagram of electronic equipment in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of information processing method, is applied in electronic equipment, the electronic equipment can lead to Network is crossed to carry out data transmission, which comprises when the electronic equipment is in standby, detection and first network Whether first network connection disconnects;If disconnecting, working condition is switched to from the standby mode;Under the working condition, with Second network establishes the second network connection, so that the electronic equipment restores network connection;The electronic equipment is controlled by described Working condition switches back into the standby mode.
In the embodiment of the present application, when electronic equipment is in the standby mode, once it detects and the first network First network connect and disconnect, actively from the standby mode will be switched to the working condition, and in the work shape Under state, then with second network the second network connection is established, so that the electronic equipment can remain network connection, and The standby mode is switched back into again after restoring network connection, that is, when the electronic equipment is in the standby mode, even if The network (the i.e. described first network) for due to some accidental causes the electronic equipment currently being connected is disconnected, the electronics Equipment can also in time, initiatively be attached with second network, so that the electronic equipment as far as possible can be again Under the premise of low-power consumption, still keep network connection to execute some network tasks.
For compared with the existing technology, by the technical solution in the embodiment of the present application, the electronic equipment is in use example During AOAC function, if the network currently connected is surprisingly disconnected, the electronic equipment can also in time again with institute It states the second network to be attached so that the electronic equipment remains the state of network connection, improves the electronic equipment and exist Active control ability when being connected to the network enables the electronic equipment execute within user's desired period as far as possible AOAC function.
Further, with after second network connection, the electronic equipment can continue in the standby mode It works, that is to say, that the electronic equipment can continue under the low-power consumption working condition of standby mode or suspend mode The network task carried out before network disconnects is executed, for example, file of downloading data or transmit can be continued, that is, the electronics is set It is standby to be performed simultaneously set by user or desired network task under the premise of reducing oneself power consumption as far as possible, it can be as far as possible That improves the electronic equipment uses time and working efficiency, enhances the practicability of the electronic equipment, and then improve user's Usage experience.
For the purposes, technical schemes and advantages of the application are more clearly understood, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, shall fall in the protection scope of this application.In In the case where not conflicting, the features in the embodiments and the embodiments of the present application can mutual any combination.Although also, flowing Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein The step of.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
In the embodiment of the present application, the electronic equipment can refer to laptop, mobile phone, PAD (tablet computer) etc. Different electronic equipments.Meanwhile the electronic equipment can be carried out data transmission by network, for example, connection can be passed through Network receiving and dispatching mail, download/upload data, reception communication message etc..
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Referring to Figure 1, the embodiment of the present application provides a kind of information processing method, and the method can be applied to electronic equipment In, the electronic equipment can be carried out data transmission by network, and the main flow of the method is described as follows:
Step 101: when the electronic equipment is in standby, detection connect with the first network of first network whether It disconnects.
In the embodiment of the present application, the standby mode can refer to the electronic equipment operating mode be standby mode, Electronic equipment state in which when sleep pattern or suspend mode.In the said standby state, the portion of the electronic equipment Point hardware module is in close state or running frequency is lower, and the power consumption of the electronic equipment is lower, can extend as far as possible Use the time.It is to keep first network to connect with the first network when the electronic equipment is in the standby mode, And then some network tasks can be executed by the first network.Wherein, the first network connection can refer to the electricity Sub- equipment by way of wirelessly or non-wirelessly with the connection of local area network, Wide Area Network or mobile communications network.
In the specific implementation process, when being in the standby mode, the electronic equipment can by the first network To be to be carrying out a certain item function, for example, being carrying out AOAC function, wherein AOAC function refers to: electronic equipment is being connected It is entered back into after network and is still able to maintain network connection after sleep pattern or suspend mode, and then under sleep pattern or suspend mode still Data communication can be so carried out with network, such as receives mail or downloaded data etc., that is, in first operating mode Under, the electronic equipment can execute such as receiving and dispatching mail or downloaded data etc. network task.
During executing AOAC function, the electronic equipment is to connect with the first network and keep networking state , however, due to some the connection of the electronic equipment and the first network may disconnect, for example, by wired The cable interface of the first network of connection surprisingly loosens, such as, the electronic equipment is a certain beyond its connection The effective coverage range of WIFI (Wireless Fidelity, adopting wireless fidelity technology) network, etc. other possible reasons.
In addition, the electronic equipment can real-time, timing or the connection feelings being periodically detected between the first network Condition disconnects once detecting with the connection of the first network, and the information processing method in the embodiment of the present application enters step 102。
Step 102: if disconnecting, switching to working condition from the standby mode.
That is, the electronic equipment once detects that the first network connection disconnects, it will be from the standby shape State switches to the working condition so that the electronic equipment can under the working condition again with other attachable networks Establish network connection.
Wherein, the working condition is the normal operating conditions of the electronics, under the working condition, the electronics The power consumption of equipment is higher.By taking the electronic equipment is laptop as an example, second state for example can be ACPI (Advanced Configuration and Power Management Interface, advanced configuration and power management connect Mouthful) in S0 state.
In addition, because in general, electronic equipment needs network interface card full speed running, for example, notebook is electric in networking For brain when connecting WLAN, the wireless network card built in laptop then needs full speed running, and only in the work Under state, the hardware configurations such as wireless network card can just be in and open simultaneously full speed running, so, it is described in present application example Electronic equipment needs to execute networking task in the normal condition, that is, the electronic equipment once detect and it is determining with it is described The connection of first network disconnects, and will automatically switch to the working condition, and in the working condition and attachable network Network connection is established, so that the electronic equipment can restore to be connected to the network as early as possible.
In the specific implementation process, the electronic equipment can be detects second network under two following situations There are situations.
The first situation:
Optionally, in the embodiment of the present application, if disconnecting, working condition is switched to from the standby mode, specifically can wrap It includes:
If disconnecting, detect whether that there are second networks in the said standby state;
If it exists, then the working condition is switched to from the standby mode.
It is disconnected that is, the electronic equipment is once detected with the connection of the first network, will detect that network is disconnected When opening, detect whether with the presence of second network, it, just can be from described standby only after determining with the presence of second network State switches to the working condition, that is to say, that leads in the embodiment of the present application it is noted that the electronic equipment is in institute State detect and determine under standby mode second network there are situations.
Wherein, second network and the first network can be the same network, alternatively, second network and institute Stating first network can be different networks.
For example, as the entitled WIFI66 of the first network, due to temporarily powering off the of the electronic equipment and WIFI66 One network connection disconnects, and in the case where restoring electricity in time, the electronic equipment can establish described the with WIFI66 again Two network connections, at this point, second network and the first network are the same network.
In another example the electronic equipment is moved out due to physics as the first network entitled WIFI66 The effective coverage range of WIFI66, and enter the effective coverage range of WIFI88, the electronic equipment can with it is entitled Second network of WIFI88 establishes second network connection, and second network and the first network are not at this time Same network.
More preferably, second network can be Wireless LAN, to facilitate the electronic equipment with described first After the first network connection of network disconnects, it can be attached automatically with second network.
In addition, in the embodiment of the present application, if being detected in the said standby state with the presence of second network, Ke Yi Second network is determined under the standby mode, or the state of the electronic equipment can switched by the standby mode The second network that will test again after being in working condition is determined as second network.
Optionally, it in the embodiment of the present application, is detected whether in the said standby state there are after second network, institute The method of stating can also include:
If it does not exist, the standby mode is kept, and is continued to test according to the first predetermined period with the presence or absence of described second Network.
That is, the electronic equipment, when detecting that the first network connection disconnects, detection in the said standby state is No there are second networks, if not detecting the presence of second network, the electronic equipment can keep institute Standby mode is stated, and persistently detects whether that there are second networks according to first predetermined period, for example, due to the electricity Sub- equipment continues carrying out physics movement, may can sometime detect second network.
In the embodiment of the present application, the electronic equipment be detect in the said standby state second network there are feelings State just can be switched to the working condition from the standby mode only after determining with the presence of second network by condition, In this way, work more as far as possible can be completed in the said standby state as far as possible, electricity is saved, time of state switching can also be reduced Number, avoids damaging the memory of electronic equipment or hardware module etc. in stateful switchover process as far as possible.
Second case:
Optionally, in the embodiment of the present application, if disconnecting, working condition is switched to from the standby mode, specifically can wrap It includes:
If disconnecting, the working condition is switched to from the standby mode, and detect whether to deposit under the working condition In second network;
If it exists, second network is determined.
That is, the electronic equipment once detects that the connection between the first network disconnects, it will be from described standby State switches to the working condition, and can detect whether when switching to the working condition from the standby mode State the presence of the second network, that is to say, that lead in the embodiment of the present application it is noted that the electronic equipment is in the work shape It is detected under state and determines second network.
Optionally, it in the embodiment of the present application, is being detected whether under the working condition there are after second network, The method can also include:
If it does not exist, the working condition is kept, and is continued to test according to the second predetermined period with the presence or absence of described second Network.
That is, the electronic equipment is after switching to the working condition by the standby mode, it can be in the operating condition Detect whether that there are second networks, if not detecting the presence of second network, the electronic equipment can be with The working condition is kept, and persistently detects second network according to second predetermined period.For example, due to the electronics The physics that equipment persistently carries out is mobile, and second network may be detected by carving in some time.
In the embodiment of the present application, the electronic equipment is to detect under the working condition and determine second network There are situations can build under the working condition with second network immediately after determining that second network exists Vertical second network connection, in this way, second network connection can immediately, rapidly be set up.
In the specific implementation process, either in the said standby state or under the working condition, detect whether It can have a variety of there are the method for second network, of course, it is possible to identical, can also be different.It is suitable to be exemplified below both of which It is illustrated, certainly, but those skilled in the art are it should be clear that the application is illustrate in following two method It is bright, and should not be limited to following two method, all methods for being able to detect second network should all be in the protection of the application Within the scope of.
First method:
Optionally, it in the embodiment of the present application, detects whether to can specifically include there are second network:
Download the effective wireless network library stored in the electronic equipment;Wherein, include in effective wireless network library With the valid wireless network for being less than pre-determined distance at a distance from the electronic equipment, the valid wireless network refers to the electricity Sub- equipment can pass through the wireless network of its safety verification;
According to preset rules, whether judge in effective wireless network library comprising second network;Wherein, if it is described Include second network in effective wireless network library, then shows that there are second networks.
In the embodiment of the present application, the valid wireless network refers to that the electronic equipment can be by its safety verification Wireless network, under normal circumstances, many wireless networks are protected by encryption, described and in the embodiment of the present application Electronic equipment is stored with the key for these to be decrypted by the wireless network of encipherment protection.As for it is described it is default away from From, it specifically can be by user's self-setting of the electronic equipment, or can be by the attribute in effective wireless network library It determines.Effective wireless network library can be to be obtained by payment, or is obtained by authorization, or by other means It obtains, the application is with no restrictions.
The electronic equipment can be updated according to data of the predetermined period to effective wireless network library, for example, It updates once, or updates on every Wendesdays primary, etc. daily.By real-time update, the electronic equipment can obtain pre- in time If the newest key of the wireless network apart from interior encryption, obtains the access right of more wireless network as far as possible.
By downloading the data in effective wireless network library, the electronic equipment can obtain multiple wireless networks simultaneously Access right.In the specific implementation process, as long as there are wireless network hot spots in the electronic equipment peripheral region, so that it may Determine to include second network in the wireless network library, that is, show that there are second networks.
It is possible to further determine second network from effective wireless network library, as specifically by which A wireless network is determined as second network, can be selected according to the preset rules.For example, can be by signal strength Strongest wireless network is determined as second network, such as, the wireless network connected in the past can preferentially be determined For second network, or for example, a wireless network can be randomly selected as described second network, etc., this Shen Please with no restriction for specific preset rules.
In the first method, the electronic equipment by directly download effective wireless network library can be obtained it is multiple Effective wireless network, in this way, can rapidly detect and determine described in time after the disconnection of the connection with the first network Second network facilitates the electronic equipment quickly to restore to be connected to the network.In addition, if it is the signal strength according to wireless network according to If the rule of secondary decrease is selected, net can also be kept as far as possible while making the electronic equipment restore network connection Network is stablized, and volume of transmitted data is increased, to improve the rate and quality of the electronic equipment processing network task.
Second method:
Optionally, it in the embodiment of the present application, detects whether to can specifically include there are second network:
Judge whether the electronic equipment has SIM (Subscriber Identity Module, client identification module) Card, and work in mobile communications network corresponding with the SIM card;Wherein, if so, showing that there are second networks.
The embodiment of the present application mainly thinks explanation: the electronic equipment can according to the SIM card of the machine there are situation, And the working condition of the SIM card, judge whether there is second network.
For example, mobile phone can carry SIM card, according to the corresponding difference of SIM card so that the electronic equipment is mobile phone as an example The mobile communication service type of type, the mobile phone can connect 2G (Generation Mobile Telecommunication System), 3G (3G (Third Generation) Moblie) net Network or 4G (forth generation mobile communication) network, when the operating handset 2G, 3G, 4G corresponding with the SIM card that it is carried or other It when mobile communications network, then can determine that there are second networks, and the mobile communications network can be determined as described Second network.
Such as by taking the electronic equipment is laptop as an example, laptop can have wireless Internet card, By wireless Internet card can 3G, 4G corresponding with the SIM card that it is bound or other mobile communications networks be attached, that is, when The laptop is worked by wireless Internet card in 3G, 4G or other mobile communications networks, then can be determined described in presence Second network, and the mobile communications network can be determined as to second network.
In the second approach, the electronic equipment can be according to the presence and working condition of the machine SIM card, it is determined whether There are second networks, and mobile communications network corresponding with the SIM card is determined as second network, in this way, i.e. Make when there is no Wireless LAN, still can determine second network, to restore to be connected to the network as early as possible, continues to make institute It states electronic equipment and executes the network task carried out before suspension.
The method that both the above determines second network, either in the said standby state, or in the work It under state, in the specific implementation process, can be used alone, can also be used in mixed way, it can also be according to different user not Specifically it is arranged with demand, the application is not particularly limited.More preferably, the electronic equipment can preferentially use first method, Second method is used again after it can not determine second network by first method, in this way, can pay the utmost attention to make With Wireless LAN, so as to the payment expense for the flow generated due to using mobile communications network that practices every conceivable frugality.
Optionally, it in the embodiment of the present application, no matter in the said standby state or under the working condition, is detecting After second network, the method can also include:
If it does not exist, it generates and exports prompt information;Wherein, the prompt information uses the electronic equipment for prompting User: the electronic equipment has disconnected network connection.
That is, either in the said standby state, or under the working condition, as long as the electronic equipment In the presence of detecting no second network, the prompt information can be generated and be exported, electricity described in the user is prompted The already off network connection of sub- equipment.In addition, the output time of the prompt information can be is detecting described for the first time In the absence of two networks, or it is also possible to when second network is not present according to predetermined period repeated detection.User's root According to the prompt of the electronic equipment, so that it may which the clearly described electronic equipment in the said standby state, can not be further continued for executing net Network task, so as to take other remedial measures in time.
In the specific implementation process, the prompt information can be one in audio-frequency information, optical information, text information etc. Kind or several combinations.For example, detecting that the electronic equipment can export " network disconnection there is no when second network " voice prompting perhaps " dichloro-diphenyl-dichlorothane " pure audio prompt or by indicator light according to certain frequency flashed to Family is prompted.
Step 103: under the working condition, the second network connection is established with the second network, so that the electronic equipment Restore network connection.
That is, no matter the electronic equipment is to detect under which kind of state and determine second network, the electronic equipment It is to establish second network connection, because in general, the electricity with second network under the working condition Sub- equipment is to need to execute networking task under the working condition.
Step 104: controlling the electronic equipment by the working condition and switch back into the standby mode.
That is, the electronic equipment will be automatic after establishing second network connection with second network The standby mode is switched back into from the working condition, continues to execute network by second network in the said standby state Task, practice every conceivable frugality power consumption, extends and uses the time.
In order to enable those skilled in the art that the information processing method in the embodiment of the present application is more clearly understood, with Under enumerate a specific embodiment and be described, in addition, will be with the electronic equipment in following specific descriptions Laptop is illustrated as an example.
For example, user's first in 3 buildings offices downloading meeting material of mansion A and receives mail using laptop, this When laptop connect with the Wireless LAN of entitled WIFI A-3, due to user's first always laboratory and other colleague It tests, laptop, just automatically into standby mode, or is also possible to by user after certain time is unattended It by its manual switching is standby mode when leaving laptop, at this point, laptop is in the standby mode, pen This keeps being connected to the network note with less power consumption, executes downloading meeting material and receives the network tasks such as mail.
When to the quitting time, user's first needs to leave office and goes home, and user's first remains desirable to continue to download at this time The meeting material of completion has not yet been downloaded, and receives the mail that Very Important Person is sent, leaves 3 in user's first carrying notebook computer Lou Hou, due to the effective coverage range out of WIFI A-3, the network connection of laptop and WIFI A-3 are disconnected, and this When, once detecting that network connection disconnects, laptop will pass through immediately under the standby mode (the first situation) One or both of above-mentioned first method and second method combine detection simultaneously determine second network, alternatively, pen Remember that this computer will switch to the working condition by the standby mode immediately, and at the working condition (second case) Pass through one or both of above-mentioned first method and second method combine detection down and determines second network, example Such as, laptop detects the attachable Wireless LAN of the entitled WIFI A-2 of 2 buildings of mansion A, then it can incite somebody to action WIFI A-2 is determined as second network.Certainly, if leaving the effective coverage range of WIFI A-2, laptop again Or it can continue to determine other available networks by the method in the application, even if so that laptop disconnects currently After network connection, network connection can be established again in time, rapidly also to restore network.
With after WIFI A-2 successful connection, that is, with WIFI A-2 establish it is described second network connection after, notes This computer will switch back into the standby mode from the working condition immediately, continue downloading meeting material in the standby state and Mail is received, reaches the demand of user as far as possible.Again due to the real-time power supply of not no power supply adaptor, laptop can only be relied on Internal battery provides electric energy, in this manner, can also reduce the power consumption of laptop as far as possible, extend cruise duration.
In the embodiment of the present application, when electronic equipment is in the standby mode, once it detects and the first network First network connect and disconnect, actively from the standby mode will be switched to the working condition, and in the work shape Under state, then with second network the second network connection is established, so that the electronic equipment can remain network connection, and The standby mode is switched back into again after restoring network connection, that is, when the electronic equipment is in the standby mode, even if The network (the i.e. described first network) for due to some accidental causes the electronic equipment currently being connected is disconnected, the electronics Equipment can also in time, initiatively be attached with second network, so that the electronic equipment as far as possible can be again Under the premise of low-power consumption, still keep network connection to execute some network tasks.
For compared with the existing technology, by the technical solution in the embodiment of the present application, the electronic equipment is in use example During AOAC function, if the network currently connected is surprisingly disconnected, the electronic equipment can also in time again with institute It states the second network to be attached so that the electronic equipment remains the state of network connection, improves the electronic equipment and exist Active control ability when being connected to the network enables the electronic equipment execute within user's desired period as far as possible AOAC function.
Further, with after second network connection, the electronic equipment can continue in the standby mode It works, that is to say, that the electronic equipment can continue under the low-power consumption working condition of standby mode or suspend mode The network task carried out before network disconnects is executed, for example, file of downloading data or transmit can be continued, that is, the electronics is set It is standby to be performed simultaneously set by user or desired network task under the premise of reducing oneself power consumption as far as possible, it can be as far as possible That improves the electronic equipment uses time and working efficiency, enhances the practicability of the electronic equipment, and then improve user's Usage experience.
Fig. 2 is referred to, based on the same inventive concept, the embodiment of the present application provides a kind of electronic equipment, the electronic equipment It can be carried out data transmission by network, the electronic equipment includes first detection module 201, the first switching module 202, network Link block 203 and the second switching module 204.
The first detection module 201, for when the electronic equipment is in standby, detecting and first network Whether first network connection disconnects;
First switching module 202, if switching to working condition from the standby mode for disconnecting;
The network connecting module 203, for establishing the second network connection with the second network under the working condition, So that the electronic equipment restores network connection
Second switching module 204 is switched back into for controlling the electronic equipment by the working condition described standby State.
Optionally, first switching module 202 specifically can be used for:
If disconnecting, detect whether that there are second networks in the said standby state;
If it exists, then the working condition is switched to from the standby mode.
Optionally, the electronic equipment further includes the second detection module, specifically be can be used for:
It detects whether if it does not exist, to keep the standby shape there are after second network in the said standby state State, and continue to test according to the first predetermined period with the presence or absence of second network.
Optionally, first switching module 202 specifically can be used for:
If disconnecting, the working condition is switched to from the standby mode, and detect whether to deposit under the working condition In second network;
If it exists, second network is determined.
Optionally, the electronic equipment further includes detection module, specifically be can be used for:
It detects whether if it does not exist, to keep the work shape there are after second network under the working condition State, and continue to test according to the second predetermined period with the presence or absence of second network.
Optionally, first switching module 202 is specifically used for detecting whether that there are second networks, specifically can be with Are as follows:
Download the effective wireless network library stored in the electronic equipment;Wherein, include in effective wireless network library With the valid wireless network for being less than pre-determined distance at a distance from the electronic equipment, the valid wireless network refers to the electricity Sub- equipment can pass through the wireless network of its safety verification;
According to preset rules, whether judge in effective wireless network library comprising second network;Wherein, if it is described Include second network in effective wireless network library, then shows that there are second networks.
Optionally, first switching module 202 is specifically used for detecting whether that there are second networks, specifically can be with Are as follows:
Judge whether the electronic equipment has client identification module SIM card, and works in shifting corresponding with the SIM card Dynamic communication network;Wherein, if so, showing that there are second networks.
Optionally, the electronic equipment further includes output module, specifically be can be used for:
It is detecting whether if it does not exist, to generate there are after second network and export prompt information;Wherein, described Prompt information is used to prompt the user using the electronic equipment: the electronic equipment has disconnected network connection.
In the embodiment of the present application, when electronic equipment is in the standby mode, once it detects and the first network First network connect and disconnect, actively from the standby mode will be switched to the working condition, and in the work shape Under state, then with second network the second network connection is established, so that the electronic equipment can remain network connection, and The standby mode is switched back into again after restoring network connection, that is, when the electronic equipment is in the standby mode, even if The network (the i.e. described first network) for due to some accidental causes the electronic equipment currently being connected is disconnected, the electronics Equipment can also in time, initiatively be attached with second network, so that the electronic equipment as far as possible can be again Under the premise of low-power consumption, still keep network connection to execute some network tasks.
For compared with the existing technology, by the technical solution in the embodiment of the present application, the electronic equipment is in use example During AOAC function, if the network currently connected is surprisingly disconnected, the electronic equipment can also in time again with institute It states the second network to be attached so that the electronic equipment remains the state of network connection, improves the electronic equipment and exist Active control ability when being connected to the network enables the electronic equipment execute within user's desired period as far as possible AOAC function.
Further, with after second network connection, the electronic equipment can continue in the standby mode It works, that is to say, that the electronic equipment can continue under the low-power consumption working condition of standby mode or suspend mode The network task carried out before network disconnects is executed, for example, file of downloading data or transmit can be continued, that is, the electronics is set It is standby to be performed simultaneously set by user or desired network task under the premise of reducing oneself power consumption as far as possible, it can be as far as possible That improves the electronic equipment uses time and working efficiency, enhances the practicability of the electronic equipment, and then improve user's Usage experience.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function lists Member is completed, i.e., the internal structure of device is divided into different functional units, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
Specifically, the corresponding computer program instructions of one of the embodiment of the present application information processing method can be deposited It stores up on CD, hard disk, the storage mediums such as USB flash disk, when the computer journey corresponding with a kind of information processing method in storage medium Sequence instruction is read or is performed by an electronic equipment, includes the following steps:
When the electronic equipment is in standby, detection connect whether disconnect with the first network of first network;
If disconnecting, working condition is switched to from the standby mode;
Under the working condition, the second network connection is established with the second network, so that the electronic equipment restores network Connection;
It controls the electronic equipment and the standby mode is switched back by the working condition.
Optionally, store in the storage medium and step: if disconnecting, work shape is switched to from the standby mode State, corresponding computer instruction specifically include during being performed: if detecting whether to exist under the standby mode described Second network;If it exists, then the working condition is switched to from the standby mode.
Optionally, store in the storage medium and step: detect whether that there are described in the said standby state Two networks, corresponding computer instruction specifically include after being performed: if it does not exist, keep the standby mode, and according to First predetermined period is continued to test with the presence or absence of second network.
Optionally, store in the storage medium and step: if disconnecting, work shape is switched to from the standby mode State, corresponding computer instruction specifically include during being performed: if disconnecting, switching to from the standby mode described Working condition, and detect whether that there are second networks under the working condition;If it exists, second network is determined.
Optionally, store in the storage medium and step: detect whether that there are described under the working condition Two networks, corresponding computer instruction specifically include after being performed: if it does not exist, keep the working condition, and according to Second predetermined period is continued to test with the presence or absence of second network.
Optionally, store in the storage medium and step: detect whether that there are second network, corresponding calculating Machine instructs during being performed, and specifically includes: downloading the effective wireless network library stored in the electronic equipment;Wherein, It is described comprising the valid wireless network at a distance from the electronic equipment less than pre-determined distance in effective wireless network library Valid wireless network refers to that the electronic equipment can be by the wireless network of its safety verification;According to preset rules, judgement It whether include second network in effective wireless network library;Wherein, if comprising described in effective wireless network library Second network then shows that there are second networks.
Optionally, store in the storage medium and step: detect whether that there are second network, corresponding calculating Machine instructs during being performed, and specifically includes: judging whether the electronic equipment has client identification module SIM card, and Work is in mobile communications network corresponding with the SIM card;Wherein, if so, showing that there are second networks.
Optionally, store in the storage medium and step: detect whether that there are second network, corresponding calculating Machine instructs after being performed, and specifically includes: if it does not exist, generating and export prompt information;Wherein, the prompt information is used for Prompt uses the user of the electronic equipment: the electronic equipment has disconnected network connection.
The above, above embodiments are only to be described in detail technical solution of the present invention, but the above implementation The explanation of example is merely used to help understand method and its core concept of the invention, should not be construed as limiting the invention.This In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those skilled in the art, should all cover Within protection scope of the present invention.

Claims (16)

1. a kind of information processing method is applied to electronic equipment, the electronic equipment can be carried out data transmission by network, institute The method of stating includes:
When the electronic equipment is in standby and executes online always linkage function, the first net of detection and first network Whether network connection disconnects;
If disconnecting, working condition is switched to from the standby mode;
Under the working condition, the second network connection is established with the second network, so that the electronic equipment restores network connection;
It controls the electronic equipment and the standby mode is switched back by the working condition;
Wherein, the standby mode refers to that the operating mode of the electronic equipment is standby mode, sleep pattern or suspend mode Shi Suoshu electronic equipment state in which.
2. the method as described in claim 1, which is characterized in that if described disconnect, switch to work shape from the standby mode State specifically includes:
If disconnecting, detect whether that there are second networks in the said standby state;
If it exists, then the working condition is switched to from the standby mode.
3. method according to claim 2, which is characterized in that detect whether that there are second nets in the said standby state After network, the method also includes:
If it does not exist, the standby mode is kept, and is continued to test according to the first predetermined period with the presence or absence of second network.
4. the method as described in claim 1, which is characterized in that if described disconnect, switch to work shape from the standby mode State specifically includes:
If disconnecting, the working condition is switched to from the standby mode, and detect whether that there are institutes under the working condition State the second network;
If it exists, second network is determined.
5. method as claimed in claim 4, which is characterized in that detect whether that there are second nets under the working condition After network, the method also includes:
If it does not exist, the working condition is kept, and is continued to test according to the second predetermined period with the presence or absence of second network.
6. the method as described in any claim of claim 2-5, which is characterized in that detect whether that there are second network, tools Body includes:
Download the effective wireless network library stored in the electronic equipment;Wherein, include and institute in effective wireless network library The distance for stating electronic equipment is less than the valid wireless network of pre-determined distance, and the valid wireless network refers to that the electronics is set It is standby to pass through the wireless network of its safety verification;
According to preset rules, whether judge in effective wireless network library comprising second network;Wherein, if it is described effective Include second network in wireless network library, then shows that there are second networks.
7. the method as described in any claim of claim 2-5, which is characterized in that detect whether that there are second network, tools Body includes:
Judge whether the electronic equipment has client identification module SIM card, and it is logical in movement corresponding with the SIM card to work Communication network;Wherein, if so, showing that there are second networks.
8. the method as described in any claim of claim 2-5, which is characterized in that detect whether there are second network it Afterwards, the method also includes: if it does not exist, generate and export prompt information;Wherein, the prompt information uses institute for prompting State the user of electronic equipment: the electronic equipment has disconnected network connection.
9. a kind of electronic equipment, the electronic equipment can be carried out data transmission by network, and the electronic equipment includes:
First detection module, for detecting when the electronic equipment is in standby and executes online always linkage function It connect and whether disconnects with the first network of first network;
First switching module, if switching to working condition from the standby mode for disconnecting;
Network connecting module, for the second network connection being established with the second network, so that the electronics under the working condition Equipment restores network connection;
Second switching module switches back into the standby mode by the working condition for controlling the electronic equipment;
Wherein, the standby mode refers to that the operating mode of the electronic equipment is standby mode, sleep pattern or suspend mode Shi Suoshu electronic equipment state in which.
10. electronic equipment as claimed in claim 9, which is characterized in that first switching module is specifically used for:
If disconnecting, detect whether that there are second networks in the said standby state;
If it exists, then the working condition is switched to from the standby mode.
11. electronic equipment as claimed in claim 10, which is characterized in that the electronic equipment further includes the second detection module, It is specifically used for:
It detects whether if it does not exist, to keep the standby mode there are after second network in the said standby state, and It continues to test according to the first predetermined period with the presence or absence of second network.
12. electronic equipment as claimed in claim 9, which is characterized in that first switching module is specifically used for:
If disconnecting, the working condition is switched to from the standby mode, and detect whether that there are institutes under the working condition State the second network;
If it exists, second network is determined.
13. electronic equipment as claimed in claim 12, which is characterized in that the electronic equipment further includes third detection module, It is specifically used for:
It detects whether if it does not exist, to keep the working condition there are after second network under the working condition, and It continues to test according to the second predetermined period with the presence or absence of second network.
14. the electronic equipment as described in any claim of claim 10-13, which is characterized in that first switching module is specific For detecting whether there are second network, specifically:
Download the effective wireless network library stored in the electronic equipment;Wherein, include and institute in effective wireless network library The distance for stating electronic equipment is less than the valid wireless network of pre-determined distance, and the valid wireless network refers to that the electronics is set It is standby to pass through the wireless network of its safety verification;
According to preset rules, whether judge in effective wireless network library comprising second network;Wherein, if it is described effective Include second network in wireless network library, then shows that there are second networks.
15. the electronic equipment as described in any claim of claim 10-13, which is characterized in that first switching module is specific For detecting whether there are second network, specifically:
Judge whether the electronic equipment has client identification module SIM card, and it is logical in movement corresponding with the SIM card to work Communication network;Wherein, if so, showing that there are second networks.
16. the electronic equipment as described in any claim of claim 10-13, which is characterized in that the electronic equipment further includes defeated Module out is specifically used for:
It is detecting whether if it does not exist, to generate there are after second network and export prompt information;Wherein, the prompt Information is used to prompt the user using the electronic equipment: the electronic equipment has disconnected network connection.
CN201410805700.8A 2014-12-19 2014-12-19 A kind of information processing method and electronic equipment Active CN105759934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410805700.8A CN105759934B (en) 2014-12-19 2014-12-19 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410805700.8A CN105759934B (en) 2014-12-19 2014-12-19 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105759934A CN105759934A (en) 2016-07-13
CN105759934B true CN105759934B (en) 2019-10-29

Family

ID=56341228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410805700.8A Active CN105759934B (en) 2014-12-19 2014-12-19 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105759934B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686671B (en) * 2016-11-29 2020-06-23 上海苗鑫食品科技有限公司 Network connection processing method and terminal
CN108495348B (en) * 2018-01-31 2021-08-31 上海尚往网络科技有限公司 Network switching method, equipment and medium for user equipment
CN112822099A (en) * 2020-12-29 2021-05-18 北京浪潮数据技术有限公司 Method, device and medium for switching network card working modes
CN114155636B (en) * 2021-12-14 2024-06-04 深圳Tcl新技术有限公司 Equipment control method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009896A (en) * 2006-01-27 2007-08-01 三星电子株式会社 Method of efficiently processing dormant state in packet service and multi-mode terminal for the same
CN103338118A (en) * 2013-06-04 2013-10-02 北京搜狐新媒体信息技术有限公司 A communication network connection method and an apparatus thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137142A (en) * 2006-08-30 2008-03-05 中兴通讯股份有限公司 Method for CDMA and GSM dual-mode mobile terminal to implement mode switch
KR101453334B1 (en) * 2010-08-11 2014-10-22 닛본 덴끼 가부시끼가이샤 Network information processing system, network information processing apparatus, and information processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009896A (en) * 2006-01-27 2007-08-01 三星电子株式会社 Method of efficiently processing dormant state in packet service and multi-mode terminal for the same
CN103338118A (en) * 2013-06-04 2013-10-02 北京搜狐新媒体信息技术有限公司 A communication network connection method and an apparatus thereof

Also Published As

Publication number Publication date
CN105759934A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
EP2814276B1 (en) Access authentication method and device for wireless local area network hotspot
CN103947224B (en) The method and apparatus for configuring and controlling the blender of audio system using wireless docking system
CN105759934B (en) A kind of information processing method and electronic equipment
CN102665114B (en) Method, apparatus and system for intelligent device interaction
CN102833876B (en) Wireless Telecom Equipment
CN103744810B (en) Terminal, electronic equipment, synchronous display system and method
CN105574403B (en) A kind of application control method and terminal
EP3125513A1 (en) Multi-mode power saving multimedia transmission method and system
CN105320880B (en) The control method and device of terminal
CN104159259B (en) Wireless communications method and wireless communication device
CN102882764A (en) Method for implementing cloud calendar on intelligent Internet of things platform
CN103491655A (en) Multi-mode communication system and method between terminal devices
CN110381130A (en) The long connection method of keep-alive, device, communication terminal and storage medium
CN103476145B (en) wireless network connection processing method and device
CN103716913B (en) Wireless telecom equipment, recording medium and communication control method
CN103997779A (en) Information synchronization system and method
CN106462373A (en) Dynamic display of video communication data
CN106411920A (en) Data sharing method and device
CN109379734A (en) Real-time control method, equipment, storage medium and the device of narrowband internet of things equipment
CN102868819B (en) A kind of process the method and device of communication service under common account
CN102612030B (en) Wireless access collocation method and system, radio reception device, terminal
CN104536299B (en) Start the method, apparatus and system and central control equipment of household electrical appliances
CN110536389A (en) Method and device for reducing power consumption of terminal equipment and terminal equipment
CN112100145B (en) Digital model sharing learning system and method
CN105872257A (en) Mobile device and position sharing method and device thereof

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