Summary of the invention
Main purpose of the present invention, for providing method and the concentrator of concentrator MANET in a kind of CFDA, can promote efficiency and the reliability of CFDA network.
The present invention proposes the method for concentrator MANET in a kind of CFDA, comprises step:
After concentrator receives the ID mapping table of the collector that main website sends, enter and prepare the networking stage;
After transmission networking beacon, enter field intensity collection phase;
Carry out field intensity computing, enter and set up routing phase.
Preferably, after described concentrator receives the ID mapping table of the collector that main website sends, enter the step preparing the networking stage and specifically comprise:
After concentrator receives ID mapping table, determining that described ID mapping table is is batch or increment;
When for increment, judge whether initiatively to add record accordingly according to described ID mapping table; If any, then send field intensity and collect instruction; Otherwise, as batch process;
When for batch, calculate according to described ID mapping table and determine channel, and sending networking beacon and carry out networking.
Preferably, described field intensity is collected and is specifically comprised:
Scan in specified channel group;
After Received signal strength frame, judge that whether described signal frame is legal;
When described signal frame is legal, record the field intensity information comprised in described signal frame.
Preferably, described field intensity is collected and is comprised:
Field intensity collection after sending the field intensity collection after networking beacon and sending field intensity collection instruction.
Preferably, described in carry out field intensity computing, enter the step setting up routing phase and specifically comprise:
Carry out field intensity computing, configure mulitpath to each collector and form allocation list;
Described allocation list is sent to collector;
Receive the feedback information of collector.
The present invention also proposes a kind of concentrator, comprising:
Prepare networking module, for receive main website send collector ID mapping table after, enter prepare the networking stage;
Field intensity collection module, for after transmission networking beacon, enters field intensity collection phase;
Configuration module, for carrying out field intensity computing, entering and setting up routing phase.
Preferably, described preparation networking module specifically for:
After receiving ID mapping table, determining that described ID mapping table is is batch or increment;
When for increment, judge whether initiatively to add record accordingly according to described ID mapping table; If any, then send field intensity and collect instruction; Otherwise, as batch process;
When for batch, calculate according to described ID mapping table and determine channel, and sending networking beacon and carry out networking.
Preferably, described field intensity collection module specifically for:
Scan in specified channel group;
After Received signal strength frame, judge that whether described signal frame is legal;
When described signal frame is legal, record the field intensity information comprised in described signal frame.
Preferably, described field intensity is collected and is comprised:
Field intensity collection after sending the field intensity collection after networking beacon and sending field intensity collection instruction.
Preferably, described configuration module specifically for:
Carry out field intensity computing, configure mulitpath to each collector and form allocation list;
Described allocation list is sent to collector;
Receive the feedback information of collector.
In CFDA of the present invention, the method for concentrator MANET and concentrator, can set up the network of high efficiency, high stability, carry out data acquisition.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
CFDA (CellularFixed-wirelessDigitalAccess) microcellulor formula stationary nodes wireless data access system is a kind of wireless data access system of MESH network architectural feature of self-organizing.
With reference to Fig. 1, an embodiment of the method for concentrator MANET in a kind of CFDA of the present invention is proposed.The method can comprise:
After step S10, concentrator receive the ID mapping table of the collector that main website sends, enter and prepare the networking stage;
Step S11, after transmission networking beacon, enter field intensity collection phase;
Step S12, carry out field intensity computing, enter and set up routing phase.
With reference to Fig. 2, in above-mentioned CFDA, mainly comprise DAU (DistributingAccessUnit, distribution access unit), CAC (CellularAccessCenter, honeycomb access center) and gateway 10 (GPRS gateway).In CFDA, DAU and CAC is and the data acquisition equipment of user and data processing equipment, is interconnected, co-ordination, the data acquisition connecting system that common formation is complete.Therefore, CFDA is actually a communication middleware; The data collected are given DAU and are sent by the data acquisition equipment of user; CAC receives the data that DAU sends, then is given user data treatment facility carried out subsequent treatment by above-mentioned GPRS (GeneralPacketRadioService, general packet radio service technology) gateway.In the present embodiment, this data acquisition equipment can be collector 30, and this user data treatment facility can be the main website 100 in electric power system.
Utilize the information collecting platform that CFDA MANET is set up, using the descending acquisition channel of CFDA wireless self-networking as concentrator 20, realize the transparent transmission of the data between concentrator 20 and ammeter, concrete mode is as follows: using ammeter as a stoichiometric point, also be a data collection point, DAU is arranged on ammeter side simultaneously; The installation of DAU both can be embedded in ammeter, forms integrated design, become CFDA radio ammeter with ammeter, also can be arranged at collector 30 simultaneously and be connected with 485 buses of ammeter, form 485 collectors 30; CAC is arranged on concentrator 20 side, CAC can be embedded in concentrator 20 by concentrator 20, also can be connected with concentrator 20 by 485 or 232 interfaces.After building above mechanism, networking can be opened, form the downlink network of CFDA, this network can form the transparent communication port between concentrator 20 and ammeter, realize the transparent data collection between ammeter and concentrator 20, concentrator 20 can pass through 645 stipulations, directly reads the parameter of ammeter arbitrarily in net.In the present embodiment, DAU is arranged at collector 30, CAC and is arranged at concentrator 20.The CAC being arranged on concentrator 20 can communicate with between the DAU being arranged on collector 30, and DAU is communicated by protocol forward according to specified circuit each other.
After above-mentioned concentrator 20 receives the meter reading instruction of main website 100, this meter reading instruction is sent to the collector 30 of next stage; Receive the mode of collector 30 by multihop routing of this meter reading instruction, then forward other collector 30 further; The collector 30 receiving this meter reading instruction can gather the ammeter parameter associating ammeter with it, and this ammeter parameter at least comprises the electricity consumption number of degrees etc. shown by ammeter; A collector 30 can associate with one or more ammeter, gathers ammeter parameter; This collector 30, after collecting ammeter parameter, is forwarded by other collectors 30 or directly feeds back to concentrator 20; This concentrator 20, collecting in CFDA network after ammeter parameter, sends to main website 100 by GPRS gateway, so that main website 100 completes be optimized the functions such as scheduling, control or charging to ammeter.
Above-mentioned CFDA ad hoc network information collection platform, before carrying out automatic coppying meter, needs first to carry out CFDA MANET.
Above-mentioned main website 100 can be used for planning network structure, determines microcellulor region and quantity, forms honeycomb; And the encoding scheme of CAC is determined according to this honeycomb; And according to the encoding scheme of this CAC, dividing frequency resource, to CAC, determines physical I D and the logic ID of DAU, the ID mapping table of both formation.
Be provided with the concentrator 20 of CAC, can download this ID mapping table from this main website 100, and after determining that all DAU are online, instruction CAC road construction is by, group network.
Can specifically comprise with reference to Fig. 3, above-mentioned steps S10:
After step S101, concentrator 20 receive ID mapping table, determining that described ID mapping table is is batch or increment; When for increment, carry out step S102; When for batch, carry out step S103;
Step S102, judge whether initiatively to add record accordingly according to described ID mapping table; If any, carry out step S1021; Otherwise, as batch process, carry out step S103;
Step S1021, transmission field intensity collect instruction;
Step S103, calculate according to described ID mapping table and determine channel, and sending networking beacon and carry out networking.
After above-mentioned concentrator 20 receives the ID mapping table of collector 30, the quantity of the collector 30 newly adding network can be determined according to this ID mapping table, when collector 30 quantity newly adding network is more, batch can be confirmed as; When newly adding collector 30 negligible amounts of network, increment can be confirmed as.Above-mentioned batch and the judgement of increment, can carry out according to the numerical value preset.This numerical value is determined according to actual conditions.
When for batch, above-mentioned concentrator 20 carries out networking for the collector 30 in this ID mapping table, calculates and determines transmission channel and send networking beacon.
When for increment, according to this ID mapping table, above-mentioned concentrator 20 judges whether above-mentioned collector 30 has the record initiatively adding network more further; If any, then this concentrator 20 directly can send field intensity and collect instruction, collects the field intensity information of this collector 30, makes it add network.Otherwise, will can initiatively not add the collector 30 of Network records as batch process.
This initiatively adds the record of network, is the DAU (collector 30) do not networked initiatively initiates record from the request of networking to CAC (concentrator 20).Function that the process that this request networks is " free networking ", its detailed process is described in detail as follows:
After networking completes, the situation of leak source (namely having DAU not network) may be there is; Meanwhile, in the Web vector graphic process of networking, new DAU node all may be had at any time to need to add.Above-mentioned two class DAU nodes are in free state, need initiatively to apply for networking.
Above-mentioned free DAU node sends the initiatively request of networking at last channel of each channel group, then scanning accepting state is entered, after scanning certain hour (according to timeslot number value about 6 ~ 10 minutes), if do not receive response, switching channels is sent out again the request of networking, until all channel groups distribute.If receive the networking request of free DAU node at the DAU node of net state, can reply at the first channel of each channel group.If free DAU receives the response of other DAU node, record response DAU node address (ID) is saved in field intensity set, and the form of record is consistent with beacon field intensity set.Until all response time slots are complete, then from the DAU node that can get in touch with, an optimal path is selected to report CAC.CAC will record the ID of this DAU, and judge whether corresponding DAU belongs to its network compass of competency according to this ID; In this way, then field intensity collection and configuration are carried out to this DAU; Otherwise, disregard.If above-mentioned free DAU, between listen period, receives networking beacon, then abandon the application that networks, enter beacon group network process.
With reference to Fig. 4, above-mentioned field intensity is collected and can specifically be comprised:
Step S104, to scan in specified channel group;
Step S105, after Received signal strength frame, judge that whether described signal frame is legal;
Step S106, when described signal frame is legal, record the field intensity information comprised in described signal frame.
Above-mentioned field intensity is collected and can be comprised: the field intensity sent after the field intensity collection after networking beacon and transmission field intensity collection instruction is collected.Field intensity after this transmission networking beacon is collected and is referred to, after above-mentioned concentrator 20 sends networking beacon, above-mentioned collector 30 need forward this networking beacon classification, and the collector 30 first receiving networking beacon externally can send field intensity information; This concentrator 20 can the interscan of specified channel group, receives the field intensity information that (the such as ground floor etc.) collector 30 near it sends; After reception, carry out the legitimate verification of frame, whether the actual channel (number) that first can judge this reception is allocated channel (number), judge whether central site network ID (concentrator ID) is correct again, when this actual channel is allocated channel and central site network ID is correct, be then defined as legal frame; Then can store this frame and record field intensity information; Now, the forwarding cycle of collector 30 pairs of networking beacons does not also terminate, and this concentrator 20 does not yet send field intensity and collects instruction.
Above-mentioned concentrator 20 after the forwarding end cycle of this networking beacon, can send field intensity and collects instruction, carry out field intensity collection.The forwarding cycle of this networking beacon, can according to collector 30 carry out the forwarding of networking beacon circle (layer) number calculate.
Above-mentioned concentrator 20, after transmission field intensity is collected, by scanning in specified channel group, collects the field intensity information that collector 30 returns; And validity judgement is carried out to the frame collected, after being defined as legal frame, corresponding field intensity information can be recorded.
Above-mentioned concentrator 20 also can collect situation according to the field intensity information of collector 30, judges whether field intensity has collected.As unfinished, then can continue to send field intensity and collect instruction, carry out field intensity collection; Otherwise, then can carry out field intensity computing, enter networking configuration phase.
With reference to Fig. 5, above-mentioned steps S12 specifically comprises:
Step S121, carry out field intensity computing, form allocation list to each collector configuration mulitpath;
Step S122, described allocation list is sent to collector;
The feedback information of step S123, reception collector.
Above-mentioned concentrator 20, after field intensity collects into, namely can be collector 30 and sets up route.This concentrator 20 carries out field intensity computing to collector 30 field intensity of collecting, and calculates communication path, and configures 3 communication paths for each collector 30, and sets up allocation list and store; Then allocation list is sent to collector 30, then receives the feedback information of collector 30, to judge that whether configuration is successful; After all collector 30 of above-mentioned ID mapping table all configuration successful, then networking terminates.Thus, the network of high efficiency, high stability can be set up, carry out data acquisition.
The maximum route degree of depth of above-mentioned CFDA network is 7 grades, and CFDA is MESH network, has many routes to realize, but ageing in order to consider, is one group with three routes, carries out the computing time of time-out.The computing formula (1) of concrete time-out time:
T=(transmission byte number * T1+T2) * 7*2*3 (1)
Wherein, T1 can be the transmission time of a byte; T2 can be the lead code time in transmitting procedure.
With reference to Fig. 6, an embodiment of a kind of concentrator of the present invention is proposed.This concentrator 20 can comprise: prepare networking module 201, field intensity collection module 202 and configuration module 203; This preparation networking module 201, for receive main website send collector 30 ID mapping table after, enter prepare the networking stage; This field intensity collection module 202, for after transmission networking beacon, enters field intensity collection phase; This configuration module 203, for carrying out field intensity computing, entering and setting up routing phase.
Above-mentioned preparation networking module 201 specifically for: after receiving ID mapping table, determining that described ID mapping table is is batch or increment; When for increment, judge whether initiatively to add record accordingly according to described ID mapping table; If any, then send field intensity and collect instruction; Otherwise, as batch process; When for batch, calculate according to described ID mapping table and determine channel, and sending networking beacon and carry out networking.
After above-mentioned preparation networking module 201 receives the ID mapping table of collector 30, the quantity of the collector 30 newly adding network can be determined according to this ID mapping table, when collector 30 quantity newly adding network is more, batch can be confirmed as; When newly adding collector 30 negligible amounts of network, increment can be confirmed as.Above-mentioned batch and the judgement of increment, can carry out according to the numerical value preset.This numerical value is determined according to actual conditions.
When for batch, above-mentioned preparation networking module 201 carries out networking for the collector 30 in this ID mapping table, calculates and determines transmission channel and send networking beacon.
When for increment, according to this ID mapping table, above-mentioned preparation networking module 201 judges whether above-mentioned collector 30 has the record initiatively adding network more further; If any, then directly send field intensity by field intensity collection module 202 and collect instruction, collect the field intensity information of this collector 30, make it add network.Otherwise, will can initiatively not add the collector 30 of Network records as batch process.
Above-mentioned field intensity collection module 202 specifically for: scan in specified channel group; After Received signal strength frame, judge that whether described signal frame is legal; When described signal frame is legal, record the field intensity information comprised in described signal frame.Above-mentioned field intensity is collected and is comprised: the field intensity sent after the field intensity collection after networking beacon and transmission field intensity collection instruction is collected.
Field intensity after this transmission networking beacon is collected and is referred to, after above-mentioned preparation networking module 201 sends networking beacon, above-mentioned collector 30 need forward this networking beacon classification, and the collector 30 first receiving networking beacon externally can send field intensity information; This field intensity collection module 202 can the interscan of specified channel group, receives the field intensity information that (the such as ground floor etc.) collector 30 near it sends; After reception, carry out the legitimate verification of frame, whether the actual channel (number) that first can judge this reception is allocated channel (number), judge whether central site network ID (concentrator ID) is correct again, when this actual channel is allocated channel and central site network ID is correct, be then defined as legal frame; Then can store this frame and record field intensity information; Now, the forwarding cycle of collector 30 pairs of networking beacons does not also terminate, and this field intensity collection module 202 does not yet send field intensity and collects instruction.
Above-mentioned field intensity collection module 202 after the forwarding end cycle of this networking beacon, can send field intensity and collects instruction, carry out field intensity collection.The forwarding cycle of this networking beacon, can according to collector 30 carry out the forwarding of networking beacon circle (layer) number calculate.
Above-mentioned field intensity collection module 202, after transmission field intensity is collected, by scanning in specified channel group, collects the field intensity information that collector 30 returns; And validity judgement is carried out to the frame collected, after being defined as legal frame, corresponding field intensity information can be recorded.
Above-mentioned field intensity collection module 202 also can collect situation according to the field intensity information of collector 30, judges whether field intensity has collected.As unfinished, then can continue to send field intensity and collect instruction, carry out field intensity collection; Otherwise, then can carry out field intensity computing, enter networking configuration phase.
Above-mentioned configuration module 203 specifically for: carry out field intensity computing, form allocation list to each collector configuration mulitpath; Described allocation list is sent to collector; Receive the feedback information of collector.
Above-mentioned configuration module 203 can after field intensity collects into, carry out field intensity computing to collector 30 field intensity of collecting, and calculates communication path, and configures 3 communication paths for each collector 30, and sets up allocation list and store; Then allocation list is sent to collector 30, then receives the feedback information of collector 30, to judge that whether configuration is successful; After all collector 30 of above-mentioned ID mapping table all configuration successful, then networking terminates.Thus, the network of high efficiency, high stability can be set up, carry out data acquisition.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.