CN106683389B - More host node meter register methods and concentrator comprising bandwidth carrier - Google Patents

More host node meter register methods and concentrator comprising bandwidth carrier Download PDF

Info

Publication number
CN106683389B
CN106683389B CN201611264941.1A CN201611264941A CN106683389B CN 106683389 B CN106683389 B CN 106683389B CN 201611264941 A CN201611264941 A CN 201611264941A CN 106683389 B CN106683389 B CN 106683389B
Authority
CN
China
Prior art keywords
node
copy reading
list
copy
reading
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
CN201611264941.1A
Other languages
Chinese (zh)
Other versions
CN106683389A (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.)
WUHAN SHENGFAN ELECTRONICS STOCK CO Ltd
Original Assignee
WUHAN SHENGFAN ELECTRONICS STOCK 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 WUHAN SHENGFAN ELECTRONICS STOCK CO Ltd filed Critical WUHAN SHENGFAN ELECTRONICS STOCK CO Ltd
Priority to CN201611264941.1A priority Critical patent/CN106683389B/en
Publication of CN106683389A publication Critical patent/CN106683389A/en
Application granted granted Critical
Publication of CN106683389B publication Critical patent/CN106683389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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)
  • Selective Calling Equipment (AREA)

Abstract

The present invention provides a kind of more host node meter register methods and concentrator comprising bandwidth carrier are related to power information acquisition field, this method comprises: determining the meter reading mode of each host node;The preset meter reading scheme comprising at least two host nodes including bandwidth carrier host node is obtained, it is corresponding to copy reading list according at least two host node of meter reading scheme constructs;Whether judgement is respectively empty to copy reading list, if being not sky, indicates that corresponding host node waits for that it, slave node in copy reading list carries out copy reading according to its meter reading mode according to meter reading scheme;If it is sky, judge to whether there is in concentrator archives not yet by copy reading successfully from node, if it is present to above-mentioned to copy reading list progress heavy duty, with to successfully copy reading is not carried out from node by copy reading, so repetition is until all successful by copy reading from node.Solving the problems, such as prior art middle width strip list host node acquisition system in this approach, meter reading is unstable in the presence of a harsh environment or there is acquisition blind area.

Description

More host node meter register methods and concentrator comprising bandwidth carrier
Technical field
The present invention relates to the reading technique fields of electric system, more particularly, to a kind of more host nodes comprising bandwidth carrier Meter register method and concentrator.
Background technique
Existing power user power consumption information acquisition system is mainly by main website, centralized automatic meter-reading terminal and power meter group at concentration Device is the important centralized automatic meter-reading terminal in the acquisition system, for collecting the data of each collector or electric energy meter, and is located Reason and storage.In power information acquisition network, the role of concentrator Local Communication Module (i.e. routing module) is host node, is adopted The role of storage and electric energy meter Local Communication Module (i.e. carrier module) is from node.In current techniques host node and from node it Between communication mode mainly have narrowband carrier, bandwidth carrier, three kinds of wireless communication, wherein bandwidth carrier has that performance is high, rate Fastly, the strong advantage of scalability, is just applied in power information acquisition system more and more, but its relatively high frequency makes Broadband list host node acquisition system long transmission line transmission and power grid environment it is severe in the case where be easy to appear meter reading it is unstable or The problems such as acquiring blind area, has that more adaptable to electric power environmental, collecting efficiency is higher, the how main section comprising bandwidth carrier Point acquisition system, but not yet propose system, efficiently be directed to this more host node power information acquisition systems meter register method.
Summary of the invention
The purpose of the present invention is to provide a kind of more host node meter register methods and concentrator comprising bandwidth carrier, to solve Meter reading is unstable in the presence of a harsh environment or there are problems that acquiring blind area for prior art middle width strip list host node acquisition system.
According to an aspect of an embodiment of the present invention, a kind of meter reading side of more host nodes comprising bandwidth carrier is provided Method, comprising: the meter reading mode of each host node is determined according to the operational mode information of at least two host nodes, wherein institute It states at least two host nodes to be set in concentrator, and includes bandwidth carrier host node at least two host node, often A host node is used for the power information of copy reading electrical nodes;Obtain preset at least two host node of user Meter reading scheme, and at least two host nodes according to the meter reading scheme constructs are corresponding to copy reading list, wherein described Meter reading scheme is at least two host node to the scheme for carrying out copy reading with the power information of electrical nodes;Judgement it is described to Whether copy reading list is empty, wherein if it is judged that be not sky, then it is described extremely according to the preset meter reading scheme instruction Few two host nodes carry out copy reading to the respective power information to the slave node in copy reading list according to respective meter reading mode, And it updates described to which, from address of node information, until described, to copy reading, list is empty in copy reading list;If it is judged that institute It states when list is empty for copy reading, then judges to whether there is in concentrator archives not yet by copy reading successfully from node, if it does, Heavy duty is then carried out to copy reading list to described according to the meter reading scheme, not copied from node successfully by copy reading to described It reads, until all successful by copy reading from node in the concentrator archives.
Other side according to an embodiment of the present invention additionally provides a kind of concentrator, comprising: determining device is used for root The meter reading mode of each host node is determined according to the operational mode information of at least two host nodes, wherein described at least two Host node is set in concentrator, and includes bandwidth carrier host node, each main section at least two host node Point is used for the power information of copy reading electrical nodes;Construction device is obtained, for obtaining user preset described at least two The meter reading scheme of host node, and it is corresponding to copy reading column according at least two host node of the meter reading scheme constructs Table, wherein the meter reading scheme is at least two host node to the side for carrying out copy reading with the power information of electrical nodes Case;Whether the first judgment means are empty for judging described to copy reading list;Instruction device, for judging not to be empty In the case of, indicate at least two host node according to respective meter reading mode to each according to the preset meter reading scheme From the power information to the slave node in copy reading list carry out copy reading, and update the ground to the slave node in copy reading list Location information, until described, to copy reading, list is empty;Second judgment means, for judgement it is described to copy reading list is empty the case where Under, judge in concentrator archives with the presence or absence of not yet by copy reading successfully from node, wherein if it is present passing through heavy duty dress It sets and heavy duty is carried out to copy reading list to described according to the meter reading scheme, not copied from node successfully by copy reading to described It reads, until all successful by copy reading from node in the concentrator archives.
In embodiments of the present invention, a kind of system, efficient meter register method are proposed, and then is solved in the prior art Meter reading is unstable in the presence of a harsh environment or there are problems that acquiring blind area for broadband list host node acquisition system.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of more host node meter register methods comprising bandwidth carrier according to an embodiment of the present invention;
Fig. 2 is a kind of process of optionally more host node meter register methods comprising bandwidth carrier according to an embodiment of the present invention Figure;
Fig. 3 is a kind of signal of optionally more host node concentrators comprising bandwidth carrier according to an embodiment of the present invention Figure;
Fig. 4 is a kind of signal of optionally more host node meter copying devices comprising bandwidth carrier according to an embodiment of the present invention Figure;
Fig. 5 is showing for another optionally more host node meter copying devices comprising bandwidth carrier according to an embodiment of the present invention It is intended to.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
There is no a kind of communication mode perfect can adapt to various electric power environmentals in system, multimode acquisition scheme makes full use of more The advantage of kind communication channel, makes up the deficiency of single channel communication, and acquisition system can be preferably improved from the perspective of application The adaptability united to electric power environmental, to achieve the purpose that improve copy reading effect.Meter register method is the pass in multimode acquisition scheme One of key technology does not propose in the industry multimode meter register method efficiently, applicable completely at present.
According to embodiments of the present invention, a kind of meter register method embodiment of more host nodes comprising bandwidth carrier is provided, is needed It is noted that step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions Middle execution, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein Sequence executes shown or described step.
Fig. 1 is a kind of flow chart of the meter register method of more host nodes comprising bandwidth carrier according to an embodiment of the present invention, As shown in Figure 1, this method comprises the following steps:
Step S102 determines the meter reading mode of each host node according to the operational mode information of at least two host nodes, In, at least two host nodes are set in concentrator, and include bandwidth carrier host node, Mei Gezhu at least two host nodes Node is used for the power information of copy reading electrical nodes.
It should be noted that including above-mentioned at least two host node in concentrator, and this is extremely in embodiments of the present invention At least one host node is bandwidth carrier host node in few two host nodes.
In embodiments of the present invention, each master is determined according to the operational mode information of at least two host nodes by concentrator The meter reading mode of node.
After concentrator is powered, concentrator will be interacted with each host node, obtain address information, the fortune of host node Row pattern information, from nodal information, to ensure the address of host node and from consistent in nodal information, with concentrator archives.
It should be noted that the meter reading mode that above-mentioned operational mode information includes host node is aggressive mode or by dynamic model Formula, that is to say, that after the meter reading mode for determining host node is aggressive mode, which operates in subsequent execution meter reading When, meter reading movement will be executed according to the meter reading mechanism of aggressive mode.When the operational mode information for determining host node is Passive Mode Later, which will execute meter reading movement according to the meter reading mechanism of Passive Mode when subsequent execution meter reading operates.
That is, in embodiments of the present invention, concentrator can be directed to according to the determination of the operational mode information of host node " meter reading mechanism " of the host node.
Step S104 obtains the meter reading scheme of preset at least two host node of user, and according to meter reading scheme It is corresponding to copy reading list to construct at least two host nodes, wherein meter reading scheme is at least two host nodes to electrical nodes The scheme of power information progress copy reading.
In embodiments of the present invention, meter reading scheme, meter reading scheme can be arranged in user in concentrator according to actual needs Specific meter reading scheme when at least two host nodes execute meter reading task, in embodiments of the present invention, meter reading are controlled for concentrator Scheme includes first scheme and alternative plan, and specifically, first scheme and alternative plan will carry out in detail in the following embodiments Introduction.
In embodiments of the present invention, determine concentrator control each host node execute meter reading task meter reading scheme it Afterwards, concentrator can wait for copy reading list at this according to the preset each host node of meter reading scheme constructs to copy reading list In include that each host node needs the slave node of copy reading.
Step S106 judges whether to copy reading list be empty.Wherein, if it is judged that thening follow the steps S108, such as sky Fruit is judged to then follow the steps S112 not for sky.
It as can be seen from the above description, in embodiments of the present invention, include at least two host nodes, each main section in concentrator Point correspondence is respective to copy reading list, then judging when whether copy reading list is sky, judges that each host node respectively corresponds to Whether be empty to copy reading list.
For example, it to copy reading list is then to judge first to copy reading list first to copy reading list that current primary node is corresponding It is whether empty.
It should be noted that the meter reading process for each host node is identical process, therefore, in the embodiment of the present invention In, only it is illustrated by taking a host node as an example.
Step S108 judges in concentrator archives with the presence or absence of not yet by copy reading successfully from node;Wherein, if it is determined that Exist out, then follow the steps S110, if it is judged that being not present, terminates this meter reading process.
Step S110, according to meter reading scheme treat copy reading list carry out heavy duty, with to not by copy reading successfully from node into Row copy reading;
Step S112 indicates at least two host nodes according to respective meter reading mode pair according to preset meter reading scheme The respective power information to the slave node in copy reading list carries out copy reading, and updates to believe in copy reading list from address of node Breath.Wherein, update is to including increase address information or delete address information from address of node information in copy reading list.
In embodiments of the present invention, host node is during copy reading power information, record copy reading in real time as a result, for example, Copy reading success or copy reading failure;And " dynamic updates " is carried out to copy reading list to each host node according to copy reading result.Example Such as, work as previous round meter reading process after, if there are also non-copy reading successfully from node, according to above-mentioned meter reading scheme to therein It is reloaded to copy reading list.When meter reading scheme is first scheme, expression is reloaded only for the non-copy reading success of upper wheel Slave node reload to main and copy host node, auxiliary host node of copying is not loaded with the non-copy reading of wheel successfully from node;When meter reading side When case is alternative plan, the upper non-copy reading of wheel is successfully reloaded to each host node from node in copy reading list.? After reloading, continue aforementioned meter reading process, until all from the equal copy reading success of node.
It should be noted that in embodiments of the present invention, within a meter reading period, including meter reading process is taken turns, by one more After taking turns meter reading process, to no longer include the slave node of non-copy reading in copy reading list.So that is, a wheel meter reading process refers to It treats each of copy reading list and carries out copy reading from node, guarantee each can be by copy reading from node.One meter reading period refers to Copy reading is carried out from node to each of concentrator archives by a wheel or more wheel meter reading processes, it is all from node copy reading to guarantee Success.
In embodiments of the present invention, each host node is determined according to the operational mode information of at least two host nodes first Then meter reading mode obtains the meter reading scheme of preset at least two host node of user, next, according to presetting Meter reading scheme indicate at least two host nodes according to respective meter reading mode to the respective slave node in copy reading list Whether power information carries out copy reading, finally, judging in concentrator archives also comprising non-copy reading successfully from node, wherein if It include that copy reading successfully then is carried out from node to non-copy reading, until to not include non-copy reading in copy reading list successfully from node.
In embodiments of the present invention, the meter reading mechanism of above-mentioned host node is explained as follows:
When the period meter reading mode of host node is aggressive mode, after meter reading starts, host node can be mentioned actively to concentrator Out copy reading some from the request of node (that is, above-mentioned from node), concentrator judgement should from node in this meter reading period whether The message of " copy reading success " is replied in the success of copy reading if the success of copy reading to host node.After host node receives the message, from Dynamic request copy reading is next from node.
Wherein, if non-copy reading is successful and the copy reading frequency of failure is not up to 2 times, concentrator sends " can be with copy reading " to host node Instruction, wherein the instruction includes from the mark of node address and the data item for wanting copy reading.Host node receives after the instruction to phase Copy reading is carried out from node with answering.If 2 copy readings fail in epicycle meter reading, " copy reading mistake is replied in the 3rd request of host node Lose ", host node requests copy reading next from node automatically after receiving the instruction.It so repeats, until complete from node whole copy reading Finish or meter reading task terminates.
When the period meter reading mode of host node is Passive Mode, by concentrator active decision want copy reading which from node, And directly transmit copy reading to host node should be from the instruction of node.
As can be seen from the above description, in the case where aggressive mode, host node copy reading which from node depend on host node Itself, be host node actively to concentrator proposition want copy reading which from node;However, in the case where Passive Mode, host node Copy reading which from node depend on concentrator, be which node of concentrator order host node copy reading.So, that is to say, that in master Under dynamic model formula and Passive Mode, supply target is not identical, wherein supply target is to be determined according to the meter reading mode of current primary node Out for providing target from node for current primary node.For example, in the active mode, supply target is host node sheet Body, in the passive mode, supply target is concentrator.In aggressive mode, the main function of concentrator is notice current time Whether host node is requested can be by copy reading from node.
It should be noted that the quantity of preferably at least two host nodes is two in the following embodiments of the present invention, under It states and is illustrated by taking any one host node (that is, current primary node) in two host nodes as an example, removed in two host nodes The process flow of host node except current primary node and the process flow of current primary node are identical, in embodiments of the present invention not It repeats again.
In embodiments of the present invention, the slave node of current primary node institute copy reading is with from nodes X, current primary node is with main section Point A, another host node note are remembered by taking list B as an example with list A, second to copy reading list with host node B, first to copy reading list note It is illustrated.
In an optional embodiment of the embodiment of the present invention, according at least two host nodes pair of meter reading scheme constructs Answering includes: to judge that meter reading scheme is first scheme or alternative plan to copy reading list;If it is judged that be first scheme, It then will all be added at least two host nodes that main to copy host node (that is, master copies routing) corresponding to copy reading from address of node In list, and copy that host node (that is, auxiliary copy routing) is corresponding to be set as empty to copy reading list for auxiliary at least two host nodes; If it is judged that be alternative plan, then it is corresponding in copy reading list each host node to be loaded into from address of node by all, Alternatively, determining that each host node is corresponding to copy reading list according to predetermined manner.In embodiments of the present invention, when meter reading scheme not Meanwhile building is not identical to the scheme of copy reading list, above-mentioned presupposed solution indicates intelligently to wait for copy reading for each primary node constructs List, specific building will describe in detail in the following embodiments to copy reading list.
Indicate at least two host nodes according to respective meter reading mode to respective first according to preset meter reading scheme Power information to the slave node in copy reading list carries out copy reading and includes the following steps:
Step S1060, obtain that supply target provides from address of node information, supplying target is according to current primary node Meter reading mode determine for providing target from node for current primary node, wherein supply target include concentrator or Person's current primary node itself;
It as can be seen from the above description, can be according to preset meter reading scheme constructs after getting meter reading scheme Host node A and host node B to copy reading list, wherein host node A's is denoted as first to copy reading list to copy reading list.
Step S1061, judge first to copy reading list whether be it is empty, if be not it is empty if execute S1062, if if it is sky Execute S1067;
Step S1062 judges whether from node be first to the node in copy reading list, if it is judged that being then to execute Step S1063, if it is judged that not being to then follow the steps S1064 to step S1066;
Step S1063, instruction current primary node carry out copy reading to from the power information of node.
If it is judged that list A is not empty table, in the case where supplying target is host node A itself, host node A will actively The slave node of copy reading is wanted to concentrator proposition.For concentrator to get host node A requested after nodes X, judgement should be from Whether nodes X is node in list A, wherein if it is judged that being then to indicate host node A according to meter reading scheme to from node Carry out meter reading operation.
In the case where supplying target is concentrator, current concentrator is indicated to host node A from nodes X.Then, concentrator Judge this from nodes X whether be node in list A, wherein if it is judged that being then to indicate host node A according to meter reading scheme Meter reading operation is carried out to from nodes X.
Step S1064, if it is judged that be not first from node to the node in copy reading list, then judge from node whether The success of copy reading;
Step S1065, if it is judged that copy reading success, then return to the successful message of copy reading to supply target, and return and hold Row judge first to copy reading list whether be sky step;
Step S1066, if it is judged that non-copy reading success, then return to copy reading failure news to supply target, and return Execute judge first to copy reading list whether be sky step;
In embodiments of the present invention, if it is judged that not being the node in list A from nodes X, then judge from nodes X whether The success of copy reading.If it is judged that copy reading success, then return to the successful message of copy reading to supply target, if it is judged that copy reading is lost It loses, then returns to copy reading failure news to supply target.After the message for returning to copy reading success or failure to supply target, return is sentenced Whether disconnected list A is empty step.
Step S1067, if it is judged that first is sky table to copy reading list, then by current routing for all from node Copy reading number record reset, and judge in concentrator archives it is all from node whether all by successfully copy reading;
Step S1068, if it is judged that all do not judge that the type of meter reading scheme is first scheme then by success copy reading, Or alternative plan;
Step S1069, if it is judged that be first scheme, then judge current primary node whether based on copy host node, wherein If it is judged that current primary node is that master copies host node, then will not successfully not believed from address of node by copy reading in concentrator archives Breath is reloaded to first in copy reading list, so that current primary node is not to successfully carrying out copy reading from node by copy reading;
Step S10610 then reloads the slave node of non-copy reading to first wait copy if it is judged that being alternative plan It reads in list, so that current primary node carries out meter reading again to from node again, and after meter reading again, return executes judgement Whether first to copy reading list be empty step;
Wherein, it will not reloaded to first after in copy reading list from node successfully by copy reading, alternatively, if it is determined that Current primary node is not that master copies host node out, then returns and judge whether list A is empty step.
It should be noted that in first scheme, it, can be in advance to master when the quantity of at least two host nodes is two The priority of node A and host node B are configured, for example, copying host node based on setting host node A, are copied supplemented by setting host node B Host node copies host node supplemented by setting host node A alternatively, copying host node based on setting host node B.In turn, passing through first party When case executes meter reading movement, adhere to that the auxiliary main principle for copying host node of host node auxiliary of copying executes meter reading movement.Therefore, in first party In case, it is assumed that copy host node based on setting host node A, host node is copied supplemented by setting host node B, then host node A and host node B Copy reading not necessarily is carried out simultaneously, but the principle based on host node A, supplemented by host node B carries out meter reading.
In the second scenario, after meter reading starts, host node A and the corresponding supply target of host node B start simultaneously at request and allow Two host node copy readings allow host node B to request copy reading from node Y from node for example, request allows host node A copy reading from nodes X.? That is in the second scenario, host node A and host node B are to carry out meter reading movement simultaneously, copy host node there is no main and auxiliary copy The difference of host node.
In the case, if it is judged that list A is sky table, then it represents that the slave node of host node A is all or part of by road By A copy reading, wherein not being deleted from list A due to by routing B copy reading success from node to copy reading by routing A copy reading. At this time, it may be necessary to further judge all successful from the whether whole copy readings of node in concentrator archives, wherein if it is judged that complete Portion's copy reading success, then terminate this meter reading period.
If it is judged that inwhole meter reading successes, then judge that current meter reading scheme is first scheme or alternative plan.Its In, if it is judged that be first scheme, then judge list A whether based on copy host node, wherein, then will collection if it is judged that be Non- copy reading is successfully reloaded from address of node information into list A in middle device archives, so that list A is to non-copy reading success Slave node carry out copy reading;If it is judged that not being, then return step S1061, continues to judge whether to copy reading list be empty.Such as Fruit judges it is alternative plan, then successfully reloads non-copy reading into list A from address of node information, so that currently Host node A successfully carries out copy reading from node to non-copy reading, and after copy reading, return step S1061 continues to judge list A It whether is empty.
Further, concentrator, may be due to each when indicating host node A to copy reading is carried out from the power information of nodes X Kind reason causes host node meter reading to fail, and carries out multiple copy reading from nodes X to this in this case, it is possible to which host node A is arranged, with Guarantee successfully to read the power information from node.
In above-mentioned steps S1063, concentrator indicates that current primary node includes such as to copy reading is carried out from the power information of node Lower step:
Step S10631, judges whether current primary node succeeds to the copy reading from node;
Step S10632, if it is judged that not successfully, then judge current time request to the number from node copy reading whether For preset times;Wherein, if it is judged that being preset times, then judge that the type of meter reading scheme is first scheme or second Scheme, and being handled according to judging result from node, and after processing is completed, returns to execute and judges first to copy reading list It whether is empty step;If it is judged that not being preset times, then returns and execute judge current primary node first to copy reading column The step of whether table is sky table;
Step S10633, if it is judged that success, then label is successful from node copy reading, and to the copy reading data from node It is handled;First to delete in copy reading list from address of node information, and judge in another host node corresponding second Whether include from node to copy reading list, wherein if it is judged that comprising from node, then second to deleted in copy reading list from Address of node information;Wherein, if it is judged that not including from node, alternatively, second to delete in copy reading list from node Address information after, return execute judge to copy reading list whether be sky step.
Firstly, concentrator judges from nodes X during this meter reading according to the meter reading result of host node A, if copied It is read as function.If copy reading success, label should from nodes X meter reading success, and to copy reading to data save.Then, sentence Whether break in list B comprising the address information from nodes X, wherein if it is judged that comprising the address information from nodes X, Then delete in list B from address of node information.If it is judged that not including, then reject directly from list A from nodes X Address information, and to supply object feedback from nodes X by the successful information of copy reading, supply target replacement is next to be mentioned from node It please allow host node A copy reading.If non-copy reading success, and judge it has been this time that the 3rd time (wherein, in epicycle meter reading by host node A 3 times are above-mentioned preset times) copy reading of filing a request is from nodes X (that is, preceding 2 copy readings fail), it is determined that user Preset meter reading scheme is that first scheme or alternative plan execute phase from nodes X to this according to definitive result in turn It operates with answering.
Wherein, it in the case where the type of meter reading scheme is first scheme, is handled according to judging result from node Include:
Step S11 first to delete in copy reading list from address of node information, and returns to copy reading to supply target and loses The information lost;
Step S12 judges whether current primary node is that master at least two host nodes copies host node, wherein master copies master Node is pre-set host node;
Step S13, if it is judged that be will be then added to from address of node information another host node corresponding second to In copy reading list, so that power information of another host node copy reading from node, wherein another host node is to remove in two host nodes Host node except current primary node;Wherein, after it will be added to second from address of node in copy reading list, or sentence It is disconnected go out current primary node be not it is main copy routing after, return execute judge first to copy reading list whether be sky step;
Step S14, if it is judged that not being, then first to delete in copy reading list from address of node information.
In the case, if it is judged that this time be host node A the 3rd time in epicycle meter reading (wherein, 3 times be Above-mentioned preset times) copy reading of filing a request from nodes X, and determine current meter reading scheme be first scheme, then picked from list A Except the address information from nodes X, and supply that target replacement is next to submit to allow host node A copy reading to from node.
Next, it is judged that whether host node A is that master copies host node, wherein if it is judged that host node A is that master copies main section Point will then be added in list B from the address information of nodes X, so that host node B (that is, auxiliary copy host node) is carried out to from nodes X Copy reading, if host node B to from nodes X copy reading success, will be rejected from list B from the address information of nodes X, save copy reading to Data, label should from node be this meter reading period in copy reading successfully from node, if host node B is copied to from 2 times of nodes X Reading fails, then will reject from list B from the address information of nodes X, when supplying the 3rd request copy reading of target from nodes X Supply target replacement is next to submit to allow host node B copy reading to from node.If it is judged that host node A is not that master copies host node, then The address information from nodes X is deleted in list A.
The type of meter reading scheme be alternative plan in the case where, according to judging result to from node carry out processing include: First to delete in copy reading list from address of node information.Therefore, in the case, if it is judged that being this time to supply Answering target (wherein, 3 times be above-mentioned preset times) the 3rd time in epicycle meter reading to file a request allows host node A copy reading from node X will then be deleted in list A from the address information of nodes X.
In an optional embodiment of the embodiment of the present invention, on the basis of above-mentioned alternative plan, it is provided with one kind Smart allocation meter reading method.In smart allocation meter register method, the meter reading work of two host nodes is not interfere with each other, before the application of this method Mention is to need to carry out meter reading study in advance and save meter reading learning outcome data.
In embodiments of the present invention, meter reading study is intended to explore two host nodes to respectively from the copy reading effect of node, being intelligence It can distribution offer reference.Firstly, copying by copy reading success rate (that is, copy reading number of success is divided by copy reading total degree) and averagely logical consumption When (that is, each communication time-consuming average value when copy reading success) etc., indexs measurement host node is to the copy reading effect from node, then The copy reading effect of two host node modules is recorded for different periods, and then obtains meter reading learning outcome data.
The division of period can specifically include following several there are many method:
The first, all meter copy readings can be finished within single period as starting point, according in acquisition network from Number of nodes and the parameter of concentrator setting divide the period automatically.
For example, setting in each period under meter reading mode of learning to respectively from node copy reading X times, the max-timeout time is T Second, archives sum is N, then when number of segment P calculation method are as follows:Wherein, X can be set according to the actual situation It is fixed, 3 are defaulted as, " [] " indicates calculated result round numbers part, is thus divided into 24 hours the P impartial period.
Second, the period is divided according to work and rest rule, when the Mon-Fri of non-legal festivals and holidays is defined as working day Saturday, Sunday and legal festivals and holidays are defined as the period on day off, have thus been divided into two periods for 7 days of one week by section.
The third, 24 hours of every day in above-mentioned Time segments division method 2 are drawn according still further to method 1 or other methods Point.
After dividing according still further to above-mentioned three kinds of modes to the period, concentrator is main by least two within each period It is next from node until owning that node copy reading simultaneously continues copy reading after node 3 times, the equal copy reading of each two host nodes It is finished from the equal copy reading of node;Then, the meter reading learning outcome data of day part are saved.
It should be noted that two host nodes during practical copy reading, may be led when network environment changes When causing concentrator inconsistent with meter reading learning outcome before from the effect of the multiple copy reading of node to some by some host node, It can choose: 1) meter reading learning outcome data being updated immediately in the case;2) to the concentrator free time, pass through corresponding two A host node from node copy reading effect to respectively being learnt and update meter reading learning outcome data;3) above two processing method is simultaneous It applies.
After obtaining meter reading learning outcome data, concentrator can indicate two masters of meter reading according to intelligent meter reading method Node carries out copy reading to from the power information of node.Before indicating power information of two host node copy readings from node, concentrate Device is it needs to be determined that the slave node of each host node specifically determines that each host node is corresponding according to predetermined manner and arranges to copy reading Table includes the following steps:
Step S21 determines the period belonging to current time;
Step S22 reads the meter reading learning data of current primary node and another host node within the affiliated period;
Step S23, according to meter reading learning data choose current primary node and another host node copy reading success rate be all larger than or It is target from node that person, which is equal to the slave node of default success rate, wherein target from the quantity of node be M;
Step S24, according to formulaThe first of calculating current primary node is to copy reading list In slave number of nodes and another host node second to the slave number of nodes in copy reading list, wherein R is default success rate, N For in concentrator archives all from the quantity of node, TALogical time-consuming is copied from being averaged for node for M target of current primary node copy reading, TBLogical time-consuming, X are copied from being averaged for node for another M target of host node copy readingAFor first to the number in copy reading list from node Amount, XBFor second to the quantity in copy reading list from node;
Step S25 determines M target preceding X from nodeAIt is a from first that node is current primary node to copy reading list, And M target is from node residue from second that node is another host node to copy reading list.
Concentrator first determines current time period locating for the node before meter reading task starts;Then, copy reading period Meter reading learning outcome data;Next, statistics is lower than the slave node of R with copy reading success rate when host node A or host node B copy reading The quantity of (that is, target from node), and being indicated with destination number M remembers in concentrator archives to be all N from the quantity of node.It is false If being respectively X to the host node A and host node B slave number of nodes distributedAAnd XB, then above-mentioned parameter should meet such as lower inequality side Journey:Wherein, R can be previously set by program or be set by concentrator operation interface, [,]minIt indicates to take the smaller in square brackets in two data, Xie Shangshu inequation obtains XAAnd XBValue.If two values are point Number, then take and compare XABig smallest positive integral is XAValue, take and compare XBSmall maximum integer is XBValue.
By M with copy reading success rate when host node A copy reading and host node B copy reading higher than R from node respectively according to copy reading Sequence is ranked up success rate from high to low, chooses X before being sorted with copy reading success rate when host node A copy readingAThe slave node of position It is host node A first to copy reading list, remaining XBIt is a from node be host node B second to copy reading list.
It should be noted that in embodiments of the present invention, the quantity of preferably at least two host nodes is two, it is following with It is illustrated for any one host node (that is, current primary node) in two host nodes, except current main in two host nodes The process flow of host node except node and the process flow of current primary node are identical, no longer superfluous in embodiments of the present invention It states.In embodiments of the present invention, the slave node of current primary node institute copy reading is with from nodes X, current primary node with host node A, Another host node note is carried out by taking list B as an example with list A, second to copy reading list note with host node B, first to copy reading list note Explanation.
Fig. 2 is a kind of process of optionally more host node meter register methods comprising bandwidth carrier according to an embodiment of the present invention Figure, as shown in Fig. 2, this method comprises the following steps:
Step S201 judges that the meter reading mode of host node A is Passive Mode or aggressive mode, wherein if it is judged that It is Passive Mode, then executes following step S203, if it is judged that being aggressive mode, then executes following step S202;
Step S202, determines under aggressive mode, the supply target of host node A;Wherein, in the active mode, target is supplied For host node A itself;
Step S203, determines under Passive Mode, the supply target of host node A;Wherein, in the passive mode, target is supplied For concentrator;
Step S204 determines the list A of host node A according to the meter reading scheme that concentrator is set;
Step S205 judges whether list A is empty;Wherein, if it is, executing following step S221;If it is not, then holding Row following step S206;
Step S206 extracts the address information that supply destination request wants the slave nodes X of copy reading;
Step S207 judges whether from nodes X be node in list A according to address;Wherein, if it is judged that being, then Execute step S208;If it is judged that not being to then follow the steps S218;
Step S208, concentrator send instruction of the copy reading from nodes X to host node A;
Step S209, judges whether copy reading succeeds;Wherein, if it succeeds, step S211 is executed, if it fails, then Execute step S210;
Whether step S210, judgement have been this time the 3rd request copy readings from nodes X;Wherein, if it is judged that being, then Step S212 is executed, if it is judged that not being then to return to step S205;
Step S211, label to from nodes X copy reading success, to copy reading to data handled and saved;
Step S212 judges that meter reading scheme is first scheme or alternative plan;Wherein, if it is judged that being first party Case thens follow the steps S213, if it is judged that being alternative plan, thens follow the steps S217;
Step S213, judge host node A whether based on copy host node;Wherein, it if it is judged that being, thens follow the steps S214, if it is judged that not being to then follow the steps S217;
Step S214 will be added in list B from the address information of nodes X;And after executing step S214, step is executed Rapid S217;
Step S215 judges in list B with the presence or absence of the address information from nodes X;If it is judged that in the presence of step is then executed Rapid S216 thens follow the steps S217 if it is judged that being not present;
Step S216 deletes the address information from nodes X in list B;And step is executed after executing step S216 S217;
Step S217 deletes the address information from nodes X in list A, and returns to step S205;
Step S218 judges the copy reading that whether succeeded from nodes X;Wherein, if it is judged that being, S220 is thened follow the steps; If it is judged that not being to then follow the steps S219;
Step S219 returns to meter reading failure news to supply target, and returns to step S205;
Step S220 returns to the successful message of meter reading to supply target, and returns to step S205;
Step S221 resets all record from the number of copy reading of node host node A;
Whether step S222 judges all from node copy reading success in concentrator archives, wherein if it is judged that be, Then terminate process, if it is judged that not being to then follow the steps S223;
Step S223 judges that meter reading is first scheme or alternative plan;Wherein, if it is judged that being first scheme, then It executes step S224 and thens follow the steps S225 if it is judged that being alternative plan;
Step S224, judge host node A whether based on copy host node;Wherein, it if it is judged that being, thens follow the steps S225, if it is judged that not being then to return to row step S205;
Step S225 reloads the slave node of non-copy reading into list A, so that slave section of the host node A to non-copy reading Point carries out copy reading.
S201 to step S225 can be summarized as first scheme and alternative plan through the above steps.
The main flow of first scheme includes:
The building of list: according to the setting of concentrator meter reading scheme, judgement be host node A master copy, host node B it is auxiliary copy or In turn.It is added to list A from address of node for all, list B is sky.In first scheme, it is assumed that host node A master copies, Host node B is auxiliary to be copied.
The update of list: after meter reading starts, concentrator judges whether list A is empty, if it is judged that be not sky, then main section Point A corresponding supply target proposition allows request of the host node A copy reading from nodes X.
Whether concentrator judges from nodes X in list A, if concentrator is inquired from section from nodes X not in list A Whether copy reading is successful during this meter reading by point X;It is fed back to meter reading target provider from nodes X if copy reading success The successful information of copy reading, to meter reading target provider feedback from the information of nodes X copy reading failure, supply if copy reading failure Target, which receives to replace after information, next submits to allow host node A copy reading to from node.
If concentrator sends dependent instruction of the copy reading from nodes X to host node A from nodes X in list A, continue to sentence It is disconnected from nodes X in time-out time whether copy reading success, wherein if copy reading success, label to from nodes X copy reading success, and To copy reading to data handled and saved.Next, it is judged that whether include the address information from nodes X in list B, Wherein, it if it is judged that comprising the address information from nodes X, then deletes in list B from address of node information, then from column The address information from nodes X is rejected in Table A.If it is judged that not including, then reject directly from list A from the address of nodes X Information, supply target replacement is next to submit to allow host node A copy reading to from node.If non-copy reading success, and be this time main section Point A the 3rd copy reading of filing a request in epicycle meter reading then rejects the address information from nodes X, supply from nodes X from list A Target replacement is next to submit to allow host node A copy reading to from node.Meanwhile will be added in list B from the address of nodes X, so that Host node B carries out copy reading to from nodes X, if host node B succeeds to from nodes X copy reading, will be rejected from list B from nodes X, Saving the data, label that copy reading arrives should be that copy reading is successfully from node in this meter reading period from node, if host node B is to from section 3 copy readings of point X fail, then will reject from list B from nodes X, and supply target replacement is next to submit to allow master to from node Node B copy reading.
If non-copy reading success, and be not this time that the 3rd copy reading of filing a request is from nodes X in epicycle meter reading by host node A, then Supply target proposes to allow host node A copy reading from nodes X again automatically.
If concentrator judges that list A for sky, enters " heavy duty of list " step.
The heavy duty of list: it after the circulation of above-mentioned " list update " step of experience, is copied from node by host node A until all Run through, i.e. host node A first run meter reading finishes, wherein host node A copy reading is excessively all from node, host node B only copy reading cross part or The slave node of whole host node A copy reading failures.If there are also non-copy readings successfully from node, by these from address of node information It is re-loaded in list A, continues meter reading according to above-mentioned " update of list " process, so recycle, the second wheel, the can be can be carried out Three-wheel ... meter reading, will be by the end of non-copy reading at that time successfully from address of node heavy duty to list A, Zhi Daosuo before every wheel meter reading Having from node copy reading success or meter reading task terminates;It is successful then no longer to column from node copy reading when all during period is any Table carries out heavy duty and stops meter reading.
The main flow of alternative plan includes:
The building of list: construction method one: all it is added to list A and list B from address of node for all;Construction method Two: scheme described in above-mentioned steps S21 to step S24.
The update of list: after meter reading starts, concentrator judges whether list A and list B is sky, if it is judged that not being Sky, then list is not that the supply target of empty host node starts to request to allow the host node copy reading from node, and works as two lists not When for sky, two host nodes request copy reading to allow host node A copy reading from nodes X from node, such as request simultaneously, and host node B is allowed to request Copy reading is from node Y, then whether concentrator judges from nodes X in list A, if concentrator is looked into from nodes X not in list A It askes from nodes X whether during this meter reading, if the success of copy reading.It is anti-to meter reading target provider if copy reading success Host node A copy reading is presented from the successful information of nodes X, if copy reading failure to meter reading target provider feed back host node A copy reading from The information of nodes X failure, supply target, which receives to replace after information, next submits to allow host node A copy reading to from node.
If concentrator sends dependent instruction of the copy reading from nodes X to host node A from nodes X in list A, continue to sentence It is disconnected from nodes X in time-out time whether copy reading success, wherein if copy reading success, judge in list B whether comprising be somebody's turn to do from The address information of nodes X, wherein if it is judged that then being deleted in list B from node comprising the address information from nodes X Address information, and address information of the deletion from nodes X in list A.If it is judged that not including, then directly picked from list A Except the address information from nodes X, supply that target replacement is next to submit to allow host node A copy reading to from node;If non-copy reading success, and It has been this time that host node A the 3rd copy reading of filing a request in epicycle meter reading is then rejected from list A from nodes X from nodes X, Supply target replacement is next to submit to allow host node A copy reading to from node.If non-copy reading success, and be not this time host node A at this The 3rd copy reading of filing a request is taken turns in meter reading from nodes X, then back to judge list A whether be empty step at the same time, concentration Device responds host node B request copy reading from node Y, and process flow is identical as host node A's, this is not repeated.
If concentrator judges list A or list B for sky, the meter reading process for the host node that list is empty is entered " heavy duty of list " step.
The heavy duty of list: after the circulation of above-mentioned " list update " step of experience, any host node it is corresponding to copy reading from section When point list is empty (i.e. the host node first run meter reading finishes), if there are also non-copy readings in concentrator archives successfully from node, These non-copy readings successes are all re-loaded to from address of node the host node it is corresponding to copy reading from node listing, press According to above-mentioned " update of list " step continue meter reading, two host nodes by such process recycle until it is all from node copy reading success or Person's meter reading task terminates.
It should be noted that in embodiments of the present invention, such situation is likely to occur in meter reading process: host node A is just In copy reading from nodes X, but copy reading result not yet returns, and has not timed out;Occur allowing host node B copy reading asking from nodes X at this time It asks, because the non-copy reading success of X, concentrator equally indicate host node B and carry out copy reading to X, it is equal to may cause two host nodes in this way The data from nodes X are copied, at this moment concentrator only handles, saves one in two data.
Concentrator needs the parameter being manually set: meter reading scheme (the first meter reading scheme, the second meter reading scheme), if selection First meter reading scheme then needs further to be arranged the copy reading priority (host node A master copies, host node B master copies) of two host nodes, if The second meter reading scheme has been selected, then has needed further setting whether to distribute meter reading task according to meter reading learning outcome and (is arranged above-mentioned The construction method of list is method one or method two).
The embodiment of the invention also provides a kind of more host node concentrators comprising bandwidth carrier, the concentrator is for executing It include more host node meter register methods of bandwidth carrier provided by above content of the embodiment of the present invention, below to the embodiment of the present invention The concentrator of offer makees specific introduce.
Fig. 3 is a kind of schematic diagram of more host node concentrators comprising bandwidth carrier according to an embodiment of the present invention, the collection Middle device mainly includes determining device 31, obtains construction device 32, the first judgment means 33, instruction device 34, the second judgment means 35 and heavily loaded device 36, in which:
Determining device, for according to the operational mode information comprising at least two host nodes including bandwidth carrier host node Determine the meter reading mode of each host node, wherein at least two host node is set in concentrator, and it is described extremely It include bandwidth carrier host node in few two host nodes, each host node is used for the power information of copy reading electrical nodes;It obtains Construction device is taken, for obtaining the meter reading scheme of preset at least two host node of user, and according to meter reading scheme structure At least two host nodes built are corresponding to copy reading list, wherein meter reading scheme is at least two host nodes to electrical nodes The scheme of power information progress copy reading;Judgment means, for judging whether to copy reading list be empty;Instruction device, for sentencing Break in the case where not for sky, indicates at least two host nodes according to respective meter reading mode according to preset meter reading scheme Copy reading is carried out to the respective power information to the slave node in copy reading list, and updates the ground to the slave node in copy reading list Location information, until list is empty to copy reading;Second judgment means, for judge to copy reading list is empty in the case where, judge With the presence or absence of not yet by copy reading successfully from node in concentrator archives, wherein if it is present by heavily loaded device according to copying Table scheme treat copy reading list carry out heavy duty, with to not by copy reading successfully from node carry out copy reading, until concentrator archives in It is all from node by copy reading success.
Optionally, the acquisition construction device includes: first judgment module, for judging that the meter reading scheme is first party Case or alternative plan;First loading module, for if it is determined that it is described to copy reading, list is empty, and judge it is first In the case where scheme, all described it will be added at least two host node that main to copy routing corresponding wait copy from address of node It reads in list, and copies that routing is corresponding to be set as empty to copy reading list for auxiliary at least two host node;Second load mould Block, for being loaded into each master from address of node for all described in the case where judging is the alternative plan Node is corresponding in copy reading list, alternatively, determining that each host node is corresponding to copy reading list according to predetermined manner;The Whether one judgment means include: the second judgment module, be empty for judging first to copy reading list, wherein described first wait copy Reading list is the current primary node to copy reading list;The instruction device includes: acquisition module, for judge it is described To copy reading in the case that list is empty, obtain that supply target provides according to address of node information, the supply target What the meter reading mode of current primary node was determined is used to provide the target from node for the current primary node, wherein the confession Answering target includes concentrator or the current primary node itself;Third judgment module, for judge it is described from node whether be First to the node in copy reading list, wherein described first to copy reading list be the current primary node to copy reading list;Refer to Show module, in the case where judging is, indicating that the current primary node is copied to described from the power information of node It reads.
Optionally, the indicating module includes: the first judging submodule, for judge the current primary node to it is described from Whether the copy reading of node succeeds;Second judgment submodule, in the case where judging failed, judging that current time requests It whether is preset times to the number from node copy reading, wherein if it is judged that being the preset times, then pass through third Judging submodule judges that the type of the meter reading scheme is first scheme or alternative plan, and by processing submodule according to Judging result is handled from node described, and after processing is completed, return execute judgement it is described to copy reading list whether be Empty step;If it is judged that not being the preset times, then the current master is judged by second judgment module again Whether the first of node is sky table to copy reading list;Submodule is marked, described in the case where judging successful situation, then marking From node copy reading success, and handled from the copy reading data of node described;Delete submodule, for described first to It is deleted in copy reading list described from address of node information;Second judgment submodule, for judging second in another host node It whether include described from node to copy reading list;Submodule is deleted, in the case where judging comprising described from node, Described second is described from address of node information to delete in copy reading list;Wherein, if it is judged that do not include it is described from node, Alternatively, it is described after the information of address of node to be deleted in copy reading list described second, pass through second judgment module Continue to judge whether described first to copy reading list be empty.
Optionally, processing submodule includes: the first deletion unit, is the feelings of first scheme for the type in meter reading scheme Under condition, first to delete in copy reading list from address of node information;Judging unit, for judge current primary node whether be Master at least two host nodes copies host node, wherein main host node of copying is pre-set host node;Adding unit is used In another host node corresponding second in the case where judging is, will be added to from address of node information to copy reading list In so that power information of another host node copy reading from node, another host node be in two host nodes except current primary node it Outer host node, wherein after it will be added to second from address of node in copy reading list, or judge current main section Point is not after master copies routing, then judge the current primary node again by second judgment module first arranges to copy reading Whether table is sky table;First delete unit, for the type of meter reading scheme be alternative plan in the case where, first to copy reading It deletes in list from address of node information, and returns to execute judge whether to copy reading list be empty step.
Optionally, obtaining construction device includes: the first determining module, is alternative plan for the type in meter reading scheme In the case of: the second determining module, for determining the period belonging to current time;Read module, for reading current primary node With meter reading learning data of another host node within the affiliated period;Module is chosen, for choosing according to meter reading learning data Current primary node and another host node copy reading success rate are all larger than or are target from node equal to the slave node of default success rate, Wherein, target from the quantity of node be M;Computing module, for according to formulaIt calculates current The first of host node is to slave number of nodes and another host node in copy reading list second to the slave number of nodes in copy reading list Amount, wherein R is default success rate, and N is in concentrator archives all from the quantity of node, TAFor M mesh of current primary node copy reading It marks from being averaged for node and copies logical time-consuming, TBLogical time-consuming, X are copied from being averaged for node for another M target of host node copy readingAIt is first To the quantity in copy reading list from node, XBFor second to the quantity in copy reading list from node;Third determining module, for true Determine M target preceding X from nodeAIt is a from first that node is current primary node to copy reading list, and M target is remained from node It is remaining from node be another host node second to copy reading list.
Optionally, instruction device includes: the 4th judgment module, for judging not being first from node to copy reading list In target in the case where, judge from node whether copy reading success;First return module, for judging that copy reading is successful In the case of, the successful message of copy reading is returned to supply target, and return to execute judge whether to copy reading list be empty step;The One return module, for returning to copy reading failure news to supply target, then passing through in the case where judging the successful situation of non-copy reading Second judgment module continues to judge whether described first to copy reading list be empty.
Optionally, heavily loaded device includes: clearing judgment module, for routing current for all copy readings from node Number record reset, and judge in concentrator archives it is all from node whether all by successfully copy reading;5th judgment module is used In in the case where judging not succeeded all copy reading, judge that the type of meter reading scheme is first scheme or alternative plan; 5th judgment module, in the case where judging is first scheme, judge current primary node whether based on copy host node, In, if it is judged that current primary node be master copy host node, then by concentrator archives not by copy reading successfully from the ground of node Location information is reloaded to first in copy reading list, so that current primary node by copy reading from node to not copied successfully It reads;Third loading module, for that will not reloaded from node successfully by copy reading in the case where judging is alternative plan To first in copy reading list, so that current primary node is not to successfully carrying out copy reading from node by copy reading, wherein will not by Copy reading is successfully reloaded to first after in copy reading list from node, alternatively, if it is judged that current primary node is not main Host node is copied, then continues to judge whether described first to copy reading list be empty by second judgment module.
Fig. 4 is a kind of signal of optionally more host node meter copying devices comprising bandwidth carrier according to an embodiment of the present invention Figure, as shown in figure 4, the device includes concentrator local communication circuit, routing module A (that is, host node A) and routing module B (that is, host node B), wherein routing module A and routing module B is also possible to bimodulus or multimode either single mode routing module Routing module, either built-in routing module, is also possible to external routing module, and have in routing module A and routing module B And only one is bandwidth carrier routing module.
As shown in figure 4, concentrator can interact after powering on routing module A and routing module B, to obtain routing module The address information of A and routing module B, operational mode information, from nodal information, and ensure the ground of routing module A and routing module B Location and consistent with archives in concentrator from nodal information.As shown in Figure 3, in embodiments of the present invention, routing module A mainly leads to The sendaisle TX1 and receiving channel RX1 for crossing serial port circuit 1 are communicated with concentrator;Routing module B mainly passes through serial port power The sendaisle TX2 and receiving channel RX2 on road 2 are communicated with concentrator.
Fig. 5 is the signal of another optionally more host node concentrators comprising bandwidth carrier according to an embodiment of the present invention Figure, as shown in figure 5, concentrator includes: identification device 51, the first determining device 52, instruction device 53,54 He of the second determining device Save set 55.
The meter reading mode and preset meter reading scheme of identification device current primary node and another host node for identification, And judge to supply target, identification device can also construct current primary node and another host node to copy reading list.
First determining device, for providing under Passive Mode to instruction device, current primary node needs the slave node of copy reading Address information.
Instruction device is used to indicate current primary node and carries out copy reading, or the current master of instruction aggressive mode to from node Node does not execute copy reading operation, or the first determining device of instruction provides next copy reading for wanting copy reading and believes from address of node Breath.
Second determining device, for the copy reading result and meter reading scheme according to current primary node to each host node wait copy It reads list and carries out dynamic update or heavy duty.
Save set, for being handled and being saved according to copy reading result of the meter reading scheme to current primary node.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (8)

1. a kind of more host node meter register methods comprising bandwidth carrier characterized by comprising
The meter reading mode of each host node is determined according to the operational mode information of at least two host nodes, wherein it is described extremely Few two host nodes are set in concentrator, and include bandwidth carrier host node, Mei Gesuo at least two host node State power information of the host node for copy reading electrical nodes;
The meter reading scheme of preset at least two host node of user is obtained, and according to the meter reading scheme constructs institute It is corresponding to copy reading list to state at least two host nodes, wherein the meter reading scheme is at least two host node to described The scheme of copy reading is carried out with the power information of electrical nodes;
Whether judgement described to copy reading list is empty, wherein if it is judged that being not sky, then according to the preset meter reading Scheme indicates at least two host node according to respective meter reading mode to the respective use to the slave node in copy reading list Power information carries out copy reading, and updates described to which, from address of node information, until described, to copy reading, list is empty in copy reading list;
If it is determined that described when list is empty for copy reading, then judge in concentrator archives with the presence or absence of not yet by copy reading successfully from Node, if it is present heavy duty is carried out to copy reading list to described according to the meter reading scheme, to described successful not by copy reading Slave node carry out copy reading, until the concentrator archives in it is all from node by copy reading success;
Wherein, corresponding according at least two host node of the meter reading scheme constructs to copy reading list includes: to judge institute Stating meter reading scheme is first scheme or alternative plan;If it is judged that be first scheme, then it will be all described from the ground of node It is corresponding in copy reading list that location is added at least two host node main host node of copying, and by least two host node In auxiliary copy that host node is corresponding to be set as empty to copy reading list;If it is judged that be the alternative plan, then will all it is described from It is corresponding in copy reading list that address of node is loaded into each host node, alternatively, determining each institute according to predetermined manner It is corresponding to copy reading list to state host node;
Whether judgement is described is sky includes: judge whether first to copy reading list be sky to copy reading list, wherein described first to Copy reading list is current primary node to copy reading list;
If it is determined that described, to copy reading, list is empty, then main according to the preset meter reading scheme instruction described at least two It includes: to obtain that node, which carries out copy reading to the respective power information to the slave node in copy reading list according to respective meter reading mode, Supply target provide from address of node information, the supply target is to be determined according to the meter reading mode of current primary node For providing the target for wanting the slave node of copy reading for the current primary node, wherein the supply target include concentrator or The current primary node itself;Judgement it is described from node whether be first to the node in copy reading list;If it is judged that being, then Indicate that the current primary node carries out copy reading from the power information of node to described.
2. being indicated the method according to claim 1, wherein the quantity of at least two host node is two The current primary node to it is described from the power information of node carry out copy reading include:
Judge whether the current primary node succeeds to the copy reading from node;
If it is judged that it is failed, then judge whether current time request is preset times to the number from node copy reading, Wherein, if it is judged that being the preset times, then judge that the type of the meter reading scheme is first scheme or second party Case, and handled from node according to judging result described, and after processing is completed, it returns to execution and judges the current main section Whether the first of point is empty step to copy reading list;If it is judged that not being the preset times, then directly returns to execute and sentence Broke for the first of current primary node the step of to copy reading list whether being sky table;
If it is judged that success, then label is described from node copy reading success, and to it is described carry out from the copy reading data of node from Reason;It is described from address of node information to be deleted in copy reading list described first;And judge the second of another host node It whether include described from node to copy reading list, wherein if it is judged that comprising described from node, then described second to copy reading It is deleted in list described from address of node information;Wherein, if it is judged that do not include it is described from node, alternatively, described the Two is described after the information of address of node to delete in copy reading list, return execute judge described first to copy reading list whether For empty step.
3. according to the method described in claim 2, it is characterized in that, the quantity of at least two host node be two,
The type of the meter reading scheme be the first scheme in the case where, according to the judging result to it is described from node into Row processing includes: described from address of node information to delete in copy reading list described first;Judge the current primary node It whether is that master at least two host node copies host node, wherein it is pre-set main section that the master, which copies host node, Point;If it is judged that being then to be added to another host node corresponding second to copy reading list from address of node information for described In, so that another host node is to remove in two host nodes from the power information of node described in another host node copy reading Host node except the current primary node, wherein be added to second to it in copy reading list from address of node for described Afterwards, or judge current primary node not and be it is main copy host node after, return execute judge described first to copy reading list whether For empty step;
The type of the meter reading scheme be the alternative plan in the case where, according to the judging result to it is described from node into Row processing includes: described from address of node information to delete in copy reading list described first, and is returned described in execution judgement Whether first to copy reading list be empty step.
4. according to the method described in claim 3, it is characterized in that, determining that each host node is corresponding according to predetermined manner Include: to copy reading list
Determine the period belonging to the current time;
Read the meter reading learning data of the current primary node and another host node within the affiliated period;
According to the meter reading learning data choose the current primary node and another host node copy reading success rate be all larger than or It is target from node that person, which is equal to the slave node of default success rate, wherein the target from the quantity of node be M;
According to formulaThe first of the current primary node is calculated to the slave section in copy reading list Point quantity and another host node second to the slave number of nodes in copy reading list, wherein R is the default success rate, N For in the concentrator archives all from the quantity of node, TAIt is the current primary node copy reading M targets from node Averagely copy logical time-consuming, TBLogical time-consuming, X are copied from being averaged for node for another host node copy reading M targetsAIt is described One to the quantity in copy reading list from node, XBFor described second to the quantity in copy reading list from node;
Determine the M target preceding X from nodeAIt is a from node be the current primary node described first to copy reading list, and And the M targets from node residue from described second that node is another host node to copy reading list.
5. the method according to claim 1, wherein judgement it is described from node whether be described first to copy reading After target in list, the method also includes:
If it is judged that described is not described first from node to the target in copy reading list, then judgement it is described from node whether Copy reading success;
If it is judged that copy reading success, then return to the successful message of copy reading to the supply target, and return described in execution judgement It whether is empty step to copy reading list;
If it is judged that non-copy reading success, then return to copy reading failure news to the supply target, and returns to execution and judge institute Whether state first to copy reading list is empty step.
6. the method according to claim 1, wherein to it is described to copy reading list carry out heavy duty, with to it is described not Copy reading is successfully carried out from node by copy reading, until all successfully including: by copy reading from node in the concentrator archives
Current routing resets all record from the number of copy reading of node, and judges all from node in concentrator archives Whether all by success copy reading;
If it is judged that all not judging that the type of the meter reading scheme is first scheme or second party then by success copy reading Case;
If it is judged that be the first scheme, then judge the current primary node whether based on copy host node, wherein if sentenced It is disconnected go out the current primary node be that master copies host node, then by concentrator archives not by copy reading successfully from address of node information Reload to described first in copy reading list so that the current primary node to it is described not by copy reading successfully from node into Row copy reading;
If it is judged that be the alternative plan, then by it is described not by copy reading successfully from node reload to described first to In copy reading list, so that the current primary node does not successfully carry out copy reading from node by copy reading to described,
Wherein, it is not reloaded from node successfully by copy reading to described first after in copy reading list, alternatively, such as by described Fruit judges the current primary node not and is that master copies host node, then returns to execution and judge whether described first to copy reading list be sky The step of.
7. a kind of more host node concentrators comprising bandwidth carrier characterized by comprising
Determining device determines the meter reading mould of each host node for the operational mode information according at least two host nodes Formula, wherein at least two host node is set in concentrator, and includes bandwidth carrier at least two host node Host node, each host node are used for the power information of copy reading electrical nodes;
Construction device is obtained, for obtaining the meter reading scheme of preset at least two host node of user, and according to At least two host nodes described in the meter reading scheme constructs are corresponding to copy reading list, wherein the meter reading scheme be it is described extremely Few two host nodes are to the scheme for carrying out copy reading with the power information of electrical nodes;
Whether the first judgment means are empty for judging described to copy reading list;
Instruction device, it is described extremely according to the preset meter reading scheme instruction in the case where judging not is empty Few two host nodes carry out copy reading to the respective power information to the slave node in copy reading list according to respective meter reading mode, And it updates described to which, from address of node information, until described, to copy reading, list is empty in copy reading list;
Second judgment means, for judgement it is described to copy reading list is empty in the case where, judge whether deposit in concentrator archives Not yet by copy reading successfully from node, wherein if it is present by heavily loaded device according to the meter reading scheme to it is described to Copy reading list carries out heavy duty, successfully not carry out copy reading from node by copy reading to described, until in the concentrator archives It is all successful by copy reading from node;
The acquisition construction device includes: first judgment module, for judging that the meter reading scheme is first scheme or second Scheme;First loading module, for if it is determined that it is described to copy reading, list is empty, and judge the case where being first scheme Under, will all it is described from address of node be added at least two host node it is main to copy routing corresponding in copy reading list, And copy that routing is corresponding to be set as empty to copy reading list for auxiliary at least two host node;Second loading module is used for Judge in the case where being the alternative plan, it will all described from address of node to be loaded into each host node corresponding To in copy reading list, alternatively, determining that each host node is corresponding to copy reading list according to predetermined manner;
Whether first judgment means include: the second judgment module, be empty for judging first to copy reading list, wherein institute It is current primary node to copy reading list that first, which is stated, to copy reading list;
The instruction device includes: acquisition module, for judge it is described to copy reading list is empty in the case where, obtain supply Target provide from address of node information, the supply target is is used for according to what the meter reading mode of current primary node was determined The target from node is provided for the current primary node, wherein the supply target includes concentrator or the current main section Point itself;Third judgment module, for judge it is described from node whether be first to the node in copy reading list, wherein it is described First to copy reading list be the current primary node to copy reading list;Indicating module, for judging from node to be first In the case where to the node in copy reading list, indicate that the current primary node carries out copy reading from the power information of node to described.
8. concentrator according to claim 7, which is characterized in that the indicating module includes:
First judging submodule, for judging whether the current primary node succeeds to the copy reading from node;
Second judgment submodule, in the case where judging that copy reading is failed, judging current time request to described from section Whether the number of point copy reading is preset times, wherein if it is judged that being the preset times, then passes through third judging submodule The type for judging the meter reading scheme is first scheme or alternative plan, and is carried out to described from node according to judging result Processing, whether and after processing is completed, returning and it is described to execute judgement to copy reading list is empty step;If it is judged that not being institute State preset times, then by second judgment module judge again the first of the current primary node to copy reading list whether be Empty table;
Mark submodule, in the case where judging successful situation, then label is described from node copy reading success, and to it is described from The copy reading data of node are handled;Submodule is deleted, for described from node to delete in copy reading list described first Address information;Second judgment submodule, for judging whether the second of another host node to copy reading list include described from section Point;Submodule is deleted, in the case where judging comprising described from node, described second to delete institute in copy reading list It states from address of node information;Wherein, if it is judged that from node described in not including, alternatively, described second to copy reading list Described in middle deletion after the information of address of node, continued to judge by second judgment module described first to copy reading list It whether is empty.
CN201611264941.1A 2016-12-30 2016-12-30 More host node meter register methods and concentrator comprising bandwidth carrier Active CN106683389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264941.1A CN106683389B (en) 2016-12-30 2016-12-30 More host node meter register methods and concentrator comprising bandwidth carrier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264941.1A CN106683389B (en) 2016-12-30 2016-12-30 More host node meter register methods and concentrator comprising bandwidth carrier

Publications (2)

Publication Number Publication Date
CN106683389A CN106683389A (en) 2017-05-17
CN106683389B true CN106683389B (en) 2019-09-27

Family

ID=58849595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264941.1A Active CN106683389B (en) 2016-12-30 2016-12-30 More host node meter register methods and concentrator comprising bandwidth carrier

Country Status (1)

Country Link
CN (1) CN106683389B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204110B (en) * 2017-05-23 2020-02-07 深圳智微电子科技有限公司 Method for rapidly reading meter data based on broadband network
CN108257375B (en) * 2017-12-29 2020-11-24 南昌市科陆智能电网科技有限公司 Power grid meter reading method and system
CN108922143B (en) * 2018-06-20 2020-06-23 宁波三星智能电气有限公司 Meter reading method for electric energy meter power connection
CN108845514B (en) * 2018-07-09 2021-07-23 宁波三星医疗电气股份有限公司 Ammeter data acquisition method based on link detection
CN108922157B (en) * 2018-07-09 2021-04-02 深圳市科陆电子科技股份有限公司 Self-learning intelligent meter reading method and system
CN109003432A (en) * 2018-08-10 2018-12-14 重庆物奇科技有限公司 Information copy reading method based on power-line carrier communication system
CN109003433A (en) * 2018-08-10 2018-12-14 重庆物奇科技有限公司 A kind of information copy module and its application
CN110677258A (en) * 2019-09-25 2020-01-10 北京富茂科技有限公司 Electricity consumption information processing method, device and equipment
CN112866830B (en) * 2019-11-27 2023-05-02 王建强 Meter reading method and meter reading device
CN112287003B (en) * 2020-09-24 2022-08-09 杭州海兴电力科技股份有限公司 Meter reading method and meter reading system
CN114374892B (en) * 2022-01-04 2023-05-26 烽火通信科技股份有限公司 Meter reading method and meter reading system based on HPLC

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137423A (en) * 1997-06-13 2000-10-24 Whisper Communications, Inc. System for communication with a remote meter interface
CN101136723A (en) * 2006-08-31 2008-03-05 上海协同科技股份有限公司 Self-adaptive electric power carrier wave concentrator
CN102142863A (en) * 2011-01-30 2011-08-03 重庆电力科学试验研究院 Data reporting method and system
CN103973517A (en) * 2014-05-14 2014-08-06 洛阳愿景科技有限公司 Dual-mode local communication module device for concentrator
CN204833686U (en) * 2015-08-13 2015-12-02 国网辽宁省电力有限公司 Bimodulus system of checking meter based on OFDM power line carrier and wireless
CN105427571A (en) * 2015-12-31 2016-03-23 天津市赛鸣科技有限公司 Binary channel communication remote meter reading monitoring and analysis system
CN105719453A (en) * 2016-01-27 2016-06-29 董冬 Meter reading management method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137423A (en) * 1997-06-13 2000-10-24 Whisper Communications, Inc. System for communication with a remote meter interface
CN101136723A (en) * 2006-08-31 2008-03-05 上海协同科技股份有限公司 Self-adaptive electric power carrier wave concentrator
CN102142863A (en) * 2011-01-30 2011-08-03 重庆电力科学试验研究院 Data reporting method and system
CN103973517A (en) * 2014-05-14 2014-08-06 洛阳愿景科技有限公司 Dual-mode local communication module device for concentrator
CN204833686U (en) * 2015-08-13 2015-12-02 国网辽宁省电力有限公司 Bimodulus system of checking meter based on OFDM power line carrier and wireless
CN105427571A (en) * 2015-12-31 2016-03-23 天津市赛鸣科技有限公司 Binary channel communication remote meter reading monitoring and analysis system
CN105719453A (en) * 2016-01-27 2016-06-29 董冬 Meter reading management method

Also Published As

Publication number Publication date
CN106683389A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106683389B (en) More host node meter register methods and concentrator comprising bandwidth carrier
US9024584B2 (en) Method and system for setting sequential identification to multi-slave in battery pack
CN106327847B (en) Power information collection copies method and system
CN107452992A (en) Power-balance for battery management communicates
Xu et al. Research on computing offloading strategy based on Genetic Ant Colony fusion algorithm
CN114933339A (en) Sewage treatment control method, cloud server and edge side equipment
CN109254582A (en) A kind of mobile robot promotes the implementation method of task execution efficiency
CN102387024B (en) Power consumption control method, management node and data processing center
CN103685574A (en) Service-oriented general Internet of Things resource distributing method
CN109003394A (en) A kind of public charging pile application method based on Internet of Things artificial intelligence
KR101923698B1 (en) Apparatus and method for providing emergency electrical power in multiple microgrids environment
CN114980252B (en) Low-power-consumption sleep control method and system for terminal equipment of Internet of things
KR101960688B1 (en) Method of managing power of Machine to Machine device, and network server for managing power of Machine to Machine device
CN111225398A (en) Micro-grid wireless sensor network energy consumption optimization method based on cooperative coverage
CN114675963A (en) Multi-task processing method based on equipment priority in photovoltaic 5G base station system
CN111913395B (en) Intelligent building energy-saving control method and system
CN113837452A (en) Mobile charging path planning method for underwater wireless sensor network
CN207283172U (en) The control of reactive power compensating group network system
CN113472649B (en) Wireless sensing node management method, electronic device and computer readable storage medium
CN106532722A (en) Control method and device of load power supply and micro-grid operation management device
CN118018337A (en) Measurement and control method and device for marathon type shallow sleep mode
CN115766300B (en) PoE power supply power management scheduling method and scheduling system
CN114770538B (en) Automatic inspection method for robot
CN202121346U (en) Controller of parallel charger
CN114936240B (en) Data center space-time transfer potential mining and evaluating method

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