The integrated acquisition terminal of supplementing with money
Technical field
The present invention is used for intelligent electric meter and supplements the electronic equipment with data acquisition with money, particularly relates to the present invention relates to a kind of integrated harvester of supplementing with money to intelligent electric meter.
Background technology
According to " power consumer power information acquisition system functional specification " that State Grid Corporation of China issued, the way of paying branch of resident's intelligent electric meter can be long-range expense control and two kinds of local expense controls at present.Long-range expense control is meant power marketing department through the centralized meter-reading system network, accomplishes and takes the control process; Local expense control is meant that intelligent electric meter itself accomplishes expense control metering process, and the user is through purchasing the completion of electricity card and supplement with money etc. with intelligent electric meter being corresponding.Long-range expense control since to centralized meter-reading system networking have relatively high expectations, build complicatedly, be the local control intelligent electric meter that takes so number average selects for use 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 in a lot of skyscrapers, selects electric energy meter is placed in the forceful electric power motor-pumped well again, and this just causes user inquiring to supplement very difficulty with money.
So have product miscellaneous to occur to this kind phenomenon on the 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 then connected three equipment at least above the ammeter, but one group of data transmission can only be arranged at most in the RS485 network; In case communication contention aware occurs, then be difficult to accomplish any one work.
Summary of the invention
The object of the present invention is to provide a kind of integrated acquisition terminal of supplementing with money that has IC-card interface, RS485 interface and power carrier interface concurrently.
The objective of the invention is to realize like this: a kind of integrated acquisition terminal of supplementing with money, comprise single-chip microcomputer, the display that is connected with single-chip microcomputer also has the following circuit that is connected with said single-chip microcomputer respectively;
The IC-card interface circuit: 4 pin of IC-card socket J4 are connected to the control pin of said 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, and 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, and 5 pin of J4 are connected to 4 pin of electrostatic protection chip ESDA6V1-5W6, and 9 pin of J4 are connected to 6 pin of electrostatic protection chip ESDA6V1-5W6; Connect the control pin of single-chip microcomputer behind the 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, diode D2 negative pole serial connection capacitor C 54 back ground connection, and diode D2 negative pole is connected to 3 pin of J4; Be connected to triode Q7 emitter behind the 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, and resistance R 20 is connected between the base stage and emitter of triode Q7, and the collector of triode Q8 is connected to the base stage of triode Q7; Be connected to the 3.3V dc power anode behind the base stage series resistor R39 of triode Q8; Be connected to the control pin of single-chip microcomputer behind the 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 ground connection behind capacitor C 44, C38 and the C37 respectively; 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 R end and the D of the RS485 interface chip of SN65LBC184D holds and be connected with the serial ports receiving end with said microcontroller serial port transmitting terminal after being connected the photoelectric coupled circuit of being made up of chip NEC2501AL-1 respectively; The A of RS485 interface chip end is connected in series the B end that is connected to the RS485 interface chip behind magnetic bead L14, thermistor PTC2, voltage dependent resistor (VDR) YMS and thermistor PTC1 and the magnetic bead L13 in order; The side a and b of RS485 interface chip is connected in series ground connection behind two-way transient state diode F10 and the F11 respectively; Be connected to the 5V dc power anode behind the A end series resistor R32 of RS485 interface chip, ground connection behind the B end series resistor R36 of RS485 interface chip;
The power carrier interface circuit: by model is that the three-phase carrier module of ZAIBO-3 is formed, and 11 pin of three-phase carrier module, 12 pin and 13 pin 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 said 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, and capacitor C 31 is parallelly connected with electrochemical capacitor C30, is connected to the pulse-modulated signal transmitting terminal of single-chip microcomputer behind the triode Q1 base stage series resistor R8; The collector of triode Q1 is connected with the emitter of triode Q4; It is anodal to be connected to infrared transmission pipe TSOP6200 after the collector series connection resistance R 13 of triode Q4, and infrared transmission pipe TSOP6200 minus earth is connected to the serial ports transmitting terminal of single-chip microcomputer behind 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 behind the emitter series resistor R12 of triode Q3, be connected to the control pin of single-chip microcomputer behind 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; Said display is a LCD display.
The present invention integrates intelligent electric energy meter to concentrate the terminal of supplementing function, state's net collector function, electricity consumption inquiry system forwarding capability with money.
The present invention is connected with intelligent electric meter through 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, can communicate, receive and respond the order of concentrator, transmit data to concentrator with concentrator through power carrier; Support the communication repeating between concentrator and other collector to transmit; The communication mode of convertible upper and lower channel and communication protocol.This locality provides maintenance interface, supports handheld device through local maintenance interfaces such as infrared communication mouths parameter and on-the-spot copy reading electric energy data to be set, and supports local parameter setting and scene check meter due authority and Password Management, has self-recovering function; Comprise the terminal initial function, can recording parameters change, the failure of checking meter, terminal incident such as stop/power on.Can generate the table address concordance list of electric energy meter automatically according to the table address that concentrator issues or local communication interface is provided with, support power-on and power-off to detect, version change, the turkey of checking meter detection also has stored record.
The present invention realizes concentrating the downward and shared RS485 bus of acquisition function when supplementing function with money, the inner conflict avoiding of accomplishing the RS485 bus.This locality is provided with intelligent card interface, accomplishes data interaction in order to purchase the electricity card with the user, and inner intelligence is accomplished ammeter table number coupling; The conversion of e-wallet information; Returning of charging information write.Literal 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 visit of minimizing RS485 bus helps conflict avoiding; Accomplish Data Update with inquiry terminal through 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, solution headend, collector are in the wave carrier conflict problem of line of electric force.
The present invention also has local Man Machine Interfaces such as button, light, sound and LCD.The local query function of realizing, the user can select to use button to inquire about or insert and purchase the more detailed power information of electricity card inquiry; For the user corresponding operation indication is provided during supplementing with money; Free time copies data intelligence judges remaining sum according to collection and whether reaches alarm threshold, and makes corresponding alarm indication.
The invention has the beneficial effects as follows: the present invention merges to intelligent card interface, RS485 interface and power carrier interface circuit together, makes full use of each EBI 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 forwarding function, the collision problem of acquisition function on power line carrier and 485 buses.Make things convenient for the client that intelligent electric meter is supplemented with money operation, can accomplish that collection is copied and operations such as electricity consumption inquiry, data forwarding; Simplified field apparatus quantity is installed, not only convenient the installation and debugging is beneficial to the stable operation of on-the-spot diverse network more.
Description of drawings
Fig. 1 is a hardware block diagram of the present invention.
Fig. 2 is that installation of the present invention connects topological diagram.
Fig. 3 is IC-card of the present invention and ESAM interface circuit.
Fig. 4 is a 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 a power carrier interface circuit of the present invention.
Embodiment
To combine accompanying drawing that the present invention is described further below.
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 module) interface circuit, the also power circuit of promising each circuit supply.
The IC-card interface circuit is accomplished and the subscriber card interface communication, and data message is sent into embedded core, and the ESAM modular circuit is accomplished various safety certification operations such as data authentication, encryption, deciphering; Two groups of RS485 communication module interface circuits link to each other 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 that through these two groups of asynchronous serial communication mouths the present invention's use topology at the scene is like Fig. 2.
Fig. 3 illustrates IC-card interface circuit (being the intelligent card interface circuit) and inner encrypting and authenticating interface circuit is the ESAM interface circuit.The IC-card interface circuit: 4 pin of IC-card socket J4,5 pin are connected to the control pin of said single-chip microcomputer respectively; 6 pin of J4,9 pin are connected to the serial ports and the interrupt pin of single-chip microcomputer respectively; 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, and 4 pin of J4 are connected to 3 pin of electrostatic protection chip ESDA6V1-5W6, and 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, and 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 accomplish 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 ground connection behind capacitor C 44, C38 and the C37 respectively; 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.Said power supply switch circuit uses PNP triode 8550; NPN triode 8050 and diode IN5819; Triode Q6 and diode D2 constitute 3.3V control branch road, and triode Q7, Q8 and diode D2 constitute 5V control branch road, and resistance R 18, R21 are the control current-limiting resistance; Resistance R 39, R20 are level match resistance, and magnetic bead L15 regulates for the 5V feed circuit provide ripple.Said ESAM module adopts state net intelligent electric meter ESAM.
Referring to Fig. 4; The RS485 interface circuit: model is that R end and the D of the RS485 interface chip of SN65LBC184D holds and be connected with the serial ports receiving end with said microcontroller serial port transmitting terminal after being connected the photoelectric coupled circuit of being made up of chip respectively; The A of RS485 interface chip end is connected in series the B end that is connected to the RS485 interface chip behind magnetic bead L14, thermistor PTC2, voltage dependent resistor (VDR) YMS and thermistor PTC1 and the magnetic bead L13 in order; The side a and b of RS485 interface chip is connected in series ground connection behind two-way transient state diode F10 and the F11 respectively; Be connected to the 5V dc power anode behind the A end series resistor R32 of RS485 interface chip, ground connection behind the B end series resistor R36 of RS485 interface chip.
RS485 (communication module) interface circuit comprises the RS485 interface chip, and between asynchronous serial communication mouth corresponding on RS485 interface chip and the CPU, is provided with optocoupler; 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, between A end, B end, are provided with two-way transient state diode F10, F11; Two-way transient state 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, and the emitter of triode Q1 connects positive source; Capacitor C 31 is parallelly connected with electrochemical capacitor C30; Be connected to the pulse-modulated signal transmitting terminal of single-chip microcomputer behind the triode Q1 base stage series resistor R8, the collector of triode Q1 is connected with the emitter of triode Q4, is connected to infrared transmission pipe TSOP6200 positive pole after the collector series connection resistance R 13 of triode Q4; Infrared transmission pipe TSOP6200 minus earth is connected to the serial ports transmitting terminal of single-chip microcomputer behind 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 behind the emitter series resistor R12 of triode Q3, be connected to the control pin of single-chip microcomputer behind 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, the special-purpose infrared modulation mode of this interface electrification, maskable internal loopback phenomenon; Said infrared tube uses infrared reception TSOP58238 and infrared transmission TOSP6200, the standard modulation system of electrification industry in infrared transmission, and triode Q1, Q4 and TOSP6200 constitute infrared transtation mission circuit; Triode Q3 and TSOP58238 constitute infrared receiving circuit, and resistance R 8, R10, R11 are current-limiting resistance, and resistance R 9 is a 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 cooperates modified three-phase carrier module, both can intercept carrier signal possible on the line of electric force, also can initiatively initiate carrier communication.
The power carrier interface circuit: by model is that the three-phase carrier module of ZAIBO-3 is formed, and 11 pin of three-phase carrier module, 12 pin and 13 pin are connected with serial ports transmitting terminal, serial ports receiving end and the control pin of single-chip microcomputer respectively.