Background technology
Due to the acceleration of Urbanization in China, the building of modernization more and more occur in city, the Working Life of people
Becoming increasingly dependent on building, the time is all spent in building greatly.
On the one hand, building environmental amenity, security etc. are especially paid attention to by people.It is directed to this, in the prior art,
The commonly used monitoring system for environment is monitored and sends when producing unusual condition alarm signal, such as, be applied to room
Fire alarm equipment in interior building, gas leakage warning device, cigarette sense warning device, burglar alarm etc., Yi Jiying
For outdoor atmosphere quality monitoring device etc..
On the other hand, along with the aggravation that world energy sources is the most in short supply, the energy saving of building also seems and is even more important.It is directed to this,
In the prior art, can be that the operation of the electrical equipment such as central air-conditioning, refrigerator carries by building environment is effectively monitored
For reference, energy-saving and emission-reduction are played positive impetus.
Radio sensing network is the wireless network being made up of with free configuration mode one group of sensor, its objective is perception synergistically,
Gather and process the information of perceptive object in the geographic area of the network coverage, and converge to observer.Sensor, network technology and
Information processing is three fundamentals of radio sensing network;Complete perception task one group of sensor synergism;Wireless network is passing
Discovery data and control command is passed between sensor, between sensor and control centre;To the statistics of initial data, the basis of analysis
Upper formation decision-making and control, to realize the function of information processing.
Radio sensing network in actual applications can not exist with an independent communication network form.Sensor inspection in network
The data surveyed need to be sent to be analyzed as the application server of control centre, process, meanwhile, and answering as control centre
The sensor being issued in radio sensing network by related command it is also required to server.This be accomplished by radio sensing network realize with
Interconnection between different type network.In radio sensing network, sensing gateway just takes on internetwork protocol converter, difference
The key players such as the network router of network type, collecting network data, storage process, become between network connect indispensable
Tie.
One small-scale radio sensing network only can need to dispose a sensing gateway, this sensing gateway monitor some
Sensor.And for the radio sensing network that coverage is bigger, it is desirable to multiple sensing gateways, each of which
Individual sensing gateway all monitors some sensors.Generally, according to the demand of reality application, the quantity of sensor, layout
Can be adjusted correspondingly, update.The most how to improve radio sensing network senses gateway to the monitoring of sensor, safeguard into
It is a key element, directly affects the reliability of radio sensing network.In the prior art, manual type is used to tie up
Protect, there is the problems such as complex operation, maintenance cost height, reliability decrease.
Summary of the invention
It is an object of the invention to the update method being to provide the sensing node in a kind of radio sensing network, be used for solving existing skill
The problem such as complex operation, maintenance cost height, reliability decrease in art.
For solving the problems referred to above, the present invention provides the update method of the sensing node in a kind of radio sensing network, described wireless biography
Sense network includes: sensing node, gateway node and server, the update method of described sensing node includes: (1), gateway node
Use active scan mode periodically to send broadcast message, specify feedback information for sending after the sensing node reception of periphery;(2), net
Artis monitors the appointment feedback information of sensing node;If gateway node receives the appointment feedback information of sensing node, then show
Corresponding sensing node is in normal operating conditions, proceeds to step (3);If gateway node does not receives the appointment of sensing node
Feedback information, then show that communication failure occurs in sensing node, then the sensing node that will appear from communication failure is deleted and updates net
Routing table information in artis;(3), gateway node is according to the appointment feedback information of the sensing node received, it is determined that sensing joint
Whether point and gateway node have set up communication connection;If it is determined that sensing node is set up with gateway node communication connection, then terminate;
Otherwise, if it is determined that sensing node is not set up with gateway node communication connection, then proceed to step (4);(4), judge not with net
Artis sets up in the sensing node communicated to connect whether there are the new sensing node not networked, if existing, then proceeds to step
(5);If otherwise do not exist, then show that sensing node is in normal operating conditions but with gateway node departing from communication connection, enters
To step (6);(5), gateway node distributes one newly according to the address information in routing table, the new sensing node for not networking
Address and new identity ID, complete the networking bindings of described sensing node;(6) gateway node saves according to the sensing of periphery
The appointment feedback information of point, does not sets up the sensing node renewal route of communication connection for being in normal operating conditions with gateway node
Table information, distributes new relaying, completes the networking bindings again of described sensing node.
Alternatively, described broadcast message includes that the address information of described gateway node, described appointment feedback information include sensing node
Address information, routing iinformation, synchronizing information and energy information.
Alternatively, described communication failure is to be caused by the either type in following: in sensing node equipment fault or communication link
Disconnected.
Alternatively, in step (5), including: the routing link in gateway node table of query and routing and address information, from described
A selected address being not used by address information in routing table, and described address and corresponding routing iinformation are sent to not
The described sensing node networked is as its network registration address, simultaneously for described sensing node one the new identity of distribution not networked
ID, it is achieved shake hands, completes networking bindings;Routing table information in more new gateway node.
Alternatively, described step (6) including: gateway node, according to the appointment feedback information of the sensing node of off-grid, is deleted described
The route chained list at the place that sensing node is original;Gateway node is according to the response message of the sensing node of periphery, for the sensing of off-grid
Node sets up one or more feasible route;Gateway node is according to the position relationship routeing and energy attenuation situation, from feasible
A selected Optimization route in route;Gateway node is according to Optimization route, when necessary at gateway node and the sensing node of off-grid
Between specify one or more sensing node as relaying, routing iinformation is sent to as the sensing node relayed and the biography of off-grid
Sense node, sets up new routing table, simultaneously the routing table information in more new gateway node.
Alternatively, described sensing node include Temperature Humidity Sensor, position sensor, infrared sensor, infrared multicarrier receiver,
Pressure sensor, ultrasonic sensor, cigarette propagated sensation sensor, CO sensor, CO2Sensor, SO2Sensor, noise sense
Any combination in device, electromagnetic radiation sensor, pellet sensor, video probe.
Alternatively, described gateway node sets up communication connection with described sensing node by Zigbee wireless network.
Alternatively, the networking mode between described gateway node and described sensing node includes that stelliform connection topology configuration, tree topology are tied
A kind of in structure and fully connected topology or their Compound Topology structure.
Alternatively, described gateway node is the operating system with ARM9 flush bonding processor as core.
As it has been described above, the present invention provide radio sensing network in sensing node update method mainly by gateway node with
Active scan mode obtains the appointment feedback information of each sensing node of periphery, according to described appointment feedback information, learns each
The networking situation of sensing node, takes corresponding regeneration layer.These renewals at least include: be found to have the new biography not networked
During sense node, for new sensing node one the new address of distribution not networked and new identity ID, complete described sensing node
Networking bindings;When being found to have the sensing node of off-grid, set up, for being in the sensing node of off-grid, the relaying that distribution is new, build
Vertical new routing table, completes the networking bindings again of described sensing node.Compared to the prior art of employing manual type,
The present invention is without carrying out on-site maintenance management to sensing node, and whole renewal process is simple and convenient, not only greatly reduces and safeguards into
This, ensure that the properly functioning of each sensing node especially.
Detailed description of the invention
The inventors found that: traditional sensing network, use manual type to safeguard, there is complex operation, dimension
Protect high in cost of production problem.
Therefore, for overcoming the generation of drawbacks described above and solving each problem above-mentioned, prior art is carried out by the present inventor
Improve, it is proposed that the update method of the sensing node in a kind of radio sensing network, utilize the pool of gateway node to dispatch, according to
In the environment of difference each sensor networking situation and self adaptation takes corresponding measure to adjust some of which sensing node necessarily
Whole its route and is updated, thus safeguards the operation of radio sensing network.
Below in conjunction with the accompanying drawings present disclosure is described in detail.
Fig. 1 shows radio sensing network that the update method of sensing node of the present invention applied structure in one embodiment
Schematic diagram.As it is shown in figure 1, described radio sensing network includes: be arranged on sensing node 10 and the sensing joint of each control point
Point 10 foundation communication connection gateway node 12 and gateway node 12 set up the service platform 14 of communication connection.
Gateway node 12 is to set up communication connection with sensing node 10, for supervising each sensing node 10 of communication connection
Control, collect the data uploaded by sensing node 10 and the data collected carried out protocol conversion for uploading, report and to correspondence
Described sensing node send control instruction.In the present embodiment, especially, described gateway node with described sensing node is
Communication connection is set up by Zigbee wireless network.Zigbee is low-power consumption territory based on IEEE802.15.4 standard fidonetFido,
It has the advantage that 1, closely;2, low complex degree, self-organizing;3, low-power consumption;4, low rate, uses Zigbee
The product of technology can provide 250kbps(16 channel on 2.4GHz), 915MHz provides 40kbps(10
Channel) and on 868MHz provide 20kbps(1 channel) transfer rate;5, short time-delay;6, low cost, Zigbee
Message transmission rate is low, and agreement is simple, so greatly reducing cost;7, high power capacity, Zigbee uses multiple network structure,
Being managed some child nodes by a host node, most host nodes can manage 254 child nodes;Host node can also be by simultaneously
Last layer network node control, at most can form the catenet of 65000 nodes.
The Zigbee wireless network of the foundation between gateway node 12 from each sensing node 10 can use different networking modes.
Specifically: in one embodiment, described networking mode is starlike type network, it may be assumed that gateway node 12 is controlled as a center
Processed, each sensing node 10 is all joined directly together (as shown in Figure 2 a) with gateway node, thus realizes a bit (gateway node
12) communication or the multiple spot (sensing node 10) communication to a bit (gateway node 12) to multiple spot (sensing node 10).
In another embodiment, described networking mode is that tree topology is (as shown in Figure 2 b, in figure 2b, at gateway node 12
And between sensing node 10, also introducing the trunking with routing function, these trunkings can be by sensing node 12
Complete).In another embodiment, described networking mode is that fully connected topology is (as shown in Figure 2 c, in figure 2 c, at net
Also introducing the trunking with routing function between artis 12 and sensing node 10, these trunkings can be by passing
Sense node 12 completes), possess routed path automatic majorization function.Certainly, network topology structure is not limited with above-mentioned,
In other embodiments, it would however also be possible to employ compound network topology structure, for example with stelliform connection topology configuration and fully connected topology
The Compound Topology structure combined.The prior art being well known to those skilled in the art due to network topology structure, therefore at this
Repeat no more.
In the present embodiment, each sensing node 10 needs control point collects data or the device data relevant to self
It is uploaded to the gateway node 12 being connected, i.e. gateway node 12 can collect the data uploaded by sensing node 10.Further,
Gateway node is uploaded to service platform 14 after also including the data collected are carried out protocol conversion again.In actual applications, gateway joint
Point 12 collects the data uploaded by sensing node 10 and the data collected carries out protocol conversion for uploading, including: gateway saves
Putting 12 data obtaining connected sensing node 10 in active scan mode, the described data that will obtain add gateway messages queue,
From described gateway messages queue, read described data and be encapsulated into packet, more described packet is uploaded to service platform
14.In the process above, the data that sensing node 10 is uploaded include sensing node 10 collection data and with sensing node 10 phase
The device data (such as fault data) closed, described packet is expandable mark language XML packet.Implement one
In, described sensing node includes that Temperature Humidity Sensor, position sensor, infrared sensor, infrared multicarrier receiver, pressure pass
Sensor, ultrasonic sensor, cigarette propagated sensation sensor, CO sensor, CO2Sensor, SO2Sensor, noise transducer, electricity
Any combination in magnetic radiation sensor, pellet sensor, video probe.Preferably, gateway node is ARM9
Flush bonding processor is the operating system of core.
Service platform 14 is to set up communication connection, for gateway node 12 is monitored, is collected by gateway with gateway node 12
Data that node 12 is uploaded, the data collected are stored, analyze, add up and process and by gateway node 12 to
Corresponding sensing node 10 sends monitoring instruction.
In the present embodiment, described gateway node and described service platform are that network based on ICP/IP protocol sets up communication connection
's.So, the gateway node 12 in the present invention is achieved that Zigbee wireless network and TCP/IP network (such as Internet)
Seamless link, fully utilize the advantage of each network type.
Service platform is as an administrative center, and each gateway node 12 of being attached thereto for management and lower each thereof sense
Node 10.Affiliated monitoring instruction specifically can include that request data reads instruction and control instruction.Service platform 14 is mainly manifested in:
When service platform 14 needs the data obtaining each sensing node 10, i.e. by gateway node 12 to specify that or that
The request data that sends several sensing nodes 10 reads instruction, and follow-up collect by gateway node 12 upload corresponding that
Or the data of those several sensing nodes;Service platform 14 can directly store the data uploaded or these data are analyzed, are united
Meter (such as carry out statistics for the data uploaded in a period of time and obtain relevant rule change) with judge sensing node 10 or
The operation conditions of the monitored object of the control point corresponding to sensing node 10;When service platform 14 receives external command or sentences
When the operation conditions of the monitored object determining the control point corresponding to sensing node 10 or sensing node 10 needs variation, then lead to
Cross gateway node 12 and send control instruction to sensing node 10, adjust the monitoring corresponding to sensing node 10 or sensing node 10
The operation conditions of the monitored object of point.
Fig. 3 shows the update method of sensing node of the present invention schematic flow sheet in one embodiment.In conjunction with Fig. 1 and Tu
3, the update method of described sensing node includes:
Step S201, gateway node 12 uses active scan mode periodically to send broadcast message, and the sensing node 10 for periphery connects
Send after receipts and specify feedback information.In the present embodiment, described broadcast message be gateway node 12 the most termly
Send.Described broadcast message at least includes the address information of gateway node, certainly, is not limited thereto, in other situations
Under, described broadcast message can also include the device type of gateway node 12, positional information etc..The sensing node 10 of periphery exists
After receiving the broadcast message that gateway node 12 sends, i.e. send to gateway node 12 and specify feedback information, with to gateway node 12
The relevant information of report sensing node.In the present embodiment, described appointment feedback information can include the address letter of sensing node 10
Breath, routing iinformation, synchronizing information and energy information etc..
Step S203, gateway node 12 is monitored appointment feedback information that each sensing node 10 uploads and according to whether can receive
Feedback information is specified to judge the working condition of each sensing node 10.Specifically, if gateway node 12 receives some
The appointment feedback information of sensing node 10, then show that this sensing node 10 corresponding is in normal operating conditions, proceed to
Step S205;If gateway node 12 does not receives the appointment feedback information of some sensing node 10, then show corresponding this
Individual sensing node 10 occurs in that communication failure, then the sensing node that will appear from communication failure in subsequent operation is deleted and updates
Routing table information in gateway node.In the present embodiment, it is determined that whether sensing node 10 occurs that communication failure can be according to even
Continuous repeatedly not receiving specifies feedback information to draw.Described communication failure is to be caused by the either type in following: sensing
Node device fault or interrupted communication link.
Step S205, gateway node 12 is according to the appointment feedback information of the sensing node 10 received, it is determined that sensing node 10
Whether communication connection has been set up with gateway node 12;If it is determined that sensing node 10 and gateway node 12 are to set up to have communication connection,
Then terminate described flow process;Otherwise, if it is determined that sensing node 10 is not set up with gateway node 12 to have communication connection, then proceed to
Step S207.
Step S207, it is determined that whether there are in the sensing node 10 not setting up communication connection with gateway node 12 and do not network
New sensing node 10, if existing, then proceeds to step S209;If otherwise do not exist, then show that sensing node 10 is in normally
Duty but with gateway node 12 departing from communication connection, then, proceed to step S211.
Step S209, gateway node 12, according to the address information in routing table, distributes one for the new sensing node 10 not networked
Individual new address, completes the networking bindings of sensing node 10.In the present embodiment, step 209 specifically includes: gateway saves
Routing link in point 12 table of query and routing and address information, in the address information from described routing table, selected one is not used by
Address, and described address and corresponding routing iinformation are sent to the sensing node 10 not networked as its network registration address,
Sensing node 10 for not networking distributes new identity ID simultaneously, it is achieved shakes hands, completes networking bindings;Update net
Routing table information in artis.
Step S211, gateway node 12 is according to the appointment feedback information of the sensing node 10 of periphery, for being in normal operating conditions
But the sensing node 10 not setting up communication connection with gateway node 12 updates routing table information, distributes new relaying, completes sensing
Again the networking bindings of node 10.The sensing node of off-grid can be networked again by step S211.
Specifically, step S211 more can be further refined as each step following: a, gateway node 12 saves according to the sensing of off-grid
The appointment feedback information (referring specifically to routing iinformation) of point 10, deletes the routing table that described sensing node 10 is original;B, gateway save
Point 12 is according to the appointment feedback information (referring specifically to routing iinformation and energy information) of the sensing node 10 of periphery, for the sensing of off-grid
Node 10 sets up one or more feasible route;Position relationship that c, gateway node 12 route according to each and energy attenuation feelings
Condition, a selected Optimization route from feasible route;D, gateway node 12, according to selected Optimization route, exist when necessary
Specify one or more sensing node 10 as relaying between gateway node and the sensing node of off-grid, routing iinformation is sent to making
For sensing node 10 and the sensing node 10 of off-grid of relaying, set up new routing table, simultaneously the road in more new gateway node 12
By table information.
In sum, the present invention provide radio sensing network in sensing node update method mainly by gateway node with
Active scan mode obtains the appointment feedback information of each sensing node of periphery, according to the appointment feedback letter receiving sensing node
Breath, learns the networking situation of each sensing node, takes corresponding regeneration layer.These renewals at least include: be found to have not
During the new sensing node networked, for new sensing node one the new address of distribution not networked and new identity ID, complete institute
State the networking bindings of sensing node;When being found to have the sensing node of off-grid, set up distribution for being in the sensing node of off-grid
New relaying, sets up new routing table, completes the networking bindings again of described sensing node.Compared to using manual type
Prior art, the present invention is without carrying out on-site maintenance management to sensing node, and whole renewal process is simple and convenient, the most significantly
Reduce maintenance cost, ensure that the properly functioning of each sensing node especially.
Disclose as above with preferred embodiment although the present invention is own, but the present invention is not limited to this.Any those skilled in the art,
Without departing from the spirit and scope of the present invention, all can make various changes or modifications, therefore protection scope of the present invention should be with power
Profit requires that limited range is as the criterion.