A kind of Intelligent Card for Gas Meter read-write card automatic detection device and detection methodTechnical field
The present invention relates to a kind of Intelligent Card for Gas Meter read-write card automatic detection device and detection method.
Background technology
Civilian IC card intelligent gas meter the manufacturing during, the detection-phase of taximeter and complete machine generally require bySpecific data is input in taximeter or complete machine by carrier of IC card, while it is carrier from taximeter or complete machine to be also required to using IC cardInspection correctness is compared in middle acquisition data.Under traditional manual detection mode, need be prepared in advance relevant writeCard data, operation computer make corresponding instrument IC card by card reader/writer, and operating personnel require according to procedure technology, in phaseTo taximeter or the corresponding instrument IC card of gas meter, flow meter complete machine deck insertion under the detecting step answered.Due among whole detection processMany detecting steps all need with instrument IC card to taximeter or complete machine input data to meet the needs of detection, therefore just needOperating personnel continually plug the instrument IC card of not same-action in whole detection process, maloperation easily occur, and detectIt is inefficient, in order to meet the needs of production capacity again, it is necessary to which multiple stations are carried out at the same time detection, this, which result in, uses instrument IC cardThe increase of amount, make the making of instrument IC card, management, calling, change work very it is cumbersome.
The content of the invention
For problems of the prior art, it is an object of the invention to provide a kind of Intelligent Card for Gas Meter read-write cardThe technical solution of automatic detection device and detection method.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that:The device is by IC card numberAccording to control interface, IC card selection analog switch module, IC card switching analoging switch module, IC card in place analog switch module,Logic encryption card chip, CPU card chip and analog interface card composition, IC card data and control interface and IC card selection analog switchAnalog switch module is connected in place for module, IC card switching analoging switch module and IC card, logic encryption card chip and CPU card chipIt is connected with IC card selection analog switch module, IC card switching analoging switch module and IC card selection analog switch module and simulationInterface card is connected, and analog switch module is connected IC card with analog interface card in place.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the IC card data and controlBy IC card data-interface, IC card, control interface, IC card switching control interface and IC card selection control interface form interface processed in place,IC card data and control interface be a circuit interface, receive exterior control signal also serve as at the same time IC card data input andOutput interface;The IC card data-interface is connected by IC card reading and writing data bus with IC card switching analoging switch module, IC cardBy IC card, analog switch module is connected control line control interface in place with IC card in place in place, and IC card switching control interface passes throughIC card switching control line is connected with IC card switching analoging switch module, IC card select control interface by IC card select control line withIC card selection analog switch module connection, control interface, IC card switching control interface and IC card select control interface to IC card in placeFor receiving the control signal of peripheral control unit, to IC card analog switch module, IC card switching analoging switch module, IC card in placeThe analog switching ic of selection analog switch inside modules is controlled.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the IC card selection simulationSwitch module is made of analog switching ic and IC card selection control line, and analog switching ic is internally provided with a listDpdt double-pole double-throw (DPDT) type simulant electronic switch, one in two non-moving ends of single-pole double-throw type simulant electronic switch passes through logic encryption cardData/address bus is connected with logic encryption card chip, another in two non-moving ends of single-pole double-throw type simulant electronic switch passes throughCPU card data/address bus is connected with CPU card chip, and the common port of single-pole double-throw type simulant electronic switch is connected to IC card data connectionIn bus, analog switching ic selects control line to be connected to IC card and selects control interface, single-pole double throw pattern by IC cardIntend electronic switch and the control signal on control line is selected by single-pole double-throw type simulant electronic switch common port and two according to IC cardA connection in non-moving end, so that logic encryption card chip or CPU card chip are passed through logic encryption card data/address bus or CPUCard data/address bus is connected to IC card data connection bus.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the IC card switching simulationSwitch module is made of analog switching ic and IC card switching control line, and analog switching ic is internally provided with a listDpdt double-pole double-throw (DPDT) type simulant electronic switch, one in two non-moving ends of single-pole double-throw type simulant electronic switch is read and write number by IC cardIt is connected according to bus with IC card data-interface, another in two non-moving ends of single-pole double-throw type simulant electronic switch passes through simulationCard connection bus is connected with analog interface card, and it is total that the common port of single-pole double-throw type simulant electronic switch is connected to IC card data connectionOn line, analog switching ic is connected to IC card switching control interface, single-pole double-throw type simulation by IC card switching control lineElectronic switch is according to the control signal on IC card switching control line by the common port of single-pole double-throw type simulant electronic switch and twoA connection in a non-moving end, so that IC card data connection bus is connected bus with IC card read-write data/address bus or analog cardConnection.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the IC card is simulated in placeBy analog switching ic and IC card, control line forms switch module in place, and analog switching ic is internally provided with a hilted broadswordSingly throw simulant electronic switch, the both ends of single-pole single-throw(SPST simulant electronic switch respectively with the location switch contact I on analog interface cardConnected with location switch contact II, by IC card, control line is connected to IC card and controls in place and connects analog switching ic in placeMouthful, according to IC card, the control signal on control line is closed or opened single-pole single-throw(SPST simulant electronic switch in place, so as to control simulationThe on or off between location switch contact I and location switch contact II on interface card.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the analog interface card byStandard IC card contact and location switch contact composition, location switch contact is by II group of location switch contact I and location switch contactInto;The analog interface card meets the electronic circuit board of 7810 standards of ISO/IEC for a piece of appearance and size, and in ISO/IECThe location arrangements of 7810 standards requirement have the standard IC card contact, and standard IC card contact is connected bus connection with analog card;The standard IC card contact is used for when analog interface card is inserted into taximeter or gas meter, flow meter complete machine upper blocking seat to be checked and in deckSwitch jaw contact connects, and connects so that the IC card in taximeter to be checked or gas meter, flow meter complete machine is read and write bus and is connected bus with analog cardConnect, then lead under the control of single-pole double-throw type simulant electronic switch inside analog switching ic, the analog switching icCross IC card data connection bus, logic encryption card data/address bus and CPU card data/address bus and logic encryption card chip or CPU card corePiece connects, and taximeter or gas meter, flow meter complete machine is read and write IC card chip in device.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the location switch contactI and location switch contact II be used to distinguish in the IC card deck that analog interface card is inserted into taximeter to be checked or gas meter, flow meter complete machineConnected with the mechanical location switch both ends in deck, so that the switch ends in deck are connected in analog switching icThe both ends of portion's single-pole single-throw(SPST simulant electronic switch, make the IC card control signal that control interface receives in place be controlled in place by IC cardLine traffic control analog switching ic processed, with to IC card seat plug-in card location switch break-make in taximeter to be checked or gas meter, flow meter complete machine intoRow control.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the logic encryption card corePiece is a material object SLE4442 logic encryption card, after IC card selection analog switch module gating, switches simulation by IC card and opensModule selection is closed to connect with IC card data-interface or with analog interface card, when being connected with IC card data-interface, outside controlDevice writes data into logic encryption card chip by IC card data-interface, becomes a required tool card of detection,Data can be read from logic encryption card chip, so as to obtain the inner parameter in inspection taximeter or gas meter, flow meter complete machine;When withWhen analog interface card connects, connected by analog interface card with the IC card seat on inspection taximeter or gas meter, flow meter complete machine, realization makesWith read-write of the taximeter or gas meter, flow meter complete machine of logic encryption card to logic encryption card chip.
A kind of Intelligent Card for Gas Meter read-write card automatic detection device, it is characterised in that the CPU card chip isAfter one CPU card in kind, with IC card selection analog switch module gating, pass through the selection of IC card switching analoging switch module and ICCard data-interface is connected with analog interface card, and when being connected with IC card data-interface, peripheral control unit passes through IC card dataInterface writes data into CPU card chip, becomes a required tool card of detection, can also be read from CPU card chipGo out data, so as to obtain the inner parameter in inspection taximeter or gas meter, flow meter complete machine;When being connected with analog interface card, pass through simulationInterface card is connected with the IC card seat on inspection taximeter or gas meter, flow meter complete machine, is realized whole using the taximeter or gas meter, flow meter of CPU cardRead-write of the machine to CPU card chip.
A kind of Intelligent Card for Gas Meter read-write card automatic testing method, it is characterised in that detection method is as follows:
When peripheral control unit needs to transfer data to inspection taximeter or gas meter, flow meter complete machine, Card Reader control signal processed is sent firstIC card chip is connected with peripheral control unit, writes data into IC card chip, then sends plug-in card control signal again, IC card corePiece is connected with inspection taximeter or gas meter, flow meter complete machine, is finally sent and is snapped into signal, is triggered in inspection taximeter or gas meter, flow meter complete machineIC card chip is written and read;
Peripheral control unit can all send card selection control signal immediately after Card Reader control signal and plug-in card control signal processed is sent, withIndicate to be currently needed for operating is logic encryption card or CPU card.
Advantages of the present invention:
1st, the necessary tool card in kind of traditional detection mode instead of using online fabrication mode, instead of in traditional detection modeThe step of previously prepared tool card, save the consumption of entity IC, reduce the workload of fabrication, thread-changing;
2nd, will be drawn by the way of analog interface card in the deck interface of inspection taximeter or gas meter, flow meter complete machine, with reference to online fabricationWith the mode of electronic control signal triggering, the action of plug-in card instead of in traditional detection mode manually repeatedly, in detection processOnly need to be inserted into analog interface card when starting, reduce manual operation intensity, prevented the generation of maloperation;
3rd, using online fabrication, electronic control signal triggering, inspection taximeter or gas meter, flow meter complete machine are obtained by the way of online Card ReaderInternal data, compared with the mode rapid and convenient that tool card in kind is used in traditional detection mode;
4th, it is convenient using logic encryption card and the detection of the gas meter, flow meter of CPU card class IC card, switching to take into account.
Brief description of the drawings
Fig. 1 is the structure diagram of the present invention.
Embodiment
With reference to Figure of description, the invention will be further described:
For the deficiency of traditional detection means, the present invention provides a kind of Intelligent Card for Gas Meter read-write card automatic detection device,The device can be by peripheral control unit input control signal and fabrication data, by erasable obtaining phase to the real-time of internal IC card chipThe required instrument IC card of process should be detected, obtained instrument IC card and the taximeter or gas meter, flow meter complete machine deck in inspection can be connectedIt is logical, and can external trigger taximeter or the plug-in card of gas meter, flow meter complete machine in place signal make its to the IC card chip inside the present apparatus intoRow read-write, the function of data is transmitted so as to fulfill off-balancesheet to taximeter or gas meter, flow meter complete machine.The present apparatus can also be read through chargingData and exported in the IC card chip that device or gas meter, flow meter complete machine were read and write to peripheral control unit, so as to fulfill taximeter or combustion is obtainedThe function of gas meter complete machine inner parameter.The present apparatus has been internally integrated logic encryption card and the two kinds of IC card chip of CPU card, canThe IC card chip to be operated is chosen by peripheral control unit, to support respectively to the taximeter or complete machine using both types IC cardDetection need.
The present invention is by IC card data and control interface 1, IC card selection analog switch module 2, IC card switching analoging switchAnalog switch module 4, logic encryption card chip 5, CPU card chip 6 and analog interface card 7 form in place for module 3, IC card, ICCard data select analog switch module 2, IC card switching analoging switch module 3 and IC card mould in place with control interface 1 and IC cardIntend switch module 4 to be connected, logic encryption card chip 5 and CPU card chip 6 are connected with IC card selection analog switch module 2, ICCard switching analoging switch module 3 is connected with IC card selection analog switch module 2 and analog interface card 7, and IC card is simulated out in placeModule 4 is closed with analog interface card 7 to be connected.IC card data are controlled in place with control interface 1 by IC card data-interface 11, IC cardInterface 12, IC card switching control interface 3 and IC card selection control interface 14 form, and IC card data are one with control interface 1Circuit interface, the control signal for receiving outside also serve as input and the output interface of IC card data at the same time;IC card data-interface 11It is connected by IC card reading and writing data bus 111 with IC card switching analoging switch module 3, control interface 12 passes through IC to IC card in placeSnapping into control line 42, analog switch module 4 is connected in place with IC card, and IC card switching control interface 13 passes through IC card switching controlLine 32 is connected with IC card switching analoging switch module 3, and IC card selects control interface 14 to select control line 22 and IC by IC cardCard selection analog switch module 2 connects, IC card control interface 12, IC card switching control interface 3 and IC card selection control in placeInterface 14 is used to receive the control signal of peripheral control unit, to IC card analog switch module 4, IC card switching analoging switch in placeAnalog switching ic inside module 3, IC card selection analog switch module 2 is controlled.
The IC card selection analog switch module 2 of the present invention selects control line 22 by analog switching ic 21 and IC cardComposition, analog switching ic 21 are internally provided with a single-pole double-throw type simulant electronic switch, single-pole double-throw type simulation electronicOne in two non-moving ends of switch is connected by logic encryption card data/address bus 51 with logic encryption card chip 5, and hilted broadsword is doubleAnother thrown in two non-moving ends of type simulant electronic switch is connected by CPU card data/address bus 61 with CPU card chip 6, singleThe common port of dpdt double-pole double-throw (DPDT) type simulant electronic switch is connected in IC card data connection bus 112, and analog switching ic 21 is logicalCross IC card selection control line 22 and be connected to IC card selection control interface 14, single-pole double-throw type simulant electronic switch is selected according to IC cardControl signal on control line 22 is selected by a company in single-pole double-throw type simulant electronic switch common port and two non-moving endsIt is logical, so that logic encryption card chip 5 or CPU card chip 6 are passed through logic encryption card data/address bus 51 or CPU card data/address bus 61It is connected to IC card data connection bus 112.
The IC card switching analoging switch module 3 of the present invention is by analog switching ic 31 and IC card switching control line32 compositions, analog switching ic 31 are internally provided with a single-pole double-throw type simulant electronic switch, single-pole double-throw type simulation electricityOne in two non-moving ends of sub switch is read and write data/address bus 111 by IC card and is connected with IC card data-interface 11, hilted broadswordAnother in two non-moving ends of double-throw type simulant electronic switch is connected by analog card connection bus 711 with analog interface card 7Connect, the common port of single-pole double-throw type simulant electronic switch is connected in IC card data connection bus 112, and analog switch integrates electricityRoad 31 is connected to IC card switching control interface 13, single-pole double-throw type simulant electronic switch root by IC card switching control line 32According to the control signal on IC card switching control line 32 by the common port of single-pole double-throw type simulant electronic switch and two non-moving endsIn one connection so that by IC card data connection bus 112 and IC card read-write data/address bus 111 or analog card be connected bus711 connections.
The IC card of the present invention in place analog switch module 4 by analog switching ic 41 and IC card control line in place42 compositions, analog switching ic 41 are internally provided with a single-pole single-throw(SPST simulant electronic switch, single-pole single-throw(SPST simulant electronic switchBoth ends be connected respectively with the location switch contact I 721 on analog interface card 7 and location switch contact II 722, analog switchBy IC card, control line 42 is connected to IC card control interface 12 in place, single-pole single-throw(SPST simulant electronic switch to integrated circuit 41 in placeAccording to IC card, the control signal on control line 42 is closed or opened in place, so as to control the location switch on analog interface card 7 to touchOn or off between point I 721 and location switch contact II 722.
The analog interface card 7 of the present invention is made of standard IC card contact 71 and location switch contact 72, location switch contact72 are made of location switch contact I 721 and location switch contact II 722;The analog interface card 7 is a piece of appearance and sizeMeet the electronic circuit board of 7810 standards of ISO/IEC, and have the mark in the location arrangements of 7810 standards of ISO/IEC requirementQuasi- IC card contact 71, standard IC card contact 71 are connected bus 711 with analog card and connect;The standard IC card contact 71 is used forAnalog interface card 7 connects when being inserted into taximeter or gas meter, flow meter complete machine upper blocking seat to be checked with the switch jaw contact in deck, so as to will treatIC card read-write bus in inspection taximeter or gas meter, flow meter complete machine is connected bus 711 with analog card and connects, then is integrated in analog switchCircuit 21,31 inside single-pole double-throw type simulant electronic switch of analog switching ic control under pass through IC card data connectionBus 112, logic encryption card data/address bus 51 and CPU card data/address bus 61 connect with logic encryption card chip 5 or CPU card chip 6It is logical, taximeter or gas meter, flow meter complete machine is read and write IC card chip in device.
The location switch contact I 721 and location switch contact II 722 of the present invention is used to be inserted into analog interface card 7Connected respectively with the mechanical location switch both ends in deck during IC card deck in taximeter or gas meter, flow meter complete machine to be checked, so that willSwitch ends in deck are connected to the both ends of 41 inside single-pole single-throw(SPST simulant electronic switch of analog switching ic, make ICSnapping into the control signal that control interface 12 receives, control line 42 controls analog switching ic 41 in place by IC card,To be controlled to IC card seat plug-in card location switch break-make in taximeter to be checked or gas meter, flow meter complete machine.Original plug-in card machinery is dynamicMake triggering conversion in order to which electronic control signal triggers.
The logic encryption card chip 5 of the present invention is a material object SLE4442 logic encryption card, and analog switch is selected with IC cardAfter module 2 gates, pass through the selection of IC card switching analoging switch module 3 and IC card data-interface 11 or and analog interface card7 connections, when being connected with IC card data-interface 11, peripheral control unit writes data into logic add by IC card data-interface 11Close the core of the card piece 5, becomes a required tool card of detection, also can read data from logic encryption card chip 5, fromAnd obtain the inner parameter in inspection taximeter or gas meter, flow meter complete machine;When being connected with analog interface card 7, pass through analog interface card 7Connected with the IC card seat on inspection taximeter or gas meter, flow meter complete machine, realize taximeter or gas meter, flow meter complete machine using logic encryption cardRead-write to logic encryption card chip 5.
The CPU card chip 6 of the present invention is a CPU card in kind, after being gated with IC card selection analog switch module 2, is passed throughThe selection of IC card switching analoging switch module 3 is connected with IC card data-interface 11 or with analog interface card 7, when with IC card numberWhen being connected according to interface 11, peripheral control unit writes data into CPU card chip 6 by IC card data-interface 11, becomes oneThe required tool card of detection is opened, also can read data from CPU card chip 6, so as to obtain in inspection taximeter or gas meter, flow meterThe inner parameter of complete machine;When being connected with analog interface card 7, by analog interface card 7 with examining taximeter or gas meter, flow meter complete machineOn the connection of IC card seat, realize the read-write to CPU card chip 6 of taximeter or gas meter, flow meter complete machine using CPU card.
A kind of Intelligent Card for Gas Meter read-write card automatic testing method, method are as follows:
When peripheral control unit needs to transfer data to inspection taximeter or gas meter, flow meter complete machine, Card Reader control signal processed is sent firstIC card chip is connected with peripheral control unit, writes data into IC card chip, then sends plug-in card control signal again, IC card corePiece is connected with inspection taximeter or gas meter, flow meter complete machine, is finally sent and is snapped into signal, is triggered in inspection taximeter or gas meter, flow meter complete machineIC card chip is written and read;Peripheral control unit can all be sent immediately after Card Reader control signal and plug-in card control signal processed is sentCard selection control signal, is logic encryption card or CPU card with indicate to be currently needed for operating.
The present apparatus receives fabrication or Card Reader control signal by IC card switching control interface 13 first, is cut by IC cardThe analog switching ic 31 that control line 32 is transferred in IC card switching analoging switch module 3 is changed, analog switch integrates electricityRoad 31 connects IC card data connection bus 112 with IC card reading and writing data bus 111 after receiving Card Reader control signal processed, itThe present apparatus selects control interface 13 to receive the card selection control signal that peripheral control unit is sent by IC card afterwards, is selected by IC cardThe analog switching ic 21 that control line 22 is transferred in IC card selection analog switch module 2 is selected, analog switch integrates electricityRoad 21 selects logic encryption card data/address bus 51 or CPU card data/address bus 61 and IC card number according to received card selection control signalConnected according to connection bus 112.Two above step is completed, peripheral control unit can be read and write by IC card data-interface 11, IC cardData/address bus 111, IC card data connection bus 112, logic encryption card data/address bus 51 or CPU card data/address bus 61 and logicEncrypted card chip 5 or CPU card chip 6 connect, and erasable operation is carried out to card.
Erasable into rear, the present apparatus receives plug-in card control signal by IC card switching control interface 13, is cut by IC cardThe analog switching ic 31 that control line 32 is transferred in IC card switching analoging switch module 3 is changed, analog switch integrates electricityRoad 31 connects IC card data connection bus 112 with analog card connection bus 711 after receiving plug-in card control signal;Afterwards originallyDevice selects control interface 13 to receive the card selection control signal that peripheral control unit is sent by IC card, selects to control by IC cardLine 22 processed is transferred to the analog switching ic 21 in IC card selection analog switch module 2, analog switching ic21 select logic encryption card data/address bus 51 or CPU card data/address bus 61 and IC card data according to received card selection control signalConnection bus 112 connects.Two above step is completed, can pass through standard IC card contact in inspection taximeter or gas meter, flow meter complete machine71st, analog card connection bus 711, IC card data connection bus 112, logic encryption card data/address bus 51 or CPU card data are totalLine 61 is connected with logic encryption card chip 5 or CPU card chip 6.
After the completion of connection, by IC card, control interface receives and snaps into signal the present apparatus in place, is controlled in place by IC cardLine 42 processed is transferred to IC card analog switch mould analog switching ic 41 in the block in place, analog switching ic 41Receive and snap into single-pole single-throw(SPST simulant electronic switch closure internal after signal, touched by the location switch in analog interface card 7Point I 721, location switch contact II 722 realize the triggering to the location switch in inspection taximeter or gas meter, flow meter complete machine deck, makeStandard IC card contact 71, analog card connection bus 711, IC card data connection are begun through in inspection taximeter or gas meter, flow meter complete machineBus 112, logic encryption card data/address bus 51 or CPU card data/address bus 61 and logic encryption card chip 5 or CPU card chip 6Carry out exterior read-write card operation.
When peripheral control unit needs to obtain the internal data in inspection taximeter or gas meter, flow meter complete machine, will first press aforesaid operations willOne group of data is transferred in inspection taximeter or gas meter, flow meter complete machine by the present apparatus, this is being read in inspection taximeter or gas meter, flow meter complete machineInherent parameters retrography can be returned to the IC card chip in the present apparatus after group data(Logic encryption card chip 5 or CPU card chip 6)In.Peripheral control unit will send system/Card Reader control signal again afterwards, and the present apparatus is received by IC card switching control interface 13To Card Reader control signal processed, the simulation being transferred to by IC card switching control line 32 in IC card switching analoging switch module 3 is openedIntegrated circuit 31 is closed, analog switching ic 31 is received 112 He of IC card data connection bus after Card Reader control signal processedIC card reading and writing data bus 111 connects.The present apparatus selects control interface 13 to receive peripheral control unit hair by IC card afterwardsThe card selection control signal gone out, selects control line 22 to be transferred to IC card and selects the simulation in analog switch module 2 to open by IC cardIntegrated circuit 21 is closed, analog switching ic 21 selects logic encryption card data/address bus according to received card selection control signal51 or CPU card data/address bus 61 connected with IC card data connection bus 112.Complete two above step, peripheral control unitIt is total by IC card data-interface 11, IC card read-write data/address bus 111, IC card data connection bus 112, logic encryption card dataLine 51 or CPU card data/address bus 61 are connected with logic encryption card chip 5 or CPU card chip 6, and reading is connected in IC card chipData so that obtain inspection taximeter or gas meter, flow meter complete machine internal data.