CN106900040A - The method and bluetooth security equipment of bluetooth connection are set up in a kind of low-power consumption - Google Patents

The method and bluetooth security equipment of bluetooth connection are set up in a kind of low-power consumption Download PDF

Info

Publication number
CN106900040A
CN106900040A CN201710113984.8A CN201710113984A CN106900040A CN 106900040 A CN106900040 A CN 106900040A CN 201710113984 A CN201710113984 A CN 201710113984A CN 106900040 A CN106900040 A CN 106900040A
Authority
CN
China
Prior art keywords
module
bluetooth
security
state
itself
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
CN201710113984.8A
Other languages
Chinese (zh)
Other versions
CN106900040B (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201710113984.8A priority Critical patent/CN106900040B/en
Publication of CN106900040A publication Critical patent/CN106900040A/en
Application granted granted Critical
Publication of CN106900040B publication Critical patent/CN106900040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/28Discontinuous transmission [DTX]; Discontinuous reception [DRX]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to electronic technology field, method and bluetooth security equipment that bluetooth connection is set up in a kind of low-power consumption are disclosed.Bluetooth security equipment includes bluetooth module and security module, and bluetooth module includes that first waits receiver module, the first setup module, the first judge module, the first tissue module, the first wake module, second to wait receiver module, the first sending module, the second setup module and shutdown setup module;Security module includes that first waits wake module, the 3rd setup module, third module to be received, minor microstructure module, the second sending module and the 4th setup module.Method and bluetooth security equipment that the present invention is provided, set up in Bluetooth connection process with host computer, can effectively save electric energy, extend the standby time of bluetooth security equipment, better user experience.

Description

The method and bluetooth security equipment of bluetooth connection are set up in a kind of low-power consumption
Technical field
The method and bluetooth security of bluetooth connection are set up the present invention relates to electronic technology field, more particularly to a kind of low-power consumption Equipment.
Background technology
With the fast development of mobile payment technology, mobile payment technology content and mobile payment security equipment just Requirement more and more higher in terms of the property taken.In the prior art, to improve portability, the volume of mobile payment security equipment is more done more It is small, but it is exactly the inadequate problem of battery capacity that small volume brings therewith, and current bluetooth security equipment is a kind of conventional shifting Dynamic safety of payment equipment.In the prior art, in bluetooth security equipment and host computer set up Bluetooth connection process, bluetooth security sets Standby to be constantly in mode of operation, the clock of bluetooth security equipment is constantly in high speed operation mode, causes bluetooth security equipment Standby time is too short, and Consumer's Experience is not good.
The content of the invention
Present invention technical problem present in the above-mentioned prior art of solution provides a kind of low-power consumption and sets up bluetooth connection Method and bluetooth security equipment.
On the one hand, a kind of low-power consumption that the present invention is provided sets up the method for bluetooth connection suitable for including security module and indigo plant The bluetooth security equipment of tooth module, the step of method is specifically included the step of security module is performed and bluetooth module is performed.
The step of bluetooth module of bluetooth security equipment is performed includes:
Step H1:The power-on event to be received such as the bluetooth module;
Step H2:When the bluetooth module receives power-on event, the state of itself is set for mode of operation;
Step H3:The bluetooth module judges whether to be listened within the 3rd Preset Time the bluetooth from host computer and connects Take over a job part, be then to perform step H4;Otherwise perform step H7;
Step H4:The bluetooth module tissue link order, wakes up security module;
Step H5:The link order is sent to the safe mould by the bluetooth module after the 4th Preset Time Block;
Step H6:The response of the link order to be received such as the bluetooth module, receives when within the 5th Preset Time During the response of the link order from the security module, success status are returned to the host computer, the state for setting itself is Low-power consumption standby pattern, is successfully established bluetooth connection;
Step H7:The bluetooth module sets shutdown mode, return to step H1;
The step of security module of bluetooth security equipment is performed includes:
Step S1:The security module is waited and waken up by the bluetooth module, when being waken up by the bluetooth module, is set The state of itself is mode of operation;
Step S2:The link order from the bluetooth module to be received such as the security module, when when the 7th is default It is interior when receiving the link order, the response of link order is organized, and the response of the link order is returned into the indigo plant Tooth module, sets the state of itself for low-power consumption standby pattern.
Alternatively, the above method of the present invention also includes:In the step H6, the bluetooth module is in the 5th Preset Time Within when being not received by the response of the link order from the security module, return to status of fail to the host computer, if Oneself state is put for low-power consumption standby pattern, step H8 is performed;
Step H8:If the bluetooth module is generalized machine wake-up in the tenth Preset Time, setting oneself state is Mode of operation, return to step H3;If machine wake-up is not generalized in the tenth Preset Time, the step H7 is performed.
Specifically, the step H6 is specifically included:
Step H61:The bluetooth module judges whether to receive the response of link order, is then to be returned to the host computer Success status, set the state of itself for low-power consumption standby pattern;Otherwise perform step H62;
Step H62:The bluetooth module judges to be sent from first time to the security module link order to current Whether the time exceedes the 5th Preset Time, is then to return to status of fail to the host computer, and it is low to set the state of itself Power-consumption standby pattern, performs step H8;Otherwise perform step H63;
Step H63:The bluetooth module sends the link order, return to step H61 to the security module again.
Alternatively, in the step of above method of the present invention H4, the bluetooth module wakes up the security module, specially: The bluetooth module draws high the level of the second control pin being connected with the security module.
Alternatively, in the step of above method of the present invention H2, the bluetooth module sets the state of itself for mode of operation, Specially:Electricity on the bluetooth module, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is carried out Initialization;Correspondingly, in the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module performs pass Machine is operated;In the step S1, the security module sets the state of itself for mode of operation, specially:The security module Upper electricity, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized.
Alternatively, in the step of above method H2, the bluetooth module sets the state of itself for mode of operation, specifically For:The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock pattern by the bluetooth module;Correspondingly, institute State in step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module sets the state of itself for depth is slept Sleep mode;In the step S1, the security module sets the state of itself for mode of operation, specially:The security module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself;In the step S2, also include:It is described When security module is not received by the link order in the 7th Preset Time, the state of itself is set for deep sleep mould Formula.
Alternatively, in the step of above method of the present invention H2, the bluetooth module sets the state of itself for mode of operation, Specially:The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock pattern by the bluetooth module;Accordingly Ground, in the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module wakes up the security module, Shutdown command is sent to the security module, when receiving the shutdown command response from the security module, itself is set State is deep sleep mode;In the step S1, the security module sets the state of itself for mode of operation, specially: The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock pattern by the security module;In the step S2, Also include:When the security module is not received by the link order in the 7th Preset Time, the state for setting itself is Low-power consumption standby pattern;After the step S2, also include:The security module is waken up by the bluetooth module, receives institute When stating the shutdown command of bluetooth module, the shutdown command response is returned to the bluetooth module, the state of itself is set for deeply Degree sleep pattern.
Alternatively, in the above method of the present invention, the step H3 is specifically included:
Step H31:The bluetooth module judges whether to listen to the bluetooth connection event from the host computer, is to hold Row step H4, otherwise performs step H32;
Step H32:Whether the bluetooth module judges pre- more than the described 3rd to current time from power-on event is received It is then to perform step H7 if the time, otherwise performs step H33;
Step H33:The bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, if The state of itself is put for mode of operation, return to step H31.
Alternatively, in the above method of the present invention, after the step H2, before the step H3, also include:
Step H01:The bluetooth module wakes up the security module, judge whether to be received in the first Preset Time described in The notice that security module is waken up, is then to perform step H02;Otherwise perform the step H7;
Step H02:The bluetooth module sends default communication acknowledgement data to the security module;
Step H03:The bluetooth module judges that whether the security module is received within the second Preset Time to be confirmed to lead to The notice of letter, is to perform the step H3;Otherwise perform the step H7;
Correspondingly, before the step S1, also include:
Step S01:When the security module is waken up by the bluetooth module, notify that the bluetooth module is waken up itself, The setting state of itself is mode of operation;
Step S02:The communication acknowledgement data to be received such as the security module, set the state of itself be mode of operation it When receiving the default communication acknowledgement data in the 6th Preset Time afterwards, notify that the bluetooth module confirms communication, if The state of itself is put for low-power consumption standby pattern, the step S1 is performed.
Specifically, the step H3 is specifically included:
Step H31:The bluetooth module judges whether to listen to the bluetooth connection event from the host computer, is to hold Row step H4, otherwise performs step H32;
Step H32:The bluetooth module judge from judge to receive the security module confirm the notice of communication to it is current when Between whether exceed the 3rd Preset Time, be then execution step H7, otherwise perform step H33;
Step H33:The bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, if The state of itself is put for mode of operation, return to step H31.
The step H3 is specifically included:
Step H31:The bluetooth module judges whether to listen to the bluetooth connection event from the host computer, is to hold Row step H4, otherwise performs step H32;
Step H32:The bluetooth module judge from judge to receive the security module confirm the notice of communication to it is current when Between whether exceed the 3rd Preset Time, be then execution step H7, otherwise perform step H33;
Step H33:The bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, if The state of itself is put for mode of operation, return to step H31.
Specifically, in the step H2, the bluetooth module sets the state of itself for mode of operation, specially:It is described Electricity on bluetooth module, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized;Accordingly Ground, in the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module performs power-off operation;It is described In step S01, the security module sets the state of itself for mode of operation, specially:Electricity in the security module, by itself Clock setting be high-frequency clock pattern, and the hardware device of itself is initialized.
Or, specifically, in the step H2, the bluetooth module sets the state of itself for mode of operation, specially: The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock pattern by the bluetooth module;Correspondingly, the step In rapid H7, the bluetooth module sets shutdown mode, specially:The bluetooth module sets the state of itself for deep sleep mould Formula;In the step S01, it is mode of operation that the security module sets oneself state, specially:The security module gives itself The main core of chip on electricity, by the clock setting of itself be high-frequency clock pattern;In the step S02, also include:The safe mould Block is not received by the default communication acknowledgement in the 6th Preset Time after setting the state of itself and being mode of operation During data, the state of itself is set for deep sleep mode.Further, can also include in the step S2:The safety When module is not received by the link order in the 7th Preset Time, the state of itself is set for deep sleep mode.
Specifically, in the step H01, the bluetooth module wakes up the security module, specially:The bluetooth module Draw high the level of the second control pin being connected with the security module;Correspondingly, in the step H4, the bluetooth module is called out The awake security module, specially:The bluetooth module drags down the level of the first control pin being connected with the security module.
Specifically, in the step S1, the security module sets the state of itself for mode of operation, specially:It is described Itself clock setting is high-frequency clock pattern by security module.
Specifically, in the step H01, the bluetooth module judges whether the safety is received in the first Preset Time The notice that module is waken up, specially:The bluetooth module judges what is be connected with the security module in the first Preset Time Whether the level of the first control pin is low, is then to perform step H02;Otherwise perform the step H7;Correspondingly, the step In S01, the security module notifies that the bluetooth module is waken up itself, specially:The security module is dragged down and the indigo plant The level of the first control pin of tooth module connection.
Specifically, the step H03 is specially:The bluetooth module judge within the second Preset Time with the safety Whether the level of the first control pin of module connection is driven high, and is to perform the step H3;Otherwise perform the step H7; Correspondingly, in the step S02, the security module notifies that the bluetooth module confirms communication, specially:The security module Draw high the level of the first control pin being connected with the bluetooth module.
Alternatively, in the step of above method of the present invention H4, before the bluetooth module tissue link order, also include: The bluetooth module generates random number, and the random number is preserved;Correspondingly, the bluetooth module tissue connection refers to Order, specially:Bluetooth module link order according to the random number tissue;In the step H6, the bluetooth mould Block returns to success status to the host computer, sets oneself state after low-power consumption standby pattern, to be successfully established bluetooth connection Before, also include:The bluetooth module receives the Action Events from the host computer, sets the state of itself for Working mould Formula, the random number phase that the random number in the Action Events include random number, and the Action Events is preserved with itself Meanwhile, successful state response is returned to the host computer, setting oneself state is low-power consumption standby pattern, is successfully established bluetooth Connection;When security module receives the link order in the 7th Preset Time described in the step S2, also include:It is described Security module obtains the random number from the link order, and shows the random number.
In the above method of the present invention, the security module sets the state of itself for deep sleep mode, specially:It is described Electricity under the main core of the chip of itself is closed the independent modules of itself by security module, keeps the wake module of itself to have electricity, and close The ancillary equipment being connected with itself.
In the above method of the present invention, the bluetooth module sets the state of itself for deep sleep mode, specially:It is described Electricity under the main core of the chip of itself is closed the independent modules of itself by bluetooth module, keeps the wake module of itself to have electricity, and close The ancillary equipment being connected with itself.
In the above method of the present invention, the security module sets the state of itself for low-power consumption standby pattern, specifically includes:
Step a1:The clock setting of itself is low-speed clock pattern, closes the independent modules of itself by the security module And the ancillary equipment being connected with itself;
Step a2:The chip of itself is set to sleep pattern by the security module.
In the above method of the present invention, the bluetooth module sets the state of itself for low-power consumption standby pattern, specially:Institute State bluetooth module and close the ancillary equipment being connected with itself and/or the independent modules for closing itself.Further, the bluetooth mould When block sets the state of itself for low-power consumption standby pattern, also include:The clock setting of itself is low speed by the bluetooth module Clock module, sleep pattern is set to by the chip of itself.
On the other hand, a kind of bluetooth security equipment that the present invention is provided, including bluetooth module and security module, the bluetooth Module includes:
First wait receiver module, for etc. power-on event to be received;
First setup module, for when the described first wait receiver module receives power-on event, setting the bluetooth The state of module is mode of operation;
First judge module, the state for judging whether to set the bluetooth module in first setup module is work The bluetooth connection event from host computer is listened within the 3rd Preset Time after operation mode;
The first tissue module, for when the first judge module judged result is to be, organizing link order;
First wake module, is after being or the first tissue module for the first judge module judged result Organize after the link order, wake up the security module;
First sending module, after waking up the 4th Preset Time of the security module for first wake module, The link order of the first tissue modular organisation is sent to the security module;
Second wait receiver module, for etc. link order to be received response;
First sending module, is additionally operable to wait receiver module to wake up institute in first wake module when described second State when receiving the response of the link order from the security module within the 5th Preset Time of security module, on described Position machine returns to success status;
Second setup module, for first sending module to the host computer return success status after, set institute The state for stating bluetooth module is low-power consumption standby pattern;
Shutdown setup module, for when the first judge module judged result is no, setting shutdown mode;
Described first waits receiver module, is additionally operable to after the shutdown setup module sets shutdown mode, waits waiting Receive power-on event;
The security module includes:
First waits wake module, is waken up by the bluetooth module for waiting;
3rd setup module, for when the described first wait wake module is waken up by the bluetooth module, setting described The state of security module is mode of operation;
Third module to be received, for etc. the link order from the bluetooth module to be received;
Minor microstructure module, for setting the safety in the 3rd setup module when the third module to be received When the state of module in the 7th Preset Time after mode of operation to receive the link order, answering for link order is organized Answer;
Second sending module, for the response of the link order of the minor microstructure modular organisation to be returned into the indigo plant Tooth module;
4th setup module, the bluetooth module is returned to for second sending module by the response of the link order Afterwards, the state for setting the security module is low-power consumption standby pattern.
Specifically, first wake module, specifically for the first judge module judged result for after being or After link order described in the first tissue modular organisation, the bluetooth module is connected with the security module second is drawn high Control the level of pin.
Specifically, first setup module, specifically for receiving power-on event when the described first wait receiver module When to electricity on the bluetooth module, be high-frequency clock pattern by the clock setting of the bluetooth module, and to the bluetooth module Hardware device initialized;Correspondingly, the shutdown setup module, specifically for when the judgement of first judge module When result is no, power-off operation is performed;3rd setup module, wake module is waited by the indigo plant specifically for described first It is high-frequency clock pattern by the clock setting of the security module to electricity in the security module during tooth data bits, and to institute The hardware device for stating security module is initialized.
Specifically, first setup module, can also be specifically for receiving out when the described first wait receiver module It is high-frequency clock pattern by the clock setting of the bluetooth module to electricity on the main core of chip of the bluetooth module during machine event; Correspondingly, the shutdown setup module, can also be specifically for when the judged result of first judge module is no, setting The state of the bluetooth module is deep sleep mode;3rd setup module, can also be specifically for when described first etc. When wake module is waken up by the bluetooth module, to electricity on the main core of chip of the security module, by the security module Clock setting is high-frequency clock pattern;Accordingly, the security module is waiting wake module, the 3rd to set mould including first Also include on the basis of block, third module to be received, minor microstructure module, the second sending module and the 4th setup module:It is deep Degree sleep pattern setup module, for setting the safe mould in the 3rd setup module when the third module to be received When the state of block in the 7th Preset Time after mode of operation to be not received by the link order, the safe mould is set The state of block is deep sleep mode.
Specifically, first setup module, can also be specifically for receiving out when the described first wait receiver module It is high-frequency clock pattern by the clock setting of the bluetooth module to electricity on the main core of chip of the bluetooth module during machine event;
Correspondingly, first wake module, is additionally operable to, when the judged result of first judge module is no, wake up The security module;
First sending module, is additionally operable to the judged result when first judge module and is no and described first When wake module wakes up the security module, shutdown command is sent to the security module;
Described second waits receiver module, the shutdown command response from the security module to be received such as is additionally operable to;
The shutdown setup module, shutdown command is sent also particularly useful for first sending module to the security module Afterwards, when the second wait receiver module receives the shutdown command response from the security module, the bluetooth is set The state of module is deep sleep mode;
3rd setup module, when being waken up by the bluetooth module specifically for the described first wait wake module, gives Electricity on the main core of chip of the security module, is high-frequency clock pattern by the clock setting of the security module;
4th setup module, is additionally operable to the third module to be received and is not received by the 7th Preset Time During the link order, the state for setting the security module is low-power consumption standby pattern;
Accordingly, the security module is waiting wake module, the 3rd setup module, third mould to be received including first On the basis of block, minor microstructure module, the second sending module and the 4th setup module, also wake module, the are waited including second Five wait receiver module and deep sleep mode setup module;
Described second waits wake module, and the state for setting the security module for the 4th setup module is low work( After consumption standby mode, wait is waken up by the bluetooth module;
Described 5th waits receiver module, when being waken up by the bluetooth module for the described second wait wake module, etc. The shutdown command of the bluetooth module to be received;
Second sending module, can be also used for the pass that the 5th wait receiver module receives the bluetooth module When machine is instructed, the shutdown command response is returned to the bluetooth module;
The deep sleep mode setup module, the pass is returned to for second sending module to the bluetooth module After machine repeat-back, the state for setting the security module is deep sleep mode.
Specifically, first judge module can specifically include monitoring judging submodule, overtime judging submodule, first Submodule is set;
The monitoring judging submodule, the state for setting the bluetooth module when first setup module is work After pattern, judge whether to listen to the bluetooth connection event from the host computer;
Correspondingly, the first tissue module, specifically for being to listen to when the monitoring judging submodule judged result During bluetooth connection event from the host computer, link order is organized;
The overtime judging submodule, for being not listen to from institute when the monitoring judging submodule judged result When stating the bluetooth connection event of host computer, the state for judging to set the bluetooth module from first setup module is Working mould Whether formula is to current time more than the 3rd Preset Time;
The shutdown setup module, specifically for when the overtime judging submodule judged result is to be, setting shutdown Pattern;
Second setup module, is additionally operable to, when the overtime judging submodule judged result is no, set the indigo plant The state of tooth module is low-power consumption standby pattern;
Described first sets submodule, for when the overtime judging submodule judged result for it is no when, and described the The state that two setup modules set the bluetooth module is generalized machine wake-up to be waited after low-power consumption standby pattern, when the indigo plant When tooth module is generalized machine wake-up, the state for setting the bluetooth module is mode of operation;
The monitoring judging submodule, it is work to be additionally operable to the described first state for setting the submodule setting bluetooth module After operation mode, judge whether to listen to the bluetooth connection event from the host computer.
Alternatively, in above-mentioned bluetooth security equipment of the invention, the bluetooth module is waiting receiver module, the including first One setup module, the first judge module, the first tissue module, the first wake module, the first sending module, the mould to be received such as second On the basis of block, the second setup module and shutdown setup module, also wake module and the 6th setup module are waited including the 3rd;
First sending module, is additionally operable to wait receiver module to wake up institute in first wake module when described second State when being not received by the response of the link order from the security module within the 5th Preset Time of security module, to institute State host computer and return to status of fail;
Correspondingly, second setup module, is additionally operable to first sending module and returns to failure shape to the host computer After state, the state for setting the bluetooth module is low-power consumption standby pattern;
Described 3rd waits wake module, for waiting the machine that is generalized to wake up;
6th setup module, the state of the bluetooth module is set for low-power consumption is treated for second setup module After machine pattern, when the 3rd wait wake module is generalized machine wake-up in the tenth Preset Time, the bluetooth mould is set The state of block is mode of operation;
First judge module, be additionally operable to it is described 3rd wait wake module be generalized machine wake up when, judge whether First setup module sets the state of the bluetooth module to be listened within the 3rd Preset Time after mode of operation Bluetooth connection event from host computer;
The shutdown setup module, the state for being additionally operable to the second setup module setting bluetooth module is low-power consumption After standby mode, when the 3rd wait wake module is not generalized machine wake-up in the tenth Preset Time, shutdown is set Pattern.
Specifically, described second wait receiver module to include reception judging submodule and judge overtime submodule;
The reception judging submodule, for first sending module by the company of the first tissue modular organisation Connect instruction to be sent to after the security module, judge whether to receive the response of link order;
First sending module, judges to receive the response of link order specifically for the reception judging submodule When, return to success status to the host computer;
Second setup module, judges to receive the response of link order specifically for the reception judging submodule, And first sending module is returned after success status to the host computer, the state for setting the bluetooth module is low work( Consumption standby mode;
Described to judge overtime submodule, the judged result for the reception judging submodule refers to be not received by connection During the response of order, judge that send link order to the security module for the first time from first sending module is to current time It is no more than the 5th Preset Time;
First sending module, be additionally operable to it is described when judging overtime submodule judged result to be, to the host computer Return to status of fail;
Second setup module, after being additionally operable to first sending module to host computer return status of fail, The state for setting the bluetooth module is low-power consumption standby pattern;
6th setup module, status of fail is returned to specifically for first sending module to the host computer, and And second setup module sets the state of the bluetooth module for after low-power consumption standby pattern, wait and calling out when the described 3rd When module of waking up is generalized machine wake-up in the tenth Preset Time, the state for setting the bluetooth module is mode of operation;
First sending module, be additionally operable to it is described when judging overtime submodule judged result for no, again to the peace Full module sends the link order;
The reception judging submodule, is additionally operable to first sending module and sends the company to the security module again Connect after instruction, judge whether to receive the response of link order.
Alternatively, in above-mentioned bluetooth security equipment of the invention, the bluetooth module is waiting receiver module, the including first One setup module, the first judge module, the first tissue module, the first wake module, the first sending module, the mould to be received such as second On the basis of block, the second setup module and shutdown setup module, also including the second wake module, the second judge module, the 3rd hair Send module and the 3rd judge module;
Second wake module, the state for setting the bluetooth module for first setup module is mode of operation Afterwards, the security module is waken up;
Second judge module, for judging first after second wake module wakes up the security module Whether the notice that the security module is waken up is received in Preset Time;
Correspondingly, the shutdown setup module, is additionally operable to, when the judged result of second judge module is no, set Shutdown mode;
3rd sending module, the judged result for second judge module is when being, to the security module Send default communication acknowledgement data;
3rd judge module, for judging to send default logical to the security module in the 3rd sending module Whether the notice that the security module confirms communication is received within the second Preset Time after letter confirmation data;
First judge module, specifically for judging whether the judged result in the 3rd judge module for after being The 3rd Preset Time within listen to the bluetooth connection event from host computer;
The shutdown setup module, is additionally operable to, when the judged result of the 3rd judge module is no, set shutdown mould Formula;
Correspondingly, the security module is waiting wake module, the 3rd setup module, third mould to be received including first On the basis of block, minor microstructure module, the second sending module and the 4th setup module, also wake module, the are waited including second One notification module, the 5th setup module, fourth class module to be received and the second notification module;
Described second waits wake module, is waken up by the bluetooth module for waiting;
First notification module, when being waken up by the bluetooth module for the described second wait wake module, notifies institute Security module described in bluetooth module is stated to be waken up;
5th setup module, when being waken up by the bluetooth module for the described second wait wake module, sets institute The state for stating security module is mode of operation;
The fourth class module to be received, for etc. communication acknowledgement data to be received;
Second notification module, the state for setting the security module for the 5th setup module is mode of operation When the fourth class module to be received receives the default communication acknowledgement data in the 6th Preset Time afterwards, institute is notified State bluetooth module and confirm communication;
4th setup module, is additionally operable to after second notification module notifies that the bluetooth module confirms communication, The state for setting the security module is low-power consumption standby pattern;
Described first waits wake module, and it is logical to notify that the bluetooth module confirms specifically for second notification module Letter, and the 4th setup module sets the state of the security module after low-power consumption standby pattern, to wait described Bluetooth module wakes up.
Specifically, first judge module includes monitoring judging submodule, overtime judging submodule, the first setting submodule Block;
The monitoring judging submodule, during for the 3rd judge module judged result to be, judges whether to listen to Bluetooth connection event from the host computer;
Correspondingly, the first tissue module, specifically for being to listen to when the monitoring judging submodule judged result During bluetooth connection event from the host computer, link order is organized;
Overtime judging submodule, for being not listen to from described when the monitoring judging submodule judged result During the bluetooth connection event of position machine, judge from the 3rd judge module judged result whether to be more than the 3rd to current time Preset Time;
The shutdown setup module, specifically for when the overtime judging submodule judged result is to be, setting shutdown Pattern;
Second setup module, is additionally operable to, when the overtime judging submodule judged result is no, set the indigo plant The state of tooth module is low-power consumption standby pattern;
Described first sets submodule, for when the overtime judging submodule judged result for it is no when, and described the The state that two setup modules set the bluetooth module is generalized machine wake-up to be waited after low-power consumption standby pattern, when being generalized When machine wakes up, the state for setting the bluetooth module is mode of operation;
The monitoring judging submodule, it is work to be additionally operable to the described first state for setting the submodule setting bluetooth module After operation mode, judge whether to listen to the bluetooth connection event from host computer.
Specifically, first setup module, can be specifically for electricity on the bluetooth module, by the bluetooth module Clock setting be high-frequency clock pattern, and hardware device to the bluetooth module is initialized;Correspondingly, the shutdown Setup module, specifically for performing power-off operation;5th setup module, specifically for electricity in the security module, inciting somebody to action The clock setting of the security module is high-frequency clock pattern, and hardware device to the security module is initialized.
Or, first setup module can also be specifically for electricity on the main core of chip to the bluetooth module, by institute The clock setting for stating bluetooth module is high-frequency clock pattern;Correspondingly, the shutdown setup module, can also be specifically for setting The state of the bluetooth module is deep sleep mode;5th setup module, can also be specifically for the safe mould Electricity on the main core of chip of block, is high-frequency clock pattern by the clock setting of the security module;Accordingly, the security module exists Wake module, the first notification module, the 5th setup module, fourth class module to be received and the second notification module are waited including second On the basis of, also include:Deep sleep mode setup module, the shape of the security module is set for the 5th setup module State is that the fourth class module to be received is not received by the default communication in the 6th Preset Time after mode of operation When confirming data, the state for setting the security module is deep sleep mode.
Specifically, second wake module, the shape of the bluetooth module is set specifically for first setup module After state is mode of operation, draw high that the bluetooth module be connected with the security module second controls the level of pin;Accordingly Ground, first wake module is after being or the first tissue specifically for the first judge module judged result After link order described in modular organisation, the electricity of the first control pin that the bluetooth module is connected with the security module is dragged down It is flat.
Specifically, the 3rd setup module, specifically for when the described first wait wake module is by the bluetooth module It is high-frequency clock pattern by the clock setting of the security module during wake-up.
Specifically, second judge module, specifically for judging to wake up the safe mould in second wake module Whether the level of the first control pin that the bluetooth module is connected with the security module in the first Preset Time after block For low;Correspondingly, the 3rd sending module, when the result judged specifically for second judge module is to be, to described Security module sends default communication acknowledgement data;The shutdown setup module, judges specifically for second judge module Result for it is no when, set shutdown mode;First notification module, waits wake module described specifically for described second When bluetooth module wakes up, the level of the first control pin that the security module is connected with the bluetooth module is dragged down.
Specifically, the 3rd judge module, specifically for judging in the 3rd sending module to the security module Send what the bluetooth module within the second Preset Time after default communication acknowledgement data was connected with the security module Whether the level of the first control pin is driven high;
Correspondingly, first judge module, specifically for judging whether to be in the 3rd judge module judged result The bluetooth module be connected with the security module first control pin level be driven high after the 3rd Preset Time it Inside listen to the bluetooth connection event from host computer;
The shutdown setup module, specifically for when the 3rd judge module judged result is no, setting shutdown mould Formula;
Second notification module, the state for setting the security module specifically for the 5th setup module is work When the fourth class module to be received receives the default communication acknowledgement data in the 6th Preset Time after pattern, draw The level of the first control pin that the security module high is connected with the bluetooth module.
Alternatively, in the above-mentioned bluetooth security equipment of the present embodiment, the bluetooth module including first wait receiver module, It is first setup module, the first judge module, the first tissue module, the first wake module, the first sending module, second etc. to be received On the basis of module, the second setup module and shutdown setup module, or the bluetooth module is including the second wake module, the On the basis of two judge modules, the 3rd sending module and the 3rd judge module, also connect including generation module, preserving module, first Receive module;
The generation module, for generating random number;
Correspondingly, the preserving module, the random number for preserving the generation module generation;
The first tissue module, specifically for being connected according to the random number tissue that the generation module is generated Instruction;
First receiver module, for etc. the Action Events from the host computer to be received;
6th setup module, success status, and institute are returned to for first sending module to the host computer State the second setup module and the state of the bluetooth module is set for after low-power consumption standby pattern, first receiver module is received During to Action Events from the host computer, the state for setting the bluetooth module is mode of operation;
First sending module, is additionally operable to include at random when the Action Events that first receiver module is received Number, and random number in the Action Events it is identical with the random number that the preserving module is preserved when, returned to the host computer Return successful state response;
Second setup module, is additionally operable to first sending module and returns to successful state response to the host computer Afterwards, the state for setting the bluetooth module is low-power consumption standby pattern;
The security module is waiting wake module, the 3rd setup module, third module to be received, second including first On the basis of molded tissue block, the second sending module and the 4th setup module, or wake module, first is being waited to lead to including second Know on the basis of module, the 5th setup module, fourth class module to be received and the second notification module, also include:Display module, uses The random number is obtained in the link order received from the third module to be received, and shows the random number.
In the present invention, above-mentioned deep sleep mode setup module, specifically for by under the main core of the chip of the security module Electricity, the independent modules closed in the security module keep the wake module in the security module to have an electricity, and close with it is described The ancillary equipment of security module connection.
In the present invention, above-mentioned shutdown setup module, specifically for by electricity under the main core of the chip of the bluetooth module, closing institute The independent modules in bluetooth module are stated, keeps the wake module in the bluetooth module to have electricity, and close and the bluetooth module The ancillary equipment of connection.
Specifically, the 4th setup module, specifically for being low-speed clock mould by the clock setting of the security module Independent modules in ancillary equipment and the security module that formula, closing are connected with the security module, by the security module Chip be set to sleep pattern.
Specifically, second setup module, specifically for close the ancillary equipment that is connected with the bluetooth module and/or The independent modules closed in the bluetooth module.Further, second setup module is additionally operable to the bluetooth module Clock setting is low-speed clock pattern, the chip of the bluetooth module is set into sleep pattern.
In the present invention, host computer is the equipment that bluetooth connection is set up with bluetooth security equipment, such as supports the electricity of Bluetooth function Brain or mobile terminal.
Compared with the prior art, the invention has the advantages that:Bluetooth security equipment sets up Bluetooth connection process with host computer In, the bluetooth module in bluetooth security equipment is set to low-power consumption standby pattern or shutdown mould immediately after having performed corresponding operating Formula, the security module in bluetooth security equipment is set to low-power consumption standby pattern immediately after having performed corresponding operating, so can be with Power supply is effectively saved, extends the standby time of bluetooth security equipment, better user experience.
Brief description of the drawings
Fig. 1 show a kind of low-power consumption in the embodiment of the present invention 1 and sets up bluetooth module operation side in the method for bluetooth connection The flow chart of method;
Fig. 2 show a kind of low-power consumption in the embodiment of the present invention 1 and sets up security module operation side in the method for bluetooth connection The flow chart of method;
Fig. 3 show a kind of low-power consumption in the embodiment of the present invention 2 and sets up bluetooth module operation side in the method for bluetooth connection The flow chart of method;
Fig. 4 show a kind of low-power consumption in the embodiment of the present invention 2 and sets up security module operation side in the method for bluetooth connection The flow chart of method;
Fig. 5 show a kind of module composition frame chart of bluetooth security equipment in the embodiment of the present invention 3.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment 1
The present embodiment provides a kind of method that bluetooth connection is set up in low-power consumption, it is adaptable to including security module and bluetooth module Bluetooth security equipment, method specifically includes the operating method of security module and the operating method of bluetooth module.
As shown in figure 1, the operating method of the bluetooth module of bluetooth security equipment includes:
Step H1:The power-on event to be received such as bluetooth module.
Specifically, shutdown mode or deep sleep mode are in during the power-on event to be received such as bluetooth module.
Step H2:When bluetooth module receives power-on event, the state of itself is set for mode of operation.
In the present embodiment, after user presses the starting key of bluetooth security equipment, bluetooth module receives start thing Part.
Step H3:Bluetooth module judges whether to listen to the bluetooth connection thing from host computer within the 3rd Preset Time Part, is then to perform step H4;Otherwise perform step H7;
Specifically, step H3 is specifically included:
Step H31:Bluetooth module judges whether to listen to the bluetooth connection event from host computer, is to perform step H4, otherwise performs step H32;
Step H32:Bluetooth module judges Step H7 is then performed, step H33 is otherwise performed;For example, the 3rd Preset Time is 30 seconds.
Step H33:Bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, sets certainly The state of body is mode of operation, return to step H31.
Specifically, in step H33, bluetooth module sets the state of itself for low-power consumption standby pattern, specially:Bluetooth mould Block closes the ancillary equipment and/or the independent modules of itself being connected with itself.For example, bluetooth module open be connected with itself show Show module and/or open the communication module of itself.Further specifically, bluetooth module sets the state of itself for low-power consumption standby During pattern, also include:Itself clock setting is low-speed clock pattern by bluetooth module, and the chip of itself is set into mould of sleeping Formula.For example, the clock frequency of itself is set to 0.7MHz by bluetooth module.
Alternatively, when bluetooth module waits the machine that is generalized to wake up in step H3, can also include:Bluetooth module is judged from sentencing It is disconnected receive security module confirm the notice of communication to current time whether more than the 3rd Preset Time, be then execution step H7, it is no Then continue waiting for and judge.
Specifically, in step H33, bluetooth module sets the state of itself for mode of operation, specially:Bluetooth module is opened The ancillary equipment and/or the independent modules of itself being connected with itself.For example, bluetooth module opens the display module being connected with itself And/or open the communication module of itself.Further specifically, when bluetooth module sets the state of itself for mode of operation, also wrap Include:The clock setting of itself is high-frequency clock pattern by bluetooth module.For example, be set to for the clock frequency of itself by bluetooth module 2.5MHz。
Step H4:Bluetooth module tissue link order, wakes up security module;
Specifically, bluetooth module wakes up security module, specially:Bluetooth module draws high the second control being connected with security module The level of tubulation pin.
In the present embodiment, the second control pin of bluetooth module interacts line and is connected with security module by WakeUp.
Alternatively, in the present embodiment, also include:Bluetooth module wakes up safe mould by drawing high the level of the second control pin After block, the level of the second control pin is dragged down in the given time;For example, bluetooth module is drawing high the second control pin After level 10ms, the level of the second control pin is dragged down.
Step H5:Link order is sent to security module by bluetooth module after the 4th Preset Time;
Step H6:The response of the link order to be received such as bluetooth module, comes from when being received within the 5th Preset Time During the response of the link order of security module, success status are returned to host computer, the state of itself is set for low-power consumption standby mould Formula, is successfully established bluetooth connection;
Step H7:Bluetooth module sets shutdown mode, return to step H1;
As shown in Fig. 2 the operating method of the security module of bluetooth security equipment includes:
Step S1:Security module is waited and waken up by bluetooth module, and when being waken up by bluetooth module, the state for setting itself is Mode of operation;
Specifically, when security module wait is waken up by bluetooth module in step S1, in deep sleep mode or shutdown mould Formula.
Step S2:The link order from bluetooth module to be received such as security module, when the reception in the 7th Preset Time During to link order, the response of link order is organized, and the response of link order is returned into bluetooth module, the state of itself is set It is low-power consumption standby pattern.
Alternatively, the present embodiment above method also includes:In step H6, bluetooth module does not have within the 5th Preset Time When having the response for receiving the link order from security module, status of fail is returned to host computer, it is low to set oneself state Power-consumption standby pattern, performs step H8;
Step H8:If bluetooth module is generalized machine wake-up in the tenth Preset Time, setting oneself state is work Pattern, returns to above-mentioned steps H3;If machine wake-up is not generalized in the tenth Preset Time, above-mentioned steps H7 is performed.
Specifically, step H6 is specifically included:
Step H61:Bluetooth module judges whether to receive the response of link order, is then to return to successfully shape to host computer State, sets the state of itself for low-power consumption standby pattern;Otherwise perform step H62;
Step H62:Bluetooth module judges to send whether link order exceedes to current time from first time to security module 5th Preset Time, is then to return to status of fail to host computer, sets the state of itself for low-power consumption standby pattern, performs step H8;Otherwise perform step H63;
Step H63:Bluetooth module sends link order, return to step H61 to security module again.
Alternatively, in the step of the present embodiment above method H2, bluetooth module sets the state of itself for mode of operation, tool Body is:Electricity on bluetooth module, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is carried out initially Change;For example, bluetooth module is initialized specially to the hardware device of itself:Bluetooth module is to circuit devices such as the electric capacity of itself Part is initialized.
Correspondingly, in above-mentioned steps H7, bluetooth module sets shutdown mode, specially:Bluetooth module performs power-off operation;
Correspondingly, in above-mentioned steps S1, security module sets the state of itself for mode of operation, specially:Security module Upper electricity, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized.For example, safe mould Block is initialized specially to the hardware device of itself:Security module is initialized to circuit devcies such as the electric capacity of itself.
Or, the step of the present embodiment above method in H2, bluetooth module sets the state of itself for mode of operation, may be used also To be specially:The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock pattern by bluetooth module;
Correspondingly, in above-mentioned steps H7, bluetooth module sets shutdown mode, can also be specially:Bluetooth module is set certainly The state of body is deep sleep mode;
Correspondingly, in above-mentioned steps S1, security module sets the state of itself for mode of operation, specially:Security module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself;
Correspondingly, in above-mentioned steps S2, also include:Security module is not received by link order in the 7th Preset Time When, the state of itself is set for deep sleep mode.
Or, the step of the present embodiment above method in H2, bluetooth module sets the state of itself for mode of operation, may be used also To be specially:The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock pattern by bluetooth module;
Correspondingly, in above-mentioned steps H7, bluetooth module sets shutdown mode, specially:Bluetooth module wakes up security module, Shutdown command is sent to security module, when receiving the shutdown command response from security module, the state of itself is set for deeply Degree sleep pattern;
Correspondingly, in above-mentioned steps S1, security module sets the state of itself for mode of operation, specially:Security module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself;
Correspondingly, in above-mentioned steps S2, also include:Security module is not received by link order in the 7th Preset Time When, the state of itself is set for low-power consumption standby pattern;
Correspondingly, after above-mentioned steps S2, also include:Security module is waken up by bluetooth module, receives bluetooth module During shutdown command, shutdown command response is returned to bluetooth module, the state of itself is set for deep sleep mode.
Specifically, in the present embodiment, above-mentioned security module sets the state of itself for deep sleep mode, specially:Peace Full module will electricity under the main core of the chip of itself, close the independent modules of itself, keep the wake module of itself to have an electricity, and close with The ancillary equipment of security module connection.For example, security module closes connected peripheral current consuming apparatus includes display module;Peace The independent modules of itself that full module is closed include algoritic module, communication module (such as SPI/UART/I2C/USB), memory module.
Specifically, in the present embodiment, above-mentioned bluetooth module sets the state of itself for deep sleep mode, specially:It is blue Tooth module will electricity under the main core of the chip of itself, close the independent modules of itself, keep the wake module of itself to have an electricity, and close with The ancillary equipment of itself connection.For example, bluetooth module closes connected peripheral current consuming apparatus includes display module;Bluetooth mould Block closes the independent modules of itself includes communication module (such as SPI/UART/I2C).
Specifically, in the present embodiment, above-mentioned security module sets the state of itself for low-power consumption standby pattern, specific bag Include:
Step a1:Security module by the clock setting of itself be low-speed clock pattern, close itself independent modules and The ancillary equipment being connected with itself;
Step a2:Safety chip is set to sleep pattern by security module.
Specifically, in the present embodiment, above-mentioned bluetooth module sets the state of itself for low-power consumption standby pattern, specially: Bluetooth module closes the ancillary equipment being connected with itself and/or the independent modules for closing itself.Further specifically, bluetooth module When the state of itself is set for low-power consumption standby pattern, also specifically include:When the clock setting of itself is low speed by bluetooth module Clock pattern, sleep pattern is set to by the chip of itself.
Alternatively, in the step of the present embodiment above method H4, before bluetooth module tissue link order, also include:It is blue Tooth module generates random number, and random number is preserved;
Correspondingly, above-mentioned bluetooth module tissue link order, specially:Bluetooth module refers to according to the connection of random number tissue Order;
Correspondingly, in above-mentioned steps H6, bluetooth module returns to success status to host computer, and setting oneself state is low-power consumption After standby mode, before being successfully established bluetooth connection, also include:Bluetooth module receives the Action Events from host computer, if The state of itself is put for mode of operation, the random number in Action Events include random number, and Action Events is protected with itself When the random number deposited is identical, successful state response is returned to host computer, setting oneself state is low-power consumption standby pattern, success Set up bluetooth connection;Wherein, bluetooth module sets the state of itself for mode of operation is specially:Bluetooth module opens the nothing of itself Close the ancillary equipment that module and/or unlatching are connected with itself;Further, bluetooth module sets the state of itself and is in this step When mode of operation is specially, also include:The clock setting of itself is high-frequency clock pattern by bluetooth module.
Correspondingly, in above-mentioned steps S2, when security module receives link order in the 7th Preset Time, also include: Security module obtains random number from link order, and shows random number.
Further, also include in the above method:When bluetooth module is not received by coming in Preset Time in step H6 From the Action Events of host computer when, bluetooth module returns to overtime response to host computer, sets shutdown mode.
Further, also include in the above method:When bluetooth module receives Action Events, in Action Events include with Machine number, or random number in Action Events it is different from the random number that itself is preserved when, bluetooth module is returned to host computer and failed Response, set shutdown mode.
Alternatively, in the present embodiment above method, in above-mentioned steps S2, security module is received in the 7th Preset Time During link order, also include:Security module is generated and shows random number, and random number is preserved;
Correspondingly, in above-mentioned steps H6, bluetooth module returns to success status to host computer, and setting oneself state is low-power consumption After standby mode, be successfully established bluetooth connection before, also include:
Step H9:Bluetooth module receives the Action Events from host computer, sets the state of itself for mode of operation, wakes up Security module, and Action Events are sent to security module;
Step H10:Whether bluetooth module judges received in the 11st Preset Time from the successful shape of security module State response, is then to return to successful state response to host computer, and setting oneself state is low-power consumption standby pattern;Otherwise, when When the state response from security module failure is received in the 11st Preset Time, the state for returning to failure to host computer should Answer, set shutdown mode, perform step H1, when do not have in the 11st Preset Time receive the state response from security module When, status of fail is returned to host computer, shutdown mode is set, perform step H1;
Correspondingly, also include after above-mentioned steps S2:
Step S3:When security module is waken up by bluetooth module, setting oneself state is mode of operation, judges pre- the 12nd If whether receiving the Action Events from bluetooth module in the time, received from bluetooth module in the 12nd Preset Time Action Events, the random number phase that the random number in Action Events include random number, and Action Events is preserved with itself Meanwhile, successful state response is returned to bluetooth module, setting oneself state is low-power consumption standby pattern, when bag in Action Events When the random number for including the random number in random number, and Action Events and itself preserving is differed, or do not wrapped in Action Events When including random number, the state response of failure is returned to bluetooth module.In this step, security module sets the state of itself for work Pattern, can be specially:Security module sets the clock of itself for high-frequency clock pattern, open itself independent modules and/or The ancillary equipment being connected with itself.
Specifically, bluetooth module sets shutdown mode in step H10, specially:Bluetooth module performs power-off operation.Step Security module returns to the state response of failure to bluetooth module or security module is received in the 12nd Preset Time in S3 During Action Events from bluetooth module, after bluetooth module performs power-off operation, security module power-off performs step S1.
Specifically, bluetooth module sets shutdown mode in step H10, specially:Bluetooth module sets the state of itself Deep sleep mode;Correspondingly, also wrapped after state response of the security module to bluetooth module return failure in above-mentioned steps S3 Include:It is deep sleep mode that security module sets oneself state, performs step S1.
In the present embodiment, also include in step S3, when security module is not received by coming from the 12nd Preset Time During the Action Events of bluetooth module, setting oneself state is deep sleep mode, performs step S1.
In the present invention, when security module is set to mode of operation by low-power consumption standby pattern, security module sets itself State is specially for mode of operation:The clock setting of itself is high-frequency clock pattern by security module;Further, security module The independent modules and/or the ancillary equipment that is connected with itself of itself can also be opened.
In the present invention, when bluetooth module is set to mode of operation by low-power consumption standby pattern, bluetooth module sets itself State is specially for mode of operation:Bluetooth module opens the independent modules and/or the ancillary equipment that is connected with itself of itself;Enter one Step ground, can also be high-frequency clock pattern by the clock setting of itself when the clock of bluetooth module is low-speed clock pattern.
In the present invention, bluetooth module and security module are set the chip of itself when oneself state is low-power consumption standby pattern Sleep pattern is set to, while the clock of itself is switched into low-speed clock pattern, power consumption can be further reduced.If only cut The clock frequency of itself is changed, the chip of itself sleep pattern is not set to, chip may proceed to perform working procedure, when by chip It is set to after sleep pattern, chip stops performing working procedure.
In the present embodiment, the ancillary equipment of bluetooth security equipment includes display module, but is not limited to display module, above-mentioned aobvious Show that module is connected with security module, but not limited to this connected mode.For example, display module can be with security module and/or bluetooth Module is connected.
It should be noted that security module can be specially a safety chip and is connected with safety chip in the present invention Peripheral circuit, independent modules (such as communication module, memory module, algoritic module) are integrated in safety chip;Security module Safety chip, independent modules and the peripheral circuit being connected with safety chip can be included, wherein independent modules can be integrated in The absolute construction being connected in safety chip, or with safety chip, for example, the communication module in independent modules is integrated in peace In full chip, the algoritic module in independent modules is the absolute construction being connected with safety chip.In the present invention, to security module with The design of the peripheral circuit of safety chip connection is not specifically limited.
Bluetooth module can be specially a Bluetooth chip and the peripheral circuit being connected with Bluetooth chip in this real invention, Independent modules (such as communication module) are integrated in Bluetooth chip;Bluetooth module can also include Bluetooth chip, independent modules and The peripheral circuit being connected with Bluetooth chip, wherein independent modules can be integrated in Bluetooth chip, or and Bluetooth chip The absolute construction of connection, for example, the communication module in independent modules is integrated in Bluetooth chip, independent modules can also be and indigo plant The absolute construction of tooth chip connection.In the present invention, the peripheral circuit to being connected with Bluetooth chip in bluetooth module does not do specific limit It is fixed.
In the present invention, the chip and Bluetooth chip of bluetooth module belong to same concept, the chip of above-mentioned security module and Safety chip belongs to same concept.
The present embodiment beneficial effect compared with prior art is:Bluetooth security equipment sets up bluetooth connection mistake with host computer Cheng Zhong, the bluetooth module in bluetooth security equipment is set to low-power consumption standby pattern or shutdown immediately after having performed corresponding operating Pattern, the security module in bluetooth security equipment is set to low-power consumption standby pattern immediately after having performed corresponding operating, so may be used Effectively to save electric energy, extend the standby time of bluetooth security equipment, better user experience.
Embodiment 2
The present invention provides a kind of method that bluetooth connection is set up in low-power consumption, it is adaptable to including security module and bluetooth module Bluetooth security equipment, method specifically includes the operating method of security module and the operating method of bluetooth module.
As shown in figure 3, the operating method of security module includes:
Step 101:Security module is waited and waken up by bluetooth module.
Specifically, when security module wait is waken up by bluetooth module in step 101, in deep sleep mode or shutdown shape State.
Step 102:When security module is waken up by bluetooth module, notify that bluetooth module itself is waken up, the shape of itself is set State is mode of operation.
Specifically, security module notifies that bluetooth module itself is waken up, specially:Security module is dragged down and connected with bluetooth module The level of the first control pin for connecing.
It should be noted that in the present embodiment, two control lines and two are passed through between bluetooth module and security module Data wire is connected, and two control lines are that Wakeup interacts line and combus control lines.First control pin of security module passes through Combus control lines are connected with bluetooth module, and the second control pin of bluetooth module interacts line and connects with security module by WakeUp Connect.
Specifically, after bluetooth module draws high the level of the second control pin, security module drags down the first control automatically The level of pin.
Specifically, security module sets the state of itself for mode of operation is specially in step 102:Security module by itself Clock setting be high-frequency clock pattern.For example, security module by the clock setting of itself be high-frequency clock pattern before when Clock is closed, and security module is by the clock setting of itself for the clock frequency after high-frequency clock pattern is 2.5MHz.
It should be noted that in the present embodiment, two data lines that security module is connected with bluetooth module are receipts number line With hair number line, wherein, it is the data wire that security module receives data to receive number line, and hair number line is the data that security module sends data Line, bluetooth module and security module transmit data by data wire.
Step 103:The communication acknowledgement data to be received such as security module, after the state of itself being set and is mode of operation When receiving default communication acknowledgement data in the 6th Preset Time, notify that bluetooth module confirms communication, the state of itself is set It is low-power consumption standby pattern.
Specifically, security module notifies that bluetooth module confirms communication, specially:Security module is drawn high and is connected with bluetooth module First control pin level.
Further specifically, specifically included in step 103:
Step 1031:Security module judges whether to receive data, is then to perform step 1033;Otherwise perform step 1032;
Specifically, security module judge register state whether set, be then execution step 1033, otherwise perform step 1032.It is 0 during the non-set of the state of register for example, be 1 after the status set of register.
Step 1032:Security module judges whether time-out, if judged result is to be not timed-out, performs step 1031;
Specifically, security module judges whether time-out, specially:Security module judges for oneself state to be set to Working mould To current time whether more than the 6th Preset Time after formula, if it is judged that then being performed to be not above the 6th Preset Time Step 1031;For example, the 6th Preset Time is 30 milliseconds.
Step 1033:Security module judges whether the data for receiving are default communication acknowledgement data, are to draw high and indigo plant The level of the first control pin of tooth module connection, sets the state of itself for low-power consumption standby pattern, performs step 104;It is no Then return to step 1031.For example, security module judges whether the data for receiving are default communication acknowledgement data, specially:Peace Full module judges whether the data for receiving are 0x55, and it is then communication acknowledgement data to be, is not otherwise communication acknowledgement data.
Alternatively, also include in the present embodiment step 103, security module is after setting the state of itself and being mode of operation The 6th Preset Time in when being not received by default communication acknowledgement data, the state of itself is set for deep sleep mode, Or when bluetooth module performs power-off operation, security module power-off.Specifically, in above-mentioned steps 1032, if it is judged that It is time-out, security module sets the state of itself for deep sleep mode, or when bluetooth module performs power-off operation, safety Module power-down.
Step 104:Security module is waited and waken up by bluetooth module, when being waken up by bluetooth module, sets the state of itself It is mode of operation.
Step 105:The link order from bluetooth module to be received such as security module, when the reception in the 7th Preset Time During to link order, the response of link order is organized, and the response of link order is returned into bluetooth module, the state of itself is set It is low-power consumption standby pattern.
In the present embodiment step 105, security module sets oneself state after low-power consumption standby pattern, to wait by bluetooth Data bits, the communication of security module and host computer is realized by bluetooth module, when security module is waken up by bluetooth module, if Oneself state is put for mode of operation, the data from bluetooth module are received, for example, receiving the data of signature command, modification PIN code The data of instruction, the data for taking key-press status instruction.
Alternatively, also include in step 105:When link order is not received by the 7th Preset Time, safe mould It is deep sleep mode that block sets oneself state, performs step 101;Or powered off when bluetooth module performs power-off operation, hold Row step 101.
Specifically, step 105 is specifically included:
Step 1051:Security module judges whether to receive data, is then to perform step 1053, otherwise performs step 1052;
Step 1052:Security module judges whether time-out, is then to set oneself state for deep sleep mode, performs step 101;Or powered off when bluetooth module performs power-off operation, perform step 101;Otherwise perform step 1053;
Specifically, step 1052 is specially:Security module judges to be set to oneself state to arrive current after mode of operation Whether the time, more than the 7th Preset Time, is then to set oneself state for deep sleep mode, performs step 101;Or when indigo plant Tooth module is powered off when performing power-off operation, performs step 101;Otherwise perform step 1053;For example, the 7th Preset Time is 30 millis Second.
Step 1053:Security module judges whether the data for receiving are link order, is then to organize answering for link order Answer, and the response of link order is returned into bluetooth module, the state of itself is set for low-power consumption standby pattern;Otherwise return to step 1051。
As shown in figure 4, the operating method of bluetooth module includes:
Step 201:The power-on event to be received such as bluetooth module.
Specifically, off-mode or deep sleep mode are in during the power-on event to be received such as bluetooth module.
Step 202:When bluetooth module receives power-on event, the state of itself is set for mode of operation, wakes up safe mould Block.
Specifically, after user presses the starting key of bluetooth security equipment, bluetooth module receives power-on event.
Specifically, in step 202, bluetooth module wakes up security module, specially:Bluetooth module is drawn high and is connected with security module The level of the second control pin for connecing.
In the present embodiment, the second control pin of bluetooth module interacts line and is connected with security module by WakeUp.
Alternatively, in the present embodiment, bluetooth module by draw high the second control pin level wake up security module after, Also include:Bluetooth module in the given time drags down the level of the second control pin;For example, bluetooth module is drawing high the second control After the level 10ms of tubulation pin, the level of the second control pin is dragged down.
Step 203:Bluetooth module judges whether the notice that security module is waken up is received in the first Preset Time, is then Step 204 is performed, step 211 is otherwise performed.
Specifically, bluetooth module judges whether the notice that security module is waken up is received in the first Preset Time, specifically For:Bluetooth module judges whether the level of the be connected with security module in the first Preset Time first control pin is low, is Step 204 is then performed, step 211 is otherwise performed.
In the present embodiment, the first control pin of bluetooth module is connected by combus control lines with security module.
Further specifically, step 203 is specifically included:
Step 2031:Bluetooth module judges whether the level of the be connected with security module first control pin is low, is then Step 204 is performed, step 2032 is otherwise performed;
Step 2032:Bluetooth module judges whether time-out, is then to perform step 211, otherwise performs step 2031.
Specifically, step 2032 is specially:Bluetooth module judge from set the state of itself as mode of operation to it is current when Between whether more than the first Preset Time, be then execution step 211, otherwise perform step 2031;For example, the first Preset Time is 30 Millisecond.
Preferably, after step 202, before step 2031, also include:Bluetooth module waits the first sub- Preset Time.Example Such as, the first sub- Preset Time is 10 milliseconds.
Step 204:Bluetooth module sends default communication acknowledgement data to security module.
Specifically, step 204 is specially:The default communication acknowledgement data of bluetooth module tissue, and default communication is true Data is activation is recognized to bluetooth module.For example, bluetooth module is to the default communication acknowledgement data that security module sends tissue 0x55。
Step 205:Bluetooth module judges whether the notice that security module confirms communication is received within the second Preset Time, It is then to perform step 206, otherwise performs step 211.
Specifically, step 205 is specially:Bluetooth module judges be connected with security module within the second Preset Time Whether the level of one control pin is driven high, and is then to perform step 206, otherwise performs step 211.
Alternatively, step 205 is specifically included:
Step 2051:Bluetooth module judges whether the level of the be connected with security module first control pin is driven high, and is Step 206 is then performed, step 2052 is otherwise performed;
Step 2052:Bluetooth module judges whether time-out, is then to perform step 211, otherwise performs step 2051.
Specifically, bluetooth module judges to send whether default communication acknowledgement data surpass to current time to security module The second Preset Time is crossed, is then to perform step 211, otherwise perform step 2051;For example, the second Preset Time is 30 milliseconds.
Preferably, after step 204, before step 2051, also include:Bluetooth module waits the second sub- Preset Time.Example Such as, the second sub- Preset Time is 10 milliseconds.
Alternatively, step 205 can also be specifically included:
Step 205-1:Bluetooth module waits the second sub- Preset Time, the first control pin that judgement is connected with security module Level whether be driven high, be then execution step 206, otherwise perform step 205-2;For example, the second sub- Preset Time is 10 millis Second.
Step 205-2:Bluetooth module judges whether time-out, is then to perform step 211, otherwise performs step 205-3.
Specifically, step 205-2 is specially:Bluetooth module judges to send default communication from first time to security module really Whether data are recognized to current time more than the second Preset Time, is then to perform step 211, otherwise perform step 205-3;For example, Second Preset Time is 30 milliseconds.
Step 205-3:Bluetooth module sends default communication acknowledgement data to security module again, performs step 205-1.
Step 206:Bluetooth module judges whether to listen to the bluetooth connection from host computer within the 3rd Preset Time Event, is then to perform step 207, otherwise performs step 211.
In the present embodiment, bluetooth module judges whether to listen to bluetooth connection event, specifically, when host computer is to bluetooth mould When block sends connection request, bluetooth module listens to bluetooth connection event.
Specifically, step 206 is specifically included:
Step 2061:Bluetooth module judges whether to listen to the bluetooth connection event from host computer, is to perform step 207, otherwise perform step 2062;
Step 2062:Whether bluetooth module judges surpass to current time from the notice for judging to receive security module confirmation communication The 3rd Preset Time is crossed, is then to perform step 211, otherwise perform step 2063.
Further specifically, step 2062, specially:Bluetooth module is judged from the first control pipe being connected with security module Whether level the last time of pin is pulled high to current time more than the 3rd Preset Time, is then to perform step 211, otherwise performs Step 2063;For example, the 3rd Preset Time is 30 milliseconds.
Step 2063:Bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, sets certainly The state of body is mode of operation, performs step 2061.
Alternatively, when bluetooth module waits the machine that is generalized to wake up in step 2063, can also include:Bluetooth module judge from Judgement receive security module confirm communication notice to current time whether more than the 3rd Preset Time, be then perform step 211, Otherwise continue waiting for and judge.
Specifically, in step 2063, bluetooth module sets the state of itself for low-power consumption standby pattern, specially:Bluetooth Module closes the ancillary equipment and/or the independent modules of itself being connected with itself.For example, bluetooth module opens what is be connected with itself Display module and/or open the communication module of itself.Further specifically, bluetooth module sets the state of itself for low-power consumption is treated During machine pattern, also include:Itself clock setting is low-speed clock pattern by bluetooth module, and the chip of itself is set into sleep Pattern.For example, the clock frequency of itself is set to 0.7MHz by bluetooth module.
Specifically, in step 2063, bluetooth module sets the state of itself for mode of operation, specially:Bluetooth module is opened Open the ancillary equipment and/or the independent modules of itself being connected with itself.For example, bluetooth module opens the display mould being connected with itself Block and/or open the communication module of itself.Further specifically, when bluetooth module sets the state of itself for mode of operation, also Including:The clock setting of itself is high-frequency clock pattern by bluetooth module.For example, bluetooth module sets the clock frequency of itself It is 2.5MHz.
Step 207:Bluetooth module tissue link order, wakes up security module.
In step 207, bluetooth module wakes up security module, specially:Bluetooth module drags down be connected with security module The level of one control pin.In the present embodiment, the first control pin of bluetooth module passes through combus control lines and security module Connection.
Alternatively, in the present embodiment step 207, bluetooth module passes through to drag down the first control pin being connected with security module Level wake up security module after, in the given time by first control pin level draw high;For example, bluetooth module is drawing After the level 10ms of the first control pin high, the level of the first control pin is drawn high.
Step 208:Link order is sent to security module by bluetooth module after the 4th Preset Time, default the 5th When the response of link order is received within the time, step 209 is performed;Connection is not received by within the 5th Preset Time to refer to During the response of order, step 210 is performed.
Specifically, step 208 is specifically included:
Step 2081:Link order is sent to security module by bluetooth module after the 4th Preset Time;For example, the 4th Preset Time is 10 milliseconds.
Step 2082:Bluetooth module judges whether to receive the response of link order after the 5th sub- Preset Time, is Step 209 is then performed, step 2083 is otherwise performed;For example, the 5th sub- Preset Time is 10 milliseconds.
Step 2083:Bluetooth module judges to send whether link order exceedes to current time from first time to security module 5th Preset Time, is then to perform step 210;Link order otherwise is sent to security module again, step 2082 is performed.Example Such as, the 5th Preset Time is 30 milliseconds.
Or, step 208 can also be specifically included:
Step 208-1:Link order is sent to security module by bluetooth module after the 4th Preset Time;For example, the Four Preset Times are 10 milliseconds.
Step 208-2:Bluetooth module judges whether to receive the response of link order, is then to perform step 209, otherwise holds Row step 208-3;
Step 208-3:Whether bluetooth module judges to send link order to current time more than the 5th to security module Preset Time, is then to perform step 210;Otherwise perform step 208-2.For example, the 5th Preset Time is 30 milliseconds.
Preferably, after step 208-1, before step 208-2, also include:Bluetooth module waits the 5th sub- Preset Time. For example, the 5th sub- Preset Time is 10 milliseconds.
Step 209:Bluetooth module returns to success status to host computer, and setting oneself state is low-power consumption standby pattern, into Work(sets up bluetooth connection.Bluetooth module setting oneself state is low-power consumption standby pattern with specific reference to above-mentioned steps in this step 2063, will not be repeated here.
In the present embodiment, it is successfully established after bluetooth connection in above-mentioned steps 209, bluetooth module etc. is to be received from upper The data of machine, realize the communication of security module and host computer.
Step 210:Bluetooth module returns to status of fail to host computer, sets the state of itself for low-power consumption standby pattern, When machine wake-up is generalized in the tenth Preset Time, the state of itself is set for mode of operation, performs step 206;It is pre- the tenth If machine wake-up is not generalized in the time, step 211 is performed.Bluetooth module sets oneself state for low-power consumption is treated in this step Machine pattern and set oneself state be mode of operation with specific reference to above-mentioned steps 2063, will not be repeated here.
Step 211:Bluetooth module sets shutdown mode, performs step 201.
Alternatively, in above-mentioned steps 210, when bluetooth module is not generalized machine wake-up in the tenth Preset Time, perform Before step 211, also include:Bluetooth module sets the state of itself for mode of operation.Correspondingly, step 211 is specially:Bluetooth Module sets oneself state after mode of operation, to set shutdown mode.
Alternatively, in above-mentioned steps 202, bluetooth module sets the state of itself for mode of operation, specially:Bluetooth module Upper electricity, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized.For example, bluetooth mould The clock setting of itself is high-frequency clock pattern by block, specially:The clock frequency of itself is set to 2.5MHz by bluetooth module; For example, bluetooth module is initialized specially to the hardware device of itself:Bluetooth module is to circuit devcies such as the electric capacity of itself Initialized.Correspondingly, above-mentioned steps 211 are specially:Bluetooth module performs power-off operation;Bluetooth module performs power-off operation When, bluetooth module is by the power-off of bluetooth security equipment.
Correspondingly, in above-mentioned steps 102, security module sets the state of itself for mode of operation, specially:Security module Upper electricity, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized.For example, safe mould Clock setting is high-frequency clock pattern by block, specially:The clock frequency of itself is set to 2.5MHz by security module.For example, Security module is initialized specially to the hardware device of itself:Security module is carried out just to circuit devcies such as the electric capacity of itself Beginningization.
Alternatively, in above-mentioned steps 202, bluetooth module sets the state of itself for mode of operation, specially:Bluetooth module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself;
Correspondingly, above-mentioned steps 211 are specially:Bluetooth module sets the state of itself for deep sleep mode.Specifically, Bluetooth module sets the state of itself for deep sleep mode, specially:Bluetooth module closes electricity under the main core of the chip of itself The independent modules of itself, keep the wake module of itself to have electricity, and close the ancillary equipment being connected with itself.For example, bluetooth mould Block closes the peripheral current consuming apparatus being connected with itself includes display module;Bluetooth module closes the independent modules of itself includes communication Module (such as SPI/UART/I2C).
In the present embodiment, when bluetooth module sets the state of itself for mode of operation by deep sleep mode only to bluetooth Electricity, initializes without the circuit devcie to bluetooth module on the main core of chip of module, improves starting up speed.For example, blue Without being initialized to circuit device, by taking electric capacity as an example, bluetooth module is converted to mode of operation to tooth module by deep sleep mode When, bluetooth module charges without to electric capacity.
Correspondingly, in above-mentioned steps 102, security module sets the state of itself for mode of operation, specially:Security module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself.
Correspondingly, also include in above-mentioned steps 103:Security module set oneself state be mode of operation after the 6th When default communication acknowledgement data are not received by Preset Time, the state of itself is set for deep sleep mode.Specifically, Security module sets the state of itself for deep sleep mode, specially:Security module closes electricity under the main core of the chip of itself The independent modules of itself, keep the wake module of itself to have electricity, and close the ancillary equipment being connected with itself.For example, safe mould Block closes the peripheral current consuming apparatus being connected with itself includes display module;The independent modules that security module is closed include algorithm mould Block, communication module (such as SPI/UART/I2C), memory module.
Still optionally further, in above-mentioned steps 105, also include:Security module is not received by the 7th Preset Time During link order, the state of itself is set for deep sleep mode.
Alternatively, in above-mentioned steps 105, also include:Security module is not received by connection and refers in the 7th Preset Time When making, the state of itself is set for low-power consumption standby pattern, is waken up by bluetooth module and receive the shutdown command of bluetooth module When, shutdown command response is returned to bluetooth module, the state of itself is set for deep sleep mode.
Correspondingly, above-mentioned steps 211 are specially:Bluetooth module wakes up security module, and shutdown command is sent to security module, When receiving the shutdown command response from security module, the state of itself is set for deep sleep mode;Specifically, bluetooth mould Block sets the state of itself for deep sleep mode, specially:Electricity under the main core of the chip of itself is closed itself by bluetooth module Independent modules, keep the wake module of itself to have electricity, and close the ancillary equipment being connected with itself.For example, bluetooth module is closed The peripheral current consuming apparatus being connected with itself include display module;Bluetooth module closes the independent modules of itself includes communication module (such as SPI/UART/I2C).
Correspondingly, in above-mentioned steps 202, bluetooth module sets the state of itself for mode of operation, specially:Bluetooth module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself;
Correspondingly, in above-mentioned steps 102, security module sets the state of itself for mode of operation, specially:Security module It is high-frequency clock pattern by the clock setting of itself to electricity on the main core of chip of itself.
Further, also include in above-mentioned steps 103:Security module after oneself state being set and is mode of operation the When default communication acknowledgement data are not received by six Preset Times, the state of itself is set for deep sleep mode.Specifically Ground, security module sets the state of itself for deep sleep mode, specially:Security module will be electric under the main core of the chip of itself, The independent modules of itself are closed, keeps the wake module of itself to have electricity, and close the ancillary equipment being connected with itself.For example, peace Full module closes the peripheral current consuming apparatus being connected with itself includes display module;The independent modules that security module is closed include algorithm Module, communication module (such as SPI/UART/I2C), memory module.
Alternatively, in above-mentioned steps 207, before bluetooth module tissue link order, also include:Bluetooth module generation is random Number, and random number is preserved;
Correspondingly, in step 207, bluetooth module tissue link order, specially:Random number of the bluetooth module according to generation Tissue link order;
For example, the random number of bluetooth module generation is 00000000, the link order according to random number tissue is 6,B04 00 00 00 00 01 01;Wherein, first character section 6B is instruction head;Second byte 04 represents that the length of random number is 4 bytes; 3rd byte to the 6th byte is random number 00 00 00 00;7th byte is instruction sequence number, and 01 represents first finger Order;8th byte 01 represents link order.
Correspondingly, bluetooth module sets oneself state after low-power consumption standby pattern, to be successfully established in above-mentioned steps 209 Before bluetooth connection, also include:Bluetooth module receives the Action Events from host computer, sets the state of itself for Working mould Formula, when the random number during Action Events include random number, and Action Events is identical with the random number that itself is preserved, upwards Position machine returns to successful state response, sets the state of itself for low-power consumption standby pattern, is successfully established bluetooth connection.
Correspondingly, when security module receives link order in the 7th Preset Time in above-mentioned steps 103, also include: Security module obtains random number from link order, and shows random number.
Alternatively, in above-mentioned steps 105, when security module receives link order in the 7th Preset Time, also include: Security module is generated and shows random number, and random number is preserved;
Correspondingly, in above-mentioned steps 209, bluetooth module returns to success status to host computer, and setting oneself state is low work( Consumption standby mode after, be successfully established bluetooth connection before, also include:
Step L1:Bluetooth module receives the Action Events from host computer, and setting oneself state is mode of operation, wakes up peace Full module, and Action Events are sent to security module after the 8th Preset Time;In this step, bluetooth module sets itself State is that mode of operation is identical with step 2063, be will not be repeated here.
Step L2:Bluetooth module judges whether successful state response is received in the 11st Preset Time, be then to Host computer returns to successful state response, and setting oneself state is low-power consumption standby pattern, is successfully established bluetooth connection;Otherwise, When the state response of failure is received in the 11st Preset Time, the state response of failure is returned to host computer, perform step Rapid 211, when there is no to receive the state response from security module in the 11st Preset Time, failure shape is returned to host computer State, performs step 211;In this step, it is that low-power consumption standby pattern is identical with step 2063 that bluetooth module sets oneself state, This is repeated no more.
Correspondingly, also include after above-mentioned steps 105:
Step N1:When security module is waken up by bluetooth module, setting oneself state is mode of operation, judges pre- the 12nd If whether receiving the Action Events from bluetooth module in the time, received from bluetooth module in the 12nd Preset Time Action Events, the random number phase that the random number in Action Events include random number, and Action Events is preserved with itself Meanwhile, successful state response is returned to bluetooth module, setting oneself state is low-power consumption standby pattern, when bag in Action Events When the random number for including the random number in random number, and Action Events and itself preserving is differed, or do not wrapped in Action Events When including random number, the state response of failure is returned to bluetooth module.In this step, it is Working mould that security module sets oneself state The clock setting of itself is high-frequency clock pattern by formula, specially security module;Further, security module sets oneself state During for mode of operation, the independent modules and/or the ancillary equipment that is connected with itself of itself can also be opened.
Specifically, bluetooth module sets shutdown mode in step 211, specially:Bluetooth module performs power-off operation;Accordingly Ground, in step N1 security module to bluetooth module return failure state response after, when bluetooth module perform power-off operation it Afterwards, security module is also powered off, and performs step 101.
Specifically, bluetooth module sets shutdown mode in step 211, specially:Bluetooth module sets the state of itself Deep sleep mode;Correspondingly, also wrapped after state response of the security module to bluetooth module return failure in above-mentioned steps N1 Include:It is deep sleep mode that security module sets oneself state, performs step 101.
In the present embodiment step 209, bluetooth module is returned after success status to host computer, and host computer ejects one at random Number input frames, when user is input into the random number that shows of security module simultaneously in Preset Time in the random number input frame of host computer After confirming to submit to, bluetooth module receives confirmation event and random number from host computer and triggers checking random number event; When user presses the cancellation button of host computer, bluetooth module receives cancellation event and triggers checking random number event;Work as user In Preset Time press cancel key also not by acknowledgement key when, bluetooth module receive time out event and trigger verify at random Number event.
Specifically, above-mentioned steps L1 is specially:Bluetooth module receives the Action Events from host computer, sets oneself state It is mode of operation, according to Action Events triggering checking random number event generation proofing state, shape is verified according to proofing state tissue State is instructed, and wakes up security module, and proofing state instruction is sent into security module after the 8th Preset Time.
Further specifically, above-mentioned bluetooth module generates proofing state according to Action Events triggering checking random number event, Instructed according to proofing state tissue proofing state, specifically included:
Step a11:Bluetooth module judges the Action Events for receiving, and when the Action Events for receiving are confirmation event, performs Step a12;When Action Events are cancellation event, step a13 is performed;When Action Events are time out event, step a14 is performed;
Step a12:Bluetooth module triggering checking random number event, when Action Events include random number, generates successfully Proofing state, and instructed according to successful proofing state and random number tissue proofing state;When in Action Events not include with The proofing state of failed regeneration during machine number, and according to the proofing state tissue proofing state instruction of failure;
Step a13:Bluetooth module triggering checking random number event, generates the proofing state cancelled, according to the checking cancelled State tissue proofing state is instructed;
Step a14:Bluetooth module triggering checking random number event, generates the proofing state of time-out, according to the checking of time-out State tissue proofing state is instructed.
For example, when bluetooth module is instructed according to successful proofing state tissue proofing state, the checking instruction of tissue is 6B0100000000020200 (the 9th byte is 00, and the 3rd to the 6th byte is random number);When proofing state is when successfully, to test The 9th byte for demonstrate,proving status command is 00;When proofing state is to cancel, the 9th byte of proofing state instruction is 01;Work as checking When state is for failure, the 9th byte of proofing state instruction is 02;When proofing state is for time-out, the 9th of proofing state instruction the Byte is 03.
Correspondingly, above-mentioned steps N1 is specially:When security module is waken up by bluetooth module, setting oneself state is Working mould Whether formula, judges to be received in the 12nd Preset Time the proofing state instruction from bluetooth module, when the 12nd is default The interior proofing state instruction received from bluetooth module, when proofing state instruction includes random number, and proofing state When random number in instruction is identical with the random number that itself is preserved, successful state response is returned to bluetooth module, itself is set State is low-power consumption standby pattern, when proofing state instruction includes random number, and random number in proofing state instruction and The random number for itself preserving is differed, or when not including random number in Action Events, the state of failure is returned to bluetooth module Response.Further, also include in step N1:Security module judge proofing state instruction in proofing state whether be successfully, For example, when the 9th byte is 00 in proofing state instruction, proofing state is successfully;The 9th byte in proofing state instruction For 01 or 02 or 03 when, proofing state for failure.
In the present embodiment, above-mentioned bluetooth module sets the state of itself for low-power consumption standby pattern, specially:Bluetooth module Close the ancillary equipment being connected with itself and/or the independent modules for closing itself;
Further, when bluetooth module sets the state of itself for low-power consumption standby pattern, also include:Bluetooth module by when Clock is set to low-speed clock pattern, and the chip of itself is set into sleep pattern.For example, bluetooth module by clock frequency by 2.5MHz switches to 0.07MHz, and (clock frequency of mode of operation is 2.5MHz, and the clock frequency of low-power consumption standby pattern is 0.07MHz);The peripheral current consuming apparatus such as the display module that bluetooth module closing is connected with itself.
In the present invention, when security module is in off-mode, electricity, when being waken up by bluetooth module, first has under security module Upper electricity (specifically, electricity specially bluetooth is powered by LDO or metal-oxide-semiconductor to security module in security module), by clock setting It is high-frequency clock pattern, and the hardware of itself is initialized;
When security module is in deep sleep mode, electricity under the main core of the safety chip in security module, with security module The ancillary equipment of connection is closed, while the independent modules (such as communication module, algoritic module, memory module) in security module are closed Close, only wake module has electricity, after being waken up by bluetooth module, security module is waken up by wake module, to the chip master of itself Electricity on core, setting clock is high-frequency clock pattern;
When security module is in low-power consumption standby module, security module only closes the larger ancillary equipment of power consumption, safe core Piece has electricity, and the clock of itself is low-speed clock pattern, and the chip of security module is set to sleep pattern, is called out by bluetooth module It is high-frequency clock pattern by clock setting when waking up.
In the present embodiment, when bluetooth module is in off-mode, electricity under bluetooth module, when receiving power-on event, bluetooth (specifically, bluetooth module receives power-on event and is specially electricity on chip:User presses the starting key of bluetooth security equipment Afterwards, power-on event is triggered), it is high-frequency clock pattern by the clock setting of itself, the hardware to itself is initialized;
When bluetooth module is in deep sleep mode, electricity, is connected with bluetooth module under the main core of chip in bluetooth module Ancillary equipment is closed, while the independent modules (such as communication module SPI/UART/I2C) in bluetooth module are closed, only wakes up mould Block has electricity, when receiving power-on event, is waken up by wake module, to electricity on the main core of Bluetooth chip, sets clock at a high speed Clock module;
When bluetooth module is in low-power consumption standby module, bluetooth module only closes the larger ancillary equipment of power consumption, bluetooth core Piece has electricity, and the clock of bluetooth module could be arranged to be low-speed clock pattern, and Bluetooth chip is in sleep pattern, is generalized It is high-frequency clock pattern by clock setting when machine wakes up.
In the present invention, bluetooth module and security module are set the chip of itself when oneself state is low-power consumption standby pattern Sleep pattern is set to, while being low-speed clock pattern by the clock setting of itself, power consumption can be further reduced.If only will The clock setting of itself is low-speed clock pattern, chip is not set into sleep pattern, and chip may proceed to perform working procedure, when Chip is set to after sleep pattern, chip stops performing working procedure.
In the present embodiment, the ancillary equipment of bluetooth security equipment includes display module, but is not limited to display module, above-mentioned aobvious Show that module is connected with security module, but not limited to this connected mode.For example, display module can be with security module and/or bluetooth Module is connected.
It should be noted that security module can be specially a safety chip and is connected with safety chip in the present invention Peripheral circuit, independent modules (such as communication module, memory module, algoritic module) are integrated in safety chip;Security module Safety chip, independent modules and the peripheral circuit being connected with safety chip can be included, wherein independent modules can be integrated in The absolute construction being connected in safety chip, or with safety chip, for example, the communication module in independent modules is integrated in peace In full chip, the algoritic module in independent modules is the absolute construction being connected with safety chip.In the present invention, to security module with The design of the peripheral circuit of safety chip connection is not specifically limited.
Bluetooth module can be specially a Bluetooth chip and the peripheral circuit being connected with Bluetooth chip in this real invention, Independent modules (such as communication module) are integrated in Bluetooth chip;Bluetooth module can also include Bluetooth chip, independent modules and The peripheral circuit being connected with Bluetooth chip, wherein independent modules can be integrated in Bluetooth chip, or and Bluetooth chip The absolute construction of connection, for example, the communication module in independent modules is integrated in Bluetooth chip, communication module can also be and indigo plant Tooth chip connects absolute construction.In the present invention, the peripheral circuit to being connected with Bluetooth chip in bluetooth module is not specifically limited.
In the present invention, the chip of Bluetooth chip and bluetooth module belongs to same concept, safety chip and security module Chip belongs to same concept.
Involved UART, SPI, I2C, USB are respectively UART (Universal Asynchronous in the present invention Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter), and SPI (Serial Peripheral Interface, serially Peripheral Interface), I2C (Inter-Integrated Circuit, internal integrated circuit), USB (Universal Serial Bus, USB).
The present embodiment beneficial effect compared with prior art is:Bluetooth security equipment sets up bluetooth connection mistake with host computer Cheng Zhong, the bluetooth module in bluetooth security equipment is set to low-power consumption standby pattern or shutdown immediately after having performed corresponding operating Pattern, the security module in bluetooth security equipment is set to low-power consumption standby pattern immediately after having performed corresponding operating, so may be used Effectively to save power supply, extend the standby time of bluetooth security equipment, better user experience.
Embodiment 3
The present embodiment provides a kind of bluetooth security equipment, as shown in figure 5, including bluetooth module 1 and security module 2, bluetooth Module 1 includes:
First wait receiver module 11, for etc. power-on event to be received;
First setup module 12, for when the first wait receiver module 11 receives power-on event, setting bluetooth module 1 State be mode of operation;
First judge module 13, the state for judging whether to set bluetooth module 1 in the first setup module 12 is work The bluetooth connection event from host computer is listened within the 3rd Preset Time after pattern;
The first tissue module 14, for when the judged result of the first judge module 13 is to be, organizing link order;
First wake module 15, is after being or 14 groups of the first tissue module for the judged result of the first judge module 13 Knit after link order, wake up security module;
First sending module 17, after waking up the 4th Preset Time of security module for the first wake module 15, by the The link order of the tissue of one molded tissue block 14 is sent to security module;
Second wait receiver module 16, for etc. link order to be received response;
First sending module 17, is additionally operable to wait receiver module 16 to wake up security module in the first wake module 15 when second When receiving the response of the link order from security module 2 within 2 the 5th Preset Time, successfully shape is returned to host computer State;
Second setup module 18, for the first sending module 17 to host computer return success status after, set bluetooth mould The state of block 1 is low-power consumption standby pattern;
Shutdown setup module 19, for when the judged result of the first judge module 13 is no, setting shutdown mode;
First waits receiver module 11, is additionally operable to after shutdown setup module 19 sets shutdown mode, waits to be received opening Machine event;
Security module 2 includes:
First waits wake module 21, is waken up by bluetooth module 1 for waiting;
3rd setup module 22, for when the first wait wake module 21 is waken up by bluetooth module, setting security module State be mode of operation;
Third module to be received 23, for etc. the link order from bluetooth module 1 to be received;
Minor microstructure module 24, for setting security module 2 in the 3rd setup module 22 when third module to be received 23 State to receive link order in the 7th Preset Time after mode of operation when, organize the response of link order;
Second sending module 25, the response of the link order for minor microstructure module 24 to be organized returns to bluetooth module 1;
4th setup module 26, after the response return bluetooth module 1 for the second sending module 25 by link order, if The state for putting security module 2 is low-power consumption standby pattern.
Specifically, in the above-mentioned bluetooth security equipment of the present embodiment, the first judge module 13 includes monitoring judging submodule, surpasses When judging submodule, first set submodule;
Judging submodule is monitored, after the state of bluetooth module 1 is set when the first setup module 12 for mode of operation, Judge whether to listen to the bluetooth connection event from host computer;
Correspondingly, the first tissue module 14, specifically for being to listen to from upper when judging submodule judged result is monitored During the bluetooth connection event of position machine, link order is organized;
Overtime judging submodule, for being not listen to the indigo plant from host computer when judging submodule judged result is monitored During tooth connection event, judge from the first setup module 12 set bluetooth module 1 state as mode of operation to current time whether More than the 3rd Preset Time;
Shutdown setup module 19, specifically for when overtime judging submodule judged result is to be, setting shutdown mode;
Second setup module 18, is additionally operable to, when overtime judging submodule judged result is no, set the shape of bluetooth module 1 State is low-power consumption standby pattern;
First sets submodule, for overtime judging submodule judged result for it is no when, and the second setup module 18 sets The state of bluetooth module 1 is put to wait the machine that is generalized to wake up after low-power consumption standby pattern, is waken up when bluetooth module 1 is generalized machine When, the state for setting bluetooth module 1 is mode of operation;
Judging submodule is monitored, the first setting submodule is additionally operable to and the state of bluetooth module 1 is set for after mode of operation, Judge whether to listen to the bluetooth connection event from host computer.
Specifically, in the above-mentioned bluetooth security equipment of the present embodiment, the first wake module 15, specifically for the first judge module 13 judged results are after being or after the tissue link order of the first tissue module 14, to draw high bluetooth module 1 and security module 2 The level of the second control pin of connection.
Specifically, in the above-mentioned bluetooth security equipment of the present embodiment, the first setup module 12 is waiting specifically for working as first etc. Receive to electricity on bluetooth module when module 11 receives power-on event, be high-frequency clock pattern by the clock setting of bluetooth module 1, and Hardware device to bluetooth module 1 is initialized;
Correspondingly, shutdown setup module 19, specifically for when the judged result of the first judge module 13 is no, performing pass Machine is operated;
3rd setup module 22, to security module when being waken up by bluetooth module 1 specifically for the first wait wake module 21 Upper electricity, is high-frequency clock pattern by the clock setting of security module 2, and hardware device to security module 2 is initialized.
Or, the first setup module 12 can also be specifically for receiving power-on event when the first wait receiver module 11 When, it is high-frequency clock pattern by the clock setting of bluetooth module 1 to electricity on the main core of chip of bluetooth module 1;
Correspondingly, shutdown setup module 19, specifically for when the judged result of the first judge module 13 is no, setting blue The state of tooth module 1 is deep sleep mode;
3rd setup module 22, specifically for when the first wait wake module 21 is waken up by bluetooth module 1, to safe mould Electricity on the main core of chip of the security module of block 2, is high-frequency clock pattern by the clock setting of security module 2;
Correspondingly, security module 2 also includes:
Deep sleep mode setup module, for setting safety in the 3rd setup module 22 when third module to be received 23 When the state of module 2 in the 7th Preset Time after mode of operation to be not received by link order, security module 2 is set State is deep sleep mode.
Or, the first setup module 12 can also be specifically for receiving power-on event when the first wait receiver module 11 When, it is high-frequency clock pattern by the clock setting of bluetooth module 1 to electricity on the main core of chip of the bluetooth module of bluetooth module 1;
Correspondingly, the first wake module 15, is additionally operable to, when the judged result of the first judge module 13 is no, wake up safety Module 2;
First sending module 17, is additionally operable to be no and the first wake module when the judged result of the first judge module 13 During 15 wake-up security module 2, shutdown command is sent to security module 2;
Second waits receiver module 16, the shutdown command response from security module 2 to be received such as is additionally operable to;
Shutdown setup module 19, specifically for the first sending module 17 to security module 2 send shutdown command after, second When waiting receiver module 16 to receive the shutdown command response from security module 2, the state of bluetooth module 1 is set for depth is slept Sleep mode;
3rd setup module 22, when being waken up by bluetooth module 1 specifically for the first wait wake module 21, to security module Electricity on the 2 main core of chip, is high-frequency clock pattern by the clock setting of security module 2;
4th setup module 26, is additionally operable to third module to be received 23 and connection is not received by the 7th Preset Time During instruction, the state for setting security module 2 is low-power consumption standby pattern;
Security module 2 also includes that second waits wake module, the 5th to wait receiver module and deep sleep mode to set mould Block;
Second waits wake module, and the state for setting security module 2 for the 4th setup module 26 is low-power consumption standby mould After formula, wait is waken up by bluetooth module 1;
5th waits receiver module, when being waken up by bluetooth module 1 for the second wait wake module, waits bluetooth mould to be received The shutdown command of block 1;
Second sending module 25, is additionally operable to the 5th wait receiver module when receiving the shutdown command of bluetooth module 1, Xiang Lan Tooth module 1 returns to shutdown command response;
Deep sleep mode setup module, for the second sending module 25 to bluetooth module 1 return shutdown command response it Afterwards, the state for setting security module 2 is deep sleep mode.
Alternatively, in the above-mentioned bluetooth security equipment of the present embodiment, bluetooth module 1 including first wait receiver module 11, First setup module 12, the first judge module 13, the first tissue module 14, the first wake module 15, the first sending module 17, On the basis of second-class module to be received 16, the second setup module 18 and shutdown setup module 19, also waited including the 3rd and wake up mould Block and the 6th setup module;
First sending module 17, is additionally operable to wait receiver module 16 to wake up security module in the first wake module 15 when second When being not received by the response of the link order from security module 2 within 2 the 5th Preset Time, returned to host computer and failed State;
Second setup module 18, after being additionally operable to the first sending module 17 to host computer return status of fail, sets bluetooth The state of module 1 is low-power consumption standby pattern;
3rd waits wake module, for waiting the machine that is generalized to wake up;
6th setup module, for the second setup module 18 set bluetooth module 1 state for low-power consumption standby pattern it Afterwards, when the 3rd wait wake module is generalized machine wake-up in the tenth Preset Time, the state for setting bluetooth module 1 is Working mould Formula;
First judge module 13, be additionally operable to the 3rd wait wake module be generalized in the tenth Preset Time machine wake up when, Judge whether to be monitored within the 3rd Preset Time after the state of the 6th setup module setting bluetooth module 1 is for mode of operation To the bluetooth connection event from host computer;
Shutdown setup module 19, be additionally operable to the second setup module 18 set the bluetooth module state be low-power consumption standby After pattern, when the 3rd wait wake module is not generalized machine wake-up in the tenth Preset Time, shutdown mode is set.
Specifically, second wait receiver module 16 to include reception judging submodule and judge overtime submodule;
Judging submodule is received, refers to the connection that the first tissue module 14 is organized for the first sending module 17 Order is sent to after the security module, judges whether to receive the response of link order;
Correspondingly, the first sending module 17, judges to receive the response of link order specifically for receiving judging submodule When, return to success status to host computer;
Second setup module 18, judges to receive the response of link order specifically for receiving judging submodule, and the One sending module 17 is returned after success status to host computer, and the state for setting bluetooth module 1 is low-power consumption standby pattern;
Judge overtime submodule, the judged result for receiving judging submodule is to be not received by the response of link order When, judge whether transmission link order is pre- more than the 5th to current time from the first time of the first sending module 17 to security module 2 If the time;
First sending module 17, when being additionally operable to judge overtime submodule judged result to be, failure shape is returned to host computer State;
Second setup module 18, after being additionally operable to the first sending module 17 to host computer return status of fail, sets bluetooth The state of module 1 is low-power consumption standby pattern;
6th setup module, status of fail is returned to specifically for first sending module 17 to the host computer, and Second setup module 18 sets the state of the bluetooth module for after low-power consumption standby pattern, waits and calling out when the described 3rd When module of waking up is generalized machine wake-up in the tenth Preset Time, the state for setting the bluetooth module is mode of operation
First sending module 17, when being additionally operable to judge overtime submodule judged result for no, sends to security module 2 again Link order;
Receive judging submodule, be additionally operable to the first sending module 17 again to security module 2 send link order after, sentence The disconnected response for whether receiving link order.
Alternatively, in the above-mentioned bluetooth security equipment of the present embodiment, bluetooth module 1 including first wait receiver module 11, First setup module 12, the first judge module 13, the first tissue module 14, the first wake module 15, the first sending module 17, On the basis of second-class module to be received 16, the second setup module 18 and shutdown setup module 19, also including the second wake module, the Two judge modules, the 3rd sending module and the 3rd judge module;
Second wake module, the state of bluetooth module 1 is set after mode of operation, to wake up for the first setup module 12 Security module 2;
Second judge module, for judging in the first Preset Time after the second wake module wakes up security module 2 Whether notice that security module 2 be waken up is received;
Correspondingly, shutdown setup module 19, is additionally operable to, when the judged result of the second judge module is no, set shutdown mould Formula;
3rd sending module, the judged result for the second judge module is when being, to send default logical to security module 2 Letter confirms data;
3rd judge module, for judging to send default communication acknowledgement data to security module 2 in the 3rd sending module Whether notice that security module 2 confirm communication is received within the second Preset Time afterwards;
First judge module 13, specifically for judging whether that in the judged result of the 3rd judge module be the 3rd after being The bluetooth connection event from host computer is listened within Preset Time;
Shutdown setup module 19, is additionally operable to, when the judged result of the 3rd judge module is no, set shutdown mode;
Correspondingly, security module 2 is waiting wake module 21, the 3rd setup module 22, the third to be received including first On the basis of module 23, minor microstructure module 24, the second sending module 25 and the 4th setup module 26, also waited including second and called out Awake module, the first notification module, the 5th setup module, fourth class module to be received and the second notification module;
Second waits wake module, is waken up by bluetooth module 1 for waiting;
First notification module, when being waken up by bluetooth module 1 for the second wait wake module, notifies the safety of bluetooth module 1 Module 2 is waken up;
5th setup module, when being waken up by bluetooth module 1 for the second wait wake module, sets the shape of security module 2 State is mode of operation;
Fourth class module to be received, for etc. communication acknowledgement data to be received;
Second notification module, the state for setting security module 2 for the 5th setup module is the 6 after mode of operation When fourth class module to be received receives default communication acknowledgement data in Preset Time, notify that bluetooth module 1 confirms communication;
4th setup module 26, is additionally operable to after the notice confirmation communication of bluetooth module 1 of the second notification module, sets safe mould The state of block 2 is low-power consumption standby pattern;
First waits wake module 21, notifies that bluetooth module 1 confirms communication, and the 4th specifically for the second notification module Setup module 26 sets the state of security module 2 for after low-power consumption standby pattern, wait is waken up by bluetooth module 1.
Specifically, the first judge module 13 includes monitoring judging submodule, overtime judging submodule, the first setting submodule Block;
Judging submodule is monitored, during for the 3rd judge module judged result to be, judges whether to listen to from upper The bluetooth connection event of machine;
Correspondingly, the first tissue module 14, specifically for being to listen to from upper when judging submodule judged result is monitored During the bluetooth connection event of position machine, link order is organized;
Overtime judging submodule, for being not listen to the indigo plant from host computer when judging submodule judged result is monitored During tooth connection event, judge from the 3rd judge module judged result whether to be more than the 3rd Preset Time to current time;
Shutdown setup module 19, specifically for when overtime judging submodule judged result is to be, setting shutdown mode;
Second setup module 18, is additionally operable to, when overtime judging submodule judged result is no, set the shape of bluetooth module 1 State is low-power consumption standby pattern;
First sets submodule, for when overtime judging submodule judged result for it is no when, and the second setup module 18 The state of bluetooth module 1 is set to wait the machine that is generalized to wake up after low-power consumption standby pattern, when the machine that is generalized wakes up, is set The state of bluetooth module 1 is mode of operation;
Judging submodule is monitored, the first setting submodule is additionally operable to and the state of bluetooth module 1 is set for after mode of operation, Judge whether to listen to the bluetooth connection event from host computer.
Specifically, the first setup module 12, specifically for electricity on bluetooth module 1, the clock setting by bluetooth module 1 is High-frequency clock pattern, and hardware device to bluetooth module 1 initializes;
Correspondingly, shutdown setup module 19, specifically for performing power-off operation;
5th setup module, specifically for being high-frequency clock mould by the clock setting of security module 2 to electricity in security module Formula, and hardware device to security module 2 initializes.
Or, the first setup module 12 can also be specifically on the main core of the chip of the bluetooth module to bluetooth module 1 Electricity, is high-frequency clock pattern by the clock setting of bluetooth module 1;
Correspondingly, shutdown setup module 19, the state specifically for setting bluetooth module 1 is deep sleep mode;
5th setup module, specifically for electricity on the main core of chip of the security module to security module 2, by security module 2 Clock setting be high-frequency clock pattern;
Correspondingly, security module 2 is waiting wake module, the first notification module, the 5th setup module, the 4th including second Wait on the basis of receiver module and the second notification module, also include:
Deep sleep mode setup module, for the 5th setup module set security module 2 state for mode of operation it In the 6th Preset Time afterwards, when fourth class module to be received is not received by default communication acknowledgement data, safe mould is set The state of block 2 is deep sleep mode.
Specifically, the second wake module, the state for setting bluetooth module 1 specifically for the first setup module 12 is Working mould After formula, the level of the second control pin that bluetooth module 1 is connected with security module 2 is drawn high;
Correspondingly, the first wake module 15, specifically for the judged result of the first judge module 13 for after being or first After the tissue link order of molded tissue block 14, the level of the first control pin that bluetooth module 1 is connected with security module 2 is dragged down.
Specifically, the 3rd setup module 22, specifically for when first wait wake module 21 waken up by bluetooth module 1 when, It is high-frequency clock pattern by the clock setting of security module 2.
Specifically, the second judge module, specifically for judging first after the second wake module wakes up security module 2 Whether the level of the first control pin that bluetooth module 1 is connected with security module 2 in Preset Time is low;
Correspondingly, the 3rd sending module, when the result judged specifically for the second judge module is to be, to security module 2 Send default communication acknowledgement data;
Shutdown setup module 19, the result judged specifically for the second judge module as it is no when, setting shutdown mode;
First notification module, when being waken up by bluetooth module 1 specifically for the second wait wake module, drags down security module 2 The level of the first control pin being connected with bluetooth module 1.
Specifically, the 3rd judge module, specifically for judging to send default logical to security module 2 in the 3rd sending module The level of the first control pin that bluetooth module 1 is connected with security module 2 within the second Preset Time after letter confirmation data Whether it is driven high;
Correspondingly, the first judge module 13, specifically for judging whether that in the 3rd judge module judged result be bluetooth mould The level of the first control pin that block 1 is connected with security module 2 be driven high after the 3rd Preset Time within listen to and come from The bluetooth connection event of host computer;
Shutdown setup module 19, specifically for when the 3rd judge module judged result is no, setting shutdown mode;
Second notification module, the state of security module 2 is set for after mode of operation specifically for the 5th setup module When fourth class module to be received receives default communication acknowledgement data in 6th Preset Time, security module 2 and bluetooth are drawn high The level of the first control pin of the connection of module 1.
Alternatively, in the above-mentioned bluetooth security equipment of the present embodiment, bluetooth module 1 including first wait receiver module 11, First setup module 12, the first judge module 13, the first tissue module 14, the first wake module 15, the first sending module 17, On the basis of second-class module to be received 16, second setup module 18 and shutdown setup module 19, or bluetooth module is including On the basis of second wake module, the second judge module, the 3rd sending module and the 3rd judge module, also including generation module, protect Storing module, the first receiver module and the 6th setup module;
Generation module, for generating random number;
Preserving module, the random number for preserving generation module generation;
Correspondingly, the first tissue module 14, specifically for the random number tissue link order generated according to generation module;
First receiver module, for etc. the Action Events from host computer to be received;
6th setup module, success status, and the second setup module are returned to for the first sending module 17 to host computer 18 set the state of bluetooth module 1 for after low-power consumption standby pattern, the first receiver module receives the operation from host computer During event, the state for setting bluetooth module 1 is mode of operation;
First sending module 17, is additionally operable to include random number when the Action Events that the first receiver module is received, and grasp Make random number in event it is identical with the random number that preserving module is preserved when, return to successful state response to host computer;
Second setup module 18, after being additionally operable to the first sending module 17 to the host computer successful state response of return, if The state for putting bluetooth module 1 is low-power consumption standby pattern;
Correspondingly, above-mentioned security module 2 also includes:
Display module, for obtaining random number in the link order that is received from the third module to be received 23, and show with Machine number.
In the above-mentioned bluetooth security equipment of the present embodiment, deep sleep mode setup module, specifically for by security module Electricity under the main core of chip, the independent modules in closed safe module 2 keep the wake module in security module to have an electricity, and close with The ancillary equipment of the connection of security module 2.
In the above-mentioned bluetooth security equipment of the present embodiment, setup module 19 of shutting down, specifically for by the chip master of bluetooth module Electricity under core, the independent modules closed in bluetooth module 1, keeping the wake module of bluetooth module has electricity, and closes and bluetooth module 1 The ancillary equipment of connection.
In the above-mentioned bluetooth security equipment of the present embodiment, the 4th setup module 26, specifically for the clock of security module 2 is set The independent modules in low-speed clock pattern, the ancillary equipment and security module 2 that closing is connected with security module 2 are set to, will safety The safety chip of module 2 is set to sleep pattern.
In the above-mentioned bluetooth security equipment of the present embodiment, the second setup module 18, specifically for closing and the bluetooth module The ancillary equipment of connection and/or the independent modules closed in the bluetooth module.Further, the second setup module be additionally operable to by The clock setting of the bluetooth module is low-speed clock pattern, the chip of the bluetooth module is set into sleep pattern.
The present embodiment beneficial effect compared with prior art is:Bluetooth security equipment sets up bluetooth connection mistake with host computer Cheng Zhong, the bluetooth module in bluetooth security equipment is set to low-power consumption standby pattern or shutdown immediately after having performed corresponding operating Pattern, the security module in bluetooth security equipment is set to low-power consumption standby pattern immediately after having performed corresponding operating, so may be used Effectively to save power supply, extend the standby time of bluetooth security equipment, better user experience.
More than, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (44)

1. a kind of method that bluetooth connection is set up in low-power consumption, it is characterised in that including:
The bluetooth module of bluetooth security equipment performs following steps:
Step H1:The power-on event to be received such as the bluetooth module;
Step H2:When the bluetooth module receives power-on event, the state of itself is set for mode of operation;
Step H3:The bluetooth module judges whether to listen to the bluetooth connection thing from host computer within the 3rd Preset Time Part, is then to perform step H4;Otherwise perform step H7;
Step H4:The bluetooth module tissue link order, wakes up security module;
Step H5:The link order is sent to the security module by the bluetooth module after the 4th Preset Time;
Step H6:The response of the link order to be received such as the bluetooth module, comes from when being received within the 5th Preset Time During the response of the link order of the security module, success status are returned to the host computer, the state of itself is set for low work( Consumption standby mode, is successfully established bluetooth connection;
Step H7:The bluetooth module sets shutdown mode, return to step H1;
The security module of bluetooth security equipment performs following steps:
Step S1:The security module is waited and waken up by the bluetooth module, when being waken up by the bluetooth module, sets itself State be mode of operation;
Step S2:The link order from the bluetooth module to be received such as the security module, when in the 7th Preset Time When receiving the link order, the response of link order is organized, and the response of the link order is returned into the bluetooth mould Block, sets the state of itself for low-power consumption standby pattern.
2. method according to claim 1, it is characterised in that also include:
In the step H6, the bluetooth module is not received by the company from the security module within the 5th Preset Time When connecing the response of instruction, status of fail is returned to the host computer, setting oneself state is low-power consumption standby pattern, performs step H8;
Step H8:If the bluetooth module is generalized machine wake-up in the tenth Preset Time, setting oneself state is work Pattern, return to step H3;If machine wake-up is not generalized in the tenth Preset Time, the step H7 is performed.
3. method according to claim 1, it is characterised in that after the step H2, before the step H3, also wrap Include:
Step H01:The bluetooth module wakes up the security module, judges whether the safety is received in the first Preset Time The notice that module is waken up, is then to perform step H02;Otherwise perform the step H7;
Step H02:The bluetooth module sends default communication acknowledgement data to the security module;
Step H03:The bluetooth module judges that whether the security module is received within the second Preset Time confirms communication Notify, be to perform the step H3;Otherwise perform the step H7;
Before the step S1, also include:
Step S01:When the security module is waken up by the bluetooth module, notify that the bluetooth module is waken up itself, set The state of itself is mode of operation;
Step S02:The communication acknowledgement data to be received such as the security module, after the state of itself being set and is mode of operation When receiving the default communication acknowledgement data in the 6th Preset Time, notify that the bluetooth module confirms communication, set certainly The state of body is low-power consumption standby pattern, performs the step S1.
4. method according to claim 3, it is characterised in that in the step H2, the bluetooth module sets itself State is mode of operation, specially:Electricity on the bluetooth module, is high-frequency clock pattern by the clock setting of itself, and to certainly The hardware device of body is initialized;
In the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module performs power-off operation;
In the step S01, the security module sets the state of itself for mode of operation, specially:In the security module Electricity, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized.
5. method according to claim 3, it is characterised in that in the step H2, the bluetooth module sets itself State is mode of operation, specially:The clock setting of itself, to electricity on the main core of chip of itself, is high speed by the bluetooth module Clock module;
In the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module sets the state of itself Deep sleep mode;
In the step S01, it is mode of operation that the security module sets oneself state, specially:The security module is to certainly Electricity on the main core of chip of body, is high-frequency clock pattern by the clock setting of itself;
In the step S02, also include:The security module is when the 6th after setting oneself state and being mode of operation is default It is interior when being not received by the default communication acknowledgement data, the state of itself is set for deep sleep mode.
6. method according to claim 3, it is characterised in that in the step H01, the bluetooth module wakes up the peace Full module, specially:The bluetooth module draws high the level of the second control pin being connected with the security module;
In the step H4, the bluetooth module wakes up the security module, specially:The bluetooth module is dragged down and the peace The level of the first control pin of full module connection.
7. method according to claim 3, it is characterised in that in the step S1, the security module sets itself State is mode of operation, specially:The clock setting of itself is high-frequency clock pattern by the security module.
8. method according to claim 3, it is characterised in that in the step H01, the bluetooth module is judged first Whether the notice that the security module is waken up is received in Preset Time, specially:
The bluetooth module judges that the level of the be connected with the security module in the first Preset Time first control pin is It is no for low, be then to perform step H02;Otherwise perform the step H7;
In the step S01, the security module notifies that the bluetooth module is waken up itself, specially:
The security module drags down the level of the first control pin being connected with the bluetooth module.
9. method according to claim 3, it is characterised in that the step H03 is specially:The bluetooth module judges Whether the level of the first control pin being connected with the security module within the second Preset Time is driven high, and is that then execution is described Step H3;Otherwise perform the step H7;
In the step S02, the security module notifies that the bluetooth module confirms communication, specially:The security module is drawn The level of the first control pin being connected with the bluetooth module high.
10. the method according to claim 1 or 3, it is characterised in that in the step H4, the bluetooth module tissue connects Before connecing instruction, also include:The bluetooth module generates random number, and the random number is preserved;
The bluetooth module tissue link order, specially:The bluetooth module is connected according to the random number tissue and referred to Order;
In the step H6, the bluetooth module returns to success status to the host computer, sets oneself state for low-power consumption is treated After machine pattern, be successfully established bluetooth connection before, also include:
The bluetooth module receives the Action Events from the host computer, the state of itself is set for mode of operation, when described When Action Events include that the random number in random number, and the Action Events is identical with the random number that itself is preserved, to institute State host computer and return to successful state response, the state of itself is set for low-power consumption standby pattern, be successfully established bluetooth connection;
When security module receives the link order in the 7th Preset Time described in the step S2, also include:It is described Security module obtains the random number from the link order, and shows the random number.
11. methods according to claim 1, it is characterised in that in the step H4, the bluetooth module wakes up the peace Full module, specially:The bluetooth module draws high the level of the second control pin being connected with the security module.
12. methods according to claim 1, it is characterised in that in the step H2, the bluetooth module sets itself State is mode of operation, specially:Electricity on the bluetooth module, is high-frequency clock pattern by the clock setting of itself, and to certainly The hardware device of body is initialized;
In the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module performs power-off operation;
In the step S1, the security module sets the state of itself for mode of operation, specially:In the security module Electricity, is high-frequency clock pattern by the clock setting of itself, and the hardware device of itself is initialized.
13. methods according to claim 1, it is characterised in that in step H2, the bluetooth module sets the state of itself It is mode of operation, specially:The clock setting of itself, to electricity on the main core of chip of itself, is high-frequency clock by the bluetooth module Pattern;
In the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module sets the state of itself Deep sleep mode;
In the step S1, the security module sets the state of itself for mode of operation, specially:The security module is to certainly Electricity on the main core of chip of body, is high-frequency clock pattern by the clock setting of itself;
In the step S2, also include:When the security module is not received by the link order in the 7th Preset Time, The setting state of itself is deep sleep mode.
14. methods according to claim 1, it is characterised in that in the step H2, the bluetooth module sets itself State is mode of operation, specially:The clock setting of itself, to electricity on the main core of chip of itself, is high speed by the bluetooth module Clock module;
In the step H7, the bluetooth module sets shutdown mode, specially:The bluetooth module wakes up the safe mould Block, shutdown command is sent to the security module, when receiving the shutdown command response from the security module, sets itself State be deep sleep mode;
In the step S1, the security module sets the state of itself for mode of operation, specially:The security module is to certainly Electricity on the main core of chip of body, is high-frequency clock pattern by the clock setting of itself;
In the step S2, also include:When the security module is not received by the link order in the 7th Preset Time, The setting state of itself is low-power consumption standby pattern;
After the step S2, also include:The security module is waken up by the bluetooth module, receives the bluetooth module During shutdown command, the shutdown command response is returned to the bluetooth module, the state of itself is set for deep sleep mode.
15. method according to any one claim in claim 5,13,14, it is characterised in that the safe mould Block sets the state of itself for deep sleep mode, specially:The security module closes certainly electricity under the main core of the chip of itself The independent modules of body, keep the wake module of itself to have electricity, and close the ancillary equipment being connected with itself.
16. method according to any one claim in claim 5,13,14, it is characterised in that the bluetooth mould Block sets the state of itself for deep sleep mode, specially:The bluetooth module closes certainly electricity under the main core of the chip of itself The independent modules of body, keep the wake module of itself to have electricity, and close the ancillary equipment being connected with itself.
17. methods according to claim 1, it is characterised in that the step H3 is specifically included:
Step H31:The bluetooth module judges whether to listen to the bluetooth connection event from the host computer, is then to perform step Rapid H4, otherwise performs step H32;
Step H32:The bluetooth module judge from receive power-on event to current time whether exceed the described 3rd it is default when Between, it is then to perform step H7, otherwise perform step H33;
Step H33:The bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, sets certainly The state of body is mode of operation, return to step H31.
18. methods according to claim 3, it is characterised in that the step H3 is specifically included:
Step H31:The bluetooth module judges whether to listen to the bluetooth connection event from the host computer, is then to perform step Rapid H4, otherwise performs step H32;
Step H32:The bluetooth module judges No is then to perform step H7 more than the 3rd Preset Time, otherwise performs step H33;
Step H33:The bluetooth module sets the state of itself for low-power consumption standby pattern, when being generalized machine wake-up, sets certainly The state of body is mode of operation, return to step H31.
19. methods according to claim 2, it is characterised in that the step H6 is specifically included:
Step H61:The bluetooth module judges whether to receive the response of link order, is then to be returned successfully to the host computer State, sets the state of itself for low-power consumption standby pattern;Otherwise perform step H62;
Step H62:The bluetooth module judges to send the link order to current time from first time to the security module Whether exceed the 5th Preset Time, be then to return to status of fail to the host computer, the state of itself is set for low-power consumption Standby mode, performs step H8;Otherwise perform step H63;
Step H63:The bluetooth module sends the link order, return to step H61 to the security module again.
20. method according to any one claim in claim 1,3,14, it is characterised in that the security module The setting state of itself is low-power consumption standby pattern, is specifically included:
Step a1:The security module by the clock setting of itself be low-speed clock pattern, close itself independent modules and The ancillary equipment being connected with itself;
Step a2:The chip of itself is set to sleep pattern by the security module.
21. method according to any one claim in claim 1,17,18,19, it is characterised in that the bluetooth Module sets the state of itself for low-power consumption standby pattern, specially:The bluetooth module is closed the periphery being connected with itself and is set It is standby and/or close the independent modules of itself.
22. methods according to claim 21, it is characterised in that the bluetooth module sets the state of itself for low-power consumption During standby mode, also include:The clock setting of itself is low-speed clock pattern by the bluetooth module, and the chip of itself is set It is sleep pattern.
A kind of 23. bluetooth security equipment, including bluetooth module and security module, it is characterised in that
The bluetooth module includes:
First wait receiver module, for etc. power-on event to be received;
First setup module, for when the described first wait receiver module receives power-on event, setting the bluetooth module State be mode of operation;
First judge module, the state for judging whether to set the bluetooth module in first setup module is Working mould The bluetooth connection event from host computer is listened within the 3rd Preset Time after formula;
The first tissue module, for when the first judge module judged result is to be, organizing link order;
First wake module, is after being or the first tissue modular organisation for the first judge module judged result After the link order, the security module is waken up;
First sending module, after waking up the 4th Preset Time of the security module for first wake module, by institute The link order for stating the first tissue modular organisation is sent to the security module;
Second wait receiver module, for etc. link order to be received response;
First sending module, is additionally operable to wait receiver module to wake up the peace in first wake module when described second When receiving the response of the link order from the security module within the 5th Preset Time of full module, to the host computer Return to success status;
Second setup module, after returning to success status to the host computer for first sending module, sets the indigo plant The state of tooth module is low-power consumption standby pattern;
Shutdown setup module, for when the first judge module judged result is no, setting shutdown mode;
Described first waits receiver module, is additionally operable to after the shutdown setup module sets shutdown mode, waits to be received opening Machine event;
The security module includes:
First waits wake module, is waken up by the bluetooth module for waiting;
3rd setup module, for when the described first wait wake module is waken up by the bluetooth module, setting the safety The state of module is mode of operation;
Third module to be received, for etc. the link order from the bluetooth module to be received;
Minor microstructure module, for setting the security module in the 3rd setup module when the third module to be received State to receive the link order in the 7th Preset Time after mode of operation when, organize the response of link order;
Second sending module, for the response of the link order of the minor microstructure modular organisation to be returned into the bluetooth mould Block;
4th setup module, for second sending module by the response of the link order return the bluetooth module it Afterwards, the state for setting the security module is low-power consumption standby pattern.
24. bluetooth security equipment according to claim 23, it is characterised in that the bluetooth module also includes that the 3rd waits Wake module and the 6th setup module;
First sending module, is additionally operable to wait receiver module to wake up the peace in first wake module when described second When being not received by the response of the link order from the security module within the 5th Preset Time of full module, on described Position machine returns to status of fail;
Second setup module, after being additionally operable to first sending module to host computer return status of fail, is set The state of the bluetooth module is low-power consumption standby pattern;
Described 3rd waits wake module, for waiting the machine that is generalized to wake up;
6th setup module, the state for setting the bluetooth module for second setup module is low-power consumption standby mould After formula, when the 3rd wait wake module is generalized machine wake-up in the tenth Preset Time, the bluetooth module is set State is mode of operation;
First judge module, be additionally operable to it is described 3rd wait wake module be generalized machine wake up when, judge whether described The state that 6th setup module sets the bluetooth module comes to be listened within the 3rd Preset Time after mode of operation The bluetooth connection event of host computer;
The shutdown setup module, the state for being additionally operable to the second setup module setting bluetooth module is low-power consumption standby After pattern, when the 3rd wait wake module is not generalized machine wake-up in the tenth Preset Time, shutdown mode is set.
25. bluetooth security equipment according to claim 23, it is characterised in that the bluetooth module also includes that second wakes up Module, the second judge module, the 3rd sending module and the 3rd judge module;
Second wake module, for first setup module set the state of the bluetooth module for mode of operation it Afterwards, the security module is waken up;
Second judge module, for judging that after second wake module wakes up the security module first presets Whether the notice that the security module is waken up is received in time;
The shutdown setup module, is additionally operable to, when the judged result of second judge module is no, set shutdown mode;
3rd sending module, the judged result for second judge module is when being, to be sent to the security module Default communication acknowledgement data;
3rd judge module, for judging to send default communication really to the security module in the 3rd sending module Whether notice that the security module confirm communication is received within the second Preset Time recognized after data;
First judge module, specifically for judging whether that in the judged result of the 3rd judge module be after being The bluetooth connection event from host computer is listened within three Preset Times;
The shutdown setup module, is additionally operable to, when the judged result of the 3rd judge module is no, set shutdown mode;
The security module also includes that second waits wake module, the first notification module, the 5th setup module, the fourth class to be received Module and the second notification module;
Described second waits wake module, is waken up by the bluetooth module for waiting;
First notification module, when being waken up by the bluetooth module for the described second wait wake module, notifies the indigo plant Security module described in tooth module is waken up;
5th setup module, when being waken up by the bluetooth module for the described second wait wake module, sets the peace The state of full module is mode of operation;
The fourth class module to be received, for etc. communication acknowledgement data to be received;
Second notification module, the state of the security module is set for after mode of operation for the 5th setup module The 6th Preset Time in the fourth class module to be received when receiving the default communication acknowledgement data, notify the indigo plant Tooth module confirms communication;
4th setup module, is additionally operable to after second notification module notifies that the bluetooth module confirms communication, sets The state of the security module is low-power consumption standby pattern;
Described first waits wake module, notifies that the bluetooth module confirms communication specifically for second notification module, and And the 4th setup module sets the state of the security module after low-power consumption standby pattern, to wait by the bluetooth mould Block wakes up.
26. bluetooth security equipment according to claim 25, it is characterised in that first setup module, specifically for It is high-frequency clock pattern by the clock setting of the bluetooth module to electricity on the bluetooth module, and to the bluetooth module Hardware device is initialized;
The shutdown setup module, specifically for performing power-off operation;
5th setup module, specifically for being height by the clock setting of the security module to electricity in the security module Fast clock module, and hardware device to the security module initializes.
27. bluetooth security equipment according to claim 25, it is characterised in that first setup module, specifically for It is high-frequency clock pattern by the clock setting of the bluetooth module to electricity on the main core of chip of the bluetooth module;
The shutdown setup module, the state specifically for setting the bluetooth module is deep sleep mode;
5th setup module, specifically on the main core of chip to the security module electricity, by the security module when Clock is set to high-frequency clock pattern;
The security module also includes:
Deep sleep mode setup module, the state for setting the security module for the 5th setup module is mode of operation In the 6th Preset Time afterwards, when the fourth class module to be received is not received by the default communication acknowledgement data, The state for setting the security module is deep sleep mode.
28. bluetooth security equipment according to claim 25, it is characterised in that second wake module, specifically for First setup module sets the state of the bluetooth module after mode of operation, to draw high the bluetooth module with the peace The level of the second control pin of full module connection;
First wake module, is after being or the first tissue specifically for the first judge module judged result After link order described in modular organisation, the electricity of the first control pin that the bluetooth module is connected with the security module is dragged down It is flat.
29. bluetooth security equipment according to claim 25, it is characterised in that the 3rd setup module, specifically for It is high-frequency clock by the clock setting of the security module when the described first wait wake module is waken up by the bluetooth module Pattern.
30. bluetooth security equipment according to claim 25, it is characterised in that
Second judge module, specifically for judging first after second wake module wakes up the security module Whether the level of the first control pin that the bluetooth module is connected with the security module in Preset Time is low;
3rd sending module, when the result judged specifically for second judge module is to be, to the security module Send default communication acknowledgement data;
The shutdown setup module, the result judged specifically for second judge module as it is no when, shutdown mode is set;
First notification module, when being waken up by the bluetooth module specifically for the described second wait wake module, drags down institute State the level of the first control pin that security module is connected with the bluetooth module.
31. bluetooth security equipment according to claim 25, it is characterised in that the 3rd judge module, specifically for Judge the second Preset Time after the 3rd sending module sends default communication acknowledgement data to the security module Within the bluetooth module be connected with the security module first control pin level whether be driven high;
First judge module, specifically for judging whether that in the 3rd judge module judged result be the bluetooth module The level of the first control pin being connected with the security module be driven high after the 3rd Preset Time within listen to and come from The bluetooth connection event of host computer;
The shutdown setup module, specifically for when the 3rd judge module judged result is no, setting shutdown mode;
Second notification module, the state for setting the security module specifically for the 5th setup module is mode of operation When the fourth class module to be received receives the default communication acknowledgement data in the 6th Preset Time afterwards, institute is drawn high State the level of the first control pin that security module is connected with the bluetooth module.
The 32. bluetooth security equipment according to claim 23 or 25, it is characterised in that the bluetooth module also includes generation Module, preserving module, the first receiver module and the 6th setup module;
The generation module, for generating random number;
The preserving module, the random number for preserving the generation module generation;
The first tissue module, refers to specifically for being connected according to the random number tissue that the generation module is generated Order;
First receiver module, for etc. the Action Events from the host computer to be received;
6th setup module, success status, and described the are returned to for first sending module to the host computer Two setup modules set the state of the bluetooth module for after low-power consumption standby pattern, first receiver module is received and From the Action Events of the host computer when, the state for setting the bluetooth module is mode of operation;
First sending module, is additionally operable to include random number when the Action Events that first receiver module is received, And when the random number in the Action Events is identical with the random number that the preserving module is preserved, returned into the host computer The state response of work(;
Second setup module, be additionally operable to first sending module to the host computer return successful state response it Afterwards, the state for setting the bluetooth module is low-power consumption standby pattern;
The security module also includes:
Display module, for obtaining the random number from the link order of the third module reception to be received, and Show the random number.
33. bluetooth security equipment according to claim 23, it is characterised in that first wake module, specifically for The first judge module judged result is after being or after link order described in the first tissue modular organisation, to draw high The level of the second control pin that the bluetooth module is connected with the security module.
34. bluetooth security equipment according to claim 23, it is characterised in that first setup module, specifically for When the described first wait receiver module receives power-on event to electricity on the bluetooth module, by the clock of the bluetooth module It is set to high-frequency clock pattern, and hardware device to the bluetooth module is initialized;
The shutdown setup module, specifically for when the judged result of first judge module is no, performing power-off operation;
3rd setup module, to the peace when being waken up by the bluetooth module specifically for the described first wait wake module Electricity in full module, is high-frequency clock pattern by the clock setting of the security module, and to the hardware device of the security module Initialized.
35. bluetooth security equipment according to claim 23, it is characterised in that first setup module, specifically for When the described first wait receiver module receives power-on event, to electricity on the main core of chip of the bluetooth module, by the indigo plant The clock setting of tooth module is high-frequency clock pattern;
The shutdown setup module, specifically for when the judged result of first judge module is no, setting the bluetooth The state of module is deep sleep mode;
3rd setup module, specifically for when the described first wait wake module is waken up by the bluetooth module, to institute Electricity on the main core of chip of security module is stated, is high-frequency clock pattern by the clock setting of the security module;
The security module also includes:
Deep sleep mode setup module, for setting described in the 3rd setup module when the third module to be received When the state of security module in the 7th Preset Time after mode of operation to be not received by the link order, set described The state of security module is deep sleep mode.
36. bluetooth security equipment according to claim 23, it is characterised in that first setup module, specifically for When the described first wait receiver module receives power-on event, to electricity on the main core of chip of the bluetooth module, by the indigo plant The clock setting of tooth module is high-frequency clock pattern;
First wake module, is additionally operable to, when the judged result of first judge module is no, wake up the safe mould Block;
First sending module, is additionally operable to be no when the judged result of first judge module and described first wakes up Described in data bits during security module, shutdown command is sent to the security module;
Described second waits receiver module, the shutdown command response from the security module to be received such as is additionally operable to;
The shutdown setup module, specifically for first sending module to the security module send shutdown command after, When the second wait receiver module receives the shutdown command response from the security module, the bluetooth module is set State is deep sleep mode;
3rd setup module, when being waken up by the bluetooth module specifically for the described first wait wake module, to described Electricity on the main core of chip of security module, is high-frequency clock pattern by the clock setting of the security module;
4th setup module, be additionally operable to the third module to be received be not received by the 7th Preset Time it is described During link order, the state for setting the security module is low-power consumption standby pattern;
The security module also includes that second waits wake module, the 5th to wait receiver module and deep sleep mode to set mould Block;
Described second waits wake module, and the state of the security module is set for low-power consumption is treated for the 4th setup module After machine pattern, wait is waken up by the bluetooth module;
Described 5th waits receiver module, when being waken up by the bluetooth module for the described second wait wake module, waits waiting Receive the shutdown command of the bluetooth module;
Second sending module, is additionally operable to the shutdown command that the 5th wait receiver module receives the bluetooth module When, return to the shutdown command response to the bluetooth module;
The deep sleep mode setup module, returns to the shutdown and refers to for second sending module to the bluetooth module Make after response, the state for setting the security module is deep sleep mode.
The 37. bluetooth security equipment according to any one claim in claim 27,35,36, it is characterised in that institute Deep sleep mode setup module is stated, specifically for by electricity under the main core of the chip of the security module, closing the security module In independent modules, keep the wake module in the security module to have electricity, and close the periphery being connected with the security module Equipment.
The 38. bluetooth security equipment according to any one claim in claim 27,35,36, it is characterised in that institute Shutdown setup module is stated, specifically for by electricity under the main core of the chip of the bluetooth module, closing unrelated in the bluetooth module Module, keeps the wake module in the bluetooth module to have electricity, and close the ancillary equipment being connected with the bluetooth module.
39. bluetooth security equipment according to claim 23, it is characterised in that first judge module is sentenced including monitoring Disconnected submodule, overtime judging submodule, first set submodule;
The monitoring judging submodule, the state for setting the bluetooth module when first setup module is mode of operation Afterwards, judge whether to listen to the bluetooth connection event from the host computer;
The first tissue module, specifically for being to listen to from described upper when the monitoring judging submodule judged result During the bluetooth connection event of machine, link order is organized;
The overtime judging submodule, for being not listen to from described when the monitoring judging submodule judged result During the bluetooth connection event of position machine, judge from the state of first setup module setting bluetooth module as mode of operation to Whether current time is more than the 3rd Preset Time;
The shutdown setup module, specifically for when the overtime judging submodule judged result is to be, setting shutdown mode;
Second setup module, is additionally operable to, when the overtime judging submodule judged result is no, set the bluetooth mould The state of block is low-power consumption standby pattern;
Described first sets submodule, for when the overtime judging submodule judged result for it is no when, and described second set Put module and the state of the bluetooth module is set to wait the machine that is generalized to wake up after low-power consumption standby pattern, when the bluetooth mould When block is generalized machine wake-up, the state for setting the bluetooth module is mode of operation;
The monitoring judging submodule, it is Working mould to be additionally operable to the described first state for setting the submodule setting bluetooth module After formula, judge whether to listen to the bluetooth connection event from the host computer.
40. bluetooth security equipment according to claim 25, it is characterised in that first judge module is sentenced including monitoring Disconnected submodule, overtime judging submodule, first set submodule;
The monitoring judging submodule, during for the 3rd judge module judged result to be, judges whether to listen to and comes from The bluetooth connection event of the host computer;
The first tissue module, specifically for being to listen to from described upper when the monitoring judging submodule judged result During the bluetooth connection event of machine, link order is organized;
Overtime judging submodule, for being not listen to from the host computer when the monitoring judging submodule judged result Bluetooth connection event when, judge from the 3rd judge module judged result to be whether default more than the 3rd to current time Time;
The shutdown setup module, specifically for when the overtime judging submodule judged result is to be, setting shutdown mode;
Second setup module, is additionally operable to, when the overtime judging submodule judged result is no, set the bluetooth mould The state of block is low-power consumption standby pattern;
Described first sets submodule, for when the overtime judging submodule judged result for it is no when, and described second set Put module and the state of the bluetooth module is set to wait the machine that is generalized to wake up after low-power consumption standby pattern, when the machine of being generalized is called out When waking up, the state for setting the bluetooth module is mode of operation;
The monitoring judging submodule, it is Working mould to be additionally operable to the described first state for setting the submodule setting bluetooth module After formula, judge whether to listen to the bluetooth connection event from host computer.
41. bluetooth security equipment according to claim 24, it is characterised in that the second wait receiver module includes connecing Receive judging submodule and judge overtime submodule;
The reception judging submodule, refers to the connection of the first tissue modular organisation for first sending module Order is sent to after the security module, judges whether to receive the response of link order;
First sending module, when judging to receive the response of link order specifically for the reception judging submodule, to The host computer returns to success status;
Second setup module, judges to receive the response of link order specifically for the reception judging submodule, and First sending module is returned after success status to the host computer, sets the state of the bluetooth module for low-power consumption is treated Machine pattern;
Described to judge overtime submodule, the judged result for the reception judging submodule is to be not received by link order During response, judge to send whether link order surpasses to current time to the security module for the first time from first sending module Cross the 5th Preset Time;
First sending module, be additionally operable to it is described when judging overtime submodule judged result for being, to host computer return Status of fail;
Second setup module, after being additionally operable to first sending module to host computer return status of fail, is set The state of the bluetooth module is low-power consumption standby pattern;
6th setup module, status of fail, and institute are returned to specifically for first sending module to the host computer State the second setup module and the state of the bluetooth module is set for after low-power consumption standby pattern, wait and wake up mould when the described 3rd When block is generalized machine wake-up in the tenth Preset Time, the state for setting the bluetooth module is mode of operation;
First sending module, be additionally operable to it is described when judging overtime submodule judged result for no, again to the safe mould Block sends the link order;
The reception judging submodule, is additionally operable to first sending module and refers to the security module transmission connection again After order, judge whether to receive the response of link order.
The 42. bluetooth security equipment according to any one claim in claim 23,25,36, it is characterised in that institute The 4th setup module is stated, specifically for being low-speed clock pattern by the clock setting of the security module, closing and the safety Independent modules in the ancillary equipment and the security module of module connection, mould of sleeping is set to by the chip of the security module Formula.
The 43. bluetooth security equipment according to any one claim in claim 23,39,40,41, its feature exists In second setup module, specifically for closing the ancillary equipment and/or the closing bluetooth that are connected with the bluetooth module Independent modules in module.
44. bluetooth security equipment according to claim 43, it is characterised in that second setup module is additionally operable to institute The clock setting for stating bluetooth module is low-speed clock pattern, the chip of the bluetooth module is set into sleep pattern.
CN201710113984.8A 2017-02-28 2017-02-28 The method of bluetooth connection and bluetooth security equipment are established in a kind of low-power consumption Active CN106900040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113984.8A CN106900040B (en) 2017-02-28 2017-02-28 The method of bluetooth connection and bluetooth security equipment are established in a kind of low-power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113984.8A CN106900040B (en) 2017-02-28 2017-02-28 The method of bluetooth connection and bluetooth security equipment are established in a kind of low-power consumption

Publications (2)

Publication Number Publication Date
CN106900040A true CN106900040A (en) 2017-06-27
CN106900040B CN106900040B (en) 2018-06-01

Family

ID=59185726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113984.8A Active CN106900040B (en) 2017-02-28 2017-02-28 The method of bluetooth connection and bluetooth security equipment are established in a kind of low-power consumption

Country Status (1)

Country Link
CN (1) CN106900040B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024239A (en) * 2017-11-29 2018-05-11 深圳创维数字技术有限公司 Remote terminal and its control method, computer-readable recording medium
CN109164926A (en) * 2018-08-01 2019-01-08 广州视源电子科技股份有限公司 Time writer control method, system, readable storage medium storing program for executing and time writer
CN109462686A (en) * 2018-06-25 2019-03-12 浙江苏泊尔家电制造有限公司 For the method for culinary art, cooking apparatus and computer storage medium
CN111510899A (en) * 2020-04-17 2020-08-07 昆腾微电子股份有限公司 Bluetooth transmission method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080003978A1 (en) * 2006-06-29 2008-01-03 Sengupta Uttam K Method, system, and apparatus for improved bluetooth security during the pairing process
EP2713662A2 (en) * 2012-09-28 2014-04-02 Samsung Electronics Co., Ltd Low energy short range communication function operation method and apparatus of mobile terminal
CN203611928U (en) * 2013-10-28 2014-05-28 广东铁将军防盗设备有限公司 Engine lock host machine and engine lock
CN104102863A (en) * 2014-07-24 2014-10-15 北京握奇智能科技有限公司 Identity authentication equipment and control method thereof
CN104507037A (en) * 2014-12-12 2015-04-08 飞天诚信科技股份有限公司 Method for realizing Bluetooth binding of intelligent encrypting device and mobile equipment
CN105708059A (en) * 2016-04-21 2016-06-29 张胜国 Intelligent awaking bracelet for deaf and dumb
CN205721948U (en) * 2016-05-06 2016-11-23 深圳市文鼎创数据科技有限公司 The electric power management circuit of a kind of safety chip, bluetooth security transaction system and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080003978A1 (en) * 2006-06-29 2008-01-03 Sengupta Uttam K Method, system, and apparatus for improved bluetooth security during the pairing process
EP2713662A2 (en) * 2012-09-28 2014-04-02 Samsung Electronics Co., Ltd Low energy short range communication function operation method and apparatus of mobile terminal
CN203611928U (en) * 2013-10-28 2014-05-28 广东铁将军防盗设备有限公司 Engine lock host machine and engine lock
CN104102863A (en) * 2014-07-24 2014-10-15 北京握奇智能科技有限公司 Identity authentication equipment and control method thereof
CN104507037A (en) * 2014-12-12 2015-04-08 飞天诚信科技股份有限公司 Method for realizing Bluetooth binding of intelligent encrypting device and mobile equipment
CN105708059A (en) * 2016-04-21 2016-06-29 张胜国 Intelligent awaking bracelet for deaf and dumb
CN205721948U (en) * 2016-05-06 2016-11-23 深圳市文鼎创数据科技有限公司 The electric power management circuit of a kind of safety chip, bluetooth security transaction system and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024239A (en) * 2017-11-29 2018-05-11 深圳创维数字技术有限公司 Remote terminal and its control method, computer-readable recording medium
CN109462686A (en) * 2018-06-25 2019-03-12 浙江苏泊尔家电制造有限公司 For the method for culinary art, cooking apparatus and computer storage medium
CN109164926A (en) * 2018-08-01 2019-01-08 广州视源电子科技股份有限公司 Time writer control method, system, readable storage medium storing program for executing and time writer
CN111510899A (en) * 2020-04-17 2020-08-07 昆腾微电子股份有限公司 Bluetooth transmission method and device
CN111510899B (en) * 2020-04-17 2023-03-31 昆腾微电子股份有限公司 Bluetooth transmission method and device

Also Published As

Publication number Publication date
CN106900040B (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN106793044B (en) It is a kind of to realize the method for bluetooth security equipment low-power consumption standby and bluetooth security equipment
CN106900040B (en) The method of bluetooth connection and bluetooth security equipment are established in a kind of low-power consumption
CN105516901B (en) A kind of bluetooth low energy device and its working method
CN106792127A (en) Network wake-up method and device, wake-up terminal and television set
CN108024239A (en) Remote terminal and its control method, computer-readable recording medium
CN104853025B (en) A kind of control method and device of mobile terminal
CN103415824B (en) Method and apparatus for controlling CPU
CN108196665A (en) A kind of data processing method and device
CN206181163U (en) Cell -phone with record is stolen to physics anti -eavesdrop
CN103888556B (en) A kind of control method of domestic terminal apparatus and domestic terminal apparatus
CN107734374A (en) Power-economizing method, device and the storage medium of remote control
CN201699815U (en) Television set-top box
CN218595953U (en) Remote controller for crane
CN206301168U (en) Active/standby devices one-key start device
CN205726247U (en) A kind of bluetooth earphone convenient to operate
CN206922634U (en) Power supply changeover device and the electrical equipment suitable for the power supply changeover device
CN109039777A (en) A kind of wifi equipment and its match network method
CN107528880A (en) A kind of long-range control method and electronic equipment
CN211123972U (en) Energy efficiency communication and energy-saving control terminal based on 4G and carrier wave
CN107770811A (en) A kind of data processing method, mobile terminal and computer-readable recording medium
CN106681473A (en) Mobile terminal shutdown method and mobile terminal
CN209992844U (en) Low-power-consumption express cabinet access control system
CN106602314A (en) Buttonless alarm and power-cut power strip based on GPRS/GSM
CN208400301U (en) A kind of zero-power remote controler
CN206930998U (en) Portable mobile termianl

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
OL01 Intention to license declared
OL01 Intention to license declared