Background technology
For reducing the waste of human and material resources in the electric energy toll administration, solve the problem of electric company's difficult charge, for the foundation of charging accurately is provided between electricity consumption user and the electric company, the prepayment IC-card electric energy meter that have higher reliability, scientifically calculates power consumption has obtained popularization energetically.
Chinese patent: " full electronic prepayment IC-card electric energy meter (CN2289247Y) ", comprise power converting circuit, current sample and voltage sampling circuit, analog multiplier, V/F transducer, multistage counter, meter degree display adds up, electric energy meter checking device, single chip microcomputer computing machine, surplus electric demonstration and warning, IC-card input, data access, the control circuit of operating a switch.The IC-card electric energy meter has overcome the defective of stem-winder, the reliability height.In Chinese patent, also disclosed the method for inspection of electric energy meter, Chinese patent: " the single-phase pre-payment electric energy meter verifying attachment and the method for inspection thereof (CN101477726) ", device comprises control system, program control single-phase power source, the single-phase multifunctional standard scale, Error Calculation/display and electric energy meter meter hanging frame, tested electric energy meter is arranged on the electric energy meter meter hanging frame, this device includes the pre paid functionality tentative module, pre paid functionality is connected in parallel on and is connected on the tested electric energy meter electric current end word, when carrying out the test of single-phase pre-payment electric energy meter pre paid functionality, guarantee that in the single-phase pre-payment electric energy meter tripping operation with when closing a floodgate power source can operate as normal by the pre paid functionality tentative module.
In the process of the production verification of prepayment IC-card electric energy meter in batch process, the method for inspection exists obviously not enough.The conventional method of inspection is: device provides working power, selects corresponding IC-card for use according to the concrete function of test then, and whether this function card of plug and artificial judgment Card Reader be successful in every IC-card table successively.So the frequent card that manually plugs and unplugs has repeatedly brought very big inconvenience to verification, the subject matter of routine inspection method has:
1, security reduces: have certain security risk in the management that verification also blocks after with the card drawing before each verification of various function IC-cards, verification;
2, inefficiency: thereby because the artificial frequent IC-card that plugs and unplugs has reduced work efficiency, and have the possibility of artificial misplug card;
3, automatization level is low: because the existence of artificial plug-in card, thereby cause accomplishing full-automatic verification.
Summary of the invention
The present invention mainly provides a kind of plug-in card automatically, increases work efficiency the calibration equipment of the prepayment IC-card electric energy meter that automaticity is high; Solved exist in the prior art when prepayment IC-card electric energy meter is detected, need plug IC-card repeatedly, ineffective technical matters.
It is a kind of safe that the present invention provides simultaneously, and IC-card is simulated the application of card-inserted device on testing apparatus automatically, makes the IC-card function realize the method for testing of online updating; It is low to have solved in the method for testing that exists in the prior art security, needs the technical matters of frequent plug-in card.
Above-mentioned technical matters of the present invention is mainly solved by following technical proposals: a kind of calibration equipment of prepayment IC-card electric energy meter, comprise automatic plug-in card mechanism with link to each other with automatic plug-in card mechanism write the card computing machine, described automatic plug-in card mechanism comprises base, on base, be fixed with circuit board, motor is installed on circuit board, the output shaft of motor links to each other with cam, described cam is connected with slide bar, described slide bar slides in described guide pin bushing, described guide pin bushing is fixed on the circuit board, draw-in groove in described slide bar and the electric energy meter joins, be integrated with singlechip controller and IC-card module on the described circuit board, described singlechip controller by communication interface with write the card computing machine and join.
Automatically the plug-in card device inserts in the IC-card groove, spring leaf in the IC-card groove is clamped prefabricated card-inserting device, the rotation of driven by motor cam, because slide bar and cam join, the rotating band moving slide-bar of cam slides in guide pin bushing, slide bar moves forward, and the spring leaf that will promote in the IC-card groove moves around once, is equivalent to plug-in card once.The workman, rotates by the Single-chip Controlling motor according to test request as requested as long as automatic plug-in card device is inserted in the IC-card groove, drives slide bar and moves around, and reaches repeatedly the purpose of plug-in card, test complete after, the workman extracts plug-in card equipment and gets final product.The IC-card module writes the IC-card data message by the computing machine of outside on the circuit board in the automatic plug-in card device, and simulate the plug of IC-card by the control of single-chip microcomputer, therefore carry out card drawing repeatedly when not needing again the IC-card of the various functions of verification, card also after the verification, and plug repeatedly.Only need write different data messages to IC-card on the circuit board, simulate different IC-card functions and carry out the verification of ammeter, improve work efficiency and automaticity by computing machine.
The method of calibration of the prepayment IC-card electric energy meter of corresponding said structure is: at first open working power, write specific data by the card module of writing in the computing machine by the IC-card module of communication port on circuit board according to the concrete function that will test; After writing ED, write the card trigger module and carry out Card Reader, then information is sent to the control module of the card table action in the single-chip microcomputer, the control module of card table action receives that the execution module drive motor of control card table action rotates after the control information, motor rotates realizes the plug-in card action, the IC-card that inserts in the electric energy meter is transferred to the IC-card data that write on the electric energy meter, electric energy meter carries out corresponding actions according to the content of IC-card, after finishing the meter reading process, the execution module drive motor of the control module control card table action of card table action rotates once more, the state of extracting of simulation IC-card is finished the Card Reader process to electric energy meter.
By card module writes difference in functionality to the IC-card module on the circuit board the program of writing in the computing machine, make IC-card possess different functions, after writing ED, the card trigger module of writing in the single-chip microcomputer is triggered, send information to the control module of the card table action realization in the single-chip microcomputer and the execution module that the Ka Biao action realizes, by the control of the card table action control module in single-chip microcomputer motor action, thereby realization Plug Action, because computing machine is write the IC-card that card module can write various difference in functionalitys, as increase the electric weight card, the relay test card, tariff period is provided with card, table number is provided with card, the user purchases electricity card and new table card number card, the IC-card that does not need at every turn to change difference in functionality is realized verification, improved security, only need utilize computing machine that the IC-card module is write different function programs and get final product.
As preferably, described motor is fixed on the circuit board by motor cabinet, described motor fixing seat by screw retention on circuit board, the back-moving spring of symmetric arrangement is installed on motor cabinet, one end of described back-moving spring links to each other with slide bar, the other end of back-moving spring is fixed on the motor cabinet, and back-moving spring is positioned at the both sides of cam, and the cam butt has slide bar.Utilize motor cabinet fixed electrical machinery and back-moving spring, rotate to height at cam and name a person for a particular job after slide bar releases, after cam continues to rotate to low spot, utilize back-moving spring that slide bar is retracted.The fit structure of cam and back-moving spring is simple, and better reduction is simple to operate simultaneously.
As preferably, described guide pin bushing is a strip, is provided with the guide rail that matches with slide bar at the center of guide pin bushing, and the epoxide-resin glue of described guide pin bushing by pouring is fixed in the corresponding recesses on the circuit board.Offer corresponding grooves on circuit board, utilize epoxide-resin glue to be cast on the circuit board guide pin bushing, good insulating is Stability Analysis of Structures simultaneously.
As preferably; described base comprises loam cake and lower cover; described loam cake is connected by screw with lower cover; described circuit board is between loam cake and lower cover; be provided with installation over cap with the base snapping in a side of described base; described base and installation over cap constitute a box body, and described circuit board is positioned at box body.The base that loam cake and lower cover constitute is used for fixing circuit board, the other end of base be provided with the mutual snapping of base according to over cap, both form altogether a box body with the circuit board protection in box body, guarantee when not using, to give circuit board a well protection.
As preferably, include in the described singlechip controller write the card trigger module, with write the execution module that control module that card table action that the card trigger module is connected by communication bus realizes and Ka Biao action realize, the described card trigger module of writing is connected with the card module of writing in the computing machine by communication bus, write the card trigger module simultaneously and link to each other, write the IC-card module that the card trigger module triggers on the ammeter and read in data with IC-card module on the circuit board; The control module that described card table action realizes receives the information of writing card trigger module and execution module transmission, and simultaneously corresponding instruction being transferred to the execution module of card table action, the execution module of described card table action links to each other with control module by port bus and links to each other with motor and controls motor rotation.
Wherein, write the control program that card module is primarily aimed at total system.Program is by IC-card module in the computing machine write circuit plate, switches through relay switch, is connected to the control and the execution module of each card table by communication bus, realizes being realized by the action of automatic programming program of computing machine and Ge Ka table.This module is write card to specialized card reader, is control of card table and the execution module dedicated module by address selection.
The control module that the action of card table realizes is the control center of total system, carries out the reception of data by it, transmit, and the control of object epi-position, and the feedback of executing state etc.Control system is at first selected the epi-position of required action by addressing circuit, reserve the epi-position address in advance, after every preparation puts in place, by agreement control transmission information, by the single-chip microcomputer identification control, opens the data transfer relay, and motor action is carried out.
Obtain the crucial electronic component of each several part simultaneously: (1) single-chip microcomputer (AT89C8052), control and treatment center.(2) data bus connectivity port (the simple and easy ox horn of 10P), communication data transmits crucial.(3) relay (TQ2-5V), the data transfer gauge tap.(4) address selection (2*7 right angle row's pin), the object epi-position is selected.(5) motor-driven (ULN2068B), motor action realizes crucial.
The execution module that the action of card table realizes: this module is an implementation center of system, directly acts on each ammeter, and module is controlled by control module by port bus, also comprises stepper motor, photoelectricity coupling reception, transmitter and IC-PAD.
Wherein (1) stepper motor is selected 25BY48H01-05 for use, and 2-2 phase bipolarity constant pressure drives, high stable, high precision.(2) photoelectrical coupler is selected EC-IR4515C and EC-PT4515C flat element for use, and convenient better installation reaches motor push rod positioning action simultaneously.(3) IC-PAD, port is in full accord with common IC-card, makes the ammeter reading of data accurate.
Therefore, the calibration equipment of prepayment IC-card electric energy meter of the present invention and method thereof have following advantage: utilize computing machine that the in-house IC-card module of automatic plug-in card is write different data, thereby make the in-house IC-card of automatic plug-in card possess different functions, realize automatic plug-in card by singlechip controller, thereby realize different electric energy meters are carried out verification, improved verification efficient and security performance.
Embodiment:
Below by embodiment, and in conjunction with the accompanying drawings, technical scheme of the present invention is described in further detail.
Embodiment:
Shown in Fig. 1 and 2 and 3; a kind of calibration equipment of prepayment IC-card electric energy meter; comprise automatic push-pull structure with link to each other with automatic plug equipment write the card computing machine; wherein push-pull structure comprises the base 4 that is connected and composed by screw 3 by loam cake 1 and lower cover 2 automatically; the other end of base 4 is snapped with installs over cap 5, and base 4 and installation over cap 5 constitute a housing.Be provided with circuit board 6 between loam cake 1 and lower cover 2, an end of circuit board 6 is fixed on by screw 3 on the end face of loam cake 1, and the other end is positioned at installs over cap 5.The end that circuit board 6 is positioned at base 4 is provided with through hole 7, motor 8 is fixed on the circuit board 6 by motor cabinet 9, be connected with cam 10 on the output shaft of motor 8, cam 10 passes the end that through hole 7 is connected to slide bar 11, in the both sides of cam 10 back-moving spring 12 is installed, one end of back-moving spring 12 is fixed on the motor cabinet 9, the other end is fixed on the slide bar 11, when cam 10 turns to high putting that slide bar 11 is extrapolated, when cam 10 turned to low spot, the elastic force that utilizes back-moving spring 12 was with slide bar 11 past lira.Side at the through hole 7 of circuit board 6 is provided with groove 13, is fixed with rectangular guide pin bushing 15 by epoxide-resin glue 14 in groove 13, is provided with the guide rail 16 (as shown in Figure 4) for preparing with slide bar 11 at the center of guide pin bushing 15.Above circuit board 6, be connected with computing machine 18 by parallel communication interface 17.On circuit board, be integrated with singlechip controller and IC-card module, singlechip controller comprises writes the card trigger module, writing the card trigger module writes a program to the IC-card module on the circuit board by communication interface at computing machine and finishes mouthful to trigger, data on the IC-card module are read, write the card trigger module and be connected with control module and the execution module that the action of card table realizes by communication bus, the control module that the action of card table realizes receives the information of writing card trigger module and execution module transmission, and simultaneously corresponding instruction being transferred to the execution module of card table action, the execution module of card table action links to each other with control module by port bus and links to each other with motor and controls motor rotation.As shown in Figure 5, control module is at first selected the epi-position of required action by addressing circuit, reserve the epi-position address in advance, after every preparation puts in place, by agreement control transmission information, by the single-chip microcomputer identification control, opens the data transfer relay, and motor action is carried out.
Utilize above-mentioned plug equipment to realize the method that detects, at first open working power, write specific data by the card module of writing in the computing machine by the IC-card module of communication port on circuit board according to the concrete function that will test; After writing ED, write the card trigger module and carry out Card Reader, then information is sent to the control module of the card table action in the single-chip microcomputer, the control module of card table action receives that the execution module drive motor of control card table action rotates after the control information, motor rotates realizes the plug-in card action, the IC-card that inserts in the electric energy meter is transferred to the IC-card data that write on the electric energy meter, electric energy meter carries out corresponding actions according to the content of IC-card, after finishing the meter reading process, the execution module drive motor of the control module control card table action of card table action rotates once more, the state of extracting of simulation IC-card is finished the Card Reader process to electric energy meter.
As shown in Figure 6, the flow process that plug equipment is carried out action is, the beginning port initialization, interruption is opened, and the baud rate setting sees whether motor is minimum point, minimum point is to receive OPEN, relay is opened under the effective situation of order, judges whether the optocoupler level is low, if be low, expression can be carried out Data transmission to the card table, if be not low, expression simulation IC-card does not also put in place, and motor rotates and will push away before the slide bar, check once more whether the optocoupler level is low, if the low Data transmission of carrying out, epi-position is given single-chip microcomputer with information feedback after receiving data, receives shutdown command, whether viewing command is effective, effective order closed relay, motor rotate once more to be return, and information feedback is finished.
Specific embodiment described herein only is that design of the present invention is illustrated.The technician of the technical field of the invention can make various modifications or replenishes or adopt similar mode to substitute described specific embodiment, but can't depart from spirit of the present invention or surmount the defined scope of appended claims.