The content of the invention
It is existing for solving it is an object of the invention to provide a kind of power line carrier ad hoc network, apparatus and system
Networking overlong time and the problem of across taiwan area meter reading in technology.
To reach above-mentioned purpose, technical solution proposed by the invention is:
A kind of power line carrier ad hoc network of the present invention, it includes:Each collecting device is monitored mutually the collection and is set
The carrier wave message for including networking message that preparation is sent, the operation of the collecting device is carried out according to the networking message received
Number distribution, to complete region networking;And main control device monitors the networking message that each collecting device is sent, according to reception
The networking message arrived carries out the regional number distribution of the collecting device, to complete taiwan area networking.
Further, the networking message carries a short address and a long address, wherein, the short address includes the fortune
Line number and the regional number, the long address include the mailing address of the main control device.
Further, each collecting device monitors mutually the carrier wave report for including networking message that the collecting device is sent
Text further includes:The collecting device powers on, and searches for and stores the communication information of coupled each measuring equipment, to form an institute
State the archive list of collecting device;And the collecting device initializes its number of operation and regional number respectively, to form one
The initial operating parameter table of the collecting device.
Further, the networking message that the basis receives carries out the operation number distribution of each collecting device,
Included with completing region networking:The collecting device includes at least one first collecting device and one second collecting device;Described
The long address that one collecting device carries in the networking message according to second collecting device received judges institute
State whether the second collecting device with it belongs to same taiwan area, if being not belonging to same taiwan area, continue to monitor the collection mutually setting
The networking message that preparation is sent;Otherwise according to first collecting device with being taken in the networking message of the second collecting device
The short address of band judges whether first collecting device and the second collecting device have obtained the operation number;It is if described
First collecting device and the second collecting device have obtained the operation number, then run a number distribution and terminate;Otherwise determine whether
Whether second collecting device has obtained the operation number;If second collecting device does not obtain the operation number, institute
Stating the first collecting device gives second collecting device distribution operation number, and an operation number distribution terminates;If second collection
Equipment has obtained the operation number, then second collecting device gives first collecting device distribution operation number, operation
Number distribution terminates;And line number to be shipped distribution terminates, first collecting device updates its operating parameter table, while to described second
Collecting device sends the carrier wave message for including the license message that networks, to realize the operating parameter table of first collecting device
It is synchronous with the operating parameter table of second collecting device.
Further, the networking message that the basis receives carries out the regional number distribution of the collecting device, with
Completing taiwan area networking includes:The main control device carries in the networking message according to first collecting device received
The long address judge whether first collecting device with it belongs to same taiwan area, if being not belonging to same taiwan area, continue
Monitor the networking message that the collecting device is sent;Otherwise taken according in the networking message of first collecting device
The short address of band judges whether first collecting device has obtained the regional number;If first collecting device has obtained
The regional number is taken, then regional number distribution terminates;If first collecting device does not obtain the regional number, described is judged
Whether one collecting device has obtained the operation number;If first collecting device has obtained the operation number, the master control
Equipment distributes the regional number to first collecting device, and regional number distribution terminates;If first collecting device does not obtain
It is described operation number, then the main control device to first collecting device respectively distribute the regional number and it is described run number, region
Number distribution terminates;And after treating regional number distribution, the main control device establishes taiwan area corresponding with first collecting device
Archive list, while the carrier wave message comprising the license message that networks is sent to first collecting device, to realize
The copy reading of each measuring equipment.
Further, the copy reading for realizing each measuring equipment includes:First collecting device receives the master control
The networking license message that equipment is sent, updates the regional number and operating parameter table of first collecting device, and with it is same
Remaining described collecting device in region realizes regional number synchronization, while sends the carrier wave message for including networking confirmation message
To the main control device;The networking confirmation message that the main control device is sent according to first collecting device, gets
Belong to the long address of remaining collecting device in the same area with first collecting device;The main control device is according to it
The long address of the remaining collecting device gets the archive list of remaining collecting device, at the same establish respectively and remaining
The one-to-one taiwan area archive list of collecting device;And the main control device is completed to each according to the taiwan area archive list
The copy reading of the metrical information of the measuring equipment.
A kind of power line carrier ad-hoc network devices of the present invention, it includes:Region group net unit and taiwan area networking unit, its
In, the region group net unit is used for each collecting device and monitors the carrier wave for including networking message that the collecting device is sent mutually
Message, the operation number that the collecting device is carried out according to the networking message received distributes, to complete region networking;And institute
State taiwan area networking unit and be used for the networking message that main control device monitors each collecting device transmission, according to the institute received
The regional number distribution that networking message carries out the collecting device is stated, to complete taiwan area networking.
Further, the region group net unit includes region monitoring module, operation distribution module and region synchronization mould
Block, wherein, the region monitors module and is used for the networking that each collecting device monitors mutually the collecting device transmission
Message;The operation distribution module is used for each collecting device and carries out the collection according to the networking message received
The operation number distribution of equipment;And the region synchronization module is used for realization the operation ginseng of each collecting device in the same area
The synchronization of number table.
Further, the taiwan area networking unit includes taiwan area monitoring module, regional number distribution module, taiwan area synchronization module
And copy module, wherein, the taiwan area monitors module and is used for the described of each collecting device transmission of main control device monitoring
Networking message;The regional number distribution module is used for the main control device and is adopted according to carrying out the networking message received
Collect the regional number distribution of equipment;The taiwan area synchronization module is used for realization the regional number of each collecting device in the same area
Synchronization, while send the carrier wave message comprising networking confirmation message to the main control device;And the copy module is used
In the main control device according to copy reading of the networking confirmation message completion received to each measuring equipment.
A kind of power line carrier self-organizing network system of the present invention, it includes:One carrier wave power line, at least a main control device,
An at least collecting device, at least a measuring equipment and above-mentioned power line carrier ad-hoc network devices.
Compared with prior art, a kind of power line carrier ad hoc network of the invention, apparatus and system, have with following
Beneficial effect:Networking message is actively sent by collecting device, improves networking speed, routing optimality speed and carrier network
Fault recovery speed, while reduce the workload of field technician;Pass through the communication of main control device and collecting device itself
Address rule, solves the problems, such as across taiwan area meter reading.
Embodiment
Before each embodiment is illustrated, each relational language that priority declaration is once used in the present invention will be helpful to this area
Those of ordinary skill more fully understands the present invention, but the present invention is not limited thereto.
Regional number:The inside group sequence number for the same taiwan area that collecting device is distributed when carrying out taiwan area networking by main control device.
For example, the inside group sequence number is distributed since 1, it is sequentially increased according to networking order, effective range is 1 ~ 98, initial value 255.
Operation number:The internal number of collecting device the same area assigned when carrying out region networking.For example, this is interior
Portion's numbering is distributed since 1, is sequentially increased according to networking order, and effective range is 1 ~ 98, initial value 255.
Short address:It is made of regional number and operation number, the short address of same taiwan area is unique.For example, the short address is
16 bits, high 8 bit represent regional number, and low 8 bit represents operation number.
Long address:That is the mailing address of collecting device, includes the mailing address of a main control device.For example, in same taiwan area
The effective range of mailing address of collecting device be 824100010001 ~ 824100019998, then taiwan area where collecting device
Main control device mailing address be 82410001.
Carrier wave message:Including networking message, network license message and networking confirmation message, wherein, networking message carries length
Address and short address etc.;The license message that networks carries long address, short address and operating parameter table etc., and networking confirmation message carries length
Address, short address and operating parameter table etc..
Operating parameter table:It is stored in main control device and collecting device, includes the length of each collecting device in the same area
Address and short address etc..
Archive list:It is stored in collecting device, includes the communication letter for each measuring equipment being connected with corresponding collecting device
Breath, wherein, the communication information of each measuring equipment includes the numbering and mailing address of each measuring equipment.
Taiwan area archive list:It is stored in main control device, including each measuring equipment being connected with corresponding collecting device is logical
Letter information, wherein, the communication information of each measuring equipment includes the numbering and mailing address of each measuring equipment.
Copy reading identifies:For whether identifying collecting device or measuring equipment by main control device copy reading, for example, 1 represents
Copy reading, 0 represents non-copy reading.
Below with reference to attached drawing, give the present invention further elaboration.
Referring to Fig. 1, a kind of power line carrier ad hoc network provided by the invention includes:
Step 101, each collecting device monitors mutually the carrier wave message for including networking message that each collecting device is sent, according to
The networking message received carries out the operation number distribution of each collecting device, to complete region networking.
Step 102, main control device monitors the carrier wave message for including networking message that each collecting device is sent, according to receiving
Networking message carry out the regional number distribution of each collecting device, to complete taiwan area networking.
Fig. 2-3 is referred to, Fig. 2 is the region networking flow of the power line carrier ad hoc network of one embodiment of the invention
Figure, Fig. 3 is the taiwan area networking flow chart of the power line carrier ad hoc network of one embodiment of the invention, in conjunction with Fig. 1-3 pairs of sheets
The power line carrier ad hoc network for inventing an embodiment is explained, and a collecting device is included at least with collecting device
Exemplified by an A and collecting device B:
Step 201a, collecting device A are powered on, and by carrier wave power line, are searched for and are stored coupled each measuring equipment
The communication information, with formed a collecting device A archive list.
Specifically, when collecting device A is just powered on, corresponding effective operation number and regional number are not yet obtained, then first to it
The operation number and regional number of itself are initialized respectively, and the initial value for making the two is 255, so as to form a collecting device A
Initial operating parameter table, which includes the long address and short address of collecting device A.
The archive list of collecting device A includes the communication information for each measuring equipment being connected with collecting device A, specifically includes
The numbering and mailing address of each measuring equipment.
The power up of remaining collecting device is similar with collecting device A, and details are not described herein.
Step 201, collecting device A monitors the networking message that remaining collecting device is periodically sent, while also periodically
Ground sends the networking message of itself to remaining collecting device.
Specifically, collecting device A first judges before periodically the networking message of itself is sent to remaining collecting device
Whether its own has obtained corresponding effective operation number, if having obtained corresponding effective operation number, which is made
Periodically sent for the composition of networking message to remaining collecting device;Otherwise, by the operation number after initialization(Initial value 255)
Composition as networking message is periodically sent to remaining collecting device.
Step 202, collecting device A receives the networking message of collecting device B transmissions, carries out operation number distribution, and update
The operating parameter table of itself, while the license message that networks is sent to collecting device B.
Specifically, Fig. 2A, the length that step 202a, collecting device A are carried in the networking message according to collecting device B are referred to
Address judges whether collecting device B with it belongs to same taiwan area(Whether the mailing address of the main control device i.e. in the two long address
Unanimously)If being not belonging to same taiwan area, return to step 201 continues to monitor the networking report that remaining collecting device is periodically sent
Text.Otherwise, according to the short address carried in the networking message of collecting device A and collecting device B, it is transferred to step 202b i.e. judgement and adopts
Whether collection device A has obtained corresponding effective operation number with collecting device B.
Step 202b, if collecting device A has obtained corresponding effective operation number, operation number point with collecting device B
With end, region networking terminates.Otherwise, it is transferred to step 202c and determines whether collecting device B has obtained and is corresponding with
The operation number of effect.
Step 202c, if collecting device B not yet obtains corresponding effective operation number(I.e. its operation number is initial value 255),
Then collecting device A is corresponding with the operation number of effect to collecting device B distribution one, and is transferred to step 202d.For example, collecting device A
Operation number is 1, then the operation number of collecting device B is arranged to 2;Or the operation number of collecting device A is initial value 255(I.e.
Not yet obtain corresponding effective operation number), then collecting device A the operation number of itself is arranged to 1, by the operation of collecting device B
Number it is arranged to 2.If collecting device B has obtained corresponding effective operation number, collecting device B is corresponded to collecting device A distribution one
Effective operation number, and it is transferred to step 202d.
Step 202d, after operation number distribution, collecting device A updates the operating parameter table of itself, while is set to collection
Standby B sends the license message that networks, wherein, the correspondence that collecting device B acquisitions are carried in networking license message is effectively run
Number and collecting device A renewal after operating parameter table, the collecting device A renewal after operating parameter table include collecting device A with
The long address and short address of collecting device B, specifically, the short address include collecting device A and collection after operation number distribution
The operation number of equipment B.
Step 203, collecting device B receives the networking license message of collecting device A transmissions, realizes and transports with collecting device A
Row parameter list is synchronous.
Specifically, collecting device B receive collecting device A transmission networking license message, update itself operation number and
Operating parameter table, and a networking confirmation message is sent to collecting device A, so as to complete between collecting device A and collecting device B
Operating parameter table is synchronous.Operating parameter table after collecting device B renewals includes the long address of collecting device A and collecting device B
And short address.In the present embodiment, collecting device B only have updated itself institute part not to be covered, the i.e. long ground of collecting device A
Location and short address, in another embodiment of the invention, collecting device B regard the operating parameter table of collecting device A as itself
Operating parameter table carry out all replacing renewal, the present invention is not limited thereto.
Above step to be done, then complete the region networking between collecting device A and collecting device B, in the same area
Region networking step between remaining collecting device is similar, the region networking step between each collecting device in remaining region
Rapid also similar, details are not described herein.
Step 204, main control device after the power is turned on, by carrier wave power line, monitors the group that each collecting device is periodically sent
Network packet.
Step 205, main control device receive collecting device A transmission networking message, carry out regional number distribution, and establish with
The corresponding taiwan area archive lists of collecting device A, while networking license message is sent to collecting device A.
Specifically, Fig. 3 A, step 205a, the length that main control device carries in the networking message according to collecting device A are referred to
Address judges whether collecting device A with it belongs to same taiwan area(That is the mailing address of the main control device and collecting device A long addresses
In main control device mailing address it is whether consistent)If being not belonging to same taiwan area, return to step 204 continues to monitor each collection
The networking message sent to device periodically.Otherwise, according to the short address carried in the networking message of collecting device A, it is transferred to step
Rapid 205b judges whether collecting device A has obtained corresponding effective regional number.
Step 205b, if collecting device A has obtained corresponding effective regional number, regional number distribution terminates, and is transferred to step
207.If collecting device A not yet obtains corresponding effective regional number(I.e. its regional number is initial value 255), then it is transferred to step 205c
Judge whether collecting device A has obtained corresponding effective operation number.
Step 205c, if collecting device A has obtained corresponding effective operation number, main control device is distributed to collecting device A
One is corresponding with the regional number of effect, and is transferred to step 205d.If collecting device A not yet obtains corresponding effective operation number(I.e. it is transported
Line number is initial value 255), then to collecting device A, respectively distribution one is corresponding with regional number and the operation number of effect to main control device, and is transferred to
Step 205d.By step 205c, even if main control device is first listened to transmitted by the collecting device for not yet carrying out region networking
Networking message, follow-up taiwan area networking step can be continued to complete by remaining on, and region group is re-started without return to step 201
Net, so that the networking flow of collecting device is simpler flexibly.
Step 205d, after regional number distributes, main control device establishes taiwan area archive list corresponding with collecting device A,
Networking license message is sent at the same time to collecting device A, wherein, networking license message includes the correspondence of collecting device A acquisitions
Effective regional number.Step 206, collecting device A receives the networking license message of main control device transmission, updates the region of itself
Number and operating parameter table, and realize that regional number is synchronous with remaining collecting device in the same area, while send networking and confirm report
Text is to main control device.
Specifically, collecting device A is after the regional number and operating parameter table of itself has been updated, the regional number after this is updated
By carrier wave power line, be sent to remaining each collecting device included in its operating parameter table, thus complete collecting device A with
Regional number between remaining collecting device in the same area is synchronous.In another embodiment of the invention, regional number is synchronous
Process can also be that the process synchronous with operating parameter table is similar, and the present invention is not limited thereto.
Meanwhile networking confirmation message is sent to main control device, wherein, carry collecting device A in the networking confirmation message
Operating parameter table after renewal, the collecting device A renewal after operating parameter table include the same area in each collecting device more
Common regional number after new.By the operating parameter table after the renewal, main control device can be obtained belongs to same with collecting device A
The relevant information of remaining collecting device in one region, to prevent that it is different that main control device from distributing the collecting device in the same area
Regional number.
Step 207, main control device receives the networking confirmation message of collecting device A transmissions, completes to each measuring equipment
Copy reading.
Specifically, step 207a, the collection carried in the networking confirmation message that main control device is sent according to collecting device A are set
The operating parameter table of standby A, gets the relevant information of remaining collecting device belonged to collecting device A in the same area, wherein,
Relevant information includes long address and short address, specifically, the mailing address of long address, that is, collecting device, it includes collecting device institute
In the mailing address of the main control device of taiwan area, short address includes operation number and the regional number of collecting device.
Step 207b, main control device get in remaining collecting device according to the mailing address of remaining collecting device and store
Archive list, while established respectively according to the archive list of remaining collecting device one-to-one with remaining collecting device
Taiwan area archive list, this taiwan area archive list also include the communication information for each measuring equipment being connected with corresponding collecting device, tool
Body includes the numbering and mailing address of each measuring equipment.In another embodiment of the invention, establish corresponding with each collecting device
Taiwan area archive list can also be in the form of covering establish, with cost-effective, in other words, on main control device, only build
A taiwan area archive list is found to be corresponding in turn in different collecting devices, i.e., when the taiwan area archive list is corresponding with collecting device A
When, main control device completes the copy reading for each measuring equipment being connected with collecting device A, when the taiwan area archive list and collecting device B
Main control device completes the copy reading for each measuring equipment being connected with collecting device B during to corresponding to, and the present invention is not limited thereto.
Step 207c, main control device are sequentially completed to each metering according to the numbering of each measuring equipment in taiwan area archive list
The copy reading of the mailing address of equipment, while copy reading mark is arranged to copy reading, so as to complete the metering letter to each measuring equipment
The copy reading of breath.
Above step to be done, that is, complete main control device and collecting device A belong to each collecting device in the same area it
Between taiwan area networking, the taiwan area networking step between main control device and each collecting device in remaining region is similar, herein not
Repeat again.
In another embodiment of the invention, can be according to above-mentioned step if thering is new collecting device or measuring equipment to network
Suddenly power line carrier ad hoc network is realized, details are not described herein.
Referring to Fig. 4, a kind of power line carrier ad-hoc network devices provided by the invention include:Region group net unit 3 and platform
District's groups net unit 4.Wherein, what region group net unit 3 was used for that each collecting device to monitor mutually that each collecting device sends includes networking
The carrier wave message of message, the operation number that each collecting device is carried out according to the networking message received distributes, to complete region networking;
Taiwan area networking unit 4 is used for main control device and monitors the carrier wave message for including networking message that each collecting device is sent, according to reception
The networking message arrived carries out the regional number distribution of each collecting device, to complete taiwan area networking.
Specifically, region group net unit 3 includes region monitoring module 31, operation distribution module 32 and region synchronization module
33.Wherein, the networking message that module 31 monitors mutually each collecting device transmission for each collecting device is monitored in region;Operation number point
It is used to each collecting device with module 32 be distributed according to the operation number of each collecting device of networking message progress received;Region is synchronous
Module 33 is used for realization the synchronization of the operating parameter table of each collecting device in the same area.
Taiwan area networking unit 4 includes taiwan area and monitors module 41, regional number distribution module 42, taiwan area synchronization module 43 and copy reading
Module 44.Wherein, taiwan area monitors the networking message that module 41 is used for each collecting device transmission of main control device monitoring;Regional number distributes
Module 42 is used for the regional number distribution that main control device carries out each collecting device according to the networking message received;Taiwan area synchronization module
43 are used for realization the synchronization of the regional number of each collecting device in the same area, while send the carrier wave for including networking confirmation message
Message is to main control device;Copy module 44 is used for main control device and is completed according to the networking confirmation message received to each measuring equipment
Copy reading.
A kind of power line carrier self-organizing network system provided by the invention includes:Carrier wave power line, at least a main control device, extremely
Few a collecting device, at least a measuring equipment and above-mentioned power line carrier ad-hoc network devices.Wherein, main control device passes through carrier wave electricity
The line of force monitors the carrier wave message for including networking message that each collecting device is sent;Collecting device is searched for and deposited by carrier wave power line
Store up the communication information of coupled each measuring equipment, to form the archive list of the collecting device, and with remaining collecting device
The networking message that each collecting device is periodically sent is monitored mutually;Power line carrier ad-hoc network devices then pass through carrier wave power line
Realize the ad hoc network of main control device, collecting device and measuring equipment.
In conclusion a kind of power line carrier ad hoc network of the present invention, apparatus and system, wherein, which carries
Ripple ad hoc network method monitors mutually the carrier wave message for including networking message of each collecting device transmission by each collecting device, passes through
Collecting device carries out the distribution of operation number, and the distribution of regional number is carried out by main control device, to complete power line carrier certainly
Networking, not only withouts waiting for main control device and installs in advance, but also changes intrinsic midsequent communication mode, so as to carry
High networking speed, routing optimality speed and carrier network fault recovery speed, while reduce the work of field technician
Measure;In addition, the power line carrier ad hoc network passes through the communication of the main control device set in the long address that is carried in networking message
Address, is made whether the judgement for belonging to same taiwan area, so as to solve the problems, such as across taiwan area meter reading during ad hoc network.
The above, is only presently preferred embodiments of the present invention, is not intended to limit embodiment of the present invention, this area is general
Logical technical staff's central scope according to the present invention and spirit, can very easily carry out corresponding flexible or modification, therefore originally
The protection domain of invention should be subject to the protection domain required by claims.