Embodiment
Describe embodiments of the invention below in detail, the example of said embodiment is shown in the drawings, and wherein identical from start to finish or similar label is represented identical or similar elements or the element with identical or similar functions.Be exemplary through the embodiment that is described with reference to the drawings below, only be used to explain the present invention, and can not be interpreted as limitation of the present invention.
Fig. 1 is the structural representation of the transaction system of the embodiment of the invention.As shown in Figure 1, this transaction system comprises:transaction terminal 1, dynamic token 2 and remote server 3.
Wherein,transaction terminal 1 is used to receive user's transaction content, and transaction content is sent to remote server 3, and shows dynamic image.Dynamic token 2 is used to receive the light signal thattransaction terminal 1 dynamic images displayed is sent, and obtains user's transaction content according to said light signal, and generates second dynamic password according to transaction content.Remote server 3 receives the user's oftransaction terminal 1 transmission transaction content; And generate first dynamic password according to the user's who receives transaction content; And receive second dynamic password that dynamic token 2 generates, and verify whether first dynamic password and second dynamic password mate judging whether and conclude the business, wherein; Remote server 3 stores service strategy, can confirm that according to this service strategy it still is that remote server 3 generates dynamic image thattransaction terminal 1 generates dynamic image.
Describe the transaction system of the embodiment of the invention in detail below in conjunction with Fig. 2 to Figure 10.
Fig. 2 is the synoptic diagram of the transaction terminal of one embodiment of the invention.As shown in Figure 2, thistransaction terminal 1 can comprise: MIMmessage input module 110, password load module 120, communication module 130, second coding module 140, the second image generation module 150 and display module 160.
Particularly, MIMmessage input module 110 is used to receive user's transaction content, and in an embodiment of the present invention, transaction content can comprise number of the account, dealing money etc.Password load module 120 is used to import second dynamic password that dynamic token 2 generates.Communication module 130 is used for communicating by letter with remote server 3 and is sent to the dynamic image of remote server 3 and 3 transmissions of receiving remote server with the user's that MIMmessage input module 110 is received transaction content and second dynamic password that password load module 120 receives.Second coding module 140 is used for when remote server 3 confirms thattransaction terminal 1 generates dynamic image, encoding to generate information packet according to user's transaction content.The second image generation module 150 is used for generating dynamic image according to information packet.Display module 160 is used to show dynamic image.Should be understood that communication module 130 only is sent to remote server 3 with user's the transaction content and second dynamic password when service strategy confirms thattransaction terminal 1 generates dynamic image.
Fig. 3 is the synoptic diagram of the remote server of one embodiment of the invention.As shown in Figure 3, this remote server 3 can comprise: determination module 310, information receiving module 320, first coding module 330, the first image generation module 340, image sending module 350, password generation module 360, password receiver module 370 and authentication module 380.
Particularly, determination module 310 is used for confirming that according to servicestrategy transaction terminal 1 or remote server 3 generate dynamic image.Information receiving module 320 is used to receive the user's thattransaction terminal 1 sends transaction content.First coding module 330 is connected with information receiving module 320 with determination module 310 respectively, is used for when determination module 310 confirms that remote servers 3 generate dynamic images, and transaction content is encoded and generated information packet according to coding result.The first image generation module 340 is connected with first coding module 330, is used for generating dynamic image according to information packet.Image sending module 350 is connected with the first image generation module 340, is used for the dynamic image that is generated is sent to transaction terminal 1.Password generation module 360 is connected with information receiving module 320; Be used for generating first dynamic password according to the user's who receives transaction content; Particularly can according to conventional dynamic password generating algorithm when generating dynamic password with user's transaction content as one of input factor, repeat no more here.Password receiver module 370 is connected withtransaction terminal 1, is used to receive second dynamic password that dynamic token 2 generates.Authentication module 380 is connected with password receiver module 370 with password generation module 360 respectively; Be used to verify whether first dynamic password and second dynamic password mate; And when first dynamic password and second dynamic password coupling, confirm to conclude the business, otherwise abort operation.
Fig. 4 is the display interface of thetransaction terminal 1 of one embodiment of the invention.As shown in Figure 4, thistransaction terminal 1 is made up of four viewing areas, and a wherein upper left zone is as synchronizing function, and three zones upper right, down left and the bottom right are used as data function.When data transmit, retaining zone black and white Alternation Display, the data area demonstration needs the data bit of transmission.The data bit that transmits like needs is 1, then show white; The data bit that transmits like needs is 0, then shows black.
Fig. 5 is the sequential chart of one embodiment of the invention, and wherein high level is represented show white, and the low level representative shows black.The data that transmit when needs are 101010 ... The time, upper right a, left side down and three zones of bottom right show earlier white, black, white, show again black, white, black, by that analogy.
In the above-described embodiments, adopting three data areas is in order to accelerate data transfer rate.Should be understood that and to adopt other quantity data zones, for example one, two, four or more a plurality of.But should also be understood that also other colors of Alternation Display of dynamic image zone, do not limit in the present invention, as long as it guarantees the size of current different (describing in detail after a while) of dynamic token 2 according to the difference output of color.In addition, can correctly receive data in order to guarantee dynamic token 2, should first video data zone, display synchronization zone again.
Need to prove,, except sequential is transmitted in above-mentioned proper data position, also need a reliable data transfer protocol betweentransaction terminal 1 and the dynamic token 2 in order to guarantee correct transmission and to receive data.Because dynamic token 2 needs to aim at the dynamic image viewing area ability reception information oftransaction terminal 1; Therefore the message pick-up of demonstration of the information oftransaction terminal 1 anddynamic token 1 can not be when data transmission at the beginning just synchronously at once; Primary need ceaselessly circulates attransaction terminal 1 and sends packet for this reason, and secondary need is introduced initial code, preamble code and CRC when data transmit.
Be illustrated in figure 6 as the synoptic diagram of the information packet of one embodiment of the invention.This information packet comprises: initial code, preamble code, transaction content code length, transaction content coding and CRC.Wherein, the transaction content coding comprises transaction field information and trading value information.Particularly, can specify each transaction field corresponding codes in advance, thus, dynamic token 2 can obtain the corresponding trading value of each transaction field after receiving data.
Should be understood that in embodiments of the presentinvention transaction terminal 1 can be a computer, also can be mobile phone, TV etc.The generation that should also be understood that coding and dynamic image can be carried out attransaction terminal 1, also can carry out at remote server 3.When remote server 3 carries out, can reduce the requirement of the data-handling capacity oftransaction terminal 1, this is for being favourable like transaction terminals such asmobile phone 1.
Fig. 7 is the synoptic diagram of the dynamic token 2 of one embodiment of the invention.As shown in Figure 7, this dynamic token 2 can comprise: photosensitive receiver module 210, signal processing module 220, transaction content display module 230, password computing module 240 and password display module 250.
Photosensitive receiver module 210 is used to receive the light signal that dynamic image produced oftransaction terminal 1, and converts light signal into digital signal.Signal processing module 220 is connected with photosensitive receiver module 210, is used for digital signal is handled to obtain transaction content.Transaction content display module 230 is connected with signal processing module 220, is used to show transaction content.Password computing module 240 is connected with signal processing module 220, is used for generating second dynamic password according to transaction content.Password display module 250 is connected with password computing module 240, is used to show said second dynamic password.
Particularly, as shown in Figure 8, photosensitive receiver module 210 can comprisephototriode 211 and resistance 212.Phototriode 211 is used for the light signal that receiving dynamic image produces, and according to light signal output photocurrent.Resistance 212 is connected betweenphototriode 211 and the signal processing module 220, is used for converting photocurrent into voltage signal and inputs to signal processing module 220.
Behind the black and white color figure that occurs flashing on the display screen oftransaction terminal 1; Position alignment figure withphototriode 211; This moment,phototriode 211 will collect the conversion of color, according to the different electric current of difference output of color, for example; The electric current of white can be bigger, and the electric current of black can be smaller.Particularly, when the base of rayed atphototriode 211, excite the electron-hole pair of generation to increase the concentration of minority carrier, the reverse saturation current of collector junction is increased greatly, this just makes the collector junction ofphototriode 211 produce electric current.This electric current injects emitter junction and amplifies, and becomes the collector ofphototriode 211 and the electric current between the emitter, i.e. the photocurrent of phototriode 211.Then, this photocurrent converts voltage to throughresistance 212 and exports to signal processing module 220.
Because the response time ofphototriode 211 is enough fast; Therefore in one embodiment of the invention; Adopt time interval Alternation Display white light and black about 30ms; Phototriode 211 can receive the high low-voltage in the same time interval, after high low voltage transition is high-low level, just can receive the data message oftransaction terminal 1.
Fig. 9 is the synoptic diagram of the signal processing module of one embodiment of the invention.As shown in Figure 9, signal processing module 220 can comprise: filtering circuit 221, edge trigger element 222, sampling unit 223, reading unit 224 and converting unit 225.
Filtering circuit 221 is used for the digital signal that receives is handled.In reality transmission and receiving course; Owing to receive the interference of factors such as external environment condition; Can not receive the oscillogram same withtransaction terminal 1 at dynamic token 2, the oscillogram that dynamic token 2 receives often has some burrs and pulse signal to occur, and need it be filtered.
Edge trigger element 222 is used for when the level of synchronizing signal changes, and produces the edge and triggers interruption.Sampling unit 223 is used for triggering when interrupting when producing the edge, data-signal is sampled with the predetermined SI, wherein time interval of showing less than dynamic image in SI.Reading unit 224 is used for confirming according to the sampled value that sampling unit can obtain the code word oftransaction terminal 1 current transmission.Converting unit 225 is used for the data that receive are carried out the binary-decimal conversion to obtain transaction content.
Shown in figure 10, line synchro and data line all have pulse to exist, but width is all very narrow; When the time interval abouttransaction terminal 1 employing 30ms, generally can be greater than 5ms, for this reason; In DRP data reception process, the embodiment of the invention adopts synchronous edge mode to have no progeny in triggering, and interrupts if the interruption that produces produces again in 5ms; Can ignore this terminal, be about to synchronizing pulse and filter out.Because in a time interval, general pulse occurs two at most, so useful high-low level time width generally all can be more than 20ms; In this time interval, adopt the high-low level value in the mode reading of data zone of sampling, when the value that reads be 1 number of times more for a long time; Receiving data is 1; On the contrary, when the value that reads be 0 number of times more for a long time, receiving data is 0.Thus, avoided factor to exist and the situation of false readings effectively according to regional pulse.
In addition, dynamic token 2 of the present invention also can introduce occur any when wrong circulation receive the function with timeout (overtime judgement) mechanism once more, guarantee the success ratio and the reception of mistake in particular cases that receive.
Transaction system through the embodiment of the invention; Can fast transaction content be input to dynamic token; And can import the transaction content that comprises Chinese character, reduce user's operation steps and lowered the input difficulty, further promote the user experience of using dynamic token.And the user can and confirm trading value by the transaction field inspection, has reduced the risk that customer transaction is distorted.
According to the foregoing description, the present invention also proposes a kind of dynamic token.
Referring to Fig. 7 to Figure 10, this dynamic token comprises: photosensitive receiver module 210, signal processing module 220, transaction content display module 230, password computing module 240 and password display module 250.
Wherein, photosensitive receiver module 210 is used to receive the light signal that dynamic image produced oftransaction terminal 1, and converts light signal into digital signal.Signal processing module 220 is connected with photosensitive receiver module 210, is used for digital signal is handled to obtain transaction content.Transaction content display module 230 is connected with signal processing module 220, is used to show transaction content.Password computing module 240 is connected with signal processing module 220, is used for generating second dynamic password according to transaction content.Password display module 250 is connected with password computing module 240, is used to show said second dynamic password.
Particularly, photosensitive receiver module 210 can comprise phototriode 211 andresistance 212.Phototriode 211 is used for the light signal that receiving dynamic image produces, and according to light signaloutput photocurrent.Resistance 212 is connected betweenphototriode 211 and the signal processing module 220, is used for converting photocurrent into voltage signal and inputs to signal processing module 220.
Signal processing module 220 can comprise filtering circuit 221, edge trigger element 222, sampling unit 223, reading unit 224 and converting unit 225.Filtering circuit 221 is used for the digital signal that receives is handled.Edge trigger element 222 is used for when the level of synchronizing signal changes, and produces the edge and triggers interruption.Sampling unit 223 is used for triggering when interrupting when producing the edge, data-signal is sampled with the predetermined SI, wherein the predetermined time interval that shows less than dynamic image of SI.Reading unit 224 is used for confirming according to the sampled value that sampling unit can obtain the code word oftransaction terminal 1 current transmission.Converting unit 225 is used for the data that receive are carried out the binary-decimal conversion to obtain transaction content.
According to the dynamic token of the embodiment of the invention, receive light signal that transaction terminal sends to obtain user's transaction content through light activated element, reduce user's operation steps and reduced the input difficulty, further promoted the user experience of using dynamic token.In addition, device is simple, is easy to make, and cost is lower.
According to the foregoing description, the present invention also proposes a kind of transaction terminal.
Figure 11 is the synoptic diagram of the transaction terminal of one embodiment of the invention.Shown in figure 11, this transaction terminal comprises: MIM message input module 410, password load module 420, communication module 430, coding module 440, image generation module 450 and display module 460.
Wherein, MIM message input module 410 is used to receive user's transaction content, and in an embodiment of the present invention, transaction content can comprise number of the account, dealing money etc.Password load module 420 is used to import the dynamic password that dynamic token generates.Communication module 430 is communicated by letter with remote server and is sent to the dynamic image that remote server and receiving remote server send with the dynamic password that user's transaction content and dynamic token are generated.Coding module 440 is used for when remote server confirms that transaction terminal generates dynamic image, encoding to generate information packet according to user's transaction content.Image generation module 450 is used for generating dynamic image according to information packet.Display module 460 is connected with image generation module 450, is used to show dynamic image.
In one embodiment of the invention, information packet comprises: initial code, preamble code, transaction content code length, transaction content coding and CRC, wherein said transaction content coding comprises transaction field information and trading value information.
According to the transaction terminal of the embodiment of the invention,, can transaction content be input in the dynamic token fast through the mode of transaction content with dynamic image shown.
According to the foregoing description, the present invention also proposes a kind of remote server.
Figure 12 is the synoptic diagram of the remote server of one embodiment of the invention.Shown in figure 12, this remote server comprises: determination module 510, information receiving module 520, coding module 530, image generation module 540, image sending module 550, password generation module 560, password receiver module 570 and authentication module 580.
Wherein, determination module 510 is used for confirming that according to predetermined service strategy remote server or transaction terminal generate dynamic image.Information receiving module 520 is used to receive the user's that transaction terminal sends transaction content.Coding module 530 is connected with information receiving module 520 with determination module 510 respectively, is used for when determination module 510 confirms that remote servers generate dynamic image, and transaction content is encoded and generated information packet according to coding result.Image generation module 540 is connected with coding module 530, is used for generating dynamic image according to information packet.Image sending module 550 is connected with image generation module 540, is used for the dynamic image that is generated is sent to transaction terminal.Password generation module 560 is connected with information receiving module 520, is used for generating first dynamic password according to the user's who receives transaction content.Password receiver module 570 is connected with transaction terminal, is used to receive second dynamic password of the dynamic token generation of sending through transaction terminal.Authentication module 580 is connected with password receiver module 570 with password generation module 560 respectively; Be used to verify whether first dynamic password and second dynamic password mate; And when first dynamic password and second dynamic password coupling, confirm to conclude the business, otherwise abort operation.
Remote server through the embodiment of the invention; Can realize generation to the coding and the dynamic image of transaction content; Whether minimizing is to the requirement of the processing power of transaction terminal, and mate through the checking dynamic password and to confirm that whether transaction is carried out, and guarantees the security of transaction.
For realizing the foregoing description, the present invention also proposes a kind of method of commerce.
Figure 13 is the process flow diagram of the method for commerce of one embodiment of the invention.In this embodiment, transaction terminal can be computer, also can be mobile phone, TV etc.Shown in figure 13, this method of commerce may further comprise the steps:
Step S101, transaction terminal receives user's transaction content.
In one embodiment of the invention, user's transaction content can comprise number of the account and dealing money etc.
Step S102, transaction terminal is sent to remote server with user's transaction content.
Step S103, remote server generates first dynamic password according to user's transaction content.
Can repeat no more with reference to conventional dynamic password generating algorithm particularly here.
Step S104, remote server is according to user's the transaction content generation information packet of encoding.
Wherein, information packet can comprise: initial code, preamble code, transaction content code length, transaction content coding and CRC, wherein said transaction content coding comprises transaction field information and trading value information.Thus, dynamic token can be shown to the corresponding trading value of each transaction field of user respectively after receiving transaction content.
Step S105, remote server generates dynamic image according to information packet.
Step S106, remote server is sent to transaction terminal with dynamic image.
Step S107, transaction terminal shows dynamic image.
Wherein, dynamic image has two kinds of various colors, and is for example black and white.When data are 1, show white; When data are 0, show black.
In addition, in one embodiment of the invention, dynamic image can comprise four image-regions, and one of them image-region is used for the display synchronization sign indicating number, and other three zones are used to show said information packet.Thus, can accelerate the transfer rate of data.
It will also be appreciated that in order to guarantee that dynamic token can correctly receive data, in one embodiment of the invention, first video data zone, display synchronization zone again.
Step S108, dynamic token receives the light signal that the transaction terminal dynamic images displayed is produced.
Step S109, dynamic token obtain user's transaction content according to light signal.
For example, behind the black and white color figure that occurs on the transaction terminal flashing, with the phototriode position alignment image of dynamic token; This moment, triode will collect change in color; According to the different electric current of difference output of color, for example the electric current of white can be bigger, and the electric current of black can be less.The electric current of different sizes can be exported the high low-voltage that varies in size through resistance.Again high low-voltage is converted into high-low level, just can have received the data message of transaction terminal.
Step S110, dynamic token generates second dynamic password according to transaction content.
S103 is similar with step, can repeat no more with reference to conventional dynamic password generating algorithm particularly here.
Step S111, user judge whether the transaction content that dynamic token obtains is correct.
After dynamic token gets access to transaction content, can on the viewing area of dynamic token, show.Thus, the user can judge whether the transaction content that dynamic token gets access to is correct.
Step S112, if the transaction content that dynamic token obtains is correct, then the user inputs to transaction terminal with second dynamic password.If judge that transaction content is incorrect, then abort operation.Thus, reduced the risk that customer transaction is distorted.
Step S113, transaction terminal is sent to remote server with second dynamic password.
Step S114, whether remote server verification first dynamic password and second dynamic password mate.
Step S115 is if first dynamic password and second dynamic password coupling then confirm to carry out transaction.
If first dynamic password and second dynamic password do not match, then abort operation.
The execution that it should be understood that some step among this method embodiment does not have tangible sequencing, for example can first execution in step S103, execution in step S104 again.Ability generated first dynamic password according to user's transaction content when more for example, remote server need carry out password authentication after receiving second dynamic password.
According to the method for commerce of the embodiment of the invention, be input to dynamic token through transaction content that transaction terminal is received with the form of light signal, reduce user's operation steps and reduced the input difficulty, further promoted the user experience of using dynamic token.In addition, the user can and confirm trading value by the transaction field inspection, has reduced the risk that customer transaction is distorted.
Because coding and generation dynamic image to transaction content can carry out at remote server, also can realize at transaction terminal, so the present invention also propose another kind of method of commerce.
Figure 14 is the process flow diagram of the method for commerce of another embodiment of the present invention.Shown in figure 14, in another embodiment of the present invention, this method of commerce may further comprise the steps:
Step S201, transaction terminal receives user's transaction content.
In one embodiment of the invention, user's transaction content can comprise number of the account and dealing money etc.
Step S202, transaction terminal is encoded to transaction content and is generated information packet.
Wherein, information packet can comprise: initial code, preamble code, transaction content code length, transaction content coding and CRC, wherein said transaction content coding comprises transaction field information and trading value information.Thus, dynamic token can be shown to the corresponding trading value of each transaction field of user respectively after receiving transaction content.
Step S203, transaction terminal shows dynamic image according to information packet.
Wherein, dynamic image has two kinds of various colors, and is for example black and white.When data are 1, show white; When data are 0, show black.
In addition, in one embodiment of the invention, dynamic image can comprise four image-regions, and one of them image-region is used for the display synchronization sign indicating number, and other three zones are used to show said information packet.Thus, can accelerate the transfer rate of data.
It will also be appreciated that in order to guarantee that dynamic token can correctly receive data, in one embodiment of the invention, first video data zone, display synchronization zone again.
Step S204, transaction terminal is sent to remote server with user's transaction content.
Step S205, remote server generates first dynamic password according to user's transaction content.
Can repeat no more with reference to conventional dynamic password generating algorithm particularly here.
Step S206, the light signal that the dynamic token receiving dynamic image is produced.
Step S207, dynamic token obtains transaction content according to light signal.
For example, behind the black and white color figure that occurs on the transaction terminal flashing, with the phototriode position alignment image of dynamic token; This moment, triode will collect change in color; According to the different electric current of difference output of color, for example the electric current of white can be bigger, and the electric current of black can be less.The electric current of different sizes can be exported the high low-voltage that varies in size through resistance.Again high low-voltage is converted into high-low level, just can have received the data message of transaction terminal.
Step S208, dynamic token generates second dynamic password according to transaction content.
S205 is similar with step, does not do detailed description here.
Step S209, user judge whether transaction content is correct.
After dynamic token gets access to transaction content, can on display screen, show.Thus, the user judges whether transaction content is correct.
Step S210, if transaction content is correct, then the user inputs to transaction terminal with second dynamic password.
If transaction content is incorrect, abort operation then.Thus, reduced the risk that customer transaction is distorted.
Step S211, transaction terminal is sent to remote server with second dynamic password.
Step S212, whether remote server verification first dynamic password and second dynamic password mate.
Step S213 is if first dynamic password and second dynamic password coupling are then confirmed to conclude the business.
If first dynamic password and second dynamic password do not match, then abort operation.
The execution that it should be understood that some step among this method embodiment does not have tangible sequencing, for example can first execution in step S204, execution in step S202 again.Ability generated first dynamic password according to user's transaction content when more for example, remote server need carry out password authentication after receiving second dynamic password.
According to the method for commerce of the embodiment of the invention, be input to dynamic token through transaction content that transaction terminal is received with the form of light signal, reduce user's operation steps and reduced the input difficulty, further promoted the user experience of using dynamic token.In addition, the user can and confirm trading value by the transaction field inspection, has reduced the risk that customer transaction is distorted.
Should be understood that coding, data transmission, dynamic image demonstration and Data Receiving etc. among the method embodiment of the present invention can be identical with the description in the system embodiment of the present invention, here for simplicity, repeat no more.
Although illustrated and described embodiments of the invention; For those of ordinary skill in the art; Be appreciated that under the situation that does not break away from principle of the present invention and spirit and can carry out multiple variation, modification, replacement and modification that scope of the present invention is accompanying claims and be equal to and limit to these embodiment.