CN106102091B - A kind of experimental system platform of wireless sensor network - Google Patents

A kind of experimental system platform of wireless sensor network Download PDF

Info

Publication number
CN106102091B
CN106102091B CN201610378659.XA CN201610378659A CN106102091B CN 106102091 B CN106102091 B CN 106102091B CN 201610378659 A CN201610378659 A CN 201610378659A CN 106102091 B CN106102091 B CN 106102091B
Authority
CN
China
Prior art keywords
network
node
frame
information
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610378659.XA
Other languages
Chinese (zh)
Other versions
CN106102091A (en
Inventor
黄成�
谭正永
李晓晓
王歆洵
徐鹏
徐志良
杜静涵
李炳炳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN201610378659.XA priority Critical patent/CN106102091B/en
Publication of CN106102091A publication Critical patent/CN106102091A/en
Application granted granted Critical
Publication of CN106102091B publication Critical patent/CN106102091B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of experimental system platforms of wireless sensor network, including multiple network nodes, aggregation node Sink and host computer, wherein each network node passes sequentially through SPI serial port, wireless chip is connected with each other, network node is connect by serial communication modular RS232 with host computer by SPI serial port, wireless chip and aggregation node Sink connection, aggregation node Sink;Each network node is responsible for acquisition and monitoring data information, and the collected data information of network node is sent to aggregation node Sink by SPI serial port and wireless chip;Data information is transported to host computer using serial communication modular RS232 by aggregation node Sink;Host computer carries out processing analysis to data information on monitoring interface, tests the timeliness and fairness of wireless sensor network.The present invention can be used in the research of the network congestion of wireless sensor network, and communication efficiency is good, stability is strong, meet the detection demand of communication experiment.

Description

A kind of experimental system platform of wireless sensor network
Technical field
It is that a kind of experimental system of wireless sensor network is flat the invention belongs to wireless sensor network control technology field Platform.
Background technique
Wireless sensor network is the high front line science of a kind of multi-crossed disciplines, knowledge concentration degree, has obtained the country at present The extensive concern of outer scholar and researcher.For the problem and a variety of different applications in wireless sensor network research Solution designed by occasion also achieves certain achievement, provides for future application of higher wireless sensor network with reference to and into one Step research is laid a good foundation.Wireless sensor network research starts from late nineteen nineties in last century, and research history is not long, but by In its important research and application value, multinational research institution has carried out wireless sensor network research project in succession, has made it It rapidly develops.
Wireless sensor network is as an emerging technology, it has also become the research hotspot in information technology field, development Though history is not grown, development speed is quickly.Application of higher wireless sensor network field extensively, more, the wireless sensor network that is related to subject Key technology research involved in network research hotspot specifically include that network topology control, network routing protocol, network security, when Between synchronization, location technology, data fusion, power-saving technology.In wireless sensor network, research for these problems is to need Want an experiment porch well.The effect of experiment porch is acquisition related data, and is studied experimental data, to key Technology is broken through.The experiment porch for the wireless sensor network for including in recent years mainly has the wireless sensor based on Zigbee Net teaching evaluation, based on TinyOS experiment porch etc..But do not have for Congestion control protocol in wireless sensor network There are relevant teaching experiment platform, key technology of the Research of Congestion Control Techniques as wireless sensor network research hotspot, design Whether rationally, be the performance for directly influencing network.So with greater need for a kind of relevant experiment porch is built.
The research of wireless sensor network Congestion control protocol at present, not by hardware design, host computer interface exploitation and Relevant software design combines, and hinders application of the wireless sensor network in teaching.
Summary of the invention
The purpose of the present invention is to provide a kind of experimental system platforms of wireless sensor network, realize and are based on wireless sensing Quick, reliable, the efficient detection of the data of the agreements research such as congestion control in device network, and obtained data save and are imitated It is true to go out to scheme, realize information-based management.
The technical solution for realizing the aim of the invention is as follows: a kind of experimental system platform of wireless sensor network, including Multiple network nodes, aggregation node Sink and host computer, wherein each network node passes sequentially through SPI serial port, nRF24L01 Wireless chip is connected with each other, and network node is connect by SPI serial port, nRF24L01 wireless chip with aggregation node Sink, is converged Poly- node Sink is connect by serial communication modular RS232 with host computer;
Each network node is responsible for acquisition and monitoring data information, and the collected data information of network node passes through SPI serial port and nRF24L01 wireless chip are sent to aggregation node Sink;Aggregation node Sink uses serial communication modular Data information is transported to host computer by RS232;Host computer carries out processing analysis to data information on monitoring interface, and test is wireless The timeliness and fairness of sensor network.
Further, the network node include power module, single-chip microcontroller MSP430F5310, JTAG, 8M crystal oscillator, NRF24L01 wireless chip and digital sensor interface, wherein JTAG accesses the jtag interface of single-chip microcontroller MSP430F5310, and 8M is brilliant XT2IN, XT2OUT interface of vibration access single-chip microcontroller MSP430F5310, nRF24L01 wireless chip access single-chip microcontroller The SPI interface of MSP430F5310;
Single-chip microcontroller MSP430F5310 is powered using the power module of 3.3V, and work clock is by internal oscillator and outside 8M Passive crystal oscillator composition, wherein P4.0, P4.4 of single-chip microcontroller MSP430F5310~P4.7 is respectively as SPI serial line interface SCK, MOUT, MIN, CSN, CE signaling interface, SPI corresponding with nRF24L01 wireless chip connects five signaling interfaces respectively Mouth is connected;The IRQ that nRF24L01 wireless chip issues as external interrupt signal, the P4.1 of single-chip microcontroller MSP430F5310, P4.2, P1.1 are as reserved sensor interface, and interface corresponding with emulator FET430USB is connected respectively by RST and TCK, are used for Download program and debugging emulation.
Further, the aggregation node Sink include power module, single-chip microcontroller MSP430F5438A, JTAG, 8M crystal oscillator, NRF24L01 wireless chip and MAX3232, wherein JTAG accesses the jtag interface of single-chip microcontroller MSP430F5438A, the access of 8M crystal oscillator XT2IN, XT2OUT interface of single-chip microcontroller MSP430F5438A, nRF24L01 wireless chip access single-chip microcontroller MSP430F5438A's SPI interface, MAX3232 access the USART0 interface of single-chip microcontroller MSP430F5438A;
The single-chip microcontroller MSP430F5438A uses IAR Integrated Development Environment, and single-chip microcontroller MSP430F5438A uses 3.3V Power module power supply, work clock is made of internal oscillator and the passive crystal oscillator of outside 8M;Wherein single-chip microcontroller The P9.1-P9.5 of MSP430F5438A is respectively as MOUT, MIN, SCK, CSN, CE signaling interface of SPI serial line interface, this five SPI interface corresponding with nRF24L01 wireless chip is connected a signaling interface respectively;The IRQ that nRF24L01 wireless chip issues makees For external interrupt signal, TXD2, RXD2 interface of single-chip microcontroller MSP430F5438A interface corresponding with MAX2323 is connected, is used for It is communicated with host computer;TDO, TDI, TMS, TCK and TEST interface are connected with emulator FET430USB corresponding interface respectively, For downloading program and artificial debugging.
Further, the host computer includes monitoring interface and web impact factor protocol module, wherein monitoring interface packet Include serial port setting, network data reception area, standby node, collaboration multi-path topology figure, network system operating status and association Same path;Web impact factor protocol module realizes network node initialization, network node group network process, routing inquiry, neighbour Occupy inquiry, network is added in node, node exits network and route repair process.
Further, the monitoring interface of the host computer includes serial port setting, network data reception area, standby node, association With path topology diagram, network system operating status and collaboration path, specific working mode are as follows: host computer and aggregation node It is communicated between Sink using serial ports, when aggregation node Sink sends data information toward host computer, is packaged serial ports frame first, It is subsequently sent to hair data buffer zone, is analyzed and processed later by host computer;When host computer sends number toward aggregation node Sink It is believed that host computer calls data function first, is packaged serial ports frame when breath, transmission function is called to send number toward buffer area is sent later According to;The network operation starts, and aggregation node Sink starts global clock, calibrates for temporal information in network, while aggregation node Sink periodically sends data information toward host computer, the data information of standby node in host computer active inquiry network node, Node energy information and refreshing collaboration multi-path topology figure.
Further, the Protocol network layer frame format of the web impact factor protocol module includes network layer frame head and net The net load of network layers, network layer frame head include frame check code, frame type, frame ordering, frame length and network routing domain information, net load Lotus is data information;In network layer frames format information: frame check is for judging that node receives the correctness of network information frame; Frame type represents the enable signal of frame ordering information;Frame ordering refers to the corresponding instruction of task execution;Frame length represents network road By the length in domain, for parsing routing iinformation;Only after frame type signal is enabled, the corresponding order of frame could be executed;Cooperate with road Diameter contains network node, selects next-hop node according to network node, disperses the data of wireless sensor network areas of congestion Flow.
Further, the web impact factor protocol module includes with minor function:
1) int AnaLyseReNetFrame function, docking collection of letters breath content frame is analyzed, according to frame check code check The correctness of information, and the parsing to frame type and frame ordering return and execute the corresponding task code of the order;
2) void ProcessReNetFrame function, according to the returned task code of analysis frame type, then basis is appointed The corresponding subfunction of code calling of being engaged in carries out task processing, and different task has different priority, first processing high priority Task, reprocesses low priority task later, and task is the processing to routing table, neighbor table, self information table and data forwarding;
3) void BuildNetFrame function, building executes network frame corresponding to frame ordering, when the frame ordering network After frame is built, network node sends the network frame, and the other nodes for receiving the network frame could execute the frame ordering and correspond to Task;Assembling frame ordering information includes frame check code, frame type and determines routing domain information according to the difference of frame type;
4) void UpdataNodeInfo function updates network node self information;With the network operation, node itself Information can change, which is updated node energy value, transmission times, jumping figure value;
5) void UpdataRoutingList function, the difference that reception network frame order analysis is returned according to node Task code information is done different updates to route information table and is handled;Routing table information is increased, is deleted, modifies operation;
6) void UpdataNeighborList function is returned not according to node to network frame order analysis is received With task code information, different updates is done to neighbor information table and is handled;More new content is the number of neighbor node, address, energy Amount, transmitting-receiving number;
7) unsigned int FindRoutingList function, according to the purpose section in parameter value query routing information table Point, father node and next-hop node information;
8) unsinged int FindNeighborList function finds the information of specified neighbor node, in neighbor information Optimal neighbor node is found in table as next-hop node, selects next-hop node in nodes neighbors information table.
Compared with prior art, the present invention its remarkable advantage is: (1) having will theorize in wireless sensor network As a result it is converted into hardware platform, there is operability;(2) it realizes and is ground based on agreements such as congestion controls in wireless sensor network The data studied carefully quickly, reliably, efficiently detect, and meet the detection demand of communication experiment;(3) communication efficiency is good, stability is strong, Obtained data save and simulate figure, realize information-based management.
Detailed description of the invention
Fig. 1 is wireless sensor network system platform structural system schematic diagram of the present invention.
Fig. 2 is wireless sensor network system platform aggregation node design drawing of the present invention.
Fig. 3 is wireless sensor network system platform network node design figure of the present invention.
Fig. 4 is PC control interface in wireless sensor network system platform of the present invention.
Fig. 5 is wireless sensor network system platform serial port setting program flow diagram of the present invention.
Fig. 6 is wireless sensor network system platform host computer parsing serial data frame flow chart of the present invention.
Fig. 7 is wireless sensor network system platform host computer inquiry network node information flow chart of the present invention.
Specific embodiment
In conjunction with Fig. 1~4, the experimental system platform of wireless sensor network of the present invention, including multiple network nodes, convergence section Point Sink and host computer, wherein each network node passes sequentially through SPI serial port, nRF24L01 wireless chip is connected with each other, net Network node is connect by SPI serial port, nRF24L01 wireless chip with aggregation node Sink, and aggregation node Sink is logical by serial ports Letter module RS232 is connect with host computer;
Each network node is responsible for acquisition and monitoring data information, and the collected data information of network node passes through SPI serial port and nRF24L01 wireless chip are sent to aggregation node Sink;Aggregation node Sink uses serial communication modular Data information is transported to host computer by RS232;Host computer carries out processing analysis to data information on monitoring interface, and test is wireless The timeliness and fairness of sensor network.
Further, the network node include power module, single-chip microcontroller MSP430F5310, JTAG, 8M crystal oscillator, NRF24L01 wireless chip and digital sensor interface, wherein JTAG accesses the jtag interface of single-chip microcontroller MSP430F5310, and 8M is brilliant XT2IN, XT2OUT interface of vibration access single-chip microcontroller MSP430F5310, nRF24L01 wireless chip access single-chip microcontroller The SPI interface of MSP430F5310;
Single-chip microcontroller MSP430F5310 is powered using the power module of 3.3V, and work clock is by internal oscillator and outside 8M Passive crystal oscillator composition, wherein P4.0, P4.4 of single-chip microcontroller MSP430F5310~P4.7 is respectively as SPI serial line interface SCK, MOUT, MIN, CSN, CE signaling interface, SPI corresponding with nRF24L01 wireless chip connects five signaling interfaces respectively Mouth is connected;The IRQ that nRF24L01 wireless chip issues as external interrupt signal, the P4.1 of single-chip microcontroller MSP430F5310, P4.2, P1.1 are as reserved sensor interface, and interface corresponding with emulator FET430USB is connected respectively by RST and TCK, are used for Download program and debugging emulation.
Further, the aggregation node Sink include power module, single-chip microcontroller MSP430F5438A, JTAG, 8M crystal oscillator, NRF24L01 wireless chip and MAX3232, wherein JTAG accesses the jtag interface of single-chip microcontroller MSP430F5438A, the access of 8M crystal oscillator XT2IN, XT2OUT interface of single-chip microcontroller MSP430F5438A, nRF24L01 wireless chip access single-chip microcontroller MSP430F5438A's SPI interface, MAX3232 access the USART0 interface of single-chip microcontroller MSP430F5438A;
The single-chip microcontroller MSP430F5438A uses IAR Integrated Development Environment, and single-chip microcontroller MSP430F5438A uses 3.3V Power module power supply, work clock is made of internal oscillator and the passive crystal oscillator of outside 8M;Wherein single-chip microcontroller The P9.1-P9.5 of MSP430F5438A is respectively as MOUT, MIN, SCK, CSN, CE signaling interface of SPI serial line interface, this five SPI interface corresponding with nRF24L01 wireless chip is connected a signaling interface respectively;The IRQ that nRF24L01 wireless chip issues makees For external interrupt signal, TXD2, RXD2 interface of single-chip microcontroller MSP430F5438A interface corresponding with MAX2323 is connected, is used for It is communicated with host computer;TDO, TDI, TMS, TCK and TEST interface are connected with emulator FET430USB corresponding interface respectively, For downloading program and artificial debugging.
Further, the host computer includes monitoring interface and web impact factor protocol module, wherein monitoring interface packet Include serial port setting, network data reception area, standby node, collaboration multi-path topology figure, network system operating status and association Same path;Web impact factor protocol module realizes network node initialization, network node group network process, routing inquiry, neighbour Occupy inquiry, network is added in node, node exits network and route repair process.
Further, the monitoring interface of the host computer includes serial port setting, network data reception area, standby node, association With path topology diagram, network system operating status and collaboration path, specific working mode are as follows: host computer and aggregation node It is communicated between Sink using serial ports, when aggregation node Sink sends data information toward host computer, is packaged serial ports frame first, It is subsequently sent to hair data buffer zone, is analyzed and processed later by host computer;When host computer sends number toward aggregation node Sink It is believed that host computer calls data function first, is packaged serial ports frame when breath, transmission function is called to send number toward buffer area is sent later According to;The network operation starts, and aggregation node Sink starts global clock, calibrates for temporal information in network, while aggregation node Sink periodically sends data information toward host computer, the data information of standby node in host computer active inquiry network node, Node energy information and refreshing collaboration multi-path topology figure.
Further, the Protocol network layer frame format of the web impact factor protocol module includes network layer frame head and net The net load of network layers, network layer frame head include frame check code, frame type, frame ordering, frame length and network routing domain information, net load Lotus is data information;In network layer frames format information: frame check is for judging that node receives the correctness of network information frame; Frame type represents the enable signal of frame ordering information;Frame ordering refers to the corresponding instruction of task execution;Frame length represents network road By the length in domain, for parsing routing iinformation;Only after frame type signal is enabled, the corresponding order of frame could be executed;Cooperate with road Diameter contains network node, selects next-hop node according to network node, disperses the data of wireless sensor network areas of congestion Flow.
Further, the web impact factor protocol module includes with minor function:
1) int AnaLyseReNetFrame function, docking collection of letters breath content frame is analyzed, according to frame check code check The correctness of information, and the parsing to frame type and frame ordering return and execute the corresponding task code of the order;
2) void ProcessReNetFrame function, according to the returned task code of analysis frame type, then basis is appointed The corresponding subfunction of code calling of being engaged in carries out task processing, and different task has different priority, first processing high priority Task, reprocesses low priority task later, and task is the processing to routing table, neighbor table, self information table and data forwarding;
3) void BuildNetFrame function, building executes network frame corresponding to frame ordering, when the frame ordering network After frame is built, network node sends the network frame, and the other nodes for receiving the network frame could execute the frame ordering and correspond to Task;Assembling frame ordering information includes frame check code, frame type and determines routing domain information according to the difference of frame type;
4) void UpdataNodeInfo function updates network node self information;With the network operation, node itself Information can change, which is updated node energy value, transmission times, jumping figure value;
5) void UpdataRoutingList function, the difference that reception network frame order analysis is returned according to node Task code information is done different updates to route information table and is handled;Routing table information is increased, is deleted, modifies operation;
6) void UpdataNeighborList function is returned not according to node to network frame order analysis is received With task code information, different updates is done to neighbor information table and is handled;More new content is the number of neighbor node, address, energy Amount, transmitting-receiving number;
7) unsigned int FindRoutingList function, according to the purpose section in parameter value query routing information table Point, father node and next-hop node information;
8) unsinged int FindNeighborList function finds the information of specified neighbor node, in neighbor information Optimal neighbor node is found in table as next-hop node, selects next-hop node in nodes neighbors information table.
With reference to the accompanying drawing and specific experiment mode the invention will be described in further detail.
In conjunction with Fig. 1, shown is the network struture system schematic diagram of the experimental system platform of wireless sensor network.In this hair In bright patent, we are provided with node, the aggregation node of common wireless sensor network.As shown in Figures 2 and 3.Aggregation node Mainly sensor node in network control and be analyzed and processed data information, information processing result is passed through string Port transmission is to host computer.Aggregation node design specifically includes that power module, radio receiving transmitting module, one-chip computer module, JTAG downloading Debugging module and RS232 serial port module.General networking node major function is acquisition monitoring area data information, and then selection is closed Data information is sent to aggregation node by suitable routed path.Network node functionally with aggregation node difference, so It is also different when designing wireless sensor network node.Network node mainly has power module, CPU module, JTAG downloading Debugging module, radio receiving transmitting module and reserved sensor interface.
Ipc monitor interface is to be write under 7 operating system of Windows using Visual Studio 2010 Program carries out sending and receiving data with Serial serial ports class, and the user monitoring objective interface of exploitation is friendly.If Fig. 4 is ipc monitor Interface.Its basic function is as follows.
(1) serial port setting mainly sets serial port, baud rate, stop position and even-odd check using Serial serial ports class It sets, then selection opens and closes serial ports button.This experiment porch serial port setting initialize used in serial port be COM1, Baud rate is 115200bit/s, stop position is 1 and no parity.
(2) network data reception area.The information of acquisition is transferred to aggregation node, aggregation node by sensor node in network It is transferred to host computer through serial ports to after its information analysis processing, the real-time display on monitoring interface.Due to not using sensor, Here information refers to sensor node routing iinformation and standby node information.
(3) standby node.When initialization, only one aggregation node in neighbor table and routing table.Now with standby node neighbour For occupying table, major function is divided into inquiry sensor node neighbor table, refreshing, removing neighbor table and neighbor table information and shows Area.All the sensors node is communicated with aggregation node in network, sensor node itself neighbor table information sum number it is believed that Breath, is all transferred to aggregation node, such aggregation node just obtains the information of all the sensors node in network, ipc monitor circle The neighbor table information of each sensor node is inquired in face, only need to be inquired the sensor node in aggregation node just and be would know that its neighbour Then table information is shown in neighbor node viewing area.The realization principle of routing table is as neighbor table, only in routing table Sensor node routing iinformation in network is shown.
(4) multi-path topology figure is cooperateed with.Routing table in wireless sensor network, which is shown in sensor network, assists With the data information in path, it is not intuitive that this observes nodes routing iinformation to user, so introducing association in monitoring interface With path topology diagram, it is supplied to the intuitive routing iinformation of user.Institute in network is shown in collaboration multi-path topology figure There is the relationship between sensor node, can clearly observe the father of the gradient and node where sensor node address, node Node.
(5) network system operating status.This part is mainly to network operation state, network clocking and whole network sensor section Point number is monitored.Wherein network operation state is divided into networking stage and data transfer phase.To facilitate user to entire net The observation of network operation.
Aggregation node possesses the information of all the sensors node in network, and host computer need to only be communicated with aggregation node, so that it may Know the neighbor table, routing table and collaboration multi-path topology information of the standby node of network node.Host computer and aggregation node Between communicated using serial ports.When aggregation node sends data information toward host computer, it is packaged serial ports frame first, then sends To hair data buffer zone, it is analyzed and processed later by host computer.It is upper when host computer sends data information toward aggregation node Prow elder generation call establishment data function is packaged serial ports frame, and transmission function is called to send data toward buffer area is sent later.Such as Fig. 5 Host computer serial port setting.
The network operation starts, and aggregation node starts global clock, for temporal information calibration in network.Aggregation node simultaneously Periodically data information is sent toward host computer.Process of analysis of the host computer as shown in Figure 6 to serial data hardwood.
Related data is periodically transmitted to host computer by aggregation node, and host computer can active inquiry network standby node letter Breath, collaboration routing information and refreshing collaboration multi-path topology figure.Host computer query node information flow chart as shown in Figure 7.
Software and hardware is implemented
The present invention is described in detail by experimental system platform of the following aspects to wireless sensor network.
1, hardware forms
The invention mainly relates to hardware components mainly include two aspects, aggregation node and general network node. For the present invention when designing the two hardware nodes, general processor is other than the basic function that single-chip microcontroller has, it is also necessary to have The characteristics of standby high integration, high-performance and low-power consumption.For wireless sensor node design requirement, herein using TI company MSP430F5310 and MSP430F5438A single-chip microcontroller.
The design of aggregation node in hardware platform of the present invention, using the MSP430F5438A low-power scm of TI company With the combination of nRF24L01 high-performance wireless transceiving chip, by MSP430F5438A single-chip microcontroller to nRF24L01 wireless receiving and dispatching core The control of piece, to meet wireless sensor network work requirements.To the exploitation of MSP430F5438A single-chip microcontroller using IAR collection Development environment, IAR, which is provided not only, can support MSP430F5438A single-chip microcontroller running environment, and support C language exploitation, side Just developer's fast programming.In addition to this IAR facilitates downloading and debugging, and stable.
Wireless radio frequency modules are designed using nRF24L01 wireless chip, and nRF24L01 is that a high performance, work exists 2.4GHz global open ISM band exempts from the chip that licensing uses, and chip interior is integrated with crystal oscillator, modulator, solution Adjust device, frequency generator, power amplifier and enhanced ShockBurst mode controller.
All the sensors node in a network, only aggregation node needs are communicated with ipc monitor interface, and net Network node need to only be communicated by wireless module with nodes other in network, not need to be communicated with host computer.So only Serial port module is devised on aggregation node, uses the USART0 serial port of MSP430F5438A.
Network node is designed using MSP430F5310 single-chip microcontroller, nRF24L01 wireless chip in hardware platform of the present invention. The downloading debugging of MSP430F5310 single-chip microcontroller pin TCK and RST can directly be connected with JTAG emulator.Network node it is wireless Module is equally using nRF24L01 wireless chip, and processor is communicated by SPI serial port with nRF24L01 wireless chip.Network Node SPI programming is roughly the same with aggregation node.
2, software forms
The exploitation to system software is completed using Visual Studio 2010 under 7 platform of Windows, is realized The intelligent measurement of wireless sensor network experimental system platform, the routing table of standby node, neighbor table cooperate with multi-path topology Figure, data acquisition, the function of each software module such as processing and storage of data.
For software protocol during realization, working contents include: network node initialization, network node networking Network is added in journey, routing inquiry, neighbor queries, node, node exits network and route repair process.When software protocol starts to transport When row, nodes are initialized first, it is main to initialize node self information table.When sensor node all After ready, network enters the operation phase, sensor node can according in current network layer frames networking command type, hold The corresponding network task of row.
After sensor node initialization completes ready in network, the network operation enters networking stage, at this moment first by converging Poly- node broadcasts network organizing order.After nodes receive broadcast networking order, first broadcast networking order is solved Analysis.After running for a period of time, networking commands are initiated by aggregation node again, updates standby node routing table and neighbours in network Table information, to improve network performance.
3, method and step
The running of the experimental system platform of wireless sensor network, includes the following steps:
Step 1: carrying network node, and aggregation node connects emulator, computer, all hardware is all connected into Function.It can smoothly keep clear and coherent.The interface for opening network on computers guarantees that PC control interface normally operates.
Step 2: node single-hop communication test.Node single-hop communication refers to point-to-point communication between node.Data source nodes A certain amount of data are regularly sent, examination destination node receives data volume.The every 50ms of node A sends a data hardwood to node S, often 11 bytes of frame data, node spacing 1m, accessible communication.
1) when source node A sends 100 frame data to destination node S, host computer receives the display received data of destination node S Amount.
2) when source node A sends 500 frame data to destination node S, host computer receives the display received data of destination node S Amount.
3) when source node A sends 1000 frame data to destination node S, host computer receives the display received number of destination node S According to amount.
Step 3: node multi-hop communication test.Node multi-hop communication refers to source node by one or more intermediate nodes To the communication of destination node.Three nodes are respectively source node A, intermediate node B and destination node S, source node A send data, By intermediate node B forwarding, finally reach destination node S.
Scene setting 1: node spacing 1m, accessible communication, the every 50ms of source node send a data frame, every data frame 11 A byte.
1) when source node A sends 100 frame data to destination node S, host computer receives the display received data of destination node S Amount.
2) when source node A sends 500 frame data to destination node S, host computer receives the display received data of destination node S Amount.
3) when source node A sends 1000 frame data to destination node S, host computer receives the display received number of destination node S According to amount.
3) when source node A sends 2000 frame data to destination node S, host computer receives the display received number of destination node S According to amount.
Step 4: scene setting 2: node spacing 1m, accessible communication, the every 100ms of source node send a data frame, often 11 bytes of data frame.
1) when source node A sends 100 frame data to destination node S, host computer receives the display received data of destination node S Amount.
2) when source node A sends 500 frame data to destination node S, host computer receives the display received data of destination node S Amount.
3) when source node A sends 1000 frame data to destination node S, host computer receives the display received number of destination node S According to amount.
3) when source node A sends 2000 frame data to destination node S, host computer receives the display received number of destination node S According to amount.
Step 5: node many-one communication test.There are multiple nodes for a period of time at certain in sensor network and sends number According to the case where node receives data.Node A, node B, node C and node D are transmitting back end, and node S is to receive Back end.
In the experimental system platform of wireless sensor network, by the specific performance index of the investigation of wireless sensor network Quantified.It is converted into simple network node collaboration multi-path topology figure.In the different Working mould of wireless sensor network Under formula, the mode of gradient value is converted into PC control interface collaboration path topology figure.Pass through network cooperating topological structure The routing table test result of figure and aggregation node, verifies the practicability of the experimental system platform of wireless sensor network.
In conclusion the present invention solves the problems, such as that wireless sensor network Research of Congestion Control Techniques can not quantify, by setting The mode for counting hardware and software, has built wireless sensor network experimental system platform.It realizes at it and is tested on platform Analysis.Test result shows that software protocol experiment porch is in network node communication reliability, node networking, routed path selection And node join and depart it is with good performance in terms of the route maintenance of network.Wireless sensor network is automatically carried out Detection, and provides corresponding judging result automatically, this provides experiment porch to study wireless sensor network from now on, also for Teaching use provides feasibility.

Claims (6)

1. a kind of experimental system platform of wireless sensor network, which is characterized in that including multiple network nodes, aggregation node Sink and host computer, wherein each network node passes sequentially through SPI serial port, nRF24L01 wireless chip is connected with each other, network Node is connect by SPI serial port, nRF24L01 wireless chip with aggregation node Sink, and aggregation node Sink passes through serial communication Module RS232 is connect with host computer;
Each network node is responsible for acquisition and monitoring data information, and the collected data information of network node is gone here and there by SPI Row mouth and nRF24L01 wireless chip are sent to aggregation node Sink;Aggregation node Sink will using serial communication modular RS232 Data information is transported to host computer;Host computer carries out processing analysis to data information on monitoring interface, tests wireless sensor The timeliness and fairness of network;
The network node include power module, single-chip microcontroller MSP430F5310, JTAG, 8M crystal oscillator, nRF24L01 wireless chip and Digital sensor interface, wherein JTAG accesses the jtag interface of single-chip microcontroller MSP430F5310, and 8M crystal oscillator accesses single-chip microcontroller XT2IN, XT2OUT interface of MSP430F5310, nRF24L01 wireless chip access the SPI interface of single-chip microcontroller MSP430F5310;
Single-chip microcontroller MSP430F5310 is powered using the power module of 3.3V, and work clock is passive by internal oscillator and outside 8M Crystal oscillator composition, wherein P4.0, P4.4 of single-chip microcontroller MSP430F5310~P4.7 is respectively as SPI serial line interface SCK, MOUT, MIN, CSN, CE signaling interface, five signaling interfaces SPI interface corresponding with nRF24L01 wireless chip respectively It is connected;The IRQ that nRF24L01 wireless chip issues as external interrupt signal, P4.1, P4.2 of single-chip microcontroller MSP430F5310, P1.1 is as reserved sensor interface, and interface corresponding with emulator FET430USB is connected respectively by RST and TCK, for downloading journey Sequence and debugging emulation.
2. the experimental system platform of wireless sensor network according to claim 1, which is characterized in that the aggregation node Sink includes power module, single-chip microcontroller MSP430F5438A, JTAG, 8M crystal oscillator, nRF24L01 wireless chip and MAX3232, The jtag interface of middle JTAG access single-chip microcontroller MSP430F5438A, the XT2IN of 8M crystal oscillator access single-chip microcontroller MSP430F5438A, XT2OUT interface, nRF24L01 wireless chip access the SPI interface of single-chip microcontroller MSP430F5438A, and MAX3232 accesses single-chip microcontroller The USART0 interface of MSP430F5438A;
The single-chip microcontroller MSP430F5438A uses IAR Integrated Development Environment, and single-chip microcontroller MSP430F5438A uses the electricity of 3.3V Source module power supply, work clock are made of internal oscillator and the passive crystal oscillator of outside 8M;Wherein single-chip microcontroller The P9.1-P9.5 of MSP430F5438A is respectively as MOUT, MIN, SCK, CSN, CE signaling interface of SPI serial line interface, this five SPI interface corresponding with nRF24L01 wireless chip is connected a signaling interface respectively;The IRQ that nRF24L01 wireless chip issues makees For external interrupt signal, TXD2, RXD2 interface of single-chip microcontroller MSP430F5438A interface corresponding with MAX2323 is connected, is used for It is communicated with host computer;TDO, TDI, TMS, TCK and TEST interface are connected with emulator FET430USB corresponding interface respectively, For downloading program and artificial debugging.
3. the experimental system platform of wireless sensor network according to claim 1, which is characterized in that the host computer packet Include monitoring interface and web impact factor protocol module, wherein monitoring interface include serial port setting, it is network data reception area, spare Node, collaboration multi-path topology figure, network system operating status and collaboration path;Web impact factor protocol module is realized Network node initialization, network node group network process, routing inquiry, neighbor queries, network is added in node, node exits network With route repair process.
4. the experimental system platform of wireless sensor network according to claim 3, which is characterized in that the host computer Monitoring interface includes serial port setting, network data reception area, standby node, collaboration multi-path topology figure, network system operation State and collaboration path, specific working mode are as follows: communicated between host computer and aggregation node Sink using serial ports, work as remittance When poly- node Sink sends data information toward host computer, it is packaged serial ports frame first, is subsequently sent to hair data buffer zone, Zhi Houyou Host computer is analyzed and processed;When host computer sends data information toward aggregation node Sink, host computer calls data letter first Number is packaged serial ports frame, and transmission function is called to send data toward buffer area is sent later;The network operation starts, aggregation node Sink Start global clock, for temporal information calibration in network, while aggregation node Sink periodically sends data toward host computer Information the data information of standby node, node energy information and refreshes collaboration path in host computer active inquiry network node Topology diagram.
5. the experimental system platform of wireless sensor network according to claim 3, which is characterized in that the network congestion The Protocol network layer frame format of control protocol module includes the net load of network layer frame head and network layer, and network layer frame head includes frame Check code, frame type, frame ordering, frame length and network route domain information, and net load is data information;Believe in network layer frames format In breath: frame check is for judging that node receives the correctness of network information frame;Frame type represents the enabled letter of frame ordering information Number;Frame ordering refers to the corresponding instruction of task execution;Frame length represents the length of network routed domain, for parsing routing iinformation; Only after frame type signal is enabled, the corresponding order of frame could be executed;Collaboration path contains network node, according to network node Next-hop node is selected, the data traffic of wireless sensor network areas of congestion is dispersed.
6. the experimental system platform of wireless sensor network according to claim 3, which is characterized in that the network congestion Control protocol module includes with minor function:
1) int AnaLyseReNetFrame function, docking collection of letters breath content frame is analyzed, according to frame check code check information Correctness, and the parsing to frame type and frame ordering returns and executes the corresponding task code of the order;
2) void ProcessReNetFrame function, according to the returned task code of analysis frame type, then according to task generation Code calls corresponding subfunction to carry out task processing, and different task has different priority, first processing high-priority task, Low priority task is reprocessed later, and task is the processing to routing table, neighbor table, self information table and data forwarding;
3) void BuildNetFrame function, building executes network frame corresponding to frame ordering, when the frame ordering network frame structure After building up, network node sends the network frame, and the other nodes for receiving the network frame could execute the frame ordering corresponding Business;Assembling frame ordering information includes frame check code, frame type and determines routing domain information according to the difference of frame type;
4) void UpdataNodeInfo function updates network node self information;With the network operation, node self information It can change, which is updated node energy value, transmission times, jumping figure value;
5) void UpdataRoutingList function, the different task that reception network frame order analysis is returned according to node Code information is done different updates to route information table and is handled;Routing table information is increased, is deleted, modifies operation;
6) void UpdataNeighborList function is appointed according to node to the difference that network frame order analysis is returned is received Business code information is done different updates to neighbor information table and is handled;More new content is number, address, energy, the receipts of neighbor node Send out number;
7) unsigned int FindRoutingList function, according in parameter value query routing information table destination node, Father node and next-hop node information;
8) unsinged int FindNeighborList function finds the information of specified neighbor node, in neighbor information table Optimal neighbor node is found as next-hop node, selects next-hop node in nodes neighbors information table.
CN201610378659.XA 2016-05-31 2016-05-31 A kind of experimental system platform of wireless sensor network Expired - Fee Related CN106102091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610378659.XA CN106102091B (en) 2016-05-31 2016-05-31 A kind of experimental system platform of wireless sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610378659.XA CN106102091B (en) 2016-05-31 2016-05-31 A kind of experimental system platform of wireless sensor network

Publications (2)

Publication Number Publication Date
CN106102091A CN106102091A (en) 2016-11-09
CN106102091B true CN106102091B (en) 2019-06-21

Family

ID=57230545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610378659.XA Expired - Fee Related CN106102091B (en) 2016-05-31 2016-05-31 A kind of experimental system platform of wireless sensor network

Country Status (1)

Country Link
CN (1) CN106102091B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608231B (en) * 2017-08-15 2020-06-16 中国科学院长春光学精密机械与物理研究所 Debugging method of seeker stabilization platform
CN109067421A (en) * 2018-08-20 2018-12-21 中北大学 Vibrating sensor with WIFI interface
CN113708795B (en) * 2021-04-18 2022-10-18 北京林业大学 CC1310 chip-based multi-channel wireless sensing monitoring system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202230623U (en) * 2011-07-07 2012-05-23 华南师范大学 Experimental teaching platform for wireless transmission control network
CN102324192B (en) * 2011-07-07 2013-05-22 华南师范大学 Wirelessly transmitted and controlled networked experimental teaching platform and implementation method thereof
CN104933203B (en) * 2015-07-15 2018-07-06 中国科学院微电子研究所 Data processing method and device in a kind of wireless sensor network

Also Published As

Publication number Publication date
CN106102091A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
Beutel et al. Prototyping wireless sensor network applications with BTnodes
CN106102091B (en) A kind of experimental system platform of wireless sensor network
CN107015269A (en) A kind of microseism pressure break real-time monitoring system and monitoring method based on wireless network
CN203057531U (en) Multiple gateway transmission system based on ZigBee network
CN104574898B (en) Multisensor Internet of Things monitoring method and equipment based on Zigbee
CN101227203A (en) Minitype self-adapting collocation type wireless sensor network appliance
CN104767791A (en) Agricultural product storage and transportation control system based on wireless sensor network
CN101340404A (en) Embedded gateway for wireless network protocol conversion between WiFi and ZigBee
Li et al. The greenhouse environment monitoring system based on wireless sensor network technology
CN101605386A (en) The interconnected method of wireless multimedia sensor network and wireless local area network Internet
CN104955173A (en) ZIGBEE wireless networking method
CN110111524A (en) A kind of fire-fighting Internet of Things wireless acquisition system
CN103442455B (en) Implementation method towards the wireless sensor network emergency communication system of earthquake disaster
Gao et al. A wireless sensor network environment monitoring system based on TinyOS
CN201690610U (en) Self-organizing wireless sensing detection control network
CN208001376U (en) A kind of environmental data acquisition system
CN101377823A (en) Electric identification apparatus based on intelligent personal identification and implementing method thereof
CN206757491U (en) A kind of high in the clouds penetrating type serial server
Tiantian et al. Research on mine safety monitoring system based on WSN
Guevara et al. A framework for WSN using TinyOS and the IEEE1451 standard
CN205299727U (en) Electric heater controlling means based on zigBee technique
CN107949045A (en) A kind of environmental data acquisition system and method
CN103926004B (en) Temperature detection method based on wireless sensor network
Guan A reliability evaluation of wireless sensor network simulator: Simulation vs. testbed
CN103926005B (en) A kind of system for detecting temperature based on radio sensing network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190621