The integrated charging acquisition terminal
Technical field
The present invention is used for intelligent electric meter and supplements electronic equipment with data acquisition with money, particularly relates to the present invention relates to a kind of integrated charging harvester for intelligent electric meter.
Background technology
" the power consumer power information acquisition system functional specification " promulgated according to State Grid Corporation of China at present, the way of paying of resident's intelligent electric meter divide and can be two kinds of remote bill control and local charge controls.Remote bill control refers to that power marketing department by the centralized meter-reading system network, completes expense control process; Local charge control refers to that intelligent electric meter itself completes expense control metering process, and the user completes by the power purchase card corresponding with intelligent electric meter and supplements with money etc.Remote bill control due to centralized meter-reading system networking have relatively high expectations, build complicatedly, be local charge control smart meter therefore number average selects mostly now.According to the result of market study, what overwhelming majority area was selected at present is to concentrate to lay electric energy meter, and is selecting electric energy meter to be placed in the forceful electric power motor-pumped well in a lot of skyscrapers again, and this just causes the user to inquire about supplementing with money very difficult.
So have product miscellaneous to occur for this kind phenomenon on market, such as electricity consumption inquiry system, concentrated charging system etc., add the centralized meter-reading system of State Grid Corporation of China, one has connected three equipment at least above ammeter, but one group of data transmission can only be arranged at most in the RS485 network, in case communication contention aware occurs, be difficult to complete any one work.
Summary of the invention
The object of the present invention is to provide a kind of integrated charging acquisition terminal that has IC-card interface, RS485 interface and power carrier interface concurrently.
The object of the present invention is achieved like this: a kind of integrated charging acquisition terminal, comprise single-chip microcomputer, and the display that is connected with single-chip microcomputer also has the following circuit that is connected with described single-chip microcomputer respectively;
the IC-card interface circuit: 4 pin of IC-card socket J4 are connected to the control pin of described single-chip microcomputer, 5 pin of J4, 6 pin all are connected to the serial ports of single-chip microcomputer, 9 pin of J4 connect the interrupt pin of single-chip microcomputer, 7 pin of J4, 8 pin and the equal ground connection of 10 pin, 1 pin of J4, 2 pin and 7 pin all are connected to 2 pin of electrostatic protection chip ESDA6V1-5W6, 4 pin of J4 are connected to 3 pin of electrostatic protection chip ESDA6V1-5W6, 6 pin of J4 are connected to 1 pin of electrostatic protection chip ESDA6V1-5W6, 5 pin of J4 are connected to 4 pin of electrostatic protection chip ESDA6V1-5W6, 9 pin of J4 are connected to 6 pin of electrostatic protection chip ESDA6V1-5W6, connect the control pin of single-chip microcomputer after triode Q6 base stage series resistor R18, triode Q6 emitter connects the 3.3V dc power anode, it is anodal that triode Q6 collector meets diode D2, the rear ground connection of diode D2 negative pole serial connection capacitor C 54, and diode D2 negative pole is connected to 3 pin of J4, be connected to triode Q7 emitter after 5V dc power anode serial connection magnetic bead L15, it is anodal that triode Q7 collector meets diode D3, diode D3 negative pole connects diode D2 negative pole, resistance R 20 is connected between the base stage and emitter of triode Q7, the collector of triode Q8 is connected to the base stage of triode Q7, be connected to the 3.3V dc power anode after the base stage series resistor R39 of triode Q8, be connected to the control pin of single-chip microcomputer after triode Q8 emitter series resistor R21, triode Q6, Q7 model are 8550, and triode Q8 model is 8050,
Inner encrypting and authenticating interface circuit: ESAM forms by chip, 3 pin of chip ESAM, 7 pin and 8 pin are connected in series respectively ground connection after capacitor C 44, C38 and C37,3 pin of chip SEAM, 6 pin are connected to the serial ports of single-chip microcomputer, and 7 pin of chip ESAM are connected to the control pin of single-chip microcomputer;
the RS485 interface circuit: model is that the R end of the RS485 interface chip of SN65LBC184D is connected with D and is connected with the serial ports receiving end with described microcontroller serial port transmitting terminal after connecting respectively the photoelectric coupled circuit that is comprised of chip NEC2501AL-1, the A end of RS485 interface chip is connected in series magnetic bead L14 in turn, thermistor PTC2, be connected to the B end of RS485 interface chip after voltage dependent resistor (VDR) YMS and thermistor PTC1 and magnetic bead L13, the side a and b of RS485 interface chip is connected in series respectively ground connection after two-way transient diode F10 and F11, be connected to the 5V dc power anode after the A end series resistor R32 of RS485 interface chip, ground connection after the B end series resistor R36 of RS485 interface chip,
The power carrier interface circuit: the Three Phase Carrier Based module that is ZAIBO-3 by model forms, and 11 pin of Three Phase Carrier Based module, 12 pin and the pin of being connected are connected with serial ports transmitting terminal, serial ports receiving end and the control pin of single-chip microcomputer respectively.
also have the infrared transtation mission circuit and the infrared receiving circuit that are connected with described single-chip microcomputer, infrared transtation mission circuit: it is anodal that the emitter of triode Q1 meets electrochemical capacitor C30, electrochemical capacitor C30 minus earth, the emitter of triode Q1 connects positive source, capacitor C 31 is in parallel with electrochemical capacitor C30, be connected to the pulse-modulated signal transmitting terminal of single-chip microcomputer after triode Q1 base stage series resistor R8, the collector of triode Q1 is connected with the emitter of triode Q4, be connected to infrared sending tube TSOP6200 after the collector series connection resistance R 13 of triode Q4 anodal, infrared sending tube TSOP6200 minus earth, be connected to the serial ports transmitting terminal of single-chip microcomputer after the base stage series resistor R11 of triode Q4, triode Q1, Q4 model are 8550,
Infrared receiving circuit: capacitor C 32 is connected between 2 pin and 3 pin of infrared receiving tube TSOP58238,1 pin of infrared receiving tube TSOP58238 is connected to the serial ports receiving end of single-chip microcomputer, 2 pin of infrared receiving tube TSOP58238 and 3 pin are ground connection and the collector that is connected to triode Q3 respectively, be connected to positive source after the emitter series resistor R12 of triode Q3, be connected to the control pin of single-chip microcomputer after the base stage series resistor R10 of triode Q3, triode Q3 model is 8550.
Above-mentioned single-chip microcomputer also is connected with keystroke interface circuit and sound interface circuit; Described display is LCD display.
The present invention is the terminal that integrates Intelligent energy meter centralized charging function, state's net collector function, electricity consumption inquiry system forwarding capability.
The present invention is connected with intelligent electric meter by RS485 downwards when realizing state's net collector function, support DL/T 645-1997 agreement and DL/T 645-2007 agreement, has automatic switchover speed (agreement 97/645 acquiescence 1200bps, agreement 07/645 acquiescence 2400bps) function; But copy reading current electric quantity; Possesses the electric quantity data memory function.Upwards be connected with concentrator by power carrier, can communicate with concentrator, receive and respond the order of concentrator, transmit data to concentrator; Support the communication repeating between concentrator and other collector to forward; The communication mode of convertible upper and lower channel and communication protocol.This locality provides maintenance interface, supports handheld device by local maintenance interface parameters and on-the-spot copy reading electric energy datas such as infrared communication mouths, and supports local parameter setting and scene check meter due authority and Password Management, has self-recovering function; Comprise the terminal initialization function, events such as can recording parameters changing, check meter unsuccessfully, terminal is stopped/powered on.Can be according to the table address that concentrator issues or local communication interface arranges, the table address concordance list of generating electric energy table, support power-on and power-off to detect automatically, version change, the turkey of checking meter detects and stored record is arranged.
Downward and the shared RS485 bus of acquisition function when the present invention realizes concentrating charging function, the conflict avoiding of RS485 bus is completed in inside.This locality arranges intelligent card interface, and in order to complete data interaction with user's power purchase card, inner intelligence is completed ammeter table number coupling; The conversion of e-wallet information; Returning of charging information write.Word and auditory tone cues are provided in the process of supplementing with money, short and sweet, user-friendly.
Intrinsic call acquisition system data when the present invention realizes electricity consumption inquiry system forwarding capability, thus the access of minimizing RS485 bus is conducive to conflict avoiding; Complete Data Update with inquiry terminal by the power carrier interface.Independently seek relatively reasonable updating period according to the interception data of power carrier interface; Adopt unique centralized dispatching and distributed conflict to dodge algorithm, solve headend, collector in the wave carrier conflict problem of line of electric force.
The present invention is also with local Man Machine Interfaces such as button, light, sound and liquid crystal display.Query function is realized in this locality, but the more detailed power information of power purchase card inquiry is inquired about or inserted to user's choice for use button; Provide corresponding operation indication for the user during supplementing with money; Free time copies data intelligence according to collection and judges whether user balance reaches alarm threshold, and makes corresponding alarm indication.
The invention has the beneficial effects as follows: the present invention is merged together intelligent card interface, RS485 interface and power carrier interface circuit, takes full advantage of each bus interface of data with existing and intelligent allocation, thereby effectively manages each data network load; All kinds of requests such as broadcasting are supplemented, gather and inquired about to its unique multi-task architecture effectively concurrent processing with money; Intelligent optimization intelligent electric meter side RS485 communication network rationally solves collection and copies and the charging request collision problem; Unique centralized dispatching and distributed conflict are dodged algorithm, solve data retransmission function, the collision problem of acquisition function on power line carrier and 485 buses.Facilitate the client to supplement operation with money to intelligent electric meter, can complete that collection is copied and the operations such as electricity consumption inquiry, data retransmission; Simplify field apparatus quantity has been installed, not only facilitated installation and adjustment, more be beneficial to the stable operation of on-the-spot diverse network.
Description of drawings
Fig. 1 is hardware block diagram of the present invention.
Fig. 2 is installation link topology of the present invention.
Fig. 3 is IC-card of the present invention and ESAM interface circuit.
Fig. 4 is RS485 interface circuit of the present invention.
Fig. 5-1, Fig. 5-2 are respectively infrared transtation mission circuit of the present invention and infrared receiving circuit.
Fig. 6 is power carrier interface circuit of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
Referring to Fig. 1 to Fig. 6, the present invention includes embedded core and be single-chip microcomputer, respectively with single-chip microcomputer and the LCD display interface circuit that is connected, keystroke interface circuit, sound interface circuit, IC-card (being smart card) interface circuit, ESAM interface circuit, power carrier interface circuit and two groups of RS485(communication modules) interface circuit, the also power circuit of promising each circuit supply.
The IC-card interface circuit is completed and the subscriber card interface communication, and data message is sent into embedded core, and the ESAM modular circuit is completed the various safety certification operations such as data authentication, encryption, deciphering; Two groups of RS485 communication module interface circuits are connected with two groups of asynchronous serial communication mouths of embedded core respectively, and embedded core can realize and the communicating by letter of intelligent electric energy meter by these two groups of asynchronous serial communication mouths, and the present invention's use topology at the scene is as Fig. 2.
Fig. 3 illustrates IC-card interface circuit (being smart card interface circuit) and inner encrypting and authenticating interface circuit is the ESAM interface circuit.IC-card interface circuit: 4 pin of IC-card socket J4, 5 pin are connected to respectively the control pin of described single-chip microcomputer, 6 pin of J4, 9 pin are connected to respectively serial ports and the interrupt pin of single-chip microcomputer, 7 pin of J4, 8 pin and the equal ground connection of 10 pin, 1 pin of J4, 2 pin and 7 pin all are connected to 2 pin of electrostatic protection microarray biochip ESDA6V1-5W6, 4 pin of J4 are connected to 3 pin of electrostatic protection chip ESDA6V1-5W6, 6 pin of J4 are connected to 1 pin of electrostatic protection chip ESDA6V1-5W6, 5 pin of J4 are connected to 4 pin of electrostatic protection chip ESDA6V1-5W6, 9 pin of J4 are connected to 6 pin of electrostatic protection chip ESDA6V1-5W6.
The IC-card interface circuit comprises that mainly power supply is selected and the EMI protection, uses simple triode match circuit to complete the power supply switch circuit of IC-card standard (ISO7816 pattern standard) defined, in order to dissimilar IC-card power demands to be provided;
Inner encrypting and authenticating interface circuit: ESAM forms by chip, 3 pin of chip ESAM, 7 pin and 8 pin are connected in series respectively ground connection after capacitor C 44, C38 and C37,3 pin of chip SEAM, 6 pin are connected to the serial ports of single-chip microcomputer, and 7 pin of chip ESAM are connected to the control pin of single-chip microcomputer;
It mainly comprises the ESAM security authentication module that State Power Corporation's regulation is used the ESAM interface circuit.Described power supply switch circuit uses PNP triode 8550, NPN triode 8050 and diode IN5819, triode Q6 and diode D2 consist of 3.3V and control branch road, triode Q7, Q8 and diode D2 consist of 5V and control branch road, resistance R 18, R21 are for controlling current-limiting resistance, resistance R 39, R20 are level match resistance, and magnetic bead L15 regulates for the 5V feed circuit provide ripple.Described ESAM module adopts state net intelligent electric meter ESAM.
referring to Fig. 4, the RS485 interface circuit: model is that the R end of the RS485 interface chip of SN65LBC184D is connected with D and is connected with the serial ports receiving end with described microcontroller serial port transmitting terminal after connecting respectively the photoelectric coupled circuit that is comprised of chip, the A end of RS485 interface chip is connected in series magnetic bead L14 in turn, thermistor PTC2, be connected to the B end of RS485 interface chip after voltage dependent resistor (VDR) YMS and thermistor PTC1 and magnetic bead L13, the side a and b of RS485 interface chip is connected in series respectively ground connection after two-way transient diode F10 and F11, be connected to the 5V dc power anode after the A end series resistor R32 of RS485 interface chip, ground connection after the B end series resistor R36 of RS485 interface chip.
The RS485(communication module) interface circuit comprises the RS485 interface chip, and is provided with optocoupler between asynchronous serial communication mouth corresponding on RS485 interface chip and CPU; The RS485 interface chip adopts SN65LBC184D, in the RS485 communication module interface circuit of communicating by letter with intelligent electric energy meter, the A end of RS485 interface chip, B hold the thermistor of respectively connecting, and are respectively PTC1, PTC2, are provided with two-way transient diode F10, F11 between A end, B end; Two-way transient diode F11 and resistance R 32, R36 form holding circuit, prevent interface overvoltage and electrostatic impact damage RS485 interface chip, and increase the load-carrying ability of RS485 interface chip.
referring to Fig. 5, infrared transtation mission circuit: it is anodal that the emitter of triode Q1 meets electrochemical capacitor C30, electrochemical capacitor C30 minus earth, the emitter of triode Q1 connects positive source, capacitor C 31 is in parallel with electrochemical capacitor C30, be connected to the pulse-modulated signal transmitting terminal of single-chip microcomputer after triode Q1 base stage series resistor R8, the collector of triode Q1 is connected with the emitter of triode Q4, be connected to infrared sending tube TSOP6200 after the collector series connection resistance R 13 of triode Q4 anodal, infrared sending tube TSOP6200 minus earth, be connected to the serial ports transmitting terminal of single-chip microcomputer after the base stage series resistor R11 of triode Q4, triode Q1, Q4 model are 8550,
Infrared receiving circuit: capacitor C 32 is connected between 2 pin and 3 pin of infrared receiving tube TSOP58238,1 pin of infrared receiving tube TSOP58238 is connected to the serial ports receiving end of single-chip microcomputer, 2 pin of infrared receiving tube TSOP58238 and 3 pin are ground connection and the collector that is connected to triode Q3 respectively, be connected to positive source after the emitter series resistor R12 of triode Q3, be connected to the control pin of single-chip microcomputer after the base stage series resistor R10 of triode Q3, triode Q3 model is 8550.
The infrared interface circuit comprises infrared reception and infrared transmission to pipe, and this interface uses the special-purpose infrared modulation mode of electric power, maskable internal loopback phenomenon; Described infrared tube uses infrared reception TSOP58238 and infrared transmission TOSP6200, uses the standard modulation system of power industry in infrared transmission, and triode Q1, Q4 and TOSP6200 consist of infrared transtation mission circuit; Triode Q3 and TSOP58238 consist of infrared receiving circuit, and resistance R 8, R10, R11 are current-limiting resistance, and resistance R 9 is pull-up resistor, and capacitor C 30, C31, C32 are power filtering capacitor.
Referring to Fig. 6, the power carrier interface uses the interface standard standard that is similar to the national grid defined.This interface coordinates the improved three-phase carrier module, both can intercept carrier signal possible on line of electric force, also can initiatively initiate carrier communication.
The power carrier interface circuit: the Three Phase Carrier Based module that is ZAIBO-3 by model forms, and 11 pin of Three Phase Carrier Based module, 12 pin and the pin of being connected are connected with serial ports transmitting terminal, serial ports receiving end and the control pin of single-chip microcomputer respectively.