Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
With reference to Fig. 1, Fig. 1 is a kind of process signal for bluetooth dual mode data communication means that one embodiment of the invention provides
Figure.This method can be applied to any bluetooth double module terminal device, such as robot, mobile phone, PDA (Personal Digital
Assistant, palm PC) etc., specifically this method can be applied to the bluetooth dual mode data communication system of any terminal device
The co-existence control module of system.
S101: after classical bluetooth module and low-power consumption bluetooth module complete initialization example, target terminal equipment is received
The Bluetooth communication of transmission is requested, and Bluetooth communication request carries target terminal equipment identities mark.
In the present embodiment, classical bluetooth module and low-power consumption bluetooth module instance, which refer to, runs classics in terminal device
Bluetooth module and low-power consumption bluetooth module wait other connection terminal devices to connect classical bluetooth module or low-power consumption bluetooth mould
Block.Target terminal equipment identities mark can be the device id or factory coding of equipment.
S102: target terminal equipment identities mark is authenticated.
In the present embodiment, Bluetooth communication request also carries identity, judges to whether there is in the certification prestored mark
Identity.If it is determined that in the certification mark prestored, there are identity, then target terminal equipment identities ID authentication passes through;If
Determine that there is no identity in the certification prestored mark, then target terminal equipment identities ID authentication does not pass through.
S103: if passing through to target terminal equipment identities ID authentication, the protocol type of Bluetooth communication request is detected.
In the present embodiment, protocol type data according to required for communication protocol transmission of Bluetooth communication request needs full
The type of foot is divided into classical Bluetooth protocol and low-power consumption bluetooth agreement.
S104: target terminal equipment and classical bluetooth module or low-power consumption bluetooth module are established by data according to protocol type
Communication.
In the present embodiment, if protocol type is classical Bluetooth protocol type, by target terminal equipment and classical bluetooth
Module establishes data communication;If protocol type is low-power consumption bluetooth protocol type, by target terminal equipment and low-power consumption bluetooth
Module establishes data communication.
From the present embodiment it is found that being connect by after classical bluetooth module and low-power consumption bluetooth module complete initialization example
The Bluetooth communication request that target terminal equipment is sent is received, Bluetooth communication request carries target user's identity;To target user
Identity is authenticated;If passing through to target user's identity certification, the protocol type of Bluetooth communication request is detected;Root
Target terminal equipment and classical bluetooth module or low-power consumption bluetooth module are established into data communication according to protocol type, it can be according to logical
The protocol type of letter data realizes that terminal device and classical bluetooth module or the low-power consumption bluetooth module establish data communication, real
Existing classics bluetooth is compatible with low-power consumption amount bluetooth.
With reference to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of bluetooth dual mode data communication means process signal
Figure.On the basis of the above embodiments, the content of the S201 of the present embodiment and above-mentioned S101, particular content please refer to S101's
Associated description, which is not described herein again.
S202: quantity is connected according to the equipment that Bluetooth communication requests more new record.
In the present embodiment, the equipment connection quantity of record refers to the equipment for establishing connection with bluetooth double module terminal device.
S203: judge whether updated equipment connection quantity is lower than default connection threshold value.
In the present embodiment, presetting connection threshold value can be configured according to the needs of users.Due to excessive equipment with
Bluetooth double module terminal device connection, will cause bluetooth double module terminal device and controlled by excessive equipment, cause secure user data by
To influence.Preferably, presetting connection threshold value can be 1, to realize one-to-one control bluetooth double module terminal device.
S204: it if it is determined that updated equipment connection quantity is lower than the default connection threshold value, then executes to the target
The step of User Identity is authenticated.
S205: if it is determined that updated equipment connection quantity is equal to or more than the default connection threshold value, then first is executed
Masking instruction, first masking instruction are used to shield the Bluetooth communication request of the target terminal equipment.
Wherein it is possible to send the first masking instruction to the automatic shield module of target terminal equipment, automatic shield module can
For shielding the target terminal equipment for sending Bluetooth communication request.
From the present embodiment it is found that quantity is connected by the equipment for requesting more new record according to Bluetooth communication, after judging update
Equipment connection quantity whether be lower than default connection threshold value, if it is determined that updated equipment connection quantity is lower than default connection threshold
Value then executes the step of authenticating to target user's identity, if it is determined that updated equipment connection quantity is equal to or greatly
In default connection threshold value, target terminal equipment is shielded to prevent excessive equipment from connecting with bluetooth double module terminal device and causes indigo plant
Tooth double module terminal device is controlled by excessive equipment, influences secure user data.
With reference to Fig. 3, Fig. 3 is a kind of process signal for bluetooth dual mode data communication means that yet another embodiment of the invention provides
Figure.On the basis of the above embodiments, the content one of the content of the S301 to S302 of the present embodiment and above-mentioned S101 to S102
It causes, particular content please refers to the associated description of S101 to S102, and which is not described herein again.
S303: if not passing through to target terminal equipment identities ID authentication, if being authenticated to target user's identity
Do not pass through, then execute secondary shielding instruction, the secondary shielding instructs the Bluetooth communication for shielding the target terminal equipment
Request.
Specifically, Bluetooth communication request also carries identity;Judge in the certification prestored mark with the presence or absence of identity mark
Know;If it is determined that in the certification mark prestored, there are identity, then target terminal equipment identities ID authentication passes through;If it is determined that pre-
There is no identity in the certification mark deposited, then target terminal equipment identities ID authentication does not pass through.Wherein, target terminal is set
Standby identity may be any type of password ID.
From the present embodiment it is found that identifying according to target terminal equipment identities, target terminal equipment is shielded, it is unauthorized to prevent
User connects bluetooth double module terminal device.
With reference to Fig. 4, Fig. 4 is a kind of process signal for bluetooth dual mode data communication means that further embodiment of this invention provides
Figure.On that basi of the above embodiments, the content of the S401 to S404 of the present embodiment is consistent with the above-mentioned content of S101 to S104,
Particular content please refers to the associated description of S101 to S104, and which is not described herein again.
S405: after establishing data communication by classical bluetooth module and terminal device, classical bluetooth module is closed
Bluetooth scan pattern.
In the present embodiment, the bluetooth scan pattern of classical bluetooth module refers to that classical bluetooth module is in operation, waits
The state of the connection of other equipment.
S406: after establishing data communication by low-power consumption bluetooth module and terminal device, low-power consumption bluetooth mould is closed
The bluetooth scan pattern of block.
In the present embodiment, the bluetooth scan pattern of low-power consumption bluetooth module refers to that low-power consumption bluetooth module is in operation,
Wait the state of the connection of other equipment.
From the present embodiment it is found that passing through the bluetooth scan pattern for closing classical bluetooth module and low-power consumption bluetooth module, energy
The enough power consumption for reducing classical bluetooth module and low-power consumption bluetooth module.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to the bluetooth dual mode data communication means of foregoing embodiments, Fig. 5 is one kind that one embodiment of the invention provides
The structural block diagram of bluetooth dual mode data communication device.For ease of description, only parts related to embodiments of the present invention are shown.
Referring to Fig. 5, which includes: request reception unit 501, authentication unit 502, detection unit 503 and connection setup unit
504。
Wherein, request reception unit 501, for completing initialization example in classical bluetooth module and low-power consumption bluetooth module
Afterwards, the Bluetooth communication request that target terminal equipment is sent is received, the Bluetooth communication request carries target terminal equipment identities mark
Know;
Authentication unit 502, for being authenticated to target terminal equipment identities mark;
Detection unit 503, if it is logical to detect the bluetooth for passing through to the target terminal equipment identities ID authentication
Believe the protocol type of request;
Connection setup unit 504, for according to the protocol type by the target terminal equipment and the classical bluetooth
Module or the low-power consumption bluetooth module establish data communication.
From the present embodiment it is found that receiving mesh after classical bluetooth module and low-power consumption bluetooth module complete initialization example
The Bluetooth communication request that terminal device is sent is marked, Bluetooth communication request carries target user's identity;To target user's identity
Mark is authenticated;If passing through to target user's identity certification, the protocol type of Bluetooth communication request is detected;According to association
Target terminal equipment and classical bluetooth module or low-power consumption bluetooth module are established data communication by view type, can be according to communication number
According to protocol type realize that terminal device and classical bluetooth module or the low-power consumption bluetooth module establish data communication, realize warp
Allusion quotation bluetooth is compatible with low-power consumption amount bluetooth.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, the connection setup unit
504 include:
First connection setup subelement 5041 will be described if being classical Bluetooth protocol type for the protocol type
Target terminal equipment and the classical bluetooth module establish data communication;
Second connection setup subelement 5042, if being low-power consumption bluetooth protocol type for the protocol type, by institute
It states target terminal equipment and the low-power consumption bluetooth module establishes data communication.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, described device further include:
Updating unit 505, the equipment for requesting more new record according to the Bluetooth communication connect quantity;
Judging unit 506, for judging whether updated equipment connection quantity is lower than default connection threshold value;
The authentication unit 502 is also used to if it is determined that updated equipment connection quantity is lower than the default connection threshold value,
Then execute the step of authenticating to target user's identity.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, described device further include:
First screen unit 507 is used for if it is determined that updated equipment connection quantity is equal to or more than the default connection
Threshold value, then execute the first masking instruction, and the Bluetooth communication that first masking instruction is used to shield the target terminal equipment is asked
It asks.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, described device further include:
Secondary shielding unit 508, if executing secondary shielding for not passing through to target user's identity certification
Instruction, the secondary shielding instruction are requested for shielding the Bluetooth communication of the target terminal equipment.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, described device further include:
Bluetooth scan pattern closing unit 509 is establishing data communication by classical bluetooth module and the terminal device
Later, the bluetooth scan pattern of the classical bluetooth module is closed;Alternatively, being set by low-power consumption bluetooth module and the terminal
It is standby to establish after data communication, close the bluetooth scan pattern of the low-power consumption bluetooth module.
Referring to Fig. 6, Fig. 6 is a kind of signal of the terminal device for bluetooth dual mode data communication that one embodiment of the invention provides
Block diagram.Terminal 600 in the present embodiment as shown in FIG. 6 may include: one or more processors 601, one or more defeated
Enter equipment 602, one or more then output equipments 603 and one or more memories 604.Above-mentioned processor 601, input equipment
602, then output equipment 603 and memory 604 by communication bus 605 complete mutual communication.Memory 604 is for storing
Computer program, the computer program include program instruction.The program that processor 601 is used to execute the storage of memory 604 refers to
It enables.Wherein, processor 601 is configured for that described program instruction execution or less is called to operate:
Processor 601, for receiving target after classical bluetooth module and low-power consumption bluetooth module complete initialization example
The Bluetooth communication request that terminal device is sent, the Bluetooth communication request carry target user's identity;The target is used
Family identity is authenticated;If passing through to target user's identity certification, the Bluetooth communication request is detected
Protocol type;According to the protocol type by the target terminal equipment and the classical bluetooth module or the low-power consumption bluetooth
Module establishes data communication.
Further, processor 601, after being also used to receive the Bluetooth communication request of target terminal equipment transmission, according to
The equipment of the Bluetooth communication request more new record connects quantity;Judge whether updated equipment connection quantity is lower than default company
Connect threshold value;If it is determined that updated equipment connection quantity is lower than the default connection threshold value, then execute to target user's body
The step of part mark is authenticated.
Further, processor 601, if being also used to the protocol type for classical Bluetooth protocol type, by the mesh
Mark terminal device and the classical bluetooth module establish data communication;If the protocol type is low-power consumption bluetooth protocol type,
The target terminal equipment and the low-power consumption bluetooth module are then established into data communication.
Further, processor 601 are also used to if it is determined that updated equipment connection quantity is equal to or more than described preset
Threshold value is connected, then executes the first masking instruction, the bluetooth that first masking instruction is used to shield the target terminal equipment is logical
Letter request.
Further, processor 601 do not pass through if being also used to authenticate target user's identity, execute the
Two masking instructions, the secondary shielding instruction are requested for shielding the Bluetooth communication of the target terminal equipment.
Further, processor 601 are also used to establishing data communication by classical bluetooth module and the terminal device
Later, the bluetooth scan pattern of the classical bluetooth module is closed;Alternatively, being set by low-power consumption bluetooth module and the terminal
It is standby to establish after data communication, close the bluetooth scan pattern of the low-power consumption bluetooth module.
It should be appreciated that in embodiments of the present invention, alleged processor 601 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 602 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user
Directional information), microphone etc., output equipment 603 may include display (LCD etc.), loudspeaker etc..
The memory 604 may include read-only memory and random access memory, and to processor 601 provide instruction and
Data.The a part of of memory 604 can also include nonvolatile RAM.For example, memory 604 can also be deposited
Store up the information of device type.
In the specific implementation, processor 601 described in the embodiment of the present invention, input equipment 602, output equipment 603 can
Implementation described in the first embodiment and second embodiment of service request method provided in an embodiment of the present invention is executed,
Also the implementation of terminal described in the embodiment of the present invention can be performed, details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, and the computer program includes program instruction, realization when described program instruction is executed by processor
All or part of the process in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, the computer program when being executed by processor,
The step of above-mentioned each embodiment of the method can be achieved.Wherein, the computer program includes computer program code, the meter
Calculation machine program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The calculating
Machine readable medium may include: any entity or device, recording medium, USB flash disk, the shifting that can carry the computer program code
Dynamic hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier wave
Signal and telecommunication signal.
The computer readable storage medium can be the internal storage unit of terminal described in aforementioned any embodiment, example
Such as the hard disk or memory of terminal.The computer readable storage medium is also possible to the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both
The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing
Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily
Ground stores the data that has exported or will export.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
The specific work process at end and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase
Mutually between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection is also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.