Wireless sensor network system and method for processing data

29-04-2009 дата публикации
Номер:
CN0101420774A
Принадлежит: Nanjing University
Контакты:
Номер заявки: 24-10-20083701
Дата заявки: 12-12-2008

[1]

Technical Field

[2]

The invention relates to a support in the network data storage, management and excavation, transparent and non-transparent upgrade of the software and multi-language programming of the wireless sensor network to realize the system and method of the above-mentioned tasks, which belongs to the wireless self-organizing network system technical field

[3]

Background Art

[4]

Wireless sensor network (Wireless   Networks   Sensor, abbrebyted WSN) is a wireless network as a means of communication Ad-Hoc, collection, treatment and analysis with sensing capability in the network node for the purpose of obtaining the data of the large-scale self-organizing network.

[5]

See Figure 1, this method is based on the heterogeneous wireless sensor network, the system has a plurality of different size (and micaz TFAD-901) sensor node, data aggregation node, program server and customer end. Between each node node of the sensor and the data collection node, program server between the communication in a wireless mode, the data collection server and a user end of the between the wired or wireless mode communication.

[6]

Sensor network for data acquisition, management, excavation, the upgrade of the software in the research work in such areas as at home and abroad have a certain research foundation has been, made many theoretical problems, and to achieve some utility middleware system of the based on most of these middleware system Mica series of hardware node TinyOS and.

[7]

Literature and in the wireless sensor applications projects Impala ZebraNet and its middleware system. ZebraNet is the research projects of wild animals. Based on event-based middleware system Impala modular programming model is easy to program staging, fault-tolerant and energy-saving. However, the support of the data management Imapala very few, and can only in homogeneous operation under the environment.

[8]

Mate system is to construct the TinyOS system the virtual machine, hiding the details of the underlying operating system. Although Mate simple model has the advantages of small volume, simple programming model, but energy consumption is great and cannot support large-scale application.

[9]

Agilla is realized on the 1st TinyOS mobile proxy middleware. Agilla as a mobile proxy middleware allows the agent to move from one node to another node, and a node can be operated at the same time a plurality of agents can be in the sensor network at the same time the application program different operation. Agilla and is not authorized, however, monitor the agent mechanism, and the maintainability of the unsatisfactory procedure.

[10]

TinyDB is a based on Tiny0S data query processing middleware, provides an energy-saving data query function. The data aggregation TinyDB fusion provides very good support, but there is no other middleware services to provide.

[11]

And the above method is compared to several system, the method on the wireless sensor network including improving the function of data processing, storage, excavation, a plurality of software upgrading mode, flexible power management module, and the support of the multi-programming language, the sensor network and support heterogeneous.

[12]

Reference literature:

[13]

[1] Ting   Liu, Christopher   M.Sadler, Pei   Zhang, Margaret   Martonosi.Implementing software   on   resource-constrained   mobile   sensor: experiences   with   Impala   and ZebraNet[J] .Proceedings   of   the   2nd   international   conference   on   Mobile   Systems, Applications, and   Services.Jun. 2004 : 256-269

[14]

[2]   Liu Ting,   Martonosi.Impala Margaret:   for   Parallel A   Sensor   Middleware   Systems[J   Managing Autonomic   System] .Proceedings   the   of   ACM   SIGPLAN Symposium   on   principles   of   programming   and   Parallel   practice (PPoPP ' 03)   and   partial   semantics-based and workshop   on   manipulation   program   evaluation (PEPM   2003) Oct. 2003   38 (10): 107-118

[15]

[3] P.Levis, D.E.Culler.Maté: a   machine   Networks[J   Virtual   Sensor   For   Tiny]. Proceedings   of   the   10th   international   conference   on   Architectural   Support   for programming   Languages   and   Operating   Systems, Oct. 2002, San   Jose, California: 85-95

[16]

[4]   for Brian   Nets.URL   Sensor   Blum. Mate-VM: http://zoo.cs.yale. Edu/classes/cs434/readings/papers/Mate .ppt

[17]

[5]   C.-L Fok. , Roman   g.-L. ,   For Lu   Networks   Agent   Sensor   Middleware   C.Mobile:   Study[J   Case   Application An]   in   Networks   Proceeding   Sensor .Information, 2005, IPSN   2005, 4th   Symposium   international   on   15   April, 2005 : 382-387

[18]

[6]   Project.URL TinyDB: http://telegraph.cs.berkeley.edu/tinydb

[19]

Content of the invention

[20]

1, purpose of invention

[21]

In view of the current solutions are deficient in some respects, and different sensor network node in the hardware design, software system operating system platforms and structure comprises a differential, the development of the application program caused by personnel of the need to know more information, lead to difficulties in the application of program development, therefore in order to make the wireless sensor network application needs more easy to realize, more extensive application field, application program development is more convenient, we have proposed a new integration of wireless sensor network software and hardware, so that its support for the data management, software upgrades, multi-language programming method for general application.

[22]

The purpose of this invention is to provide a support for storage within data network, management, inquiry, digging, and the like, and, software upgrade of the transparent and non-transparent, power management, multi-language programming of the wireless sensor network. The system of the present invention the sensor network node with basic processing function to the data, including the data storage, aggregation and excavation, data storage management in the network of support; with transparent and nontransparent two kinds of software upgrading mode, for performance and a resource providing balancing means; power management support dynamic adjustment voltage, achieve the purpose of energy conservation; multi-language program allows the user to utilize or C/C ++ programmed JAVA.

[23]

2, the technical proposal

[24]

This invention comprises: in the setting place and space the sensor of the distribution of the strong node (TFAD-901, as with micaz sensor node distinguishes, hereinafter referred to as sensor strong node), the sensor node in a wireless mode interaction data collection server (sink), and use wired or wireless network interacting with a server the user end; characterized in that the system further comprises:

[25]

Middleware-based management system of the structure, on the sensor used for the various functions of the call accordingly, the play a shielding layer, the upper layer provides the role of the unified interface.

[26]

The sensor (TFAD-901) of strong node database and its management module, used for receiving, storage, management and work digging, and the like, and. Between the nodes in a wireless mode the node communication between PC machine. The end of the PC data management requirements of the specific mode, to on the node for the corresponding operation.

[27]

Sensor node in a wireless mode interact with the staging procedure of the server, is used for the sensor node (TFAD-901) for upgrading the program on the, upgrading mode is divided into two, which is a direct upgrade of a non-transparent upgrade, another is a transparent upgrade, that is, the node of the sensor end of the upgrade of the software of the best opportunity to choose.

[28]

With JAVA virtual machine, the sensor network nodes can be running on a Java program, the Java program software upgrading mode from the incoming sensor network sink, and implement.

[29]

The sensor is the database (TFAD-901) of strong node of the embedded database running on, the node of strong arithmetic capability, large storage capacity, can be used as the storage data in the network. And the data in the node of the query, management, aggregation and excavation, with the data server to the database in the database system which forms the sensor network.

[30]

The sensor node may be the implementation of the sensing task including, but not limited to, temperature, humidity, location, sound, smell, gravity acceleration, illumination, and the like.

[31]

In order to achieve the above-mentioned purpose, the present invention also provides a support for the data management, software upgrades, power management, multi-language programming of the method for realizing a wireless sensor system, characterized in that comprises the following steps:

[32]

1. Wireless sensor network configuration and operation of: the traditional technology of the wireless sensor network set up each sensor node and the network equipment, for each sensor node initial configuration sensing task of the program code, obtaining data from the sensing region, and assemble to the sensor is strong nodes for data storage, convergent, in order to facilitate the integration of data server to inquire about with the task. Sensor is the beginning of the node of the order received from the sink node, in order to realize the software upgrade, power supply management, the function of the other sensor network.

[33]

2. Carry on the corresponding wireless sensor network operation: for data tasks: to the needs of the user according to the data in the sensor network query, management, convergent, digging, and the like, and, by the sink analysis to the user demand, the task assigned to the various sensor implementation preneurialism strong festival. With the software upgrade task; with the software upgrade: by a user according to the need for upgrading mode or C/C ++ and upgrade of Java program, the procedure by the sink node is responsible for the transmission and program on the node of the sensor the start of the strong; for the power supply management: can be made of the power supply of the sensor users real-time management, the interface of the respective programming library adapting may also be used, in the user's program to dynamically change the power state of the sensor.

[34]

3. The sensor is initiated and performed at the node by the sink node assigned data management task, the task of upgrade of the software, such as the new execution of the program tasks, the results of the data by the sink node, staging result and program execution result is transmitted to the user.

[35]

The stated step 2 further comprises the following operation:

[36]

Data tasks:

[37]

2.1.1 client sends the sensor network data query request, when the user needs the network of the sensory data in the inquiry, the user sends a request to the data server.

[38]

2.1.2 data server processing request, is sent to the sensor on the node of the network, processing of the data server and data query request of the user, the query optimization, the distribution to each of the nodes. Or the user data management, digging, and the like, and after processing through the data server request, is sent to the sensor on the node of the network.

[39]

2.1.3 strong node is performed on the sensor, the data result is returned to the data server. Strong node of the sensor data to the database on the inquiry, management, excavation, and the result is returned to the data server.

[40]

Software upgrade task transparent upgrade

[41]

2.2.1 customer end to the sensor node to send the transparent upgrade task is, the file name of the node is sent to the sensor, initiate transparent upgrade.

[42]

2.2.2 sensor strong node in accordance with the procedure of upgrade waiting for the own conditions (CPU idle, the communication channel is idle, and the like), to a program server request staging program.

[43]

2.2.3 program server to transmit to the sensor with the upgrading program of strong node, and the implementation of the sensor on the escalation of strong node.

[44]

The task of upgrade of the software upgrading of the non-transparent

[45]

2.3.1 customer end of strong node of the sensor with the program server sending non-transparent upgrade request, the request with the server is respectively sent to the node.

[46]

2.3.2 sensor begins to to the server immediately download the update of the software

[47]

2.3.3 started after the sensor receives the implementation procedure.

[48]

3, beneficial effects

[49]

This invention is a kind of support by the wireless sensor network software platform, comprehensive control of the heterogeneous wireless sensor network data management, software upgrades, power management, support multi-language programming of the sensor network system and method therefor. The network system can support the aggregation of the sensory data in the network, storage, management and excavation, sensor node a plurality of the software upgrading mode, and flexible power management mode to the multi-language support of the procedure. The sensor network system so as to realize a plurality of tasks are integrated in a platform, which provides convenience for the user, flexible data strategy and tactics of upgrade of the software application for a user also make the sensor network to facilitate more efficient utilization of energy resources. Multi-language programming of the support to make the more the user can use the language of preference above the platform for application development.

[50]

Description of drawings

[51]

Figure 1 is a schematic diagram of the structure of a general sensor network system

[52]

Figure 2 is a structure diagram of a wireless sensor network of the present invention

[53]

Figure 3 is a schematic diagram of the relationship with the system of the present invention sub-system

[54]

Figure 4 is flow chart of the basic steps of the operation of the system

[55]

Figure 5 is graph information interaction of the invention the wireless sensor network data query, task allocation

[56]

Figure 6 is plan information interaction of the invention the wireless sensor network program upgrade transparent upgrade

[57]

Figure 7 is the interactive map information of the wireless sensor network of the present invention non-transparent upgrade program upgrade

[58]

Figure 8 is flow chart of data inquiry of the present invention

[59]

Mode of execution

[60]

In order to make the the purpose of this invention, and the technical scheme is more prominent, detailed, combined with photos of the present invention is the further detailed description.

[61]

Overall structure

[62]

See Figure 2, this invention is a kind of support heterogeneous platform sensor network system, which comprises a plurality of types of sensor a plurality of (that is, in the sensor node and of strong node TFAD sensor), adopts a wireless manner and distributed in the sensing region of the sensor communication in the sink node (at the same time as a data server, the software server), and the role of a display and control of the user terminal. Wherein the sensor is a common sensor for sensing the surrounding environment data. TFAD sensor strong node of the sensor has a stronger compared with CPU processing capacity, communication ability, larger storage space and battery capacity, the sensor thus, in addition to the functions of the same data collection, also having an embedded database and a series of the way of the processing data, make TFAD sensor with data collection, storage, inquiry, the function of the management and excavation. Data server is responsible for storing, and management sensor network and the local data, including in response to a user query, management, and for digging, and the like, and. Data server communicating with the user terminal received the request of the data of the user to the user return the results of the data operation. Wherein the program server is responsible for storing the program to be upgraded, in response to the user end of the request of the non-transparent upgrade, in response to the sensor to the program server to the updating request of the program.

[63]

See Figure 3, on the system of this invention comprises several sub-system, in order to make the wireless sensor network more convenient for use, in the system of the present invention includes the following sub-system: sensor network data management, including memory, query, management, digging three characters module; the software upgrade, including non-transparent and transparent upgrade module, the system self-protection module, the module has been applied for another Patent, in this no longer detailed; a power management module, the user provides a unified programming interface, is carefully prepared the user flexibility in the application of the procedure, the sensor network the purpose of the energy-efficient. Therefore, the system of the invention comprises the wireless sensor network of some of the basic application, the user can directly in these sub-system on the application of wireless sensor network, can also be through the interface of the sub-procedure call, in their own C/C ++ or Java program prepared using these sub-system, therefore, the system of the present invention as a sensor network application of the platform provide a very good, and the shield without the need for using a sensor of the network hardware construction of the differential, is not used for application of the interface.

[64]

The invention aims to provide a wireless sensor network system inclusive of the platform is very strong, support the basic application, the system is suitable for various needs of the user, to the ordinary users can be directly operated to use the sensor network system, for advanced users can prepare their own special program, to the system to support the realization of its own special application, common in the system and method includes the following three steps : (refer to fig. 4)

[65]

1. Configuration and operation of the wireless sensor network;

[66]

2. Middleware-based application program, through the corresponding structure of the management system of the wireless sensor network operation includes data task, the task of upgrade of the software, the power supply management task;

[67]

3. The sensor is initiated and performed at the node by the sink node assigned data management task, the task of upgrade of the software, such as the new execution of the program tasks, the results of the data by the sink node, staging result and program execution result is transmitted to the user.

[68]

Wherein the step (2) and (3) is the key to the operation of the system

[69]

Now refer to Figure 2 and Figure 5, the above-mentioned specific descriptions of the data in two steps of the main operation in tasks:

[70]

(1) sensor network data request, in the sensor network user wishes to query the data, management, excavation, submitted by the user to the data server "data processing request", and the response of the waiting for the data server.

[71]

(2) data server receives the "data processing request" message, the data server algorithm analysis, optimization (process can with reference to Figure 8 in the process of optimization of the query) to the wireless sensor network after the sensor in the transmission of strong node "data processing task"

[72]

(3) the sensor in the wireless sensor network strong node received the "data processing tasks", within the node to the sensor embedded database is operated, "data processing task" according to the requirements of the operation.

[73]

(4) the wireless sensor network "data processing task" in accordance with the requirements of the return results of the operation to the data server

[74]

(5) the data server will each wireless sensor is the result of the node obtains after aggregation, the result is returned to the client.

[75]

Now refer to Figure 2 and Figure 6, the specific description of the above two steps in the task of upgrading program in the main operation of the transparent upgrade:

[76]

(1) sensor network transparent upgrade of the software upgrade, the user wishes to strong node in the sensor network upgrade software, by the user to the sensor network needs to be upgraded to strong node "program transparent upgrade request".

[77]

(2) strong in the wireless sensor network node receives the "software transparent upgrade request" message, wait for the wireless sensor networks node to the certain conditions, (such as strong node CPU frequency is not high, the current task is not busy; antenna is in the idle stage shows that communication is not busy) to a program server request the corresponding "the updating request".

[78]

(3) program upgrade server of the wireless sensor received strong node "the updating request", the corresponding treats the promotion program transmitted to the wireless sensor strong node.

[79]

(4) program upgrade server program upgrade results to the user terminal.

[80]

Now refer to Figure 2 and Figure 7, the specific description of the above two steps in the task in the upgrading program of the main operation of the non-transparent upgrade:

[81]

(1) sensor network central African transparent upgrade the upgrade of the software, the user wishes to strong node in the sensor network upgrade software, by the user to the sensor network needs immediate escalation to strong node "procedure of the updating request of the non-transparent".

[82]

(2) strong in the wireless sensor network node receives the "software non-transparent upgrade request" message, wireless sensor networks node will immediately to a program server request the corresponding "the updating request".

[83]

(3) program upgrade server of the wireless sensor received strong node "software non-transparent upgrade request", the corresponding treats the promotion program transmitted to the wireless sensor strong node.

[84]

(4) program upgrade service program upgrade results to the user terminal.

[85]

Now refer to fig. 2, specific description of the above two steps in the main operation of the power management of:

[86]

(1) sensor network can be divided into the power management mode and procedure call call, the user invokes the preparation can be carried out in the procedure, end of the call initiated by the user, to the wireless sensor network sink node sends a "power management adjustment command".

[87]

(2) the corresponding node Sink strong node issued the sensor network "power management adjustment command".

[88]

(3) the wireless sensor network of strong node after performing power management adjusting order, the results to return to execution of the sink node

[89]

(4) a wireless sensor network node receives Sink of strong node after the execution results, return to the user.

[90]

The sensor of the present invention network system is characterized in that: the plurality of sensor sub-system integrated with a system, users of the procedure call use and development; the sensor data is stored in the wireless sensor network, the sensor network has the strong node in the data collection, storage, management and digging functions; on software upgrade can be a flexible transparent upgrade and nontransparent upgrade to; the power management user can also direct and indirect is arranged; finally, the Java virtual machine within the system can be supported by the wireless sensor network and C/C ++ Java programming language.

[91]

So this invention has designed the sensor network platform support isomerous sensor network hardware, with cross platform nature. Comprehensive data management, software upgrades, power management function, so that the method of this system is more suitable for wireless sensor network application, use is more convenient to the user, to more perfect program of the user.



[1]

The invention discloses a wireless sensor network system and a method thereof for processing data. The wireless sensor network comprises a sensor node, a strong sensor node, a data collection server (sink) interacting with the sensor node in the wireless manner, and a user end interacting with the server through a wired network or a wireless network. The system further comprises a management system which is constructed on the basis of middleware and used for conducting the corresponding calling of various functions of a sensor, and performs the functions of shielding bottom layer implementation and provides a unified interface for the upper layer. The method for processing the data of the system comprises the followings steps: (1) the wireless sensor network is configured and operated; (2) an application program conducts corresponding wireless sensor network operations, including a data task, a software update task, and a power management task, through the management system constructed based on the middleware; and (3) a data management task assigned by a sink node is started and executed on the strong sensor node, and results are transmitted to the user end.



1, a wireless sensor network system, which comprises a sensor node, strong node of the sensor, the sensor node in a wireless mode interaction data collection server (sink) and utilize wired or wireless network interacting with a server the user end; characterized in that the system further comprises:

Middleware-based management system of the structure, on the sensor used for the various functions of the call accordingly, the play a shielding layer, the upper layer provides the role of the unified interface.

2, a wireless sensor network system according to Claim 1, characterized in that the sensor of the database on the strong node and its management module, used for receiving, storage, management and mining data.

3, a wireless sensor network system according to Claim 1, characterized in that the data collection server comprises a program upgrade module, interaction with the sensor node as the staging procedure of the server, is used for the sensor for upgrading the program on the node.

4, a wireless sensor network system according to Claim 1, characterized in that the sensor is strong node comprises a power management module, the user provides a unified programming interface.

5, a wireless sensor network system according to Claim 1, characterized in that the sensor node is a sensor node micaz, the sensor is of strong node TFAD-901.

6, a wireless sensor network system method of processing data according to Claim 1, characterized in that comprises the following steps

1) wireless sensor network configuration and operation;

2) a middleware-based application program, through the corresponding structure of the management system of the wireless sensor network operation includes data task, the task of upgrade of the software, the power supply management task;

3) the sensor is initiated and performed at the node by the sink node assigned data management task, the task of upgrade of the software, such as the new execution of the program tasks, the results of the data by the sink node, staging result and program execution result is transmitted to the user.

7, a wireless sensor network system method of processing data according to Claim 6, characterized in that the above-mentioned step further comprises the following steps:

1) wireless sensor network configuration and operation of: the traditional technology of the wireless sensor network set up each sensor node and the network equipment, for each sensor node initial configuration sensing task of the program code, obtaining data from the sensing region, and assemble to the sensor is strong nodes for data storage, convergent, in order to facilitate integration with the task of data server query; sensor is the beginning of the node of the order received from the sink node, in order to realize the software upgrade, power management function;

2) corresponding to the wireless sensor network operation, wherein

For data tasks: to the needs of the user according to the data in the sensor network query, management, convergent, excavation, by the sink analysis to the user demand, the task assigned to the various sensor implementation preneurialism strong festival ;

With the software upgrade task: by a user according to the need for upgrading mode or C/C ++ and upgrade of Java program, the procedure by the sink node is responsible for transmission and procedures on the sensor is the start of the node;

For the power supply management: the interface of the respective programming library adapting use, the user programs the dynamic change in the power state of the sensor;

3) the sensor is initiated and performed at the node by the sink node assigned data management task, the task of upgrade of the software, the new execution of the program tasks, the results of the data by the sink node, staging result and program execution result is transmitted to the user.

8, a wireless sensor network system method of processing data according to Claim 7, characterized in that the above-mentioned step 2) of the data in the task further comprises:

1) client sends the sensor network data query request, when the user needs the network of the sensory data in the inquiry, the user sends a request to the data server;

2) the data server processing request, is sent to the sensor on the node of the network, processing of the data server and data query request of the user, the query optimization, the distribution to each of the nodes; or the user data management, digging, and the like, and after processing through the data server request, is sent to the sensor on the node of the network;

3) is performed on the sensor node, the data result is returned to the data server; sensor strong node of the database on the inquiry data, management, excavation, and the result is returned to the data server.

9, a wireless sensor network system method of processing data according to Claim 6, characterized in that the above-mentioned step 2) is transparent in the task of upgrade of the software upgrade or non-transparent upgrade,

Wherein transparent upgrade further comprises the following steps:

1) client to the sensor node to send the transparent upgrade task is, the file name is sent to the sensor node;

2) sensor with strong node waiting own conditions the staging procedure, upgrading program to the program server request;

3) program server to transmit to the sensor with the upgrading program of strong node, and the implementation of the sensor on the escalation of strong node;

Wherein non-transparent upgrade further comprises the following steps:

1) the customer end of strong node of the sensor with the program server sending non-transparent upgrade request, the request with the server is respectively sent to the node;

2) sensor starts to immediately download the update to the server software;

3) after the sensor receives the implementation procedure.