Based on power line carrier system and the network-building method thereof of path cognition
Technical field
The present invention relates to power line carrier technology field, particularly relate to a kind of power line carrier system based on path cognition and network-building method thereof.
Background technology
Radio communication and power line carrier communication all can be applicable to adapted electrical domain, power line carrier affects larger by Power grid structure, when changes such as mains supply path switchings, power line carrier communication can be caused to interrupt, and the impact of radio communication climate, surrounding enviroment is more serious.Present stage is wireless with power line carrier two kinds of communication modes by setting up at part adapted power station point, realizes radio communication and power line carrier communication merges, and many data upload paths can be made optional, improve adapted power station point communication robustness and stability.But existing medium-voltage carrier network mainly adopt 1 much more main from mode networking, data upload path, only by main carrier device forwards, is difficult to realize radio communication and power line carrier communication merges.
Band power line carrier equipment is narrowed in the patent No. a kind of networking based on carrier wave time service that has been the disclosure of the invention of CN201310674537.1, comprise main carrier equipment and from carrier equipment, described main carrier equipment is connected with electrical power distribution automatization system by adopting RJ45 network interface, is connected from carrier equipment by adopting RJ45 network interface with distribution power automation terminal.Therefore its adopt be equally 1 much more main from mode networking, radio communication can not be realized and power line carrier communication merges.
Summary of the invention
Technical problem to be solved by this invention is, a kind of power line carrier system based on path cognition and network-building method thereof are provided, achieve radio communication and power line carrier communication merges, make many, data upload path optional, improve robustness and the stability of adapted electricity site communication.
In order to solve the problems of the technologies described above, the invention provides a kind of power line carrier system based on path cognition, comprise main carrier equipment, some from carrier equipment and some backup path carrier equipments, described main carrier equipment is connected with distribution system by wire transmission network, and described backup path carrier equipment is connected with distribution system by cordless communication network; Described main carrier equipment, to be somely all connected to power line from carrier equipment and some backup path carrier equipments;
Described main carrier equipment is used for forwarding data and uploads path, described from carrier equipment be used for according to communication link state to backup path carrier equipment send backup certification, when described backup path carrier equipment is used for or main carrier equipment fault invalid at described main carrier equipment first line of a couplet passage, backup authentication number according to receiving elects a backup path carrier equipment to switch to main carrier equipment from some backup path carrier equipments, carries out path switching.
Further, the processor of described main carrier equipment is loaded with carrier wave analog circuit control unit, authentication ' unit, carrier wave network address administrative unit and activestandby state monitoring unit, the described processor from carrier equipment is loaded with authentication ' unit and link communication condition monitoring unit, the processor of described backup path carrier equipment is loaded with authentication ' unit and backup main carrier recommendation unit;
Described carrier wave analog circuit control unit is used for described main carrier equipment and controls analog-to-digital conversion and the modulation /demodulation that described AFE (analog front end) carries out data;
The authentication ' unit of described main carrier equipment is used for described main carrier equipment and regularly issues networking verify data frame, and receive the networking request sent according to described networking verify data frame from carrier equipment or backup path carrier equipment, and return authentication response, until the carrier equipment of required networking all forms carrier network after certification;
The described authentication ' unit from carrier equipment or described backup path carrier equipment is used for according to described networking verify data frame, sends the request of networking, and receive the authentication response returned to described main carrier equipment;
Described carrier wave network address administrative unit is used for the MAC Address that described main carrier equipment collects each carrier equipment in described carrier network, and the MAC Address of distribution network address and each carrier equipment is bound, afterwards the network address of distribution is handed down in network from carrier equipment or backup path carrier equipment, record the address table of the carrier equipment of described carrier network and be handed down to all backup path carrier equipments;
Described link communication condition monitoring unit judges communication link state from carrier equipment according to the carrier signal power the communication link between backup path carrier equipment for described, and sends backup certification to the backup path carrier equipment that communication link state is best;
Described activestandby state monitoring unit be used for described main carrier equipment by independently to perceive first line of a couplet passage invalid or itself breaks down time start active-standby switch process, and to backup path carrier equipment broadcast transmission master/slave switchover command frame;
Described backup main carrier recommendation unit is used for backup path carrier equipment according to the described master/slave switchover command frame received, and selects to receive the maximum backup path carrier equipment of backup certification and activates as current main carrier equipment.
Further, described main carrier equipment, some is all the carrier equipment that internal hardware structure is identical from carrier equipment with some backup path carrier equipments, all comprise processor, memory, power module, Ethernet chip, AFE (analog front end) and equipment interface, described processor respectively with described memory, power module, Ethernet chip is connected with AFE (analog front end), described equipment interface comprises power interface, configuration interface, data-interface, network interface, described power interface is connected with described power module, described network interface is connected with described Ethernet chip, described configuration interface is connected with described processor, described data-interface is connected with described AFE (analog front end).
Further, described main carrier equipment is connected with distribution system especially by optical fiber transmission network.
Further, described main carrier equipment is connected with optical fiber transmission network by network interface, and described backup path carrier equipment is connected with cordless communication network by network interface.
Further, described network interface is specially RJ45 network interface.
Present invention also offers a kind of network-building method of the power line carrier system based on path cognition, described network-building method is based on the above-mentioned power line carrier system based on path cognition; Then described network-building method comprises:
Described main carrier equipment regularly issues networking verify data frame, described from carrier equipment or described backup path carrier equipment according to described networking verify data frame, the request of networking is sent to described main carrier equipment, described main carrier equipment receives described networking request, and return authentication response, until the carrier equipment of required networking all forms carrier network after certification;
Described main carrier equipment collects the MAC Address of each carrier equipment in described carrier network, and the MAC Address of distribution network address and each carrier equipment is bound, afterwards the network address of distribution is handed down in carrier network from carrier equipment or backup path carrier equipment, record the address table of the carrier equipment of described carrier network and be handed down to all backup path carrier equipments;
Describedly judge communication link state from carrier equipment according to the carrier signal power the communication link between backup path carrier equipment, and send backup certification to the backup path carrier equipment that communication link state is best;
When described main carrier equipment by independently to perceive first line of a couplet passage invalid or itself breaks down time, start active-standby switch process, and to backup path carrier equipment broadcast transmission master/slave switchover command frame;
Described backup path carrier equipment, according to the described master/slave switchover command frame received, is selected to receive the maximum backup path carrier equipment of backup certification and is activated as current main carrier equipment.
Wherein, described from carrier equipment or described backup path carrier equipment according to described networking verify data frame, send to described main carrier equipment the request of networking, described main carrier equipment receives described networkings request, and return authentication responds, and specifically comprises:
Described from carrier equipment or described backup path carrier equipment according to described networking verify data frame, intercept track data, wait for passage free time, send authentication request packet to main carrier equipment;
Described main carrier equipment receives described authentication request packet, waits for passage free time, issues authentication request confirmation message;
Describedly receive described authentication request confirmation message from carrier equipment or described backup path carrier equipment, and send the authentication information message of self;
After described main carrier equipment receives authentication information message, return authentication validation of information message, completes verification process.
Wherein, described main carrier equipment collects the MAC Address of each carrier equipment in described carrier network, and the MAC Address of distribution network address and each carrier equipment is bound, afterwards the network address of distribution is handed down in carrier network from carrier equipment or backup path carrier equipment, specifically comprise:
Send Address requests message from carrier equipment or backup path carrier equipment to main carrier equipment, wherein, described Address requests message comprises the MAC Address of carrier equipment;
Described main carrier equipment receives described Address requests message, and the MAC Address of distribution network address and each carrier equipment is bound, issue address allocation information message afterwards to from carrier equipment or backup path carrier equipment, wherein, in described address allocation information message, contain the network address of distribution;
Described address allocation information message is received, return address confirmation message from carrier equipment or backup path carrier equipment;
Described main carrier equipment receives described address validation information message, and the response of return address confirmation message, complete address assignment.
Wherein, describedly judge communication link state from carrier equipment according to the carrier signal power the communication link between backup path carrier equipment, and send backup certification to the backup path carrier equipment that communication link state is best, specifically comprise:
Described from the carrier wave analog signal level the communication link between carrier equipment reception with backup path carrier equipment, record nearly 3 level A1, A2, A3 and do weighted calculation, the result A getting weighted calculation rounds the signal strength scale I into communication link, wherein I=[A]=[A1 × 1/6+A2 × 1/3+A3 × 1/2];
Choose backup path carrier equipment corresponding to the highest communication link of signal strength scale as the best backup path carrier equipment of communication link state from carrier equipment, and initiate backup certification to this backup path carrier equipment.
Implement the present invention, there is following beneficial effect: the mode that the present invention adopts one master and multiple slaves how standby constitutes power line carrier system, described main carrier equipment is connected with distribution system by wire transmission network, and described backup path carrier equipment is connected with distribution system by cordless communication network; Described main carrier equipment, to be somely all connected to power line from carrier equipment and some backup path carrier equipments, to achieve radio communication and power line carrier communication merges, make many, data upload path optional.When main carrier equipment or wired paths fault, enable backup path carrier equipment as main carrier equipment, improve robustness and the stability of adapted electricity site communication.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the system block diagram of an embodiment of the power line carrier system based on path cognition provided by the invention;
Fig. 2 is the structural representation of carrier equipment;
Fig. 3 is the schematic flow sheet of an embodiment of the network-building method of the power line carrier system based on path cognition provided by the invention;
Fig. 4 is the sequential chart of step S201 in Fig. 3;
Fig. 5 is the sequential chart of step S202 in Fig. 3;
Fig. 6 is the schematic diagram of address table;
Fig. 7 is the carrier wave analog signal level record sheet on communication link.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the system block diagram of an embodiment of the power line carrier system based on path cognition provided by the invention, as shown in Figure 1, comprise main carrier equipment, some from carrier equipment (being illustrated as 3) and some backup path carrier equipments (being illustrated as 2), described main carrier equipment is connected with distribution system by wire transmission network (being specially light transmission network), and described backup path carrier equipment is connected with distribution system by cordless communication network; Described main carrier equipment, to be somely all connected to power line from carrier equipment and some backup path carrier equipments.Described main carrier equipment is used for forwarding data and uploads path, described from carrier equipment be used for according to communication link state to backup path carrier equipment send backup certification, when described backup path carrier equipment is used for or main carrier equipment fault invalid at described main carrier equipment first line of a couplet passage, backup authentication number according to receiving elects a backup path carrier equipment to switch to main carrier equipment from some backup path carrier equipments, carries out path switching.
Wherein, as shown in Figure 2, described main carrier equipment, some is all the carrier equipment that internal hardware structure is identical from carrier equipment with some backup path carrier equipments, all comprise processor, memory, power module, Ethernet chip, AFE (analog front end) and equipment interface, described processor respectively with described memory, power module, Ethernet chip is connected with AFE (analog front end), described equipment interface comprises power interface, configuration interface, data-interface, network interface, described power interface is connected with described power module, described network interface is connected with described Ethernet chip, described configuration interface is connected with described processor, described data-interface is connected with described AFE (analog front end).Described main carrier equipment is connected with optical fiber transmission network by network interface, and described backup path carrier equipment is connected with cordless communication network by network interface.Network interface is specially RJ45 network interface.
The processor of described main carrier equipment is loaded with carrier wave analog circuit control unit, authentication ' unit, carrier wave network address administrative unit and activestandby state monitoring unit, the described processor from carrier equipment is loaded with authentication ' unit and link communication condition monitoring unit, the processor of described backup path carrier equipment is loaded with authentication ' unit and backup main carrier recommendation unit;
Described carrier wave analog circuit control unit is used for described main carrier equipment and controls analog-to-digital conversion and the modulation /demodulation that described AFE (analog front end) carries out data;
The authentication ' unit of described main carrier equipment is used for described main carrier equipment and regularly issues networking verify data frame, and receive the networking request sent according to described networking verify data frame from carrier equipment or backup path carrier equipment, and return authentication response, until the carrier equipment of required networking all forms carrier network after certification;
The described authentication ' unit from carrier equipment or described backup path carrier equipment is used for according to described networking verify data frame, sends the request of networking, and receive the authentication response returned to described main carrier equipment;
Described carrier wave network address administrative unit is used for the MAC Address that described main carrier equipment collects each carrier equipment in described carrier network, and the MAC Address of distribution network address and each carrier equipment is bound, afterwards the network address of distribution is handed down in network from carrier equipment or backup path carrier equipment, record the address table of the carrier equipment of described carrier network and be handed down to all backup path carrier equipments;
Described link communication condition monitoring unit judges communication link state from carrier equipment according to the carrier signal power the communication link between backup path carrier equipment for described, and sends backup certification to the backup path carrier equipment that communication link state is best;
Described activestandby state monitoring unit be used for described main carrier equipment by independently to perceive first line of a couplet passage invalid or itself breaks down time start active-standby switch process, and to backup path carrier equipment broadcast transmission master/slave switchover command frame;
Described backup main carrier recommendation unit is used for backup path carrier equipment according to the described master/slave switchover command frame received, and selects to receive the maximum backup path carrier equipment of backup certification and activates as current main carrier equipment.
Fig. 3 is the schematic flow sheet of an embodiment of the network-building method of the power line carrier system based on path cognition provided by the invention, and described network-building method is based on the above-mentioned power line carrier system based on path cognition; Then described network-building method comprises:
S201, described main carrier equipment regularly issue networking verify data frame, described from carrier equipment or described backup path carrier equipment according to described networking verify data frame, the request of networking is sent to described main carrier equipment, described main carrier equipment receives described networking request, and return authentication response, until the carrier equipment of required networking all forms carrier network after certification.
Concrete, as shown in Figure 4, step S201 comprises step: described main carrier equipment regularly issues networking verify data frame, described from carrier equipment or described backup path carrier equipment according to described networking verify data frame, intercept track data, wait for passage free time, send authentication request packet to main carrier equipment; Main carrier equipment receives authentication request packet, waits for passage free time, issues authentication request confirmation message, receive authentication request confirmation message, send the authentication information message of self from carrier equipment or described backup path carrier equipment; After main carrier equipment receives authentication information message, issue authentication information confirmation message, complete verification process.
S202, described main carrier equipment collect the MAC Address of each carrier equipment in described carrier network, and the MAC Address of distribution network address and each carrier equipment is bound, afterwards the network address of distribution is handed down in carrier network from carrier equipment or backup path carrier equipment, record the address table of the carrier equipment of described carrier network and be handed down to all backup path carrier equipments.
Concrete, as shown in Figure 5, step S202 comprises step: send Address requests message from carrier equipment or backup path carrier equipment to main carrier equipment, Address requests message comprises the MAC Address of carrier equipment; Main carrier equipment receiving equipment Address requests message, and the MAC Address of distribution network address and each carrier equipment is bound, issue address allocation information message afterwards to from carrier equipment or backup path carrier equipment, in address allocation information message, contain the network address of distribution; From carrier equipment or backup path carrier equipment receiver address assignment information message, return address confirmation message; Main carrier equipment receiver address confirmation message, and the response of return address confirmation message, complete address assignment.Record the address table of the carrier equipment of carrier network afterwards and be handed down to all backup path carrier equipments.Concrete address table as shown in Figure 6.
S203, describedly judge communication link state from carrier equipment according to the carrier signal power the communication link between backup path carrier equipment, and send backup certification to the backup path carrier equipment that communication link state is best;
Concrete, step S203 comprises: described from the carrier wave analog signal level the communication link between carrier equipment reception with backup path carrier equipment, record nearly 3 level A1, A2, A3 and do weighted calculation, the result A getting weighted calculation rounds the signal strength scale I into communication link, wherein I=[A]=[A1 × 1/6+A2 × 1/3+A3 × 1/2]; Choose backup path carrier equipment corresponding to the highest communication link of signal strength scale as the best backup path carrier equipment of communication link state from carrier equipment, and initiate backup certification to this backup path carrier equipment.
Such as, certain is from the carrier wave analog signal level carrier equipment reception and the communication link between backup path carrier equipment 1 and backup path carrier equipment 2, the level of three times as shown in Figure 7, backup path carrier equipment 1, then the signal strength scale I1 of backup path carrier equipment 1 is:
I1=[11.8×1/6+12.2×1/3+12.6×1/2]=[12.33]=12
The signal strength scale I2 of backup path carrier equipment 2 is:
I2=[13.2×1/6+12.6×1/3+12.8×1/2]=[12.8]=13
I2>I1, then initiate backup certification to this backup path carrier equipment 2.
S204, when described main carrier equipment by independently to perceive first line of a couplet passage invalid or itself breaks down time, start active-standby switch process, and to backup path carrier equipment broadcast transmission master/slave switchover command frame.
S205, described backup path carrier equipment, according to the described master/slave switchover command frame received, are selected to receive the maximum backup path carrier equipment of backup certification and are activated as current main carrier equipment.
Implement the present invention, there is following beneficial effect: the mode that the present invention adopts one master and multiple slaves how standby constitutes power line carrier system, described main carrier equipment is connected with distribution system by wire transmission network, and described backup path carrier equipment is connected with distribution system by cordless communication network; Described main carrier equipment, to be somely all connected to power line from carrier equipment and some backup path carrier equipments, to achieve radio communication and power line carrier communication merges, make many, data upload path optional.When main carrier equipment or wired paths fault, enable backup path carrier equipment as main carrier equipment, improve robustness and the stability of adapted electricity site communication.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In several embodiments that the application provides, should be understood that, disclosed system and method can realize by another way.Such as, system embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.