Invention content
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of wireless communication of intelligent electric energy meter and controls
Method, power consumption is big when the solution prior art wirelessly communicates, and information collision etc. easily occurs when multiple intelligent electric energy meters communicate simultaneously and asks
Topic.
The purpose of the present invention is achieved through the following technical solutions:The wireless communication and controlling party of intelligent electric energy meter
Method is used for the interactive communication between n intelligent electric energy meter and main website management system and control, and intelligent electric energy meter is under setting condition
By uplink time section information is sent to main website management system.
The setting condition includes that intelligent electric energy meter imposes a condition automatically, the uplink time section include intelligent electric energy meter from
Dynamic uplink time section.
In the case where intelligent electric energy meter imposes a condition automatically, in the automatic uplink time section of intelligent electric energy meter, intelligent electric energy meter master
Trend main website manages system and sends automatic upload information, and the automatic uplink time section of intelligent electric energy meter is divided into n timeslice
Tslot, one regular time piece T of every intelligent electric energy meter correspondenceslot, when fixed corresponding to it of every intelligent electric energy meter
Between piece Tslot, send automatic upload information to main website management system, wherein n is natural number.
The setting condition further includes that manual intervention imposes a condition, and the uplink time section further includes in the first manual intervention
The period is passed, under manual intervention setting condition, in the first manual intervention uplink time section, intelligent electric energy meter is in real time to main website
Management system sends manual intervention information.
The timeslice TslotExist including single automatic uplink period and reserved transmission period, intelligent electric energy meter
The single automatic uplink period actively sends automatic upload information, single automatic uplink time to main website management system
The length of section is Tt, each timeslice TslotLength be at least time TtM times, i.e. Tslot≥mTt, m >=1.
The single automatic uplink period is timeslice TslotIn m-th of time Tt。
The reserved transmission period is timeslice TslotIn the 1~m -1 time Tt 。
The setting condition further includes that manual intervention imposes a condition, and the reserved transmission period includes that manual intervention is kept out of the way
Period, in manual intervention back off time section and single automatic uplink period, intelligent electric energy meter cannot be to main website pipe
Reason system sends manual intervention information, and generated manual intervention information delay etc. is to be sent at this time.
The manual intervention back off time section is timeslice TslotIn m -1 time Tt。
The reserved transmission period further includes the second manual intervention uplink time section, under manual intervention setting condition,
In the second manual intervention uplink time section, intelligent electric energy meter sends manual intervention information to main website management system.
The second manual intervention uplink time section is timeslice TslotIn the 1~m -2 time Tt。
It includes that automatic upload, return of the intelligent electric energy meter in setting time are believed that the intelligent electric energy meter imposes a condition automatically
Automatic upload under breath treated response passback and intelligent electric energy meter abnormal conditions.
The single automatic uplink period includes intelligent electric energy meter active upload information time Ts1, intelligent electric energy meter
Dormancy time T after active upload informationx1, intelligent electric energy meter receive return information receiving time Tr, intelligent electric energy meter processing
The processing time T of return informationx2The time of return T of response message is sent with intelligent electric energy meters2 。
The beneficial effects of the invention are as follows:
1)When System production time is divided into the first manual intervention uplink time section by the present invention, intelligent electric energy meter uploads automatically
Between section implement manual intervention and keep out of the way upload and when the automatic upload procedure of intelligent electric energy meter encounters manual intervention.
2)In the first manual intervention uplink time section, for intelligent electric energy meter under the conditions of manual intervention, direct upload information is simultaneously
It is communicated, ensure that the real-time of communication, and the case where be not in intelligent electric energy meter active bubbling upload information, reduced
Collision problem even is avoided, ensure that the stabilization of communication and reliable;
3)Intelligent electric energy meter after the automatic uplink time section of intelligent electric energy meter, bubble sort in the timeslice of distribution from
Dynamic upload information, on the one hand reduces power consumption, on the other hand solves the collision problem that multiple intelligent electric energy meters are uploaded without sequence,
And system command can also be received after automatic upload, ensure that the real-time communicated between system;
4)Intelligent electric energy meter after the automatic uplink time section of intelligent electric energy meter, bubble sort is in the feelings for manual intervention occur
When condition, upload is kept out of the way by manual intervention, on the one hand ensure that on the other hand the promptness of manual intervention requirement communication is also kept away
Communication collision problem caused by artificial not timing intervention uploads is exempted from.
Specific implementation mode
Technical scheme of the present invention is described in further detail below in conjunction with the accompanying drawings, but protection scope of the present invention is not limited to
It is as described below.
As shown in Figure 1, a kind of intelligent electric energy meter wireless communication proposed by the present invention and control method, are suitable for n intelligence
Interactive communication between electric energy meter and main website management system and control, wherein n is natural number.
The wireless communication and control method include the following steps:
S1:Intelligent electric energy meter manages system upload information by uplink time section under setting condition to main website;
S2:Intelligent electric energy meter receives the return information that main website management system is sent out;
S3:Intelligent electric energy meter handles return information;
S4:Intelligent electric energy meter returns to response message to main website management system.
Setting condition described in step S1 includes that manual intervention setting condition and intelligent electric energy meter impose a condition automatically.
Wherein, manual intervention condition specifically may include:The artificial inquiry button pressed on intelligent electric energy meter or to intelligence
Electric energy meter such as is powered off, is powered at the operations.
Intelligent electric energy meter imposes a condition automatically specifically may include:Intelligent electric energy meter in setting time it is automatic upload,
Automatic upload under return information treated response passback and intelligent electric energy meter abnormal conditions.The intelligent electric energy meter exception feelings
Condition may include:Low voltage conditions, high voltage situation, power down situation and magnetic disturbance situation etc..
As shown in Fig. 2, Fig. 2 is the uplink time section sequence diagram of intelligent electric energy meter upload information of the present invention, intelligent electric energy meter
The uplink time section that system upload information is managed to main website includes that the first manual intervention uplink time section and intelligent electric energy meter are automatic
Uplink time section.
Under manual intervention setting condition, in the first manual intervention uplink time section, intelligent electric energy meter is in real time to main website
Management system sends manual intervention information.
In the case where intelligent electric energy meter imposes a condition automatically, in the automatic uplink time section of intelligent electric energy meter, intelligent electric energy meter master
Trend main website manages system and sends automatic upload information.
In step S1, when triggering manual intervention condition, that is, occur manually to press intelligent electric energy meter inquiry button or to intelligence
Can electric energy meter when the operations such as being powered on, powered off, intelligent electric energy meter is managed to main website at the uplink time section of system upload information
In the first manual intervention uplink time section, intelligent electric energy meter is not delayed waiting directly to main website management system transmission manual intervention letter
Breath.
In step S1, when triggering intelligent electric energy meter imposes a condition automatically, intelligent electric energy meter is uploaded to main website management system
The uplink time section of information is in the automatic uplink time section of intelligent electric energy meter.
As shown in figure 3, intelligent electric energy meter sends automatic upload information to main website management system, using bubble sort upload side
The automatic uplink time section of intelligent electric energy meter is divided into n timeslice T by formulaslot, n >=1, quantity n and the intelligence electric energy of timeslice
The quantity n of table is identical, and every intelligent electric energy meter corresponds to a regular time piece Tslot, i.e. in n intelligent electric energy meter, every intelligence
It can regular time piece T of the electric energy meter corresponding to itslot, automatic upload information is sent to main website management system.
The timeslice TslotExist including single automatic uplink period and reserved transmission period, intelligent electric energy meter
The single automatic uplink period actively sends automatic upload information, single automatic uplink time to main website management system
The length of section is Tt, each timeslice TslotLength be at least time TtM times, i.e. Tslot≥mTt, m >=1, each timeslice
TslotIt is T including m time spantPeriod.
Transmission period is reserved in setting, to ensure that intelligent electric energy meter uploads automatically in intelligent electric energy meter in practical applications
Information transfer process in period, when triggering manual intervention condition, to need the information uploaded reserved in the case of manual intervention
Enough information transmission spaces, and then mutual interference is avoided, and improve intelligent electric energy meter and moved back under the conditions of manual intervention
Keep away the real-time of the information exchange of upload.
Transmission period is reserved in setting, is reserved when being on the one hand to need upload information in the case of manual intervention, another party
Face is that other occur reserving such as the case where to prevent alternate covering, two kinds of situations that however, it is not limited to this.
The reserved transmission period includes manual intervention back off time section, manual intervention back off time section and single from
In the dynamic uplink period, intelligent electric energy meter cannot manage system to main website and send manual intervention information, generated at this time
Manual intervention information delay etc. is to be sent.
The reserved transmission period further includes the second manual intervention uplink time section, under manual intervention setting condition,
In the second manual intervention uplink time section, intelligent electric energy meter sends manual intervention information to main website management system.
The single automatic uplink period is timeslice TslotIn m-th of time Tt。
The reserved transmission period is timeslice TslotIn the 1~m -1 time Tt 。
The manual intervention back off time section is timeslice TslotIn m -1 time Tt。
The second manual intervention uplink time section is timeslice TslotIn the 1~m -2 time Tt。
As m=1, each timeslice T in the automatic uplink time section of intelligent electric energy meterslotOnly include that a single is automatic
The uplink period.
As m=2, each timeslice T in the automatic uplink time section of intelligent electric energy meterslotIncluding a single it is automatic on
Pass call duration time section and a manual intervention back off time section, wherein the 1st period Tt1For manual intervention back off time section,
2nd period Tt2For the single automatic uplink period.
As m=3, each timeslice T in the automatic uplink time section of intelligent electric energy meterslotIncluding a single it is automatic on
Pass call duration time section, a manual intervention back off time section and a second manual intervention uplink time section, wherein at the 1st
Between section Tt1For the second manual intervention uplink time section, the 2nd period Tt2For manual intervention back off time section, the 3rd period
Tt3For the single automatic uplink period.
Work as m>When 3, each timeslice T in the automatic uplink time section of intelligent electric energy meterslotIncluding a single it is automatic on
Pass call duration time section, a manual intervention back off time section and a second manual intervention uplink time section, wherein 1~m -2
A period Tt1~Ttm–2For the second manual intervention uplink time section, m -1 period Ttm–1For manual intervention back off time
Section, m-th of period Tt mFor the single automatic uplink period.
As shown in figure 4, the single automatic uplink period includes intelligent electric energy meter active upload information time Ts1, intelligence
Dormancy time T after electric energy meter active upload informationx1, intelligent electric energy meter receive return information receiving time Tr, intelligent electric energy
The processing time T of list processing return informationx2The time of return T of response message is sent with intelligent electric energy meters2。
In practical application, timeslice TslotIt should be greater than upload information time Ts1, dormancy time Tx1, receiving time Tr, processing
Time Tx2With time of return Ts2The sum of, i.e. Tslot≥mTt=m(Ts1+Tx1+Tr+Tx2+Ts2), timeslice TslotOccurrence need root
Different according to the setting of system redundancy, general m values are more than or equal to 3, timeslice TslotGenerally 3 times or more time Tt。
As one embodiment, in step S1, in the automatic uplink time section of intelligent electric energy meter, intelligent electric energy meter is to main website pipe
When the automatic upload information of reason system, the timeslice T where oneself can be used directlyslotIn the automatic uplink time T of m-th of singlet
Communication is interacted, timeslice TslotIn the 1st to the m-1 automatic uplink time T of singletAs reserved transmission space.
In the automatic uplink time section of intelligent electric energy meter, if triggering manual intervention condition, when needing to upload manual intervention information,
The time of system is managed according to main website to judge timeslice T that the intelligent electric energy meter is presently in firstslot, and in the time
Piece TslotIn which period TtIt is interior, if being in m-th of TtOr the m-1 period TtIt is interior, then intelligent electric energy meter institute
The manual intervention information to be uploaded delay waits until the occupied timeslice T of next intelligent electric energy meterslotInterior the 1st
A period Tt1, manual intervention upload information just starts to upload, otherwise directly starts to communicate, i.e., current time is in the 1st extremely
The m-2 TtIn period, manual intervention information directly starts to upload to main website management system.
Upload information includes described in step S1:Device id, ordered state, timeslice ID, the intelligence electricity of intelligent electric energy meter
It can list time automatic uplink time ID and intelligent electric energy meter state etc..
In the state that multiple intelligent electric energy meters are unsorted, ordered state 0, timeslice ID is 0, intelligent electric energy meter single
Automatic uplink time ID is 0.
Under multiple intelligent electric energy meter ordered states, ordered state is non-zero, and timeslice ID is distributed by system, intelligent electric energy meter
Single automatic uplink time ID is Tslot/TtQuotient.
Intelligent electric energy meter state includes:Electric energy meter remaining sum supplements number, period accumulative electricity consumption, valve state, battery electricity with money
Amount, whether super stream, whether in high pressure, whether by magnetic disturbance, whether time-out, valve exception information, force pass valve etc..
In step S2, intelligent electric energy meter is in the first manual intervention uplink time section, in the initial state, intelligent electric energy meter
In unsorted state, one section fixed dormancy time T of intelligent electric energy meter after the completion of upload informationx1, wherein dormancy time
Tx1Including intelligent electric energy meter to concentrator, concentrator to main website manages the communication time of system, but is not arrived including intelligent electric energy meter
The communication time of repeater, because under unsorted state, main website management system has no knowledge about whether intelligent electric energy meter is connected with
Repeater;If being in ordered state, each intelligent electric energy meter according to oneself sequencing information to determine whether there is repeater information,
And further determine that its sleep time, if non-relay device information, which is Tx1If there is repeater information, should stop
A length of T when dormancyx1+TREG, wherein TREGFor the communication time of intelligent electric energy meter to repeater, when one section of the intelligent electric energy meter suspend mode
Between after enter reception state.
In step S2, if intelligent electric energy meter receives the receiving time T of return information in intelligent electric energy meterrIt is interior, intelligent electric energy
Table receives the return information that main website management system is sent out, then continues in step S3 and step S4 after execution, the intelligent electric energy meter one
Directly in a dormant state.
In step S3, intelligent electric energy meter handles it and receives return information, at the wireless communication module of the intelligent electric energy meter
In dormant state, dormancy time is handled the processing time T of return information by intelligent electric energy meterx2It determines, intelligent electric energy meter processing
After complete return information, terminate dormant state, executes step S4.
The return information that intelligent electric energy meter receives in step S3 includes:It opens an account information, charging information, Query Information, tune
Valence information, synchronised clock information, valve opening information, pass valve information etc..
In step S4, intelligent electric energy meter returns to response message to main website management system, which sends response letter
The time of return T of breaths2It is automatically determined according to the length of return information by intelligent electric energy meter, intelligent electric energy meter is sending response letter
Automatically into suspend mode after breath.
The response message that intelligent electric energy meter returns in step S4 includes device id, ordered state, timeslice ID, intelligent electric energy
The information such as list time automatic uplink time ID, intelligent electric energy meter state, instruction execution state.