The utility model content
The utility model embodiment provides a kind of three-phase digital electric meter and Automatic meter reading system, under the situation of ammeter and collector communication failure, also can realize automatic data logging, has solved the defective that meter reading data is untimely and the needs dependence is artificial in the prior art.
One of purpose of the utility model embodiment is, a kind of three-phase digital electric meter is provided, and described three-phase digital electric meter comprises: central processing unit, and the electrical quantity treating apparatus, bus interface devices and the wireless transmitter that are connected with described central processing unit; Described electrical quantity treating apparatus generates the electrical quantity and the storage of described three-phase digital electric meter; Described wireless transmitter receives the electrical quantity that other three-phase digital electric meters send, and perhaps the electrical quantity with self sends to other three-phase digital electric meters; Described bus interface devices connects outside collector, reports described collector with the electrical quantity of self or from the electrical quantity of other three-phase digital electric meters; Described central processing unit receives the data acquisition instruction, controls the work of described wireless transmitter and described bus interface devices.
Described central processing unit specifically comprises: receiving element, receive the data acquisition instruction, and from described data acquisition instruction, obtain source address and destination address; First processing unit connects described receiving element, when destination address is the address of described collector for self address and source address, controls described bus interface devices self electrical quantity is reported described collector; Second processing unit connects described receiving element, when destination address when being self address and source address for the address of other three-phase digital electric meters, controls described wireless transmitter self electrical quantity is sent to the three-phase digital electric meter corresponding with source address; The 3rd processing unit, connect described receiving element, when destination address is not that self address and source address are when being the address of described collector, control described wireless transmitter described data acquisition instruction is transmitted to the three-phase digital electric meter of described destination address correspondence, and receive the electrical quantity that corresponding three-phase digital electric meter sends; Control described bus interface devices the electrical quantity that receives is reported described collector.
Described three-phase digital electric meter also comprises: the current sampling circuit and the voltage sampling circuit that are connected with described electrical quantity treating apparatus; Described current sampling circuit is sampled to the electric current of described three-phase digital electric meter, the sample rate current signal is inputed to the current sample passage of described electrical quantity treating apparatus; Described voltage sampling circuit is sampled to the voltage of described three-phase digital electric meter, the sampled voltage signal is inputed to the voltage sample passage of described electrical quantity treating apparatus; Described electrical quantity treating apparatus measures sample rate current signal and sampled voltage signal, generates the electrical quantity and the storage of described three-phase digital electric meter.
Described voltage sampling circuit obtains sample voltage value by divider resistance, and it is single-chip microcomputer that described current sampling circuit obtains the described central processing unit of sample rate current value by current transformer, described single-chip microcomputer internal memory.
Described electrical quantity treating apparatus is an electric energy computation chip.
Described bus interface devices connects described collector by the RS485 bus.
Described three-phase digital electric meter also comprises: power circuit connects the voltage input end of described central processing unit, electrical quantity treating apparatus, wireless transmitter and bus interface devices.
Two of the purpose of this utility model is, a kind of Automatic meter reading system is provided, and described Automatic meter reading system comprises: collector and a plurality of three-phase digital electric meter; Described collector connects a plurality of three-phase digital electric meters by bus; Described three-phase digital electric meter comprises: central processing unit, and the electrical quantity treating apparatus, bus interface devices and the wireless transmitter that are connected with described central processing unit; Described electrical quantity treating apparatus generates the electrical quantity and the storage of described three-phase digital electric meter; Described wireless transmitter receives the electrical quantity that other three-phase digital electric meters send, and perhaps the electrical quantity with self sends to other three-phase digital electric meters; Described bus interface devices connects outside collector, reports described collector with the electrical quantity of self or from the electrical quantity of other three-phase digital electric meters; Described central processing unit receives the data acquisition instruction, controls the work of described wireless transmitter and described bus interface devices.
The central processing unit of described three-phase digital electric meter specifically comprises: receiving element, receive the data acquisition instruction, and from described data acquisition instruction, obtain source address and destination address; First processing unit connects described receiving element, when destination address is the address of described collector for self address and source address, controls described bus interface devices self electrical quantity is reported described collector; Second processing unit connects described receiving element, when destination address when being self address and source address for the address of other three-phase digital electric meters, controls described wireless transmitter self electrical quantity is sent to the three-phase digital electric meter corresponding with source address; The 3rd processing unit, connect described receiving element, when destination address is not that self address and source address are when being the address of described collector, control described wireless transmitter described data acquisition instruction is transmitted to the three-phase digital electric meter of described destination address correspondence, and receive the electrical quantity that corresponding three-phase digital electric meter sends; Control described bus interface devices the electrical quantity that receives is reported described collector.
Three-phase digital electric meter and Automatic meter reading system that the utility model embodiment provides, by in the three-phase digital electric meter, increasing wireless transmitter, under the situation of ammeter self and collector communication failure, by ammeter self radio R-T unit and particular communication stipulations, between the ammeter of kilowatt meter reading-out system, implement electrical quantity data relay transmission, finally realize collector normally copying and accepting all ammeter electrical quantitys in the Automatic meter reading system.
Embodiment
For the purpose, technical scheme and the advantage that make the utility model embodiment clearer, below in conjunction with the accompanying drawing among the utility model embodiment, technical scheme among the utility model embodiment is clearly and completely described, obviously, described embodiment is the utility model part embodiment, rather than whole embodiment.Based on the embodiment in the utility model, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the utility model protection.
Present embodiment at first provides a kind of three-phase digital electric meter with data relay function.One of structure principle chart of the three-phase digital electric meter that Fig. 2 provides for the utility model embodiment.As shown in Figure 2, this ammeter comprises: central processing unit 201, and the electrical quantity treating apparatus 202 that is connected with described central processing unit, bus interface devices 203 and wireless transmitter 204; Wherein, electrical quantity treating apparatus 202 generates the electrical quantity and the storage of described three-phase digital electric meter; Wireless transmitter 204 receives the electrical quantity that other three-phase digital electric meters send, and perhaps the electrical quantity with self sends to other three-phase digital electric meters; Bus interface devices 203 connects outside collector, reports described collector with the electrical quantity of self or from the electrical quantity of other three-phase digital electric meters; Central processing unit 201 receives the data acquisition instruction, the work of control wireless transmitter 204 and bus interface devices 203.
Fig. 3 is the refined structure figure of central processing unit 201, and as shown in Figure 3, central processing unit 201 specifically comprises: receiving element 301, receive the data acquisition instruction, and from described data acquisition instruction, obtain source address and destination address; First processing unit 302 connects described receiving element 301, when destination address is the address of described collector for self address and source address, controls described bus interface devices 203 self electrical quantity is reported described collector; Second processing unit 303 connects described receiving element 301, and when destination address when being self address and source address for the address of other three-phase digital electric meters, control wireless transmitter 204 sends to the three-phase digital electric meter corresponding with source address with the electrical quantity of self; The 3rd processing unit 304, connect described receiving element 301, when destination address is not that self address and source address are when being the address of described collector, control wireless transmitter 204 is transmitted to the three-phase digital electric meter of described destination address correspondence with described data acquisition instruction, and receives the electrical quantity that corresponding three-phase digital electric meter sends; Control described bus interface devices 203 electrical quantity that receives is reported described collector.
Two of the structure principle chart of the three-phase digital electric meter that Fig. 4 provides for the utility model embodiment, as shown in Figure 2, alternatively, the three-phase digital electric meter of the utility model embodiment also comprises: current sampling circuit 205 that is connected with electrical quantity treating apparatus 202 and voltage sampling circuit 206; Wherein, current sampling circuit 205 is sampled to the electric current of described three-phase digital electric meter, the sample rate current signal is inputed to the current sample passage of described electrical quantity treating apparatus; Voltage sampling circuit 206 is sampled to the voltage of three-phase digital electric meter, the sampled voltage signal is inputed to the voltage sample passage of described electrical quantity treating apparatus; Electrical quantity treating apparatus 202 measures sample rate current signal and sampled voltage signal, generates the electrical quantity and the storage of described three-phase digital electric meter.The three-phase digital electric meter of present embodiment also comprises: the power circuit (not shown) connects the voltage input end of described central processing unit, electrical quantity treating apparatus, wireless transmitter and bus interface devices.
Alternatively, the voltage sampling circuit 206 of present embodiment obtains sample voltage value by divider resistance, and current sampling circuit 205 obtains the sample rate current value by current transformer.
Alternatively, the central processing unit 201 of present embodiment is a single-chip microcomputer, this single-chip microcomputer internal memory.
Alternatively, the electrical quantity treating apparatus 202 of present embodiment is an electric energy computation chip.
Alternatively, the bus interface devices 203 of present embodiment connects described collector by the RS485 bus.
A kind of practical circuit diagram of the three-phase digital electric meter that Fig. 5 provides for the utility model embodiment describes the principle of work of present embodiment three-phase digital electric meter in detail below in conjunction with Fig. 5.The three-phase digital electric meter that present embodiment has the data relay function is on the basis of existing three-phase digital electricity meter, introduced wireless transmitter dexterously, in conjunction with specific multifunction electric meter communication protocol, a multifunctional digital electric energy meter that forms with data relay function, by the wireless data transmission between the multifunctional digital electric energy meter, efficiently solve RS485 in the Automatic meter reading system check meter the communication success ratio low, can not promptly connect promptly logical problem.
As shown in Figure 5, the three-phase digital electric meter of the utility model embodiment mainly comprises: modules such as electrical quantity treating apparatus (ATT7022B), current sampling circuit, voltage sampling circuit, wireless transmitter (nRF905), central processing unit (single-chip microcomputer STC89LE58RD+) and peripheral circuit module thereof.The three-phase digital electric meter of the utility model embodiment can be gathered in the electrical network each and reach various electrical quantitys such as the current/voltage effective value that closes phase, meritorious/idle/applied power, power factor, meritorious/idle/apparent energy, phase angle, voltage angle, electric current phase sequence mutually, can be applicable to two kinds of patterns of phase three-wire three and three-phase and four-line pattern, its meritorious measuring accuracy satisfies 0.2S, 0.5S, and supports the remote software calibration.
The utlity model has the concrete principle of work that the three-phase number tape of data relay function can show is: the N phase current is through being input to the current sample passage of multi-functional three-phase electrical energy computation chip ATT7022B after by the current sampling circuit sampling behind the current transformer mutually with zero for the A/B/C three-phase current, and the A/B/C/N phase voltage is input to the voltage sample passage of ATT7022B after by the voltage sampling circuit sampling; After the embedded DSP treatment circuit of three-phase multifunctional computation chip ATT7022B carries out related operation to the voltage signal that collects and current signal, obtain a series of electrical quantitys such as voltage/current effective value, meritorious/reactive power, meritorious/reactive energy, power factor (PF) and be saved in the metering register that ATT7022B carries, the measurement result in the metering register refreshes (refreshing 3 times as per 1 second kind) in real time; Single-chip microcomputer STC89LE58RD+ regularly is read into the electrical quantity that ATT7022B measures in the register among the RAM of self according to certain frame format by the spi bus of simulation.
STC89LE58RD+ judges that by the electric energy meter address in the RS485 bus transmitting order to lower levels bag self electrical quantity acquisition still is the data relay commands, if destination address is self address then is judged as data acquisition command, at this moment, ammeter returns to collector with the electrical quantity of self by the RS485 bus; If destination address is the address of other ammeters, then be judged as the data relay commands, at this moment, to order bag to be forwarded to the electric energy meter corresponding by the nRF905 wireless transceiver circuit with destination address, and wait for the continuous data bag that this electric energy meter returns, after receiving the return data bag, should wrap and return to concentrator by the RS485 bus by nRF905.
Fig. 6 is the circuit diagram of present embodiment electrical quantity treating apparatus.The core of the electrical quantity treatment circuit of present embodiment is the ATT7022B chip, it is the special-purpose computation chip of the strong multi-functional anti-electricity-theft principal wave harmonic wave three-phase electric energy of a precision height and function, integrated seven tunnel second order es-Δ ADC, each reaches mutually and closes phase can to measure three-phase alternating current, comprise first-harmonic, harmonic wave and all-wave active power, reactive power, applied power, meritorious energy and quadergy, simultaneously can also survey frequency, each phase current and voltage effective value, power factor, parameters such as phase angle, two kinds of apparent electric energy (PQS are provided, RMS), fully satisfy the requirement that three-phase multifunctional electrical energy meter and principal wave harmonic wave electric energy meter are made.
Principle of work to this chip describes in detail below: V1P/V1N, V3P/V3N, V5P/V5N are respectively A/B/C three-phase current sampling back input signals, V2P/V1N, V4P/V3N, V6P/V6N are the input signals after the sampling of A/B/C three-phase voltage, and VxP and VxN are complete differential input modes; NRESET is the reset signal that single-chip microcomputer is given ATT7022B, and low level is effective; The SIG signal is the output signal of shaking hands of ATT7022B, SIG will become low level when ATT7022B electrification reset or abnormal cause restart, when single-chip microcomputer write by SPI show data after, SIG will become high level immediately, in adjusting process, can judge the duty of ATT7022B by the SIG signal; REFCAP is ATT7022B benchmark 2.4V output, carries out decoupling with 10F electric capacity 0.1uF electric capacity in parallel; REFOUT is reference voltage output, as the direct current biasing of external signal; SEL is that phase three-wire three and three-phase and four-line are measured and selected input, selects low level when phase three-wire three is measured, and three-phase and four-line is selected high level, selects the standard measured as wire jumper with this 0 Ω resistance of R17 in the present embodiment; Meritorious/reactive energy pulse output that CF1/CF2 is respectively can be used for electric energy meter is proofreaied and correct; MISO_1, MOSI_1, CS_1 and SCLK_1 constitute spi bus, can read ATT7022B electric parameter measurement structure by the spi bus single-chip microcomputer, write the ammeter correction parameter.
Fig. 7 is the current sampling circuit figure of present embodiment, and current sample is realized by the difference sampling after being three-phase current and neutral line current process mutual inductor.The specification of current transformer (CT) is 1.5 (6) A/2.5mA, and precision is 0.05 grade.IC1, IC2 are the secondary side signal of current transformer, and V5P, V5N are ATT7022B chip sample rate current input pin.Sampling resistor (R153 and R154 sum) is 60 Ω, is 0.15V with the sampled value that satisfies current channel.FB is the 1K magnetic bead among the figure, is used for the high frequency interference of filtering sampled signal.Wherein, input channel REFO is the dc offset voltage of 2.4V, is that the reference output voltage REFOUT by ATT7022B self provides.
Fig. 8 is the voltage sampling circuit figure of present embodiment, and voltage sample is that three-phase voltage realizes that by electric resistance partial pressure as shown in Figure 8, Ua is an A phase voltage input signal, and its effective value is 220V, and V2P and V2N are ATT7022B chip sampled voltage input pins.Potential-divider network is 2 1.2M Ω and 1 the 1.2K Ω by good temp characteristic, and precision is that 1% metalfilmresistor is formed, and has guaranteed that the voltage channel sampled value is about 0.5V under the rated voltage input.
Fig. 9 is present embodiment nRF905 radio transceiver circuitry figure.Wireless transceiver nRF90 is used for the communication between the three-phase electric energy meter, is the key that realizes the data relay function.NRF905 is the monolithic wireless transceiver that Nordic company releases, and it is the high-performance embedded wireless module of 430/868/915MHz, and multichannel multiband, 1.9~3.5V low voltage operating, stand-by power consumption be 2 μ A only.The nRF905 volume is extra small, maximum transmission power+10dB, high anti-interference GFSK modulation, but frequency hopping, data rate 50kbps.The carrier wave of its uniqueness detects output (CD), matching addresses output (AM), and data ready output (DR), and built-in complete communication protocol and CRC, more convenient user uses.
The communication frequency of nRF905 is 433MHz in the utility model electric energy meter, by software arrangements.In order to keep best communication efficiency, the decoupling capacitor C3 on the tours antenna that connects and composes by difference should select the low temperature of 180pF to float ceramic condenser.NRF905 provides a SPI interface, and MCU can realize programmed configurations to the configuration register of nRF905 by the SPI interface, and what send data deposits and receive reading of data.In the utility model, STC89LE58RD+ provides 4 pin MISO_2, MOSI_2, SCLK_2, CS_2 simulation SPI interface and nRF905 to communicate.
That the utlity model has that the MCU of the three-phase digital electricity meter of data relay function adopts is STC89LE58RD+, it is that the encryption released of STC Corporation is strong, low-power consumption, at a high speed, high reliability, a kind of in antistatic, the strong anti-interference series monolithic by force.It has following characteristics: high-antistatic; Superpower antijamming capability; Inside carries watchdog circuit and reset circuit; Super low-power consumption, typical power consumption is 4mA~7Ma under the normal mode of operation; Have power-down mode, power consumption is less than 0.1 μ A under the power-down mode, and power-down mode can be by external interrupt wakeup; The EEPROM function has 16K byte EEPROM, can be used for storing the significant datas such as calibration data, electric energy meter table address, electric weight and electric current and voltage alarming threshold value of ATT7022B.
HQTE-5-S05 and SG2012 have formed the power module of the three-phase digital electricity meter that the utlity model has the data relay function.HQTE-5-S05 is a technical grade, has from the AC/DC that recovers short-circuit protection function, and its input is that effective value is the three-phase and four-line voltage of 220V, and the DC voltage of output 5V is as whole electric energy power supply source; SG2012 is a LDO chip with esd protection function; it is converted into 3.3V voltage with the 5V voltage of HQTE-5-S05 output again through step-down, for 3.3V working chip and module operate as normal such as STC89LE58RD+, MAX232, SP3481EN and nRF905 wireless transceivers.
RS-232 interface is mainly used in the debug process of three-phase digital electricity meter and the communicating by letter of PC, and its communication mode is 1200bps, even parity check, 8 bit data positions, 1 position of rest.The RS485 interface is used for communicating by letter with collector, and the power monitoring center is read the electric energy meter continuous data and carried out the remote software calibration by the RS485 bus, and its communication mode is identical with RS-232.The RS485 interface chip adopts is low-power consumption, half-duplex RS 485 interface chips under a 3.3V of being operated in that releases of Sipex company.The MAX232 of U.S. letter company that 232 interface chips adopt.
Figure 10 is the main flow chart that the utlity model has the three-phase digital electricity meter of data relay function, the utility model electric energy meter MCU refreshed one time ammeter data in per 1 minute, so drive a timer of 1 minute in master routine, the MCU per minute is read into electrical quantity in the electric energy computation chip ATT7022B register among the single-chip microcomputer RAM according to certain frame structure.
Because Automatic meter reading system issues the order of checking meter by RS485, whether electric energy meter needs constantly to inquire about serial ports and receives orders.Serial ports is if receive orders, and just needs judge that whether this order is its data order of making a copy for, and to be the address that comprises in ordering by reception relatively judge with whether self table address is consistent for this, and wherein, self table address leaves among the EEPROM that single-chip microcomputer carries.If self orders, then will exist the electrical quantity among the single-chip microcomputer RAM to send to concentrator by the RS485 bus according to certain frame format; If not self orders, electric energy meter enters relay state.
Figure 11 is the relaying process flow diagram of present embodiment, and as shown in figure 11, MCU nRF905 is set to transmit status, and the order that receives is sent by nRF905 according to table address; NRF905 is set to returning of pending datas such as receiving mode then; After nRF905 receives return data, need resolve the data that receive, MCU can return to collector by the RS485 bus with the data that meet frame structure, thus the end data relaying.
Wireless transceiver nRF905 has the matching addresses function, under the Data Receiving pattern, address matching signal (AM) and data ready signal (DR) signalisation active data of single-chip microcomputer STC89LE58RD+ and address finish receiving, and single-chip microcomputer judges just by the level that detects AM, DR whether nRF905 receives data.When single-chip microcomputer detects AM and DR signal and is high level, prove that nRF905 has received data.At this moment, single-chip microcomputer STC89LE58RD+ can resolve the order that receives, and when order met frame structure, the electrical quantity that electric energy meter can collect self was returned to the electric energy meter that sends this order by nRF905.
The utility model embodiment also provides a kind of Automatic meter reading system, and described Automatic meter reading system comprises a plurality of three-phase digital electric meters that collector and previous embodiment provide; Described collector connects a plurality of three-phase digital electric meters by bus.The three-phase digital electric meter comprises: central processing unit, and the electrical quantity treating apparatus, bus interface devices and the wireless transmitter that are connected with described central processing unit; Described electrical quantity treating apparatus generates the electrical quantity and the storage of described three-phase digital electric meter; Described wireless transmitter receives the electrical quantity that other three-phase digital electric meters send, and perhaps the electrical quantity with self sends to other three-phase digital electric meters; Described bus interface devices connects outside collector, reports described collector with the electrical quantity of self or from the electrical quantity of other three-phase digital electric meters; Described central processing unit receives the data acquisition instruction, controls the work that described electrical quantity TU Trunk Unit and described electrical quantity report the unit.
Because the structure and the principle of work of three-phase digital electric meter have been described in detail in the aforementioned embodiment, to come emphasis to set forth the Automatic meter reading system principle of work of the utility model embodiment in conjunction with Fig. 1 herein: if Automatic meter reading system RS485 communication success ratio does not reach 100%, RS485 communication failure between collector and the table 1 is communicated by letter normally with other ammeters RS485 in the system.This moment, collector can't issue the electrical quantity reading order to ammeter 1 by the RS485 bus, can't copy back the electric energy data that table 1 collects.But because this moment, the digital electric meter in the Automatic meter reading system all had wireless communication module nRF905, collector just is handed down to ammeter 2 by the order of will checking meter of RS485 bus; Ammeter 2 finds that this order sends to ammeter 1, so the order that ammeter 2 will receive sends to ammeter 1 by wireless module nRF905 receiving the order back by the parsing to order; Table 1 sends to table 2 with the electricity consumption data that collect by wireless module nRF905 after receiving the order that table 2 sends over; Table 2 sends to collector with the packet that table 1 sends over by the RS485 bus at last.In this process, ammeter 2 has served as the role of data relayings, has realized the normal collection of collector to ammeter 1 electricity consumption data.Communicate by letter between the collector between the wireless transceiver of present embodiment, in RS485 communication chip and the Automatic meter reading system and adopt the DL/T645-2007 communication protocol.
Above embodiment only in order to the technical scheme of explanation the utility model embodiment, is not intended to limit; Although the utility model embodiment is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of each embodiment technical scheme of the utility model embodiment.