CN110895873B - Carrier meter reading method, central coordinator and system - Google Patents

Carrier meter reading method, central coordinator and system Download PDF

Info

Publication number
CN110895873B
CN110895873B CN201911166312.9A CN201911166312A CN110895873B CN 110895873 B CN110895873 B CN 110895873B CN 201911166312 A CN201911166312 A CN 201911166312A CN 110895873 B CN110895873 B CN 110895873B
Authority
CN
China
Prior art keywords
meter reading
sending
reading instruction
instructions
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911166312.9A
Other languages
Chinese (zh)
Other versions
CN110895873A (en
Inventor
阮惠祥
王刚
刘平
周海波
陈秋共
刘光跃
张建超
王智
黄招煌
邹啸天
李材辉
张达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Haixing Zeke Information Technology Co ltd
Hangzhou Renhe Information Technology Co ltd
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Original Assignee
Hangzhou Haixing Zeke Information Technology Co ltd
Hangzhou Renhe Information Technology Co ltd
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Haixing Zeke Information Technology Co ltd, Hangzhou Renhe Information Technology Co ltd, Nanjing Haixing Power Grid Technology Co Ltd, Hangzhou Hexing Electrical Co Ltd, Ningbo Henglida Technology Co Ltd filed Critical Hangzhou Haixing Zeke Information Technology Co ltd
Priority to CN201911166312.9A priority Critical patent/CN110895873B/en
Publication of CN110895873A publication Critical patent/CN110895873A/en
Application granted granted Critical
Publication of CN110895873B publication Critical patent/CN110895873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a carrier wave meter reading method, which comprises the following steps: periodically acquiring a meter reading instruction to be sent; acquiring the number of current broadcast sending instructions, and judging a sending mode of a meter reading instruction to be sent according to a preset sending rule based on the number of the current broadcast sending instructions, wherein the sending mode comprises unicast sending and broadcast sending; and sending the meter reading instruction to be sent according to the judged sending mode, receiving meter reading data corresponding to the meter reading instruction to be sent, and reporting the meter reading data. The invention can switch the sending mode of the meter reading instruction to be sent from unicast sending to broadcast sending according to the preset sending rule, thereby improving the meter reading accuracy.

Description

Carrier meter reading method, central coordinator and system
Technical Field
The invention relates to the field of electric power, in particular to a carrier wave meter reading method, a central coordinator and a system.
Background
In the meter reading mode disclosed nowadays, a retransmission mechanism of a meter reading instruction is often realized by adopting a unicast transmission mode, particularly in an overseas carrier meter reading mode, a link layer retransmission mechanism is adopted, and since the retransmission mechanism is controlled by a link layer, a retransmission frame is always transmitted by adopting the unicast mode.
The meter reading method only uses a unicast mode to perform re-reading, and the meter reading accuracy is low, so further improvement is needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a carrier wave meter reading method, a central coordinator and a system, which can send a meter reading instruction to be sent by a broadcast sending mode so as to improve the meter reading accuracy.
In order to solve the technical problem, the invention is solved by the following technical scheme:
a carrier wave meter reading method comprises the following steps:
periodically acquiring a meter reading instruction to be sent;
acquiring the number of current broadcast sending instructions, and judging a sending mode of a meter reading instruction to be sent according to a preset sending rule based on the number of the current broadcast sending instructions, wherein the sending mode comprises unicast sending and broadcast sending;
and sending the meter reading instruction to be sent according to the judged sending mode, receiving meter reading data corresponding to the meter reading instruction to be sent, and reporting the meter reading data.
As an implementable manner, the specific steps of periodically acquiring the meter reading instruction to be sent include:
acquiring a meter reading instruction, storing the meter reading instruction into a downlink cache, and positioning a sending zone bit of the meter reading instruction;
periodically judging whether a meter reading instruction needing to be retransmitted exists in a downlink cache, and setting a sending flag bit of the meter reading instruction needing to be retransmitted;
and periodically traversing all meter reading instructions in the downlink cache, extracting the meter reading instruction with the sending zone bit set as a meter reading instruction to be sent, and clearing the sending zone bit of the meter reading instruction to be sent at the moment.
As an implementation manner, the specific steps of periodically judging whether a meter reading instruction needing to be retransmitted exists in the downlink buffer and setting a sending flag bit of the meter reading instruction needing to be retransmitted include:
periodically traversing all meter reading instructions in the downlink cache, acquiring the sending mode and sending time of each meter reading instruction, and calculating the time interval between the current time and the sending time;
when the sending mode is unicast sending and the time interval is greater than or equal to a preset static interval threshold, setting a sending zone bit corresponding to a meter reading instruction;
when the sending mode is broadcast sending and the time interval is greater than or equal to a dynamic interval threshold, setting a sending zone bit of the meter reading instruction;
the dynamic interval threshold is calculated in the following manner:
TT=a*Nrt*Vplc/L;
wherein TT represents a dynamic interval threshold, Nrt is a network maximum routing level, Vplc is a carrier transmission rate, L is a current packet length, a is a constant, and x represents a multiplication operation.
As an implementable manner, periodically traversing all meter reading instructions in the downlink cache, acquiring the sending mode and sending time of each meter reading instruction, calculating the time interval between the current time and the sending time, and simultaneously performing an overrun clearing step, wherein the specific steps are as follows;
when traversing all meter reading instructions in the downlink cache, acquiring the sending times and/or the first sending time of each meter reading instruction, and when acquiring the first sending time, calculating the time interval between the current time and the meter reading instruction and the first sending time to acquire the sending duration;
when the sending times of the meter reading instruction are larger than a preset sending time threshold value, judging that the sending times of the meter reading instruction exceed the limit;
when the sending duration is greater than a preset sending time threshold, judging that the sending of the meter reading instruction is overtime;
and when the transmission time of the meter reading instruction is overtime or the transmission times are over, deleting the meter reading instruction from the downlink cache.
As an implementation manner, the specific steps of obtaining the number of current broadcast transmission instructions and determining the transmission mode of the meter reading instruction to be transmitted according to the preset transmission rule based on the number of current broadcast transmission instructions include:
acquiring the number of current broadcast sending instructions;
when the number of the current broadcast sending instructions is smaller than a preset number threshold, judging that the sending mode of the meter reading instructions to be sent is unicast sending or broadcast sending according to a preset sending rule;
and when the number of the current broadcast sending instructions is larger than or equal to a preset number threshold value, judging that the sending mode of the meter reading instructions to be sent is unicast sending.
As an implementable manner, the specific steps of receiving and reporting meter reading data corresponding to the meter reading instruction to be sent are as follows:
and acquiring meter reading data, deleting a meter reading instruction corresponding to the meter reading data from a downlink cache, and reporting the meter reading data.
As an implementable embodiment:
the meter reading instruction comprises an extended field identification bit, a meter address and a meter reading command.
Due to the adoption of the technical scheme, the invention has the remarkable technical effects that:
1. according to the invention, the sending mode of the meter reading instruction to be sent can be switched between broadcast sending and unicast sending according to the preset sending rule based on the number of the current broadcast sending instructions, and compared with the technical scheme that the meter reading instruction is always sent in a unicast way in the re-reading process in the prior art, the meter reading accuracy can be improved; and the invention determines the sending mode based on the number of the current broadcast sending instructions, can avoid network busy caused by excessive meter reading instructions to be sent in broadcast sending, and has high stability.
2. The invention realizes the transmission management of the meter reading instruction in the downlink cache through the design of the transmission zone bit of the meter reading instruction cached in the downlink cache.
3. The invention designs the static interval threshold and the dynamic interval threshold, fully and old considers the respective characteristics of the unicast transmission mode and the broadcast transmission mode, so that the retransmission interval is more reasonable, and the current broadcast transmission instruction quantity can be accurately monitored.
4. According to the invention, through the limitation on the sending duration/sending times, the meter reading instruction of meter reading data which is not obtained yet after the limit is exceeded can be eliminated, and the meter reading efficiency is improved.
5. The invention can adopt a switching transmission mode according to the preset transmission rule, and limit the number of meter reading instructions transmitted by broadcasting through the design of the number of current broadcast transmission instructions and the preset number threshold value, thereby avoiding the reduction of meter reading accuracy rate caused by network storm;
6. the design of the meter reading instruction of the invention enables the invention to be suitable for the application scene of overseas meter reading and has wide application range.
In order to solve the above technical problem, the present invention further provides a central coordinator, including:
the sending instruction acquisition module is used for periodically acquiring a meter reading instruction to be sent;
the transmission mode management module is used for acquiring the number of current broadcast transmission instructions and judging the transmission mode of a meter reading instruction to be transmitted according to a preset transmission rule based on the number of the broadcast transmission instructions, wherein the transmission mode comprises unicast transmission and broadcast transmission;
and the receiving and sending module is used for sending the meter reading instruction to be sent according to the sending mode obtained by judgment, receiving meter reading data corresponding to the meter reading instruction to be sent and reporting the meter reading data.
As an implementable embodiment, the transmission mode management module is configured to:
acquiring the number of current broadcast sending instructions;
when the number of the current broadcast sending instructions is smaller than a preset number threshold, judging that the sending mode of the meter reading instructions to be sent is unicast sending or broadcast sending according to a preset sending rule;
and when the number of the current broadcast sending instructions is larger than or equal to a preset number threshold value, judging that the sending mode of the meter reading instructions to be sent is unicast sending.
The reasoning process of the technical effect of the central coordinator is consistent with the carrier meter reading method, and therefore, the description is omitted.
In order to solve the technical problem, the invention further provides a carrier meter reading system which comprises a concentrator and a plurality of stations, wherein any one central coordinator is arranged in the concentrator.
The reasoning process of the technical effect of the carrier meter reading system is consistent with the carrier meter reading method, and therefore, the description is omitted.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a carrier meter reading method according to the present invention;
fig. 2 is a schematic view of a work flow of a carrier meter reading method in embodiment 1;
FIG. 3 is a schematic flowchart of the predetermining step in example 1;
FIG. 4 is a schematic view of the operation of step S200 and step S300 in example 1;
fig. 5 is a schematic block diagram of a central coordinator according to embodiment 4.
Detailed Description
The present invention will be described in further detail with reference to examples, which are illustrative of the present invention and are not to be construed as being limited thereto.
Embodiment 1, a carrier wave meter reading method, as shown in fig. 1, includes the following steps:
s100, periodically acquiring a meter reading instruction to be sent;
s200, acquiring the number of current broadcast sending instructions, and judging a sending mode of a meter reading instruction to be sent according to a preset sending rule based on the number of the current broadcast sending instructions, wherein the sending mode comprises unicast sending and broadcast sending;
s300, sending the meter reading instruction to be sent according to the sending mode obtained by judgment, receiving meter reading data corresponding to the meter reading instruction to be sent, and reporting the meter reading data.
As can be seen from fig. 2, after the meter reading instruction to be sent is obtained each time, the sending mode of the meter reading instruction to be sent is determined, and the meter reading instruction to be sent is sent according to the determination result, so that the meter reading instruction to be sent can be sent in a broadcast sending mode under the condition that the network is prevented from being busy, and the meter reading accuracy is improved.
Compared with the mode of single-broadcast transmission, the mode of broadcast transmission meter reading can increase the probability of meter reading, but because all nodes relay the instruction, the network burden can be increased to a certain extent, and the problem of network storm is easy to occur, namely if data is broadcast in a parallel mode, the whole network is too busy, and the success rate of meter reading is reduced, so the embodiment realizes the comprehensive consideration of the success rate of meter reading and the network burden through the number of the current broadcast transmission instructions and the transmission rules, and can effectively improve the success rate of meter reading under the condition of avoiding the network storm.
The preset sending rule in this embodiment is: the first two transmissions adopt unicast transmission, and subsequent unicast and broadcast are alternately transmitted until corresponding meter reading data is received or a transmission frequency threshold value is reached, and technical personnel in related fields can set transmission rules according to actual needs.
Step S100, the specific steps of periodically obtaining a meter reading instruction to be sent are:
A. acquiring a meter reading instruction, storing the meter reading instruction into a downlink cache, and positioning a sending zone bit of the meter reading instruction;
B. periodically judging whether a meter reading instruction needing to be retransmitted exists in a downlink cache, and setting a sending flag bit of the meter reading instruction needing to be retransmitted;
C. and periodically traversing all meter reading instructions in the downlink cache, extracting the meter reading instruction with the sending zone bit set as a meter reading instruction to be sent, and clearing the sending zone bit of the meter reading instruction to be sent at the moment.
In the carrier wave meter reading method provided in this embodiment, the obtained meter reading instruction is cached in a downlink cache, and management of each meter reading instruction in the downlink cache is realized through design of a sending flag bit, that is, the meter reading instruction that the sending flag bit is set needs to be sent, the meter reading instruction that the sending flag bit is removed is sent but corresponding meter reading data is not received, and the meter reading instruction that the meter reading data corresponds to is received is removed from the downlink cache; therefore, in the embodiment, retransmission management of each meter reading instruction in the downlink cache is realized by setting and clearing the sending flag bit.
In this embodiment, step a further includes a step of prejudging the meter reading instruction before obtaining the meter reading instruction, as shown in fig. 3, the specific steps are as follows:
obtaining reading states (not reading, reading and reading) of the corresponding table according to the meter reading instructions, and obtaining the quantity S of the meter reading instructions cached in the current downlink cacheCN(i.e., the number of cache instructions) and comparing the number of cache instructions to a preset threshold S for the number of cache instructionsCTComparing; when the reading state is not reading, and the number S of the cache instructionsCN< threshold value of buffer amount SCTIf so, judging to execute the meter reading instruction, otherwise, judging not to execute the meter reading instruction;
and when the meter reading instruction is judged not to be executed, returning a denial frame to the concentrator, adjusting the meter reading strategy by the concentrator according to a specific reason in the denial frame at the moment, if the specific reason is that the cache is full, suspending the step of sending the meter reading instruction by the concentrator at the moment, and after the returned meter reading data is received, if the specific reason is that the corresponding meter is over-read or is reading, cancelling the sending of the meter reading instruction by the concentrator at the moment and sending the next meter reading instruction.
And B, when the meter reading instruction is judged to be executed, executing the step A.
Therefore, according to the embodiment, whether the corresponding meter reading instruction needs to be executed or not is judged according to the reading state of the meter, repeated reading can be avoided, and the meter reading efficiency is improved; the embodiment monitors the quantity of the cache instructions in real time, so that the concentrator suspends sending of the meter reading instructions under the condition that the downlink cache is full, the loss of the newly received meter reading instructions caused by the full downlink cache is effectively avoided, and the meter reading success rate is ensured.
The step B of periodically determining whether a meter reading instruction to be retransmitted exists in the downlink buffer, and setting a sending flag bit of the meter reading instruction to be retransmitted specifically comprises the following steps:
b110, periodically traversing all meter reading instructions in the downlink cache, acquiring the sending mode and the sending time of each meter reading instruction, and calculating the time interval between the current time and the sending time;
in this embodiment, when a meter reading instruction is stored in the downlink cache, the maintenance timer is started, the trigger interval of the maintenance timer in this embodiment is 1s, and a technician in the related field can set the trigger interval according to actual needs.
When the maintenance timer is triggered, traversing all meter reading instructions in the downlink cache once to obtain the sending mode and sending time of each meter reading instruction, wherein the sending mode and the sending time are the sending mode and the sending time adopted when the meter reading instruction is sent last time.
And calculating the time interval between the current time and the sending time of each meter reading instruction.
B120, when the sending mode is unicast sending and the time interval is greater than or equal to a preset static interval threshold value, setting a sending zone bit corresponding to a meter reading instruction;
a person skilled in the relevant art can set the static interval threshold by himself or herself according to the actual situation, and the static interval threshold is 3s in this embodiment.
That is, when a last transmission mode of a certain meter reading instruction is unicast transmission, comparing a time interval of the meter reading instruction with a preset static interval threshold, and setting a transmission flag bit of the meter reading instruction when the time interval is greater than or equal to 3s, so as to identify that the meter reading instruction needs to be retransmitted.
B130, when the sending mode is broadcast sending and the time interval is greater than or equal to a dynamic interval threshold, setting a sending zone bit of the meter reading instruction;
the dynamic interval threshold is calculated in the following manner:
TT=a*Nrt*Vplc/L;
wherein, TTRepresenting a dynamic interval threshold, NrtFor the maximum routing level of the network, VplcAnd the carrier transmission rate is L, the length of the current message is L, and a is a constant and represents multiplication.
A person skilled in the relevant art can set the value of a according to the actual situation, where a is 1.2 in this embodiment.
That is, when the latest transmission mode of a certain meter reading instruction is broadcast transmission, the time interval of the meter reading instruction is compared with the calculated dynamic interval threshold, and when the time interval is greater than or equal to the dynamic interval threshold, the transmission flag bit of the meter reading instruction is set to identify that the meter reading instruction needs to be retransmitted (according to the transmission rule set in this embodiment, unicast transmission is adopted for the next retransmission).
And C, periodically traversing all meter reading instructions in the downlink cache, extracting the meter reading instruction with the sending zone bit set as the meter reading instruction to be sent, and clearing the sending zone bit of the meter reading instruction to be sent at the moment.
In this embodiment, when a meter reading instruction is stored in the downlink cache, the sending timer is started, the trigger interval of the sending timer in this embodiment is 1s, and a person skilled in the relevant art can set the trigger interval according to actual needs.
And when the sending timer is triggered, traversing all meter reading instructions in the downlink cache once, extracting the meter reading instruction with a sending zone bit set as a meter reading instruction to be sent, and clearing the sending zone bit of the meter reading instruction to be sent after the meter reading instruction to be sent is obtained, wherein the meter reading instruction to be sent comprises the meter reading instruction newly obtained in the step A and the meter reading instruction to be retransmitted in the step B.
The specific steps of the step S200 of obtaining the number of current broadcast transmission instructions and determining the transmission mode of the meter reading instruction to be transmitted according to the preset transmission rule based on the number of current broadcast transmission instructions are as follows:
acquiring the number of current broadcast sending instructions;
when the number of the current broadcast sending instructions is smaller than a preset number threshold, judging that the sending mode of the meter reading instructions to be sent is unicast sending or broadcast sending according to a preset sending rule;
and when the number of the current broadcast sending instructions is larger than or equal to a preset number threshold value, judging that the sending mode of the meter reading instructions to be sent is unicast sending.
Therefore, when the number of the current broadcast sending instructions is greater than or equal to the preset number threshold, the sending mode of the meter reading instructions to be sent is unicast sending, so that a network storm caused by too busy carrier network is avoided.
In this embodiment, the number N of current broadcast transmission instructions is obtainedbrocstThe specific mode is as follows:
when the sending mode of a certain meter reading instruction is switched to broadcast sending, NbrocstAdding 1, and when the meter reading instruction is switched back to unicast transmission again, NbrocstMinus 1. Those skilled in the relevant art can set the number threshold by themselves according to actual needs, and in this embodiment, the number threshold is set to be 16.
As can be seen from step B130, in this embodiment, the dynamic interval threshold corresponding to the meter reading instruction is calculated by combining the maximum routing level, the carrier transmission rate, and the message length of the meter reading instruction, so that when the meter reading instruction to be sent in broadcast transmission is determined to need to be retransmitted again (the time interval reaches the dynamic interval threshold), the last retransmitted broadcast packet reaches the end node, and can be subtracted from the carrier network, thereby strictly controlling the number of meter reading broadcast frames in the network, that is, the number of currently broadcast transmission instructions, and effectively avoiding a network storm caused by a busy network.
In the embodiment, a sending rule that unicast sending is adopted in the first two times of sending and subsequent unicast and broadcast are alternately sent is designed, the unicast sending is adopted in the first 3 times to avoid network busy, and when the 3 times of unicast cannot be copied to the meter, the 4 th time of meter reading is carried out by using broadcast, so that the success rate of meter reading is improved; subsequent unicast and broadcast are alternately sent, so that the condition that when a plurality of meter reading instructions need to be retransmitted, some meter reading instructions are always sent in a broadcast mode, and other meter reading instructions are always sent in a unicast mode because the number of the current broadcast sending instructions reaches a preset number threshold is effectively avoided.
In step S300, receiving meter reading data corresponding to the meter reading instruction to be sent, and reporting the meter reading data specifically includes:
and acquiring meter reading data, deleting a meter reading instruction corresponding to the meter reading data from a downlink cache, and reporting the meter reading data.
In this embodiment, the meter reading data and the meter reading instruction both include a meter number, and when the meter reading data is acquired, the meter reading data can be matched with each meter reading instruction in the downlink cache according to the meter number in the meter reading data, and the meter reading data is reported after the matched meter reading instruction is deleted from the downlink cache.
In this embodiment, after the meter reading instruction is deleted from the downlink cache, it is further determined whether the meter reading instruction exists in the downlink cache, and when the meter reading instruction does not exist, the sending timer and the maintenance timer are closed.
In this embodiment, when the corresponding meter reading instruction cannot be extracted from the downlink cache according to the meter reading data, the meter reading data is discarded.
With reference to fig. 4, the details of the managed content in the downstream cache by a meter reading instruction are described:
receiving a meter reading instruction, judging that the meter reading instruction can be executed, storing a sending mark position of the meter reading instruction into a downlink cache at the moment, starting a sending timer and a maintenance timer when the downlink cache has one meter reading instruction;
triggering a sending timer, wherein the meter reading instruction sends a flag bit, so that the flag bit is extracted as a meter reading instruction to be sent, and the meter reading instruction sending flag bit is eliminated; at the moment, the number of the current broadcast sending instructions is 0, and unicast sending is judged to be carried out at this time according to a sending rule;
maintaining timer triggering, judging whether the meter reading instruction needs to be retransmitted, and when the meter reading instruction needs to be retransmitted, transmitting a flag bit of the meter reading instruction so that the meter reading instruction is transmitted as a meter reading instruction to be transmitted when the transmission timer is triggered;
when meter reading data of the meter reading instruction is received, reporting the meter reading data and deleting the meter reading instruction from the downlink cache, wherein the number of the meter reading instructions in the downlink cache after deletion is 0, and closing a sending timer and a maintenance timer.
Embodiment 2, the overrun purge step is added on the basis of the step B in embodiment 1, and the rest is the same as in embodiment 1, and the step B after the overrun purge is added specifically includes the following steps:
b210, periodically traversing all meter reading instructions in the downlink cache; acquiring a sending mode and sending time of each meter reading instruction, and calculating a time interval between the current time and the sending time; the sending times and the first sending time of each meter reading instruction are also obtained, the time interval between the current time and the first sending time is calculated, and the sending duration is obtained;
b220, when the sending times of the meter reading instruction are larger than a preset sending time threshold value, judging that the sending times of the meter reading instruction exceed the limit;
a person skilled in the relevant art can set the sending time threshold value by himself or herself according to actual needs, and the value of the sending time threshold value is 10 times in this embodiment;
b230, when the sending duration is greater than a preset sending time threshold, judging that the sending of the meter reading instruction is overtime;
a person skilled in the relevant art can set the sending time threshold value by himself or herself according to actual needs, and the value of the sending time threshold value is 28s in this embodiment;
and B240, when the transmission time of the meter reading instruction is over or the transmission times are over, deleting the meter reading instruction from the downlink cache, otherwise, judging whether the meter reading instruction needs to be retransmitted according to the step B120 and the step 130 in the embodiment 1.
Namely, when the sending time of a certain meter reading instruction is judged to be overtime according to the step B220 or the sending times of the certain meter reading instruction is judged to be over-limit according to the step B230, the meter reading instruction is deleted from the downlink cache, and the meter reading efficiency is improved.
Embodiment 3 defines the meter reading instruction in embodiment 2, and the rest is the same as embodiment 2, where the meter reading instruction in this embodiment includes an extended field identification bit, a meter address, and a meter reading command, and specific fields are shown in the following table:
TABLE 1
Figure BDA0002287545750000091
In table 1:
the extended protocol is a supplementary protocol added for overcoming the defects existing in the current overseas meter reading status, and the APDU is a DLMS data field and is used as a meter reading command initiated by meter reading in the overseas nowadays.
A Header: an extension field identification bit, fixed to 0xE6 in this embodiment;
NetworkID: a reserved field is used for subsequent multi-network coexistence meter reading and is fixed to be 0 at present;
address length L: the number of bytes of the table address;
physical device address: a table address.
The DLMS protocol is generally adopted for overseas centralized reading, but the DLMS protocol has no meter address, so that the attribute of the meter reading command cannot be judged after the station STA receives the meter reading command, the overseas centralized reading can only adopt a unicast mode to send the meter reading command, and the success rate of the meter reading is relatively low.
The current overseas meter reading mode is mainly that a concentrator selects one meter in a distribution area according to a configured task, then sends a corresponding meter reading command, and when the meter reading command is successfully sent, the concentrator waits for the return of meter reading data until the meter reading is overtime. Therefore, when a multi-level route exists in the network, the time for transmitting the meter reading command to the target node is long, and the concentrator is always in a waiting state in the period of time, so that the resource of the concentrator is seriously wasted.
In the embodiment, through the design of the extended protocol, the meter reading instruction comprises the extended field identification bit, the meter address and the meter reading command, so that the station STA can judge whether to respond to the received meter reading instruction through the meter address, namely, the meter reading instruction can be sent in a broadcast mode to read the meter, the success rate of the meter reading can be improved, the meter reading method is improved, the next meter reading instruction can be initiated without waiting for the return of meter reading data or overtime of the meter reading, and compared with the existing overseas meter reading mode, the meter reading efficiency is improved.
After the meter reading instruction to be sent is sent according to the sending mode obtained by judgment, the method further comprises a meter reading response step of the station STA, and specifically comprises the following steps:
100. the station receives the meter reading instruction and judges whether the meter reading instruction contains a meter address;
the specific steps of judging whether the meter reading instruction contains a meter address are as follows:
extracting an extended field identification bit of a meter reading instruction, matching the extended field identification bit with a preset verification identification bit, judging that the meter reading instruction contains a meter address when the matching is successful, and judging that the meter reading instruction does not contain the meter address when the extended field identification bit is lacked or the matching is unsuccessful.
As can be seen from the above description, the extension field identification bit is fixed to 0xE6, that is, in this embodiment, the extension field identification bit is extracted from the received meter reading instruction, and the extension field identification bit is 0xE6, so that it can be determined that the meter reading instruction is sent by the central coordinator CCO provided in any one of embodiments 3 and 4, where the meter reading instruction includes the extension field identification bit, the meter address, and the meter reading command.
As can be seen from the above, whether the meter reading instruction contains the meter address can be determined through the extended field identification bit.
210. When the meter reading instruction comprises a meter address, matching the meter address with a prestored meter address, and reading the meter and reporting meter reading data when the matching is successful;
when the meter reading instruction is judged to contain a meter address, the meter reading instruction is known to comprise an extension field identification bit, the meter address and a meter reading command, the meter address is extracted at the moment, the meter address is matched with a prestored meter address, and when the matching is successful, the corresponding node which is the target of the meter reading instruction can be determined, namely, the corresponding meter reading instruction is needed, the meter reading command is sent to a corresponding electric meter for meter reading at the moment, and meter reading data is reported (to a central coordinator CCO); and when the matching is unsuccessful, discarding the meter reading instruction.
As can be seen from the above, it is possible to receive a meter reading command transmitted by broadcasting and determine whether the meter reading command needs to be executed.
220. And when the meter reading instruction does not contain the meter address, directly reading the meter and reporting the meter reading data.
When the meter reading instruction is judged not to contain the meter address, the meter reading instruction is known to be the meter reading instruction, at the moment, the meter reading instruction is directly sent to the corresponding electric meter to carry out meter reading, and meter reading data is reported (to the central coordinator CCO).
In summary, in this embodiment, by determining whether the meter reading instruction includes a meter address, when the carrier wave meter reading method provided in this embodiment is used overseas, the station can not only respond to the meter reading instruction to be sent in step S300, but also can send a meter reading instruction lacking a meter address, which is sent by the CCO of the overseas central coordinator at present, and thus compatibility is high.
Experiment:
in the environment of a laboratory 400 tables, collective reading tests for more than 1 month are carried out according to the meter reading method described in the embodiment 3, and configuration tasks comprise 15-minute curves, 1-hour curves, daily freezing and monthly freezing, wherein 9 curve data items, 17 daily freezing data items and 31 monthly freezing data items are provided.
The data obtained by the experiment can be analyzed to obtain: the reading success rate of curve data is 99.15%, and the reading success rate of frozen data is 99.97%; the average reading time of one round of curve is 8 minutes, the average reading time of one round of daily freezing is 10 minutes, and the average reading time of one round of monthly freezing is 13 minutes.
Comparative experiment: changing the meter reading mode in the experiment from the meter reading method provided by the embodiment 3 into the overseas carrier meter reading method disclosed by the prior art, namely, selecting one meter in a platform area by a concentrator, then sending a corresponding meter reading command until meter reading data is received or the meter reading is overtime, reading the next meter, and the rest of the meters are equal to the experiment;
the data obtained from the comparative experiments were analyzed to obtain: the reading success rate of curve data is 96.15%, the reading success rate of frozen data is 97.97%, the average reading time of a curve round is 13 minutes, the average reading time of a freezing round per day is 16 minutes, and the average reading time of a freezing round per month is 20 minutes.
In conclusion, the meter reading method provided by the embodiment can maximally utilize the resources of the concentrator, and the centralized meter reading efficiency is improved. The station STA is prompted to autonomously judge the attribute of the received meter reading instruction by expanding a DLMS protocol so as to realize the broadcast transmission of the meter reading instruction, and the retransmission mechanism of the meter reading instruction is carried out on an application layer by managing the meter reading instruction in a downlink cache and controlling the transmission mode of the meter reading instruction to be transmitted, so that the transmission mode can be switched between unicast transmission and broadcast transmission, and the accuracy of centralized meter reading is further improved.
Embodiment 4 is a central coordinator, configured to implement the carrier meter reading method provided in any one of embodiments 1 to 3, and include a sending instruction obtaining module 11, a sending mode management module 12, and a transceiver module 13.
The sending instruction obtaining module 11 is configured to periodically obtain a meter reading instruction to be sent;
the sending mode management module 12 is configured to obtain the number of current broadcast sending instructions, and determine, according to a preset sending rule, a sending mode of a meter reading instruction to be sent based on the number of broadcast sending instructions, where the sending mode includes unicast sending and broadcast sending;
in this embodiment, the transmission mode management module is configured to:
acquiring the number of current broadcast sending instructions;
when the number of the current broadcast sending instructions is smaller than a preset number threshold, judging that the sending mode of the meter reading instructions to be sent is unicast sending or broadcast sending according to a preset sending rule;
and when the number of the current broadcast sending instructions is larger than or equal to a preset number threshold value, judging that the sending mode of the meter reading instructions to be sent is unicast sending.
The receiving and sending module 13 is configured to send the meter reading instruction to be sent according to the sending mode obtained by the judgment, receive meter reading data corresponding to the meter reading instruction to be sent, and report the meter reading data.
This embodiment is an embodiment of an apparatus corresponding to the method embodiment, and since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment (embodiments 1 to 3).
Embodiment 5, a carrier meter reading system, including a concentrator and a plurality of sites, the central coordinator described in embodiment 4 is provided in the concentrator.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that:
reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrase "one embodiment" or "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
In addition, it should be noted that the specific embodiments described in the present specification may differ in the shape of the components, the names of the components, and the like. All equivalent or simple changes of the structure, the characteristics and the principle of the invention which are described in the patent conception of the invention are included in the protection scope of the patent of the invention. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.

Claims (9)

1. A carrier wave meter reading method is characterized by comprising the following steps:
periodically acquiring a meter reading instruction to be sent;
acquiring the number of current broadcast sending instructions, and judging a sending mode of a meter reading instruction to be sent according to a preset sending rule based on the number of the current broadcast sending instructions, wherein the sending mode comprises unicast sending and broadcast sending;
sending the meter reading instruction to be sent according to the sending mode obtained by judgment, receiving meter reading data corresponding to the meter reading instruction to be sent, and reporting the meter reading data;
the meter reading instruction to be sent is a meter reading instruction of which the sending mode is unicast sending and the time interval is greater than or equal to a preset static interval threshold value, or a meter reading instruction of which the sending mode is broadcast sending and the time interval is greater than or equal to a dynamic interval threshold value, wherein the time interval is the interval between the current time and the sending time of the corresponding meter reading instruction;
the dynamic interval threshold is calculated in the following manner:
TT=a*Nrt*Vplc/L;
wherein, TTRepresenting a dynamic interval threshold, NrtFor the maximum routing level of the network, VplcAnd the carrier transmission rate is L, the length of the current message is L, and a is a constant and represents multiplication.
2. The carrier wave meter reading method according to claim 1, wherein the specific steps of periodically acquiring the meter reading instruction to be sent are as follows:
acquiring a meter reading instruction, storing the meter reading instruction into a downlink cache, and positioning a sending zone bit of the meter reading instruction;
periodically traversing all meter reading instructions in the downlink cache, acquiring the sending mode and sending time of each meter reading instruction, and calculating the time interval between the current time and the sending time;
when the sending mode is unicast sending and the time interval is greater than or equal to a preset static interval threshold, setting a sending zone bit corresponding to a meter reading instruction;
when the sending mode is broadcast sending and the time interval is greater than or equal to a dynamic interval threshold, setting a sending zone bit of the meter reading instruction;
and periodically traversing all meter reading instructions in the downlink cache, extracting the meter reading instruction with the sending zone bit set as a meter reading instruction to be sent, and clearing the sending zone bit of the meter reading instruction to be sent at the moment.
3. The carrier wave meter reading method according to claim 2, wherein the sending mode and the sending time of each meter reading instruction are obtained by periodically traversing all meter reading instructions in the downlink cache, and the overrun clearing step is included while the time interval between the current time and the sending time is calculated, and the specific steps are as follows;
when traversing all meter reading instructions in the downlink cache, acquiring the sending times and/or the first sending time of each meter reading instruction, and when acquiring the first sending time, calculating the time interval between the current time and the meter reading instruction and the first sending time to acquire the sending duration;
when the sending times of the meter reading instruction are larger than a preset sending time threshold value, judging that the sending times of the meter reading instruction exceed the limit;
when the sending duration is greater than a preset sending time threshold, judging that the sending of the meter reading instruction is overtime;
and when the transmission time of the meter reading instruction is overtime or the transmission times are over, deleting the meter reading instruction from the downlink cache.
4. The carrier wave meter reading method according to claim 1, wherein the specific steps of obtaining the number of current broadcast transmission instructions and judging the transmission mode of the meter reading instruction to be transmitted according to a preset transmission rule based on the number of current broadcast transmission instructions are as follows:
acquiring the number of current broadcast sending instructions;
when the number of the current broadcast sending instructions is smaller than a preset number threshold, judging that the sending mode of the meter reading instructions to be sent is unicast sending or broadcast sending according to a preset sending rule;
and when the number of the current broadcast sending instructions is larger than or equal to a preset number threshold value, judging that the sending mode of the meter reading instructions to be sent is unicast sending.
5. The carrier wave meter reading method according to any one of claims 2 to 4, wherein the specific step of receiving and reporting the meter reading data corresponding to the meter reading instruction to be sent is as follows:
and acquiring meter reading data, deleting a meter reading instruction corresponding to the meter reading data from a downlink cache, and reporting the meter reading data.
6. The carrier wave meter reading method according to any one of claims 1 to 4, wherein:
the meter reading instruction comprises an extended field identification bit, a meter address and a meter reading command.
7. A central coordinator, comprising:
the sending instruction acquisition module is used for periodically acquiring a meter reading instruction to be sent, wherein the meter reading instruction to be sent is a meter reading instruction of which the sending mode is unicast sending and the time interval is greater than or equal to a preset static interval threshold value, or a meter reading instruction of which the sending mode is broadcast sending and the time interval is greater than or equal to a dynamic interval threshold value, and the time interval is the interval between the current time and the sending time of the corresponding meter reading instruction;
the dynamic interval threshold is calculated in the following manner:
TT=a*Nrt*Vplc/L;
wherein, TTRepresenting a dynamic interval threshold, NrtFor the maximum routing level of the network, VplcThe carrier transmission rate is, L is the current message length, a is a constant, and multiplication is represented; the transmission mode management module is used for acquiring the number of current broadcast transmission instructions and judging the transmission mode of a meter reading instruction to be transmitted according to a preset transmission rule based on the number of the broadcast transmission instructions, wherein the transmission mode comprises unicast transmission and broadcast transmission;
and the receiving and sending module is used for sending the meter reading instruction to be sent according to the sending mode obtained by judgment, receiving meter reading data corresponding to the meter reading instruction to be sent and reporting the meter reading data.
8. The central coordinator of claim 7, wherein the transmission mode management module is configured to:
acquiring the number of current broadcast sending instructions;
when the number of the current broadcast sending instructions is smaller than a preset number threshold, judging that the sending mode of the meter reading instructions to be sent is unicast sending or broadcast sending according to a preset sending rule;
and when the number of the current broadcast sending instructions is larger than or equal to a preset number threshold value, judging that the sending mode of the meter reading instructions to be sent is unicast sending.
9. A carrier wave meter reading system comprising a concentrator and a plurality of stations, wherein the concentrator is provided with a central coordinator according to claim 7 or 8.
CN201911166312.9A 2019-11-25 2019-11-25 Carrier meter reading method, central coordinator and system Active CN110895873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166312.9A CN110895873B (en) 2019-11-25 2019-11-25 Carrier meter reading method, central coordinator and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166312.9A CN110895873B (en) 2019-11-25 2019-11-25 Carrier meter reading method, central coordinator and system

Publications (2)

Publication Number Publication Date
CN110895873A CN110895873A (en) 2020-03-20
CN110895873B true CN110895873B (en) 2021-01-19

Family

ID=69786787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166312.9A Active CN110895873B (en) 2019-11-25 2019-11-25 Carrier meter reading method, central coordinator and system

Country Status (1)

Country Link
CN (1) CN110895873B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112614331B (en) * 2020-12-14 2022-01-11 杭州海兴电力科技股份有限公司 Method for reading electric energy meter event and electric energy meter event reading system
CN115856423B (en) * 2023-03-01 2023-07-07 青岛高科通信股份有限公司 Electronic electric energy meter transformation device and meter reading system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5684800A (en) * 1995-11-15 1997-11-04 Cabletron Systems, Inc. Method for establishing restricted broadcast groups in a switched network
JP2006129341A (en) * 2004-11-01 2006-05-18 Oki Electric Ind Co Ltd Transparent data transmitting method
CN101163324A (en) * 2006-10-12 2008-04-16 华为技术有限公司 Multicast broadcasting service broadcasting mode switching method, terminal switching method and base station
CN101827306A (en) * 2009-03-03 2010-09-08 中兴通讯股份有限公司 Switching method and device of unicast service
US9609591B2 (en) * 2012-03-28 2017-03-28 Kyocera Corporation Communication device, power management system having communication device and control method of communication device
CN103236974B (en) * 2013-04-01 2016-04-27 浙江正泰仪器仪表有限责任公司 A kind of method of checking meter for power line carrier based on dynamic routing algorithm
US20170374581A1 (en) * 2016-06-23 2017-12-28 Huawei Technologies Co., Ltd. System and method for delivering unicast and broadcast traffic in a communication network
CN109121096B (en) * 2017-06-23 2020-09-11 华为技术有限公司 Method and apparatus for determining broadcast nodes in a mesh network

Also Published As

Publication number Publication date
CN110895873A (en) 2020-03-20

Similar Documents

Publication Publication Date Title
CN111355669B (en) Method, device and system for controlling network congestion
CN110895873B (en) Carrier meter reading method, central coordinator and system
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
JP2002171572A (en) Wireless base station, packet repeater, and wireless communication system
CN101938414B (en) Method and device for transmitting messages
CN110831061B (en) Method and device for acquiring scheduling throughput, base station and storage medium
JP7046979B2 (en) Data transmission methods, equipment, systems, and devices
JP3639792B2 (en) Network system and communication bandwidth control method thereof
CN107454276A (en) A kind of subscriber terminal equipment and its data forwarding method and communication system
TR201908621T4 (en) Systems and methods for regulating user data traffic in a wireless network.
EP3952233B1 (en) Tcp congestion control method, apparatus, terminal, and readable storage medium
CN113950157B (en) Uplink transmission method, device, system and storage medium
CN111726379B (en) Communication method and device
CN103974339A (en) Data caching method and device
CN105450441A (en) TCP-protocol-based weak network acceleration method and apparatus
CN108418696B (en) Gateway charging method and gateway
US20240073722A1 (en) Early warning information sending method and receiving method, apparatuses, device and medium
CN104683260A (en) Flow control method and flow control system
CN106797321B (en) A kind of background traffic method for down loading, equipment and system
JPWO2019168153A1 (en) Control devices, communication control methods, and programs
CN102769884A (en) Method and equipment for transmitting heartbeat packet based on always online of UPD (user datagram protocol )
CN107959947B (en) Data transmission method, device and base station
CN106961694B (en) Method and device for evaluating transmission bandwidth of PTN access ring
CN107222299A (en) A kind of data transmission method, system and electronic equipment
CN103442406B (en) A kind of connection control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant