CN102307101B - Method and device for processing dynamic token and trigger signal of dynamic token - Google Patents
Method and device for processing dynamic token and trigger signal of dynamic token Download PDFInfo
- Publication number
- CN102307101B CN102307101B CN201110268218.1A CN201110268218A CN102307101B CN 102307101 B CN102307101 B CN 102307101B CN 201110268218 A CN201110268218 A CN 201110268218A CN 102307101 B CN102307101 B CN 102307101B
- Authority
- CN
- China
- Prior art keywords
- triggering signal
- vibration switch
- counter
- triggering
- module
- 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.)
- Expired - Fee Related
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
The invention discloses a method and device for processing a dynamic token and a trigger signal of the dynamic token. The method for processing the trigger signal of the dynamic token comprises the following steps: receiving a trigger signal generated by a vibration switch, wherein the vibration switch is arranged in the dynamic token and can generate a trigger signal when the shell of the dynamic token is knocked; judging whether the trigger signal is valid; and when the trigger signal is valid, generating a dynamic password according to the trigger signal. The invention provides a button-free novel dynamic token with a totally-enclosed shell.
Description
Technical field
The present invention relates to information security field, in particular to a kind of dynamic token and triggering signal processing method thereof and device.
Background technology
Dynamic token is a kind of special device for generating dynamic password, usually exist in the form of hardware, be built-in with microprocessor chip, for the treatment of data and run special cryptographic algorithm, and generating current dynamic password according to the factor such as current time or access times, display is on a display screen.
But the dynamic token user operation mode of existing kind is single, and experience sense is poor.For above problem, at present effective solution is not yet proposed.
Summary of the invention
Main purpose of the present invention is to provide a kind of dynamic token and triggering signal processing method thereof and device, to solve the problem of dynamic token Consumer's Experience sense difference.
To achieve these goals, according to an aspect of the present invention, provide a kind of triggering signal processing method of dynamic token, comprise: receive the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produces triggering signal when the shell of dynamic token is subject to percussion; Judge that whether triggering signal is effective; And when triggering signal is effective, generate dynamic password according to triggering signal.
Further, before generating dynamic password according to triggering signal, the method also comprises: judge that whether triggering signal is effective, wherein, generates dynamic password and comprises: when triggering signal is effective, generate dynamic password according to triggering signal according to triggering signal.
Further, judge whether triggering signal effectively comprises: judge whether the set number of times triggering mark is greater than the first preset value, wherein, trigger mark and automatically carry out set after receiving triggering signal; And when whether the set number of times triggering mark is greater than the first preset value, determine that triggering signal is effective.
Further, whether the set number of times judging to trigger mark is greater than the first preset value comprises: when receiving the triggering signal that vibration switch produces, and controls timer and resets and start timing and control the first counter O reset and start counting; Judge to trigger mark whether set; When triggering flag set, controlling the first counter and adding 1; After the first counter adds 1, control to trigger Flag Reset; When the timing time value of timer reaches the first Preset Time, detect the value of the first counter; And judge whether the value of the first counter is greater than the first preset value.
Further, whether the set number of times judging to trigger mark is greater than the first preset value comprises: when receiving the triggering signal that vibration switch produces, and controls the second counter O reset and starts counting and control the 3rd counter O reset and start counting; Judge to trigger mark whether set; Determining to trigger mark whether after set, controlling the second counter and adding 1; When triggering flag set, controlling the 3rd counter and adding 1; After the 3rd counter adds 1, control to trigger Flag Reset; When the value of the second counter reaches the second preset value, detect the value of the 3rd counter; And judge whether the value of the 3rd counter is greater than the first preset value.
Further, judge whether triggering signal effectively comprises: judge whether triggering signal remains on predetermined level in the second Preset Time; And if triggering signal remains on predetermined level in the second Preset Time, determine that triggering signal is effective.
Further, when triggering signal is effective, the method also comprises: forbidding vibration switch; Detect the time that vibration switch is disabled; And vibration switch disabled time more than the 3rd Preset Time time, lift a ban vibration switch.
Further, before judging that whether triggering signal is effective, the method also comprises: judge that whether vibration switch is disabled, wherein, judges whether triggering signal effectively comprises: when vibration switch does not have disabled, judges that whether triggering signal is effective.
To achieve these goals, according to a further aspect in the invention, provide a kind of triggering signal processing unit of dynamic token, comprise: receiver module, for receiving the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produces triggering signal when the shell of dynamic token is subject to percussion; First judge module, for judging that whether triggering signal is effective; And generation module, for when triggering signal is effective, generate dynamic password according to triggering signal.
Further, the first judge module comprises: first judges submodule, for judging whether the set number of times triggering mark is greater than the first preset value, wherein, triggering mark and automatically carrying out set after receiving described triggering signal; And first determines submodule, during for being greater than the first preset value at the set number of times triggering mark, determine that triggering signal is effective.
Further, first judges that submodule comprises: first controls little module, for when receiving the triggering signal that vibration switch produces, controlling timer and resets and start timing and control the first counter O reset and start counting; First judges little module, triggers mark whether set for judging; Second controls little module, for when triggering flag set, controlling the first counter and adding 1; 3rd controls little module, for after the first counter adds 1, controls to trigger Flag Reset; First detects little module, for when the timing time of timer reaches the first Preset Time, and the value of detection counter; And second judges little module, for judging whether the value of the first counter is greater than the first preset value.
Further, first judges that submodule comprises: the 4th controls little module, for when receiving the triggering signal that vibration switch produces, controlling the second counter O reset and starts counting and control the 3rd counter O reset and start counting; 3rd judges little module, triggers mark whether set for judging; 5th controls little module, for determining to trigger mark whether after set, controlling the second counter and adding 1; 6th controls little module, for when triggering flag set, controlling the 3rd counter and adding 1; 7th controls little module, for after the 3rd counter adds 1, controls to trigger Flag Reset; Second detects little module, for when the value of the second counter reaches the second preset value, detects the value of the 3rd counter; And the 4th judges little module, for judging whether the value of the 3rd counter is greater than the first preset value.
Further, the first judge module comprises: second judges submodule, for judging whether triggering signal remains on predetermined level in the second Preset Time; And second determines submodule, if remain on predetermined level for triggering signal in the second Preset Time, determine that triggering signal is effective.
Further, this device also comprises: disabled module, for forbidding vibration switch; Detection module, for detecting the vibration switch disabled time; And lift a ban module, for vibration switch disabled time more than the 3rd Preset Time time, lift a ban vibration switch.
Further, this device also comprises: the second judge module, and for judging that whether vibration switch is disabled, the first judge module is used for when vibration switch does not have disabled, judges that whether triggering signal is effective.
To achieve these goals, according to a further aspect in the invention, provide a kind of dynamic token, comprising: vibration switch, for producing triggering signal when the shell of dynamic token is subject to percussion; CPU, is connected with vibration switch, for judging that whether triggering signal is effective, and generates dynamic password when triggering signal is effective according to triggering signal; And display screen, be connected with CPU, for showing dynamic password.
Further, vibration switch comprises: first interface, for being connected with CPU; And second interface, for ground connection, wherein, between first interface and CPU, be provided with first node, first node connects power supply via resistance.
Further, between the second interface and ground, be provided with Section Point, Section Point is connected with first node via electric capacity.
By the present invention, adopt the triggering signal processing method of the dynamic token comprised the following steps: receive the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produce triggering signal when the shell of dynamic token is subject to percussion; Judge that whether triggering signal is effective; And when triggering signal is effective, dynamic password is generated according to triggering signal, user, when using this dynamic token, generates dynamic password by its shell of percussion, simple to operate, experience sense is good, and in the totally enclosed situation of shell, receive triggering signal, can waterproof antistatic, simultaneously before generation dynamic password, triggering signal is carried out to the judgement of validity, eliminate the error signal produced due to misoperation.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shows the flow chart of the triggering signal processing method of the dynamic token that embodiment 1 provides;
Fig. 2 shows the flow chart of the triggering signal processing method of the dynamic token that embodiment 2 provides;
Fig. 3 shows the flow chart of the triggering signal processing method of the dynamic token that embodiment 3 provides;
Fig. 4 shows the block diagram of the triggering signal processing unit of the dynamic token that embodiment 4 provides;
Fig. 5 shows the block diagram of the triggering signal processing unit of the dynamic token that embodiment 5 provides;
Fig. 6 shows the composition schematic diagram of the dynamic token that embodiment 6 provides;
The dynamic token that Fig. 7 shows embodiment 6 to be provided produces the first circuit diagram of triggering signal;
Fig. 8 shows the oscillogram of the triggering signal of correspondence first circuit diagram in Fig. 7;
The dynamic token that Fig. 9 shows embodiment 6 to be provided produces the second circuit figure of triggering signal;
Figure 10 shows the oscillogram of the triggering signal of the corresponding second circuit figure in Fig. 9;
Figure 11 shows the block diagram of the dynamic token that embodiment 7 provides;
Figure 12 shows the dynamic token course of work flow chart that embodiment 8 provides;
Figure 13 shows the flow chart that embodiment 8 provides middle forbidding vibration switch; And
Figure 14 shows the dynamic token course of work flow chart that embodiment 9 provides.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Embodiment 1
Fig. 1 shows the flow chart of the triggering signal processing method of the dynamic token that embodiment 1 provides, and as shown in Figure 1, the method comprises following step S001 to step S003;
Step S001: receive the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produce triggering signal when the shell of dynamic token is subject to percussion.
Step S002: judge that whether triggering signal is effective.
After the triggering signal receiving vibration switch generation, first judge that whether this triggering signal is effective.Judge effectively to be realized by the mode of software or software and hardware combining.
Step S003: when triggering signal is effective, generates dynamic password according to triggering signal.
Adopt the mode of this embodiment, dynamic password can be generated by percussion dynamic token shell, simple to operate, and in the totally enclosed situation of shell, receive triggering signal, can waterproof antistatic, simultaneously before generation dynamic password, triggering signal is carried out to the judgement of validity, eliminate the error signal produced due to misoperation.
Embodiment 2
Fig. 2 shows the flow chart of the triggering signal processing method of the dynamic token that embodiment 2 provides, and as shown in Figure 2, the method comprises following step S101 to step S103:
Step S101: receive the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produce triggering signal when the shell of dynamic token is subject to percussion.
Step S102, judges whether the set number of times triggering mark is greater than the first preset value, wherein, triggers mark and automatically carry out set after receiving triggering signal.When the set number of times triggering mark is greater than the first preset value, perform step S103, otherwise perform step S101.
In the course of work of dynamic token, easily producing error signal by missing percussion, in order to identify effective triggering signal, between step S101 and step S103, carrying out step S102.
The validity of triggering signal why can be judged by the set number of times triggering mark, be because the triggering signal that dynamic token receives after being subject to a trigger action is converted by multiple low and high level form, namely there is several rising edges and trailing edge within a certain period of time.Valid function and the misoperation of comparing user can be learnt, the rising edge that the rising edge that valid function produces and trailing edge number produce when being greater than misoperation and trailing edge number, therefore, it is possible to identified the validity of triggering signal by rising edge number or trailing edge number.Further, when the CPU of dynamic token samples trailing edge signal (and meeting interrupt condition), trigger the automatic set of mark meeting once, the set number of times thus by triggering mark just can know the trailing edge number of triggering signal.
To sum up, whether be greater than the first preset value by the set number of times judging to trigger mark and judge that whether triggering signal is effective, the validity of triggering signal can be determined accurately, do not need to increase related hardware, Financial cost is low, improve the precision of dynamic token, avoid the mistake display caused owing to identifying error signal.
Step S103: generate dynamic password according to triggering signal.
In this embodiment, the shell of dynamic token is totally enclosed, dynamic token inside arranges vibration switch, first the triggering signal of vibration switch is received, this triggering signal produces when the shell of dynamic token is subject to percussion, secondly dynamic password is generated according to this triggering signal computing, also can generate the order of closing dynamic password display simultaneously, show dynamic password after receiving triggering signal under the state that dynamic token is closed at display screen, receive triggering signal under the state of display screen display dynamic password after, stop display.
Wherein, step S102 specifically can be realized by the step of the following two kinds mode:
Mode one: when receiving the triggering signal that vibration switch produces, controls timer and resets and start timing and control the first counter O reset and start counting; Judge to trigger mark whether set; When triggering flag set, controlling the first counter and adding 1; After the first counter adds 1, control to trigger Flag Reset; When the timing time value of timer reaches the first Preset Time, detect the value of the first counter; And judge whether the value of the first counter is greater than the first preset value.In above-mentioned performing step, the counting of the first counter is the set number of times triggering mark.
Mode two: when receiving the triggering signal that vibration switch produces, controls the second counter O reset and starts counting and control the 3rd counter O reset and start counting; Judge to trigger mark whether set; Determining to trigger mark whether after set, controlling the second counter and adding 1; When triggering flag set, controlling the 3rd counter and adding 1; After the 3rd counter adds 1, control to trigger Flag Reset; When the value of the second counter reaches the second preset value, detect the value of the 3rd counter; And judge whether the value of the 3rd counter is greater than the first preset value.In above-mentioned performing step, the counting of the 3rd counter is the set number of times triggering mark.
Embodiment 3
Fig. 3 shows the flow chart of the triggering signal processing method of the dynamic token that embodiment 3 provides, and as shown in Figure 3, the method comprising the steps of S301 is to step S303:
Step S301: receive the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produce triggering signal when the shell of dynamic token is subject to percussion;
Step S302, judges whether triggering signal remains on predetermined level in the second Preset Time, if triggering signal remains on predetermined level in the second Preset Time, then performs step S303, otherwise performs step S301;
In the course of work of dynamic token, easily producing error signal by missing percussion, in order to identify effective triggering signal, between step S301 and step S303, also comprising step S302.
Vibration switch itself produce triggering signal by frequency translation faster low and high level form, by hardware circuit, this triggering signal is processed, thus decision logic can be simplified in the step judging triggering signal.Concrete hardware circuit can be realized by the circuit connecting mode shown in Fig. 9.
By in the second Preset Time, continue to judge whether triggering signal remains on predetermined level, judge that whether triggering signal is effective, can determine the validity of triggering signal accurately, decision logic is simple, realizes easily.By step S302, improve the precision of dynamic token, avoid the mistake display caused owing to identifying error signal.
Step S303: generate dynamic password according to triggering signal.
In order to prevent dynamic token when identifying that triggering signal generates dynamic password, short time internal trigger signal is again identified and produces misoperation, preferably, in the embodiment 2 provided in this embodiment and embodiment 3, further comprising the steps of:
S1: forbidding vibration switch; S2: detect the time that vibration switch is disabled; And S3: vibration switch disabled time more than the 3rd Preset Time time, lift a ban vibration switch.
Wherein, vibration switch, after step S102 and step S302, after determining that triggering signal effectively, is forbidden by step 102 and step 302 by step S1.After forbidding, step S2 just starts the time detecting forbidding, as long as the forbidding time is more than the 3rd Preset Time, just perform step S3, the 3rd Preset Time is the forbidding time of vibration switch, is also the operating interval time of dynamic token.
Producing misoperation to prevent dynamic token from receiving error signal when vibration switch is disabled, preferably, in the embodiment 2 provided in this embodiment and embodiment 3, also comprising step S4: judge that whether vibration switch is disabled.This step, before step S102 and step S302, when vibration switch does not have disabled, is just carried out step S102 and step S302 to judge the validity of triggering signal, if vibration switch is disabled, is returned step S101 and step S301.By step S4, the misoperation of dynamic token can be reduced, also can reduce the processing load of CPU.
Embodiment 4
Fig. 4 shows the block diagram of the triggering signal processing unit of the dynamic token that embodiment 4 provides, as shown in Figure 4, this processing unit comprises: receiver module 10, for receiving the triggering signal that vibration switch produces, wherein, vibration switch is arranged in dynamic token, and produces triggering signal when the shell of dynamic token is subject to percussion; First judge module 20, for judging that whether triggering signal is effective; And generation module 30, for when triggering signal is effective, generate dynamic password according to triggering signal.
In this embodiment, the shell of dynamic token is totally enclosed, vibration switch and this triggering signal processing unit are set in dynamic token inside, the triggering signal from vibration switch is received by receiver module 10, before generation module 30 works, judge that whether triggering signal is effective by the first judge module 20, dynamic password is generated when triggering signal is effective according to this triggering signal computing by generation module 30, also can generate the order of closing dynamic password display simultaneously, dynamic password is shown after receiving triggering signal under the state that dynamic token is closed at display screen, display is stopped receive triggering signal under the state of display screen display dynamic password after.In the course of work of dynamic token, easily producing error signal by by mistake percussion, in order to identify effective triggering signal, and not going the triggering signal that identifies that misoperation dynamic token produces, normal necessary to judging between right and wrong of triggering signal validity.
Adopt this execution mode, dynamic password can be generated by its shell of percussion, simple to operate, and in the totally enclosed situation of shell, receive triggering signal, can waterproof antistatic, simultaneously before generation dynamic password, triggering signal is carried out to the judgement of validity, ensure that the precision of dynamic token, avoid the mistake display caused owing to identifying error signal.
Embodiment 5
The triggering signal processing unit of the dynamic token that embodiment 5 provides is the specific implementation of embodiment 4, and as shown in Figure 5, this processing unit comprises: receiver module 10, for receiving the triggering signal that vibration switch produces; First judge module 20, for judging that whether triggering signal is effective; And generation module 30, for when triggering signal is effective, generate dynamic password according to triggering signal.Wherein, when judging that whether triggering signal is effective, can be realized by the mode of software mode or software and hardware combining.
Mode one: the first judge module 20 comprises: first judges submodule 21, for judging whether the set number of times triggering mark is greater than the first preset value, wherein, triggering mark and automatically carrying out set after receiving triggering signal; And first determines submodule 23, during for being greater than the first preset value at the set number of times triggering mark, determine that triggering signal is effective.This first preset value presets according to the arithmetic speed of CPU and the sensitivity of dynamic token, need to test out suitable preset value in concrete hardware environment, adopt this execution mode, from the own feature of triggering signal that vibration switch produces, can determine that whether triggering signal is effective accurately, and do not need to increase related hardware, Financial cost is low.
Mode two: the first judge module 20 comprises: second judges submodule 25, for judging whether triggering signal remains on predetermined level in the second Preset Time; And second determines submodule 27, if remain on predetermined level for triggering signal in the second Preset Time, determine that triggering signal is effective.Adopt this execution mode, need by hardware, the triggering signal that vibration switch produces to be converted, triggering signal is changed to and remains predetermined level (also can be able to be high level for low level) within a certain period of time, then in conjunction with Logic judgment, can determine that whether triggering signal is effective accurately, and decision logic is simple, realize easily, any connected mode that concrete hardware connection mode can adopt for those skilled in the art, preferably, can be realized by the circuit connecting mode shown in Fig. 9.
First judges that submodule 21 can be realized by following two kinds of modes:
Mode one, first judges that submodule 21 comprises: first controls little module, for when receiving the triggering signal that vibration switch produces, controlling timer and resets and start timing and control the first counter O reset and start counting; First judges little module, triggers mark whether set for judging; Second controls little module, for when triggering flag set, controlling the first counter and adding 1; 3rd controls little module, for after the first counter adds 1, controls to trigger Flag Reset; First detects little module, for when the timing time of timer reaches the first Preset Time, and the value of detection counter; And second judges little module, for judging whether the value of the first counter is greater than the first preset value.
In this approach, when receiving the triggering signal of vibration switch generation, the first counter just resets and again counts, and timer resets reclocking, and trigger flag set once, the first rolling counters forward adds 1, simultaneously timer timing again.When timer reaches the first Preset Time, the counting inquiring about the first counter obtains the set number of times triggering mark, makes the first judgement submodule 21 judge to trigger the set number of times of mark with the first prefixed time interval.
Mode two, first judges that submodule 21 comprises: the 4th controls little module, for when receiving the triggering signal that vibration switch produces, controlling the second counter O reset and starts counting and control the 3rd counter O reset and start counting; 3rd judges little module, triggers mark whether set for judging; 5th controls little module, for determining to trigger mark whether after set, controlling the second counter and adding 1; 6th controls little module, for when triggering flag set, controlling the 3rd counter and adding 1; 7th controls little module, for after the 3rd counter adds 1, controls to trigger Flag Reset; Second detects little module, for when the value of the second counter reaches the second preset value, detects the value of the 3rd counter; And the 4th judges little module, for judging whether the value of the 3rd counter is greater than the first preset value.
In this approach, when receiving the triggering signal of vibration switch generation, the second counter and the 3rd counter all reset and again count, wherein, for recording the 3rd, second counter judges that little module judges to trigger the number of times of mark whether set, the 3rd counter triggers the set number of times of mark for recording.When the second counter reaches the second preset value, the counting of inquiry the 3rd counter obtains the set number of times triggering mark, makes the first judgement submodule 21 after the second preset value set judges, judge to trigger the set number of times of mark.
In order to prevent dynamic token when identifying that triggering signal generates dynamic password, short time internal trigger signal is again identified and produces misoperation, and this processing unit also comprises: disabled module, for forbidding vibration switch; Detection module, for detecting the vibration switch disabled time; And lift a ban module, for vibration switch disabled time more than the 3rd Preset Time time, lift a ban vibration switch, wherein, the 3rd Preset Time is the forbidding time of vibration switch, is also the operating interval time of dynamic token, can this time be pre-stored in the counter of CPU, adopt the mode that change counter in time reduces gradually, when counter is reduced to 0, namely lifts a ban module and vibration switch is lifted a ban.
In the triggering signal processing unit of dynamic token being provided with disabled module, this device also comprises: the second judge module, for judging that whether vibration switch is disabled, the first judge module 20, for when vibration switch does not have disabled, judges that whether triggering signal is effective.When receiver module 10 receives triggering signal, first the second judge module judges that whether vibration switch is disabled, when vibration switch is disabled, illustrates that this triggering signal is invalid signals, does not do any process; When vibration switch does not have disabled, the first judge module 20 judges the validity of triggering signal.Adopt this preferred implementation, the misoperation of dynamic token can be reduced, also can reduce the processing load of CPU.
Embodiment 6
Fig. 6 is the composition schematic diagram of the dynamic token according to the embodiment of the present invention 6, and as shown in Figure 6, this dynamic token comprises: vibration switch K1, and for producing triggering signal when the shell of dynamic token is subject to percussion, wherein, the shell of dynamic token is totally enclosed; Central processing unit (i.e. CPU) U1, is connected with vibration switch K1, for judging that whether triggering signal is effective, and generates dynamic password when triggering signal is effective according to triggering signal; And display screen X1, be connected with CPU, for showing dynamic password.Meanwhile, when display screen X1 shows dynamic password, central processing unit U1 also can generate according to triggering signal the order stopping display dynamic password, makes display screen X1 become stopping show state from show state.
Wherein, the concrete connected mode of vibration switch K1 and CPU can be realized by following two kinds of modes:
Mode one: Fig. 7 shows the first circuit diagram that dynamic token that embodiment 6 provides produces triggering signal, and as shown in Figure 7, vibration switch K1 comprises: first interface 1, for being connected of central processing unit U1; And second interface 2, for ground connection GND, wherein, be provided with first node A between first interface and CPU, first node A meets power supply VCC via pull-up resistor R2, alternatively, this central processing unit is single-chip microcomputer, and vibration switch K1 is connected with the input of single-chip microcomputer via first interface 1, and vibration switch K1 is when trigger state, by first interface 1, triggering signal is delivered to central processing unit U1, circuit realiration is simple.
The principle of this circuit is as follows: with the KEY point place shown in Fig. 7 for signal sampling point, state that vibration switch K1 is in " pressing ": the first interface 1 of vibration switch K1 and the second interface 2 conducting, signal sampling point KEY ground connection, now the level of signal sampling point KEY is low level; Vibration switch K1 is in " release " state: the first interface 1 of vibration switch K1 and the second interface 2 disconnect, and signal sampling point KEY meets power supply VCC, and now the level of signal sampling point KEY is high level.If arrange oscilloscope at sampled point KEY place, when vibration switch K1 is triggered, the oscillogram of the triggering signal that oscilloscope samples as shown in Figure 8, to sum up principle analysis and oscillogram can be found out, are equivalent to the process that a common key-press constantly repeats " press---release " at a terrific speed when vibration switch K1 works.
Vibration switch K1 just produces triggering signal when the shell of dynamic token is subject to percussion, therefore, in the use procedure of user, easily misses percussion and produces error signal.In order to make the effective triggering signal of dynamic token identification, the triggering signal that can receive dynamic token carries out Effective judgement, such as judge that vibration switch K1 repeats the number of times of " press---release ", when this number of times meets some requirements, determine that triggering signal is useful signal.
Mode two: increase electric elements further on the circuit connecting mode basis shown in Fig. 7, the dynamic token that Fig. 9 shows embodiment 6 to be provided produces the second circuit figure of triggering signal, as shown in Figure 9, between second interface 2 and ground GND of vibration switch K1, be provided with Section Point B, Section Point B is connected with first node A via filter capacitor C1.
The principle of this circuit is described below: state that vibration switch K1 is in " pressing ": the first interface 1 of vibration switch K1 and the second interface 2 conducting, signal sampling point KEY ground connection, now the level of signal sampling point KEY is low level, and the electric charge in filter capacitor C1 is directly discharged by earth point GND; Vibration switch K1 is in " release " state: the first interface 1 of vibration switch K1 and the second interface 2 disconnect, filter capacitor C1 is charged by pull-up resistor R1, make the voltage of signal sampling point KEY slowly increase, thus signal sampling point KEY still keep low level at certain hour.Preferably, filter capacitor C1=1uF, pull-up resistor R1=100K Ω.
Keep between low period at signal sampling point KEY, when vibration switch K1 is in " pressing " state again, filter capacitor C1 discharges; When vibration switch K1 is in " release " state again, filter capacitor C1 slowly charges again, makes again signal sampling point KEY maintain the low level of certain hour.In vibration switch K1 trigger process, the process that vibration switch K1 constantly repeats " press---release ", thus signal sampling point KEY samples the signal of approximate low level pulse, oscilloscope is set at signal sampling point KEY, the oscillogram of triggering signal can be obtained as shown in Figure 10.When CPU samples the level of signal sampling point KEY from high level to low level, and be similar to maintenance low level within a certain period of time, when returning to high level from low level again afterwards, determine that triggering signal is useful signal, now CPU recognizes a trigger action of vibration switch K1, thus computing generates dynamic password.
It should be noted that, it is low level that this embodiment is not limited to when vibration switch " is pressed ", it is high level time " release ", also can convert circuit, be high level when vibration switch " is pressed ", be low level time " release ", thus the input interface IO that vibration switch triggers rear CPU is high level.
Embodiment 7
Figure 11 shows the block diagram of the dynamic token that embodiment 7 provides, this embodiment offers a kind of dynamic token, vibration switch is introduced as trigger in this dynamic token, by percussion dynamic token trigger flip-flops, the triggering signal that the inner trigger to receiving of dynamic token produces does respective handling, and then getting effective triggering signal, computing generates dynamic password.
As shown in figure 11, dynamic token specifically comprises: trigger module 11, triggering signal processing module 12, acquisition module 13, computing module 14, display module 15 and power module 16.Wherein, triggering signal processing module 12 is equivalent to the triggering signal processing unit of the dynamic token that above-described embodiment 4 or embodiment 5 provide.
Trigger module 11, be connected with triggering signal processing module 12, be specially vibration switch, for generation of triggering signal, trigger CPU computing and generate dynamic password, and close the display of dynamic password for triggering CPU, in the present embodiment, when having dynamic password to show on the display screen of dynamic token, when dynamic token receives triggering signal again, trigger the display that CPU closes dynamic password on display screen;
Triggering signal processing module 12, be connected with acquisition module 13 with trigger module 11 respectively, preferably, in the present embodiment, dynamic token inside adopts software processing mode process triggering signal, correspondingly, triggering signal processing module 12 specifically comprises: arrange module 121, memory module 122, time block 123, counting module 124, judge module 125, writing module 126, reseting module 127, time delay module 128 and lift a ban module 129;
Module 121 is set, for arranging the forbidding time of vibration switch;
Memory module 122, specifically comprises the first memory cell 1221 and the second memory cell 1222;
First memory cell 1221, for storing the element information generating dynamic password;
Second memory cell 1222, is specially the first counter, for storing the time value of the forbidding time arranging the vibration switch that module 121 is arranged;
Time block 123, specifically comprises the first timing unit 1231 and the second timing unit 1232;
First timing unit 1231, is specially first timer, for controlling the forbidding time of vibration switch;
Second timing unit 1232, is specially second timer, for controlling the time of querying triggering mark;
Counting module 124, specifically comprises the first counting unit 1241 and the second counting unit 1242;
First counting unit 1241, is specially the second counter, for the number of times of counting inquiry to the triggering mark of set;
Second counting unit 1242, is specially the 3rd counter, triggers the cycle-index of mark for counting inquiry;
Judge module 125, specifically comprises the first judging unit 1251, second judging unit 1252, the 3rd judging unit 1253 and the 4th judging unit 1254;
First judging unit 1251, for judging that whether vibration switch is disabled;
Second judging unit 1252, for judging the whether set of the triggering mark that inquires;
3rd judging unit 1253, for judging whether the currency of second timer equals preset time value; Also for judging whether the currency in the 3rd counter equals default cycle-index value;
4th judging unit 1254, for judging whether the value in the second counter is greater than default comparison value;
Writing module 126, for writing the first initial value in the second counter, also for writing the second initial value in the 3rd counter;
Reseting module 127, for the triggering Flag Reset by CPU inside; For by the second counter resets; For second timer is resetted; Time delay module 128, for when the cycle-index of employing the 3rd rolling counters forward querying triggering mark, CPU is time delay certain hour in query script;
Lift a ban module 129, for being lifted a ban by disabled vibration switch;
In the present embodiment, triggering signal processing module 12 also realizes by hardware handles mode, particularly, become to be similar to the waveform of common key-press switch by the waveform transformation of the triggering signal of vibration switch by hardware handles mode, particularly, filter circuit is increased in vibration switch part, such as, RC filter circuit, CPU is by checking that single-chip microcomputer connects the level display at the input/output interface IO place of filter circuit, judge whether vibration switch completes once effectively to trigger, thus generate dynamic password.
Such as, preferably, be low level when pre-setting vibration switch conducting, it is high level during disconnection, after then CPU receives triggering signal, CPU checks that single-chip microcomputer connects the input/output interface IO place of filter circuit and whether maintains low level within a certain period of time, is, judges that this triggering signal is once effectively triggering of completing of vibration switch, otherwise ignores this time triggering.
In the present embodiment, trigger module 11 and triggering signal processing module 12 constitute characteristic point of the present invention, dynamic token inside is operated by hardware trigger and software responses mode exclusive PCR, gets effective triggering signal, triggers dynamic token computing and generates dynamic password.
Also must comprise with lower module during dynamic token work, be specially:
Acquisition module 13, is connected with triggering signal processing module 12, for obtaining the element information generating dynamic password from the first memory cell 1221;
Computing module 14, is connected with acquisition module 13, generates dynamic password for the element information computing obtained according to acquisition module 13;
Display module 15, is connected with computing module 14, for showing the dynamic password that computing module 14 computing generates;
Power module 16, for when dynamic token works for it provides power supply.
Embodiment 8
Figure 12 shows the dynamic token course of work flow chart that embodiment 8 provides, and this embodiment offers a kind of processing method of triggering signal.By software processing mode, respective handling is carried out to the triggering signal that vibration switch produces in the method, make the effective triggering signal of dynamic token identification, again can not identify the triggering signal that vibration switch produces and the operation that leads to errors at short notice, thus computing generates dynamic password.Being low level when presetting vibration switch conducting, is high level during disconnection.
See Figure 12, processing method specifically comprises:
Step 201:CPU receives triggering signal,
Particularly, in the present embodiment, triggering signal is the button triggering signal that vibration switch produces, when dynamic token is subject to foreign impacts, trigger the operation that vibration switch constantly repeats conducting and disconnection, produce triggering signal, wherein, foreign impacts is dynamic token percussion books, dynamic token percussion desktop or dynamic token are from falling the impact etc. be subject in the air, due to the characteristic of vibration switch self, the triggering signal that dynamic token receives after being subject to a trigger action is converted by multiple low and high level and forms, namely there is several rising edges and trailing edge within a certain period of time, when CPU detects a trailing edge, inner triggering indicates automatic set,
Step 202:CPU enters keys interrupt program;
Step 203:CPU judges that whether vibration switch is disabled, is, ignores this triggering signal, performs step 215, otherwise performs step 204,
Particularly, in the present embodiment, judge that the whether disabled method of vibration switch is: whether the currency judging the first counter in CPU is 0, or whether the currency judging first timer in CPU is 0, first counter is that CPU inside is arranged, and is used for controlling forbidding time of vibration switch; First timer is that CPU inside is arranged, and is used for controlling forbidding time of vibration switch;
Step 204:CPU will trigger Flag Reset,
Triggering mark is that CPU inside is provided with, preferably, in the present embodiment, triggering mark is interrupt flag bit, and in some applications, single-chip microcomputer has auto-reset function, interrupt identification is removed and is resetted by hardware of having no progeny in entering automatically, in such single-chip microcomputer, then do not perform step 204;
Step 205:CPU writes the first initial value in advance in the second counter, and the second counter is that CPU inside is arranged, and for the number of times of counting inquiry to the triggering mark of set, preferably, in the present embodiment, the first initial value in the second counter is 0;
Second timer resets by step 206:CPU, starts timing, and second timer is that CPU inside is arranged, for controlling the time of querying triggering mark;
Step 207:CPU judges whether the currency of second timer equals preset time value, is perform step 211, otherwise performs step 208, and preferably, in the present embodiment, preset time value is 130 milliseconds;
In embodiment 8, step 206 and step 207 also can realize in another way, and step 206 replaces with step 206 ', step 207 replaces with step 207 ', be specially:
Step 206 ': CPU writes the second initial value in advance in the 3rd counter, and the 3rd counter is that CPU inside is arranged, and for counting the cycle-index judging the whether set of querying triggering mark, preferably, in the present embodiment, the second initial value is 0;
Step 207 ': CPU judges the cycle-index the value whether currency in the 3rd counter equals default, is perform step 211, otherwise performs step 208, and preferably, cycle-index value is 256;
Step 208:CPU judges the whether set of the triggering mark that inquires, perform step 209, otherwise return step 207, particularly, in the present embodiment, vibration switch conducting once, then vibration switch completes and once triggers, correspondingly, when CPU receives the triggering signal of vibration switch and meets interrupt condition, trigger the automatic set of mark, particularly, in the present embodiment, when CPU samples trailing edge signal and meets interrupt condition, trigger the automatic set of mark, see Fig. 7, in circuit diagram, vibration switch K1 pin 2 ground connection, pin 1 connects the input 1 of single-chip microcomputer respectively and meets power supply VCC by pull-up resistor R1, oscilloscope is connected to oscilloscope sampled point Key, when vibration switch K1 is triggered, oscilloscope samples the waveform that this circuit produces.
Corresponding with the another kind of implementation in step 207, when employing the 3rd counter, step 208 replaces with step 208 '-1, step 208 '-2 and step 208 '-3, be specially:
Step 208 '-1:CPU judges the whether set of the triggering mark that inquires, is perform step 209, otherwise performs step 208 '-2;
Step 208 '-2:CPU trigger the 3rd counter add 1;
Step 208 ' the of short duration time delay certain hour of-3:CPU, return step 207, preferably, in the present embodiment, CPU time delay 100 microsecond.
Step 209:CPU triggers the second counter and adds 1, and particularly, in the present embodiment, when CPU samples a trailing edge, the value triggered in the second counter adds 1;
The triggering Flag Reset of set that step 210:CPU will inquire, performs step 207;
Step 211:CPU judges whether the currency in the second counter is greater than default comparison value, be that the trigger action of vibration switch is identified, perform step 212, otherwise ignore this interrupt operation, perform step 215, particularly, in the present embodiment, comparison value presets according to the arithmetic speed of CPU and the sensitivity of development goal, need to test out suitable comparison value in concrete hardware environment, preferably, in the present embodiment, comparison value is 3;
Step 212:CPU arranges the forbidding time of vibration switch, in seconds, and time value is stored in the first counter, particularly, in the present embodiment, after vibration switch operation is identified, CPU forbids vibration switch, misoperation is produced to prevent vibration switch operation to be at short notice again identified, the forbidding time of vibration switch, also it is the operating interval time of dynamic token, the time that must set in the counter of interval first during each operation dynamic token, preferably, in the present embodiment, the forbidding time of vibration switch is 2 seconds, correspondingly, the numerical value be stored in the first counter is 2,
Step 212 also can realize in another way, is specially:
Step 212 '-1:CPU arranges forbidding time of vibration switch, and in seconds, preferably, in the present embodiment, the forbidding time of vibration switch is 2 seconds;
Step 212 '-2:CPU is according to the initial value of the forbidding set of time first timer of vibration switch, start timing, particularly, in the present embodiment, the inner fixed cycle operator opened by software or suspend or close first timer of CPU, thus control the forbidding time of vibration switch, such as, in the present embodiment, the timing frequency of first timer is 64HZ, correspondingly, timing approximately needs 128 countings in 2 seconds; Preferably, adopt subtraction count, then the initial value of first timer is 128.
Second counter and second timer reset by step 213:CPU;
Step 214:CPU proceeds other operation of keys interrupt program, in the present embodiment, other of such as keys interrupt program is operating as, CPU generates dynamic password according to dynamic factor and algorithm computing and shows, wherein, the generating mode of dynamic password comprises time type, event mode and challenge response type;
Step 215:CPU exits keys interrupt program.
In this embodiment, step 204, step 205, step 206 interchangeable order.The inefficacy of vibration switch forbidding is controlled by interrupt routine second, and see Figure 13, the failure procedure of vibration switch forbidding comprises:
Step 2001:CPU judges whether to receive a second interruption pulse signal, is perform step 2002, otherwise continues to wait for, wherein, the generation per second of interruption pulse signal second once;
Step 2002:CPU enters a second interrupt routine;
Step 2003:CPU judges whether the numerical value in the first counter is 0, is that the forbidding of then vibration switch lost efficacy, performs step 2005, otherwise perform step 2004;
Step 2004:CPU triggers the first counter and subtracts 1, performs step 2005;
Step 2005: proceed second interrupt routine other operation, particularly, in the present embodiment, second interrupt routine other operational example as, it's 1 second etc. whether has past the review time;
Step 2006:CPU exits a second interrupt routine.
When CPU receives second interruption pulse again, again perform from step 2001.
In this enforcement, CPU often receive one second interruption pulse, enter once interrupt routine second, correspondingly, the first counter storing the forbidding time of vibration switch subtracts 1, until when the first counter storing the forbidding time of vibration switch is 0, the forbidding of vibration switch lost efficacy, CPU continues wait-receiving mode triggering signal, generates dynamic password.
In the present embodiment, corresponding with the another kind of implementation in step 212, when adopting first timer to control the forbidding time of vibration switch, second, interrupt routine did not carry out any operation relevant with vibration switch.
Embodiment 9
Figure 14 shows the dynamic token course of work flow chart that embodiment 9 provides, and this embodiment offers the processing method of another kind of triggering signal.In the method, filter circuit is increased in vibration switch part, become to be similar to the waveform of common key-press switch by hardware handles mode by the waveform transformation of the triggering signal of vibration switch, thus make the CPU of dynamic token accurately recognize effective triggering signal within a certain period of time.Being low level when presetting vibration switch conducting, is high level during disconnection.
First hardware handles part is introduced, see Fig. 9, in circuit diagram, pin 2 ground connection of vibration switch K1, pin 1 is connected to filter capacitor C1 respectively and ground connection, be connected to pull-up resistor R1 and meet power supply VCC, be connected to the input pin 1 of single-chip microcomputer, and oscilloscope can sample the waveform of the triggering signal of vibration switch K1 at oscilloscope sampled point Key.
The filter circuit course of work is as follows:
1, vibration switch K1 is not triggered state: signal sampling point Key is connected to power supply VCC by pull-up resistor R1, and now the level of sampled point Key is high level.
2, vibration switch K1 trigger state: see Fig. 6, the waveform collected when never meeting filter capacitor C1 can be found out, is equivalent to the process that a common key-press constantly repeats " press---release " at a terrific speed during vibration switch work.
State that vibration switch K1 is in " pressing ": pin 1,2 conducting of vibration switch K1, signal sampling point Key ground connection, now the level of signal sampling point Key is low level, and the electric charge in filter capacitor C1 is directly discharged by earth point GND;
Vibration switch K1 is in " release " state: 1,2 pin of vibration switch K1 disconnect, and filter capacitor C1 is charged by pull-up resistor R1, make the voltage of signal sampling point Key slowly increase, thus signal sampling point Key still keeps low level at certain hour.
Keep between low period at signal sampling point Key, when vibration switch K1 is in " pressing " state again, filter capacitor C1 discharges; When vibration switch K1 is in " release " state again, filter capacitor C1 slowly charges again, makes again signal sampling point Key maintain the low level of certain hour.The process that in vibration switch K1 trigger process, vibration switch K1 constantly repeats " press---release ", thus signal sampling point Key samples the signal of approximate low level pulse.When CPU samples the level of signal sampling point Key from high level to low level, and be similar to maintenance low level within a certain period of time, when returning to high level from low level again afterwards, CPU recognizes a trigger action of vibration switch K1, thus computing generates dynamic password.
In the present embodiment, preferably, in filter circuit, filter capacitor C1=1uF, pull-up resistor R1=100K Ω, see Fig. 7, is the waveform of the signal that oscilloscope is sampled by signal sampling point Key.
For above hardware circuit, the method that the signal crossed hardware handles carries out software process is as follows.The method is identified triggering signal by software processing mode, eliminates the impact of perturbation operation on dynamic token.Being low level when presetting vibration switch conducting, is high level during disconnection.
See Figure 14, processing method specifically comprises:
Step 401:CPU receives triggering signal, particularly, in the present embodiment, when CPU be checked through input/output interface IO become low level from high level time, when a trailing edge namely being detected, the interrupt identification of the automatic set inside of CPU;
Step 402:CPU enters keys interrupt program;
Step 403:CPU checks whether the input/output interface IO connecting single-chip microcomputer is low level, is perform step 404, otherwise this time interrupts, caused by interference, performing step 407;
Step 404:CPU time delay certain hour, particularly, in the present embodiment, waited for a period of time by CPU by delay function, thus make the dither process that CPU bypass signal is possible, preferably, in the present embodiment, delay time is 50 milliseconds, in the present embodiment, control CPU time delay also can realize in another way, utilizes the timer of CPU inside to realize time delay, is specially:
Arranging timer initial value → opening timing device → check whether timing, is continue next step, otherwise continuous circular test timing;
Step 405:CPU judges whether input/output interface IO is low level, is, vibration switch completes and once effectively triggers, and performs step 406, otherwise this time interruption producing cause may be interference, performs step 407;
Step 406:CPU continues other operation performing keys interrupt program, in the present embodiment, other of such as keys interrupt program is operating as according to current dynamic factor and algorithm computing generation dynamic password etc., wherein, the generating mode of dynamic password comprises time type, event mode and challenge response type;
Step 407:CPU reset interrupt mark, particularly, in the present embodiment, CPU adopts software reset's mode reset interrupt mark, in some applications, some single-chip microcomputer has auto-reset function, and interrupt identification is removed and resetted by hardware of having no progeny in entering automatically, in such single-chip microcomputer, then do not perform step 407;
Step 408:CPU exits keys interrupt program.
In the present embodiment, owing to not arranging the forbidding time of vibration switch, therefore dynamic token can continuous trigger.
Simultaneously, also can add the forbidding time as arranged vibration switch in embodiment 8 step 213 between step 405 and step 406 in the present embodiment, correspondingly, perform in second interrupt routine with in embodiment 8 second interrupt routine same operation, thus control the time interval of triggering vibration switch.
In the present embodiment, step 403 ~ 405 are the identifyings to triggering signal, in some applications, the present embodiment can be converted, after becoming vibration switch triggering, namely during conducting, corresponding input/output interface IO is high level, is low level during disconnection, correspondingly, corresponding in the present embodiment step 403 and step 405 item become and check whether as high level.
As can be seen from the above description, present invention achieves following technique effect: in this dynamic token, introduce vibration switch, trigger dynamic token by percussion dynamic token and generate dynamic password, make the simple to operate of dynamic token; The shell of this dynamic token is totally enclosed, can reach the effect of waterproof antistatic; Carry out Effective judgement to the triggering signal that dynamic token receives, make the effective triggering signal of dynamic token identification generate dynamic password, and do not go the triggering signal identifying the generation of misoperation dynamic token, accuracy is good.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. a triggering signal processing method for dynamic token, is characterized in that, comprising:
Receive the triggering signal that vibration switch produces, wherein, described vibration switch is arranged in described dynamic token, and produces triggering signal when the shell of described dynamic token is subject to percussion; Described dynamic token is closed;
Judge that whether described triggering signal is effective;
When described triggering signal is effective, generate dynamic password according to described triggering signal;
Wherein, judge whether described triggering signal effectively comprises:
Judge whether the set number of times triggering mark is greater than the first preset value, wherein, described triggering mark automatically carries out set after receiving described triggering signal; And
When the described set number of times triggering mark is greater than described first preset value, determine that described triggering signal is effective;
Before judging that whether described triggering signal is effective, described method also comprises: judge that whether described vibration switch is disabled,
Wherein, judge whether described triggering signal effectively comprises: when described vibration switch does not have disabled, judge that whether described triggering signal is effective;
When described triggering signal is effective, described method also comprises:
Forbid described vibration switch;
Detect the time that described vibration switch is disabled; And
Described vibration switch disabled time more than the 3rd Preset Time time, lift a ban described vibration switch.
2. method according to claim 1, is characterized in that, judges whether the described set number of times triggering mark is greater than the first preset value and comprises:
When receiving the triggering signal that described vibration switch produces, controlling timer and reset and start timing and control the first counter O reset and start counting;
Judge the whether set of described triggering mark;
When described triggering flag set, control described first counter and add 1;
After described first counter adds 1, control described triggering Flag Reset;
When the timing time value of described timer reaches the first Preset Time, detect the value of described first counter; And
Judge whether the value of described first counter is greater than described first preset value.
3. method according to claim 1, is characterized in that, judges whether the described set number of times triggering mark is greater than described first preset value and comprises:
When receiving the triggering signal that vibration switch produces, controlling the second counter O reset and start counting and control the 3rd counter O reset and start counting;
Judge the whether set of described triggering mark;
Determining described triggering mark whether after set, controlling described second counter and adding 1;
When described triggering flag set, control described 3rd counter and add 1;
After described 3rd counter adds 1, control described triggering Flag Reset;
When the value of described second counter reaches the second preset value, detect the value of described 3rd counter; And
Judge whether the value of described 3rd counter is greater than described first preset value.
4. method according to claim 1, is characterized in that, judges whether described triggering signal effectively comprises:
Judge whether described triggering signal remains on predetermined level in the second Preset Time; And
If described triggering signal remains on described predetermined level in described second Preset Time, determine that described triggering signal is effective.
5. a triggering signal processing unit for dynamic token, is characterized in that, comprising:
Receiver module, for receiving the triggering signal that vibration switch produces, wherein, described vibration switch is arranged in described dynamic token, and produces triggering signal when the shell of described dynamic token is subject to percussion; Described dynamic token is closed;
First judge module, for judging that whether described triggering signal is effective;
Generation module, for when described triggering signal is effective, generates dynamic password according to described triggering signal;
Wherein, described first judge module comprises:
First judges submodule, and for judging whether the set number of times triggering mark is greater than the first preset value, wherein, described triggering mark automatically carries out set after receiving described triggering signal; And
First determines submodule, for when the described set number of times triggering mark is greater than described first preset value, determines that described triggering signal is effective;
Also comprise:
Disabled module, for forbidding described vibration switch;
Detection module, for detecting the described vibration switch disabled time; And
Lift a ban module, for described vibration switch disabled time more than the 3rd Preset Time time, lift a ban described vibration switch;
Also comprise:
Second judge module, for judging that whether described vibration switch is disabled,
Described first judge module is used for when described vibration switch does not have disabled, judges that whether described triggering signal is effective.
6. device according to claim 5, is characterized in that, described first judges that submodule comprises:
First controls little module, for when receiving the triggering signal that described vibration switch produces, controlling timer and resets and start timing and control the first counter O reset and start counting;
First judges little module, for judging the whether set of described triggering mark;
Second controls little module, for when described triggering flag set, controls described first counter and adds 1;
3rd controls little module, for after described first counter adds 1, controls described triggering Flag Reset;
First detects little module, for when the timing time of described timer reaches the first Preset Time, detects the value of described counter; And
Second judges little module, for judging whether the value of described first counter is greater than described first preset value.
7. device according to claim 5, is characterized in that, described first judges that submodule comprises:
4th controls little module, for when receiving the triggering signal that vibration switch produces, controlling the second counter O reset and starts counting and control the 3rd counter O reset and start counting;
3rd judges little module, for judging the whether set of described triggering mark;
5th controls little module, for determining described triggering mark whether after set, controlling described second counter and adding 1;
6th controls little module, for when described triggering flag set, controls described 3rd counter and adds 1;
7th controls little module, for after described 3rd counter adds 1, controls described triggering Flag Reset;
Second detects little module, for when the value of described second counter reaches the second preset value, detects the value of described 3rd counter; And
4th judges little module, for judging whether the value of described 3rd counter is greater than described first preset value.
8. device according to claim 5, is characterized in that, described first judge module comprises:
Second judges submodule, for judging whether described triggering signal remains on predetermined level in the second Preset Time; And
Second determines submodule, if remain on described predetermined level for described triggering signal in described second Preset Time, determines that described triggering signal is effective.
9. a dynamic token, is characterized in that, comprising:
Vibration switch, for producing triggering signal when the shell of described dynamic token is subject to percussion;
CPU, be connected with described vibration switch, for judging that whether described vibration switch is disabled, judge that whether described triggering signal is effective, and when described triggering signal is effective, dynamic password is generated according to described triggering signal, wherein, judge whether described triggering signal effectively comprises: when described vibration switch does not have disabled, judge that whether described triggering signal is effective, judge whether the set number of times triggering mark is greater than the first preset value, wherein, described triggering mark automatically carries out set after receiving described triggering signal; And when the described set number of times triggering mark is greater than described first preset value, determine that described triggering signal is effective; And
Display screen, is connected with described CPU, for showing described dynamic password.
10. dynamic token according to claim 9, is characterized in that, described vibration switch comprises:
First interface, for being connected with described CPU; And
Second interface, for ground connection,
Wherein, between described first interface and described CPU, be provided with first node, described first node connects power supply via resistance.
11. dynamic tokens according to claim 10, is characterized in that, between described second interface and ground, be provided with Section Point, described Section Point is connected with described first node via electric capacity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110268218.1A CN102307101B (en) | 2011-09-09 | 2011-09-09 | Method and device for processing dynamic token and trigger signal of dynamic token |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110268218.1A CN102307101B (en) | 2011-09-09 | 2011-09-09 | Method and device for processing dynamic token and trigger signal of dynamic token |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102307101A CN102307101A (en) | 2012-01-04 |
CN102307101B true CN102307101B (en) | 2015-07-22 |
Family
ID=45380916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110268218.1A Expired - Fee Related CN102307101B (en) | 2011-09-09 | 2011-09-09 | Method and device for processing dynamic token and trigger signal of dynamic token |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102307101B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611556B (en) | 2012-03-31 | 2014-10-29 | 飞天诚信科技股份有限公司 | Working method of dynamic token |
CN102779077A (en) * | 2012-06-18 | 2012-11-14 | 安科智慧城市技术(中国)有限公司 | Embedded type security equipment and password recovering method thereof |
CN106161029B (en) * | 2015-04-20 | 2019-12-03 | 阿里巴巴集团控股有限公司 | Dynamic token control method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101299664A (en) * | 2008-06-17 | 2008-11-05 | 谭文庆 | Cryptosystem transmitting key through collision |
CN101309268A (en) * | 2008-05-21 | 2008-11-19 | 北京飞天诚信科技有限公司 | Dynamic token preventing false trigger and control method thereof |
CN101937194A (en) * | 2010-09-27 | 2011-01-05 | 鸿富锦精密工业(深圳)有限公司 | Intelligent control system and method with learning function |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8244211B2 (en) * | 2008-02-07 | 2012-08-14 | Inflexis Llc | Mobile electronic security apparatus and method |
CN101256795B (en) * | 2008-04-10 | 2010-09-01 | 珠海信石电子科技有限公司 | Multimedia player and playing method |
-
2011
- 2011-09-09 CN CN201110268218.1A patent/CN102307101B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101309268A (en) * | 2008-05-21 | 2008-11-19 | 北京飞天诚信科技有限公司 | Dynamic token preventing false trigger and control method thereof |
CN101299664A (en) * | 2008-06-17 | 2008-11-05 | 谭文庆 | Cryptosystem transmitting key through collision |
CN101937194A (en) * | 2010-09-27 | 2011-01-05 | 鸿富锦精密工业(深圳)有限公司 | Intelligent control system and method with learning function |
Also Published As
Publication number | Publication date |
---|---|
CN102307101A (en) | 2012-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1820453B (en) | Method and apparatus for providing security for debug circuitry | |
EP3144835A1 (en) | Fingerprint recognition-based terminal and method and system for logging in to same in stand-by state | |
US8074000B2 (en) | Hotkey processing method and computer system | |
CN102307101B (en) | Method and device for processing dynamic token and trigger signal of dynamic token | |
US11221977B2 (en) | Daisy chain mode entry sequence | |
WO2003081400A2 (en) | Integrated circuit security and method therefor | |
CN103680113A (en) | Infrared signal decoding treatment method and infrared signal decoding treatment device | |
CN106775536A (en) | A kind of double screen changing method and device | |
CN100428113C (en) | One key on-and-off unit for computer and reset device and method | |
US20180203544A1 (en) | Electronic device | |
WO2008118156A2 (en) | Component to support prepaid devices | |
CA2489637C (en) | Electronic data processing device | |
US11372461B2 (en) | Circuitry for transferring data across reset domains | |
CN104423616B (en) | Input device and control unit | |
US20140153623A1 (en) | Device for auto baud rate detection | |
US7181169B2 (en) | Controlling apparatus and method of mobile communication terminal using electrostatic detection | |
CN100533082C (en) | Temperature Control Mechanisms in Storage Devices | |
CN101272149A (en) | Key scanning circuit | |
US20020194510A1 (en) | Apparatus and method for bus power measurement in a digital signal processor | |
KR101671956B1 (en) | Device and method for resetting of system | |
CN114355813B (en) | A control method for a gesture switch and a strong anti-interference self-learning gesture switch | |
JP3836669B2 (en) | Condition monitoring device | |
CN113311268A (en) | Method, device, equipment and medium for detecting service life of infrared emission tube | |
US20040031040A1 (en) | Method and system for supporting a plurality of event types | |
KR20070092394A (en) | Password input device and method using touch pad |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150722 |