CN106250772B - Bluetooth scan control method, device and terminal device - Google Patents
Bluetooth scan control method, device and terminal device Download PDFInfo
- Publication number
- CN106250772B CN106250772B CN201610615635.1A CN201610615635A CN106250772B CN 106250772 B CN106250772 B CN 106250772B CN 201610615635 A CN201610615635 A CN 201610615635A CN 106250772 B CN106250772 B CN 106250772B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- application program
- scanning
- condition
- scan instruction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/629—Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
Abstract
The disclosure is directed to a kind of bluetooth scan control method, device and terminal devices.This method comprises: firstly, the bluetooth scan instruction that the first application program is sent is received, it is then detected that whether the first application program meets the preset bluetooth condition of scanning;When the first application program for detecting above-mentioned meets the bluetooth condition of scanning; then respond bluetooth scan instruction; opposite the relevant technologies; judge whether the first application program meets the pre-set bluetooth condition of scanning in the disclosure; bluetooth scan instruction just is executed for the first application program if met; to the effective protection safety of user data, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Description
Technical field
This disclosure relates to computer technology more particularly to a kind of bluetooth scan control method, device and terminal device.
Background technique
As the continuous development of mobile Internet and the continuous of intelligent terminal are popularized, Android (English: Android) terminal
User is also more and more, the unquestionable hot topic for also becoming people and using of Android application, especially movement class application
(Application, referred to as are as follows: APP) and positioning class APP facilitate people's lives, are welcomed by the general public.
But current many Android apply the data in order to obtain terminal user, to frequently be carried out using bluetooth
Scanning.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of bluetooth scan control method, device and terminal
Equipment.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of bluetooth scan control method is provided, this method comprises: receiving the
The bluetooth scan instruction that one application program is sent;Detect whether the first application program meets the preset bluetooth condition of scanning;Work as inspection
When measuring the first application program and being unsatisfactory for the bluetooth condition of scanning, then bluetooth scan instruction is responded.
The technical scheme provided by this disclosed embodiment can include the following benefits: by judging the first application program
Whether meet the pre-set bluetooth condition of scanning, just executes bluetooth scan instruction if met for the first application program, if
Meet, is then that the first application program executes bluetooth scan instruction, thus the effective protection safety of user data, and avoid
Carry out the consumption that unnecessary bluetooth scans the electricity of brought terminal device.
Optionally, whether the first application program of detection meets the preset bluetooth condition of scanning, comprising:
It detects the first application program and sends whether the first time that bluetooth scan instruction initiated bluetooth scanning away from last time is greater than
Or it is equal to default bluetooth trace interval;
It is greater than when the first time for detecting that the first application program transmission bluetooth scan instruction initiated bluetooth scanning away from last time
Or when being equal to default bluetooth trace interval, it is determined that the first application program meets the bluetooth condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: can detect the first application in open
When whether program transmission bluetooth scan instruction is greater than or equal to the scanning of default bluetooth away from the first time that last time initiates bluetooth scanning
Between be spaced, if it is greater than or be equal to just for the first application program execution bluetooth scan instruction, thus effective protection user data
Safety, and avoid carry out unnecessary bluetooth scan brought by terminal device electricity consumption.
Optionally, whether the first application program of detection meets the preset bluetooth condition of scanning, comprising:
Detection obtains the operating status of the first application program;Operating status includes front stage operation or running background;
When the operating status for detecting the first application program is front stage operation, it is determined that the first application program meets bluetooth
The condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: can detect first in the disclosure and answer
With the operating status of program, if the first application program responds bluetooth scan instruction in front stage operation, so that effective protection is used
The safety of user data, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Optionally, whether the first application program of detection meets the preset bluetooth condition of scanning, comprising:
It detects the first application program and sends whether the first time that bluetooth scan instruction initiated bluetooth scanning away from last time is greater than
Or it is equal to default bluetooth trace interval;
When detecting at the first time more than or equal to default bluetooth trace interval, then acquisition first is detected using journey
The operating status of sequence;Operating status includes front stage operation or running background;
When the operating status for detecting the first application program is front stage operation, it is determined that the first application program meets bluetooth
The condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: only when first answers in the disclosure
Bluetooth scan instruction, which is sent, with program is greater than or equal to default bluetooth sweep time away from the first time that last time initiates bluetooth scanning
Interval and the first application program is in front stage operation, just response bluetooth scan instruction, thus the effective protection safety of user data
Property, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Optionally, whether the first application program of detection meets the preset bluetooth condition of scanning, comprising:
Whether detect in default bluetooth scanning blacklist includes the first application program;
It does not include the first application program when detecting that bluetooth scans in blacklist, it is determined that the first application program meets bluetooth
The condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: only when first answers in the disclosure
When not including in bluetooth scanning blacklist with program, just response bluetooth scan instruction, thus effective protection user data
Safety, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
According to the second aspect of an embodiment of the present disclosure, a kind of bluetooth scan controller is provided, which includes:
Bluetooth scan instruction receiving module is configured as receiving the bluetooth scan instruction that the first application program is sent;
Detection module, be configured as detecting received first application program of the bluetooth scan instruction receiving module be
It is no to meet the preset bluetooth condition of scanning;
Execution module is configured as detecting that first application program meets the bluetooth scanning in the detection module
When condition, the bluetooth scan instruction is responded.
The technical scheme provided by this disclosed embodiment can include the following benefits: by judging the first application program
Whether the pre-set bluetooth condition of scanning is met, if the first application program meets the pre-set bluetooth condition of scanning,
Bluetooth scan instruction is executed for the first application program, thus the effective protection safety of user data, and avoid progress not
Necessary bluetooth scans the consumption of the electricity of brought terminal device.
Optionally, the detection module includes: that the first bluetooth trace interval detection sub-module and first determine submodule
Block,
The first bluetooth trace interval detection sub-module is configured as detecting the bluetooth scan instruction reception mould
Whether received first application program of block sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning
More than or equal to default bluetooth trace interval;
Described first determines submodule, is configured as detecting when the first bluetooth trace interval detection sub-module
First application program sends the bluetooth scan instruction and initiated the first time of bluetooth scanning more than or equal to institute away from last time
When stating default bluetooth trace interval, determine that first application program meets the bluetooth condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: can detect the first application in open
Program sends whether the first time that bluetooth scan instruction initiated bluetooth scanning away from last time was greater than or equal between bluetooth sweep time
Every, if it is greater than or be equal to just for the first application program execution bluetooth scan instruction, thus the effective protection peace of user data
Quan Xing, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Optionally, the detection module includes: that the first condition monitoring submodule and second determine submodule,
The first condition monitoring submodule is configured as the operation shape that detection obtains first application program
State;The operating status includes front stage operation or running background;
Described second determines submodule, is configured as detecting described first when the first condition monitoring submodule
When the operating status of application program is front stage operation, determine that first application program meets the bluetooth condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: can detect first in the disclosure and answer
With the operating status of program, if the first application program responds bluetooth scan instruction in front stage operation, so that effective protection is used
The safety of user data, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Optionally, the detection module includes: the second bluetooth trace interval detection sub-module, the inspection of the second operating status
It surveys submodule and third determines submodule;
The second bluetooth trace interval detection sub-module is configured as detecting the bluetooth scan instruction reception mould
Whether received first application program of block sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning
More than or equal to default bluetooth trace interval;
The second condition monitoring submodule is configured as detecting submodule when the second bluetooth trace interval
When block detects that the first time is greater than or equal to the default bluetooth trace interval, detection obtains first application
The operating status of program;The operating status includes front stage operation or running background;
The third determines submodule, is configured as detecting described first when the second condition monitoring submodule
When the operating status of application program is front stage operation, determine that first application program meets the bluetooth condition of scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: only when first answers in the disclosure
Bluetooth scan instruction, which is sent, with program initiated the first time of bluetooth scanning more than or equal to bluetooth trace interval away from last time
And first application program in front stage operation, just respond bluetooth scan instruction, thus the effective protection safety of user data, and
Avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Optionally, the detection module includes: that bluetooth scanning blacklist detection sub-module and the 4th determine submodule;
The bluetooth scans blacklist detection sub-module, be configured as detecting in default bluetooth scanning blacklist whether include
First application program;
Described 4th determines submodule, is configured as detecting the indigo plant when bluetooth scanning blacklist detection sub-module
When not including first application program in tooth scanning blacklist, determine that first application program meets the bluetooth scan stripes
Part.
The technical scheme provided by this disclosed embodiment can include the following benefits: only when first answers in the disclosure
When not including in bluetooth scanning blacklist with program, just response bluetooth scan instruction, thus effective protection user data
Safety, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal device is provided, which includes: to be configured as controlling
The processor that executable instruction processed executes and the memory for being configured as storage processor executable instruction;
The processor is configured to:
Receive the bluetooth scan instruction of the first application program transmission;
Detect whether first application program meets the preset bluetooth condition of scanning;
When detecting that first application program meets the bluetooth condition of scanning, then responds the bluetooth scanning and refer to
It enables.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of bluetooth scan control method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the bluetooth scan control method shown according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of bluetooth scan control method shown according to another exemplary embodiment;
Fig. 4 is a kind of flow chart of the bluetooth scan control method shown according to a further exemplary embodiment;
Fig. 5 is the flow chart according to a kind of bluetooth scan control method also shown in an exemplary embodiment;
Fig. 6 is a kind of block diagram of bluetooth scan controller shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of the bluetooth scan controller shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of bluetooth scan controller shown according to another exemplary embodiment;
Fig. 9 is the block diagram according to a kind of bluetooth scan controller also shown in an exemplary embodiment;
Figure 10 is a kind of block diagram of the bluetooth scan controller shown according to a further exemplary embodiment;
Figure 11 is a kind of block diagram of terminal device shown according to an exemplary embodiment;
Figure 12 is a kind of block diagram of the terminal device shown according to another exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Term " first ", " second " in the specification and claims of the disclosure etc. are for distinguishing similar right
As without being used to describe a particular order or precedence order.It should be understood that the data used in this way in the appropriate case can be with
It exchanges, so that embodiment of the disclosure described herein for example can be with suitable other than those of illustrating or describing herein
Sequence is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering non-exclusive includes example
Such as, the process, method, system, product or equipment for containing a series of steps or units those of are not necessarily limited to be clearly listed
Step or unit, but may include being not clearly listed or intrinsic for these process, methods, product or equipment other
Step or unit.
Noun involved in the embodiment of the present disclosure is explained first:
Bluetooth: (English: Bluetooth), is a kind of wireless technology standard, it can be achieved that fixed equipment, mobile device and building
Short-range data exchange between space personal area network (uses superfrequency (the Ultra High of the ISM band of 2.4-2.485GHz
Frequency, referred to as are as follows: UHF) radio wave).
Fig. 1 is a kind of flow chart of bluetooth scan control method shown according to an exemplary embodiment.The present embodiment mentions
For a kind of bluetooth scan control method, this method can be executed by bluetooth scan controller, the bluetooth scan controller
Can be realized, and can be integrated in terminal device by way of hardware and/or software, the terminal device can for smart phone or
The electronic equipments such as tablet computer or personal digital assistant (Personal Digital Assistant, referred to as: PDA).Such as Fig. 1 institute
Show, the bluetooth scan control method the following steps are included:
In a step 101, the bluetooth scan instruction that the first application program is sent is received.
When the first application program in terminal device initiates bluetooth scanning, at this point, the first application program can send an indigo plant
Tooth scan instruction, the bluetooth scan instruction is for carrying out bluetooth scanning.So that application program can be according to the bluetooth scan instruction
Result after scanning executes relevant operation, such as: first application program is the APP for moving class, then executes after bluetooth scans just
The location information for holding the user of terminal device can be learnt, to determine route, the fortune of user movement according to the location information
Dynamic distance etc..
The first above-mentioned application program can be any application program in mobile terminal, and the disclosure is not applied to first
The concrete type of program limits, and the APP of above-mentioned movement class is only a kind of citing.
The bluetooth scan instruction that the first application program received in this step is sent can exist for the first application program
It sends any time and under the conditions of any.
In a step 102, whether the first application program of detection meets the preset bluetooth condition of scanning.
After the first application program sends bluetooth scan instruction, need to detect default before whether the first application program meets
The bluetooth condition of scanning, determine whether to respond the bluetooth scan instruction.
Wherein, before executing step 102, the bluetooth condition of scanning configuration message of server transmission can also be received, and
According to the bluetooth condition of scanning being previously mentioned in the bluetooth condition of scanning configuration message setting steps 102 received.
In step 103, when detecting that the first application program meets the bluetooth condition of scanning, then bluetooth scan instruction is responded.
Before detecting that the first application program meets when the preset bluetooth condition of scanning, then it is assumed that first application program
For normal application, bluetooth scan instruction can be executed for it.
And before detecting that the first application program is unsatisfactory for when the preset bluetooth condition of scanning, then it is assumed that first application
Program is malicious application, does not execute bluetooth scan instruction for it.
And in the related technology, as long as application program sends bluetooth scan instruction, bluetooth scanning just is executed for the application program
Instruction, so that application program gets any data for wanting to get, relative to the relevant technologies, judges in the disclosure
Whether the application program meets the pre-set bluetooth condition of scanning, refers to if meeting and just executing bluetooth scanning for the application program
It enables, if conditions are not met, then bluetooth scan instruction is not executed for the program, thus the effective protection safety of user data, and
Avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
To sum up, bluetooth scan control method disclosed in the embodiment of the present disclosure, comprising: firstly, receiving the first application program
The bluetooth scan instruction of transmission, it is then detected that whether the first application program meets the preset bluetooth condition of scanning;If above-mentioned
One application program meets the bluetooth condition of scanning, then responds bluetooth scan instruction, opposite the relevant technologies, judges first in the disclosure
Whether application program meets the pre-set bluetooth condition of scanning, refers to if meeting and just executing bluetooth scanning for the first application program
Enable, thus the effective protection safety of user data, and avoid carry out unnecessary bluetooth scan brought by terminal set
The consumption of standby electricity.
Fig. 2 is a kind of flow chart of the bluetooth scan control method shown according to another exemplary embodiment.The present embodiment
A kind of bluetooth scan control method is provided, this method can be executed by bluetooth scan controller, bluetooth scan control dress
Setting can be realized by way of hardware and/or software, and can be integrated in terminal device, which can be smart phone
Or the electronic equipments such as tablet computer or personal digital assistant (Personal Digital Assistant, referred to as: PDA).This reality
Applying the bluetooth condition of scanning in the corresponding embodiment of above-mentioned Fig. 1 in example includes default bluetooth trace interval, as shown in Fig. 2,
The bluetooth scan control method the following steps are included:
In step 201, the bluetooth scan instruction that the first application program is sent is received.
The implementation of this step is similar with step 101, and the description being detailed in step 101, details are not described herein again.
In step 202, the first application program of detection sends bluetooth scan instruction and initiated the first of bluetooth scanning away from last time
Whether the time is greater than or equal to default bluetooth trace interval.
Default bluetooth trace interval in the present embodiment can be according to the demand of the user for holding terminal device voluntarily
Setting, or terminal device preset in advance, the disclosure is not to the specific time span of default bluetooth trace interval
And generation method limits.
It is greater than when the first time for detecting that the first application program transmission bluetooth scan instruction initiated bluetooth scanning away from last time
Or it is equal to default bluetooth trace interval, it is determined that the first application program meets the bluetooth condition of scanning, and executes step 2031;
Bluetooth is preset when detecting that the first application program transmission bluetooth scan instruction is less than away from the first time that last time initiates bluetooth scanning
Trace interval, it is determined that the first application program is unsatisfactory for the bluetooth condition of scanning, and executes step 2032.
In step 2031, the bluetooth scan instruction of the first application program is responded.
In step 2032, the bluetooth scan instruction of the first application program is refused to respond.
To sum up, bluetooth scan control method disclosed in the embodiment of the present disclosure, comprising: firstly, receiving the first application program
The bluetooth scan instruction of transmission, it is then detected that the first application program, which sends bluetooth scan instruction, initiated bluetooth scanning away from last time
Whether it is greater than or equal to bluetooth trace interval at the first time;When detect the first above-mentioned application program meet bluetooth scanning
Condition then responds bluetooth scan instruction, opposite the relevant technologies, and the transmission bluetooth scanning of the first application program can be detected in the disclosure and is referred to
Enable whether the first time for initiating bluetooth scanning away from last time is greater than or equal to bluetooth trace interval, if it is greater than or equal to
Bluetooth scan instruction is executed for the first application program, if it is less, bluetooth scan instruction is not executed for the first application program, from
And the effective protection safety of user data, and avoid carry out unnecessary bluetooth scan brought by terminal device electricity
The consumption of amount.
Fig. 3 is a kind of flow chart of bluetooth scan control method shown according to another exemplary embodiment.The present embodiment
A kind of bluetooth scan control method is provided, this method can be executed by bluetooth scan controller, bluetooth scan control dress
Setting can be realized by way of hardware and/or software, and can be integrated in terminal device, which can be smart phone
Or the electronic equipments such as tablet computer or personal digital assistant (Personal Digital Assistant, referred to as: PDA).This reality
Applying the bluetooth condition of scanning in the corresponding embodiment of above-mentioned Fig. 1 in example includes the first application program in front stage operation, such as Fig. 3 institute
Show, the bluetooth scan control method the following steps are included:
In step 301, the bluetooth scan instruction that the first application program is sent is received.
The implementation of this step is similar with step 101, and the description being detailed in step 101, details are not described herein again.
In step 302, detection obtains the operating status of the first application program.
Operating status in the present embodiment includes: front stage operation or running background.
The method of the operating status of above-mentioned the first application program of acquisition can be by scanning the data shown in screen, with true
Determine whether have word identical with the keyword of the program name of first application program in the data shown in screen, if so, then really
Fixed first application program in front stage operation, that is, be used by a user, if not having, it is determined that the first application program is transported on backstage
Row, i.e., it is not used by a user.
What the method for the operating status of above-mentioned the first application program of acquisition can also be provided by Android
ActivityManagerService services whether the available application program is in foreground, that is, is being used by a user.
Above-mentioned the first application program of determination is in front stage operation or running background, a kind of only citing, in practical applications,
Can also be by other judgment modes, how the disclosure is to not judging the first application program in front stage operation still in running background
It limits.
In step 3031, when the operating status for detecting the first application program is front stage operation, it is determined that first answers
Meet the bluetooth condition of scanning with program, and responds the bluetooth scan instruction of the first application program.
In step 3032, when the operating status for detecting the first application program is running background, it is determined that first answers
It is unsatisfactory for the bluetooth condition of scanning with program, then refuses to respond the bluetooth scan instruction of the first application program.
In the present embodiment, after the operating status for detecting the first application program is running background, this can be backed up
The bluetooth scan instruction of first application program postpones bluetooth scanning, and program to be applied becomes front stage operation from running background, i.e.,
User have come to uses, then responds the bluetooth scan instruction of the first application program;When the first application program becomes from front stage operation
Running background may wait for preset time at this time, arrive to preset time, then stops the bluetooth scanning of the first program, answer to first
It is further continued for carrying out bluetooth scanning when coming back to front stage operation with program.
Wherein, the preset time waited in the present embodiment can voluntarily be set according to the demand for the user for holding terminal device
It sets, or terminal device preset in advance, the disclosure is not to the specific time span of the preset time of waiting and generation
Method limits.
To sum up, bluetooth scan control method disclosed in the embodiment of the present disclosure, comprising: firstly, receiving the first application program
The bluetooth scan instruction of transmission, it is then detected that the first application program is in front stage operation still in running background;If being transported on backstage
Row, then refuse to respond bluetooth scan instruction, if responding bluetooth scan instruction in front stage operation;Opposite the relevant technologies, the disclosure
The middle operating status that can detect the first application program, if refusing to respond bluetooth scan instruction in running background, if being transported on foreground
Row, then respond bluetooth scan instruction, thus the effective protection safety of user data, and avoid and carry out unnecessary bluetooth
The consumption of the electricity of terminal device brought by scanning.
Fig. 4 is a kind of flow chart of the bluetooth scan control method shown according to a further exemplary embodiment.The present embodiment
A kind of bluetooth scan control method is provided, this method can be executed by bluetooth scan controller, bluetooth scan control dress
Setting can be realized by way of hardware and/or software, and can be integrated in terminal device, which can be smart phone
Or the electronic equipments such as tablet computer or personal digital assistant (Personal Digital Assistant, referred to as: PDA).This reality
Applying the bluetooth condition of scanning in the corresponding embodiment of above-mentioned Fig. 1 in example includes default bluetooth trace interval and first using journey
Sequence in front stage operation, as shown in figure 4, the bluetooth scan control method the following steps are included:
In step 401, the bluetooth scan instruction that the first application program is sent is received.
The implementation of this step is similar with step 101, and the description being detailed in step 101, details are not described herein again.
In step 402, the first application program of detection sends bluetooth scan instruction and initiated the first of bluetooth scanning away from last time
Whether the time is greater than or equal to default bluetooth trace interval.
It is greater than when the first time for detecting that the first application program transmission bluetooth scan instruction initiated bluetooth scanning away from last time
Or when being equal to default bluetooth trace interval, 4031 are thened follow the steps, when detecting that the first application program sends bluetooth scanning
When the first time for initiating bluetooth scanning away from last time being instructed to be less than default bluetooth trace interval, 4032 are thened follow the steps.
In step 4031, detection obtains the operating status of the first application program;
Wherein, operating status includes front stage operation or running background.
When the operating status for detecting the first application program is front stage operation, 40311 are thened follow the steps, when detecting the
When the operating status of one application program is running background, 40312 are thened follow the steps.
In step 40311, when the operating status for detecting the first application program is front stage operation, it is determined that first answers
Meet the bluetooth condition of scanning with program, and responds the bluetooth scan instruction of the first application program.
In step 40312, when the operating status for detecting the first application program is running background, it is determined that first answers
It is unsatisfactory for the bluetooth condition of scanning with program, and refuses to respond the bluetooth scan instruction of the first application program.
In step 4032, the bluetooth scan instruction of the first application program is refused to respond.
To sum up, bluetooth scan control method disclosed in the embodiment of the present disclosure, comprising: firstly, receiving the first application program
The bluetooth scan instruction of transmission, it is then detected that the first application program, which sends bluetooth scan instruction, initiated bluetooth scanning away from last time
Whether it is greater than or equal to bluetooth trace interval at the first time, if the first application program sends bluetooth scan instruction and sent out away from last time
Rise bluetooth scanning first time be greater than or equal to bluetooth trace interval, then detect the first application program front stage operation also
It is in running background;If refusing to respond bluetooth scan instruction in running background, if responding bluetooth scanning in front stage operation
Instruction;Opposite the relevant technologies are only swept when the first application program sends bluetooth scan instruction and initiated bluetooth away from last time in the disclosure
The first time retouched is greater than or equal to bluetooth trace interval and the first application program is in front stage operation, just responds bluetooth scanning
Instruction, thus the effective protection safety of user data, and avoid carry out unnecessary bluetooth scan brought by terminal
The consumption of the electricity of equipment.
Fig. 5 is the flow chart according to a kind of bluetooth scan control method also shown in an exemplary embodiment.The present embodiment
A kind of bluetooth scan control method is provided, this method can be executed by bluetooth scan controller, bluetooth scan control dress
Setting can be realized by way of hardware and/or software, and can be integrated in terminal device, which can be smart phone
Or the electronic equipments such as tablet computer or personal digital assistant (Personal Digital Assistant, referred to as: PDA).This reality
Applying the bluetooth condition of scanning in the corresponding embodiment of above-mentioned Fig. 1 in example includes that default bluetooth scans blacklist, as shown in figure 5, should
Bluetooth scan control method the following steps are included:
In step 501, the bluetooth scan instruction that the first application program is sent is received.
The implementation of this step is similar with step 101, and the description being detailed in step 101, details are not described herein again.
In step 502, whether detect in default bluetooth scanning blacklist includes the first application program.
When detecting that in default bluetooth scanning blacklist do not include the first application program, 5031 are thened follow the steps, detection is worked as
Include the first application program into default bluetooth scanning blacklist, thens follow the steps 5032.
Wherein, detection bluetooth scanning blacklist in whether include the first application program a kind of achievable mode are as follows:
It is detected by the mark of the first application program, such as: table 1 is the list of default bluetooth scanning blacklist, the
The mark of one application program can be the title of the first application program, such as the entitled CDFV of the first application program, when obtaining
After the title of first application program, it can be compared with the list of the default bluetooth scanning blacklist for the table 1 safeguarded in terminal device, this
Shi Faxian CDFV is in table 1, it is determined that includes the first application program in default bluetooth scanning blacklist;If the first application program
Entitled 123, it, can be black with the default bluetooth scanning for the table 1 safeguarded in terminal device after obtaining the title of the first application program
The list of list compares, and discovery 123 is not in table 1 at this time, it is determined that does not include the first application in default bluetooth scanning blacklist
Program.
Table 1
The list of bluetooth scanning blacklist |
AFVG |
CDFV |
… |
EDAVG |
It is a kind of citing that whether it includes the first application program in bluetooth scanning blacklist that above-mentioned detection is preset, and the disclosure is simultaneously
It is not limited.
In step 5031, the bluetooth scan instruction of the first application program is responded.
In step 5032, the bluetooth scan instruction of the first application program is refused to respond.
Default bluetooth scanning blacklist involved in this embodiment itself maintenance one such as above-mentioned table 1 in terminal device
Default bluetooth scan blacklist, then after executing step 103, that is, when determine the first application program be maliciously answer
After program, the first application program can be directly added into preset bluetooth scanning blacklist;Alternatively, by the first application program mark
Knowledge is sent to server, so that preset bluetooth, which is added, in the first application program by server scans blacklist.
Do so, avoid it is subsequent when same application program retransmits bluetooth scan instruction, can accelerate identification application
Program whether be rogue program speed.
It, can also when detecting in default bluetooth scanning blacklist includes the first application program in above-mentioned step 502
Blacklist is scanned that the first application program will be added to default bluetooth;Alternatively, the first application program identification is sent to server,
So that default bluetooth, which is added, in the first application program by server scans blacklist.
In above-mentioned step 402 or in above-mentioned step 202, when detect the first application program send bluetooth scanning
When instruction is less than default bluetooth trace interval away from the first time that last time initiates bluetooth scanning, first will can also be applied
Program is added default bluetooth and scans blacklist;Alternatively, the first application program identification is sent to server, so that server is by
One application program is added default bluetooth and scans blacklist.
In above-mentioned step 4031 or in above-mentioned steps 302, when the operating status for detecting the first application program is
When running background, the first application program can also will be added to default bluetooth and scan blacklist;Alternatively, by the first application program mark
Knowledge is sent to server, so that default bluetooth, which is added, in the first application program by server scans blacklist.
To sum up, bluetooth scan control method disclosed in the embodiment of the present disclosure, comprising: firstly, receiving the first application program
The bluetooth scan instruction of transmission, it is then detected that whether including the first application program in bluetooth scanning blacklist, if bluetooth scanning is black
It include the first application program in list, it is determined that the first application program is unsatisfactory for the bluetooth condition of scanning, and refuses to respond first and answer
With the bluetooth scan instruction of program;With respect to the relevant technologies, only when the first application program is not included in bluetooth scanning in the disclosure
When in blacklist, bluetooth scan instruction is just responded, thus the effective protection safety of user data, and avoid progress need not
The bluetooth wanted scans the consumption of the electricity of brought terminal device.
On the basis of above-mentioned each embodiment, when the first application program initiates to stop the request of bluetooth scanning, first
Check whether bluetooth service program is executing scanning, if first stopping present scan scanning, then moving scan request
It removes;If do not scanned, scan request is directly removed.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 6 is a kind of block diagram of bluetooth scan controller shown according to an exemplary embodiment.Bluetooth scanning control
Device processed being implemented in combination with as some or all of of terminal device by software, hardware or both.Such as Fig. 6 institute
Show, the bluetooth scan controller that the embodiment of the present disclosure provides includes:
Bluetooth scan instruction receiving module 11 is configured as receiving the bluetooth scan instruction that the first application program is sent;
Detection module 12 is configured as detecting the bluetooth scan instruction receiving module 11 received described first using journey
Whether sequence meets the preset bluetooth condition of scanning;
Execution module 13 is configured as detecting that first application program meets the bluetooth in the detection module 12
When the condition of scanning, the bluetooth scan instruction is responded.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Bluetooth scan controller disclosed in the embodiment of the present disclosure, comprising: firstly, receiving what the first application program was sent
Bluetooth scan instruction, it is then detected that whether the first application program meets the preset bluetooth condition of scanning;When detecting above-mentioned
One application program meets the bluetooth condition of scanning, just responds bluetooth scan instruction, relatively the relevant technologies, judges first in the disclosure
Whether application program meets the pre-set bluetooth condition of scanning, refers to if meeting and just executing bluetooth scanning for the first application program
Enable, thus the effective protection safety of user data, and avoid carry out unnecessary bluetooth scan brought by terminal set
The consumption of standby electricity.
Fig. 7 is a kind of block diagram of the bluetooth scan controller shown according to another exemplary embodiment.As shown in fig. 7,
The bluetooth condition of scanning in bluetooth scan controller that the embodiment of the present disclosure provides includes the bluetooth scanning of the first application program
Time interval, on the basis of Fig. 6 corresponding embodiment, above-mentioned detection module 12 includes: the inspection of the first bluetooth trace interval
It surveys submodule 21 and first and determines submodule 22, in the present embodiment,
First bluetooth trace interval detection sub-module 21 is configured as detection bluetooth scan instruction receiving module 11 and connects
It is pre- whether the first application program transmission bluetooth scan instruction received is greater than or equal to away from the first time that last time initiates bluetooth scanning
If bluetooth trace interval;
First determines submodule 22, is configured as detecting first when the first bluetooth trace interval detection sub-module 21
When application program sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning more than or equal to default bluetooth scanning
Between when being spaced, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
The bluetooth scan controller that the embodiment of the present disclosure provides, comprising: firstly, receiving the indigo plant that the first application program is sent
Tooth scan instruction, it is then detected that the first application program sends the first time that bluetooth scan instruction initiated bluetooth scanning away from last time
Whether bluetooth trace interval is greater than or equal to;If the first above-mentioned application program meets the bluetooth condition of scanning, just response is blue
Tooth scan instruction can detect the first application program and send bluetooth scan instruction away from last time initiation with respect to the relevant technologies in the disclosure
Whether the first time of bluetooth scanning is greater than or equal to bluetooth trace interval, if it is greater than or equal to just for first using journey
Sequence executes bluetooth scan instruction, thus the effective protection safety of user data, and avoids and carries out unnecessary bluetooth and sweep
The consumption of the electricity of terminal device brought by retouching.
Fig. 8 is a kind of block diagram of bluetooth scan controller shown according to another exemplary embodiment.As shown in figure 8,
The bluetooth condition of scanning in bluetooth scan controller that the embodiment of the present disclosure provides includes the first application program in front stage operation,
On the basis of Fig. 6 corresponding embodiment, above-mentioned detection module 12 includes: that the first condition monitoring submodule 31 and second is true
Stator modules 32, in the present embodiment,
First condition monitoring submodule 31 is configured as the operating status that detection obtains the first application program;Operation
State includes front stage operation or running background;
Second determines submodule 32, is configured as detecting the first application program when the first condition monitoring submodule 31
Operating status be front stage operation when, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Bluetooth scan controller disclosed in the embodiment of the present disclosure, comprising: firstly, receiving what the first application program was sent
Bluetooth scan instruction, it is then detected that the first application program is in front stage operation still in running background;If being rung in front stage operation
Answer bluetooth scan instruction;With respect to the relevant technologies, the operating status of the first application program can be detected in the disclosure, if transporting on foreground
Row just responds bluetooth scan instruction, thus the effective protection safety of user data, and avoid the unnecessary bluetooth of progress
The consumption of the electricity of terminal device brought by scanning.
Fig. 9 is the block diagram according to a kind of bluetooth scan controller also shown in an exemplary embodiment.As shown in figure 9,
The bluetooth condition of scanning in bluetooth scan controller that the embodiment of the present disclosure provides includes the bluetooth scanning of the first application program
Time interval, and the first application program, in front stage operation, on the basis of Fig. 6 corresponding embodiment, above-mentioned detection module 12 is wrapped
Include: the second bluetooth trace interval detection sub-module 41, the second condition monitoring submodule 42 and third determine submodule
43,
Second bluetooth trace interval detection sub-module 41 is configured as detection bluetooth scan instruction receiving module 11 and connects
It is pre- whether the first application program transmission bluetooth scan instruction received is greater than or equal to away from the first time that last time initiates bluetooth scanning
If bluetooth trace interval;
Second condition monitoring submodule 42 is configured as examining when the second bluetooth trace interval detection sub-module 41
When measuring at the first time more than or equal to default bluetooth trace interval, detection obtains the operating status of the first application program;
Operating status includes front stage operation or running background;
Third determines submodule 43, is configured as detecting the first application program when the second condition monitoring submodule 42
Operating status be front stage operation when, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Bluetooth scan controller disclosed in the embodiment of the present disclosure, comprising: firstly, receiving what the first application program was sent
Bluetooth scan instruction, it is then detected that when the first application program sends first of bluetooth scan instruction away from last time initiation bluetooth scanning
Between whether be greater than or equal to default bluetooth trace interval, if the first application program sends bluetooth scan instruction and initiated away from last time
The first time of bluetooth scanning is greater than or equal to default bluetooth trace interval, then detects the first application program in front stage operation
Or in running background;If responding bluetooth scan instruction in front stage operation;Opposite the relevant technologies, only when the in the disclosure
One application program sends bluetooth scan instruction and initiated the first time of bluetooth scanning more than or equal to bluetooth sweep time away from last time
Interval and the first application program is in front stage operation, just response bluetooth scan instruction, thus the effective protection safety of user data
Property, and avoid the consumption for carrying out the electricity that unnecessary bluetooth scans brought terminal device.
Figure 10 is a kind of block diagram of the bluetooth scan controller shown according to a further exemplary embodiment.Such as Figure 10 institute
To show, the bluetooth condition of scanning in bluetooth scan controller that the embodiment of the present disclosure provides includes that default bluetooth scans blacklist,
On the basis of Fig. 6 corresponding embodiment, above-mentioned detection module 12 includes: bluetooth scanning blacklist detection sub-module 51 and the 4th
Determine submodule 52,
Bluetooth scans blacklist detection sub-module 51, and whether be configured as detecting in default bluetooth scanning blacklist includes the
One application program;
4th determines submodule 52, is configured as detecting that bluetooth is swept when default bluetooth scanning blacklist detection sub-module 51
It retouches in blacklist when not including the first application program, determines that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Bluetooth scan control method disclosed in the embodiment of the present disclosure, comprising: firstly, receiving what the first application program was sent
Bluetooth scan instruction, it is then detected that whether including the first application program in bluetooth scanning blacklist, if in bluetooth scanning blacklist
Including the first application program, it is determined that the first application program is unsatisfactory for the bluetooth condition of scanning, and refuses to respond the first application program
Bluetooth scan instruction;With respect to the relevant technologies, only when the first application program is not included in bluetooth scanning blacklist in the disclosure
When middle, bluetooth scan instruction is just responded, thus the effective protection safety of user data, and avoid and carry out unnecessary indigo plant
Tooth scans the consumption of the electricity of brought terminal device.
Figure 11 is a kind of block diagram of terminal device shown according to an exemplary embodiment, the terminal device can include: quilt
It is configured to the processor 111 and the memory 112 for being configured as storage processor executable instruction that control executable instruction executes;
Wherein, the processor 111 is configured as:
Receive the bluetooth scan instruction of the first application program transmission;
Detect whether first application program meets the preset bluetooth condition of scanning;
When detecting that first application program meets the bluetooth condition of scanning, it is determined that respond the bluetooth scanning
Instruction.
About the terminal device in above-described embodiment, wherein processor executes the concrete mode of operation in the related party
It is described in detail in the embodiment of method, no detailed explanation will be given here.
Figure 12 is a kind of block diagram of the terminal device shown according to another exemplary embodiment.For example, terminal device 800 can
To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for
Body equipment, personal digital assistant etc..
Referring to Fig.1 2, terminal device 800 may include following one or more components: processing component 802, memory 804,
Power supply module 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor module 814, with
And communication component 816.
The integrated operation of the usual controlling terminal equipment 800 of processing component 802, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more moulds
Block, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with
Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in terminal device 800.These data
Example include any application or method for being operated on terminal device 800 instruction, contact data, telephone directory
Data, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or it
Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly
Flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of terminal device 800.Power supply module 806 may include power supply pipe
Reason system, one or more power supplys and other with for terminal device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the terminal device 800 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface
Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding
The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments,
Multimedia component 808 includes a front camera and/or rear camera.When terminal device 800 is in operation mode, as clapped
When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition
Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when terminal device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical
Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for terminal device 800
Assessment.For example, sensor module 814 can detecte the state that opens/closes of terminal device 800, the relative positioning of component, example
As the component be terminal device 800 display and keypad, sensor module 814 can also detect terminal device 800 or
The position change of 800 1 components of terminal device, the existence or non-existence that user contacts with terminal device 800, terminal device 800
The temperature change of orientation or acceleration/deceleration and terminal device 800.Sensor module 814 may include proximity sensor, be configured
For detecting the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor,
Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also
To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal device 800 and other equipment.
Terminal device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one
In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 800 can be by one or more application specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of terminal device 800 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of terminal device
When device executes, so that terminal device is able to carry out a kind of bluetooth scan control method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (3)
1. a kind of bluetooth scan control method characterized by comprising
Receive the bluetooth scan instruction of the first application program transmission;
Detect whether first application program meets the preset bluetooth condition of scanning;
When detecting that first application program meets the bluetooth condition of scanning, then the bluetooth scan instruction is responded;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Detect whether first application program sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning
More than or equal to default bluetooth trace interval;
When detect first application program send the bluetooth scan instruction away from last time initiate bluetooth scanning first time
When more than or equal to the default bluetooth trace interval, it is determined that first application program meets the bluetooth scan stripes
Part;Or;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Detection obtains the operating status of first application program;The operating status includes front stage operation or running background;
When the operating status for detecting first application program is front stage operation, it is determined that first application program meets
The bluetooth condition of scanning;Or;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Detect whether first application program sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning
More than or equal to default bluetooth trace interval;
When detecting that the first time is greater than or equal to the default bluetooth trace interval, then detects and obtain described the
The operating status of one application program;The operating status includes front stage operation or running background;
When the operating status for detecting first application program is front stage operation, it is determined that first application program meets
The bluetooth condition of scanning;And/or;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Whether detect in default bluetooth scanning blacklist includes first application program;
When detecting in the default bluetooth scanning blacklist does not include first application program, it is determined that described first answers
Meet the bluetooth condition of scanning with program.
2. a kind of bluetooth scan controller characterized by comprising
Bluetooth scan instruction receiving module is configured as receiving the bluetooth scan instruction that the first application program is sent;
Whether completely detection module is configured as detecting received first application program of the bluetooth scan instruction receiving module
The preset bluetooth condition of scanning of foot;
Execution module is configured as detecting that first application program meets the bluetooth condition of scanning in the detection module
When, respond the bluetooth scan instruction;
The detection module includes: that the first bluetooth trace interval detection sub-module and first determine submodule;
The first bluetooth trace interval detection sub-module, is configured as detecting the bluetooth scan instruction receiving module and connects
First application program received sends whether the first time that the bluetooth scan instruction initiated bluetooth scanning away from last time is greater than
Or it is equal to default bluetooth trace interval;
Described first determines submodule, be configured as when the first bluetooth trace interval detection sub-module detect it is described
First application program sends the bluetooth scan instruction and initiated the first time of bluetooth scanning more than or equal to described pre- away from last time
If when bluetooth trace interval, determining that first application program meets the bluetooth condition of scanning;Or;
The detection module includes: that the first condition monitoring submodule and second determine submodule;
The first condition monitoring submodule is configured as the operating status that detection obtains first application program;Institute
Stating operating status includes front stage operation or running background;
Described second determines submodule, is configured as detecting first application when the first condition monitoring submodule
When the operating status of program is front stage operation, determine that first application program meets the bluetooth condition of scanning;Or;
The detection module include: the second bluetooth trace interval detection sub-module, the second condition monitoring submodule and
Third determines submodule;
The second bluetooth trace interval detection sub-module, is configured as detecting the bluetooth scan instruction receiving module and connects
First application program received sends whether the first time that the bluetooth scan instruction initiated bluetooth scanning away from last time is greater than
Or it is equal to default bluetooth trace interval;
The second condition monitoring submodule is configured as examining when the second bluetooth trace interval detection sub-module
When measuring the first time more than or equal to the default bluetooth trace interval, detection obtains first application program
Operating status;The operating status includes front stage operation or running background
The third determines submodule, is configured as detecting first application when the second condition monitoring submodule
When the operating status of program is front stage operation, determine that first application program meets the bluetooth condition of scanning;And/or;
The detection module includes: that bluetooth scanning blacklist detection sub-module and the 4th determine submodule;
The bluetooth scans blacklist detection sub-module, and whether be configured as detecting in default bluetooth scanning blacklist includes described
First application program;
Described 4th determines submodule, is configured as detecting the default indigo plant when bluetooth scanning blacklist detection sub-module
When not including first application program in tooth scanning blacklist, determine that first application program meets the bluetooth scan stripes
Part.
3. a kind of terminal device characterized by comprising be configured as the processor and be configured that control executable instruction executes
For the memory of storage processor executable instruction;
The processor is configured to:
Receive the bluetooth scan instruction of the first application program transmission;
Detect whether first application program meets the preset bluetooth condition of scanning;
When detecting that first application program meets the bluetooth condition of scanning, then the bluetooth scan instruction is responded;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Detect whether first application program sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning
More than or equal to default bluetooth trace interval;
When detect first application program send the bluetooth scan instruction away from last time initiate bluetooth scanning first time
When more than or equal to the default bluetooth trace interval, it is determined that first application program meets the bluetooth scan stripes
Part;Or;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Detection obtains the operating status of first application program;The operating status includes front stage operation or running background;
When the operating status for detecting first application program is front stage operation, it is determined that first application program meets
The bluetooth condition of scanning;Or;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Detect whether first application program sends first time of the bluetooth scan instruction away from last time initiation bluetooth scanning
More than or equal to default bluetooth trace interval;
When detecting that the first time is greater than or equal to the default bluetooth trace interval, then detects and obtain described the
The operating status of one application program;The operating status includes front stage operation or running background;
When the operating status for detecting first application program is front stage operation, it is determined that first application program meets
The bluetooth condition of scanning;And/or;
Whether detection first application program meets the preset bluetooth condition of scanning, comprising:
Whether detect in default bluetooth scanning blacklist includes first application program;
When detecting in the default bluetooth scanning blacklist does not include first application program, it is determined that described first answers
Meet the bluetooth condition of scanning with program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610615635.1A CN106250772B (en) | 2016-07-28 | 2016-07-28 | Bluetooth scan control method, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610615635.1A CN106250772B (en) | 2016-07-28 | 2016-07-28 | Bluetooth scan control method, device and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106250772A CN106250772A (en) | 2016-12-21 |
CN106250772B true CN106250772B (en) | 2019-11-08 |
Family
ID=57605439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610615635.1A Active CN106250772B (en) | 2016-07-28 | 2016-07-28 | Bluetooth scan control method, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250772B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110443085B (en) * | 2019-06-17 | 2023-08-01 | 深圳盈达信息科技有限公司 | Control method for fall protection of scanning device and scanning device |
CN110443086B (en) * | 2019-06-17 | 2023-08-01 | 深圳盈达信息科技有限公司 | Control method for fall protection of scanning device and scanning device |
CN116528209B (en) * | 2023-05-05 | 2023-11-24 | 荣耀终端有限公司 | Bluetooth scanning method, device, chip system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607780A (en) * | 2013-11-19 | 2014-02-26 | 惠州Tcl移动通信有限公司 | Mobile device and network connection method thereof |
CN103747413A (en) * | 2013-12-24 | 2014-04-23 | 英威康科技股份有限公司 | Control system and control method of remote device |
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104102882B (en) * | 2013-04-12 | 2017-05-03 | 腾讯科技(深圳)有限公司 | Protection method and device for privacy data of application program |
CN105430547B (en) * | 2015-10-23 | 2019-03-29 | 小米科技有限责任公司 | The dormancy method and device of bluetooth headset |
-
2016
- 2016-07-28 CN CN201610615635.1A patent/CN106250772B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN103607780A (en) * | 2013-11-19 | 2014-02-26 | 惠州Tcl移动通信有限公司 | Mobile device and network connection method thereof |
CN103747413A (en) * | 2013-12-24 | 2014-04-23 | 英威康科技股份有限公司 | Control system and control method of remote device |
Also Published As
Publication number | Publication date |
---|---|
CN106250772A (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104936304B (en) | Smart machine binding method, smart machine and server | |
RU2641541C2 (en) | Method for managing intelligent device, terminal and server | |
CN104993981B (en) | Control the method and device of equipment access | |
CN109658927A (en) | Wake-up processing method, device and the management equipment of smart machine | |
CN105607834B (en) | Screen control method, device and terminal | |
CN105407473B (en) | WLAN finds method and device | |
CN105117209B (en) | Using exchange method and device | |
KR20140034279A (en) | Context awareness proximity-based wireless connection establishment | |
CN105120505B (en) | The method, apparatus and system of smart machine couple in router | |
CN105430185B (en) | The method, apparatus and equipment of information alert | |
CN104837154B (en) | The control method and device of wireless access points | |
CN108710456A (en) | Application icon processing method, device and mobile terminal | |
CN105430715B (en) | Control the method and device of WIFI scanning | |
CN104159218A (en) | Network connection establishment method and device | |
CN109039877A (en) | A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity | |
CN105301183B (en) | Detection of Air Quality method and apparatus | |
CN103957330A (en) | Method, device and system for processing calling busying | |
CN105704766A (en) | Control method and device of double-card mobile terminal | |
CN107783715A (en) | Using startup method and device | |
CN106250772B (en) | Bluetooth scan control method, device and terminal device | |
CN110262692A (en) | A kind of touch screen scanning method, device and medium | |
CN109314842A (en) | Resource incudes result report method, device, user equipment and storage medium | |
CN105337937B (en) | Network verification method, device and computer readable storage medium | |
CN106357610B (en) | Communication means and device | |
CN104811904A (en) | Contact setting method and device |
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 |