A kind of method for extending ammeter stand-by time during radio frequency is checked meter and by penetratingThe method that frequency mode receives and dispatches electricity consumption dataTechnical field
The present invention relates to ammeter technology, extends during checking meter more particularly, to a kind of radio frequency when ammeter battery is poweredThe method of device standby time, and a kind of method that electricity consumption data is received and dispatched by RF-wise.
Background technology
Ammeter it is battery powered in the case of, need wirelessly, such as radio frequency(RF)Carry out wireless electricity consumption numberAccording to copy reading, the microprocessor unit of ammeter(MCU)The state for keeping persistently waking up is needed, while control RF modules to go persistently to connectWireless data is received, but is being not received by the time period of data(Possible distal end arranges timing receipt data, such as 3S or moreFor a long time), the working condition at ammeter end remained in full speed running, can so cause the waste of more battery power consumptions, becauseThis is simultaneously inadvisable.
The content of the invention
Embodiments of the invention are solved or reduce the defect of prior art, in the case of battery powered, by controlling RFThe communication modes of module can effectively extend the stand-by time and power consumption of ammeter equipment being checked meter.The one of the present inventionThe monitoring of air-data in individual preferred embodiment, is only carried out by RF modules, and is carried out according to presetting communications protocol in early stageThe data filtering of prime is processed, and when data are designated as effective, directly wakes up line number of going forward side by side by downgoing communication mouth TXD portsAccording to process.
The advantage of this embodiment is that the MCU of ammeter equipment will not when aerial no data or when there is invalid dataIt is waken up and is constantly in resting state, average power consumption of the integral device under power down holding state can be effectively reduced, fromAnd effectively extend the service life of battery.
A kind of method for extending ammeter stand-by time during radio frequency is checked meter of the present invention, it is in addition real based on kilowatt meter recorderExisting, this kilowatt meter recorder includes ammeter and radio frequency coupled thereto(RF)Communication section, and it is hand-held with what this RF communication section was connectedRead-write equipment(HHU), it is characterised in that:By the microprocessor in the ammeter(MCU)It is set to RXD pin wake-up states so as toIt is not timed wake-up and is continuously in resting state, while the RF communication sections is set as, the shape of air-data is monitored in timingState.
Further, the RF communication sections are set to carry out data below receiving step:
1)The RF communication sections are set as into a kind of low-power consumption standby state, the first of its monitoring air-data is then turned onIntervalometer;
2)Judge whether to reach a timing time limit by its data processing division, if so, then RF communication sections are waken up and go forward side by sideEnter full speed running state, now its RF module is unlocked and in receiving data state, if it is not, being then back to step 1);
3)Monitored by the RF modules and whether there is in the air data is activation, if having, by its data processing division according toCommunications protocol carries out pretreatment to receiving data, judges that whether effectively data, if nothing, are back to step 1);
4)If the receiving data is effectively, by the RF modules by ammeter wake-up signal and pretreated reception numberAccording to sending to ammeter, this ammeter is waken up by RXD pins, if the receiving data is invalid, be back to step 3);
5)One the first time limit T1 is set by the data processing division, so that the RF modules judge whether ammeter hasFeedback data, if having not timed out, the feedback data for receiving is sent to HHU by the RF modules, if overtime, is back to step1).
Further, the MCU is set to carry out data below transceiving step:1)MCU is set as into low-power consumption standby shapeState;2)Judge whether its RXD pin has wake-up signal, if having, MCU is waken up and enters full speed running state, if nothing, returnsIt is back to step 1);3)Judge whether receiving data is valid data by the MCU, if so, then MCU send feedback data toRF modules, feedback data to the HHU to send this by the RF modules, if it is not, being then back to step 1).
It is as preferred, of the invention that air-data monitoring action is carried out by the RF modules only.
As preferred, in step 3)In also include according to default communications protocol, carry out front stage network data filtration, withData type is labeled as " legal " or " illegal " type by this, only when data type is judged to " legal ", logical by the RFThe downgoing communication port TXD in news portion directly into the MCU RXD pins carrying out ammeter wake actions.
The invention also discloses a kind of method for receiving and dispatching electricity consumption data by RF-wise, in addition real based on kilowatt meter recorderExisting, this kilowatt meter recorder includes ammeter and RF communication sections coupled thereto, and the HHU being connected with this RF communication section, its featureIt is:MCU in the ammeter is set to into resting state, the second timer for monitoring air-data is opened, by its RXD pinCouple the RF modules in the RF communication sections.
Further, the MCU and RF modules coupled thereto are set to carry out data below transceiving step:
1)Judge whether to reach a timing time limit by MCU, if so, then MCU and RF communication sections are gone forward side by side by wake-up simultaneouslyEnter full speed running state, now RF modules are unlocked and in receiving data state;
2)Monitored by the RF modules and whether there is in the air data is activation, if having, by MCU according to communications protocol pairReceiving data carries out pretreatment, judges that whether effectively data, if nothing, are back to step 1);
3)Send data and be back to step 1 to aerial by RF modules).
Further, in step 2)In also include according to default communications protocol, carry out front stage network data filtration, with thisData type is labeled as into " legal " or " illegal " type.
Average current Is of the heretofore described MCU to RF modulesEVEControl meet relation:IEVE= (U·TA/T)/ 2R,Real work voltages of the wherein U for RF modules, TA/ T is dutycycle, and R is impedance.
Specific embodiment
The method for extending ammeter stand-by time during radio frequency is checked meter of the embodiment of the present invention, based on kilowatt meter recorder in additionRealize, this kilowatt meter recorder includes ammeter and RF communication sections coupled thereto, and the handhold read-write being connected with this RF communication sectionEquipment(HHU), the MCU in the ammeter is set to into RXD pin wake-up states so as to be not timed wake-up and be continuously in notDormancy state, while the RF communication sections being set as, the state of air-data is monitored in timing.
In another embodiment, the RF communication sections are set to carry out data below receiving step:1)The RF is led toNews portion is set as a kind of low-power consumption standby state, is then turned on its first timer for monitoring air-data;2)By its dataProcessing unit judge whether reach a timing time limit, if so, then RF communication sections are waken up and enter full speed running state, now itsRF modules are unlocked and in receiving data state, if it is not, being then back to step 1);3)Being monitored by the RF modules is in the airIt is no to there is data is activation, if having, pretreatment is carried out to receiving data according to communications protocol by its data processing division, number is judgedAccording to whether effectively, if nothing, step 1 is back to);4)If ammeter effectively, is called out by the receiving data by the RF modulesAwake signal and pretreated receiving data are sent to ammeter, to wake up this ammeter by RXD pins, if the receiving data withoutEffect, is back to step 3);5)One the first time limit T1 is set by the data processing division(Such as 1S), so that the RF mouldsBlock judges whether ammeter has feedback data, if having not timed out, the feedback data for receiving is sent to HHU by the RF modules, ifTime-out, is back to step 1).
In another embodiment, the MCU is set to carry out data below transceiving step:1)MCU is set as into low work(Consumption holding state;2)Judge whether its RXD pin has wake-up signal, if having, MCU is waken up and enters full speed running state,If nothing, step 1 is back to);3)Judge whether receiving data is valid data by the MCU, if so, then MCU sends anti-Feedback data give RF modules, feedback data to the HHU to send this by the RF modules, if it is not, being then back to step 1).
In another embodiment, air-data monitoring action is carried out by the RF modules only.
In another embodiment, in step 3)Further include, according to default communications protocol, to carry out prime networkData type is labeled as " legal " or " illegal " type with this by data filtering, only when data type is judged to " legal ", is led toThe RXD pins that the downgoing communication port TXD of the RF communication sections is crossed directly into the MCU are to carry out ammeter wake actions.
In another embodiment, a kind of method that electricity consumption data is received and dispatched by RF-wise, based on kilowatt meter recorder in additionRealize, this kilowatt meter recorder includes ammeter and RF communication sections coupled thereto, and the HHU being connected with this RF communication section, by instituteState the MCU in ammeter and be set to resting state, open the second timer for monitoring air-data, it is described by its RXD pins couplingRF modules in RF communication sections.
The MCU and RF modules coupled thereto are set to carry out data below transceiving step:1)Judged whether by MCUA timing time limit is reached, if so, then MCU and RF communication sections are waken up simultaneously and enter full speed running state, now RF modulesIt is unlocked and in receiving data state;2)Monitored by the RF modules and whether there is in the air data is activation, if having, passed throughMCU carries out pretreatment to receiving data according to communications protocol, judges that whether effectively data, if nothing, are back to step 1);3)It is logicalCross RF modules to send data and be back to step 1 to aerial).
In step 2)Further include according to default communications protocol, carry out front stage network data filtration, with this by numberIt is " legal " or " illegal " type according to type mark.
Further:Average current Is of the MCU to RF modulesEVEControl meet relation:IEVE=(U·TA/T)/ 2R,Wherein U be RF module real work voltages, TA/ T is dutycycle, and R is impedance.
The present invention is checked meter by the communication modes of control RF modules in the case of battery powered, can be effectiveGround extends the stand-by time and power consumption of ammeter equipment.The monitoring of air-data can be carried out by RF modules only in the present invention, andEarly stage is processed according to the data filtering that presetting communications protocol carries out prime, when data are designated as effective, by descendingCommunication port TXD ports directly wake up and carry out data processing.When it is advantageous that when aerial no data or there is invalid data,The MCU of ammeter equipment will not be waken up and be constantly in resting state, can be effectively reduced integral device in the standby shape of power downAverage power consumption under state, so as to effectively extend the service life of battery.
Industrial applicibility is analyzed
According to previous embodiment, it is compared with prior art, when the MCU of ammeter is standby in one embodiment, RF mouldsBlock is set to 3S and wakes up once monitoring air-data, the outfan of battery connect 100 Ω resistance as ammeterOne fictitious load of equipment, the voltage at load two ends of being sampled by oscillograph, according to previous embodiment come computing deviceAverage power consumption(In the ideal situation, the average power consumption of RF can only be considered), according to IEVE=(U·TA/T)/ 2R, 1)Before improvementActual measurement average power consumption:
Y:200mV/div(Judged with the figure of the periodic serrations ripple shown on oscillograph, longitudinal axis Y represents actual workMake voltage U, transverse axis X is the operating mode time cycle)
X:1S/div
U=800mV, TA=1S, T=3S, R=100 Ω(TAWork when indicating that pulse signal obtains air-data signalCycle, and T is a working cycle)
Draw IEVE≈2666μA
And 2)Actual measurement average power consumption after improvement:
Y:20mV/div
X:1S/div
U=40mV, TA=1S, T=3S, R=100 Ω
Draw IEVE66.7 μ A of ≈, much smaller than the power consumption of conventional method, therefore are worth adopting.