Summary of the invention
In order to overcome the deficiencies in the prior art, the invention provides a kind of method of on-site bus type network topology identification.
Pass through current detection technology, send request signal by controller one by one to sensing point, this request signal carries and the corresponding address lookup information of sensing point, after receiving the address information that is complementary with it when sensing point, return corresponding confirmation signal to controller, meanwhile, the sensing point that this sensing point returns the same link shortest path of confirmation signal process also returns corresponding confirmation signal to controller, after controller is received the affirmation signal of sensing point, send request signal for the second time, search second sensing point, after second sensing point received request signal, also return a confirmation signal to controller, same, second sensing point returns the sensing point of the same link shortest path of confirmation signal process, also returns corresponding confirmation signal to controller; By that analogy, all sensing points when receiving that request signal returns confirmation signal, its return confirmation signal the sensing point of same link shortest path of process also return corresponding confirmation signal to controller.
The step of the concrete recognition methods of the technical solution adopted for the present invention to solve the technical problems is as follows:
Step 1: determine the n item ordered series of numbers that concerns between n the sensing point, send request signal to each sensing point one by one by controller, each sensing point is according to receiving that the situation of request signal returns confirmation signal; Sensing point returns confirmation signal to controller and is designated as 1, if sensing point does not return confirmation signal and then is designated as 0, uses A
iRepresent the n item ordered series of numbers that concerns between i sensing point and all sensing points, A
i={ a
I1, a
I2..., a
Ij..., a
In(i, j=1,2,3 ..., n), its middle term a
IjExpression after each sensing point is received request signal, is returned the situation of confirmation signal when sending the i time request signal, obtain the n item ordered series of numbers that concerns between n the sensing point;
Step 2: determine the every of n item ordered series of numbers and the ordered series of numbers S that forms: and numeration row A
iIn every and S
iThe n item number of forming is classified S as, S={S
1, S
2..., S
i... S
n,
Step 3: every according to rearranging and be designated as S ' by little to big order with among the gained ordered series of numbers S in the step 2 makes S '={ S
I ', S
2 '..., S
N 'Be the non-decreasing ordered series of numbers, namely S ' satisfies S
L '≤ S
2 '...≤S
N ';
Step 4: the ordered series of numbers of the every correspondence among the S ' is designated as B
I ', i '=1,2,3 ..., n, B
I '={ b
I ' 1, b
I ' 2... b
I ' j..., b
I ' n, j=1,2,3 ..., n arranges the order of adjusting according to ordered series of numbers S, with ordered series of numbers A
iValue give ordered series of numbers B
I ', can obtain B simultaneously
I 'The ordered series of numbers L that corresponding sensing point position constitutes, L={1 ', 2 ' ..., n ');
Step 5: according to the S ' that obtains in the step 3={ S
1 ', S
2 '..., S
N 'Make the following judgment, just can obtain the network topology relation:
If S
I '=1, illustrate that then network has i parallel branch, sensing point 1 ', 2 ' ..., i ' is respectively behind the controller first sensing point on i the parallel branch;
If S
I '≠ 1, i=2,3 ..., n, note S
I 'With S
(i-1) 'At ordered series of numbers B
I 'With B
(i-1) 'Middle corresponding every sum of products is K
I (i-1)
If S
I '>S
(i-1) '=K
I, (i-1), sensing point i ' and sensing point (i-1) ' at same link so, and be sensing point (i-1) ' after first sensing point;
If S
I '=S
(i-1) '>K
I, (i-1), sensing point i ' and sensing point (i-1) ' not need further to judge K at same link so
I, (i-2)With S
(i-2) 'Relation;
If S
(i-2) '=K
I, (i-2), so sensing point i ' and sensing point (i-2) ' same link and be sensing point (i-2) ' after first sensing point;
If S
(i-2) '>K
I, (i-2), sensing point i ' and sensing point (i-2) ' also need further to judge K not at same link so
I, (i-3)With S
(i-3) 'Relation, till the relation of confirming this sensing point and arbitrary sensing point, when to S
I '(i '=1,2,3 ..., n) judgement finishes, and can obtain the topological relation of whole network, and then can obtain the topological relation figure of network.
The invention has the beneficial effects as follows this method can determine between the network node topological relation, produce topological diagram, thereby can make the operation user of service more convenient, quickly network system is installed, is overhauled and fixes a breakdown, the correlative charges that can save installation, repair time widely and bring thus.Simultaneously, owing to can adopt current detection technology, by detecting detector and loop current, definite process of topological relation exerts an influence hardly to the electric current in whole loop, the electric current of whole detection circuit can be accomplished μ A level, and the detecting devices number of corresponding connection also can be greatly improved.
In the present fire alarm control system, each loop maximum can connect 256 detecting devicess, if do not carry out automated topology identification, the workload of then installing, overhauling is well imagined.If but adopted the method to realize that in controller automated topology identifies and draw out corresponding topological relation figure, so in installation, maintenance, maintenance and use, just following advantage has been arranged:
(1) in the installation process, no longer needs each detector is registered, can obtain topology diagram accurately by this method, alleviated installation workload, reduced installation cost;
(2) overhaul or change indivedual detectors, can specifically be accurate to a little, no longer need whole loop is checked, also make Operation and Maintenance become simple more, direct, convenient;
(3) by carrying out relative set with fire-fighting link equipment, in case find fire, can be in time, exactly particular location and the zone of fire are accurately located, and can report to the police the very first time, validity and the reliability of fire detecting and alarm improved.
Embodiment
The present invention is further described below in conjunction with drawings and Examples.
Step 1: determine the n item ordered series of numbers that concerns between n the sensing point, send request signal to each sensing point one by one by controller, each sensing point is according to receiving that the situation of request signal returns confirmation signal; Sensing point returns confirmation signal to controller and is designated as 1, if sensing point does not return confirmation signal and then is designated as 0, uses A
iRepresent the n item ordered series of numbers that concerns between i sensing point and all sensing points, A
i={ a
I1, a
I2..., a
Ij..., a
In(i, j=1,2,3 ..., n), its middle term a
IjExpression after each sensing point is received request signal, is returned the situation of confirmation signal when sending the i time request signal, obtain the n item ordered series of numbers that concerns between n the sensing point;
Step 2: determine the every of n item ordered series of numbers and the ordered series of numbers S that forms: and numeration row A
iIn every and S
iThe n item number of forming is classified S as, S={S
1, S
2..., S
i... S
n,
Step 3: every according to rearranging and be designated as S ' by little to big order with among the gained ordered series of numbers S in the step 2 makes S '={ S
1 ', S
2 '..., S
N 'Be the non-decreasing ordered series of numbers, namely S ' satisfies S
1 '≤ S
2 '...≤S
N ';
Step 4: the ordered series of numbers of the every correspondence among the S ' is designated as B
I ', i '=1,2,3 ..., n, B
I '={ b
I ' 1, b
I ' 2... b
I ' j..., b
I ' n, j=1,2,3 ..., n arranges the order of adjusting according to ordered series of numbers S, with ordered series of numbers A
iValue give ordered series of numbers B
I ', can obtain B simultaneously
I 'The ordered series of numbers L that corresponding sensing point position constitutes, L=(1 ', 2 ' ..., n ');
Step 5: according to the S ' that obtains in the step 3={ S
1 ', S
2 '..., S
N 'Make the following judgment, just can obtain the network topology relation:
If S
I '=1, illustrate that then network has i parallel branch, sensing point 1 ', 2 ' ..., i ' is respectively behind the controller first sensing point on i the parallel branch;
If S
I '≠ 1, i=2,3 ..., n, note S
I 'With S
(i-1) 'At ordered series of numbers B
I 'With B
(i-1) 'Middle corresponding every sum of products is K
I (i-1);
If S
I '>S
(i-1) '=K
I, (i-1), sensing point i ' and sensing point (i-1) ' at same link so, and be sensing point (i-1) ' after first sensing point;
If S
I '=S
(i-1) '>K
I, (i-1), sensing point i ' and sensing point (i-1) ' not need further to judge K at same link so
I, (i-2)With S
(i-2) 'Relation;
If S
(i-2) '=K
I, (i-2), so sensing point i ' and sensing point (i-2) ' same link and be sensing point (i-2) ' after first sensing point;
If S
(i-2) '>K
I, (i-2), sensing point i ' and sensing point (i-2) ' also need further to judge K not at same link so
I, (i-3)With S
(i-3) 'Relation, till the relation of confirming this sensing point and arbitrary sensing point, when to S
I '(i '=1,2,3 ..., n) judgement finishes, and can obtain the topological relation of whole network, and then can obtain the topological relation figure of network.
Figure 2 shows that fire alarm detection control network, be connected with 12 detectors, as shown in Figure 2, according to the method described above, its embodiment and process are as follows:
Step 1: determine the n item ordered series of numbers that concerns between n the sensing point:
Send request signal by controller one by one to sensing point, and the address that the each transmission of hypothesis request signal carries is identical with its corresponding sequence number.Send request signal the 1st time so, return confirmation signal to controller after the 1st sensing point received request signal, be designated as 1, and it returns without 2 to No. 12 detectors of confirmation signal, so the 2nd to No. 12 detector does not return confirmation signal, is designated as 0, can obtain thus:
Ordered series of numbers A
1={ 1,0,0,0,0,0,0,0,0,0,0,0};
In like manner, controller can obtain by repeatedly sending request signal and return confirmation signal and affirmation signal that the detector of inverse signal shortest path process returns to sensing point:
Ordered series of numbers A
2={ 1,1,0,0,0,0,0,0,0,0,0,0};
Ordered series of numbers A
3={ 1,1,1,0,0,0,0,0,0,0,0,0};
Ordered series of numbers A
4={ 1,1,1,1,0,0,0,0,0,0,0,0};
Ordered series of numbers A
5={ 1,1,1,1,1,0,0,0,0,0,0,0};
Ordered series of numbers A
6={ 1,1,1,1,1,1,0,0,0,0,0,0};
Ordered series of numbers A
7={ 1,1,1,0,0,0,1,0,0,0,0,0};
Ordered series of numbers A
8={ 1,1,1,0,0,0,1,1,0,0,0,0};
Ordered series of numbers A
9={ 1,1,1,0,0,0,1,1,1,0,0,0};
Ordered series of numbers A
10={ 1,1,1,0,0,0,1,1,1,1,0,0};
Ordered series of numbers A
11={ 1,1,1,0,0,0,1,1,0,01,0};
Ordered series of numbers A
12={ 1,1,1,0,0,0,1,1,0,0,1,1}.
Step 2: calculate ordered series of numbers A
1, A
2..., A
12Every and, can get the every and ordered series of numbers S={1 that forms, 2,3,4,5,6,4,5,6,7,6,7};
Step 3: arrange according to ascending order, the item in the ordered series of numbers of every and composition is rearranged, can get non-decreasing ordered series of numbers S '={ 1,2,3,4,4,5,5,6,6,6,7,7};
Step 4: the ordered series of numbers of the every correspondence among the S ' is designated as B
I ', arrange situation about adjusting according to ordered series of numbers S, with ordered series of numbers A
iValue give ordered series of numbers B
I ', can get:
B
1′=A
1;B
2′=A
2;B
3′=A
3;B
4′=A
4;B
5′=A
7;B
6′=A
5;B
7′=A
8;B
8′=A
6;B
9′=A
9;B
10′=A
11;B
11′=A
10;B
12′=A
12。
Thereby can get B
I 'The ordered series of numbers L={1 that corresponding sensing point position constitutes, 2,3,4,7,5,8,6,9,11,10,12};
Step 5: according to the S ' that obtains in the step 3={ S
1 ', S
2 '..., S
N 'Make the following judgment:
Because S
1 '=1, S
2 '≠ 1, so corresponding sensing point 1 is first sensing point behind the controller;
Because S
2 '=2,
S
2 '>S
1 '=K
2,1So corresponding sensing point 2 is first sensing point behind the sensing point 1;
Because S
3 '=3,
S
3 '>S
2 '=K
3,2So corresponding
sensing point 3 is first sensing point behind the sensing point 2;
Because S
4 '=4,
S
4 '>S
3 '=K
4,3So corresponding sensing point 4 is first sensing point behind the
sensing point 3;
Because S
5 '=3, and
So corresponding sensing point 7 and sensing point 3 be at same link, and for being listed in sensing point in sensing point 3 another branches of back with sensing point 4;
Because S
6 '=5, and
So corresponding sensing point 5 and sensing point 4 at same link and with sensing point 7 not at same link, and be a sensing point behind the sensing point 4;
Because S
7 '=5, and
So corresponding sensing point 8 and sensing point 7 at same link and with sensing point 5 not at same link, and be a sensing point behind the sensing point 7;
Because S
8 '=6, and
So corresponding sensing point 6 and sensing point 5 at same link and with sensing point 8 not at same link, and be a sensing point behind the sensing point 5;
Because S
9 '=6, and
So corresponding sensing point 9 and sensing point 8 at same link and with sensing point 6 not at same link, and be a sensing point behind the sensing point 8;
Because S
10 '=6, and
So, so corresponding sensing point 11 and sensing point 8 at same link and with sensing point 6 and sensing point 9 not at same link, and for being listed in sensing point in sensing point 8 another branches of back with sensing point 9;
Because S
11 '=7, and
So corresponding sensing point 10 and sensing point 9 at same link and with sensing point 11 not at same link, and be a sensing point behind the sensing point 9;
Because S
12 '=7, and
So s '
12 Corresponding sensing point 12 and sensing point 11 at same link and with sensing point 10 not at same link, and be a sensing point behind the sensing point 11.
So far, the topological relation between all sensing points is all definite, can get 12 network topology graphs of a relation between the sensing point as shown in Figure 3.