Summary of the invention
The object of the invention is for the problems referred to above, propose a kind of STS Split electric energy meter based on low-power consumption carrier communication mode.
Technical scheme of the present invention is:
Based on a STS Split electric energy meter for low-power consumption carrier communication mode, it comprises concentrator, master meter and indoor unit;
Peripheral module one, carrier module one that concentrator comprises master controller one and is attached thereto, start to exchange fire line end of incoming cables and zero line end of incoming cables respectively in the two ends of described carrier module one, coupling capacitance C1 is accessed between described carrier module one and live wire end of incoming cables, described live wire end of incoming cables and the relay input end of master meter, concentrator is checked meter to master meter by coupling capacitance C1 line end of incoming cables of starting to exchange fire;
Metering module, peripheral module two, carrier module two that master meter comprises master controller two and is attached thereto, the two ends of relay are connected on after the two ends of described carrier module two are connected in series carrier wave electric capacity C2, C3 respectively, start to exchange fire line end of incoming cables and live wire leading-out terminal respectively in the two ends of this relay, measuring the power consumption inlet wire of household electrical appliance, starts to exchange fire the leading-out terminal of line and zero line respectively in the two ends of these household electrical appliance;
Peripheral module three, carrier module three that indoor unit comprises master controller three and is attached thereto, start to exchange fire line leading-out terminal and zero line leading-out terminal respectively in the two ends of described carrier module three, coupling capacitance C4 is accessed between described carrier module three and live wire leading-out terminal, described live wire leading-out terminal and the relay output end of master meter, carrier module threeway overcoupling electric capacity C4 line output terminal of starting to exchange fire communicates with master meter, carries out power purchase and electricity quantity inquiring.
Coupling capacitance C1 of the present invention is 220nF, coupling capacitance C2 be 220nF, coupling capacitance C3 be 100nF, coupling capacitance C4 is 100nF.
In indoor unit of the present invention, peripheral module three comprises keyboard, power management module, battery, backlight circuit, LCD display, hummer and memory module;
Described keyboard is the input equipment for user, and its signal output part is connected with the respective signal input end of master controller three;
The input end of described power management module as live wire, the zero line leading-out terminal of electrical signal collection termination electric energy meter, the respective signal input end of the output termination master controller three of power management module;
Described battery provides standby power supply;
Described master controller three is bi-directionally connected with memory module, and each signal output part of master controller three connects the respective signal input end of backlight circuit, LCD display and hummer respectively.
Carrier module three of the present invention adopts BL6810, data communication can be carried out by four frequency 131.58k/263.16k/312.5k/416.67kHz BPSK modes and master meter, during powered battery, carrier module three receives the low-power consumption request of master controller three, selects using the highest frequency of signal to noise ratio (S/N ratio) as optimum frequency transceiving data according to the signal to noise ratio (S/N ratio) on current ink.
In indoor unit of the present invention, carrier module three adopts dynamic power consumption control method, comprises carrier data receiving unit and carrier data transmitting portion, wherein;
Carrier data receiving unit comprises the following steps:
(1), carrier module threeway overcoupling electric capacity C4 line output terminal of starting to exchange fire communicates with master meter, the received power of the useful signal of the frequency used when obtaining current reception data, each frequency, the received power of noise signal, the bit error rate, and the voltage gain of useful signal (refer to the yield value of carrier chip BL6810 automatic gain controller, directly read by chip register);
(2), the received power of carrier module three according to the useful signal of each frequency and the received power of noise signal, drawn received signal strength and the signal to noise ratio (S/N ratio) of each frequency by following formulae discovery, and record; Received power/16 × the 0.1953/e of received signal strength=useful signal
the voltage gain of 0.2602 × useful signal, mV signal to noise ratio (S/N ratio)=10 × log
10(received power/2 of the received power/noise signal of useful signal), dB.
In indoor unit of the present invention, carrier module three adopts dynamic power consumption control method, comprises carrier data receiving unit and carrier data transmitting portion, wherein;
Carrier data transmitting portion comprises the following steps:
(1) most high threshold and the lowest threshold of the bit error rate of four frequencies of carrier module three, received signal strength and signal to noise ratio (S/N ratio), is preset in the host controller;
(2), carrier module three inquires about the bit error rate of four frequencies: if there is the frequency that the bit error rate is less than lowest threshold, then obtain corresponding frequency, go to step (3), if there is no the bit error rate is less than the frequency of lowest threshold,
Then judge whether to exist the bit error rate further and be less than most high threshold and the frequency being greater than lowest threshold, if existed, then obtain corresponding frequency, go to step (4), if there is no;
Then obtain the frequency that current transmitted power is minimum in four frequencies as optimum frequency, and increase transmitted power and carry out data transmission;
(3), carrier module three pairs of bit error rates are less than each frequency of lowest threshold, inquire about received signal strength and the signal to noise ratio (S/N ratio) of corresponding frequency; If there is the frequency that received signal strength and signal to noise ratio (S/N ratio) are all greater than the most high threshold of its correspondence, then obtain frequency that wherein current transmitted power is minimum as optimum frequency, and reduce current transmitted power and carry out data transmission;
If there is no received signal strength and signal to noise ratio (S/N ratio) are all greater than the frequency of the most high threshold of its correspondence, then directly obtain frequency that wherein transmitted power is minimum as optimum frequency, and keep current transmitted power to carry out data transmission;
(4), the frequency of carrier module three pairs of bit error rates between lowest threshold and most high threshold, obtain frequency that wherein current transmitted power is minimum as optimum frequency, and keep current transmitted power to carry out data transmission.
Power management module of the present invention adopts the method reducing quiescent dissipation: when arrearage, master meter relay disconnects, power management module is switched to powered battery, if 30s does not have keyboard operation, light-emitting diode display is closed all peripheral hardwares and is entered dormant state, reduces quiescent dissipation.
Power management module of the present invention comprises transformer, low pressure difference linear voltage regulator, battery voltage detection circuit, booster circuit and city's power detection circuit, transformer connects live wire and the zero point of civil power as a signal input part of power management module, the signal input part of another termination civil power testing circuit of transformer, the signal output part of city's power detection circuit connects master controller three, battery voltage detection circuit connects battery as another signal input part of power management module, the signal output part of battery voltage detection circuit connects the respective signal input end of master controller three, battery is rear by booster circuit boosting is each module for power supply.
Beneficial effect of the present invention:
Civil power of the present invention and battery fast for switching time; System power dissipation 8uA under battery mode, only has when needing carrier wave to send data and just opens booster circuit, greatly reduce system power dissipation, improve battery.
The present invention makes master meter carrier signal be coupled to relay input/output terminal UNICOM's concentrator and indoor unit by two electric capacity C2 and C3; Indoor unit carrier module is primary module, and master meter carrier module is from module.Master meter arrearage is switched to powered battery by indoor unit power management module after operating a switch, and the 12V power supply providing carrier communication to need.Indoor unit hardware is made up of low static leakage stream unit, in conjunction with the adaptive switched/timesharing switched-mode power supply technology of interlocking with extending battery life, after civil power power down, system can be powered seamlessly switching to reserve battery, microprocessor switches to Intelligent adjustment power consumption mode by full speed running, powers as required to carrier wave on time; Meanwhile, user enters dormancy without after operation 30S, is only just waken up when receiving user operation data from indoor unit microprocessor; In addition, module, when sending data, according to the received signal strength of each passage, signal to noise ratio (S/N ratio) and the bit error rate, dynamically can adjust transmitted power and selected passage, makes to reduce transmitted power to greatest extent when ensureing reliable data transmission.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further illustrated.
As shown in Figure 1, a kind of STS Split electric energy meter based on low-power consumption carrier communication mode, it comprises concentrator, master meter and indoor unit;
Peripheral module one, carrier module one that concentrator comprises master controller one and is attached thereto, start to exchange fire line end of incoming cables and zero line end of incoming cables respectively in the two ends of described carrier module one, coupling capacitance C1 is accessed between described carrier module one and live wire end of incoming cables, described live wire end of incoming cables and the relay input end of master meter, concentrator is checked meter to master meter by coupling capacitance C1 line end of incoming cables of starting to exchange fire;
Metering module, peripheral module two, carrier module two that master meter comprises master controller two and is attached thereto, the two ends of relay are connected on after the two ends of described carrier module two are connected in series carrier wave electric capacity C2, C3 respectively, start to exchange fire line end of incoming cables and live wire leading-out terminal respectively in the two ends of this relay, measuring the power consumption inlet wire of household electrical appliance, starts to exchange fire the leading-out terminal of line and zero line respectively in the two ends of these household electrical appliance;
Peripheral module three, carrier module three that indoor unit comprises master controller three and is attached thereto, start to exchange fire line leading-out terminal and zero line leading-out terminal respectively in the two ends of described carrier module three, coupling capacitance C4 is accessed between described carrier module three and live wire leading-out terminal, described live wire leading-out terminal and the relay output end of master meter, carrier module threeway overcoupling electric capacity C4 line output terminal of starting to exchange fire communicates with master meter, carries out power purchase and electricity quantity inquiring;
Master meter carrier module is capacitively coupled to relay input/output terminal by C2 and C3, and concentrator copies master meter by C2, and display unit is communicated with master meter by C3, carries out the operation such as power purchase, electricity quantity inquiring.
Coupling capacitance C1 of the present invention is 220nF, coupling capacitance C2 be 220nF, coupling capacitance C3 be 100nF, coupling capacitance C4 is 100nF.
As shown in Figure 2, in indoor unit of the present invention, peripheral module three comprises keyboard, power management module, battery, backlight circuit, LCD display, hummer and memory module;
Described keyboard is the input equipment for user, and its signal output part is connected with the respective signal input end of master controller three; Keyboard is 3*4 matrix-scanning keyboard, comprises numeral 0 ~ 9, and backspace key, enter key, long numerical key of pressing may correspond to input A ~ F for 1 ~ 61 second.Different functions needs input function code, and inquiry electricity is input through keyboard 37+ enter key, and input TOKEN code is 55+20 position TOKEN code+enter key;
The input end of described power management module as live wire, the zero line leading-out terminal of electrical signal collection termination electric energy meter, the respective signal input end of the output termination master controller three of power management module;
Described battery provides standby power supply; Battery adopts 4 joints No. 7 batteries to provide 6V power supply.Voltage booster circuit for battery adopts MP3215 DC/DC chip to boost to 12V2, conversion efficiency 90%; 220V produces 12V1 by transformer.The contour power consuming devices of backlight hummer is powered by 12V1.
Described master controller three is bi-directionally connected with memory module, and each signal output part of master controller three connects the respective signal input end of backlight circuit, LCD display and hummer respectively.
LCD selects character area M shape cell can show 8 English characters, and as current total electricity, voltage, electric current, dump energy, non-character district can show switching on information, stealing information, carrier transmitting-receiving state, battery status.
Carrier module three of the present invention adopts BL6810, data communication can be carried out by four frequency 131.58k/263.16k/312.5k/416.67kHz BPSK modes and master meter, during powered battery, carrier module three receives the low-power consumption request of master controller three, selects using the highest frequency of signal to noise ratio (S/N ratio) as optimum frequency transceiving data according to the signal to noise ratio (S/N ratio) on current ink.
In indoor unit of the present invention, carrier module three adopts dynamic power consumption control method, comprises carrier data receiving unit and carrier data transmitting portion, wherein;
Carrier data receiving unit comprises the following steps:
(1), carrier module threeway overcoupling electric capacity C4 line output terminal of starting to exchange fire communicates with master meter, the received power of the useful signal of the frequency used when obtaining current reception data, each frequency, the received power of noise signal, the bit error rate, and the voltage gain of useful signal (refer to the yield value of carrier chip BL6810 automatic gain controller, directly read by chip register);
(2), the received power of carrier module three according to the useful signal of each frequency and the received power of noise signal, drawn received signal strength and the signal to noise ratio (S/N ratio) of each frequency by following formulae discovery, and record; Received power/16 × the 0.1953/e of received signal strength=useful signal
the voltage gain of 0.2602 × useful signal, mV signal to noise ratio (S/N ratio)=10 × log
10(received power/2 of the received power/noise signal of useful signal), dB.
In indoor unit of the present invention, carrier module three adopts dynamic power consumption control method, comprises carrier data receiving unit and carrier data transmitting portion, wherein;
Carrier data transmitting portion comprises the following steps:
(1) (bit error rate threshold of four frequencies is: lowest threshold 0.0125, most high threshold 0.0625, to preset the most high threshold of the bit error rate of four frequencies of carrier module three, received signal strength and signal to noise ratio (S/N ratio) and lowest threshold in the host controller; Received signal strength threshold value is: lowest threshold 40, most high threshold 70; Snr threshold is: lowest threshold 5, most high threshold 20);
(2), carrier module three inquires about the bit error rate of four frequencies: if there is the frequency that the bit error rate is less than lowest threshold, then obtain corresponding frequency, go to step (3), if there is no the bit error rate is less than the frequency of lowest threshold,
Then judge whether to exist the bit error rate further and be less than most high threshold and the frequency being greater than lowest threshold, if existed, then obtain corresponding frequency, go to step (4), if there is no;
Then obtain the frequency that current transmitted power is minimum in four frequencies as optimum frequency, and increase transmitted power and carry out data transmission; (each frequency is independently, the performance number that the current transmitted power of each frequency adopts when being and sending data last time, scope 0-128 is 102 (maximal value * 80%) when first time sends, and increases afterwards or reduce according to the logical relation stepping described in literary composition)
(3), carrier module three pairs of bit error rates are less than each frequency of lowest threshold, inquire about received signal strength and the signal to noise ratio (S/N ratio) of corresponding frequency; If there is the frequency that received signal strength and signal to noise ratio (S/N ratio) are all greater than the most high threshold of its correspondence, then obtain frequency that wherein current transmitted power is minimum as optimum frequency, and reduce current transmitted power and carry out data transmission;
If there is no received signal strength and signal to noise ratio (S/N ratio) are all greater than the frequency of the most high threshold of its correspondence, then directly obtain frequency that wherein transmitted power is minimum as optimum frequency, and keep current transmitted power to carry out data transmission;
(4), the frequency of carrier module three pairs of bit error rates between lowest threshold and most high threshold, obtain frequency that wherein current transmitted power is minimum as optimum frequency, and keep current transmitted power to carry out data transmission.
When the dynamic power consumption control method that carrier module three adopts uses: if user operation keyboard, system transfers normal operating conditions to by dormancy, open carrier module power supply, carrier module self-adaptation four kinds of carrier frequency 131.58k/263.16k/312.5k/416.67kHz, and self-adaptation three kinds of communication data rate 5.48kbps/365bps/87bps, and carrier wave transmitted power is linearly adjustable, module is when sending data, can according to the received signal strength of each passage, signal to noise ratio (S/N ratio) and the bit error rate, by real time multi-channel assessment algorithm, according to communication bit error rates, signal to noise ratio (S/N ratio), received signal strength priority order from high to low, first according to actual environment draw minimum of test and most high threshold, filter out the passage of reliable communications, close the passage that the bit error rate is higher, then, check its signal to noise ratio (S/N ratio) and received signal strength, under the prerequisite meeting module receiving sensitivity, appropriateness reduces its current transmitted power again, this multistage intelligent low-power consumption mode is while guarantee indoor unit basic function, improve battery availability factor.
As shown in Figure 3,4, power management module of the present invention adopts the method reducing quiescent dissipation: when arrearage, master meter relay disconnects, power management module is switched to powered battery, if 30s does not have keyboard operation, light-emitting diode display is closed all peripheral hardwares and entered dormant state, reduces quiescent dissipation.
Power management module of the present invention comprises transformer, low pressure difference linear voltage regulator, battery voltage detection circuit, booster circuit and city's power detection circuit, transformer connects live wire and the zero point of civil power as a signal input part of power management module, the signal input part of another termination civil power testing circuit of transformer, the signal output part of city's power detection circuit connects master controller three, battery voltage detection circuit connects battery as another signal input part of power management module, the signal output part of battery voltage detection circuit connects the respective signal input end of master controller three, battery is rear by booster circuit boosting is each module for power supply.Indoor unit detects cell voltage, reports to the police lower than 4V, and alarm method rings in LCD display and hummer.
Power management module adopts the adaptive switched/timesharing switched-mode power supply technology of interlocking, and when there being civil power, the 12V1 after being changed by transformer makes the reverse stopping powered battery of D2 by diode D1, and system is by mains-supplied.When 12V1 ~ 4 after civil power power down are zero, D1 conducting, D2 ends, and system is battery-powered.City's power detection circuit is supplied to MCU detection signal VIN_INT for " 1 " simultaneously, MCU receives this signal and synchronously enters low-power consumption mode, when having button operation and need to send, MCU exports high useful signal 3215_ON/OFF and opens MP3215 BOOST circuit, produce 12V5 to power to carrier wave, to realize carrier communication.Low-leakage current LDO TLV70450 produces 5V and uses 5V to power to MCU+ keyboard+storage+LCD;
As the reverse voltage stabilizing 7.5V of D1P after 12V1 power down, triode Q1P conducting VIN_INT becomes 5V from 0V, produce power-off signal, this signal issues MCU, be switched to low speed park mode by Full-Speed mode after MCU receives VIN_INT signal, 3215_ON/OFF signal be set to low level closedown simultaneously and only switch back Full-Speed mode when button presses action.To reduce power consumption, improve battery efficiency.Can open triode Q3P pin two makes its conducting pin one be low level, and metal-oxide-semiconductor pin 3 and pin two produce 6V pressure drop, pin 3 and pin one conducting, and battery provides voltage to produce 12V5 to MP3215.
The part that the present invention does not relate to prior art that maybe can adopt all same as the prior art is realized.