Summary of the invention
The technical problem to be solved in the present invention is: provide a kind of platform district automatically to identify tester and recognition methods thereof for the problem of above-mentioned existence, in extending communication distance, can accurately identify the affiliated platform of user district.
The technical solution adopted in the present invention is: platform district identifies tester automatically, it is characterized in that: it comprises the main control end that is positioned at transformer low voltage output terminal, and be positioned at several service ends of line of electric force user side, main control end and service end are connected respectively to realize carrier signal with line of electric force coupling by coupled circuit with separate;
Main control end for receiving extraneous input Tai district information, is coupled to the carrier signal that includes Gai Tai district information on line of electric force simultaneously;
Service end, for the carrier signal on line of electric force is separated, and analyzes and judges signal, by the main control end Suo Fatai district communication that is positioned at same district with this service end to the user side ammeter box corresponding with this service end;
Service end, as repeater, forwards to realize by carrier signal the transmission that continues simultaneously, and its relaying algorithm adopts the way of confidence values management, forwards the mode adopting with timeslice harmony.
Described main control end comprises processor, the infrared communication unit, power line carrier communication unit, RS485 communication unit, LED light, ZigBee communication unit, the storage unit that are connected with this processor respectively, and for the power module of operating voltage being provided to above-mentioned each modular unit.
Described coupled circuit comprises the pickup coil BT1 of 1:1, the zero line UN of coil N1 one end connection transformer low-voltage output of this pickup coil, the other end is respectively by three-phase firewire UA, UB, the UC of three capacitor C 64, C63, C62 connection transformer low-voltage output, another coil N2 also connects TVS pipe and capacitor C 65, and wherein one end ground connection, the other end connects carrier-wave transmission circuit.
Method for distinguishing is known in platform district, it is characterized in that step is as follows:
Processor II control carrier communication unit II in a, service end is to being positioned at not several main control end in district on the same stage and reporting self MAC Address, and an initial trusted value is set in reporting information, report often in process to add one through once forwarding confidence values, be the relaying degree of depth and add one;
Carrier communication unit I in b, each main control end receives after the reporting information of service end, it is carried out demodulation and transfers to processor I, processor I obtains and records current confidence values, be the relaying degree of depth of main control end with respect to service end in step a, control carrier communication unit I simultaneously this relaying degree of depth and self Tai district information are modulated to carrier signal and are sent to service end by line of electric force;
Carrier communication unit II in c, service end receives after the carrier signal that each main control end sends over, it is carried out demodulation and transfers to processor II, processor II is recorded the relaying degree of depth and the corresponding Tai district information in each carrier signal, the then size of more each relaying degree of depth;
Processor II in d, service end by the corresponding Tai of minimum relaying degree of depth district information, is sent to the user side ammeter box corresponding with this service end by RS485 communication unit II;
E, ammeter box receive after platform district information, and Jiang Gaitai district information is as data under own Tai district, and send to main website of power supply administration by network, informs power supply administration, realizes the platform Division of his-and-hers watches meter.
Method for distinguishing is known in platform district, it is characterized in that step is as follows:
Carrier communication unit II in a, service end receives several carrier signals that district does not transmit on the same stage, and will after this signal demodulation, transfer to processor II, calculated the intensity of received Ge Tai district signal by processor II, and record each signal intensity and corresponding Tai district information, the then size of more each signal intensity;
Processor II in b, service end by the corresponding Tai of strongest signal strength district information, is sent to the user side ammeter box corresponding with this service end by RS485 communication unit II;
C, ammeter box receive after platform district information, and Jiang Gaitai district information is as data under own Tai district, and send to main website of power supply administration by network, informs power supply administration, realizes the platform Division of his-and-hers watches meter.
Method for distinguishing is known in platform district, it is characterized in that step is as follows:
Carrier communication unit II in a, service end receives several carrier signals that district does not transmit on the same stage, and the signal receiving after time point, self zero crossing and the demodulation of each signal is transferred to processor II, calculated the time difference of described each time point and self zero crossing by processor II;
Processor II in b, service end by the main control end corresponding minimal difference Zhong Tai district information of signaling, is sent to the user side ammeter box corresponding with this service end by RS485 communication unit II;
C, ammeter box receive after platform district information, and Jiang Gaitai district information is as data under own Tai district, and send to main website of power supply administration by network, informs power supply administration, realizes the platform Division of his-and-hers watches meter.
The invention has the beneficial effects as follows: the present invention includes the main control end that is positioned at transformer low voltage output terminal, and be positioned at several service ends of line of electric force user side, and each service end is as repeater, by main control end and each service end network consisting, the transmission that information or order can be continued, thus the communication distance of line of electric force point with point greatly extended, in addition, the present invention can be by the relaying degree of depth/confidence values (service end belongs to the affiliated platform of the nearest main control end of relaying degree of depth district), the mistiming of signal intensity (service end belongs to the affiliated platform of the main control end district that signal intensity is the strongest) or zero crossing, be that service end receives the time of frame data and the time difference of self zero crossing to the end (service end belong to the main control end of aforementioned mistiming minimum under platform district) and judges platform district under service end, also can adopt above-mentioned three kinds of methods to mutually combine or mutually verify and judge, can judge accurately the affiliated platform of this service end district, having solved prior art Zhong Tai district recognition failures causes platform district ownership to differentiate wrong problem, realize effective monitoring and the management of Liao Duitai district line loss, avoid the generation of power stealing leaky.
Embodiment
As shown in Figure 1, the present embodiment platform district identification tester comprises the main control end 1 that is positioned at transformer low voltage output terminal, and be positioned at several service ends 2 of line of electric force user side, main control end 1 and service end 2 are connected respectively to realize carrier signal with line of electric force coupling by coupled circuit with separate;
Main control end 1, for receiving extraneous input Tai district information, is coupled to the carrier signal that includes Gai Tai district information on line of electric force simultaneously, and is delivered to each service end 2 by line of electric force;
Service end 2, for line of electric force, the carrier signal that includes platform district information are separated, and signal is analyzed and is judged, by the main control end 1 Suo Fatai district communication that is positioned at same district with this service end to the user side ammeter box 3 corresponding with this service end; Service end 2, as repeater, forwards to realize by carrier signal the transmission that continues simultaneously.
Described ammeter box 3 comprises a controller 3-1 and multiple table meter 3-2, wherein between service end 2 and controller 3-1, communicates by photoelectricity, RF or RS485, between controller 3-1 and each table meter 3-2, carries out communication by photoelectric communication mode.
In this example, do not preset repeater, do not specify in advance certain or certain several service ends 2 as repeater, but any one service end 2 can be the repeater of other service ends 2, help information or order transmissions that continue, prolongation communication distance; Even if the frame destination address of receiving in transmittance process does not mate, if need to forward, service end 2 also can be forwarded.Forward and adopt in timeslice harmony (Chorus) mode, this mode depends on whole system unification and synchronizes with timeslice.
Relaying algorithm adopts the way of confidence values management, and in this example, confidence values is divided into 7 grades, is managed by main control end 1.Service end 2 is configured to after repeater, if the current confidence values of the mac frame of receiving is greater than 0, this service end 2 will repeat this frame to forward in the time that next timeslice arrives, and current confidence values subtracts one simultaneously, until the process that current confidence values is 0 time frame to be repeated stops.Under this mechanism, sheet at one time may exist many service ends 2 to repeat to forward, Here it is harmony simultaneously.
As shown in Figure 2, taking the repeating process of a single mac frame as example, this algorithm is described below: first, it is 2 that main control end (Concentrator) sends a frame and set initial trusted value at mac frame head to the 5th service end (Module PLC5) at timeslice K.The first and second service ends (Module PLC1 and 2) are because close together is correctly received these frame data at timeslice K.Secondly, because the confidence values (Credit) of this frame is greater than 0, main control end (Concentrator), the first and second service ends (Module PLC1 and 2) start this frame of repetition at timeslice K+1 after receiving, current confidence values subtracts one, become 1, the third and fourth service end (Module PLC3 and 4) is received this frame in this timeslice, but the 5th service end (Module PLC5) is because circuit is not far still received very much.Best is upper, and lower walking along the street, through changing with network condition and adjusting at any time, realizes comprehensive dynamic routing, and there is no the restriction of route progression.Again, the third and fourth service end (Module PLC3 and 4) repeats same frame at timeslice K+2, current confidence values subtracts one, main control end (Concentrator), the first and second service ends (Module PLC1 and 2) also repeat at the same time, with the third and fourth service end (Module PLC3 and 4) " harmony ".The 5th service end (Module PLC5) is correctly received this frame, and because current confidence values has become 0, all service ends of next timeslice no longer repeat to send this frame.In repeating process, if the signal that service end 2 listens to from line of electric force is the signal self having sent, do not receive, if the signal listening to self did not send, receive this signal and forward.
As Fig. 3, Fig. 4, Fig. 5-1, Fig. 5-2, shown in Fig. 5-3, described main control end 1 comprises processor I 1-1(MCU, adopt auspicious Sa single-chip microcomputer, model R5F212B8), the near infrared communication unit I 1-2(infrared receiving terminal model being connected with this processor is respectively AT405-PD-01, infrared delivery header model is AT205), carrier communication unit I 1-3(can adopt the AMIS-49587-52 chip of ON company, also can adopt the RISE3501 of auspicious this Kanggong department in Shenzhen), RS485 communication unit I 1-4, LED light I 1-5, it is the CC1120 of TI company that ZigBee communication unit I 1-6(module adopts chip), storage unit I 1-7, and for the power module I 1-8 of operating voltage being provided to above-mentioned each modular unit.Wherein effect is the same near infrared communication unit I 1-2 with ZigBee communication unit I 1-6, all to read or write platform district number information to main control end 1, RS485 communication unit I 1-4 is connected with table meter, Jiang Tai district information sends to table meter, LED light I 1-5 is mainly display device running status, and storage unit I 1-7 is mainly storage platform district number information.
Described service end 2 structures and main control end 1 are basic identical, difference is only to have saved ZigBee communication unit, comprise processor II 2-1(MCU, adopt auspicious Sa single-chip microcomputer, model R5F212B8), the near infrared communication unit II 2-2(infrared receiving terminal model being connected with this processor is respectively AT405-PD-01, infrared delivery header model is AT205), carrier communication unit II 2-3(can adopt the AMIS-49587-52 chip of ON company, also can adopt the RISE3501 of auspicious this Kanggong department in Shenzhen), RS485 communication unit II 2-4, LED light II 2-5, storage unit II 2-7, and for the power module II 2-8 of operating voltage being provided to above-mentioned each modular unit.
In order to improve the loading efficiency of carrier signal, ensure that the power frequency component of electrical network 50/60Hz can not bring too large interference to carrier communication system, the compound coupling technique that this example has adopted electromagnetic coupled to combine with R-C coupling simultaneously.Described coupled circuit comprises the pickup coil BT1 of 1:1; the zero line UN of coil N1 one end connection transformer low-voltage output of this pickup coil; the other end is respectively by three-phase firewire UA, UB, the UC of three capacitor C 64, C63, C62 connection transformer low-voltage output; another coil N2 also connects TVS pipe and capacitor C 65; and wherein one end ground connection; play the effect of protection light current power line carrier communication unit 1-3, the other end is connected to power line carrier communication unit 1-3 by carrier-wave transmission circuit.
Described carrier-wave transmission circuit comprises carrier wave transtation mission circuit and carrier wave receiving circuit; For main control end 1, in the time that detective's (realizing by carrier wave receiving circuit and carrier communication unit) initiates platform Division order (being sending station district information) to other districts, this main control end also starts this function simultaneously, the order of sending station Division, utilize carrier communication unit 1-3 to send the carrier signal that comprises platform district information, after carrier wave transtation mission circuit amplifies, be sent on line of electric force by coupled circuit; For service end 2, process of transmitting is identical with the process of transmitting of aforementioned main control end 1, and when reception, carrier signal is separated from line of electric force through overcoupled circuits, then transfers to carrier communication unit 1-3 by carrier wave receiving circuit.The pickup coil BT1 carrier signal that is coupled on the one hand, can keep apart telecommunication circuit and 220V forceful electric power in addition on the one hand, and the power frequency component of guarantee line of electric force 50/60Hz can not exert an influence to carrier signal; TVS pipe plays a protective role to circuit.By resonance computing formula frequency f o=1/ (2 π √ LC), if centre frequency is 130KHZ, can obtain L1 and C2, the model of its coupled circuit is as shown in Figure 6.
As an example of one of them service end 2 example, how explanation utilizes the present embodiment identifier to carry out the identification of platform district below:
Processor II 2-1 in a, service end 2 controls carrier communication unit II 2-3 to being positioned at not several main control end 1 in district on the same stage and reporting self MAC Address, and an initial trusted value is set in reporting information, report and often process (being that signal transfers to main control end from service end) add one through once forwarding confidence values, be the relaying degree of depth (current confidence values and initial trusted value poor) and add one, main control end 1 will be carried the relaying depth information of this table number in the time replying acknowledgement frame.
B, carrier communication unit I 1-3 in each main control end 1 receives after the reporting information of service end 2, it is carried out demodulation and transfers to processor I 1-1, processor I 1-1 obtains and record current confidence values or main control end, and with respect to the relaying degree of depth of service end, (the initial trusted value arranging of supposing to give the correct time in service end is 0, after 2 times forward, received by a certain main control end, the current confidence values that this main control end is recorded is 2, be that main control end is 2 with respect to the relaying degree of depth of service end, main control end will be carried the relaying depth information of this table number in the time replying acknowledgement frame), control carrier communication unit I 1-3 by this confidence values or the relaying degree of depth simultaneously, and self Tai district information (platform district information exchange is crossed palm machine and is sent to main control end, therefore each main control end Tai district information is set) be modulated to carrier signal and be sent to service end 2 by line of electric force.
Carrier communication unit II 2-3 in c, service end 2 receives after the carrier signal that each main control end 1 sends over, it is carried out demodulation and transfers to processor II 2-1, processor II 2-1 records confidence values or the relaying degree of depth in each carrier signal, and corresponding Tai district information, the then size of more each confidence values or the relaying degree of depth.For avoiding the mutual interference of unlike signal phase, if receive the signal that multiple main control end 1 send in receiving course simultaneously, these signals are all abandoned again and receive.
Processor II 2-1 in d, service end 2 by minimum confidence values or the corresponding Tai of minimum relaying degree of depth district information, is sent to the user side ammeter box corresponding with this service end by RS485 communication unit II 2-4.Because service end 2 often in process just adds one through once forwarding confidence values reporting, current confidence values when known main control end 1 receives reporting information is less, illustrate that the number of times forwarding is fewer, the number of times fewer (the relaying degree of depth is less) that is relaying, simultaneously for a certain service end 2, when transferring to this service end, through the signal in other districts number of times forwarding, generally can be greater than this TV station district signal and transfer to this service end time the hop count of process, therefore this service end main control end 1 corresponding with minimum confidence values or the minimum relaying degree of depth is positioned at same district.In this step, minimum confidence values or the corresponding Tai of minimum relaying degree of depth district information are sent to the user side ammeter box 3 corresponding with this service end by service end 2, thereby realized the automatic identification that the electric supply meter case 3 corresponding with this service end 2 belongs to platform district.
Controller 3-1 in e, ammeter box 3 receives after platform district information, and Jiang Gaitai district information is as data under own Tai district, and sends to main website of power supply administration by GPRS, informs power supply administration, thereby realizes the automatic identification in each table meter 3-2 ownership platform district.
The present embodiment also can judge service end 2 affiliated platform districts by signal intensity, and its concrete steps are as follows:
Carrier communication unit II 2-3 in a, service end 2 receives several carrier signals that district does not transmit on the same stage (including platform district information in signal), and processor II 2-1 will be transferred to after this signal demodulation, calculated the intensity of received Ge Tai district signal by processor II 2-1, and record each signal intensity and corresponding Tai district information, the then size of more each signal intensity.For avoiding the mutual interference of unlike signal phase, if receive the signal that multiple districts send in receiving course simultaneously, these signals are all abandoned again and receive.
Processor II 2-1 in b, service end 2 by the corresponding Tai of strongest signal strength district information, is sent to the user side ammeter box corresponding with this service end by RS485 communication unit II 2-4.Because the carrier signal in other districts will transfer to this TV station district, through the earth transmission, transmit through line of electric force through after transformer, but no matter be which kind of mode, the decay of signal intensity is all larger, therefore,, in the situation that the relaying degree of depth is certain, service end 2 main control end 1 corresponding with strongest signal strength is positioned at same district; In this step, service end 2, by 1 signalling Zhong Tai district information of main control end corresponding strongest signal strength, is sent to the user side ammeter box 3 corresponding with this service end, thereby has realized the automatic identification that the electric supply meter case 3 corresponding with this service end 2 belongs to platform district.
Controller 3-1 in c, ammeter box 3 receives after platform district information, and Jiang Gaitai district information is as data under own Tai district, and sends to main website of power supply administration by GPRS, informs power supply administration, thereby realizes the automatic identification in each table meter 3-2 ownership platform district.
The present embodiment can also judge service end 2 affiliated platform districts by the mistiming of zero crossing, and its concrete steps are as follows:
Carrier communication unit II 2-3 in a, service end 2 receives several carrier signals that district does not transmit on the same stage (including platform district information in signal), and the signal receiving after time point (the time of reception points of signal heads frame data), self zero crossing (obtaining by zero crossing circuitry) and the demodulation of each signal is transferred to processor II 2-1, calculated the time difference of described each time point and self zero crossing by processor II 2-1, and record each time difference and corresponding Tai district information; The zero crossing time difference of the larger explanation carrier wave of this difference transmitting element (main control end) and receiving element (service end) is larger.In addition, because carrier signal is to send in voltage over zero, and its transmission speed is very fast, and the time phase difference of sending and receiving is very little, almost negligible, therefore aforementioned difference also can be understood as the mistiming of voltage over zero and service end 2 self zero crossing.
Processor II 2-1 in b, service end 2 by 1 signalling Zhong Tai district information of main control end corresponding minimal difference, is sent to the user side ammeter box corresponding with this service end by RS485 communication unit II 2-4.Owing to having A, B, tri-phase places of C in inside, same district, if service end 2 in A phase place, the received general signal sending while being all the voltage zero-cross of A phase place, and the phase place zero crossing mistiming differ very little; If the signal that other districts send, probably send by the earth, now signal may be B phase place and C phase place, the mistiming of its voltage over zero and service end 2 self zero crossing will be larger, even if the signal that other districts send is also A phase place, because load and the transmission medium in platform district change, the time point of the zero crossing detecting also can have a certain distance with the zero crossing time of oneself; Therefore service end 2 main control end 1 corresponding with above-mentioned minimal difference is positioned at same district.In this step, service end 2, by 1 signalling Zhong Tai district information of main control end corresponding minimal difference, is sent to the user side ammeter box 3 corresponding with this service end, thereby has realized the automatic identification that the electric supply meter case 3 corresponding with this service end 2 belongs to platform district.
Controller 3-1 in c, ammeter box 3 receives after platform district information, and Jiang Gaitai district information is as data under own Tai district, and sends to main website of power supply administration by GPRS, informs power supply administration, thereby realizes the automatic identification in each table meter 3-2 ownership platform district.
Above-mentioned three kinds of methods can independently be identified, also can mutually combine and identify,, in the time adopting relaying degree of depth None-identified service end 2 affiliated platform district, utilize signal intensity to identify, if adopt signal intensity also when None-identified, adopt the mistiming of zero crossing to identify; The method that can also adopt three kinds of methods mutually to verify is identified, and first adopts relaying depth recognition service end 2 affiliated platform districts, then adopts signal intensity identification, finally adopt the mistiming of zero crossing to identify, after three kinds of method identifications, contrast recognition result, to guarantee the accuracy of identification.
As shown in Figure 7, in actual mechanical process, utilize palm machine to include the ZigBee signal of platform district information, send to the ZigBee communication unit 1-6 of main control end 1, by the power line carrier communication unit 1-3 of main control end 1, the carrier signal that includes platform district information is sent on line of electric force again, service end 2 is separated the carrier signal on line of electric force receive, utilize aforementioned identification method simultaneously, to be positioned at 1 the signalling Zhong Tai district information of main control end in same district with this service end, pass through photoelectricity, RF or RS485 communication link transfer to ammeter box 3, controller 3-1 in ammeter box 3 receives after platform district information, Jiang Gaitai district information is as data under own Tai district, and send to main website of power supply administration by GPRS, inform power supply administration, thereby realize the automatic identification in each table meter 3-2 ownership platform district.