CN106250772A - Bluetooth scan control method, device and terminal unit - Google Patents

Bluetooth scan control method, device and terminal unit Download PDF

Info

Publication number
CN106250772A
CN106250772A CN201610615635.1A CN201610615635A CN106250772A CN 106250772 A CN106250772 A CN 106250772A CN 201610615635 A CN201610615635 A CN 201610615635A CN 106250772 A CN106250772 A CN 106250772A
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.)
Granted
Application number
CN201610615635.1A
Other languages
Chinese (zh)
Other versions
CN106250772B (en
Inventor
邱子峰
王智勇
刘立伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610615635.1A priority Critical patent/CN106250772B/en
Publication of CN106250772A publication Critical patent/CN106250772A/en
Application granted granted Critical
Publication of CN106250772B publication Critical patent/CN106250772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/606Protecting data by securing the transmission between two devices or processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/629Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of bluetooth scan control method, device and terminal unit.The method includes: first, receives the bluetooth scan instruction that the first application program sends, it is then detected that whether the first application program meets the bluetooth condition of scanning preset;When detecting that the first above-mentioned application program meets the bluetooth condition of scanning; then response bluetooth scan instruction; correlation technique relatively; the disclosure judging, whether the first application program meets the bluetooth condition of scanning pre-set; if meeting is just that the first application program performs bluetooth scan instruction; thus effectively protect the safety of user data, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.

Description

Bluetooth scan control method, device and terminal unit
Technical field
It relates to computer technology, particularly relate to a kind of bluetooth scan control method, device and terminal unit.
Background technology
The most universal along with the development of mobile Internet and intelligent terminal, Android is (English: Android) terminal User also gets more and more, and Android application undoubtedly also becomes the hot topic that people use, and especially motion class is applied (Application referred to as: APP) and position class APP and facilitate the life of people, is welcomed by the general public.
But current a lot of Android application is in order to obtain the data of terminal use, thus frequently uses bluetooth and carry out Scanning.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of bluetooth scan control method, device and terminal Equipment.Described technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of bluetooth scan control method, the method includes: receive the The bluetooth scan instruction that one application program sends;Detect whether the first application program meets the bluetooth condition of scanning preset;Work as inspection Measure the first application program when being unsatisfactory for the bluetooth condition of scanning, then response bluetooth scan instruction.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: by judging the first application program Whether meet the bluetooth condition of scanning pre-set, if meeting is just that the first application program performs bluetooth scan instruction, if Meet, be then that the first application program performs bluetooth scan instruction, thus effectively protect the safety of user data, and avoid Carry out the consumption of the electricity of the terminal unit that unnecessary bluetooth scanning is brought.
Alternatively, detect whether the first application program meets the bluetooth condition of scanning preset, including:
Detect the first application program and send whether bluetooth scan instruction was more than away from the very first time that last time initiates bluetooth scanning Or equal to presetting bluetooth trace interval;
When detecting that the first application program sends bluetooth scan instruction and is more than away from the very first time that last time initiates bluetooth scanning Or equal to when presetting bluetooth trace interval, it is determined that the first application program meets the bluetooth condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: the first application in Gong Kai, can be detected Program sends bluetooth scan instruction and whether initiated the very first time of bluetooth scanning more than or equal to when presetting bluetooth scanning away from last time Between be spaced, if greater than or equal to being just the first application program execution bluetooth scan instruction, thus effectively protect user data Safety, and avoid the consumption of the electricity carrying out the terminal unit that the scanning of unnecessary bluetooth is brought.
Alternatively, detect whether the first application program meets the bluetooth condition of scanning preset, including:
Detection obtains the running status of the first application program;Running status includes front stage operation or running background;
When the running status the first application program being detected is front stage operation, it is determined that the first application program meets bluetooth The condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can detect first in the disclosure should By the running status of program, if the first application program is at front stage operation, then response bluetooth scan instruction, thus effectively protect use The safety of user data, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Alternatively, detect whether the first application program meets the bluetooth condition of scanning preset, including:
Detect the first application program and send whether bluetooth scan instruction was more than away from the very first time that last time initiates bluetooth scanning Or equal to presetting bluetooth trace interval;
When detecting that the very first time is more than or equal to preset bluetooth trace interval, then detection obtains the first application journey The running status of sequence;Running status includes front stage operation or running background;
When the running status the first application program being detected is front stage operation, it is determined that the first application program meets bluetooth The condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: only when first should in the disclosure Send bluetooth scan instruction by program and initiate the very first time of bluetooth scanning more than or equal to presetting bluetooth sweep time away from last time Interval and the first application program, at front stage operation, just respond bluetooth scan instruction, thus effectively protect the safety of user data Property, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Alternatively, detect whether the first application program meets the bluetooth condition of scanning preset, including:
Detection presets in bluetooth scanning blacklist whether include the first application program;
The first application program is not included, it is determined that the first application program meets bluetooth when detecting in bluetooth scanning blacklist The condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: only when first should in the disclosure During by program not included in bluetooth scanning blacklist, just response bluetooth scan instruction, thus effectively protect user data Safety, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Second aspect according to disclosure embodiment, it is provided that a kind of bluetooth scan controller, this device includes:
Bluetooth scan instruction receiver module, is configured to receive the bluetooth scan instruction that the first application program sends;
Detection module, described first application program being configured to detect the reception of described bluetooth scan instruction receiver module is The no satisfied bluetooth condition of scanning preset;
Perform module, be configured to detect that described first application program meets the scanning of described bluetooth at described detection module During condition, respond described bluetooth scan instruction.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: by judging the first application program Whether meet the bluetooth condition of scanning pre-set, if the first application program meets the bluetooth condition of scanning pre-set, It is that the first application program performs bluetooth scan instruction, thus effectively protects the safety of user data, and avoid and carry out not The consumption of the electricity of the terminal unit that necessary bluetooth scanning is brought.
Alternatively, described detection module includes: the first bluetooth trace interval detection sub-module and first determines submodule Block,
Described first bluetooth trace interval detection sub-module, is configured to detect described bluetooth scan instruction and receives mould Described first application program that block receives sends whether described bluetooth scan instruction initiated the very first time of bluetooth scanning away from last time More than or equal to presetting bluetooth trace interval;
Described first determines submodule, is configured as described first bluetooth trace interval detection sub-module and detects Described first application program sends described bluetooth scan instruction and initiated the very first time of bluetooth scanning more than or equal to institute away from last time When stating default bluetooth trace interval, determine that described first application program meets the described bluetooth condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: the first application in Gong Kai, can be detected Program send bluetooth scan instruction away from last time initiate very first time of bluetooth scanning whether more than or equal to bluetooth sweep time between Every, if greater than or equal to being just the first application program execution bluetooth scan instruction, thus effectively protect the peace of user data Quan Xing, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Alternatively, described detection module includes: the first condition monitoring submodule and second determines submodule,
Described first condition monitoring submodule, is configured to detection and obtains the operation shape of described first application program State;Described running status includes front stage operation or running background;
Described second determines submodule, is configured as described first condition monitoring submodule and detects described first When the running status of application program is front stage operation, determine that described first application program meets the described bluetooth condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: can detect first in the disclosure should By the running status of program, if the first application program is at front stage operation, then response bluetooth scan instruction, thus effectively protect use The safety of user data, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Alternatively, described detection module includes: the second bluetooth trace interval detection sub-module, the second running status inspection Survey submodule and the 3rd and determine submodule;
Described second bluetooth trace interval detection sub-module, is configured to detect described bluetooth scan instruction and receives mould Described first application program that block receives sends whether described bluetooth scan instruction initiated the very first time of bluetooth scanning away from last time More than or equal to presetting bluetooth trace interval;
Described second condition monitoring submodule, is configured as described second bluetooth trace interval detection submodule Block detects when the described very first time is more than or equal to described default bluetooth trace interval, and detection obtains described first application The running status of program;Described running status includes front stage operation or running background;
Described 3rd determines submodule, is configured as described second condition monitoring submodule and detects described first When the running status of application program is front stage operation, determine that described first application program meets the described bluetooth condition of scanning.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: only when first should in the disclosure Send bluetooth scan instruction by program and initiate the very first time of bluetooth scanning more than or equal to bluetooth trace interval away from last time And first application program at front stage operation, just response bluetooth scan instruction, thus effectively protects the safety of user data, and Avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Alternatively, described detection module includes: bluetooth scanning blacklist detection sub-module and the 4th determines submodule;
Whether described bluetooth scanning blacklist detection sub-module, be configured to detect in default bluetooth scanning blacklist and include Described first application program;
Described 4th determines submodule, is configured as described bluetooth scanning blacklist detection sub-module and described indigo plant detected When tooth scanning blacklist does not includes described first application program, determine that described first application program meets described bluetooth scan stripes Part.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: only when first should in the disclosure During by program not included in bluetooth scanning blacklist, just response bluetooth scan instruction, thus effectively protect user data Safety, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
The third aspect according to disclosure embodiment, it is provided that a kind of terminal unit, this terminal unit includes: be configured to control The processor that executable instruction processed performs and the memorizer being configured to storage processor executable;
Described processor is configured to:
Receive the bluetooth scan instruction that the first application program sends;
Detect whether described first application program meets the bluetooth condition of scanning preset;
When detecting that described first application program meets the described bluetooth condition of scanning, then respond the scanning of described bluetooth and refer to Order.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure Example, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart according to a kind of bluetooth scan control method shown in an exemplary embodiment;
Fig. 2 is the flow chart according to a kind of bluetooth scan control method shown in another exemplary embodiment;
Fig. 3 is the flow chart according to a kind of bluetooth scan control method shown in another exemplary embodiment;
Fig. 4 is the flow chart according to a kind of bluetooth scan control method shown in further example embodiment;
Fig. 5 is the flow chart according to the also a kind of bluetooth scan control method shown in an exemplary embodiment;
Fig. 6 is the block diagram according to a kind of bluetooth scan controller shown in an exemplary embodiment;
Fig. 7 is the block diagram according to a kind of bluetooth scan controller shown in another exemplary embodiment;
Fig. 8 is the block diagram according to a kind of bluetooth scan controller shown in another exemplary embodiment;
Fig. 9 is the block diagram according to the also a kind of bluetooth scan controller shown in an exemplary embodiment;
Figure 10 is the block diagram according to a kind of bluetooth scan controller shown in further example embodiment;
Figure 11 is the block diagram according to a kind of terminal unit shown in an exemplary embodiment;
Figure 12 is the block diagram according to a kind of terminal unit shown in another exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the embodiment that the disclosure is clear and definite, hereinafter will be described in more detail.These accompanying drawings With word, the scope being not intended to be limited disclosure design by any mode is described, but by with reference to specific embodiment being Those skilled in the art illustrate the concept of the disclosure.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
Term " first " in the specification and claims of the disclosure, " second " etc. are similar right for distinguishing As, without being used for describing specific order or precedence.Should be appreciated that the data of so use are the most permissible Exchange, in order to described herein embodiment of the disclosure such as can suitable with in addition to those here illustrating or describing Sequence is implemented.Additionally, term " includes " and " having " and their any deformation, it is intended that cover non-exclusive comprising, example As, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to those that clearly list Step or unit, but can include the most clearly listing or for intrinsic other of these processes, method, product or equipment Step or unit.
First the noun involved by disclosure embodiment is explained:
Bluetooth: (English: Bluetooth), it is a kind of wireless technology standard, fixing equipment, mobile device and building can be realized 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: UHF) radio wave).
Fig. 1 is the flow chart according to a kind of bluetooth scan control method shown in an exemplary embodiment.The present embodiment carries For a kind of bluetooth scan control method, the method can be performed by bluetooth scan controller, this bluetooth scan controller Can realize by the way of hardware and/or software, and can be integrated in terminal unit, this terminal unit can be smart mobile phone or PDA) (Personal Digital Assistant, is called for short: the electronic equipment such as panel computer or personal digital assistant.Such as Fig. 1 institute Showing, this bluetooth scan control method comprises the following steps:
In a step 101, the bluetooth scan instruction that the first application program sends is received.
When the first application program in terminal unit initiates bluetooth scanning, now, it is blue that the first application program can send one Tooth scan instruction, this bluetooth scan instruction is used for carrying out bluetooth scanning.So that, application program can be according to this bluetooth scan instruction Result after scanning performs associative operation, such as: this first application program is the APP of motion class, then after the scanning of execution bluetooth just It is appreciated that the positional information of the user holding terminal unit, thus determines the route of user movement, fortune according to this positional information Dynamic distance etc..
The first above-mentioned application program can be any one application program in mobile terminal, and the disclosure is not to the first application The particular type of program is any limitation as, and the APP of above-mentioned motion class is only one citing.
The bluetooth scan instruction that the first application program received in this step sends, can be that the first application program exists Any time and any under the conditions of send.
In a step 102, detect whether the first application program meets the bluetooth condition of scanning preset.
When the first application program sends after bluetooth scan instruction, need to detect the first application program and whether meet and preset before The bluetooth condition of scanning, determine whether to respond this bluetooth scan instruction.
Wherein, before performing step 102, it is also possible to receive the bluetooth condition of scanning configuration message that server sends, 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 response bluetooth scan instruction.
When detecting that the first application program meets the bluetooth condition of scanning preset before, then it is assumed that this first application program For normal application, can be that it performs bluetooth scan instruction.
And when the bluetooth condition of scanning that the first application program is unsatisfactory for presetting before being detected, then it is assumed that this first application Program is malicious application, does not performs bluetooth scan instruction for it.
And in correlation technique, as long as application program sends bluetooth scan instruction, just perform bluetooth scanning for this application program Instruction, so that application program gets any data wanting to get, relative to correlation technique, can judge in the disclosure Whether this application program meets the bluetooth condition of scanning pre-set, and just refers to for the execution bluetooth scanning of this application program if met Order, if being unsatisfactory for, not performing bluetooth scan instruction for this program, thus effectively protecting the safety of user data, and Avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
To sum up, the bluetooth scan control method disclosed in disclosure embodiment, including: first, receive the first application program The bluetooth scan instruction sent, it is then detected that whether the first application program meets the bluetooth condition of scanning preset;If above-mentioned One application program meets the bluetooth condition of scanning, then response bluetooth scan instruction, relative correlation technique, can judge first in the disclosure Whether application program meets the bluetooth condition of scanning pre-set, if meeting is just that the first application program execution bluetooth scanning refers to Order, thus effectively protects the safety of user data, and avoids and carry out the terminal that unnecessary bluetooth scanning brought and set The consumption of standby electricity.
Fig. 2 is the flow chart according to a kind of bluetooth scan control method shown in another exemplary embodiment.The present embodiment Thering is provided a kind of bluetooth scan control method, the method can be performed by bluetooth scan controller, and this bluetooth scan control fills Putting and can realize by the way of hardware and/or software, and can be integrated in terminal unit, this terminal unit can be smart mobile phone Or panel computer or personal digital assistant PDA) (Personal Digital Assistant, is called for short: the electronic equipment such as.This reality Execute the bluetooth condition of scanning in embodiment corresponding for above-mentioned Fig. 1 in example to include presetting bluetooth trace interval, as in figure 2 it is shown, This bluetooth scan control method comprises the following steps:
In step 201, the bluetooth scan instruction that the first application program sends is received.
The implementation of this step is similar with step 101, refers to the description in step 101, and here is omitted.
In step 202., detect the first application program transmission bluetooth scan instruction and initiate the first of bluetooth scanning away from last time Whether the time is more than or equal to presetting bluetooth trace interval.
Default bluetooth trace interval in the present embodiment can according to hold terminal unit user demand voluntarily Arrange, it is also possible to for terminal unit preset in advance, the disclosure not concrete time span to default bluetooth trace interval And generation method is any limitation as.
When detecting that the first application program sends bluetooth scan instruction and is more than away from the very first time that last time initiates bluetooth scanning Or equal to presetting bluetooth trace interval, it is determined that the first application program meets the bluetooth condition of scanning, and performs step 2031; When detecting that the first application program sends bluetooth scan instruction and initiated the very first time of bluetooth scanning less than presetting bluetooth away from last time Trace interval, it is determined that the first application program is unsatisfactory for the bluetooth condition of scanning, and performs step 2032.
In step 2031, respond the bluetooth scan instruction of the first application program.
In step 2032, the bluetooth scan instruction of refusal response the first application program.
To sum up, the bluetooth scan control method disclosed in disclosure embodiment, including: first, receive the first application program The bluetooth scan instruction sent, it is then detected that the first application program sends bluetooth scan instruction initiated bluetooth scanning away from last time Whether the very first time is more than or equal to bluetooth trace interval;When detecting that the first above-mentioned application program meets bluetooth scanning Condition, then response bluetooth scan instruction, relative correlation technique, can detect the first application program transmission bluetooth scanning and refer in the disclosure Make and initiated very first time of bluetooth scanning whether more than or equal to bluetooth trace interval away from last time, if greater than or equal to It is that the first application program performs bluetooth scan instruction, if it is less, be not that the first application program performs bluetooth scan instruction, from And effectively protect the safety of user data, and avoid the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought The consumption of amount.
Fig. 3 is the flow chart according to a kind of bluetooth scan control method shown in another exemplary embodiment.The present embodiment Thering is provided a kind of bluetooth scan control method, the method can be performed by bluetooth scan controller, and this bluetooth scan control fills Putting and can realize by the way of hardware and/or software, and can be integrated in terminal unit, this terminal unit can be smart mobile phone Or panel computer or personal digital assistant PDA) (Personal Digital Assistant, is called for short: the electronic equipment such as.This reality Execute the bluetooth condition of scanning in embodiment corresponding for above-mentioned Fig. 1 in example include the first application program at front stage operation, such as Fig. 3 institute Showing, this bluetooth scan control method comprises the following steps:
In step 301, the bluetooth scan instruction that the first application program sends is received.
The implementation of this step is similar with step 101, refers to the description in step 101, and here is omitted.
In step 302, detection obtains the running status of the first application program.
Running status in the present embodiment includes: front stage operation or running background.
The method of the running status of above-mentioned acquisition the first application program can be by the data of display in scanning screen, with really Determine whether screen has the word identical with the keyword of the program name of this first application program, if having, the most really in the data of display First application program is at front stage operation calmly, the most it is used by a user, if not having, it is determined that the first application program is transported on backstage OK, the most it is not used by a user.
The method of the running status of above-mentioned acquisition the first application program can also be provided by Android ActivityManagerService service can obtain whether this application program is in foreground, is the most used by a user.
Above-mentioned determine the first application program at front stage operation or running background, simply one citing, in actual applications, Can also by other judgment mode, the disclosure not to how to judge the first application program at front stage operation still at running background It is any limitation as.
In step 3031, when the running status the first application program being detected is front stage operation, it is determined that first should The bluetooth condition of scanning, and the bluetooth scan instruction of response the first application program is met by program.
In step 3032, when the running status the first application program being detected is running background, it is determined that first should It is unsatisfactory for the bluetooth condition of scanning, then the bluetooth scan instruction of refusal response the first application program by program.
In the present embodiment, after the running status the first application program being detected is running background, can be backed up this The bluetooth scan instruction of the 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, now may wait for Preset Time, treats that Preset Time arrives, then stop the bluetooth scanning of the first program, treats that first should It is further continued for when coming back to front stage operation by program carrying out bluetooth scanning.
Wherein, the Preset Time waited in the present embodiment can set voluntarily according to the demand of the user holding terminal unit Put, it is also possible to for terminal unit preset in advance, the disclosure not concrete time span and generation to the Preset Time waited Method is any limitation as.
To sum up, the bluetooth scan control method disclosed in disclosure embodiment, including: first, receive the first application program Send bluetooth scan instruction, it is then detected that the first application program at front stage operation still at running background;If transporting on backstage OK, then refusal response bluetooth scan instruction, if at front stage operation, then response bluetooth scan instruction;Correlation technique, the disclosure relatively The middle running status that can detect the first application program, if at running background, then refusal response bluetooth scan instruction, if transporting on foreground OK, then response bluetooth scan instruction, thus effectively protects the safety of user data, and avoids and carry out unnecessary bluetooth The consumption of the electricity of the terminal unit that scanning is brought.
Fig. 4 is the flow chart according to a kind of bluetooth scan control method shown in further example embodiment.The present embodiment Thering is provided a kind of bluetooth scan control method, the method can be performed by bluetooth scan controller, and this bluetooth scan control fills Putting and can realize by the way of hardware and/or software, and can be integrated in terminal unit, this terminal unit can be smart mobile phone Or panel computer or personal digital assistant PDA) (Personal Digital Assistant, is called for short: the electronic equipment such as.This reality Execute the bluetooth condition of scanning in embodiment corresponding for above-mentioned Fig. 1 in example to include presetting bluetooth trace interval and the first application journey Sequence is at front stage operation, and as shown in Figure 4, this bluetooth scan control method comprises the following steps:
In step 401, the bluetooth scan instruction that the first application program sends is received.
The implementation of this step is similar with step 101, refers to the description in step 101, and here is omitted.
In step 402, detect the first application program transmission bluetooth scan instruction and initiate the first of bluetooth scanning away from last time Whether the time is more than or equal to presetting bluetooth trace interval.
When detecting that the first application program sends bluetooth scan instruction and is more than away from the very first time that last time initiates bluetooth scanning Or equal to when presetting bluetooth trace interval, then perform step 4031, when detecting that the first application program sends bluetooth scanning Instruct away from last time initiate bluetooth scanning the very first time less than preset bluetooth trace interval time, then perform step 4032.
In step 4031, detection obtains the running status of the first application program;
Wherein, running status includes front stage operation or running background.
When the running status the first application program being detected is front stage operation, then perform step 40311, when detecting the When the running status of one application program is running background, then perform step 40312.
In step 40311, when the running status the first application program being detected is front stage operation, it is determined that first should The bluetooth condition of scanning, and the bluetooth scan instruction of response the first application program is met by program.
In step 40312, when the running status the first application program being detected is running background, it is determined that first should It is unsatisfactory for the bluetooth condition of scanning, and the bluetooth scan instruction of refusal response the first application program by program.
In step 4032, the bluetooth scan instruction of refusal response the first application program.
To sum up, the bluetooth scan control method disclosed in disclosure embodiment, including: first, receive the first application program The bluetooth scan instruction sent, it is then detected that the first application program sends bluetooth scan instruction initiated bluetooth scanning away from last time Whether the very first time is more than or equal to bluetooth trace interval, if the first application program sends bluetooth scan instruction and sent out away from last time The very first time playing bluetooth scanning is more than or equal to bluetooth trace interval, then detect the first application program at front stage operation also It is at running background;If at running background, then refusal response bluetooth scan instruction, if at front stage operation, then response bluetooth scanning Instruction;Correlation technique relatively, only initiated bluetooth when the first application program transmission bluetooth scan instruction away from last time in the disclosure and sweeps The very first time retouched, just response bluetooth scanned more than or equal to bluetooth trace interval and the first application program at front stage operation Instruction, thus effectively protects the safety of user data, and avoids and carry out unnecessary bluetooth and scan the terminal brought The consumption of the electricity of equipment.
Fig. 5 is the flow chart according to the also a kind of bluetooth scan control method shown in an exemplary embodiment.The present embodiment Thering is provided a kind of bluetooth scan control method, the method can be performed by bluetooth scan controller, and this bluetooth scan control fills Putting and can realize by the way of hardware and/or software, and can be integrated in terminal unit, this terminal unit can be smart mobile phone Or panel computer or personal digital assistant PDA) (Personal Digital Assistant, is called for short: the electronic equipment such as.This reality Execute the bluetooth condition of scanning in embodiment corresponding for above-mentioned Fig. 1 in example to include presetting bluetooth scanning blacklist, as it is shown in figure 5, should Bluetooth scan control method comprises the following steps:
In step 501, the bluetooth scan instruction that the first application program sends is received.
The implementation of this step is similar with step 101, refers to the description in step 101, and here is omitted.
In step 502, whether detection includes the first application program in presetting bluetooth scanning blacklist.
Do not include the first application program when detecting in default bluetooth scanning blacklist, then perform step 5031, work as detection Include the first application program to default bluetooth scanning blacklist, then perform step 5032.
Wherein, whether detection bluetooth scanning blacklist includes that the one of the first application program can implementation be:
Detected by the mark of the first application program, such as: table 1 is the list presetting bluetooth scanning blacklist, the The mark of one application program can be the title of the first application program, and the entitled CDFV of the such as first application program, when obtaining After the title of the first application program, can be with the list comparison of the default bluetooth scanning blacklist of the table 1 of maintenance in terminal unit, this Shi Faxian CDFV is in Table 1, it is determined that presets bluetooth scanning blacklist and includes the first application program;If the first application program Entitled 123, when, after the title obtaining the first application program, scanning black with the default bluetooth of the table 1 of maintenance in terminal unit The list comparison of list, now finds 123 the most in Table 1, it is determined that presets in bluetooth scanning blacklist and does not include the first application Program.
Table 1
The list of bluetooth scanning blacklist
AFVG
CDFV
EDAVG
Above-mentioned detection presets whether include the simply one citing of the first application program in bluetooth scanning blacklist, and the disclosure is also It is not limited.
In step 5031, respond the bluetooth scan instruction of the first application program.
In step 5032, the bluetooth scan instruction of refusal response the first application program.
Default bluetooth scanning blacklist involved in the present embodiment itself safeguards one such as above-mentioned table 1 in terminal unit Default bluetooth scanning blacklist, then performing after step 103, that is, should for malice when determining the first application program After program, the first application program can be directly added into default bluetooth scanning blacklist;Or, by the first application program mark Know and send to server, so that the first application program is added the bluetooth scanning blacklist preset by server.
Do so, it is to avoid follow-up when same application program retransmits bluetooth scan instruction, can accelerate to identify application Whether program is the speed of rogue program.
In above-mentioned step 502, when detecting that default bluetooth scanning blacklist includes the first application program, it is possible to Add with the just first application program and preset bluetooth scanning blacklist;Or, the first application program identification is sent to server, So that the first application program is added by server presets bluetooth scanning blacklist.
In above-mentioned step 402 or in above-mentioned step 202, when detecting that the first application program sends bluetooth scanning Instruct and initiated the very first time of bluetooth scanning less than when presetting bluetooth trace interval away from last time, it is also possible to the just first application Program adds presets bluetooth scanning blacklist;Or, the first application program identification is sent to server, so that server is by the One application program adds presets bluetooth scanning blacklist.
In above-mentioned step 4031 or in above-mentioned steps 302, when the running status the first application program being detected is During running background, it is also possible to the just first application program adds presets bluetooth scanning blacklist;Or, by the first application program mark Know and send to server, so that the first application program is added by server presets bluetooth scanning blacklist.
To sum up, the bluetooth scan control method disclosed in disclosure embodiment, including: first, receive the first application program Whether the bluetooth scan instruction sent, it is then detected that include the first application program in bluetooth scanning blacklist, if bluetooth scanning is black List includes the first application program, it is determined that the first application program is unsatisfactory for the bluetooth condition of scanning, and refusal response first should By the bluetooth scan instruction of program;Correlation technique relatively, only scans not included in bluetooth when the first application program in the disclosure Time in blacklist, just response bluetooth scan instruction, thus effectively protects the safety of user data, and avoids that carry out need not The consumption of the electricity of the terminal unit that the bluetooth scanning wanted is brought.
On the basis of each embodiment above-mentioned, when the first application program initiates the request stopping bluetooth scanning, first Check whether bluetooth service program is performing scanning, if in scanning, the most first stop present scan, then scan request is moved Remove;If not in scanning, then directly remove scan request.
Following for disclosure device embodiment, may be used for performing method of disclosure embodiment.Real for disclosure device Execute the details not disclosed in example, refer to method of disclosure embodiment.
Fig. 6 is the block diagram according to a kind of bluetooth scan controller shown in an exemplary embodiment.The scanning control of this bluetooth Device processed can pass through software, hardware or both be implemented in combination with become the some or all of of terminal unit.Such as Fig. 6 institute Showing, the bluetooth scan controller that disclosure embodiment provides includes:
Bluetooth scan instruction receiver module 11, is configured to receive the bluetooth scan instruction that the first application program sends;
Detection module 12, is configured to detect the described first application journey that described bluetooth scan instruction receiver module 11 receives Whether sequence meets the bluetooth condition of scanning preset;
Perform module 13, be configured to detect that described first application program meets described bluetooth at described detection module 12 During the condition of scanning, respond described bluetooth scan instruction.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Bluetooth scan controller disclosed in disclosure embodiment, including: first, receive what the first application program sent Bluetooth scan instruction, it is then detected that whether the first application program meets the bluetooth condition of scanning preset;When above-mentioned being detected One application program meets the bluetooth condition of scanning, and just response bluetooth scan instruction, relative correlation technique, can judge first in the disclosure Whether application program meets the bluetooth condition of scanning pre-set, if meeting is just that the first application program execution bluetooth scanning refers to Order, thus effectively protects the safety of user data, and avoids and carry out the terminal that unnecessary bluetooth scanning brought and set The consumption of standby electricity.
Fig. 7 is the block diagram according to a kind of bluetooth scan controller shown in another exemplary embodiment.As it is shown in fig. 7, The bluetooth condition of scanning in the bluetooth scan controller that disclosure embodiment provides includes the bluetooth scanning of the first application program Time interval, on the basis of the embodiment that Fig. 6 is corresponding, above-mentioned detection module 12 includes: the first bluetooth trace interval inspection Survey submodule 21 and first and determine submodule 22, in the present embodiment,
First bluetooth trace interval detection sub-module 21, is configured to detect bluetooth scan instruction receiver module 11 and connects The first application program received sends bluetooth scan instruction and whether initiated the very first time of bluetooth scanning more than or equal to pre-away from last time If bluetooth trace interval;
First determines submodule 22, is configured as the first bluetooth trace interval detection sub-module 21 and detects first Application program sends bluetooth scan instruction and initiated the very first time of bluetooth scanning more than or equal to when presetting bluetooth scanning away from last time Between interval time, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The bluetooth scan controller that disclosure embodiment provides, including: first, receive the indigo plant that the first application program sends Tooth scan instruction, it is then detected that the first application program sends bluetooth scan instruction initiated the very first time of bluetooth scanning away from last time Whether more than or equal to bluetooth trace interval;If the first above-mentioned application program meets the bluetooth condition of scanning, just response indigo plant Tooth scan instruction, relative correlation technique, can detect the first application program and send bluetooth scan instruction away from initiation last time in the disclosure The very first time of bluetooth scanning whether more than or equal to bluetooth trace interval, if greater than or equal to being just the first application journey Sequence performs bluetooth scan instruction, thus effectively protects the safety of user data, and avoids and carry out unnecessary bluetooth and sweep Retouch the consumption of the electricity of brought terminal unit.
Fig. 8 is the block diagram according to a kind of bluetooth scan controller shown in another exemplary embodiment.As shown in Figure 8, Disclosure embodiment provide bluetooth scan controller in the bluetooth condition of scanning include the first application program at front stage operation, On the basis of the embodiment that Fig. 6 is corresponding, above-mentioned detection module 12 includes: the first condition monitoring submodule 31 and second is true Stator modules 32, in the present embodiment,
First condition monitoring submodule 31, is configured to detection and obtains the running status of the first application program;Run State includes front stage operation or running background;
Second determines submodule 32, is configured as the first condition monitoring submodule 31 and the first application program detected Running status when being front stage operation, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Bluetooth scan controller disclosed in disclosure embodiment, including: first, receive what the first application program sent Bluetooth scan instruction, it is then detected that the first application program at front stage operation still at running background;If at front stage operation, then ring Answer bluetooth scan instruction;Correlation technique, can detect the running status of the first application program in the disclosure relatively, if transporting on foreground OK, just response bluetooth scan instruction, thus effectively protects the safety of user data, and avoids and carry out unnecessary bluetooth The consumption of the electricity of the terminal unit that scanning is brought.
Fig. 9 is the block diagram according to the also a kind of bluetooth scan controller shown in an exemplary embodiment.As it is shown in figure 9, The bluetooth condition of scanning in the bluetooth scan controller that disclosure embodiment provides includes the bluetooth scanning of the first application program Time interval, and the first application program is at front stage operation, on the basis of the embodiment that Fig. 6 is corresponding, above-mentioned detection module 12 wraps Include: second bluetooth trace interval detection sub-module the 41, second condition monitoring submodule 42 and the 3rd determines submodule 43,
Second bluetooth trace interval detection sub-module 41, is configured to detect bluetooth scan instruction receiver module 11 and connects The first application program received sends bluetooth scan instruction and whether initiated the very first time of bluetooth scanning more than or equal to pre-away from last time If bluetooth trace interval;
Second condition monitoring submodule 42, is configured as the second bluetooth trace interval detection sub-module 41 and examines Measure the very first time more than or equal to preset bluetooth trace interval time, detection obtain the first application program running status; Running status includes front stage operation or running background;
3rd determines submodule 43, is configured as the second condition monitoring submodule 42 and the first application program detected Running status when being front stage operation, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Bluetooth scan controller disclosed in disclosure embodiment, including: first, receive what the first application program sent Bluetooth scan instruction, it is then detected that the first application program sends bluetooth scan instruction in time initiating the first of bluetooth scanning last time Between whether more than or equal to presetting bluetooth trace interval, if the first application program sends bluetooth scan instruction and initiates away from last time The very first time of bluetooth scanning more than or equal to presetting bluetooth trace interval, then detects the first application program at front stage operation Or at running background;If at front stage operation, then response bluetooth scan instruction;Relatively correlation technique, only when the in the disclosure One application program sends bluetooth scan instruction and initiated the very first time of bluetooth scanning more than or equal to bluetooth sweep time away from last time Interval and the first application program, at front stage operation, just respond bluetooth scan instruction, thus effectively protect the safety of user data Property, and avoid the consumption of the electricity carrying out the terminal unit that unnecessary bluetooth scanning is brought.
Figure 10 is the block diagram according to a kind of bluetooth scan controller shown in further example embodiment.Such as Figure 10 institute Showing, the bluetooth condition of scanning in the bluetooth scan controller that disclosure embodiment provides includes presetting bluetooth scanning blacklist, On the basis of the embodiment that Fig. 6 is corresponding, above-mentioned detection module 12 includes: bluetooth scanning blacklist detection sub-module 51 and the 4th Determine submodule 52,
Bluetooth scanning blacklist detection sub-module 51, is configured to detect in default bluetooth scanning blacklist and whether includes the One application program;
4th determines submodule 52, is configured as presetting bluetooth scanning blacklist detection sub-module 51 and detects that bluetooth is swept Retouch time blacklist does not includes the first application program, determine that the first application program meets the bluetooth condition of scanning.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Bluetooth scan control method disclosed in disclosure embodiment, including: first, receive what the first application program sent Whether bluetooth scan instruction, it is then detected that include 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 refusal response the first application program Bluetooth scan instruction;Correlation technique relatively, only scans blacklist when the first application program not included in bluetooth in the disclosure Time middle, just response bluetooth scan instruction, thus effectively protects the safety of user data, and avoids and carry out unnecessary indigo plant The consumption of the electricity of the terminal unit that tooth scanning is brought.
Figure 11 is the block diagram according to a kind of terminal unit shown in an exemplary embodiment, this terminal unit comprise the steps that by It is configured to control the processor 111 that executable instruction performs and the memorizer 112 being configured to store processor executable;
Wherein, described processor 111 is configured to:
Receive the bluetooth scan instruction that the first application program sends;
Detect whether described first application program meets the bluetooth condition of scanning preset;
When detecting that described first application program meets the described bluetooth condition of scanning, it is determined that respond the scanning of described bluetooth Instruction.
About the terminal unit in above-described embodiment, wherein processor performs the concrete mode of operation relevant the party The embodiment of method is described in detail, explanation will be not set forth in detail herein.
Figure 12 is the block diagram according to a kind of terminal unit shown in another exemplary embodiment.Such as, terminal unit 800 can To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, strong Body equipment, personal digital assistant etc..
With reference to Figure 12, terminal unit 800 can include following one or more assembly: processes assembly 802, memorizer 804, Power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O) interface 812, sensor cluster 814, with And communications component 816.
Processing assembly 802 and generally control the integrated operation of terminal unit 800, such as with display, call, data are led to The operation that letter, camera operation and record operation are associated.Process assembly 802 and can include that one or more processor 820 is held Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more mould Block, it is simple to process between assembly 802 and other assemblies is mutual.Such as, process assembly 802 and can include multi-media module, with Facilitate multimedia groupware 808 and process between assembly 802 mutual.
Memorizer 804 is configured to store various types of data to support the operation at terminal unit 800.These data Example include on terminal unit 800 operation any application program or the instruction of method, contact data, telephone directory Data, message, picture, video etc..Memorizer 804 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, soon Flash memory, disk or CD.
The various assemblies that power supply module 806 is terminal unit 800 provide electric power.Power supply module 806 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute, with for terminal unit 800, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 808 is included between described terminal unit 800 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or slide The border of action, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, Multimedia groupware 808 includes a front-facing camera and/or post-positioned pick-up head.When terminal unit 800 is in operator scheme, as clapped When taking the photograph pattern or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each preposition Photographic head and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 includes a Mike Wind (MIC), when terminal unit 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike It is configured to receive external audio signal.The audio signal received can be further stored at memorizer 804 or via logical Letter assembly 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, is used for exporting audio signal.
I/O interface 812 provides interface for processing between assembly 802 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Set button.
Sensor cluster 814 includes one or more sensor, for providing the state of various aspects for terminal unit 800 Assessment.Such as, what sensor cluster 814 can detect terminal unit 800 opens/closed mode, the relative localization of assembly, example Such as display that described assembly is terminal unit 800 and keypad, sensor cluster 814 can also detect terminal unit 800 or The position change of 800 1 assemblies of terminal unit, the presence or absence that user contacts with terminal unit 800, terminal unit 800 Orientation or acceleration/deceleration and the variations in temperature of terminal unit 800.Sensor cluster 814 can include proximity transducer, is configured It is used for when there is no any physical contact object near detecting.Sensor cluster 814 can also include optical sensor, Such as CMOS or ccd image sensor, it is used for using in imaging applications.In certain embodiments, this sensor cluster 814 also may be used To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to facilitate the communication of wired or wireless mode between terminal unit 800 and other equipment. Terminal unit 800 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example embodiment, communications component 816 receives the broadcast singal from external broadcasting management system or broadcast via broadcast channel Relevant information.In one exemplary embodiment, described communications component 816 also includes near-field communication (NFC) module, short to promote Cheng Tongxin.Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal unit 800 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 804 of instruction, above-mentioned instruction can have been performed said method by the processor 820 of terminal unit 800.Example If, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Dish and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by the process of terminal unit When device performs so that terminal unit is able to carry out a kind of bluetooth scan control method.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following Claims are pointed out.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appending claims System.

Claims (11)

1. a bluetooth scan control method, it is characterised in that including:
Receive the bluetooth scan instruction that the first application program sends;
Detect whether described first application program meets the bluetooth condition of scanning preset;
When detecting that described first application program meets the described bluetooth condition of scanning, then respond described bluetooth scan instruction.
Method the most according to claim 1, it is characterised in that whether described first application program of described detection meets is preset The bluetooth condition of scanning, including:
Detect described first application program and send whether described bluetooth scan instruction initiated the very first time of bluetooth scanning away from last time More than or equal to presetting bluetooth trace interval;
When detecting that described first application program sends described bluetooth scan instruction and initiated the very first time of bluetooth scanning away from last time During more than or equal to described default bluetooth trace interval, it is determined that described first application program meets described bluetooth scan stripes Part.
Method the most according to claim 1, it is characterised in that whether described first application program of described detection meets is preset The bluetooth condition of scanning, including:
Detection obtains the running status of described first application program;Described running status includes front stage operation or running background;
When the running status described first application program being detected is front stage operation, it is determined that described first application program meets The described bluetooth condition of scanning.
Method the most according to claim 1, it is characterised in that whether described first application program of described detection meets is preset The bluetooth condition of scanning, including:
Detect described first application program and send whether described bluetooth scan instruction initiated the very first time of bluetooth scanning away from last time More than or equal to presetting bluetooth trace interval;
When detecting that the described very first time is more than or equal to described default bluetooth trace interval, then detection obtains described the The running status of one application program;Described running status includes front stage operation or running background;
When the running status described first application program being detected is front stage operation, it is determined that described first application program meets The described bluetooth condition of scanning.
Method the most according to claim 1, it is characterised in that whether described first application program of described detection meets is preset The bluetooth condition of scanning, including:
Detection presets in bluetooth scanning blacklist whether include described first application program;
When detect described default bluetooth scanning blacklist in do not include described first application program time, it is determined that described first should The described bluetooth condition of scanning is met by program.
6. a bluetooth scan controller, it is characterised in that including:
Bluetooth scan instruction receiver module, is configured to receive the bluetooth scan instruction that the first application program sends;
Detection module, described first application program being configured to detect the reception of described bluetooth scan instruction receiver module is the fullest The bluetooth condition of scanning that foot is preset;
Perform module, be configured to detect that described first application program meets the described bluetooth condition of scanning at described detection module Time, respond described bluetooth scan instruction.
Device the most according to claim 6, it is characterised in that described detection module includes: between first bluetooth sweep time Submodule is determined every detection sub-module and first;
Described first bluetooth trace interval detection sub-module, is configured to detect described bluetooth scan instruction receiver module and connects Described first application program received sends whether described bluetooth scan instruction was more than away from the very first time that last time initiates bluetooth scanning Or equal to presetting bluetooth trace interval;
Described first determines submodule, is configured as described first bluetooth trace interval detection sub-module and detects described First application program sends described bluetooth scan instruction and initiated the very first time of bluetooth scanning more than or equal to described pre-away from last time If during bluetooth trace interval, determine that described first application program meets the described bluetooth condition of scanning.
Device the most according to claim 6, it is characterised in that described detection module includes: the first condition monitoring Module and second determines submodule;
Described first condition monitoring submodule, is configured to detection and obtains the running status of described first application program;Institute State running status and include front stage operation or running background;
Described second determines submodule, is configured as described first condition monitoring submodule and described first application detected When the running status of program is front stage operation, determine that described first application program meets the described bluetooth condition of scanning.
Device the most according to claim 6, it is characterised in that described detection module includes: between second bluetooth sweep time Submodule is determined every detection sub-module, the second condition monitoring submodule and the 3rd;
Described second bluetooth trace interval detection sub-module, is configured to detect described bluetooth scan instruction receiver module and connects Described first application program received sends whether described bluetooth scan instruction was more than away from the very first time that last time initiates bluetooth scanning Or equal to presetting bluetooth trace interval;
Described second condition monitoring submodule, is configured as described second bluetooth trace interval detection sub-module inspection Measure the described very first time more than or equal to described default bluetooth trace interval time, detection obtain described first application program Running status;Described running status includes front stage operation or running background
Described 3rd determines submodule, is configured as described second condition monitoring submodule and described first application detected When the running status of program is front stage operation, determine that described first application program meets the described bluetooth condition of scanning.
Device the most according to claim 6, it is characterised in that described detection module includes: bluetooth scanning blacklist detection Submodule and the 4th determines submodule;
Described bluetooth scanning blacklist detection sub-module, be configured to detect whether default bluetooth scanning blacklist includes described First application program;
Described 4th determines submodule, is configured as described bluetooth scanning blacklist detection sub-module and described default indigo plant detected When tooth scanning blacklist does not includes described first application program, determine that described first application program meets described bluetooth scan stripes Part.
11. 1 kinds of terminal units, it is characterised in that including: be configured to control the processor of executable instruction execution and joined It is set to store the memorizer of processor executable;
Described processor is configured to:
Receive the bluetooth scan instruction that the first application program sends;
Detect whether described first application program meets the bluetooth condition of scanning preset;
When detecting that described first application program meets the described bluetooth condition of scanning, then respond described bluetooth scan instruction.
CN201610615635.1A 2016-07-28 2016-07-28 Bluetooth scan control method, device and terminal device Active CN106250772B (en)

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 true CN106250772A (en) 2016-12-21
CN106250772B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443086A (en) * 2019-06-17 2019-11-12 深圳盈达机器视觉技术有限公司 The control method and scanning means of scanning means fall protection
CN110443085A (en) * 2019-06-17 2019-11-12 深圳盈达机器视觉技术有限公司 The control method and scanning means of scanning means fall protection
CN116528209A (en) * 2023-05-05 2023-08-01 荣耀终端有限公司 Bluetooth scanning method, device, chip system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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
US20140373168A1 (en) * 2013-04-12 2014-12-18 Tencent Technology (Shenzhen) Company Limited Method of protecting privacy data of an application program and apparatus using the same
CN105430547A (en) * 2015-10-23 2016-03-23 小米科技有限责任公司 Dormancy method and apparatus of bluetooth earphones

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140373168A1 (en) * 2013-04-12 2014-12-18 Tencent Technology (Shenzhen) Company Limited Method of protecting privacy data of an application program and apparatus using the same
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
CN105430547A (en) * 2015-10-23 2016-03-23 小米科技有限责任公司 Dormancy method and apparatus of bluetooth earphones

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443086A (en) * 2019-06-17 2019-11-12 深圳盈达机器视觉技术有限公司 The control method and scanning means of scanning means fall protection
CN110443085A (en) * 2019-06-17 2019-11-12 深圳盈达机器视觉技术有限公司 The control method and scanning means of scanning means fall protection
CN116528209A (en) * 2023-05-05 2023-08-01 荣耀终端有限公司 Bluetooth scanning method, device, chip system and storage medium
CN116528209B (en) * 2023-05-05 2023-11-24 荣耀终端有限公司 Bluetooth scanning method, device, chip system and storage medium

Also Published As

Publication number Publication date
CN106250772B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
EP3182739A1 (en) Method and apparatus for prompting according to location-based information
CN104159218B (en) Internetwork connection establishing method and device
CN105120505B (en) The method, apparatus and system of smart machine couple in router
CN105656948A (en) Account login method and device
CN105246138A (en) Control method and device of Internet-of-things device
CN106781242B (en) The method for early warning and device of danger zone
CN105100222A (en) Method and device for providing object retrieving information
CN104933351A (en) Information security processing method and information security processing device
EP3200421A1 (en) Method, apparatus and system for accessing wireless local area network
CN104968007A (en) Test method and device of intelligent device
CN105072079A (en) Account logon method, account logon device and terminal device
CN105451177A (en) Information push method and device
CN104185304A (en) Method and device for accessing WI-FI network
CN105045690A (en) Terminal test method and apparatus
CN105430185A (en) Method, apparatus and device for information reminding
CN104063654A (en) Monitoring method and device for application program
CN106060789A (en) Short message identification method and short message identification device
CN111357245B (en) Information searching method, terminal, network equipment and system
CN106250772A (en) Bluetooth scan control method, device and terminal unit
CN106101363A (en) Income prompting method and device
CN105681261A (en) Security authentication method and apparatus
CN104869562A (en) Information transmission method, device and system
CN105763734A (en) Emergency communication method, device, and apparatus
CN106412481B (en) Reminding method, device and terminal based on VoLTE video calling
CN105227660A (en) A kind of based reminding 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