Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the utility model in detail.
Fig. 2 shows the synoptic diagram according to the ticket checking machine of the utility model one embodiment, as shown in Figure 2, magnetic ticket ticket-checked device along the channel path direction be disposed with inlet 10, read magnetic mechanism 21, printing mechanism 24, write magnetic mechanism 22, verification agency 23 and export 20.Inlet is used to insert magnetic ticket paper, reads magnetic mechanism 21 and is used to read magnetic coded message on the ticket paper; Printing mechanism 24 is used for printed visual information on ticket paper, as ticket checking date, ticket checking gate numbering etc.; Write magnetic mechanism 22 and be used on ticket paper, writing the magnetic coded data relevant, use to prove this ticket paper, thereby prevent that ticket paper from illegally being reused with ticket checking; Verification agency 23 is used to judge whether the magnetic coded message that writes is complete.After the check of ticket paper finishes, spue by outlet 20.Passage is provided with some conveying rollers 60 that are used to carry the driving of ticket paper.
Fig. 3 shows the ticket checking method process flow diagram according to ticket checking machine shown in Figure 2, may further comprise the steps:
S102 reads the magnetic coded data that ticket paper writes down;
Record the magnetic coded data in the magnetic stripe of ticket paper.The magnetic coded data generally includes important informations such as admission fee, train number, riding time, issuing station, for prevent these clocklike cleartext information cracked and forge by technology, can carry out encryption in system to the plaintext magnetic data of distribution ticket during ticket.
S104 decodes and recompile to the magnetic coded data that reads;
For examing ticket paper whether effective, the magnetic coded data that reads need be decoded, the magnetic coded data decryption restoration of encrypting is become expressly, confirm again whether information expressly meets the ticket checking requirement, such as train number, whether information such as riding time correctly meet the requirement by gate.When the magnetic coded message that reads meets ticket checking and requires, the magnetic coded data that reads is added ticket checking information, recompile generates magnetic coding ticket checking information.
S106, printed visual information on decoded ticket paper;
When the magnetic coded message that reads meets the ticket checking requirement, need be used to show the visual information of ticket checking at ticket paper printout surface, so that staff's naked eyes are checked tickets.
S108 writes the magnetic coding ticket checking information of recompile on the ticket paper after the printed visual information, and magnetic coding ticket checking information is carried out verification.
After printed visual information on the ticket paper, the magnetic coding ticket checking information of the magnetic coded data that need write step S104 reads in ticket paper magnetic stripe and the recompile of ticket checking information combination, this magnetic coding ticket checking information is in conjunction with the information by gate original ticket information, such as the gate code name, by encrypting the information that the back generates after the combination of information such as time again.The reason that writes magnetic information is in order to prevent that ticket paper from illegally being reused.After finishing magnetic coding ticket checking information and having write, also need the magnetic coding ticket checking information that writes is carried out verification, write success to guarantee the magnetic ticket checking information of encoding.
In the present embodiment, after printed visual information on the ticket paper, write magnetic and checking procedure again, promptly when the required magnetic of magnetic (step S108) coding ticket checking information is write in generation, carry out earlier and print (step S106), slow down or suspend, shortened ticket checking flow process required time thereby write the preceding ticket paper of need not controlling of magnetic (step S108) in execution, improved ticket checking speed, it is slower to have overcome in the existing ticket checking method ticket checking speed, for period commuter rush hour, and the problem that causes the ticketing spot to block up easily.
Preferably, in above-mentioned magnetic ticket paper ticket checking method, in execution in step S104, carry out the preparation process before the execution in step S106, be specially: drive ticket paper to print position, and depress printhead.In the present embodiment, printing equipment is arranged on the downstream that ticket paper working direction is read magnetic device, when finish read ticket paper magnetic data after, the time that utilization is deciphered, judged, encrypts again magnetic data, stop after making ticket paper move to print position, and depress printhead, and depress the printhead required time thereby save in the prior art, further improved print speed.And in prior art as shown in Figure 1, the wearing and tearing of printhead are caused that printhead reduces serviceable life for avoiding rubber roll, when not carrying out printing, the printhead of printing equipment 14 separates with rubber roll.When carrying out print out task, printhead matches with rubber roll, when completing steps 4) after, when ticket paper enters print position; need to suspend once more or the operation of deceleration ticket paper, to depress printhead, therefore; suspend repeatedly or the operation of deceleration ticket paper, consumed certain hour, reduced ticket checking speed.
The synoptic diagram of the magnetic ticket-checked device that provides according to another embodiment of the utility model is provided Fig. 4.Present embodiment and difference embodiment illustrated in fig. 2 be, at inlet 10 with write and be provided with magnetic surface recognition device 25 and switching mechanism 26 between the magnetic device 21.Magnetic surface recognition device 25 is used to judge ticket paper magnetic surface place direction; Switching mechanism 26 is used for carrying and upset ticket paper, the magnetic surface direction of pawn ticket paper with read magnetic device 21 not at once, upset ticket paper so that the magnetic surface direction of ticket paper with to read magnetic device 21 corresponding, so that carry out the ticket checking processing.
Preferably, in above-mentioned magnetic ticket paper ticket checking method, further comprising the steps of before execution in step S102: whether the magnetic surface direction of judging ticket paper is direction initialization, if, execution in step S102 then; Otherwise upset ticket paper is so that the magnetic surface direction of ticket paper is a direction initialization.In the present embodiment, allow the passenger when inserting ticket paper, to ignore the magnetic surface direction of ticket paper, saved the ticket of inserting again that produces because of ticket paper anisotropy and operated, shortened the ticket checking time, improved ticket checking efficient.
Preferably, in above-mentioned magnetic ticket paper ticket checking method, step S104 specifically comprises: judge the validity of ticket paper, when pawn ticket paper was effective, recompile generated magnetic coding ticket checking information.
In order to prevent that ticket paper from illegally being reused, after judging that ticket paper is effectively, need to generate magnetic coding ticket checking information, finished ticket checking and handled to show this ticket paper, can not reuse.This magnetic coding ticket checking information is in conjunction with the information by gate, such as the gate code name, by encrypting the information that the back generates after the combination of information such as time again original ticket information.
Preferably, in above-mentioned magnetic ticket paper ticket checking method, further comprising the steps of: as when pawn ticket paper is invalid, to judge that whether ticket paper read the number of times of magnetic greater than presetting first threshold; Be not more than first threshold if read the number of times of magnetic, repeating step S102; If the number of times of reading magnetic greater than first threshold, return back to ticket feeding port with ticket paper, and prompting ticket paper is invalid.
Read the magnetic number of times to avoid having improved the reliability of ticket checking by setting because of reading the invalid problem of ticket paper that the magnetic error causes.When reading that magnetic is unsuccessful to cause ticket paper invalid, judge that whether ticket paper read the number of times of magnetic greater than presetting first threshold; Be not more than first threshold if read the number of times of magnetic, repeating step S102; If the number of times of reading magnetic greater than first threshold, return back to ticket feeding port with ticket paper, and prompting ticket paper is invalid.
Preferably, in above-mentioned magnetic ticket paper ticket checking method, among the step S108 magnetic coding ticket checking information is carried out verification and specifically comprise: if ticket paper verification failure, whether the number of times of judging verification is greater than the second default threshold value; If the number of times of verification is not more than second threshold value, again ticket paper is write magnetic; If the number of times of verification greater than second threshold value, carries out fault processing to ticket paper.
Write the magnetic number of times to avoid by setting because of writing the problem that ticket paper that magnetic error causes lost efficacy.When the verification number of times is not more than set point number,, remedy the ticket paper Problem of Failure that causes of writing the magnetic error by the method for writing magnetic again if verification is unsuccessful.When verification number of times during greater than set point number, ticket paper is carried out fault processing, such as, regenerate a new ticket paper and offer the user.
Fig. 5 shows the ticket checking machine module map according to an embodiment of the utility model, comprising:
Read module 101 is used to read the magnetic coded data of ticket paper record, as shown in Figure 2 read magnetic mechanism 21;
Decoder module 103 is used for the magnetic coded data that reads is decoded and recompile;
Print module 30 is used for printed visual information on decoded ticket paper, printing mechanism 24 as shown in Figure 2;
Write magnetic verification module 40, be used on the ticket paper after the printed visual information, writing the magnetic coding ticket checking information of recompile, and magnetic coding ticket checking information is carried out verification, as shown in Figure 2 write magnetic mechanism 22 and verification agency 23.
In the present embodiment, after print module printed visual information, write magnetic and checking procedure by writing the execution of magnetic verification module again, promptly carrying out print module earlier when the required magnetic coding ticket checking information of magnetic is write in the decoder module generation prints, thereby carry out and to control ticket paper before writing magnetic and slow down or suspend writing magnetic verification module, shortened ticket checking flow process required time, improved ticket checking speed, it is slower to have overcome in the existing ticket checking method ticket checking speed, for period commuter rush hour, the problem that causes the ticketing spot to block up easily.
Preferably, in above-mentioned ticket checking machine, also comprise: first driver module is used for driving ticket paper and moves at the passage of magnetic ticket-checked device; Second drive unit, the printhead that is used to drive print module lifts or depresses.In the present embodiment, printing equipment is arranged on the downstream that ticket paper working direction is read magnetic device, when finish read ticket paper magnetic data after, the time that utilization is deciphered, judged, encrypts again magnetic data, stop after making ticket paper move to print position, and depress printhead, and depress the printhead required time thereby save in the prior art, further improved print speed.
Preferably, in above-mentioned ticket checking machine, also comprise: first judge module is used to judge whether the magnetic surface direction of ticket paper is direction initialization; Flip module, be used for when the judged result of first judge module for not the time, upset ticket paper is so that the magnetic surface direction of ticket paper is a direction initialization.In the present embodiment, allow the passenger when inserting ticket paper, to ignore the magnetic surface direction of ticket paper, improved ticket checking efficient.
Preferably, in above-mentioned ticket checking machine, decoder module specifically comprises: the validity judging unit is used to judge the validity of ticket paper magnetic coded data; Information generating unit is used for when the magnetic coded data is effective, generates magnetic coding ticket checking information; The first threshold judging unit is used for pawn ticket paper when invalid, judges that whether ticket paper read the number of times of magnetic greater than presetting first threshold; And first Tip element, be used for indicate first driver module that ticket paper is return back to ticket feeding port, and prompting ticket paper being invalid when the number of times of reading magnetic during greater than first threshold.
Preferably, in above-mentioned ticket checking machine, write magnetic verification module and comprise: write magnetic cell, be used on the ticket paper after the printed visual information, writing the magnetic coding ticket checking information of recompile; Verification unit is used for magnetic coding ticket checking information is carried out verification; The second threshold decision unit, when being used for pawn ticket paper verification failure, whether the number of times of judging verification is greater than the second default threshold value; Second Tip element when being used for number of times when verification greater than second threshold value, carries out fault processing to ticket paper.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present utility model or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the utility model is not restricted to any specific hardware and software combination.
The above is a preferred embodiment of the present utility model only, is not limited to the utility model, and for a person skilled in the art, the utility model can have various changes and variation.All within spirit of the present utility model and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within the protection domain of the present utility model.