Summary of the invention
Shortcomings such as the purpose of the utility model is to lack dynamic real-time to existing stop-gi sugbal control, and the vehicle Flow Detection installation wiring is too much provide the controlling system of traffic light that a kind of real-time is stronger, reliability is higher.
The system of the utility model comprises: controlling center and a plurality of wireless sensing node.Controlling center is a control center, is a PC, deposits and shows condition of road surface, information of vehicle flowrate, runs on data that the upper computer software analysis on the PC receives and transmit through corresponding wireless sensing node to order control information.Wireless sensing node is divided three classes, and the first kind is the information acquisition node, is used to gather information of vehicle flowrate; Second type is aggregation node, is divided into common aggregation node and center aggregation node, collects the information of vehicle flowrate of respective regions and is sent to controlling center; The 3rd type is Control Node, is divided into general control node and center control nodes, receives the control information of controlling center.This three category node is deployed in the urban traffic intersection, forms a wireless sensor network, realizes that the transmission of data is mutual.
Controlling center and wireless sensing node adopt the USB communication modes.Controlling center connects two wireless sensing nodes through USB port, and one is the center aggregation node, is responsible for the wireless data that converges to is sent to the PC controlling center, and another is a center control nodes, is responsible for sending the control information of PC end to Control Node.The center aggregation node is compared with common aggregation node, need only not be responsible for the packet of receiving is sent on the PC to information acquisition node collecting cart flow information and forwarding packet.Center control nodes is compared with the general control node, only is responsible for receiving forwarding PC controlling center control information data bag.
The information acquisition node is through vehicle detecting sensor inspection vehicle flow information, and vehicle detecting sensor links to each other with the external interrupt mouth of corresponding information acquisition node, when vehicle through the time, cause that the corresponding information acquisition node interrupts.The information acquisition node calculates vehicle flowrate through interrupt routine.The traffic lights that Control Node is controlled corresponding crossing change, and are responsible for transmitting the control information data bag simultaneously.The information acquisition nodal information at the corresponding crossing of aggregation node collection also is sent to controlling center through contiguous aggregation node with the information of collecting, and bears the function of vehicle flowrate data aggregation and forwarding.
Can know from the above mentioned; Controlling center and all kinds of internodal data flow are divided into two-way; The firstth, the information of vehicle flowrate packet that collects is sent to the PC controlling center through aggregation node, and the secondth, the control information data bag of PC controlling center is sent to corresponding traffic lights controller through Control Node.
A crossing is provided with 1 common aggregation node, 1 general control node and a plurality of information acquisition node.Article one, dispose 2 information acquisition nodes on the track at least, if two-way bicycle road, then 8 information acquisition nodes are disposed at crossing, 1 crossroad at least, 1 general control node and 1 common aggregation node.Entire city traffic right-angled intersection is all arranged in the above described manner, forms a radio sensing network through aggregation node and Control Node, and the forwarding of accomplishing transmission of vehicle flowrate forwarding of data and traffic lights control information transmits.
With respect to prior art, the beneficial effect of the utility model:
1) transmission of information of vehicle flowrate need not to set up the wire signal line through wireless, and is easy to maintenance;
2) can dynamically adjust the traffic lights duration according to the vehicle flowrate size, reduce the right-angled intersection jam situation.
Embodiment
Below in conjunction with accompanying drawing the utility model is described further.
The system of the utility model comprises: controlling center and a plurality of wireless sensing node.Controlling center is a control center, is a PC, deposits and shows condition of road surface, information of vehicle flowrate, runs on data that the upper computer software analysis on the PC receives and transmit through corresponding wireless sensing node to order control information.Wireless sensing node is divided three classes, and the first kind is the information acquisition node, is used to gather information of vehicle flowrate; Second type is aggregation node, is divided into common aggregation node and center aggregation node, collects the information of vehicle flowrate of respective regions and is sent to controlling center; The 3rd type is Control Node, is divided into general control node and center control nodes, receives the control information of controlling center.This three category node is deployed in the urban traffic intersection, forms a wireless sensor network, realizes that the transmission of data is mutual.
Controlling center and wireless sensing node adopt the USB communication modes.The PC controlling center connects two wireless sensing nodes through USB port, and one is the center aggregation node, is responsible for the wireless data that converges to is sent to the PC controlling center, and another is a center control nodes, is responsible for sending the control information of PC end to Control Node.The center aggregation node is compared with common aggregation node, need only not be responsible for the packet of receiving is sent on the PC to information acquisition node collecting cart flow information and forwarding packet.Center control nodes is compared with the general control node, only is responsible for receiving forwarding PC controlling center control information data bag.
As shown in Figure 1, single crossing radio node distributes 10 in the native system, and wherein 8 are information acquisition node, 1 general control node and 1 common aggregation node.The information acquisition node is through vehicle detecting sensor inspection vehicle flow information, and vehicle detecting sensor links to each other with the external interrupt mouth of corresponding information acquisition node, when vehicle through the time, cause that the corresponding information acquisition node interrupts.The information acquisition node calculates vehicle flowrate through interrupt routine.The traffic lights that Control Node is controlled corresponding crossing change, and are responsible for transmitting the control information data bag simultaneously.The information acquisition nodal information at the corresponding crossing of aggregation node collection also is sent to controlling center through contiguous aggregation node with the information of collecting, and bears the function of vehicle flowrate data aggregation and forwarding.
Wherein, Vehicle detecting sensor adopts the infrared laser detecting device, and an infrared transmitting tube and an infrared receiving tube stand on the both sides, track respectively, if do not have vehicle through this detecting device; Receiving tube can normally receive the power valve signal, and detecting device produces a 0V low level voltage; When vehicle through out-of-date, receiving tube can't receive signal, detecting device shovel is penetrated the 5V high level voltage.The change triggers signals collecting node of this voltage interrupts.
As shown in Figure 2, be each node of native system at a plurality of right-angled intersection distribution schematic diagrams, in the radio node at each crossing, self-organizing network of each self-forming of aggregation node and Control Node, two networks are separate, do not conflict mutually.
The radio node communication module adopts the zigbee agreement, and emissive power 100mw, stable communication distance can make city right-angled intersection intermediate node realize communication about 1km.If too far away between junction node because of distance, can't accomplish communication, can add relay and control node or relaying aggregation node.In the Zigbee hoc network agreement, can add 65535 radio nodes at most, can for each node in self-organization network distribute one exclusive ID number, satisfy urban road crossing radio node number fully.
Controlling center and all kinds of internodal data flow are divided into two-way; The firstth, the information of vehicle flowrate packet that collects is sent to the PC controlling center through aggregation node, and the secondth, the control information data bag of PC controlling center is sent to corresponding traffic lights controller through Control Node.
The controlling center flow process is following:
Step 1: controlling center detects to have or not receives the center convergent node information, if do not have, returns step 1, continues to detect; If have, enter into step 2;
Step 2: controlling center is deposited information and is analyzed canned data more in the past, calculates the crossing traffic lights time, generates the corresponding control information packet, forwards step 3 to;
Step 3: controlling center is sent to center control nodes with the control information data bag through the USB mouth, and by center control nodes packet to the crossing Control Node that sends control information, controlling center forwards step 1 to;
Wherein in controlling center PC, move a upper computer software, this software major function is to accomplish the storage and the analysis of vehicle flowrate data.Information of vehicle flowrate can be preserved with the excel form, and the vehicle flowrate size of coming out has also been preserved the time that corresponding vehicle flowrate arrives, and can supply to consult.The communication mode of upper computer software and two Centroids is through the USB mouth; Aggregation node uses the communication data packet format to be: id number | direction 1 vehicle flowrate | and direction 2 vehicle flowrates | direction 1 is waited for vehicle flowrate | direction 2 is waited for vehicle flowrate; Id number for being distributed in the id numbering of the common aggregation node in the crossing; With Fig. 1 is example, and direction 1 is set at east-west, and direction 2 is a south-north direction; Vehicle flowrate for through the vehicle at the aggregation node crossing of numbering id what, wait for vehicle flowrate for the vehicle of waiting for the traffic lights time what.Control Node uses the communication data packet format to be: id number | direction 1 controlled variable | and direction 2 controlled variable, id number controlled variable comprises traffic lights change direction and traffic lights adjustment time in order to be distributed in the id numbering of the general control node in the crossing.
The Control Node flow process is following:
Step 1: Control Node receives the control information data bag from controlling center, then gets into step 2; Otherwise return step 1;
Step 2: Control Node judges whether the control information into this node, is then to get into step 3, otherwise gets into step 4;
Step 3: Control Node is sent to corresponding traffic lights controller with control information through serial ports, returns step 1;
Step 4: the control information data bag that the Control Node routing forwarding receives returns step 1 then to contiguous Control Node;
Information acquisition node flow process is following:
Step 1: the information acquisition node captures external interrupt, then gets into step 2; Otherwise get into step 3;
Step 2: the vehicle flowrate counting adds 1; Get into step 3;
Step 3: judging whether to receive the aggregation node solicited message, is then to get into step 4; Otherwise return step 1;
Step 4: send the information of vehicle flowrate packet to aggregation node, return step 1;
As shown in Figure 7, the aggregation node flow process is following:
Step 1: the aggregation node request msg time arrives, and then gets into step 2, otherwise gets into step 5;
Step 2: aggregation node sends request data package to the corresponding information acquisition node, gets into step 3;
Step 3: aggregation node is waited for and is received information acquisition node feedback data packet, receives information acquisition node feedback data packet, then gets into step 4, otherwise returns step 2;
Step 4: aggregation node is transmitted packet through contiguous aggregation node, gets into step 5;
Step 5: aggregation node judges whether to receive contiguous aggregation node packet, is then to get into step 6; Otherwise directly return step 1;
Step 6: aggregation node judges whether this node is the center aggregation node, is then the packet that receives to be sent to controlling center PC through USB port; Otherwise transmit packet to contiguous aggregation node; Return step 1 then;
Wherein because the information acquisition node does not add in the self-organizing network, the communication mode of aggregation node and information acquisition node adopts point-to-point communication mode.Aggregation node whenever at a distance from 5 seconds to information of vehicle flowrate of information acquisition node request; Behind the packet of receiving 8 information acquisition nodes, do simple Treatment Analysis, Treatment Analysis is following: be example with Fig. 1; Node 2 and node 6 are detected be direction 1 entering vehicle flowrate, i.e. direction 1 vehicle flowrate; Node 1,3,5,7 detected vehicle flowrates are partly gone out vehicle flowrate for direction 1, and half of getting these four node vehicle flowrates gone out vehicle flowrate as direction 1, and then direction 1 waits for that vehicle flowrate is that direction 1 vehicle flowrate deducts direction 1 and goes out vehicle flowrate.Direction 2 in like manner.Last aggregation node will pass through wireless transmission with the top data packet format of carrying.