CN103684785A - Dynamic token with key protection function and working method thereof - Google Patents

Dynamic token with key protection function and working method thereof Download PDF

Info

Publication number
CN103684785A
CN103684785A CN201310658897.2A CN201310658897A CN103684785A CN 103684785 A CN103684785 A CN 103684785A CN 201310658897 A CN201310658897 A CN 201310658897A CN 103684785 A CN103684785 A CN 103684785A
Authority
CN
China
Prior art keywords
pin
button
input pin
unit
pressed
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
CN201310658897.2A
Other languages
Chinese (zh)
Other versions
CN103684785B (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 CN201310658897.2A priority Critical patent/CN103684785B/en
Publication of CN103684785A publication Critical patent/CN103684785A/en
Application granted granted Critical
Publication of CN103684785B publication Critical patent/CN103684785B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a dynamic token with the key protection function and a working method of the dynamic token and belongs to the technical field of keys. The dynamic token comprises a master control module, a key module, a key forbidden timing module and a key abnormity timing module, wherein the master control module comprises a clock unit, a timing interrupt unit, an input interrupt unit and an input/output unit. The working method includes the steps that when the dynamic token detects that input interrupt happens to the input interrupt unit, the dynamic token is awakened, and input awakening identification is set; when the dynamic token detects that timing interrupt happens to the timing interrupt unit, the dynamic token is awakened, and timing awakening identification is set; if key awakening identification is set, key operation is executed, and if the timing awakening identification is set, the key protection procedure is executed. Through the technical scheme, power consumption caused by abnormal key operation on the dynamic token can be reduced, and the service life of the dynamic token is prolonged.

Description

A kind of dynamic token and method of work thereof with massage protection function
Technical field
The present invention relates to button technical field, relate in particular to a kind of dynamic token and method of work thereof with massage protection function.
Background technology
Dynamic token is for generating the terminal of dynamic password, and dynamic password can be for confirming user's legal identity, thereby user, on the basis with legal identity login, ensure the fail safe of customer service access.Dynamic password authentication technology is considered to the most effectively to solve at present one of method that user authenticates, thus be widely used in bank, security, third party pays and the various information system scene such as large enterprises inside in.
Prevailing along with electronic product, the power problems of button also becomes more and more manufacturers and falls over each other the topic of paying close attention to, and the length of electronic product service time has directly affected the performance of electronic product and electronic product in user's image in the heart.
In life; often can run into suchlike situation: when user puts together electronic product and hard thing (as key etc.); can cause electronic product key pressed by hard thing and produce unnecessary button power consumption; especially for some to the exigent product of battery power consumption (as dynamic token etc.), this phenomenon has had a strong impact on the useful life of electronic product.For these reasons, inventor has solved the problem of the power consumption causing because of improper button.
Summary of the invention
The object of the invention is in order to solve problems of the prior art, a kind of dynamic token and method of work thereof with massage protection function is provided.
The technical solution used in the present invention is: a kind of dynamic token with massage protection function, comprising: main control module, key-press module, button forbidding timing module and the abnormal timing module of button; Wherein, described main control module comprises clock unit, Interruption unit, input interrupt location and I/O unit;
Described main control module: be connected with described I/O unit, for controlling described I/O unit output level; Be connected with described input interrupt location, while there is default variation for the incoming level at described I/O unit, control described input interrupt location generation input and interrupt; Be connected with described Interruption unit with described clock unit, under the triggering of described clock unit, control described Interruption unit and produce Interruption;
Described clock unit: be connected with described Interruption unit with described main control module, be used to described main control module and described Interruption unit that reliable clock source is provided;
Described Interruption unit: be connected with described main control module with described clock unit, under the triggering of described clock unit, self-timing when reaching Preset Time, produces Interruption under described master control module controls;
Described input interrupt location: be connected with described main control module with described I/O unit, for when described I/O unit incoming level produces default variation, under the control of described main control module, produce input and interrupt;
Described I/O unit: be connected with described input interrupt location, for passing through output pin output level and receiving incoming level by input pin, when the incoming level receiving by described input pin produces default variation, under the control of described main control module, described input interrupt location produces input and interrupts; Be connected with described key-press module, know the state that in described key-press module, button is pressed or do not pressed;
Described key-press module: be connected with described I/O unit, for the state that is pressed or is not pressed to described I/O unit feedback button;
Described button forbidding timing module: be connected with described Interruption unit, for record the time of button forbidding under the control of described main control module;
The abnormal timing module of described button: be connected with described Interruption unit, for recording the time that button is pressed under the control of described main control module.
A dynamic token with massage protection function, also comprises: display module and power module;
Described display module: be connected with described main control module, under the control of described main control module, demonstration information;
Described power module: be connected with described display module with described main control module, for providing electric energy to described main control module and described display module.
Described key-press module comprises button (Key1) and resistance (R1), and described I/O unit comprises input pin (K1) and output pin (K2).
Described key-press module is connected to the physical circuit of described I/O unit: 1 pin of described button (Key1) is connected VCC by described resistance (R1), 1 pin of described button (Key1) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1) are connected with described output pin (K2).
Described output pin (K2) output low level; When described button (Key1) is not pressed, described input pin (K1) is high level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K2), and described input pin (K1) becomes low level.
Described key-press module is connected to the physical circuit of described I/O unit: 1 pin of described button (Key1) is connected GND by described resistance (R1), 1 pin of described button (Key1) is connected with described output pin (K1) simultaneously, and 2 pin of described button (Key1) are connected with described input pin (K2).
Described output pin (K2) output high level; When described button (Key1) is not pressed, described input pin (K1) state is low level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K2), and described input pin (K1) becomes high level.
Described key-press module comprises button (Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, Key16) and resistance (R1, R2, R3, R4), and described I/O unit comprises input pin (K1, K2, K3, K4) and output pin (K5, K6, K7, K8).
The physical circuit of described key-press module and described I/O unit is connected to:
1 pin of described button (Key1, Key2, Key3, Key4) connects VCC by described resistance (R4), 1 pin of described button (Key1, Key2, Key3, Key4) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1, Key2, Key3, Key4) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key5, Key6, Key7, Key8) connects VCC by described resistance (R3), 1 pin of described button (Key5, Key6, Key7, Key8) is connected with described input pin (K2) simultaneously, and 2 pin of described button (Key5, Key6, Key7, Key8) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key9, Key10, Key11, Key12) connects VCC by described resistance (R2), 1 pin of described button (Key9, Key10, Key11, Key12) is connected with described input pin (K3) simultaneously, and 2 pin of described button (Key9, Key10, Key11, Key12) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key13, Key14, Key15, Key16) connects VCC by described resistance (R1), 1 pin of described button (Key13, Key14, Key15, Key16) is connected with described input pin (K4) simultaneously, and 2 pin of described button (Key13, Key14, Key15, Key16) are connected with described output pin (K5, K6, K7, K8) respectively.
Described output pin (K5, K6, K7, K8) output low level; When described button (Key1, Key2, Key3, Key4) is not pressed, described input pin (K1) is high level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K5), makes described input pin (K1) for low level; When described button (Key2) is pressed, described input pin (K1) is connected with described output pin (K6), makes described input pin (K1) for low level; When described button (Key3) is pressed, described input pin (K1) is connected with described output pin (K7), makes described input pin (K1) for low level; When described button (Key4) is pressed, described input pin (K1) is connected with described output pin (K8), makes described input pin (K1) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key5, Key6, Key7, Key8) is not pressed, described input pin (K2) is high level, when described button (Key5) is pressed, described input pin (K2) is connected with described output pin (K5), makes described input pin (K2) for low level; When described button (Key6) is pressed, described input pin (K2) is connected with described output pin (K6), makes described input pin (K2) for low level; When described button (Key7) is pressed, described input pin (K2) is connected with described output pin (K7), makes described input pin (K2) for low level; When described button (Key8) is pressed, described input pin (K2) is connected with described output pin (K8), makes described input pin (K2) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key9, Key10, Key11, Key12) is not pressed, described input pin (K3) is high level, when described button (Key9) is pressed, described input pin (K3) is connected with described output pin (K5), makes described input pin (K3) for low level; When described button (Key10) is pressed, described input pin (K3) is connected with described output pin (K6), makes described input pin (K3) for low level; When described button (Key11) is pressed, described input pin (K3) is connected with described output pin (K7), makes described input pin (K3) for low level; When described button (Key12) is pressed, described input pin (K3) is connected with described output pin (K8), makes described input pin (K3) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key13, Key14, Key15, Key16) is not pressed, described input pin (K4) is high level, when described button (Key13) is pressed, described input pin (K4) is connected with described output pin (K5), makes described input pin (K4) for low level; When described button (Key14) is pressed, described input pin (K4) is connected with described output pin (K6), makes described input pin (K4) for low level; When described button (Key15) is pressed, described input pin (K4) is connected with described output pin (K7), makes described input pin (K4) for low level; When described button (Key16) is pressed, described input pin (K4) is connected with described output pin (K8), makes described input pin (K4) for low level.
The physical circuit of described key-press module and described I/O unit is connected to:
1 pin of described button (Key1, Key2, Key3, Key4) is connected with GND by described resistance (R4), 1 pin of described button (Key1, Key2, Key3, Key4) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1, Key2, Key3, Key4) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key5, Key6, Key7, Key8) is connected with GND by described resistance (R3), 1 pin of described button (Key5, Key6, Key7, Key8) is connected with described input pin (K2) simultaneously, and 2 pin of described button (Key5, Key6, Key7, Key8) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key9, Key10, Key11, Key12) is connected with GND by described resistance (R2), 1 pin of described button (Key9, Key10, Key11, Key12) is connected with described input pin (K3) simultaneously, and 2 pin of described button (Key9, Key10, Key11, Key12) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key13, Key14, Key15, Key16) is connected with GND by described resistance (R1), 1 pin of described button (Key13, Key14, Key15, Key16) is connected with described input pin (K4) simultaneously, and 2 pin of described button (Key13, Key14, Key15, Key16) are connected with described output pin (K5, K6, K7, K8) respectively.
Described output pin (K5, K6, K7, K8) output high level; When described button (Key1, Key2, Key3, Key4) is not pressed, described input pin (K1) is low level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K5), and making described input pin (K1) is high level; When described button (Key2) is pressed, described input pin (K1) is connected with described output pin (K6), and making described input pin (K1) is high level; When described button (Key3) is pressed, described input pin (K1) is connected with described output pin (K7), and making described input pin (K1) is high level; When described button (Key4) is pressed, described input pin (K1) is connected with described output pin (K8), and making described input pin (K1) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key5, Key6, Key7, Key8) is not pressed, described input pin (K2) is low level, when described button (Key5) is pressed, described input pin (K2) is connected with described output pin (K5), and making described input pin (K2) is high level; When described button (Key6) is pressed, described input pin (K2) is connected with described output pin (K6), and making described input pin (K2) is high level; When described button (Key7) is pressed, described input pin (K2) is connected with described output pin (K7), and making described input pin (K2) is high level; When described button (Key8) is pressed, described input pin (K2) is connected with described output pin (K8), and making described input pin (K2) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key9, Key10, Key11, Key12) is not pressed, described input pin (K3) is low level, when described button (Key9) is pressed, described input pin (K3) is connected with described output pin (K5), and making described input pin (K3) is high level; When described button (Key10) is pressed, described input pin (K3) is connected with described output pin (K6), and making described input pin (K3) is high level; When described button (Key11) is pressed, described input pin (K3) is connected with described output pin (K7), and making described input pin (K3) is high level; When described button (Key12) is pressed, described input pin (K3) is connected with described output pin (K8), and making described input pin (K3) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key13, Key14, Key15, Key16) is not pressed, described input pin (K4) is low level, when described button (Key13) is pressed, described input pin (K4) is connected with described output pin (K5), and making described input pin (K4) is high level; When described button (Key14) is pressed, described input pin (K4) is connected with described output pin (K6), and making described input pin (K4) is high level; When described button (Key15) is pressed, described input pin (K4) is connected with described output pin (K7), and making described input pin (K4) is high level; When described button (Key16) is pressed, described input pin (K4) is connected with described output pin (K8), and making described input pin (K4) is high level.
A method of work with the dynamic token of massage protection function, is characterized in that, comprising:
Step S1: described dynamic token powers on, carries out initialization, using the initial condition of the input pin in described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level;
Step S2: described dynamic token enables interrupt location, is made as resting state by the state of described dynamic token;
When described dynamic token detects described input interrupt location generation input interruption, described dynamic token is waken up, and wakes input up sign set;
When described dynamic token detects described Interruption unit generation Interruption, described dynamic token is waken up, and timing wake-up is identified to set;
Step S3: the type of waking sign up of described dynamic token judgement set, if described input wakes sign up, described input is waken up to sign and reset, according to push-button type, carry out button operation, return to execution step S2, if described timing wake-up sign performs step S4;
Step S4: described dynamic token judges whether in massage protection state, if so, performs step S5, otherwise execution step S7;
Step S5: described dynamic token obtains the value of described button forbidding timing module, judges whether the value of described button forbidding timing module reaches the first Fujian value, if so, performs step S6, otherwise returns to execution step S2;
Step S6: described dynamic token is forbidden described input interrupt location, output pin in described I/O unit is set to second electrical level, whether the input pin detecting in described I/O unit is the first level, if, exit massage protection state, the value of the abnormal timing module of button is set to the second initial value, return to execution step S2, otherwise the output pin in described I/O unit is set to the first level, the value of described button forbidding timing module is set to the first initial value, returns to execution step S2;
Step S7: described dynamic token is forbidden described input interrupt location, output pin in described I/O unit is set to second electrical level, and whether the input pin detecting in described I/O unit is the first level, if, perform step S8, otherwise execution step S9;
Step S8: described dynamic token is set to the second initial value by the value of the abnormal timing module of described button, returns to execution step S2;
Step S9: described dynamic token upgrades the value of the abnormal timing module of described button, and judge whether the value of the abnormal timing module of described button reaches the second Fujian value, if so, performs step S10, otherwise return to execution step S2;
Step S10: described dynamic token enters massage protection state, the output pin in described I/O unit is set to the first level, and the value of described button forbidding timing module is set to the first initial value;
Step S11: described dynamic token is closed display screen, is set to resting state by the state of described dynamic token, returns to execution step S2.
Described step S1 also comprises: described dynamic token wakes described input up sign and resets, and described timing wake-up sign is resetted, and the value of described button forbidding timing module is set to the first initial value, and the value of the abnormal timing module of described button is set to the second initial value.
Described button forbidding timing module is synchronizeed with described clock unit, and when described clock unit increases by 1 second, the value of described button forbidding timing module is corresponding increases by 1 second.
Described button forbidding timing module and described clock unit are asynchronous, and when described clock unit increases by 1 second, the value of described button forbidding timing module is corresponding reduces 1 second.
The abnormal timing module of described button is synchronizeed with described clock unit, and when described clock unit increases by 1 second, the value of the abnormal timing module of described button is corresponding increases by 1 second.
The abnormal timing module of described button and described clock unit are asynchronous, and when described clock unit increases by 1 second, the value of the abnormal timing module of described button is corresponding reduces 1 second.
In described step S1, described using the initial condition of the input pin in described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially: 1 pin of the button in described key-press module (Key1) is connected with VCC by resistance (R1), the initial condition of the input pin in described I/O unit (K1) is high level, and the output pin of described I/O unit (K2) is initialized as to low level.
Whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1) detecting in described I/O unit is high level.
In described step S1, described using the initial condition of the input pin in described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially: 1 pin of the button in described key-press module (Key1) is connected with GND by resistance (R1), the initial condition of the input pin in described I/O unit (K1) is low level, and the output pin of described I/O unit (K2) is initialized as to high level.
Whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1) detecting in described I/O unit is low level.
In described step S1, described using the initial condition of the input pin in I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially:
1 pin of the button in described key-press module (Key1, Key2, Key3, Key4) connects VCC by described resistance (R4), the initial condition of the input pin in described I/O unit (K1) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in described key-press module (Key5, Key6, Key7, Key8) connects VCC by described resistance (R3), the initial condition of the input pin in described I/O unit (K2) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in described key-press module (Key9, Key10, Key11, Key12) connects VCC by described resistance (R2), the initial condition of the input pin in described I/O unit (K3) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in described key-press module (Key13, Key14, Key15, Key16) connects VCC by described resistance (R1), the initial condition of the input pin in described I/O unit (K4) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level.
Whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1, K2, K3, K4) detecting in described I/O unit is high level.
In described step S1, described using the initial condition of the input pin in I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially:
1 pin of the button in described key-press module (Key1, Key2, Key3, Key4) is connected with GND by resistance (R4), the initial condition of the input pin in described I/O unit (K1) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in described key-press module (Key5, Key6, Key7, Key8) is connected with GND by resistance (R3), the initial condition of the input pin in described I/O unit (K2) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in described key-press module (Key9, Key10, Key11, Key12) is connected with GND by resistance (R2), the initial condition of the input pin in described I/O unit (K3) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in described key-press module (Key13, Key14, Key15, Key16) is connected with GND by resistance (R1), the initial condition of the input pin in described I/O unit (K4) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level.
Whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1, K2, K3, K4) detecting in described I/O unit is low level.
Described step S1 also comprises: massage protection sign is resetted;
In described step S4, described in judge whether, in massage protection state, to be specially: judge that described massage protection identifies whether set, if so, described dynamic token is in massage protection state, otherwise described dynamic token is not in massage protection state;
In described step S6, described in exit massage protection state, be specially: described massage protection sign is resetted;
In described step S10, described in enter massage protection state, be specially: by the set of described massage protection sign.
The beneficial effect that the present invention obtains is: adopt described scheme of the present invention, can reduce dynamic token because of the power consumption that improper button operation causes, increased the useful life of dynamic token.
Accompanying drawing explanation
For the clearer explanation embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, not paying under the prerequisite of the plane property made work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of module map with the dynamic token of massage protection function that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of circuit theory diagrams with the dynamic token of single-button defencive function that the embodiment of the present invention 1 provides;
Fig. 3 is the circuit theory diagrams that another kind that the embodiment of the present invention 1 provides has the dynamic token of single-button defencive function;
Fig. 4 is a kind of circuit theory diagrams with the dynamic token of many massage protections function that the embodiment of the present invention 1 provides;
Fig. 5 is the circuit theory diagrams that another kind that the embodiment of the present invention 1 provides has the dynamic token of many massage protections function;
Fig. 6 is a kind of method of work flow chart with the dynamic token of massage protection function that the embodiment of the present invention 2 provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under the plane property made work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of dynamic token with massage protection function, as shown in Figure 1, comprising: main control module 101, display module 102, key-press module 103, power module 104, button forbidding timing module 105 and the abnormal timing module 106 of button; Wherein, described main control module 101 comprises clock unit 1011, Interruption unit 1012, input interrupt location 1013 and I/O unit 1014;
Described main control module 101: be connected with described I/O unit, for controlling described I/O unit 1014 output levels; Be connected with described input interrupt location, while there is default variation for the incoming level at described I/O unit 1014, control inputs interrupt location 1013 produces input and interrupts; Be connected with described Interruption unit with described clock unit, under the triggering at described clock unit 1011, control described Interruption unit 1012 and produce Interruption;
Wherein, default variation is specially: incoming level is become low level or become high level from low level from high level; Preferably, a kind of level can only be set in a scheme changes;
Described clock unit 1011: be connected with described Interruption unit with described main control module, be used to described main control module 101 and described Interruption unit 1012 that reliable clock source is provided;
Described Interruption unit 1012: be connected with described main control module with described clock unit, under the triggering at described clock unit 1011, self-timing when reaching Preset Time, produces Interruption under described main control module 101 is controlled;
Described input interrupt location 1013: be connected with described main control module with described I/O unit, for when described I/O unit 1014 incoming levels produce default variation, under the control of described main control module 101, produce input and interrupt;
Described I/O unit 1014: be connected with described input interrupt location, for passing through output pin output level and receiving incoming level by input pin, when the incoming level receiving by described input pin produces default variation, under the control of described main control module, described input interrupt location produces input and interrupts; Be connected with described key-press module, know the state that in described key-press module 103, button is pressed or is not pressed;
Described display module 102: be connected with described main control module 101, under the control at described main control module 101, demonstration information;
Described key-press module 103: be connected with described I/O unit 1013, for the state that is pressed or is not pressed to described I/O unit 1013 feedback buttons;
Described power module 104: be connected with described display module with described main control module, for providing electric energy to described main control module 101 and described display module 102;
Described button forbidding timing module 105: be connected with described Interruption unit 1012, for recording the time of button forbidding under the control at described main control module 101;
The abnormal timing module 106 of described button: be connected with described Interruption unit 1012, for recording the time that button is pressed under the control at described main control module 101.
Referring to Fig. 2, a kind of circuit theory diagrams with the dynamic token of single-button defencive function that provide for the embodiment of the present invention 1, described key-press module 103 comprises button (Key1) and resistance (R1), and described I/O unit 1014 comprises input pin (K1) and output pin (K2); The chip correspondence of label MCU the main control module 101 in the present embodiment, and the chip correspondence of label LCD the display module 102 in the present embodiment, and the power supply correspondence of label Battary the power module 104 in the present embodiment;
Described key-press module 103 is connected to the physical circuit of described I/O unit 1014: 1 pin of described button (Key1) is connected VCC by described resistance (R1), 1 pin of described button (Key1) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1) are connected with described output pin (K2);
Described output pin (K2) output low level; When described button (Key1) is not pressed, described input pin (K1) is high level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K2), and described input pin (K1) becomes low level.
Referring to Fig. 3, the another kind providing for the embodiment of the present invention 1 has the circuit theory diagrams of the dynamic token of single-button defencive function, described key-press module 103 comprises button (Key1) and resistance (R1), and described I/O unit 1014 comprises input pin (K1) and output pin (K2); The chip correspondence of label MCU the main control module 101 in the present embodiment, and the chip correspondence of label LCD the display module 102 in the present embodiment, and the power supply correspondence of label Battary the power module 104 in the present embodiment;
Described key-press module 103 is connected to the physical circuit of described I/O unit 1014: 1 pin of described button (Key1) is connected GND by described resistance (R1), 1 pin of described button (Key1) is connected with described output pin (K1) simultaneously, and 2 pin of described button (Key1) are connected with described input pin (K2);
Described output pin (K2) output high level; When described button (Key1) is not pressed, described input pin (K1) state is low level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K2), and described input pin (K1) becomes high level.
Referring to Fig. 4, a kind of circuit theory diagrams with the dynamic token of many massage protections function that provide for the embodiment of the present invention 1, described key-press module 103 comprises button (Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, Key16) and resistance (R1, R2, R3, R4), and described I/O unit 1014 comprises input pin (K1, K2, K3, K4) and output pin (K5, K6, K7, K8); The chip correspondence of label MCU the main control module 101 in the present embodiment, and the chip correspondence of label LCD the display module 102 in the present embodiment, and the power supply correspondence of label Battary the power module 104 in the present embodiment;
Described key-press module 103 is connected to the physical circuit of described I/O unit 1014:
1 pin of described button (Key1, Key2, Key3, Key4) connects VCC by described resistance (R4), 1 pin of described button (Key1, Key2, Key3, Key4) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1, Key2, Key3, Key4) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key5, Key6, Key7, Key8) connects VCC by described resistance (R3), 1 pin of described button (Key5, Key6, Key7, Key8) is connected with described input pin (K2) simultaneously, and 2 pin of described button (Key5, Key6, Key7, Key8) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key9, Key10, Key11, Key12) connects VCC by described resistance (R2), 1 pin of described button (Key9, Key10, Key11, Key12) is connected with described input pin (K3) simultaneously, and 2 pin of described button (Key9, Key10, Key11, Key12) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key13, Key14, Key15, Key16) connects VCC by described resistance (R1), 1 pin of described button (Key13, Key14, Key15, Key16) is connected with described input pin (K4) simultaneously, and 2 pin of described button (Key13, Key14, Key15, Key16) are connected with described output pin (K5, K6, K7, K8) respectively;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key1, Key2, Key3, Key4) is not pressed, described input pin (K1) is high level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K5), makes described input pin (K1) for low level; When described button (Key2) is pressed, described input pin (K1) is connected with described output pin (K6), makes described input pin (K1) for low level; When described button (Key3) is pressed, described input pin (K1) is connected with described output pin (K7), makes described input pin (K1) for low level; When described button (Key4) is pressed, described input pin (K1) is connected with described output pin (K8), makes described input pin (K1) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key5, Key6, Key7, Key8) is not pressed, described input pin (K2) is high level, when described button (Key5) is pressed, described input pin (K2) is connected with described output pin (K5), makes described input pin (K2) for low level; When described button (Key6) is pressed, described input pin (K2) is connected with described output pin (K6), makes described input pin (K2) for low level; When described button (Key7) is pressed, described input pin (K2) is connected with described output pin (K7), makes described input pin (K2) for low level; When described button (Key8) is pressed, described input pin (K2) is connected with described output pin (K8), makes described input pin (K2) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key9, Key10, Key11, Key12) is not pressed, described input pin (K3) is high level, when described button (Key9) is pressed, described input pin (K3) is connected with described output pin (K5), makes described input pin (K3) for low level; When described button (Key10) is pressed, described input pin (K3) is connected with described output pin (K6), makes described input pin (K3) for low level; When described button (Key11) is pressed, described input pin (K3) is connected with described output pin (K7), makes described input pin (K3) for low level; When described button (Key12) is pressed, described input pin (K3) is connected with described output pin (K8), makes described input pin (K3) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key13, Key14, Key15, Key16) is not pressed, described input pin (K4) is high level, when described button (Key13) is pressed, described input pin (K4) is connected with described output pin (K5), makes described input pin (K4) for low level; When described button (Key14) is pressed, described input pin (K4) is connected with described output pin (K6), makes described input pin (K4) for low level; When described button (Key15) is pressed, described input pin (K4) is connected with described output pin (K7), makes described input pin (K4) for low level; When described button (Key16) is pressed, described input pin (K4) is connected with described output pin (K8), makes described input pin (K4) for low level.
Referring to Fig. 5, the another kind providing for the embodiment of the present invention 1 has the circuit theory diagrams of the dynamic token of many massage protections function, described key-press module 103 comprises button (Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, Key16) and resistance (R1, R2, R3, R4), and described I/O unit 1014 comprises input pin (K1, K2, K3, K4) and output pin (K5, K6, K7, K8); The chip correspondence of label MCU the main control module 101 in the present embodiment, and the chip correspondence of label LCD the display module 102 in the present embodiment, and the power supply correspondence of label Battary the power module 104 in the present embodiment;
Described key-press module 103 is connected to the physical circuit of described I/O unit 1014:
1 pin of described button (Key1, Key2, Key3, Key4) is connected with GND by described resistance (R4), 1 pin of described button (Key1, Key2, Key3, Key4) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1, Key2, Key3, Key4) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key5, Key6, Key7, Key8) is connected with GND by described resistance (R3), 1 pin of described button (Key5, Key6, Key7, Key8) is connected with described input pin (K2) simultaneously, and 2 pin of described button (Key5, Key6, Key7, Key8) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key9, Key10, Key11, Key12) is connected with GND by described resistance (R2), 1 pin of described button (Key9, Key10, Key11, Key12) is connected with described input pin (K3) simultaneously, and 2 pin of described button (Key9, Key10, Key11, Key12) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key13, Key14, Key15, Key16) is connected with GND by described resistance (R1), 1 pin of described button (Key13, Key14, Key15, Key16) is connected with described input pin (K4) simultaneously, and 2 pin of described button (Key13, Key14, Key15, Key16) are connected with described output pin (K5, K6, K7, K8) respectively;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key1, Key2, Key3, Key4) is not pressed, described input pin (K1) is low level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K5), and making described input pin (K1) is high level; When described button (Key2) is pressed, described input pin (K1) is connected with described output pin (K6), and making described input pin (K1) is high level; When described button (Key3) is pressed, described input pin (K1) is connected with described output pin (K7), and making described input pin (K1) is high level; When described button (Key4) is pressed, described input pin (K1) is connected with described output pin (K8), and making described input pin (K1) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key5, Key6, Key7, Key8) is not pressed, described input pin (K2) is low level, when described button (Key5) is pressed, described input pin (K2) is connected with described output pin (K5), and making described input pin (K2) is high level; When described button (Key6) is pressed, described input pin (K2) is connected with described output pin (K6), and making described input pin (K2) is high level; When described button (Key7) is pressed, described input pin (K2) is connected with described output pin (K7), and making described input pin (K2) is high level; When described button (Key8) is pressed, described input pin (K2) is connected with described output pin (K8), and making described input pin (K2) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key9, Key10, Key11, Key12) is not pressed, described input pin (K3) is low level, when described button (Key9) is pressed, described input pin (K3) is connected with described output pin (K5), and making described input pin (K3) is high level; When described button (Key10) is pressed, described input pin (K3) is connected with described output pin (K6), and making described input pin (K3) is high level; When described button (Key11) is pressed, described input pin (K3) is connected with described output pin (K7), and making described input pin (K3) is high level; When described button (Key12) is pressed, described input pin (K3) is connected with described output pin (K8), and making described input pin (K3) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key13, Key14, Key15, Key16) is not pressed, described input pin (K4) is low level, when described button (Key13) is pressed, described input pin (K4) is connected with described output pin (K5), and making described input pin (K4) is high level; When described button (Key14) is pressed, described input pin (K4) is connected with described output pin (K6), and making described input pin (K4) is high level; When described button (Key15) is pressed, described input pin (K4) is connected with described output pin (K7), and making described input pin (K4) is high level; When described button (Key16) is pressed, described input pin (K4) is connected with described output pin (K8), and making described input pin (K4) is high level.
Embodiment 2
The embodiment of the present invention 2 is that a kind of method of work with the dynamic token of massage protection function is provided on the basis of embodiment 1, as shown in Figure 6, comprising:
Step 201: dynamic token powers on, carries out initialization, using the initial condition of the input pin of described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level;
Wherein, Fig. 2 in embodiment 1, described using the initial condition of the input pin of described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially: 1 pin of the button in key-press module (Key1) is connected with VCC by resistance (R1), the initial condition of the input pin (K1) in described I/O unit is high level, and described output pin (K2) is initialized as to low level;
Wherein, Fig. 3 in embodiment 1, described using the initial condition of the input pin of described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially: if 1 pin of the button in key-press module (Key1) is connected with GND by resistance (R1), the initial condition of the input pin (K1) in described I/O unit is low level, and the output pin in described I/O unit (K2) is initialized as to high level;
Wherein, Fig. 4 in embodiment 1, described using the initial condition of the input pin in I/O unit as the first level, described output pin is initialized as to second electrical level, be specially:
1 pin of the button in key-press module (Key1, Key2, Key3, Key4) connects VCC by described resistance (R1), the initial condition of the input pin in described I/O unit (K1) is high level, and described output pin (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in key-press module (Key5, Key6, Key7, Key8) connects VCC by described resistance (R2), the initial condition of the input pin in described I/O unit (K2) is high level, and described output pin (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in key-press module (Key9, Key10, Key11, Key12) connects VCC by described resistance (R3), the initial condition of the input pin in described I/O unit (K3) is high level, and described output pin (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in key-press module (Key13, Key14, Key15, Key16) connects VCC by described resistance (R4), the initial condition of the input pin in described I/O unit (K4) is high level, and described output pin (K5, K6, K7, K8) is initialized as to low level;
Wherein, Fig. 5 in embodiment 1, described using the initial condition of the input pin in I/O unit as the first level, described output pin is initialized as to second electrical level, be specially:
1 pin of the button in key-press module (Key1, Key2, Key3, Key4) is connected with GND by resistance (R1), the initial condition of the input pin in described I/O unit (K1) is low level, and described output pin (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in key-press module (Key5, Key6, Key7, Key8) is connected with GND by resistance (R2), the initial condition of the input pin in described I/O unit (K2) is low level, and described output pin (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in key-press module (Key9, Key10, Key11, Key12) is connected with GND by resistance (R3), the initial condition of the input pin in described I/O unit (K3) is low level, and described output pin (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in key-press module (Key13, Key14, Key15, Key16) is connected with GND by resistance (R4), the initial condition of the input pin in described I/O unit (K4) is low level, and described output pin (K5, K6, K7, K8) is initialized as to high level;
In the present embodiment, dynamic token carries out initialization, is specially: wake button up sign and reset, timing wake-up sign is resetted, massage protection sign is resetted, and the value of button being forbidden to timer is set to the first initial value, and the value of the abnormal timer of button is set to the second initial value;
Step 202: described dynamic token enables interrupt location, is made as resting state by the state of described dynamic token;
In the present embodiment, described in, enabling interrupt location specifically comprises and enables to input interrupt location 1013, enables Interruption unit 1012;
When described dynamic token detects described input interrupt location 1013 generation input interruption, described dynamic token is waken up, and wakes input up sign set;
When described dynamic token detects described Interruption unit 1012 generation Interruption, described dynamic token is waken up, and timing wake-up is identified to set;
In the present embodiment, preferred, when described clock unit 1011 reaches Preset Time, dynamic token detects described Interruption unit 1012 and produces Interruption, and preferred, Preset Time is 1 second;
Step 203: the type of waking sign up of described dynamic token judgement set, if input wakes sign up, performs step 204, if timing wake-up sign performs step 205;
Step 204: dynamic token wakes described input up sign and resets, and carries out button operation according to push-button type, returns to execution step 202;
In the present embodiment, push-button type comprises: ON/OFF switch, and delete key, login button, up/down is turned over key, numerical key etc.; Carry out button operation and comprise generation dynamic password etc.;
Step 205: dynamic token judges whether in massage protection state, if so, performs step 206, otherwise execution step 210;
In the present embodiment, preferred, described in judge whether, in massage protection state, to be specially: judge that described massage protection identifies whether set, if so, described dynamic token is in massage protection state, otherwise described dynamic token is not in massage protection state;
Step 206: described dynamic token obtains the value of button forbidding timing module, judges whether the value of described button forbidding timing module reaches the first Fujian value, if so, performs step 207, otherwise returns to execution step 202;
In the present embodiment, button forbidding timing module is synchronizeed with dynamic token internal clocking, and when the dynamic token internal clocking time increases by 1 second, the value of button forbidding computing module is corresponding increases by 1 second, and preferred, first threshold is 5 seconds;
Can also be: when the dynamic token internal clocking time increases by 1 second, the value of button forbidding timing module is corresponding reduces 1 second, and preferred, the first Fujian value is 0 second;
Step 207: described dynamic token is forbidden described input interrupt location, and described output pin is set to second electrical level, whether be first level, if so, perform step 209 if detecting described input pin, otherwise execution step 208;
Wherein, Fig. 2 in embodiment 1, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1) detecting in described I/O unit is high level;
Wherein, the Fig. 3 in embodiment 1, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1) detecting in described I/O unit is low level;
Wherein, the Fig. 4 in embodiment 1, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1, K2, K3, K4) detecting in described I/O unit is high level;
Wherein, the Fig. 5 in embodiment 1, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1, K2, K3, K4) detecting in described I/O unit is low level;
Step 208: the output pin in the described I/O unit of dynamic token is set to the first level, is set to the first initial value by the value of described button forbidding timing module, returns to execution step 202;
In the present embodiment, if made an appointment when dynamic token internal clocking increases by 1 second, the value of button forbidding timing module is corresponding increases by 1 second, and preferred, the first initial value is 0 second;
If made an appointment when dynamic token internal clocking increases by 1 second, the value of button forbidding timing module is corresponding reduces 1 second, and preferred, the second initial value is 5 seconds;
Step 209: dynamic token exits massage protection state, is set to the second initial value by the value of the abnormal timing module of button, returns to execution step 202;
Wherein, described in exit massage protection state, be specially: described massage protection sign is resetted;
In the present embodiment, the abnormal timing module of button is synchronizeed with dynamic token internal clocking, if made an appointment, the dynamic token internal clocking time increases by 1 second, the corresponding increase of value of the abnormal timing module of button 1 second, and this step is set to the second initial value 0 second by the value of the abnormal timing module of button; If made an appointment, dynamic token internal clocking increases by 1 second, the corresponding minimizing of value of the abnormal timing module of button 1 second, and this step is set to the second initial value 10 seconds by the value of the abnormal timing module of button;
Step 210: described dynamic token is forbidden described input interrupt location, output pin in described I/O unit is set to second electrical level, and whether the input pin detecting in described I/O unit is the first level, if, perform step 211, otherwise execution step 212;
Step 211: described dynamic token is set to the second initial value by the value of the abnormal timing module of described button, returns to execution step 202;
Step 212: described dynamic token upgrades the value of the abnormal timing module of described button, and judge whether the value of the abnormal timing module of described button reaches the second Fujian value, if so, performs step 213, otherwise return to execution step 202;
In the present embodiment, if the abnormal timing module of button is synchronizeed with dynamic token internal clocking, the dynamic token internal clocking time increases by 1 second, the value of upgrading the abnormal timing module of button is by the corresponding increase of the value of the abnormal timing module of button 1 second, the value when the abnormal timing module of button reached the second Fujian value in the time of 10 seconds, execution step 213; If the abnormal timing module of button and dynamic token internal clocking are asynchronous, dynamic token internal clocking increases by 1 second, the value of upgrading the abnormal timing module of button is by the corresponding minimizing of the value of the abnormal timing module of button 1 second, the value when the abnormal timing module of button reached the second Fujian value in the time of 0 second, execution step 213;
Step 213: described dynamic token enters massage protection state, the output pin in described I/O unit is set to the first level, and the value of described button forbidding timing module is set to the first initial value;
In the present embodiment, if the dynamic token internal clocking of making an appointment increases by 1 second, button forbidding timing module is corresponding increases by 1 second, and the value that this step is forbidden timing module by button is set to the first initial value 0 second; If made an appointment, dynamic token internal clocking increases by 1 second, and button forbidding timing module is corresponding reduces 1 second, and the value that this step is forbidden timing module by button is set to the first initial value 5 seconds;
Step 214: described dynamic token is closed display screen, is set to resting state by the state of described dynamic token, returns to execution step 202;
In the present embodiment, input pin and the output pin in I/O unit in I/O unit are the first level, can realize dynamic token input interruption can not occur, and when button is pressed, electric current does not increase, and makes dynamic token enter low power consumpting state.
The above; be only the present invention's embodiment preferably, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (27)

1. a dynamic token with massage protection function, is characterized in that, comprising: main control module, key-press module, button forbidding timing module and the abnormal timing module of button; Wherein, described main control module comprises clock unit, Interruption unit, input interrupt location and I/O unit;
Described main control module: be connected with described I/O unit, for controlling described I/O unit output level; Be connected with described input interrupt location, while there is default variation for the incoming level at described I/O unit, control described input interrupt location generation input and interrupt; Be connected with described Interruption unit with described clock unit, under the triggering of described clock unit, control described Interruption unit and produce Interruption;
Described clock unit: be connected with described Interruption unit with described main control module, be used to described main control module and described Interruption unit that reliable clock source is provided;
Described Interruption unit: be connected with described main control module with described clock unit, under the triggering of described clock unit, self-timing when reaching Preset Time, produces Interruption under described master control module controls;
Described input interrupt location: be connected with described main control module with described I/O unit, for when described I/O unit incoming level produces default variation, under the control of described main control module, produce input and interrupt;
Described I/O unit: be connected with described input interrupt location, for passing through output pin output level and receiving incoming level by input pin, when the incoming level receiving by described input pin produces default variation, under the control of described main control module, described input interrupt location produces input and interrupts; Be connected with described key-press module, know the state that in described key-press module, button is pressed or do not pressed;
Described key-press module: be connected with described I/O unit, for the state that is pressed or is not pressed to described I/O unit feedback button;
Described button forbidding timing module: be connected with described Interruption unit, for record the time of button forbidding under the control of described main control module;
The abnormal timing module of described button: be connected with described Interruption unit, for recording the time that button is pressed under the control of described main control module.
2. according to a kind of dynamic token with massage protection function described in claim 1, it is characterized in that, also comprise: display module and power module;
Described display module: be connected with described main control module, under the control of described main control module, demonstration information;
Described power module: be connected with described display module with described main control module, for providing electric energy to described main control module and described display module.
3. a kind of dynamic token with massage protection function according to claim 1; it is characterized in that; described key-press module comprises button (Key1) and resistance (R1), and described I/O unit comprises input pin (K1) and output pin (K2).
4. a kind of dynamic token with massage protection function according to claim 3; it is characterized in that; described key-press module is connected to the physical circuit of described I/O unit: 1 pin of described button (Key1) is connected VCC by described resistance (R1); 1 pin of described button (Key1) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1) are connected with described output pin (K2).
5. a kind of dynamic token with massage protection function according to claim 4, is characterized in that, described output pin (K2) output low level; When described button (Key1) is not pressed, described input pin (K1) is high level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K2), and described input pin (K1) becomes low level.
6. a kind of dynamic token with massage protection function according to claim 3; it is characterized in that; described key-press module is connected to the physical circuit of described I/O unit: 1 pin of described button (Key1) is connected GND by described resistance (R1); 1 pin of described button (Key1) is connected with described output pin (K1) simultaneously, and 2 pin of described button (Key1) are connected with described input pin (K2).
7. a kind of dynamic token with massage protection function according to claim 6, is characterized in that, described output pin (K2) output high level; When described button (Key1) is not pressed, described input pin (K1) state is low level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K2), and described input pin (K1) becomes high level.
8. a kind of dynamic token with massage protection function according to claim 1; it is characterized in that; described key-press module comprises button (Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, Key16) and resistance (R1, R2, R3, R4), and described I/O unit comprises input pin (K1, K2, K3, K4) and output pin (K5, K6, K7, K8).
9. a kind of dynamic token with massage protection function according to claim 8, is characterized in that, the physical circuit of described key-press module and described I/O unit is connected to:
1 pin of described button (Key1, Key2, Key3, Key4) connects VCC by described resistance (R4), 1 pin of described button (Key1, Key2, Key3, Key4) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1, Key2, Key3, Key4) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key5, Key6, Key7, Key8) connects VCC by described resistance (R3), 1 pin of described button (Key5, Key6, Key7, Key8) is connected with described input pin (K2) simultaneously, and 2 pin of described button (Key5, Key6, Key7, Key8) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key9, Key10, Key11, Key12) connects VCC by described resistance (R2), 1 pin of described button (Key9, Key10, Key11, Key12) is connected with described input pin (K3) simultaneously, and 2 pin of described button (Key9, Key10, Key11, Key12) are connected with described output pin (K5, K6, K7, K8) respectively;
1 pin of described button (Key13, Key14, Key15, Key16) connects VCC by described resistance (R1), 1 pin of described button (Key13, Key14, Key15, Key16) is connected with described input pin (K4) simultaneously, and 2 pin of described button (Key13, Key14, Key15, Key16) are connected with described output pin (K5, K6, K7, K8) respectively.
10. a kind of dynamic token with massage protection function according to claim 9, is characterized in that,
Described output pin (K5, K6, K7, K8) output low level; When described button (Key1, Key2, Key3, Key4) is not pressed, described input pin (K1) is high level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K5), makes described input pin (K1) for low level; When described button (Key2) is pressed, described input pin (K1) is connected with described output pin (K6), makes described input pin (K1) for low level; When described button (Key3) is pressed, described input pin (K1) is connected with described output pin (K7), makes described input pin (K1) for low level; When described button (Key4) is pressed, described input pin (K1) is connected with described output pin (K8), makes described input pin (K1) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key5, Key6, Key7, Key8) is not pressed, described input pin (K2) is high level, when described button (Key5) is pressed, described input pin (K2) is connected with described output pin (K5), makes described input pin (K2) for low level; When described button (Key6) is pressed, described input pin (K2) is connected with described output pin (K6), makes described input pin (K2) for low level; When described button (Key7) is pressed, described input pin (K2) is connected with described output pin (K7), makes described input pin (K2) for low level; When described button (Key8) is pressed, described input pin (K2) is connected with described output pin (K8), makes described input pin (K2) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key9, Key10, Key11, Key12) is not pressed, described input pin (K3) is high level, when described button (Key9) is pressed, described input pin (K3) is connected with described output pin (K5), makes described input pin (K3) for low level; When described button (Key10) is pressed, described input pin (K3) is connected with described output pin (K6), makes described input pin (K3) for low level; When described button (Key11) is pressed, described input pin (K3) is connected with described output pin (K7), makes described input pin (K3) for low level; When described button (Key12) is pressed, described input pin (K3) is connected with described output pin (K8), makes described input pin (K3) for low level;
Described output pin (K5, K6, K7, K8) output low level; When described button (Key13, Key14, Key15, Key16) is not pressed, described input pin (K4) is high level, when described button (Key13) is pressed, described input pin (K4) is connected with described output pin (K5), makes described input pin (K4) for low level; When described button (Key14) is pressed, described input pin (K4) is connected with described output pin (K6), makes described input pin (K4) for low level; When described button (Key15) is pressed, described input pin (K4) is connected with described output pin (K7), makes described input pin (K4) for low level; When described button (Key16) is pressed, described input pin (K4) is connected with described output pin (K8), makes described input pin (K4) for low level.
11. a kind of dynamic tokens with massage protection function according to claim 8, is characterized in that, the physical circuit of described key-press module and described I/O unit is connected to:
1 pin of described button (Key1, Key2, Key3, Key4) is connected with GND by described resistance (R4), 1 pin of described button (Key1, Key2, Key3, Key4) is connected with described input pin (K1) simultaneously, and 2 pin of described button (Key1, Key2, Key3, Key4) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key5, Key6, Key7, Key8) is connected with GND by described resistance (R3), 1 pin of described button (Key5, Key6, Key7, Key8) is connected with described input pin (K2) simultaneously, and 2 pin of described button (Key5, Key6, Key7, Key8) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key9, Key10, Key11, Key12) is connected with GND by described resistance (R2), 1 pin of described button (Key9, Key10, Key11, Key12) is connected with described input pin (K3) simultaneously, and 2 pin of described button (Key9, Key10, Key11, Key12) are connected with the described output pin of difference (K5, K6, K7, K8);
1 pin of described button (Key13, Key14, Key15, Key16) is connected with GND by described resistance (R1), 1 pin of described button (Key13, Key14, Key15, Key16) is connected with described input pin (K4) simultaneously, and 2 pin of described button (Key13, Key14, Key15, Key16) are connected with described output pin (K5, K6, K7, K8) respectively.
12. a kind of dynamic tokens with massage protection function according to claim 11, is characterized in that,
Described output pin (K5, K6, K7, K8) output high level; When described button (Key1, Key2, Key3, Key4) is not pressed, described input pin (K1) is low level, when described button (Key1) is pressed, described input pin (K1) is connected with described output pin (K5), and making described input pin (K1) is high level; When described button (Key2) is pressed, described input pin (K1) is connected with described output pin (K6), and making described input pin (K1) is high level; When described button (Key3) is pressed, described input pin (K1) is connected with described output pin (K7), and making described input pin (K1) is high level; When described button (Key4) is pressed, described input pin (K1) is connected with described output pin (K8), and making described input pin (K1) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key5, Key6, Key7, Key8) is not pressed, described input pin (K2) is low level, when described button (Key5) is pressed, described input pin (K2) is connected with described output pin (K5), and making described input pin (K2) is high level; When described button (Key6) is pressed, described input pin (K2) is connected with described output pin (K6), and making described input pin (K2) is high level; When described button (Key7) is pressed, described input pin (K2) is connected with described output pin (K7), and making described input pin (K2) is high level; When described button (Key8) is pressed, described input pin (K2) is connected with described output pin (K8), and making described input pin (K2) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key9, Key10, Key11, Key12) is not pressed, described input pin (K3) is low level, when described button (Key9) is pressed, described input pin (K3) is connected with described output pin (K5), and making described input pin (K3) is high level; When described button (Key10) is pressed, described input pin (K3) is connected with described output pin (K6), and making described input pin (K3) is high level; When described button (Key11) is pressed, described input pin (K3) is connected with described output pin (K7), and making described input pin (K3) is high level; When described button (Key12) is pressed, described input pin (K3) is connected with described output pin (K8), and making described input pin (K3) is high level;
Described output pin (K5, K6, K7, K8) output high level; When described button (Key13, Key14, Key15, Key16) is not pressed, described input pin (K4) is low level, when described button (Key13) is pressed, described input pin (K4) is connected with described output pin (K5), and making described input pin (K4) is high level; When described button (Key14) is pressed, described input pin (K4) is connected with described output pin (K6), and making described input pin (K4) is high level; When described button (Key15) is pressed, described input pin (K4) is connected with described output pin (K7), and making described input pin (K4) is high level; When described button (Key16) is pressed, described input pin (K4) is connected with described output pin (K8), and making described input pin (K4) is high level.
13. a kind of method of works with the dynamic token of massage protection function according to claim 1, is characterized in that, comprising:
Step S1: described dynamic token powers on, carries out initialization, using the initial condition of the input pin in described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level;
Step S2: described dynamic token enables interrupt location, is made as resting state by the state of described dynamic token;
When described dynamic token detects described input interrupt location generation input interruption, described dynamic token is waken up, and wakes input up sign set;
When described dynamic token detects described Interruption unit generation Interruption, described dynamic token is waken up, and timing wake-up is identified to set;
Step S3: the type of waking sign up of described dynamic token judgement set, if described input wakes sign up, described input is waken up to sign and reset, according to push-button type, carry out button operation, return to execution step S2, if described timing wake-up sign performs step S4;
Step S4: described dynamic token judges whether in massage protection state, if so, performs step S5, otherwise execution step S7;
Step S5: described dynamic token obtains the value of described button forbidding timing module, judges whether the value of described button forbidding timing module reaches the first Fujian value, if so, performs step S6, otherwise returns to execution step S2;
Step S6: described dynamic token is forbidden described input interrupt location, output pin in described I/O unit is set to second electrical level, whether the input pin detecting in described I/O unit is the first level, if, exit massage protection state, the value of the abnormal timing module of button is set to the second initial value, return to execution step S2, otherwise the output pin in described I/O unit is set to the first level, the value of described button forbidding timing module is set to the first initial value, returns to execution step S2;
Step S7: described dynamic token is forbidden described input interrupt location, output pin in described I/O unit is set to second electrical level, and whether the input pin detecting in described I/O unit is the first level, if, perform step S8, otherwise execution step S9;
Step S8: described dynamic token is set to the second initial value by the value of the abnormal timing module of described button, returns to execution step S2;
Step S9: described dynamic token upgrades the value of the abnormal timing module of described button, and judge whether the value of the abnormal timing module of described button reaches the second Fujian value, if so, performs step S10, otherwise return to execution step S2;
Step S10: described dynamic token enters massage protection state, the output pin in described I/O unit is set to the first level, and the value of described button forbidding timing module is set to the first initial value;
Step S11: described dynamic token is closed display screen, is set to resting state by the state of described dynamic token, returns to execution step S2.
14. methods according to claim 13, it is characterized in that, described step S1 also comprises: described dynamic token wakes described input up sign and resets, described timing wake-up sign is resetted, the value of described button forbidding timing module is set to the first initial value, the value of the abnormal timing module of described button is set to the second initial value.
15. methods according to claim 13, is characterized in that, described button forbidding timing module is synchronizeed with described clock unit, and when described clock unit increases by 1 second, the value of described button forbidding timing module is corresponding increases by 1 second.
16. methods according to claim 13, is characterized in that, described button forbidding timing module and described clock unit are asynchronous, and when described clock unit increases by 1 second, the value of described button forbidding timing module is corresponding reduces 1 second.
17. methods according to claim 13, is characterized in that, the abnormal timing module of described button is synchronizeed with described clock unit, and when described clock unit increases by 1 second, the value of the abnormal timing module of described button is corresponding increases by 1 second.
18. methods according to claim 13, is characterized in that, the abnormal timing module of described button and described clock unit are asynchronous, and when described clock unit increases by 1 second, the value of the abnormal timing module of described button is corresponding reduces 1 second.
19. methods according to claim 13, it is characterized in that, in described step S1, described using the initial condition of the input pin in described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially: 1 pin of the button in described key-press module (Key1) is connected with VCC by resistance (R1), the initial condition of the input pin in described I/O unit (K1) is high level, and the output pin of described I/O unit (K2) is initialized as to low level.
20. methods according to claim 19, is characterized in that, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1) detecting in described I/O unit is high level.
21. methods according to claim 13, it is characterized in that, in described step S1, described using the initial condition of the input pin in described I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, be specially: 1 pin of the button in described key-press module (Key1) is connected with GND by resistance (R1), the initial condition of the input pin in described I/O unit (K1) is low level, and the output pin of described I/O unit (K2) is initialized as to high level.
22. methods according to claim 21, is characterized in that, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1) detecting in described I/O unit is low level.
23. methods according to claim 13, it is characterized in that, in described step S1, described using the initial condition of the input pin in I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, is specially:
1 pin of the button in described key-press module (Key1, Key2, Key3, Key4) connects VCC by described resistance (R4), the initial condition of the input pin in described I/O unit (K1) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in described key-press module (Key5, Key6, Key7, Key8) connects VCC by described resistance (R3), the initial condition of the input pin in described I/O unit (K2) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in described key-press module (Key9, Key10, Key11, Key12) connects VCC by described resistance (R2), the initial condition of the input pin in described I/O unit (K3) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level;
1 pin of the button in described key-press module (Key13, Key14, Key15, Key16) connects VCC by described resistance (R1), the initial condition of the input pin in described I/O unit (K4) is high level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to low level.
24. methods according to claim 23, it is characterized in that, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1, K2, K3, K4) detecting in described I/O unit is high level.
25. methods according to claim 13, it is characterized in that, in described step S1, described using the initial condition of the input pin in I/O unit as the first level, the output pin of described I/O unit is initialized as to second electrical level, is specially:
1 pin of the button in described key-press module (Key1, Key2, Key3, Key4) is connected with GND by resistance (R4), the initial condition of the input pin in described I/O unit (K1) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in described key-press module (Key5, Key6, Key7, Key8) is connected with GND by resistance (R3), the initial condition of the input pin in described I/O unit (K2) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in described key-press module (Key9, Key10, Key11, Key12) is connected with GND by resistance (R2), the initial condition of the input pin in described I/O unit (K3) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level;
1 pin of the button in described key-press module (Key13, Key14, Key15, Key16) is connected with GND by resistance (R1), the initial condition of the input pin in described I/O unit (K4) is low level, and the output pin of described I/O unit (K5, K6, K7, K8) is initialized as to high level.
26. methods according to claim 25, it is characterized in that, whether the input pin in the described I/O unit of described detection is the first level, is specially: whether the input pin (K1, K2, K3, K4) detecting in described I/O unit is low level.
27. methods according to claim 13, is characterized in that, described step S1 also comprises: massage protection sign is resetted;
In described step S4, described in judge whether, in massage protection state, to be specially: judge that described massage protection identifies whether set, if so, described dynamic token is in massage protection state, otherwise described dynamic token is not in massage protection state;
In described step S6, described in exit massage protection state, be specially: described massage protection sign is resetted;
In described step S10, described in enter massage protection state, be specially: by the set of described massage protection sign.
CN201310658897.2A 2013-12-09 2013-12-09 Dynamic token with key protection function and working method thereof Expired - Fee Related CN103684785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310658897.2A CN103684785B (en) 2013-12-09 2013-12-09 Dynamic token with key protection function and working method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310658897.2A CN103684785B (en) 2013-12-09 2013-12-09 Dynamic token with key protection function and working method thereof

Publications (2)

Publication Number Publication Date
CN103684785A true CN103684785A (en) 2014-03-26
CN103684785B CN103684785B (en) 2017-01-18

Family

ID=50321179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310658897.2A Expired - Fee Related CN103684785B (en) 2013-12-09 2013-12-09 Dynamic token with key protection function and working method thereof

Country Status (1)

Country Link
CN (1) CN103684785B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016065778A1 (en) * 2014-10-28 2016-05-06 飞天诚信科技股份有限公司 Operating method for one-time password with updatable seed
WO2016082317A1 (en) * 2014-11-25 2016-06-02 飞天诚信科技股份有限公司 Dynamic token having log function and working method therefor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500232A (en) * 2009-03-13 2009-08-05 北京华大智宝电子***有限公司 Method and system for implementing dynamic identity authentication
US20100250957A1 (en) * 2005-09-09 2010-09-30 University Of South Florida Method of Authenticating a User on a Network
CN202268898U (en) * 2011-10-08 2012-06-06 北京集联网络技术有限公司 Electronic dynamic token vibration waking circuit and device thereof
CN103227720A (en) * 2013-03-12 2013-07-31 飞天诚信科技股份有限公司 Key processing method applied to dynamic token

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250957A1 (en) * 2005-09-09 2010-09-30 University Of South Florida Method of Authenticating a User on a Network
CN101500232A (en) * 2009-03-13 2009-08-05 北京华大智宝电子***有限公司 Method and system for implementing dynamic identity authentication
CN202268898U (en) * 2011-10-08 2012-06-06 北京集联网络技术有限公司 Electronic dynamic token vibration waking circuit and device thereof
CN103227720A (en) * 2013-03-12 2013-07-31 飞天诚信科技股份有限公司 Key processing method applied to dynamic token

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016065778A1 (en) * 2014-10-28 2016-05-06 飞天诚信科技股份有限公司 Operating method for one-time password with updatable seed
WO2016082317A1 (en) * 2014-11-25 2016-06-02 飞天诚信科技股份有限公司 Dynamic token having log function and working method therefor
US10162949B2 (en) * 2014-11-25 2018-12-25 Feitian Technologies Co., Ltd. Dynamic token having log function and working method therefor

Also Published As

Publication number Publication date
CN103684785B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US10402621B2 (en) Finger print state integration with non-application processor functions for power savings in an electronic device
US20150215441A1 (en) Method and device for operating mobile terminal based on sensor, and mobile terminal
US20090289908A1 (en) Touch detecting device capable of saving electricity
CN103312517B (en) A kind of Dualpurpose installation shares the implementation method of display screen and button
CN110424831B (en) Low-power consumption intelligence lock
CN106250747B (en) Information processing method and electronic equipment
CN103066969B (en) A kind of electronic equipment with crash reset function
WO2014173244A1 (en) Working method of smart key device
CN104503569A (en) Electronic equipment and awakening method thereof
CN104007988A (en) Computer startup and shutdown method and computer
US20220256928A1 (en) Electronic cigarette having electronic child lock and controlling method thereof
CN109416742A (en) Fingerprint mould group touches wake-up module, door lock
WO2015180607A1 (en) Terminal
CN110888724A (en) Method and device for setting personal differentiation, electronic equipment and readable storage medium
CN105701394A (en) Anti-addiction method and terminal
CN107724808B (en) A kind of coded lock touch control system of the key containing doorbell and the coded lock of the key containing doorbell
CN104836869A (en) Mobile communication terminal and mobile communication terminal power-on method
CN106484186B (en) A kind of system wake-up method and device
US8844818B2 (en) Magnetic stripe reader
WO2014183500A1 (en) Working method of dynamic token
CN103684785A (en) Dynamic token with key protection function and working method thereof
CN105739986A (en) Terminal wakeup method and terminal
CN107463384A (en) A kind of mobile device and method for start-up and shutdown
CN201562144U (en) Electronic equipment capable of being switched between high and low energy consumption modes and electronic photo frame comprising the same
TWM446935U (en) A device for wake up a system and the computer system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170118

CF01 Termination of patent right due to non-payment of annual fee