CN1039461C - Intelligent card and enciphered read-write device - Google Patents

Intelligent card and enciphered read-write device Download PDF

Info

Publication number
CN1039461C
CN1039461C CN94110571A CN94110571A CN1039461C CN 1039461 C CN1039461 C CN 1039461C CN 94110571 A CN94110571 A CN 94110571A CN 94110571 A CN94110571 A CN 94110571A CN 1039461 C CN1039461 C CN 1039461C
Authority
CN
China
Prior art keywords
card
cpu
circuit
read
smart card
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
Application number
CN94110571A
Other languages
Chinese (zh)
Other versions
CN1111377A (en
Inventor
齐保良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANDONG INST OF ARCHITECTURAL ENGINEERING
Original Assignee
SHANDONG INST OF ARCHITECTURAL ENGINEERING
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANDONG INST OF ARCHITECTURAL ENGINEERING filed Critical SHANDONG INST OF ARCHITECTURAL ENGINEERING
Priority to CN94110571A priority Critical patent/CN1039461C/en
Publication of CN1111377A publication Critical patent/CN1111377A/en
Application granted granted Critical
Publication of CN1039461C publication Critical patent/CN1039461C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a smart card and an encryption read-write device thereof, and belongs to the technical field of computer data identification. The smart card is composed of serial EEPROMs, and the read-write device is formed in the method that a single chip computer is used as a core. The read-write device encrypts information in a read-write card on line, the problem of information security of cards is solved, and information in cards can be prevented from being read and written in the process of card insertion or card retraction. Security information in cards can be displayed at any time. Cards are changed on line, and remnant prices in an original card and consumption in the process of card change are balanced clearly after a new card is inserted. The device has the advantages of simple route and low cost, and can be used for intelligent electric meters, water meters, gas meters, etc., and microcomputer management to electricity, water and gas is realized.

Description

Smart card and enciphered read-write device thereof
The present invention relates to smart card and enciphered read-write device thereof that a kind of serial communication electrically-erasable memory (EEPROM) constitutes, belong to the computer data recognition technology field.
At present, the use of various credits card brings great convenience for our life, has promoted economic development.Credit card commonly used has magnetic card, barcode card, photoelectric card etc.These block existing advantage separately, and weak point is separately arranged again.Many intelligent little instrument that can adopt credit card, as power consumption card ammeter, gas consumption card gas meter, water consumption card water meter etc., the information that claimed structure is simple, with low cost, its card is gone up record is wanted and can and be had confidentiality according to the online rewriting of practical operation situation.Magnetic card strong security, but its read-write equipment complexity, cost height are so be difficult to use in these intelligent little instrument.The information of putting down in writing on barcode card, the photoelectric card can not online rewriting and its confidentiality poor, thereby also be not suitable for these intelligent little instrument.Patent documentation CN2143795Y discloses a kind of " e-credit " that is made of serial EEPROM, and patent documentation CN2154486Y discloses a kind of " anti-electricity-theft forward purchasing electric weight automatic charging watt-hour meter " of being made the electric weight card by the serial EEPROM card.The advantage that serial EEPROM constitutes credit card is, the serial EEPROM card can be directly and the singlechip CPU interface.Magnetic card, barcode card, photoelectric card can not be directly and the singlechip CPU interface.The information of putting down in writing on these three kinds of cards has only through the conversion singlechip CPU of relevant interface circuit and could discern.So the intelligent little appliance circuit that is made of the serial EEPROM card is simple, with low cost, but serial EEPROM is a kind of general purpose microprocessor periphery integrated circuit (IC) chip, and information of record for the microprocessor hardware technician, does not have confidentiality on it.The card that constitutes with serial EEPROM must be taked secrecy provision during as the electricity consumption card, with securities cards such as gas card, water card, dining room dinning cards.Otherwise when the information that its card is gone up record is replicated or rewrites, will cause enormous economic loss to administrative authority or user.Serial EEPROM is stuck in and inserts and withdraw from the process, should prevent the read-write to its internal information, in order to avoid cause the information that reads inaccurate or damage the information of card stored.
Purpose of the present invention is intended to solve when constituting credit card by serial EEPROM, the safety problem of its card internal information, and prevent to insert at card and withdraw from read-write card internal information in the process, the smart card and the enciphered read-write device thereof that provide a kind of serial EEPROM to constitute.
Smart card of the present invention is made of an insulcrete and a serial EEPROM integrated package, and the welding of serial EEPROM integrated package is installed on the insulcrete.An end that is positioned at grafting on the insulcrete has the sheet metal of 5 mutual insulatings, the pin of serial EEPROM to be connected on these 5 sheet metals.There are encrypted message and securities information in the serial EEPROM.By an end of pegging graft a small sircle hole is arranged on the insulcrete, as shown in Figure 2.Among Fig. 26 is solder joint, and 7 is a small sircle hole, and 8 is sheet metal.
The information of putting down in writing on the smart card is write by this card management department, and information had wherein both included the valency securities information, and encrypted message is arranged again.Securities information and encrypted message are (the following arrangement regulation that the designer is set call rule E) of arranging by a certain specific rule that the designer sets, for example, securities information encrypted message all is set at 16 bit binary data, this 32 bit binary data is divided into 4 groups, and every group has 8 bits; When this 32 bit data writes smart card, first group of least-significant byte of getting encrypted message, second group of most-significant byte of getting securities information got the least-significant byte of securities information for the 3rd group, and the 4th group is the most-significant byte of encrypted message; Put in order by above-mentioned, this 32 bit data is write in 4 storage unit of facing mutually in the EEPROM.
When changing smart card, the encrypted message in the new card changes by the rule that the designer makes an appointment, and as new password=original code+2, below this password is changed rule and is called rule G.
Smart card enciphered read-write device of the present invention, form by singlechip CPU IC2, address latch IC3, program storage IC4, random data memory IC 6, photoelectric detective circuit, power-fail detection circuit, display circuit, circuit, input/output signal circuit, card slots and shell etc., shown in the A among Fig. 1 and Fig. 3.CPU IC2 plays the center control action, has instruction fetch and analyzes execution command, gathers functions such as importing data, output alarm signal execution signal display message, regularly interruption, external interrupt.8 incoming lines of address latch IC3 and signal wire LE are connected to data bus and the PSEN line of CPU IC2 respectively.Address latch IC3 latchs the address information of CPU output, and IC3 is output as the least-significant byte address bus.The data line of program storage IC4 is connected to the data bus of CPU IC2, and the least-significant byte of address wire is connected to the output of address latch IC3, high 5 P2 mouths that are connected to CPU IC2, and the OE line is connected with the ALE/ P line of CPU IC2.Program storage IC4 is used for storing the instruction machine code of finishing in advance.The input signal cable of display circuit, output signal circuit and circuit is connected to respectively on the CPU IC2 delivery outlet line.Display circuit shows the securities information in the smart card.The output signal circuit is used for driving topworks.Circuit drives hummer and sends alerting signal.The signal wire of random data memory IC 6 is connected on the input and output bidirectional interface line of CPU IC2.Random data memory IC 6 is used for storing needs the multidate information remembered in the CPU course of work.The input signal circuit is connected to the Timer input end of CPU IC2.The physical quantity that the input signal circuit will need to gather becomes the digital signal that CPU can discern.The output signal of photoelectric detective circuit, power-fail detection circuit is connected to respectively on the external interrupt mouth line of CPU IC2.Photoelectric detective circuit cooperates with small sircle hole on the smart card, detects the insertion of smart card and withdraws from.Power-fail detection circuit detects power-off signal, and the interrupts of CPU storage does not allow the information of losing.CPU IC2 has 3 input and output bidirectional interface lines to be connected to card slots.Except that display circuit, the device of forming foregoing circuit all is installed on the circuit board, and circuit board is by being loaded in the shell.The device of forming display circuit is installed on the circuit board that is fixed in housing face-plate.
Be solidified with in decoding rule and the above-mentioned smart card arrangement regulation E of securities information and encrypted message corresponding (following the rule of decoding is called rule F) among the program storage IC4 of read-write equipment, for example, read-write equipment reads in the smart card after the information in corresponding 4 storage unit, the 4th and first module in information respectively as the most-significant byte and the least-significant byte of encrypted message, the information in Unit the two or three respectively as the most-significant byte and the least-significant byte of securities information, to read again encrypted message compare with the encrypted message that is stored in advance in the read-write equipment, to distinguish encrypted message correctly deny.Rule E is corresponding one by one with rule F.
Be solidified with the change rule G corresponding (rule of below should decoding is called rule H) of the encrypted message of another decoding rule when changing card among the program storage IC4 of read-write equipment with above-mentioned smart card, deduct 2 read the encrypted message of smart card as read-write equipment after, compare with the encrypted message of being stored again.Rule G is corresponding one by one with rule H.
Smart card is inserted by the card inserting mouth on the shell, connects with corresponding metal contact in the card slots by sheet metal, to connect the tie of EEPROM and CPU IC2, shown in the J1 among Fig. 3.B among Fig. 3 is the wiring diagram of the serial EEPROM IC5 that constitutes smart card.
The course of work of the present invention:
When smart card was inserted its read-write equipment, the photoelectric detective circuit in the device was exported a pulse signal, and this signal starting CPU IC2 reads the information in the smart card, and decoding identification.Provide alerting signal by circuit during the password mistake, when password is correct CPU IC2 will read information be stored in the random data memory IC 6, provide the operate as normal signal by the output signal circuit again.
In the normal course of operation, CPU IC2 is by input signal circuit image data, and the securities information on the smart card is rewritten on the one hand online encryption, will write on the other hand in the information stores random data memory IC 6 of smart card.Not more during change card, the online encryption of CPU IC2 writes in the information of smart card, and its encrypted message remains unchanged, and the amount of money data of securities information representative only allow to reduce, and does not allow to increase.The amount of money on the smart card is when using up, and CPU IC2 sends more change card signal by circuit.Smart card both can use up the back at its amount of money and change, and can change when still residue being arranged again.Read-write equipment stops normal operation at once and provides alerting signal in the time of both can having used up at the amount of money of smart card, also can delay time stops normal operation, and the alert signal of transmitting messages earlier.Install and normally to move, the promptly online card that changes in the process of replacing smart card.When changing smart card, the remaining amount of money and change the amount of money numerical value that is consumed because of normal operation in the card process in the former card, read-write equipment all is stored in its inside, treat neocaine insert after square up.These functions are set bring many convenience to administrative authority and user.
During power down, the power-fail detection circuit output signal, the data storing that interrupts of CPU IC2 will not allow to lose is in random data memory IC 6.
Smart card is forged two kinds of situations: the first is rewritten the information in the smart card, it two is that the information reproduction in the smart card (is all read the data among the former card EEPROM, make neocaine and write among other EEPROM) be used on the read-write equipment that former card inserts, or on other the read-write equipment of same type.For first kind of situation, because the adulterator does not know the securities information in the smart card and the arrangement regulation E and the encrypted message of encrypted message, so after the smart card of rewriting inserted read-write equipment, read-write equipment just can identify immediately, send alerting signal, and stop normal operation.Also can limit effectively for second kind of situation device provided by the invention.At first, duplicate and the neocaine that obtains when inserting the read-write equipment that former card inserts by former smart card, read-write equipment thinks that it is correct duplicating card, just the securities information of duplicating on the card is rewritten in online encryption according to practical operation situation, the amount of money data of securities information representative are reduced, this moment if will duplicate card withdraw from insert former card then read-write equipment can send alerting signal and make former card become useless the card.In like manner, former card is inserted the read-write equipment operation earlier, just become useless card and duplicate card.Promptly can only make a card for effectively blocking in the case.This is because encrypted message is when remaining unchanged on the smart card, and the amount of money numerical value of its securities information representative is only permitted to reduce and do not allowed to increase.Two cards or a plurality of card that encrypted message is identical, the insertion person of elder generation amount of money data reduce, and back insertion person's amount of money value does not become, when read-write equipment reads back insertion person, the phenomenon that encrypted message same amount data increase having occurred, is pseudo-card so read-write equipment is judged back insertion person.Secondly, duplicated and the neocaine that obtains when being inserted into other read-write equipment of same type by former card, other read-write equipment also can identify.If between the read-write equipment of all same types communication contact is arranged, then its identifying is duplicated card to insert the identifying of the plug in read-write equipment of former card institute the same with above-mentioned, a card can only be arranged for effectively blocking.If do not have communication contact between the read-write equipment of all same types, duplicate card and will be identified as the forgery card by other read-write equipment, send alerting signal.This be because by read-write equipment provided by the invention when being delivered for use, it uses the encrypted message of card to determine for the first time, the read-write equipment that a card (or a batch card) is determined in the time of can only being used to be delivered for use, the encrypted message of these cards is changed by rule G by administrative authority when change card more.So between the read-write equipment of same type when not having communication contact, the card that they are discerned does not have compatibility, can not exchange, want to exchange and use and must rewrite encrypted message through administrative authority, therefore the card that is duplicated by former card can not be applied on other read-write equipment of same type.
When the amount of money data of former card use up, can arrive administrative authority's more change card of paying dues, or fresh information be write former card by administrative authority.The neocaine of changing or write the former card of fresh information, encrypted message wherein changes by the rule G that makes an appointment, and this is very with to forge resulting information different so read-write equipment provided by the invention can identify the card of being handled by administrative authority.
Smart card provided by the invention in sum and read-write equipment thereof, when having solved serial communication electrically-erasable memory (EEPROM) formation credit card, the safety problem of its card internal information.Because photoelectric detective circuit can detect the insertion of card and withdraws from, so prevented in the insertion of card or withdraw from read-write card internal information in the process.
The present invention is further described below in conjunction with embodiment 1.
Embodiment 1
Fig. 1, Fig. 2, Fig. 3, Fig. 4 are the accompanying drawing of embodiment 1.Fig. 1 is external form figure, the intelligent cards that Fig. 2 constitutes for serial EEPROM, and Fig. 3 is circuit theory diagrams, Fig. 4 is a flow chart.
Among Fig. 1,1 is display window, and 2 is card inserting mouth, and 3 is button, and 4 is the interface of socket J3, and 5 is the interface of socket J2.
LED-1, LED-2, LED-3, LED-are 4 charactrons among Fig. 3, and IC1 is serial input binary-coded decimal decimal system decoding driving display MC14499, and they form display circuit with every section current-limiting resistance.3 input signal cables of IC1 are connected on 3 delivery outlet lines of CPU IC2,8 field lines (A, B, C, D, E, F, G, DP) of IC1 output are connected to respectively on the 7 field lines and decimal dotted line of charactron through current-limiting resistance, and 4 word bit route selections of IC1 output are connected to the common port of 4 charactrons respectively.Form display circuit by IC1, can significantly reduce the quantity that takies of CPU I/O mouth line.
One button 3 is arranged on Fig. 1 panel, i.e. K1 among Fig. 3, when clicking button 3, the securities information of storing in the smart card is delivered to IC1 by CPU IC2, drives through IC1 decoding being shown on the charactron, so that the user observes the securities information in the card at any time.After time-delay a period of time, charactron is closed, to cut down the consumption of energy.
IC2 is that singlechip CPU, IC3 are that address latch, IC4 are ultraviolet erasable PROM (EPROM) among Fig. 3.Singlechip CPU has a plurality of series, has a plurality of types selective in each series again, as MCS-51 series, MCS-96 series, 68HC05 series etc.In the MCS-51 series, have 8031 again, 80C31,8751,87C51 be selective.Choose cheap 8031 in the present embodiment and be CPU.If select for use 8751 to be CPU, then IC3, IC4 can omit.8751 inside have program storage EPROM, choose 8751 and are CPU, and then circuit structure is simpler, and confidentiality is stronger, but that present 8751 price is compared with 8031 is too high, along with after the price of development of electronic technology 8751 descends, preferably adopt 8751 to be CPU.8031 (8751) inner structure, pin function and order set have detailed introduction in the Fundamentals of Mono-Chip Computers books.
There is multiple integrated circuit (IC) chip can be address latch IC3 and program storage IC4, can makes address latch, and for example 2732,2764,27128,27256 etc. can make program storage as 74LS373,74LS273,8228 etc.Adopt 74LS373 to do address latch in the present embodiment, 2764 make program storage.
IC5 is serial EEPROM 93C46 among Fig. 3, i.e. serial EEPROM on smart card Fig. 2.
Electrically erasable programmable ROM EEPROM can wipe or write data under+5 volts of voltages, under powering-off state, interior data can long preservation.EEPROM has parallel and serial data communication two big classes.The parallel big speed of EEPROM memory capacity is fast, but external connection is many, as 2817A 28 pins is arranged, generally need external 26 lead-in wires during application, so parallel EEPROM is not suitable for making card, otherwise the complexity that is connected of card and read-write equipment, and the price of parallel EEPROM is more than the serial EEPROM height.Serial EEPROM memory capacity is less, but when making credit card, its memory capacity can meet the demands fully, particularly its external connection seldom, cheap, add that enciphered read-write device provided by the invention makes the serial EEPROM jig that very strong confidentiality is arranged again, so be suitable for making credit card.The tie of disclosed serial EEPROM card and its read-write equipment has 6 among patent documentation CN2143795Y and the CN2154486Y, and wherein 2 is power lead, and 4 is signal wire.Tie between serial EEPROM card provided by the invention and its enciphered read-write device has only 5, and wherein 2 is power lead, and 3 is signal wire, has saved the mouth line of CPU, and connecting further between card and its read-write equipment simplified.
IC6 is another piece serial EEPROM 93C46 among Fig. 3, is used for depositing the multidate information that the required power down of CPU is not lost.Lose because of power down for avoiding the required important information of CPU, except that adopting serial or parallel EEPROM, can also on CPU, add reserve battery, reserve battery is only powered to CPU during power down, keep the content in the CPU internal RAM not lose, but for requiring the non-maintaining instrument of long-time running, when memory space is little, adopt serial EEPROM the best.Parallel EEPROM price height.
F1 is a hummer among Fig. 3, and T1 is a triode, and T1, F1 and the resistance that is connected on the T1 base stage are formed circuit.One termination of F1+5V power supply, the collector of another termination T1, the grounded emitter of T1.The alerting signal of CPU IC2 output is amplified through T1 sounds hummer F1.
T2 is a triode among Fig. 3, and K2 is the coil of a relay, and D2 is a diode, and T2, K2, D2 and the resistance that is connected the T2 base stage are formed the output signal circuit.One termination of K2+5V power supply, the collector of another termination T2, the grounded emitter of T2, the anode of D2 connects the collector of T2, and negative electrode connects+the 5V power supply.The switching value signal of CPU IC2 output drives relay by T2, with the contact output of relay.The high voltage protection T2 that D2 induces when being used to absorb the relay coil sudden power.
D1 is a light emitting diode among Fig. 3, and T3 is a phototriode, and D1, T3 and resistance R 7, R8 form photoelectric detective circuit.The anode series resistance R 7 of D1 is connected to+the 5V power supply, plus earth, and the collector of T3 connects+the 5V power supply, and emitter is through resistance R 8 ground connection.Photoelectric detective circuit cooperates with aperture 7 among Fig. 2, and whether be used for detecting has smart card to insert or withdraw from.Smart card just can be read and write after inserting, with the information of guaranteeing to read correctly.The information that read-write equipment will write smart card earlier writes among the IC6, and then writes in the smart card.Stopping immediately when moving back card the smart card information of carrying out is write, is standard with the data that are stored among the IC6.
P3.4 is the pin of CPU IC2 timer conter T0 among Fig. 3, draws single line to socket J2 by P3.4, is used for the collection site data.Field data is input to P3.4 with the form of pulse.CPU IC2 with T1 regularly, the T0 counting, the T1 interrupts of CPU reads the pulse number of T0, just can measure some on-the-spot physical quantitys as calculated.
IC8 is voltage comparator LM311 among Fig. 3, and IC8 and resistance R 3, R4, R5, R6 and voltage stabilizing diode DW1 form power-fail detection circuit.One termination of resistance R 3+5V power supply, the in-phase input end of another termination IC8, the in-phase input end of resistance R 4 one termination IC8, other end ground connection, one termination of resistance R 5, R6+5V power supply, the inverting input of another termination IC8 of resistance R 5, the output of another termination IC8 of resistance R 6, the output of IC8 is connected to the external interrupt mouth line of CPU IC2, and the negative electrode of DW1 connects the inverting input of IC8, the plus earth of DW1.During power down, power-fail detection circuit is exported a pulse, and interrupts of CPU writes EEPROM IC6 with the important information that does not allow to lose immediately, stops smart card and EEPROM IC6 to be read and write again, and prevents to destroy data.
T is that transformer becomes 7V with 220V voltage among Fig. 3, and D3, D4, D5, D6 are commutation diode, and the alternating voltage of transformer T output is become DC voltage, through capacitor C 2, C3 filtering, after regulator block 7805 voltage stabilizings, export+5 volts of voltages, as the required+5V power supply of device.
J1 grafting intelligent cards among Fig. 3, J2 connects input signal, and J3 introduces AC power and output switching value signal.
The course of work of embodiment 1; When just the no smart card of energising inserted, the P1.7=0 relay normally open contact disconnected.When smart card inserted, the emitter of T3 produced a pulse, interrupts of CPU IC2.CPU IC2 carries out corresponding service routine; At first, the information in the smart card is read the RAM district of CPU inside; Secondly, tell securities information and encrypted message by decoding rule F; The 3rd, judge whether password is correct, if incorrect, then send alerting signal by P1.6, the P1.7=0 relay normally open contact disconnects.If correct, then P1.7=1 makes the relay normally open contact closure, and the amount of money data of the securities information representative in the smart card flow to IC1 by CPU, shows time-delay closing through IC1 decoding driving LED 1, LED2, LED3, LED4; The 4th, CPU reads the pulse number of start-stop counter record at regular intervals, and fixed time interval is by the Timer T1 decision of CPU, and pulse number is by the Timer T0 record of CPU; The 5th, move back card when inserting neocaine more at every turn, CPU will differentiate its true and false; The 6th, when the amount of money data of card representative ran low, CPU sent alerting signal.When exhausting, the CPU time-delay makes P1.7=0, and relay normally open contact disconnects.
Its key step is shown in Fig. 4 flow chart.
The form of pulse is adopted in data acquisition among the embodiment 1, and output signal is a switching value.If input adds the A/D change-over circuit, then can gather simulating signal.If output adds the D/A change-over circuit, then can export the simulating signal control executing mechanism.
Embodiment 2: watt-hour meter with intelligence card
Fig. 5 is the theory diagram of embodiment 2.As shown in Figure 5, the smart card that the serial EEPROM among the embodiment 1 constitutes is made power consumption card 9, is core 10 with the enciphered read-write device, mixes power consumption Acquisition Circuit 11 again, and relay 12 has just constituted watt-hour meter with intelligence card.Relay 12 contact capacities among Fig. 5 are big, can be used for being switched on or switched off user's power circuit.
Fig. 6 is the schematic diagram of power consumption Acquisition Circuit, and wherein 13 is reflective photoelectric sensors, and 14 is an aluminium dish, and the chequered with black and white sign bit of a circle is arranged on it, and black is not reflective, the photoelectric sensor output low level; White reflection output high level.The aluminium dish whenever circles just the pulse of fixed number output, and this pulse flows to the Timer T0 of CPU IC2.
The course of work of embodiment 2:
Electricity consumption card amount manages distribution by management of power use department, and the user pays tariff in advance to the card issuing place of management of power use department, gets the power consumption card.The power consumption card is inserted intelligent kilowatt-hour meter, and intelligent kilowatt-hour meter reads the forward purchasing electricity consumption number of degrees on the power consumption card and the password of electricity consumption card amount, and whether examine password correct.When password was correct, the intelligent kilowatt-hour meter storage forward purchasing electricity consumption number of degrees sent signal and drive relay connecting subscribers participating power circuit.During password bad, then send alerting signal, refusal connecting subscribers participating power circuit.
Along with user's consumed power, intelligent kilowatt-hour meter reduces the forward purchasing electricity consumption number of degrees of storage, and will remain the online encryption of the electricity consumption number of degrees at any time and write the electric weight card.When the forward purchasing electricity consumption number of degrees on the power consumption card ran low, intelligent kilowatt-hour meter sends urged the expense signal, and the user can extract the power consumption card, the more change card of paying dues to management of power use hair fastener place, or hand over the user to use again after with former card data rewriting by the hair fastener place.The remaining electricity consumption number of degrees of user, and after former card extracted, the electric energy number of degrees that the user consumes again all were stored in the intelligent electric meter.After the user inserted neocaine, intelligent kilowatt-hour meter is square up at once, and shows.When the forward purchasing electricity consumption number of degrees on the power consumption card exhaust, the intelligent kilowatt-hour meter delay cutting power.The electric energy watt-hour meter that time-delay stage user consumes stores equally, and clearing are used when inserting neocaine for the user.
If the user forges the power consumption card and rewrites data on it, then revised card has just become useless card.Because the user does not know how the forward purchasing electricity consumption number of degrees and the password in the power consumption card is arranged, and does not also know encrypted message, so revised power consumption card, intelligent kilowatt-hour meter is identified as pseudo-card, power alarm.If the user removes to duplicate the power consumption card, and will duplicate card or former card is used for this table, and then have only the power consumption card of first insertion effective, all the other cards are all invalid.Because the intact forward purchasing electricity consumption number of degrees of card that insert are by the online minimizing of CPU, the forward purchasing electricity consumption number of degrees that card is inserted in the back are greater than inserting card earlier, and their encrypted message is identical, violated encrypted message when identical, the regulation that the forward purchasing electricity consumption number of degrees can not increase is inserted card and all is identified as pseudo-card after the institute.If the power consumption card that duplicates is inserted other intelligent kilowatt-hour meter, then other intelligent kilowatt-hour meter is also discerned and is duplicated card for pseudo-card and power alarm, because the password difference of employed power consumption card on each intelligent kilowatt-hour meter can not be exchanged use.Want to exchange and use, need to rewrite encrypted message by management of power use department.When the user will use up or use up at the forward purchasing electric weight of power consumption card, the neocaine that is changed to management of power use department or through the former card of rewriting information, its encrypted message changes by predetermined rule G, come so intelligent kilowatt-hour meter can be distinguished this situation with the forgery situation.
In sum, smart card provided by the invention and enciphered read-write device thereof have the following advantages:
When 1. having solved serial communication electrically-erasable memory (EEPROM) formation credit card, the safety problem of its card internal information.
2. prevented in the insertion of card or withdrawed from read-write card internal information in the process.
3. to compare this apparatus structure simple, cheap with the read-write equipment of magnetic card, bar code card.
4. after adding different data acquisition circuit and topworks, can form intelligent little instrument such as intelligent electric meter, intellectual water meter, intelligent gas meter, realize electricity consumption, water, manage, save the statistician that checks meter in a large number, tabulates with the microcomputer of gas, stop up artificial leak, increase work efficiency.

Claims (7)

1. a smart card is made of an insulcrete and a serial EEPROM integrated package, and serial EEPROM integrated package welded and installed is on insulcrete; An end that is positioned at grafting on the insulcrete has the sheet metal of 5 mutual insulatings, the pin of serial EEPROM to be connected on these 5 sheet metals; It is characterized in that except that having securities information, also there is encrypted message in the serial EEPROM; Near an end of pegging graft a small sircle hole is arranged on the insulcrete.
2. smart card as claimed in claim 1 is characterized in that, securities information in the smart card and encrypted message are to arrange by the rule E that the designer sets.
3. smart card as claimed in claim 1 is characterized in that, when changing card, encrypted message wherein changes by the rule G that the designer sets.
4. an enciphered read-write device that is used for the described smart card of claim 1 comprises singlechip CPU (IC2), address latch (IC3), program storage (IC4), card slots and shell etc.; 8 incoming lines of address latch (IC3) and signal wire LE are connected to data bus and the PSEN line of CPU (IC2) respectively; The data line of program storage (IC4) is connected to the data bus of CPU (IC2), and the least-significant byte of address wire is connected to the output of address latch (IC3), high 5 P2 mouths that are connected to CPU (IC2), and the OE line is connected with the ALE/P line of CPU (IC2); Smart card is inserted by the card inserting mouth on the shell, links by sheet metal and card slots; It is characterized in that:
Also comprise display circuit, circuit, input/output signal circuit, random data storer (IC6), photoelectric detective circuit, power-fail detection circuit; The input signal cable of display circuit, output signal circuit and circuit is connected to respectively on CPU (IC2) the delivery outlet line; The signal wire of random data storer (IC6) is connected on the input and output bidirectional interface line of CPU (IC2); The input signal circuit is connected to the Timer input end of CPU (IC2); The output signal of photoelectric detective circuit, power-fail detection circuit is connected to respectively on the external interrupt mouth line of CPU (IC2); CPU (IC2) has 3 input and output bidirectional interface lines to be connected to card slots; Except that display circuit, the device of forming foregoing circuit is installed on the circuit board, and circuit board is installed in the shell; The device of forming display circuit is installed on the circuit board that is fixed in housing face-plate.
5. device as claimed in claim 4 is characterized in that, is solidified with decoding rule F and decoding rule H that the designer sets in the program storage of device (IC4), and rule F is corresponding one by one with rule E, and rule H is corresponding one by one with rule G.
6. device as claimed in claim 4 is characterized in that, installs the information that online encryption writes smart card, and when password was constant, the amount of money data of securities information representative only allowed to reduce, and do not allow to increase.
7. the smart card of being made up of the read-write equipment of the smart card of claim 1 and claim 4 and the method for work of enciphered read-write device thereof is characterized in that, follow these steps to work:
When 1. smart card inserted read-write equipment, photoelectric detective circuit was exported a pulse signal, and starting CPU (IC2) reads the information in the smart card;
2. CPU (IC2) to read the information identification of decoding, provide alerting signal by circuit during the password mistake, CPU when password is correct (IC2) will read information be stored in random data storer (IC6), provide the operate as normal signal by the output signal circuit;
3. CPU (IC2) is by input signal circuit image data, and the information in the smart card is rewritten in online encryption, and the information storage that will write smart card is in random data storer (IC6);
When 4. moving back card, CPU (IC2) stops smart card being read and write immediately;
CPU (IC2) will differentiate its true and false during 5. each plug-in card;
6. during power down, the data storing that power-fail detection circuit output signal, interrupts of CPU (IC2) will not allow to lose is in random data storer (IC6).
CN94110571A 1994-05-04 1994-05-04 Intelligent card and enciphered read-write device Expired - Fee Related CN1039461C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN94110571A CN1039461C (en) 1994-05-04 1994-05-04 Intelligent card and enciphered read-write device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN94110571A CN1039461C (en) 1994-05-04 1994-05-04 Intelligent card and enciphered read-write device

Publications (2)

Publication Number Publication Date
CN1111377A CN1111377A (en) 1995-11-08
CN1039461C true CN1039461C (en) 1998-08-05

Family

ID=5034526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN94110571A Expired - Fee Related CN1039461C (en) 1994-05-04 1994-05-04 Intelligent card and enciphered read-write device

Country Status (1)

Country Link
CN (1) CN1039461C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1061448C (en) * 1997-03-18 2001-01-31 徐祖华 Chinese character coding method with coding components corresponding with shaping components
KR100575767B1 (en) * 2004-03-05 2006-05-03 엘지전자 주식회사 International mobile equipment identity number input method for mobile station
CN105891767B (en) * 2016-06-01 2018-11-02 中国南方电网有限责任公司电网技术研究中心 Take the anti-counterfeiting card attack function test method and system of control electric energy meter
CN108597119B (en) * 2018-04-24 2021-01-26 山东和同信息科技股份有限公司 Intelligent control method for agricultural water price reform radio frequency card terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2143795Y (en) * 1992-09-11 1993-10-13 秦忠 Electronic credit card

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2143795Y (en) * 1992-09-11 1993-10-13 秦忠 Electronic credit card

Also Published As

Publication number Publication date
CN1111377A (en) 1995-11-08

Similar Documents

Publication Publication Date Title
CN2837796Y (en) Step-wise charging and prepayment card type intelligent water meter
CN101285849A (en) Remote automatic centralized control monitoring meter reading system
CN203444560U (en) Single-phase fee-control intelligent ammeter
CN1039461C (en) Intelligent card and enciphered read-write device
CN214670882U (en) STS prepayment gas meter based on bluetooth communication
CN2446891Y (en) Inductive automatic vending machine
CN113938765A (en) Electric energy metering data uploading processing method and system
CN2199568Y (en) Centralized wireless copying apparatus for electric meter
CN2679889Y (en) Valley current socket
CN108649654A (en) A kind of charging method, device and terminal device
CN101303783A (en) Energy (electricity) management method and system for paying in time and copying back electric quantity
CN2158110Y (en) Multidrop-electricity-consumption digital automatic processing equipment
CN2354194Y (en) Ic-card computor controller for water meter
CN2331975Y (en) Dual-purpose prepayment electric energy meter for double fee rate and single fee rate
CN2170540Y (en) Computerized magnetic card cost counter for pipeline gas
CN2310312Y (en) IC card running water meter
CN2185909Y (en) Fees calculator and fees collector for IC and kilowatt-hour meter
CN2313246Y (en) Shift recording instrument
CN2599676Y (en) Multiple-residence integrated electric energy controlled management device
CN2278222Y (en) Intelligent card fee pay in advance electric meter device
CN2161930Y (en) Electronic card type intelligent kilowatt-hour meter by computer-management
CN2306531Y (en) Running state recorder for environmental protection equipment
CN2335195Y (en) IC card pay collector with timing payment counting and control function
CN2284961Y (en) IC card pre-payment single-phase watt-hour meter
CN2336411Y (en) Controlling unit for code exchange prepay data

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
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee