CN106851796A - A kind of data card and its method for realizing Wi Fi focuses - Google Patents
A kind of data card and its method for realizing Wi Fi focuses Download PDFInfo
- Publication number
- CN106851796A CN106851796A CN201611155178.9A CN201611155178A CN106851796A CN 106851796 A CN106851796 A CN 106851796A CN 201611155178 A CN201611155178 A CN 201611155178A CN 106851796 A CN106851796 A CN 106851796A
- Authority
- CN
- China
- Prior art keywords
- data card
- itself
- belonging
- connection status
- key
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0203—Power saving arrangements in the radio access network or backbone network of wireless communication networks
- H04W52/0206—Power saving arrangements in the radio access network or backbone network of wireless communication networks in access points, e.g. base stations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of data card and its method for realizing Wi Fi focuses, the method include:Whether detection data card is in no user connection status in preset duration;When detecting data card in preset duration and being in no user connection status, USB (USB) state and the key-press status of data card of detection data card;When the USB states for detecting data card are dial-out states, and the key-press status of data card, when being without key-press status, control data card enters resting state and closes Wireless Fidelity (Wi Fi) focus of the data card.The embodiment of the present invention realizes data card and automatically enters resting state, reduces the power consumption of data card.
Description
Technical field
The present embodiments relate to but be not limited to intelligent terminal technology, espespecially a kind of data card and its realize Wireless Fidelity
(Wi-Fi) method of focus.
Background technology
At present, the data card of part charged pool carries the function of Wireless Fidelity (Wi-Fi) focus, can be carried to mobile terminal
For Wi-Fi Hotspot for its connection network, for example user can with the mobile terminal Wi-Fi hotspot connection data card such as mobile phone, PAD come
Online, it is also possible to make data card pass through USB (USB, Universal Serial Bus) and PC (PC,
Personal Computer) connection so that PC is surfed the Net by the data card.
Because data card externally provides Wi-Fi Hotspot always, therefore, the power consumption of data card is very high.How data are reduced
The power consumption of card turns into the problem of urgent need to resolve.
The content of the invention
The following is the general introduction of the theme to describing in detail herein.This general introduction is not to limit the protection model of claim
Enclose.
The embodiment of the invention provides a kind of data card and its realize the method for Wi-Fi Hotspot, can realize data card certainly
Dynamic entrance resting state, reduces the power consumption of data card.
In order to reach the application purpose, a kind of data card is the embodiment of the invention provides, including:Processing module and dormancy control
Molding block;Wherein,
Processing module, for detecting whether the data card belonging to itself is in no user connection shape in preset duration
State;When detecting the data card belonging to itself in preset duration and being in no user connection status, detect belonging to itself
The general-purpose serial bus USB state of data card and the key-press status of the data card belonging to itself;When detecting belonging to itself
The USB states of data card are dial-out states, and the key-press status of the data card belonging to itself are when being without key-press status, notify dormancy
Control module;
Dormancy control module, for receiving the notice from processing module, controls the data card belonging to itself to enter and stops
Dormancy state simultaneously closes the Wireless Fidelity Wi-Fi Hotspot of data card belonging to itself.
Alternatively, it is used to detect whether the data card belonging to itself is in nothing in preset duration in the processing module
User's connection status includes:
Using data card of the polling mode according to belonging to the timer for pre-setting detects itself whether in described useless
Family connection status;
Itself is detected in the preset duration according to the timer for pre-setting when the polling mode is used
When affiliated data card is in the no user connection status, judge to detect the data belonging to itself in preset duration
Card is in no user connection status.
Alternatively, the data card also include initial setup module, for set the polling mode wrap count just
Initial value;Correspondingly,
It is used for the data using polling mode according to belonging to the timer for pre-setting detects itself in the processing module
Whether card is in the no user connection status includes:
When the timer expiry, detect the data card belonging to itself whether in the no user connection status;
When the data card belonging to itself is detected in the no user connection status, the wheel of the polling mode is judged
Ask whether number of times reaches predetermined threshold value;It is right when the wrap count for judging the polling mode is not up to the predetermined threshold value
The wrap count of the polling mode carries out being incremented by treatment;User's connection status is in when the data card belonging to itself is detected
When, the wrap count of the polling mode is set to the initial value;
Until when the wrap count for judging the polling mode reaches the predetermined threshold value, judging using the wheel
Data card of the inquiry mode according to belonging to the timer for pre-setting detects itself in the preset duration is in institute
State no user connection status.
Alternatively, the preset duration is the product between the timing length of the timer and the predetermined threshold value.
Alternatively, the data card also includes waking up control module;
The processing module, has user's connection status for that ought detect the data card belonging to itself and be in, and/or detection
The USB states of the data card belonging to itself are non-dial-out states, and/or detect the button of the data card belonging to itself
State is when having key-press status, to notify the wake-up control module;
The wake-up control module, is additionally operable to receive the notice from the processing module, wakes up the data card simultaneously
Start the Wi-Fi Hotspot.
On the other hand, the embodiment of the present invention additionally provides a kind of method that data card realizes Wi-Fi Hotspot, including:
Whether detection data card is in no user connection status in preset duration;
When detecting data card in preset duration and being in no user connection status, the USB states of detection data card
And the key-press status of data card;
When the USB states for detecting data card are dial-out states, and the key-press status of data card are when being without key-press status, control
Data card processed enters resting state and closes the Wi-Fi Hotspot of the data card.
Alternatively, whether the detection data card in preset duration is in no user connection status includes:
Detect whether the data card connects in the no user according to the timer for pre-setting using polling mode
State;
When the use polling mode is according to the timer for pre-setting is detected in the preset duration
When data card is in the no user connection status, judge that data card is detected in preset duration is in no user company
Connect state.
Alternatively, also include before the method:The initial value of the wrap count of the polling mode is set;Correspondingly,
It is described useless that the use polling mode detects whether the data card is according to the timer for pre-setting
Family connection status includes:
When the timer expiry, detect whether the data card is in the no user connection status;
When the data card is detected in the no user connection status, the wrap count of the polling mode is judged
Whether predetermined threshold value is reached;When the wrap count for judging the polling mode is not up to the predetermined threshold value, to the wheel
The wrap count of inquiry mode carries out being incremented by treatment;When the data card is detected in user's connection status, by the poll
The wrap count of mode is set to the initial value;
Described in continuing executing with when the timer expiry, detect whether the data card connects shape in the no user
The step of state;
When the wrap count for judging the polling mode reaches the predetermined threshold value, judge using the poll side
Formula detects the data card in the preset duration and is in the no user company according to the timer for pre-setting
Connect state.
Alternatively, the preset duration is the product between the timing length of the timer and the predetermined threshold value.
Alternatively, also include after the method:There is user's connection status when detecting the data card and being in, and/or inspection
The USB states for measuring the data card are non-dial-out states, and/or detecting the key-press status of data card is had by key-like
During state, wake up the data card and start the Wi-Fi Hotspot.
Compared with correlation technique, technical scheme includes:Whether detection data card is in nothing in preset duration
User's connection status;When detecting data card in preset duration and being in no user connection status, detection data card it is logical
With universal serial bus (USB) state and the key-press status of data card;When the USB states for detecting data card are dial-out states, and
When the key-press status of data card are without key-press status, control data card enters resting state and closes the Wireless Fidelity of the data card
(Wi-Fi) focus.The embodiment of the present invention realizes data card and automatically enters resting state, reduces the power consumption of data card.
After reading and understanding accompanying drawing and describing in detail, it can be appreciated that other aspects.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart of embodiment of the present invention data card;
Fig. 2 is the schematic diagram of the USB interface of embodiment of the present invention data card;
The schematic diagram one that Fig. 3 is distributed for the button of embodiment of the present invention data card;
The schematic diagram two that Fig. 4 is distributed for the button of embodiment of the present invention data card;
Fig. 5 is the flow chart of the method that a kind of data card of the embodiment of the present invention realizes Wi-Fi Hotspot;
Fig. 6 is the flow chart of the method whether embodiment of the present invention detection data card is in no user connection status;
Fig. 7 is the flow chart of the method that embodiment of the present invention another kind data card realizes Wi-Fi Hotspot.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
Fig. 1 is the structured flowchart of embodiment of the present invention data card, as shown in figure 1, including:Processing module 10 and dormancy are controlled
Module 11.Wherein,
Processing module 10, for detecting whether the data card belonging to itself is in no user connection shape in preset duration
State;When detecting the data card belonging to itself in preset duration and being in no user connection status, detect belonging to itself
USB (USB) state and the key-press status of the data card belonging to itself of data card;When detecting belonging to itself
The USB states of data card be dial-out state, and the key-press status of the data card belonging to itself are when being without key-press status, notify to stop
Dormancy control module 11.
It should be noted that how the USB states of detection data card and the key-press status of data card belong to this area skill
Conventional techniques known to art personnel, here is omitted, is not intended to limit the application.
Wherein, the USB states of embodiment of the present invention data card include:Dial-out state or non-dial-out state.Wherein, this hair
The USB states of bright embodiment data card are that non-dial-out state includes:Insert state or charged state.
Wherein, as shown in Fig. 2 the schematic diagram of the USB interface for embodiment of the present invention data card, now, the USB of data card
Interface is located at the centre position of data card side, in addition to centre position, can also be arranged at the other positions of the side,
Such as left side, or right side etc..
Wherein, the key-press status of embodiment of the present invention data card include:There are key-press status or without key-press status.
Wherein, the key-press status of embodiment of the present invention data card include physical button (or being mechanical key) by key-like
The key-press status of state and/or virtual key (virtual key in touch display screen).
As shown in Figure 3 and Figure 4, be embodiment of the present invention data card button distribution schematic diagram, wherein it is possible to touch
On display screen set virtual key (including display Wi-Fi Hotspot signal intensity button, display have turned on Wi-Fi Hotspot by
Key, button of display electricity etc., wherein it is possible to any one virtual key is set to start (or closing) Wi-Fi Hotspot
Button), physical button (including reset key, the button for starting and closing Wi-Fi Hotspot etc.) is set on side frame.In addition, by
It is bad in the effect of mechanical key water proof anti-soil, therefore virtual key can also be set on side frame.
It should be noted that how to set physical button and virtual key, belong to used known to skilled person
With technological means, here is omitted, is not intended to limit the application.
Dormancy control module 11, for receiving the notice from processing module 10, controls the data belonging to itself to stick into
Enter resting state and close Wireless Fidelity (Wi-Fi) focus of data card belonging to itself.
Wherein, it is used to detect whether is data card belonging to itself in preset duration in embodiment of the present invention processing module 10
Being in no user connection status includes:
Whether connected in no user using data card of the polling mode according to belonging to the timer for pre-setting detects itself
Connect state;
Data card belonging in preset duration detect itself according to the timer for pre-setting using polling mode
When being in no user connection status, judge that the data card detected in preset duration belonging to itself is in no user company
Connect state.
Alternatively, embodiment of the present invention data card also includes initial setup module 12, the poll for setting polling mode
The initial value of number of times.Correspondingly,
It is used for the data card using polling mode according to belonging to the timer for pre-setting detects itself in processing module 10
Whether being in no user connection status includes:
When the timer expires, detect the data card belonging to itself whether in no user connection status;
When the data card belonging to itself is detected in no user connection status, judging the wrap count of polling mode is
It is no to reach predetermined threshold value;When the wrap count not up to predetermined threshold value of polling mode is judged, to the poll of polling mode
Number carries out being incremented by treatment;When the data card belonging to itself is detected in user's connection status, by the poll of polling mode
Number is set to initial value;
Until when the wrap count for judging polling mode reaches predetermined threshold value, judging using polling mode according to pre-
The data card that the timer for first setting is detected belonging to itself in preset duration is in no user connection status.
Wherein, the initial value of the wrap count of embodiment of the present invention polling mode could be arranged to 0, it is also possible to be set to 1,
Or it is set to other positive numbers.
Wherein, embodiment of the present invention predetermined threshold value can be the default value set by the system of data card, it is also possible to provide
One human-computer interaction interface is configured by user according to the demand of itself.Such as could be arranged to 10, it is also possible to be set to 8, also may be used
To be set to 11 etc..
Wherein, embodiment of the present invention preset duration is the product between the timing length of timer and predetermined threshold value.
Alternatively, embodiment of the present invention data card also includes waking up control module 13;Now,
Processing module 10, being additionally operable to detect the data card belonging to itself and being in has user's connection status, and/or detection
The USB states of the data card belonging to itself are non-dial-out states, and/or detect the key-press status of the data card belonging to itself
It is when having key-press status, to notify to wake up control module 13;
Control module 13 is waken up, is additionally operable to receive the notice from processing module 10, waken up data card and start the number
According to the Wi-Fi Hotspot of card.
Preferred embodiment, the data card in the preferred embodiment includes:Initial setup module 12, processing module 10, dormancy
Control module 11 and wake-up control module 13.Wherein,
Initial setup module 12, the initial value of the wrap count for setting polling mode.
Wherein, the initial value of the wrap count of embodiment of the present invention polling mode could be arranged to 0, it is also possible to be set to 1,
Or it is set to other positive numbers.
Processing module 10, for detecting whether the data card belonging to itself is in no user connection shape in preset duration
State;When detecting the data card belonging to itself in preset duration and being in no user connection status, detect belonging to itself
The USB states of data card and the key-press status of the data card belonging to itself;When the USB shapes for detecting the data card belonging to itself
State is dial-out state, and the key-press status of the data card belonging to itself are when being without key-press status, notify dormancy control module 11;When
Detecting the data card belonging to itself and being in has user's connection status, and/or detects the USB states of the data card belonging to itself
It is non-dial-out state, and/or it is to notify to wake up control when having key-press status to detect the key-press status of the data card belonging to itself
Module 13;
It should be noted that how the USB states of detection data card and the key-press status of data card belong to this area skill
Conventional techniques known to art personnel, here is omitted, is not intended to limit the application.
Wherein, the USB states of embodiment of the present invention data card include:Dial-out state or non-dial-out state.Wherein, this hair
The USB states of bright embodiment data card are that non-dial-out state includes:Insert state or charged state.
Wherein, as shown in Fig. 2 the schematic diagram of the USB interface for embodiment of the present invention data card, now, the USB of data card
Interface is located at the centre position of data card side, in addition to centre position, can also be arranged at the other positions of the side,
Such as left side, or right side etc..
Wherein, the key-press status of embodiment of the present invention data card include:There are key-press status or without key-press status.
Wherein, the key-press status of embodiment of the present invention data card include physical button (or being mechanical key) by key-like
The key-press status of state and/or virtual key (virtual key in touch display screen).
As shown in Figure 3 and Figure 4, be embodiment of the present invention data card button distribution schematic diagram, wherein it is possible to touch
On display screen set virtual key (including display Wi-Fi Hotspot signal intensity button, display have turned on Wi-Fi Hotspot by
Key, button of display electricity etc., wherein it is possible to any one virtual key is set to start (or closing) Wi-Fi Hotspot
Button), physical button (including reset key, the button for starting and closing Wi-Fi Hotspot etc.) is set on side frame.In addition, by
It is bad in the effect of mechanical key water proof anti-soil, therefore virtual key can also be set on side frame.
It should be noted that how to set physical button and virtual key, belong to used known to skilled person
With technological means, here is omitted, is not intended to limit the application.
Wherein, it is used to detect whether is data card belonging to itself in preset duration in embodiment of the present invention processing module 10
Being in no user connection status includes:
Whether connected in no user using data card of the polling mode according to belonging to the timer for pre-setting detects itself
Connect state;
Data card belonging in preset duration detect itself according to the timer for pre-setting using polling mode
When being in no user connection status, judge that the data card detected in preset duration belonging to itself is in no user company
Connect state.
Wherein, it is used in embodiment of the present invention processing module 10 using polling mode according to the timer detection for pre-setting
Whether the data card belonging to itself is in no user connection status includes:
When the timer expires, detect the data card belonging to itself whether in no user connection status;
When the data card belonging to itself is detected in no user connection status, judging the wrap count of polling mode is
It is no to reach predetermined threshold value;When the wrap count not up to predetermined threshold value of polling mode is judged, to the poll of polling mode
Number carries out being incremented by treatment;When the data card belonging to itself is detected in user's connection status, by the poll of polling mode
Number is set to initial value;
Until when the wrap count for judging polling mode reaches predetermined threshold value, judging using polling mode according to pre-
The data card that the timer for first setting is detected belonging to itself in preset duration is in no user connection status.
Wherein, embodiment of the present invention predetermined threshold value can be the default value set by the system of data card, it is also possible to provide
One human-computer interaction interface is configured by user according to the demand of itself.Such as could be arranged to 10, it is also possible to be set to 8, also may be used
To be set to 11 etc..
Wherein, embodiment of the present invention preset duration is the product between the timing length of timer and predetermined threshold value.
Dormancy control module 11, for receiving the notice from processing module 10, controls the data belonging to itself to stick into
Enter resting state and close Wireless Fidelity (Wi-Fi) focus of data card belonging to itself.
Control module 13 is waken up, is additionally operable to receive the notice from processing module 10, waken up data card and start the number
According to the Wi-Fi Hotspot of card.
For the data card shown in Fig. 1, present invention also provides corresponding method as shown in Figure 5.
Fig. 5 is the flow chart of the method that a kind of data card of the embodiment of the present invention realizes Wi-Fi Hotspot, as shown in figure 5, bag
Include:
Step 501:Whether detection data card is in no user connection status in preset duration.
Wherein, whether embodiment of the present invention detection data card in preset duration is in no user connection status includes:
Whether no user connection status is according to the timer detection data card for pre-setting using polling mode;
When using polling mode according to the timer for pre-setting detected in preset duration data card be in it is useless
During the connection status of family, judge that data card is detected in preset duration is in no user connection status.
Alternatively, also include before present invention method:The initial value of the wrap count of polling mode is set.This
When,
It is useless whether the embodiment of the present invention is in using polling mode according to the timer detection data card for pre-setting
Family connection status can use method as shown in Figure 6, including:
Step 601:When the timer expires, whether detection data card is in no user connection status.When detecting data
When card is in no user connection status, step 602 is transferred to;When detect data card be in have user's connection status when, be transferred to step
Rapid 604.
Step 602:Judge whether the wrap count of polling mode reaches predetermined threshold value.When the poll for judging polling mode
When number of times is not up to predetermined threshold value, step 603 is transferred to;When the wrap count for judging polling mode reaches predetermined threshold value, turn
Enter step 605.
Step 603:Wrap count to polling mode carries out being incremented by treatment.It is transferred to step 601.
Step 604:The wrap count of polling mode is set to initial value.It is transferred to step 601.
Step 605:Judge to detect data in preset duration according to the timer for pre-setting using polling mode
Card is in no user connection status.
Wherein, the initial value of the wrap count of embodiment of the present invention polling mode could be arranged to 0, it is also possible to be set to 1,
Or it is set to other positive numbers.
Wherein, embodiment of the present invention predetermined threshold value can be the default value set by the system of data card, it is also possible to provide
One human-computer interaction interface is configured by user according to the demand of itself.Such as could be arranged to 10, it is also possible to be set to 8, also may be used
To be set to 11 etc..
Wherein, embodiment of the present invention preset duration is the product between the timing length of timer and predetermined threshold value.
Step 502:When detecting data card in preset duration and being in no user connection status, detection data card
The key-press status of USB states and data card.
It should be noted that how the USB states of detection data card and the key-press status of data card belong to this area skill
Conventional techniques known to art personnel, here is omitted, is not intended to limit the application.
Wherein, the USB states of embodiment of the present invention data card include:Dial-out state or non-dial-out state.Wherein, this hair
The USB states of bright embodiment data card are that non-dial-out state includes:Insert state or charged state.
Wherein, as shown in Fig. 2 the schematic diagram of the USB interface for embodiment of the present invention data card, now, the USB of data card
Interface is located at the centre position of data card side, in addition to centre position, can also be arranged at the other positions of the side,
Such as left side, or right side etc..
Wherein, the key-press status of embodiment of the present invention data card include:There are key-press status or without key-press status.
Wherein, the key-press status of embodiment of the present invention data card include physical button (or being mechanical key) by key-like
The key-press status of state and/or virtual key (virtual key in touch display screen).
As shown in Figure 3 and Figure 4, be embodiment of the present invention data card button distribution schematic diagram, wherein it is possible to touch
On display screen set virtual key (including display Wi-Fi Hotspot signal intensity button, display have turned on Wi-Fi Hotspot by
Key, button of display electricity etc., wherein it is possible to any one virtual key is set to start (or closing) Wi-Fi Hotspot
Button), physical button (including reset key, the button for starting and closing Wi-Fi Hotspot etc.) is set on side frame.In addition, by
It is bad in the effect of mechanical key water proof anti-soil, therefore virtual key can also be set on side frame.
It should be noted that how to set physical button and virtual key, belong to used known to skilled person
With technological means, here is omitted, is not intended to limit the application.
Step 503:When the USB states for detecting data card are dial-out states, and the key-press status of data card are without button
During state, control data card enters resting state and closes the Wi-Fi Hotspot of the data card.
Wherein, present invention method can enter resting state by data card power-off come control data card.
Alternatively, also include after present invention method:
There is user's connection status when detecting data card and being in, and/or it is non-dial-out shape to detect the USB states of data card
State, and/or it is when having key-press status, to wake up the data card and start the Wi- of the data card to detect the key-press status of data card
Fi focuses.
In the application implementation method, no user connection status is in by detecting data card in preset duration, tied
The USB states that conjunction detects data card are dial-out states, and the key-press status of data card are that, without key-press status, control data is sticked into
Enter resting state and close the Wi-Fi Hotspot of the data card, it is achieved thereby that data card automatically enters resting state, reduce
The power consumption of data card.
For the data card in preferred embodiment, present invention also provides corresponding method as shown in Figure 7.
Fig. 7 is the flow chart of the method that embodiment of the present invention another kind data card realizes Wi-Fi Hotspot, as shown in fig. 7, bag
Include:
Step 701:The initial value of the wrap count of polling mode is set.
Step 702:Whether detection data card is in no user connection status in preset duration.When in preset duration
When detecting data card and being in no user connection status, step 703 is transferred to;Otherwise, step 702 is continued executing with.
Wherein, embodiment of the present invention step 702 is specifically included:
Whether no user connection status is according to the timer detection data card for pre-setting using polling mode;
When using polling mode according to the timer for pre-setting detected in preset duration data card be in it is useless
During the connection status of family, judge that data card is detected in preset duration is in no user connection status.
Wherein, whether the embodiment of the present invention is in using polling mode according to the timer detection data card for pre-setting
No user connection status includes:
When the timer expires, whether detection data card is in no user connection status;
When detect data card be in no user connection status when, judge polling mode wrap count whether reach it is default
Threshold value;When the wrap count not up to predetermined threshold value of polling mode is judged, the wrap count to polling mode is incremented by
Treatment;When data card is detected in user's connection status, the wrap count of polling mode is set to initial value;
Continue executing with when the timer expires, detection data card whether in no user connection status the step of;
When the wrap count for judging polling mode reaches predetermined threshold value, judge using polling mode according to setting in advance
The timer put detects data card in preset duration and is in no user connection status.
Wherein, the initial value of the wrap count of embodiment of the present invention polling mode could be arranged to 0, it is also possible to be set to 1,
Or it is set to other positive numbers.
Wherein, embodiment of the present invention predetermined threshold value can be the default value set by the system of data card, it is also possible to provide
One human-computer interaction interface is configured by user according to the demand of itself.Such as could be arranged to 10, it is also possible to be set to 8, also may be used
To be set to 11 etc..
Wherein, embodiment of the present invention preset duration is the product between the timing length of timer and predetermined threshold value.
Step 703:The USB states and the key-press status of data card of detection data card.
It should be noted that how the USB states of detection data card and the key-press status of data card belong to this area skill
Conventional techniques known to art personnel, here is omitted, is not intended to limit the application.
Wherein, the USB states of embodiment of the present invention data card include:Dial-out state or non-dial-out state.Wherein, this hair
The USB states of bright embodiment data card are that non-dial-out state includes:Insert state or charged state.
Wherein, as shown in Fig. 2 the schematic diagram of the USB interface for embodiment of the present invention data card, now, the USB of data card
Interface is located at the centre position of data card side, in addition to centre position, can also be arranged at the other positions of the side,
Such as left side, or right side etc..
Wherein, the key-press status of embodiment of the present invention data card include:There are key-press status or without key-press status.
Wherein, the key-press status of embodiment of the present invention data card include physical button (or being mechanical key) by key-like
The key-press status of state and/or virtual key (virtual key in touch display screen).
As shown in Figure 3 and Figure 4, be embodiment of the present invention data card button distribution schematic diagram, wherein it is possible to touch
On display screen set virtual key (including display Wi-Fi Hotspot signal intensity button, display have turned on Wi-Fi Hotspot by
Key, button of display electricity etc., wherein it is possible to any one virtual key is set to start (or closing) Wi-Fi Hotspot
Button), physical button (including reset key, the button for starting and closing Wi-Fi Hotspot etc.) is set on side frame.In addition, by
It is bad in the effect of mechanical key water proof anti-soil, therefore virtual key can also be set on side frame.
It should be noted that how to set physical button and virtual key, belong to used known to skilled person
With technological means, here is omitted, is not intended to limit the application.
Step 704:When the USB states for detecting data card are dial-out states, and the key-press status of data card are without button
During state, control data card enters resting state and closes the Wi-Fi Hotspot of the data card.
Wherein, present invention method can enter resting state by data card power-off come control data card.
Step 705:Having user's connection status when detecting data card and being in, and/or detect the USB states of data card is
Non- dial-out state, and/or it is when having key-press status, to wake up the data card and start the data to detect the key-press status of data card
The Wi-Fi Hotspot of card.
Present invention also provides a kind of data card, at least including memory and processor, wherein, be stored with memory with
Lower executable instruction:Whether detection data card is in no user connection status in preset duration;When the inspection in preset duration
When measuring data card and being in no user connection status, the USB states and the key-press status of data card of detection data card;Work as inspection
The USB states for measuring data card are dial-out states, and the key-press status of data card, when being without key-press status, control data card enters
Resting state simultaneously closes the Wi-Fi Hotspot of the data card;The above-mentioned execute instruction of computing device.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware (such as processor) is completed, and described program can be stored in computer-readable recording medium, such as read-only storage,
Disk or CD etc..Alternatively, all or part of step of above-described embodiment can also be come using one or more integrated circuits
Realize.Correspondingly, each the module/unit in above-described embodiment can be realized in the form of hardware, such as by integrated electricity
Realize its corresponding function in road, it would however also be possible to employ the form of software function module is realized, for example, is stored in by computing device
Program/instruction in memory realizes its corresponding function.The present invention is not restricted to the hardware and software of any particular form
With reference to.
Although disclosed herein implementation method as above, described content be only readily appreciate the present invention and use
Implementation method, is not limited to the present invention.Technical staff in any art of the present invention, is taken off the present invention is not departed from
On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details implemented
Scope of patent protection, must be still defined by the scope of which is defined in the appended claims.
Claims (10)
1. a kind of data card, it is characterised in that including:Processing module and dormancy control module;Wherein,
Processing module, for detecting whether the data card belonging to itself is in no user connection status in preset duration;When
When the data card belonging to itself is detected in preset duration being in no user connection status, the data card belonging to itself is detected
General-purpose serial bus USB state and the data card belonging to itself key-press status;When detecting the data card belonging to itself
USB states be dial-out state, and the key-press status of the data card belonging to itself are when being without key-press status, notify dormancy control mould
Block;
Dormancy control module, for receiving the notice from processing module, controls the data card belonging to itself to enter dormancy shape
State simultaneously closes the Wireless Fidelity Wi-Fi Hotspot of data card belonging to itself.
2. data card according to claim 1, it is characterised in that be used to be detected in preset duration in the processing module
Whether the data card belonging to itself is in no user connection status includes:
Whether connected in the no user using data card of the polling mode according to belonging to the timer for pre-setting detects itself
Connect state;
When the use polling mode is according to belonging to the timer for pre-setting detects itself in the preset duration
Data card when being in the no user connection status, judge that the data card detected in preset duration belonging to itself is equal
In no user connection status.
3. data card according to claim 2, it is characterised in that the data card also includes initial setup module, for setting
Put the initial value of the wrap count of the polling mode;Correspondingly,
Being used for the data card using polling mode according to belonging to the timer for pre-setting detects itself in the processing module is
It is no to be in the no user connection status and include:
When the timer expiry, detect the data card belonging to itself whether in the no user connection status;
When the data card belonging to itself is detected in the no user connection status, the poll of the polling mode is judged
Whether number reaches predetermined threshold value;When the wrap count for judging the polling mode is not up to the predetermined threshold value, to described
The wrap count of polling mode carries out being incremented by treatment;When the data card belonging to itself is detected in user's connection status, will
The wrap count of the polling mode is set to the initial value;
Until when the wrap count for judging the polling mode reaches the predetermined threshold value, judging using the poll side
Data card of the formula according to belonging to the timer for pre-setting detects itself in the preset duration is in the nothing
User's connection status.
4. data card according to claim 3, it is characterised in that the preset duration is the timing length of the timer
With the product between the predetermined threshold value.
5. data card according to claim 1, it is characterised in that the data card also includes waking up control module;
The processing module, has user's connection status, and/or detect certainly for that ought detect the data card belonging to itself and be in
The USB states of the data card belonging to body are non-dial-out states, and/or detect the key-press status of the data card belonging to itself
It is when having key-press status, to notify the wake-up control module;
The wake-up control module, is additionally operable to receive the notice from the processing module, wakes up the data card and starts
The Wi-Fi Hotspot.
6. a kind of method that data card realizes Wi-Fi Hotspot, it is characterised in that including:
Whether detection data card is in no user connection status in preset duration;
When detecting data card in preset duration and being in no user connection status, the USB states of detection data card and
The key-press status of data card;
When the USB states for detecting data card are dial-out states, and the key-press status of data card are when being without key-press status, control number
Into resting state and the Wi-Fi Hotspot of the data card is closed according to card.
7. method according to claim 6, it is characterised in that whether the detection data card in preset duration is in
No user connection status includes:
Detect the data card whether in the no user connection status according to the timer for pre-setting using polling mode;
The data are detected in the preset duration according to the timer for pre-setting when the polling mode is used
When card is in the no user connection status, judge that data card is detected in preset duration is in no user connection shape
State.
8. method according to claim 7, it is characterised in that also include before the method:The polling mode is set
The initial value of wrap count;Correspondingly,
The use polling mode detects whether the data card is in the no user and connects according to the timer for pre-setting
The state of connecing includes:
When the timer expiry, detect whether the data card is in the no user connection status;
When detect the data card be in the no user connection status when, judge the polling mode wrap count whether
Reach predetermined threshold value;When the wrap count for judging the polling mode is not up to the predetermined threshold value, to the poll side
The wrap count of formula carries out being incremented by treatment;When the data card is detected in user's connection status, by the polling mode
Wrap count be set to the initial value;
Described in continuing executing with when the timer expiry, detect whether the data card is in the no user connection status
Step;
When the wrap count for judging the polling mode reaches the predetermined threshold value, judge using the polling mode root
The data card is detected in the preset duration according to the timer for pre-setting and is in the no user connection shape
State.
9. method according to claim 8, it is characterised in that the preset duration be the timer timing length with
Product between the predetermined threshold value.
10. method according to claim 6, it is characterised in that also include after the method:When detecting the data card
In there is user's connection status, and/or it is non-dial-out state to detect the USB states of the data card, and/or is detected
The key-press status of data card are when having key-press status, to wake up the data card and start the Wi-Fi Hotspot.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611155178.9A CN106851796A (en) | 2016-12-14 | 2016-12-14 | A kind of data card and its method for realizing Wi Fi focuses |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611155178.9A CN106851796A (en) | 2016-12-14 | 2016-12-14 | A kind of data card and its method for realizing Wi Fi focuses |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106851796A true CN106851796A (en) | 2017-06-13 |
Family
ID=59139522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611155178.9A Pending CN106851796A (en) | 2016-12-14 | 2016-12-14 | A kind of data card and its method for realizing Wi Fi focuses |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106851796A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112801559A (en) * | 2021-04-09 | 2021-05-14 | 恒生电子股份有限公司 | Service request processing method, device, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026348A (en) * | 2010-12-23 | 2011-04-20 | Tcl集团股份有限公司 | Power management method and device for portable 3G wireless internet device |
CN102421134A (en) * | 2011-12-07 | 2012-04-18 | 华为终端有限公司 | Wireless access point equipment and method for controlling same |
CN102547935A (en) * | 2011-12-23 | 2012-07-04 | 华为终端有限公司 | Method for controlling portable router to work in low power consumption mode and portable router |
CN102833831A (en) * | 2012-08-21 | 2012-12-19 | 中兴通讯股份有限公司 | Network card device, routing device, system and method for realizing dynamic dormancy and wakeup |
CN103067954A (en) * | 2012-12-26 | 2013-04-24 | 东莞宇龙通信科技有限公司 | Method and communication terminal of automatic switch mobile hotspot |
CN104378809A (en) * | 2013-08-15 | 2015-02-25 | 华为终端有限公司 | Power loss lowering method, Wi-Fi main controller and Wi-Fi gateway |
CN104423530A (en) * | 2013-08-30 | 2015-03-18 | 中兴通讯股份有限公司 | Electricity saving control method and device of mobile device, mobile device and host terminal |
-
2016
- 2016-12-14 CN CN201611155178.9A patent/CN106851796A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026348A (en) * | 2010-12-23 | 2011-04-20 | Tcl集团股份有限公司 | Power management method and device for portable 3G wireless internet device |
CN102421134A (en) * | 2011-12-07 | 2012-04-18 | 华为终端有限公司 | Wireless access point equipment and method for controlling same |
CN102547935A (en) * | 2011-12-23 | 2012-07-04 | 华为终端有限公司 | Method for controlling portable router to work in low power consumption mode and portable router |
CN102833831A (en) * | 2012-08-21 | 2012-12-19 | 中兴通讯股份有限公司 | Network card device, routing device, system and method for realizing dynamic dormancy and wakeup |
CN103067954A (en) * | 2012-12-26 | 2013-04-24 | 东莞宇龙通信科技有限公司 | Method and communication terminal of automatic switch mobile hotspot |
CN104378809A (en) * | 2013-08-15 | 2015-02-25 | 华为终端有限公司 | Power loss lowering method, Wi-Fi main controller and Wi-Fi gateway |
CN104423530A (en) * | 2013-08-30 | 2015-03-18 | 中兴通讯股份有限公司 | Electricity saving control method and device of mobile device, mobile device and host terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112801559A (en) * | 2021-04-09 | 2021-05-14 | 恒生电子股份有限公司 | Service request processing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180260551A1 (en) | Unlocking Method And Mobile Terminal | |
US9063731B2 (en) | Ultra low power apparatus and method to wake up a main processor | |
CN104899029A (en) | Screen control method and apparatus | |
CN105808108B (en) | A kind of solution lock control method and mobile terminal | |
TWI451241B (en) | Electronic display device and power saving method | |
CN104598151B (en) | A kind of recognition methods of blank screen gesture and identifying device | |
CN109362124B (en) | Infrared detection false triggering prevention method and device and low-power-consumption wireless equipment | |
CN103391366A (en) | Mobile terminal and identification method thereof | |
CN103956792A (en) | Method and device for controlling charging temperature rise of mobile terminal | |
CN103257708A (en) | Method for waking up mobile terminal screen and mobile terminal | |
CN102968256A (en) | Awakening method and system for touch screen hand-holding device after entering dormancy mode | |
CN103257777A (en) | Control method of state of touch screen, touch screen and portable touch terminal | |
CN104142728A (en) | Electronic device | |
CN107317924B (en) | Mobile terminal and dormancy method of mobile terminal | |
US20120249431A1 (en) | Electronic device with a page turning function during a sleep mode of the electronic device | |
TW201805687A (en) | Smart glasses and method for controlling smart glasses to sleep or wake up | |
TW201626153A (en) | Intelligent electronic device, system and method for waking up screen of the intelligent electronic device | |
CN111294893A (en) | System and method for starting and sleeping low-power-consumption equipment without keys | |
CN113411504A (en) | Intelligent shooting method and system for field infrared camera | |
CN107908271A (en) | Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption | |
CN100399237C (en) | Portable electronic device capable of auto switching electric source modes and switching method thereof | |
CN108766346A (en) | The method and apparatus for protecting screen | |
CN106851796A (en) | A kind of data card and its method for realizing Wi Fi focuses | |
CN106686633A (en) | Method for preventing WIFI malicious frequent awakening | |
CN105676999B (en) | A kind of method and system of processing terminal application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |