Wireless power kilowatt meter reading-out system and control method thereof
Technical field
The present invention relates to power meter reading system, especially a kind of wireless power kilowatt meter reading-out system and control method thereof.
Background technology
At present China is building strong intelligent grid energetically, and wherein to copy be the important component part of strong intelligent grid to the intelligent electric meter collection.Existing intelligent meter data recording mode mainly contains wired and wireless two kinds, and wired mode needs rewiring, and cost is higher, and is not too suitable in some occasion, particularly rural area; Wireless mode mainly based on the technology of GPRS or wireless sensor network, need be reequiped electric supply meter, increases corresponding GPRS module etc., realizes the collection respectively to each electric supply meter data, the higher and difficult popularization of cost.
Summary of the invention
The purpose of this invention is to provide a kind of wireless power kilowatt meter reading-out system and control method thereof, ammeter data is automatically gathered, and can increase work efficiency and reliability for power industry, saves human resources, and needn't reequip electric supply meter originally, is easy to promote.
To achieve these goals, the invention provides a kind of wireless power kilowatt meter reading-out system, it is characterized in that: comprise ammeter data collector and ammeter data concentrator, wherein said ammeter data collector comprises power module, single-chip microcomputer and the first radio frequency transmission module, the output terminal of this power module connects the power input of single-chip microcomputer, the first radio frequency transmission module respectively, and being used for provides power supply to single-chip microcomputer, the first radio frequency transmission module respectively; This single-chip microcomputer be used for to be gathered ammeter data, and by this first radio frequency transmission module this ammeter data is sent to this ammeter data concentrator with the form of radio signal;
Described ammeter data concentrator comprises power supply module, MCU(Micro Control Unit, microcontroller), the second radio frequency transmission module and GPRS(General Packet Radio Service, the general packet radio service technology) module, the output terminal of this power supply module connects the power input of MCU, and being used for provides power supply to MCU; This MCU is used for by the second radio frequency transmission module ammeter data of form that receives radio signals, and this ammeter data is handled the back sends to remote platform by the GPRS module.
Described ammeter data concentrator also comprises display driver circuit and display circuit, wherein the output terminal of this MCU connects display circuit by display driver circuit, after the ammeter data that is used for receiving is handled, drive display circuit by display driver circuit and show this ammeter data.
Described ammeter data concentrator also comprises the storer that connects this MCU, is used for the received ammeter data of store M CU.
Described storer is selected big capacity Flash storer for use.
Described ammeter data concentrator also comprises USB interface.
Described ammeter data concentrator also comprises the gauge tap that connects power supply module, is used for the keying of control power supply module.
The present invention also provides a kind of control method of above-mentioned wireless power kilowatt meter reading-out system, it is characterized in that comprising ammeter data concentrator statistics ammeter process and ammeter data gatherer process, and this ammeter data concentrator statistics ammeter process is made up of following steps:
S1, ammeter data concentrator are called out all ammeter data collectors in its perform region, ask all ammeter data collectors to send oneself Customs Assigned Number and user cipher to the ammeter data concentrator;
After S2, ammeter data collector receive the call request of ammeter data concentrator, change duty over to from dormant state, beginning sends Customs Assigned Number and user cipher to the ammeter data concentrator;
S3, ammeter data concentrator sort to all Customs Assigned Numbers that receive, the quantity of ammeter data collector in the record current region, and send pause instruction and give the ammeter data collector;
S4, ammeter data collector are received pause instruction, enter halted state, no longer send any information.
The ammeter data gatherer process, formed by following steps:
The size order of the Customs Assigned Number that S5, ammeter data concentrator obtain according to the ammeter statistic processes sends query requests to the ammeter data collector successively, and timer is set;
S6, ammeter data collector are received query requests, gather ammeter data from ammeter, and together with oneself Customs Assigned Number and user cipher, send to the ammeter data concentrator with the form of packet;
If S7 ammeter data concentrator is received the packet of ammeter data collector in the timer official hour, then Customs Assigned Number, user cipher and ammeter data are stored in the high-capacity FLASH storer together, and these information are presented in the display module; If timer expiry, circulation sends N query requests to this ammeter data collector, if N continuous is inferior overtime, then ignore this ammeter data collector, send query requests to next ammeter data collector, timer is set, and repeated execution of steps S6~S7 gathers up to the ammeter data of all Customs Assigned Numbers that obtain by the ammeter statistic processes and to finish;
S8, after the ammeter data concentrator arrives the zone that GPRS network covers, all user profile of storing are sent to remote platform by GPRS network, perhaps directly by USB interface ammeter data is copied in the USB device.
In described step S2, the ammeter data collector adopts avoidance mechanism when sending data: Frame of per T transmission interval time, circulation is carried out N time.
Adopt four bytes that the ammeter data collector is carried out Customs Assigned Number, the Customs Assigned Number of ammeter data collector is unique, and scope is 1 ~ 2
32, complete 0 and complete 1 does not use.
In described ammeter data concentrator statistics ammeter process and ammeter data gatherer process, send order by remote platform to the ammeter data concentrator, control this ammeter data concentrator and carry out ammeter data concentrator statistics ammeter process, ammeter data gatherer process.
In sum, owing to adopted technique scheme, the invention has the beneficial effects as follows:
1, the power information transmission speed is fast, degree of accuracy is high, real-time is good; The process of checking meter is full-automatic, has saved human resources when guaranteeing reliability;
2, needn't reequip original electric supply meter, directly installation gets final product, and is easy to promote;
3, in ammeter data concentrator statistics ammeter process, adopt avoidance mechanism, solved interior a plurality of ammeter data collectors of same time period and sent data to an ammeter data concentrator, might produce conflict and causing data to receive the problem of makeing mistakes;
4, the ammeter data collector is distributed unique Customs Assigned Number and user cipher, can prevent that illegal ammeter data collector from inserting.
Description of drawings
The present invention will illustrate by example and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is integrated circuit schematic diagram of the present invention;
Fig. 2 is the circuit theory diagrams of ammeter data collector;
Fig. 3 is the circuit theory diagrams of ammeter data concentrator;
Fig. 4 is ammeter data concentrator statistics ammeter process flow diagram flow chart of the present invention;
Fig. 5 is ammeter data gatherer process process flow diagram of the present invention.
Embodiment
Disclosed all features in this instructions, or the step in disclosed all methods or the process except mutually exclusive feature and/or step, all can make up by any way.
Disclosed arbitrary feature in this instructions (comprising any accessory claim, summary and accompanying drawing) is unless special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, unless special narration, each feature is an example in a series of equivalences or the similar characteristics.
Shown in Fig. 1~3, this wireless power kilowatt meter reading-out system comprises ammeter data collector and ammeter data concentrator, and the ammeter data collector is installed on user's the ammeter, and the ammeter data concentrator can be gathered the ammeter data in a plurality of Electric Power Data Collector.The ammeter data collector comprises power module, single-chip microcomputer and the first radio frequency transmission module, and the output terminal of power module connects the power input of single-chip microcomputer, the first radio frequency transmission module respectively, and being used for provides power supply to single-chip microcomputer, the first radio frequency transmission module respectively; Single-chip microcomputer connects the data line of electric supply meter, is used for the timing acquiring ammeter data, and in the mode of radio signal ammeter data is sent to the ammeter data concentrator by the first radio frequency transmission module.This single-chip microcomputer adopts low-power scm in one embodiment of the invention.
This ammeter data concentrator comprises power supply module, MCU, the second radio frequency transmission module, GPRS module, display driver circuit, display circuit, storer, USB interface and gauge tap, this gauge tap connects power supply module, be used for the keying of control power supply module, thereby timely powered-down has reduced energy dissipation under the situation that need not to use.The output terminal of this power supply module connects the power input of MCU, and being used for provides power supply to MCU; This MCU is for the ammeter data of the form that receives radio signals by the second radio frequency transmission module, and will send to remote platform (being the electricity meter-reading central machine room) by the GPRS module after this ammeter data processing, thereby realized the long distance wireless collection of ammeter data at lower cost.
This MCU also connects big capacity Flash storer, and connects display circuit by display driver circuit.MCU is stored to ammeter data in the storer after receiving ammeter data, even in order to also can not cause losing of ammeter data when network signal is bad.Display driver circuit drives display circuit and shows this ammeter data, and staff and with checking and record ammeter data on display circuit has per family increased the transparency of ammeter data collection.Also be provided with USB interface on this ammeter data concentrator, ammeter data information can be copied in the USB device such as USB flash disk by USB interface.
MCU adopts AT89C51SND1C-IL in one embodiment of the invention; Single-chip microcomputer adopts MSP430F149; The first radio frequency transmission module, the second radio frequency transmission module all adopts NRF905; The FLASH storer adopts the big capacity Flash storer K9F5608UOD of Samsung.
The control method of wireless power kilowatt meter reading-out system is made up of ammeter data concentrator statistics ammeter process and ammeter data gatherer process, as shown in Figure 4 and Figure 5,
Wherein, ammeter data concentrator statistics ammeter process may further comprise the steps:
All ammeter data collectors in S1, the ammeter data concentrator calling area ask all ammeter data collectors to send oneself Customs Assigned Number and user cipher to the ammeter data concentrator;
The call request that S2, ammeter data collector are received the ammeter data concentrator, change duty over to from dormant state, according to the back off algorithm of design, every certain interval of time just sends once Customs Assigned Number and the user cipher of oneself to the ammeter data concentrator in ensuing 3 minutes;
S3, ammeter data concentrator are waited for 3 minutes, and put the Customs Assigned Number that all are received in order, the number of users of record current region.Send pause instruction after finishing;
S4, ammeter data collector are received pause instruction, enter halted state, no longer send any information.
By ammeter data concentrator statistics ammeter process, the ammeter data concentrator is successfully collected Customs Assigned Number and the user cipher of the ammeter data collector in its perform region.
The ammeter data gatherer process may further comprise the steps:
S5, ammeter data concentrator, send query requests to first ammeter data collector, and timer are set with order from small to large according to the Customs Assigned Number that obtains by the ammeter statistic processes;
S6, ammeter data collector are received query requests, gather the electricity consumption data from ammeter, and send to the ammeter data concentrator together with oneself Customs Assigned Number and user cipher;
S7, ammeter data concentrator are received the packet of ammeter data collector in the timer official hour, Customs Assigned Number, user cipher and electricity consumption data are stored in the high-capacity FLASH storer together, and these information are presented in the display module.If timer expiry sends query requests to this ammeter data collector again.If continuous 10 times overtime, then ignore this ammeter data collector.
S8, ammeter data concentrator send query requests to next ammeter data collector, and timer are set according to subscriber-coded order from small to large;
S9, repeating step S5 arrive step S6, all gather up to the power information of all Customs Assigned Numbers that obtain by the ammeter statistic processes and finish;
S10, after the ammeter data concentrator arrives the zone that GPRS network covers, all user profile of storing are sent to remote platform by GPRS network, perhaps directly by USB interface ammeter data is copied in the USB device such as USB flash disk.
In the step S2 of described ammeter data concentrator statistics ammeter process and since a plurality of ammeter data collectors at one time the introversive ammeter data concentrator of section send data, might produce conflict and causing data to receive makeing mistakes.For avoiding this situation occurring, adopt a kind of avoidance mechanism.Each ammeter data collector is chosen an integer x at random from 1 to 10 after sending a secondary data, wait for x second then, sends data again.Repeat said process 3 minutes.
In described ammeter data concentrator statistics ammeter process and ammeter data gatherer process, send order by remote platform to the ammeter data concentrator, control this ammeter data concentrator and carry out ammeter data concentrator statistics ammeter process, ammeter data gatherer process.
Adopt four bytes that the ammeter data collector is carried out Customs Assigned Number, the Customs Assigned Number of ammeter data collector is unique, and scope is 1 ~ 2
32, complete 0 and complete 1 does not use.In addition, in described ammeter data gatherer process, might have illegal ammeter data collector and insert.This situation can by Customs Assigned Number and user cipher one to one mechanism got rid of.Comprised Customs Assigned Number and user cipher in giving the data of remote platform, the computing machine of remote platform is corresponding with Customs Assigned Number and user cipher in the database with it, if find not to be inconsistent, then these data are invalid data, rejects these data and report.Power supply operator can manually gather this electricity consumption data again.Because user cipher only has power supply operator to know that other people can not forge, so method is simply effective.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination that discloses in this manual, and the arbitrary new method that discloses or step or any new combination of process.