Summary of the invention
The technical matters that the present invention will solve is: the problem that is directed against above-mentioned existence provides a kind of district identification tester and recognition methods thereof automatically, when prolonging communication distance, can accurately discern the affiliated platform district of user.
The technical scheme that the present invention adopted is: the platform district discerns tester automatically; It is characterized in that: it comprises the main control end that is positioned at the transformer low voltage output terminal; And several service ends that are positioned at the line of electric force user side, main control end and service end respectively through coupled circuit be connected with line of electric force with the coupling that realizes carrier signal with separate;
Main control end is used to receive the extraneous platform district information of importing, and the carrier signal that will include this district's information simultaneously is coupled on the line of electric force;
Service end is used for the carrier signal on the line of electric force is separated, and signal is analyzed and judged, will send out platform district information transmission to the user side ammeter box corresponding with this service end with the main control end that this service end is positioned at same district;
Service end forwards carrier signal to realize continuing transmission as repeater simultaneously, and the way of its relaying algorithm use confidence values management is transmitted the mode that adopts with timeslice harmony.
Said main control end comprises processor; The infrared communication unit that is connected with this processor respectively, power line carrier communication unit, RS485 communication unit, LED light, ZigBee communication unit, storage unit, and the power module that is used for providing WV to above-mentioned each modular unit.
Said coupled circuit comprises the pickup coil BT1 of 1:1; Coil N1 one end of this pickup coil connects the zero line UN of transformer low voltage output terminal; The other end connects three-phase firewire UA, UB, the UC of transformer low voltage output terminal respectively through three capacitor C 64, C63, C62; Another coil N2 also connects TVS pipe and capacitor C 65, and an end ground connection wherein, other end connection carrier-wave transmission circuit.
The method of platform district identification is characterized in that step is following:
Processor II control carrier communication unit II in a, the service end is to being positioned at the MAC Address that several main control end of not distinguishing on the same stage report self; And an initial trusted value is set in reporting information; Report in the process every warp once to transmit confidence values and add one, be the relaying degree of depth and add one;
After carrier communication unit I in b, each main control end receives the reporting information of service end; It is carried out demodulation and transfers to the processor I; The processor I obtains and notes current confidence values; Be the relaying degree of depth of main control end, control carrier communication unit I simultaneously this relaying degree of depth and the platform district information of self are modulated to carrier signal and are sent to service end through line of electric force with respect to service end among the step a;
After carrier communication unit II in c, the service end receives the carrier signal that each main control end sends over; It is carried out demodulation and transfers to the processor II; The processor II is noted the relaying degree of depth and corresponding platform district information in each carrier signal, compares the size of each relaying degree of depth then;
Processor II in d, the service end is sent to the user side ammeter box corresponding with this service end through the RS485 communication unit II platform district information that the minimum relaying degree of depth is corresponding;
After e, ammeter box are received platform district information, this district's information as data under the platform district of oneself, and is sent to the main website of power supply administration through network, inform power supply administration, realize the platform zoning branch of his-and-hers watches meter.
The method of platform district identification is characterized in that step is following:
Carrier communication unit II in a, the service end receives several and does not distinguish the carrier signal that transmits on the same stage; And with transferring to the processor II after this signal demodulation; Calculate the intensity of each received district's signal by the processor II; And note each signal intensity and corresponding platform district information, compare the size of each signal intensity then;
Processor II in b, the service end is sent to the user side ammeter box corresponding with this service end through the RS485 communication unit II platform district information that strongest signal strength is corresponding;
After c, ammeter box are received platform district information, this district's information as data under the platform district of oneself, and is sent to the main website of power supply administration through network, inform power supply administration, realize the platform zoning branch of his-and-hers watches meter.
The method of platform district identification is characterized in that step is following:
Carrier communication unit II in a, the service end receives several and does not distinguish the carrier signal that transmits on the same stage; And the signal that will receive after time point, self zero crossing and the demodulation of each signal transfers to the processor II, calculated the time difference of said each time point and self zero crossing by the processor II;
Platform district information during processor II in b, the service end is signaled through the RS485 communication unit II main control end that minimal difference is corresponding is sent to the user side ammeter box corresponding with this service end;
After c, ammeter box are received platform district information, this district's information as data under the platform district of oneself, and is sent to the main website of power supply administration through network, inform power supply administration, realize the platform zoning branch 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 the transformer low voltage output terminal; And several service ends that are positioned at the line of electric force user side; And each service end is as repeater; Main control end and each service end are formed network, can be with information or order transmission that continue, thus the communication distance that has prolonged line of electric force point greatly and put; In addition; The present invention can be through the mistiming of the relaying degree of depth/confidence values (service end belongs to the affiliated platform district of the nearest main control end of the relaying degree of depth), signal intensity (service end belongs to the affiliated platform district of the strongest main control end of signal intensity) or zero crossing; Be that service end receives the time of frame data to the end and the time difference of self zero crossing (service end belong to minimum main control end of aforementioned mistiming under platform district) and judges platform district under the service end; Also can adopt above-mentioned three kinds of methods to mutually combine or each other the checking judge; Can judge the affiliated platform district of this service end accurately; Solved prior art Zhong Tai district recognition failures and caused platform district ownership to differentiate wrong problem, realized effective monitoring and management, avoided the generation of power stealing leaky platform district line loss.
Embodiment
As shown in Figure 1; Present embodiment platform district identification tester comprises the main control end 1 that is positioned at the transformer low voltage output terminal; And several service ends 2 that are positioned at the line of electric force user side, main control end 1 and service end 2 respectively through coupled circuit be connected with line of electric force with the coupling that realizes carrier signal with separate;
Main control end 1 is used to receive the extraneous platform district information of importing, and the carrier signal that will include this district's information simultaneously is coupled on the line of electric force, and is delivered to each service end 2 through line of electric force;
Service end 2; Be used for line of electric force, the carrier signal that includes platform district information are separated; And signal analyzed and judge, will be positioned at the main control end 1 platform district information transmission of sending out to the user side ammeter box 3 corresponding in same district with this service end with this service end; Service end 2 forwards carrier signal to realize continuing transmission as repeater simultaneously.
Said ammeter box 3 comprises a controller 3-1 and a plurality of table meter 3-2, wherein communicates through photoelectricity, RF or RS485 between service end 2 and the controller 3-1, carries out information transmission through the photoelectric communication mode between controller 3-1 and each the table meter 3-2.
In this example; Do not preestablish repeater, promptly do not specify certain or certain several service end 2 as repeater in advance, but any one service end 2 can be the repeater of other service ends 2; Help prolongs communication distance to information or the order transmission that continues; Even the frame destination address of receiving in the transmittance process does not match, to transmit if desired, service end 2 also can be transmitted it.Transmit and adopt with timeslice harmony (Chorus) mode, it is unified synchronous with timeslice that this mode depends on total system.
The way of relaying algorithm use confidence values management, confidence values is divided into 7 grades in this example, is managed by main control end 1.After service end 2 is configured to 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 transmit when next timeslice arrives, and current confidence values subtracts one simultaneously, be that the process that 0 time frame repeats stops up to current confidence values.Under this mechanism, sheet at one time possibly exist many service ends 2 to repeat simultaneously to transmit, Here it is harmony.
As shown in Figure 2, the repeating process with a single mac frame is an example below, and this algorithm is described: at first, it is 2 that main control end (Concentrator) sends a frame and set initial trusted value at the mac frame head for the 5th service end (Module PLC5) at timeslice K.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), first and second service ends (Module PLC1 and 2) receive that the back begins this frame of repetition at timeslice K+1, and current confidence values subtracts one, becomes 1; Third and fourth service end (Module PLC3 and 4) is received this frame in this timeslice, but the 5th service end (Module PLC5) is not far still received very much owing to circuit.On best, following walking along the street realizes comprehensive dynamic routing through changing and adjustment at any time with network condition, and does not have the restriction of route progression.Once more; 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), first and second service ends (Module PLC1 and 2) also repeat at the same time, with third and fourth service end (Module PLC3 and 4) " harmony ".The 5th service end (Module PLC5) is correctly received this frame, because current confidence values has become 0, all service ends of next timeslice no longer repeat to send this frame.In the repeating process,,, then receive this signal and forward if the signal self that listens to did not send if the signal of the signal that service end 2 listens to from line of electric force for self having sent then do not receive.
Shown in Fig. 3, Fig. 4, Fig. 5-1, Fig. 5-2, Fig. 5-3; Said 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 that is connected with this processor respectively (the infrared receiving terminal model is that AT405-PD-01, infrared delivery header model are 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, ZigBee communication unit I 1-6 (it is the CC1120 of TI company that module adopts chip), storage unit I 1-7, and the power module I 1-8 that is used for providing WV 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 be to read or write platform district number information to main control end 1; RS485 communication unit I 1-4 links to each other with the table meter; Jiang Tai district information sends to the table meter, and LED light I 1-5 mainly is the display device running status, and storage unit I 1-7 mainly is a storage platform district number information.
Said service end 2 structures and main control end 1 are basic identical; Difference is only to have saved the ZigBee communication unit; Promptly comprise processor II 2-1 (MCU; Adopt auspicious Sa single-chip microcomputer; Model R5F212B8); The near infrared communication unit II 2-2 that is connected with this processor respectively (the infrared receiving terminal model is that AT405-PD-01, infrared delivery header model are 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 the power module II 2-8 that is used for providing WV to above-mentioned each modular unit.
In order to improve the loading efficiency of carrier signal, guarantee that simultaneously the power frequency component of electrical network 50/60Hz can not bring too big interference to carrier communication system, the compound coupling technique that this example has adopted EM coupling to combine with R-C coupling.Said coupled circuit comprises the pickup coil BT1 of 1:1; Coil N1 one end of this pickup coil connects the zero line UN of transformer low voltage output terminal; The other end connects three-phase firewire UA, UB, the UC of transformer low voltage output terminal respectively through three capacitor C 64, C63, C62; Another coil N2 also connects TVS pipe and capacitor C 65; And wherein an end ground connection is played the effect of protection light current power line carrier communication unit 1-3, and the other end then is connected to power line carrier communication unit 1-3 through the carrier-wave transmission circuit.
Said carrier-wave transmission circuit comprises carrier wave transtation mission circuit and carrier wave receiving circuit; For main control end 1; Initiate platform zonings branch to other districts when ordering (being sending station district information) detective's (realizing) through carrier wave receiving circuit and carrier communication unit; This main control end also starts this function simultaneously; The sending station zoning is divided order, promptly utilizes carrier communication unit 1-3 to send the carrier signal that comprises platform district information, after the carrier wave transtation mission circuit amplifies, is sent on the line of electric force through coupled circuit; For service end 2, process of transmitting is identical with the process of transmitting of aforementioned main control end 1, and carrier signal is separated from line of electric force through overcoupled circuits during reception, transfers to carrier communication unit 1-3 through the carrier wave receiving circuit then.The pickup coil BT1 carrier signal that is coupled on the one hand can be kept apart telecommunication circuit and 220V forceful electric power in addition on the one hand, and the power frequency component of assurance line of electric force 50/60Hz can not exert an influence to carrier signal; The TVS pipe plays a protective role to circuit.Through 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.
Be how the example explanation utilizes the present embodiment identifier to carry out the identification of platform district with one of them service end 2 below:
Processor II 2-1 control carrier communication unit II 2-3 in a, the service end 2 is to being positioned at the MAC Address that several main control end 1 of not distinguishing on the same stage report self; And an initial trusted value is set in reporting information; Report the process (being that signal transfers to main control end from service end) every warp once to transmit confidence values and add one; 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 when replying acknowledgement frame.
After carrier communication unit I 1-3 in b, each main control end 1 receives 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 note current confidence values or main control end, and (the initial trusted value that is provided with of supposing to give the correct time on the service end is 0 with respect to the relaying degree of depth of service end; After 2 forwardings, received by a certain main control end; Then the current confidence values noted of this main control end is 2; Be main control end with respect to the relaying degree of depth of service end be 2, main control end will be carried the relaying depth information of this table number when replying acknowledgement frame), control carrier communication unit I 1-3 simultaneously with this confidence values or the relaying degree of depth; And the platform district information of self (platform district information is sent to main control end through palm machine, so the platform district information of each main control end is set) is modulated to carrier signal and is sent to service end 2 through line of electric force.
After carrier communication unit II 2-3 in c, the service end 2 receives 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 notes the confidence values or the relaying degree of depth in each carrier signal; And corresponding platform district information, the size of each confidence values or the relaying degree of depth relatively then.For avoiding the mutual interference of unlike signal phase, if receive the signal that a plurality of main control end 1 are sent simultaneously, then these signals are all abandoned reception again in the receiving course.
Processor II 2-1 in d, the service end 2 with minimum confidence values or the corresponding platform district information of the minimum relaying degree of depth, is sent to the user side ammeter box corresponding with this service end through RS485 communication unit II 2-4.Because service end 2 every warp in reporting process is once transmitted confidence values and is just added one; Can know that the current confidence values when main control end 1 receives reporting information is more little; Explain that the number of times of transmitting is few more; The number of times that is relaying fewer (the relaying degree of depth is more little) simultaneously for a certain service end 2, passes through the number of times of transmitting when the signal in other districts transfers to this service end; In the time of generally can transferring to this service end greater than this TV station district signal the hop count of process, so this service end is positioned at same district with minimum confidence values or the corresponding main control end 1 of the minimum relaying degree of depth.Service end 2 is sent to the user side ammeter box 3 corresponding with this service end with minimum confidence values or the corresponding platform district information of the minimum relaying degree of depth in this step, thereby has realized belonging to this service end 2 corresponding electric supply meter casees 3 the automatic identification in platform districts.
After controller 3-1 in e, the ammeter box 3 receives platform district information, this district's information as data under the platform district of oneself, and is sent to the main website of power supply administration through GPRS, inform power supply administration, thereby realize the automatic identification in each table meter 3-2 ownership platform district.
Present embodiment also can be judged service end 2 affiliated platform districts through signal intensity, and its concrete steps are following:
Carrier communication unit II 2-3 in a, the service end 2 receives several and does not distinguish the carrier signal (including platform district information in the signal) that transmits on the same stage; And with transferring to processor II 2-1 after this signal demodulation; Calculate the intensity of each received district's signal by processor II 2-1; And note each signal intensity and corresponding platform district information, compare the size of each signal intensity then.For avoiding the mutual interference of unlike signal phase, if receive the signal that a plurality of districts send simultaneously, then these signals are all abandoned reception again in the receiving course.
Processor II 2-1 in b, the service end 2 is sent to the user side ammeter box corresponding with this service end through the RS485 communication unit II 2-4 platform district information that strongest signal strength is corresponding.Because the carrier signal in other districts will transfer to this TV station district; Through the earth transmission, or pass transformer after which kind of mode no matter power line transmission be still; Attenuation of signal intensity is all bigger; Therefore, under the certain situation of the relaying degree of depth, service end 2 main control end 1 corresponding with strongest signal strength is positioned at same district; Service end 2 is sent to the user side ammeter box 3 corresponding with this service end with the platform district information in 1 signalling of main control end of strongest signal strength correspondence in this step, thereby has realized belonging to this service end 2 corresponding electric supply meter casees 3 the automatic identification in platform districts.
After controller 3-1 in c, the ammeter box 3 receives platform district information, this district's information as data under the platform district of oneself, and is sent to the main website of power supply administration through GPRS, inform power supply administration, thereby realize the automatic identification in each table meter 3-2 ownership platform district.
Present embodiment can also be judged service end 2 affiliated platform districts through the mistiming of zero crossing, and its concrete steps are following:
Carrier communication unit II 2-3 in a, the service end 2 receives several and does not distinguish the carrier signal (including platform district information in the signal) that transmits on the same stage; And the signal that will receive after time point (the time of reception points of signal heads frame data), self zero crossing (obtaining through zero crossing circuitry) and the demodulation of each signal transfers to processor II 2-1; Calculate the time difference of said each time point and self zero crossing by processor II 2-1, and note each time difference and corresponding platform district information; The zero crossing time difference of the big more explanation carrier wave of this difference transmitting element (main control end) and receiving element (service end) is big more.In addition; Because carrier signal is in voltage over zero, to send, and its transmission speed is very fast, the time phase difference that sends and receive is very little; Therefore almost can ignore, aforementioned difference also is appreciated that the mistiming into voltage over zero and service end 2 self zero crossing.
Processor II 2-1 in b, the service end 2 is sent to the user side ammeter box corresponding with this service end through the platform district information in RS485 communication unit II 2-4 1 signalling of main control end that minimal difference is corresponding.Owing to A, B, three phase places of C are arranged in inside, same district, if service end 2 in the A phase place, the received general signal that sends when all being 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 through the earth; This moment, signal possibly be B phase place and C phase place, and the mistiming of its voltage over zero and service end 2 self zero crossing will be bigger, even the signal that other districts send also is the A phase place; Because the load and the transmission medium in platform district change, the time point of detected zero crossing 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.Service end 2 is sent to the user side ammeter box 3 corresponding with this service end with the platform district information in 1 signalling of main control end of minimal difference correspondence in this step, thereby has realized belonging to this service end 2 corresponding electric supply meter casees 3 the automatic identification in platform districts.
After controller 3-1 in c, the ammeter box 3 receives platform district information, this district's information as data under the platform district of oneself, and is sent to the main website of power supply administration through GPRS, inform power supply administration, thereby realize the automatic identification in each table meter 3-2 ownership platform district.
Above-mentioned three kinds of methods can independently be discerned; Also can mutually combine and discern, promptly when adopting the relaying degree of depth can't discern under the service end 2 the platform district, utilize signal intensity to discern; If when adopting signal intensity also can't discern, then adopt the mistiming of zero crossing to discern; The method that can also adopt three kinds of methods to verify is each other discerned, and promptly at first adopts relaying degree of depth identification service end 2 affiliated platform districts, adopts signal intensity identification then; Adopt the mistiming of zero crossing to discern at last; After three kinds of method identifications finished, the contrast recognition result was with the accuracy of guaranteeing to discern.
As shown in Figure 7, in the actual mechanical process, utilize palm machine will include the ZigBee signal of platform district information; Send to the ZigBee communication unit 1-6 of main control end 1, the carrier signal that will include platform district information of the power line carrier communication unit 1-3 through main control end 1 sends on the line of electric force again, and service end 2 is separated the carrier signal on the line of electric force and receive; Utilize the aforementioned identification method simultaneously; To be arranged in the platform district information of 1 signalling of main control end in same district with this service end, transfer to ammeter box 3 through photoelectricity, RF or RS485 communication link, after the controller 3-1 in the ammeter box 3 receives platform district information; With this district's information as data under the platform district of oneself; And send to the main website of power supply administration through GPRS, inform power supply administration, thereby realize the automatic identification in each table meter 3-2 ownership platform district.