Embodiment
The invention will be further described with the following Examples.
A kind of intelligent street lamp control system based on cloud computing provided referring to Fig. 1, Fig. 2, the present embodiment, including traffic flowMonitoring modular 1, Cloud Server 2 and Street lamps control module 3 are measured, described traffic flow monitoring module 1 is based on wireless sensor networkNetwork carries out the collection and transmission of traffic flow data, the traffic flow monitoring module 1 and Cloud Server 2 by network connection,And traffic flow data is uploaded to Cloud Server 2;Described Street lamps control module 3 and the interactive communication of Cloud Server 2, the cloudServer 2 analyzes received traffic flow data, and analysis result is transmitted into Street lamps control module 3, and Street lamps control module 3 is controlledStreet lamp processed is turned on and off.
Preferably, the Cloud Server 2 include, data memory module 4, data analysis module 5, communication module 6, the numberIt is connected according to memory module 4 with the data analysis module 5, the communication module 6 and traffic flow monitoring module 1, Street lamps controlModule 3 is connected.
Preferably, described Street lamps control module 3 is by WiFi or GPRS connections Cloud Server 2, and communicates with.
Preferably, traffic flow monitoring module 1 includes base station and traffic flow monitoring node, described traffic flow monitoringNode includes processor unit, wireless communication unit, data acquisition unit, energy supply unit and intelligent switch, radio communicationUnit, data acquisition unit and intelligent switch are all connected with processor unit;Described traffic flow monitoring node is divided into commonlyMonitoring node and domination monitoring node, common monitoring node is periodically to the magnitude of traffic flow number for dominating monitoring node transmission collectionAccording to domination monitoring node receives the traffic flow data of common monitoring node transmission and tentatively after fusion traffic flow data to baseStand transmission.
The intelligence that the above embodiment of the present invention realizes street lamp using cloud computing technology and wireless sensor network technology is controlledSystem, while road traffic condition can be sent to traffic by the analysis of Cloud Server 2, is easy to traffic intuitivelySolve road traffic condition.
Preferably, it is specific to perform when being divided into common monitoring node by traffic flow monitoring node and dominate monitoring node:
(1) the domination preferred value of each traffic flow monitoring node is determined, if the domination preferred value of traffic flow monitoring nodeFollowing condition is met, then dominates monitoring node using the traffic flow monitoring node as candidate, preferred value will be dominated and be unsatisfactory for downThe traffic flow monitoring node of row condition is used as common monitoring node:
In formula, G (Eij) it is EiJ-th of neighbor node domination preferred value;
Wherein, if G (Ei) represent i-th of traffic flow monitoring node EiDomination preferred value, the calculating for dominating preferred value is publicFormula is:
In formula,Represent EiPrimary power value, SERepresent the magnitude of traffic flow prison being arranged in transmission line of electricity monitored areaSurvey interstitial content,For EiNeighbor node number,For EiThe neighbor node number that has of j-th of neighbor node,For EiCommunication radius, RTFor the communication radius threshold value of setting,For EiIn the probability of setting time section normal work, e1、e2ForThe weight coefficient of setting;
(2) if candidate dominates the distance threshold that the distance between monitoring node is less than setting two-by-two, from corresponding twoCandidate dominates selection in monitoring node and dominates the minimum common monitoring node of conduct of preferred value, and remaining candidate dominates monitoring nodeIt is used as domination monitoring node.
This preferred embodiment, which will dominate preferred value and meet the traffic flow monitoring node that imposes a condition, is used as candidate to dominate prisonNode is surveyed, then monitoring node is dominated to candidate closer to the distance two-by-two and is screened, is prevented between the domination monitoring node selectedHypotelorism, so as to select the smaller number of domination monitoring node of excellent performance, is ensureing traffic flow data collection demandOn the premise of optimize the quantity for dominating monitoring node, be capable of the communication overhead of less traffic flow monitoring module 1, reduction intelligenceThe communications cost of street lamp control system.
Preferably, when dominating monitoring node failure, using the new domination monitoring node of node replacement policy selection of setting,Specially:
(1) determine to dominate after monitoring node, calculating dominates the traffic flow monitoring node in monitoring node communication rangeWeights are substituted, if ExθRepresent to dominate monitoring node ExCommunication range in the θ traffic flow monitoring node, G (Exθ) representExθReplacement weights, G (Exθ) calculation formula be:
In formula,Represent ExθResidual energy value, MExTo dominate monitoring node ExThe magnitude of traffic flow is supervised in communication rangeSurvey interstitial content,To dominate monitoring node ExNeighbor node number, M (Ex∩Exθ) represent ExθWith ExNeighbor node collectionThere is the number of common neighbor node in conjunction,For ExθCommunication radius,For ExCommunication radius,For ExθThe probability of setting time section normal work, c1、c2、c3、c4For the weight coefficient of setting;
(2) monitoring node is dominated descending according to weights are substituted to the traffic flow monitoring node in its communication rangeOrder is ranked up, and generation is alternative to dominate monitoring node list, when dominating monitoring node failure, and monitoring node row are dominated from alternativeFirst traffic flow monitoring node is selected to be used as new domination monitoring node in table.
This preferred embodiment is supervised when dominating monitoring node failure using the new domination of node replacement policy selection of settingNode is surveyed, the closer traffic flow monitoring node of monitoring node performance that dominates that can be selected and fail dynamically substitutes failureMonitoring node is dominated, the Dynamic Maintenance of the communication link of wireless sensor network and more is realized in traffic flow monitoring module 1Newly, the reliability of traffic flow data transmission is improved.
Preferably, common monitoring node is carried out after traffic flow data collection, is periodically sent to domination monitoring nodeThe traffic flow data of collection, is specifically included:
(1) determine that the domination monitoring node in common monitoring node communication range receives the probability of the traffic flow data,IfRepresent common monitoring node LrG-th of domination monitoring node L in communication rangegReceive the general of traffic flow dataRate, thenCalculation formula be:
In formula,Represent LgResidual energy value,Represent LgThe neighbours dominate the surplus of monitoring nodeComplementary energy value,Represent LgNeighbours dominate monitoring node number,Represent LrNeighbours dominate monitoring node number, d(Lg,Lr) represent common monitoring node LrTo LgThe distance between, dTFor the distance threshold of setting;
(2) the maximum domination monitoring node of common monitoring node select probability sends traffic flow data.
In this preferred embodiment, common monitoring node supervises the domination that the traffic flow data of collection is sent to maximum probabilitySurvey on node, it is to avoid same domination monitoring node receives traffic flow data, so that balancing domination monitoring node carries out trafficTraffic data collection and the task of forwarding, equilibrium dominate the energy expenditure of monitoring node, further extend traffic flow monitoringThe life cycle of module 1.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than to present invention guarantorThe limitation of scope is protected, although being explained with reference to preferred embodiment to the present invention, one of ordinary skill in the art shouldWork as understanding, technical scheme can be modified or equivalent substitution, without departing from the reality of technical solution of the present inventionMatter and scope.