CN103716201B - Open wireless sensing network performance test method and open wireless sensing network performance test system - Google Patents

Open wireless sensing network performance test method and open wireless sensing network performance test system Download PDF

Info

Publication number
CN103716201B
CN103716201B CN201310683276.XA CN201310683276A CN103716201B CN 103716201 B CN103716201 B CN 103716201B CN 201310683276 A CN201310683276 A CN 201310683276A CN 103716201 B CN103716201 B CN 103716201B
Authority
CN
China
Prior art keywords
test
host computer
node
transmission
test data
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
CN201310683276.XA
Other languages
Chinese (zh)
Other versions
CN103716201A (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.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201310683276.XA priority Critical patent/CN103716201B/en
Publication of CN103716201A publication Critical patent/CN103716201A/en
Application granted granted Critical
Publication of CN103716201B publication Critical patent/CN103716201B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to an open wireless sensing network performance test method and an open wireless sensing network performance test system and particularly relates to high-precision measurement on performances such as delay, packet loss rate and topology. The platform is composed of an upper computer, lower computers, test backplanes, programming modules and measured nodes. The test backplanes are connected by a clock synchronization signal line, and high-precision time synchronization is completed by the adoption of a software and hardware cooperation mode; the measured nodes measure variable delay of air interfaces and low-speed wired interfaces in the transmission process and are used for revising the transmission delay of a data packet; the test backplanes adopt a fixed-length segmentation method on a test data packet and converts the variable delay into fixed relay; flexible remote programming is realized by using parameters to locate a file; a stable sensing network topology is obtained by adopting a link relevance method; and a sequence number mapping algorithm is adopted to solve the problem of sequence number overflow and realize accurate packet loss rate calculation.

Description

A kind of style of opening wireless sense network performance test methods and system
Technical field
The present invention relates to the communications field, more particularly, to a kind of style of opening wireless sense network performance test methods and system.
Background technology
Wireless sense network is made up of the microsensor node of a large amount of low costs, collaboratively realizes the sense to local environment Know, collect, processing and control task, being widely used in national defense and military, Industry Control, urban transportation, health care, environment prison The numerous areas such as survey, building monitoring.
Wireless sensor node is all extremely limited in the ability of the aspect such as calculate, store and communicate, the property of wireless sense network Test can be always the difficult problem perplexing wireless sense network research and large-scale application.Additionally, the software and hardware of wireless sensor network Platform is numerous, and hardware platform has smart dust, mica, telos, μ amps, software platform have contiki, tinyos, Liteos, nano-rk, t-kernel etc..The high-precision test system of one unification is provided for many eurypalynous sensing net nodes System, is a huge technological challenge.
Moteworks is the Sensor Network test system for mica node of crossbow company research and development.Moteworks surveys Test system mainly has three shortcomings: it can only provide testing service for mica node;It, in collecting test data, can disturb The running status of node;It can disturb the communication performance of network in transmitting test data.The motelab test of Harvard University System mainly for tmote sky node, the kansei of Ohio State University mainly for stargate, these test systems It is not provided that an opening test system, provide testing service for various kinds of sensors node.
Content of the invention
The technical problem to be solved is for the deficiencies in the prior art, provides a kind of style of opening wireless sense network Performance test methods and system.
The technical scheme is that a kind of style of opening wireless sense network performance test side Method, comprises the steps:
Step 1: host computer passes through wired TCH test channel and sends test command to the tested node of wireless sense network;
Step 2: after the tested node of wireless sense network receives test command, in wireless sense network running, quilt When survey node sends over the wireless channel or receives business data packet, all can produce and encapsulate business data packet, and by having Line TCH test channel is reported to host computer;
Step 3: after the tested node of wireless sense network receives the end test command of host computer transmission, stop to host computer Report test data bag;
Step 4: host computer carries out Treatment Analysis to the test data bag receiving, calculates the packet transmission of wireless sense network Delay, network topology structure and packet loss;
Wherein, described every wired TCH test channel includes slave computer, testing backboard and programming module, and each slave computer passes through The high-speed interface of wired connection is connected with a testing backboard;Each testing backboard provides several low-speed interfaces, each low speed Interface connects a programming module;It is connected with clock sync signal line, for each test back of the body synchronous between described each testing backboard Clock between plate.
The invention has the beneficial effects as follows:
1st, this test system realizes the collection of test information by the low-speed interface of a standard, can be various software and hardwares The wireless sense network of structure provides testing service.Because test data is gathered by wired paths, without interference with wireless communication The proper testing environment in road.
2nd, this test system adopts the synchronization mechanism of cooperative work of software and hardware, on hardware, by the lock-out pulse of timing It is obtained with high accuracy, on the premise of there is higher time precision, thus can measure accurately to be transmitted and prolong Late, and also by measuring the air transmission of tested node postpone and low-speed interface transmission delay, and offset this two classes is variable and prolong Calculating impact on transmission delay, finally, on testing backboard, by fixed length packetization technique, postponed elongated reception late Journey, is converted into the reception deferring procedure of fixed length, further increases the precision of Delay computing.
3rd, testing backboard provides large number of low-speed interface, provides interface channel, this side for substantial amounts of tested node Formula not only can reduce manufacturing cost, and will reduce the testing backboard quantity that test experiments need;And then it is same to reduce needs The backboard quantity of step, not only reduces hardware quantity, and improves the synchronization accuracy between testing backboard.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described test data bag includes node number field, payload length field, payload field, check code, aerial Transmission delay, Serial Port Transmission postpone, and wherein store the node number of the node sending this test data bag to host computer in node number, The length of stored payload field in payload length field, stores the business data packet that this node sends or receives in payload field, Described check code field stores the CRC of test data bag, and this node that described air transmission stores in postponing sends Or the air transmission of the business data packet receiving postpones, described Serial Port Transmission postpone in storage be this node last to upper The serial ports that machine sends during test data bag postpones.
Further, calculate packet transmission delay include tested inter-node transmission business data packet air transmission postpone and The Serial Port Transmission that tested node uploads test data bag postpones, and concrete calculation procedure is as follows:
Air transmission Delay computing: tested node, when wireless channel sends business data packet, records each business datum The transmission starting time of bag is stabbed and is sent successfully timestamp, deducts transmission starting time stamp using sending successfully timestamp, obtains Air transmission postpones, and air transmission is postponed report by wired TCH test channel in the test data bag be encapsulated in this report Host computer, host computer passes through correction algorithm, is calculated accurately aerial delay parameter;Tested node receives industry in wireless channel After business packet, in the test data bag reporting to host computer, air transmission postpones to be zero.
Serial Port Transmission Delay computing: when test data bag reports host computer, record each test data bag and report startup Timestamp and report successfully timestamp, reports starting time to stab using reporting successfully timestamp to deduct, and obtains Serial Port Transmission and postpones, Serial Port Transmission is postponed to be encapsulated in the test data bag next time reporting to report host computer by wired TCH test channel, upper Machine passes through correction algorithm, calculates accurate serial ports delay parameter.
Further, when test data bag is sent at the testing backboard of wired TCH test channel, testing backboard is divided using fixed length Cutover is received, and receives timestamp for each fixed length packet marking, variable delay is changed into fixed delay.
Further, the concrete steps of the topological structure of acquisition Sensor Network:
Host computer adopts data driven mode, and the counting period specified according to user, when being divided into several test process Between section, within each time period, tested node pass through wired TCH test channel to host computer send test data bag report each The business data packet transmission quantity of tested node, host computer and then collect the business data packet transmission quantity of each of the links, obtain The degree of correlation of link, using the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtains stable network topology machine Structure.
Beneficial effect using above-mentioned further scheme is: this method of testing adopts the pattern of data-driven, obtains wireless The change in topology of Sensor Network, not only has extensive adaptability, and by the degree of association index of link, overcomes change in topology Transient process to topology calculate impact.
Further, packet loss calculation procedure:
It is embedded with sequence number in the business data packet of transmission, tested node is sending or receiving business datum between tested node The business data packet sending or receive can be backuped to the payload field of test data bag, be encapsulated in test data bag by Bao Shi Host computer is sent to by wired TCH test channel, and is stored in database;
Host computer, from database, according to the ascending order of test data bag timestamp, takes out the test data bag of all receptions, Parse each test data bag successively, the sequence number of the packet of storage in read test data packet payload field, according to sequence Number judge whether out of order and spilling situation, if it does, being updated accordingly to sequence number, by the sequence number after updating Put back in database, process next test data bag, until all test data bags all process and complete, then with sequence number ascending order Mode takes out all test data bags, calculates the sequence number of disappearance, and then calculates packet loss.
Beneficial effect using above-mentioned further scheme is: using packet sequence coding techniques, efficiently solves message Synchronous, repeat to transmit, Multipath Transmission the problems such as the packet loss error problem that leads to it is achieved that the Sensor Network packet loss of high accuracy The measurement of rate.
Further, also include realizing tested node long-range programming code, concretely comprise the following steps: host computer writes at least two sections The all different basic programming file of period, channel number and transmission power;By compare programming file due to node number, channel number and The difference that transmit power leads to, produces a parameter and positions file;According to basic programming file and its corresponding parameter positioning literary composition Part, and the programming parameter that user selects, produce required programming file;Programming file is sent to by wired TCH test channel Corresponding programming module, using local programming technology, by code programming to tested node.
Beneficial effect using above-mentioned further scheme is: this method of testing utilizes parameter positioning file it is achieved that flexibly Long-range programming function, adapt to the programming code change of all kinds node, the node number of provides convenient, channel number and transmitting Power configuration.
Another technical scheme that the present invention solves above-mentioned technical problem is as follows: a kind of wireless sense network performance test of style of opening System is it is characterised in that include host computer, some wired TCH test channels and several tested nodes;Described host computer passes through Cable network is connected with some TCH test channels, and the end of every TCH test channel is connected with a tested section by privately owned interface Point;
Described host computer, it is used for sending test command by TCH test channel to tested node, is additionally operable to the survey to feedback Examination packet carries out Treatment Analysis, calculates packet transmission delay, network topology structure and the packet loss of wireless sense network;Described TCH test channel, it is used for realizing tested node and interacting of host computer test command and reporting of test data;Described tested section Point, it is used for receiving test command, and produces test data, feeds back to host computer by TCH test channel;
Wherein, described every wired TCH test channel includes slave computer, testing backboard and programming module, and each slave computer passes through The high-speed interface of wired connection is connected with a testing backboard;Each testing backboard provides several low-speed interfaces, each low speed Interface connects a programming module;It is connected with clock sync signal line, for each test back of the body synchronous between described each testing backboard Clock between plate.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described programming module, is additionally operable to receive the programming file that host computer sends, using local programming technology, By in code programming to tested node.
Further, the data that described testing backboard is additionally operable to that tested node is reported adopts fixed length segmentation to receive, for each Fixed length packet marking receives timestamp, and variable delay is changed into fixed delay.
Brief description
Fig. 1 is a kind of opening wireless sense network test system schematic diagram of the present invention;
Fig. 2 is the annexation figure of testing backboard of the present invention, programming module and tested node;
Fig. 3 is a kind of opening wireless sense network method of testing flow chart of the present invention
The format chart of the test data bag that Fig. 4 reports for the tested node of the present invention;
Fig. 5 is the clock sync signal flow graph of cooperative work of software and hardware of the present invention;
Fig. 6 is the wireless sense network packet loss calculation flow chart based on sequence number.
In accompanying drawing, the list of parts representated by each label is as follows:
1st, host computer, 2, slave computer, 3, testing backboard, 4, programming module, 5, tested node.
Specific embodiment
Below in conjunction with accompanying drawing, the principle of the present invention and feature are described, example is served only for explaining the present invention, and Non- for limiting the scope of the present invention.
As shown in figure 1, in this test system, only one host computer 1, this equipment passes through Ethernet and n slave computer 2 thing Reason is connected, and host computer 1 and slave computer 2 pass through tcp/ip protocol realization information exchange.Slave computer 2 utilizes high-speed interface and the test back of the body Plate 3 is connected, and realizes information exchange using serial peripheral agreement (spi).8 programming modules 4 are connected under each testing backboard 3, each Programming module 4 connects a tested node 5.
As shown in Fig. 2 testing backboard 3 is connected with programming module 4 by the low speed line of 9 pins, wherein 1 and 2 lines be used for be Programming module for power supply, 3 and 4 lines are used as serial ports (speed is 115200bps) and are communicated with programming module, and 5 and 6 lines are used for as tested section Point power supply, 7 and 8 lines are used as serial ports (speed is 115200bps) and are communicated with tested node 5.Programming module 4 utilize interconnector with Tested node 5 is connected, and using proprietary protocol information exchange at present, wherein 10 lines are function altogether, and 11 and 12 are used as serial ports (speed For 115200bps) communicate with tested node, 13 and 14 lines are used for controlling tested node, feed them into programming state.
As shown in figure 3, a kind of opening wireless sense network performance test methods,
Step 1: host computer passes through wired TCH test channel and sends test command to the tested node of wireless sense network;
Step 2: after the tested node of wireless sense network receives test command, in wireless sense network running, quilt When survey node sends over the wireless channel or receives business data packet, all can produce the test data encapsulating business data packet Bag, and host computer is reported to by wired TCH test channel;
Step 3: after the tested node of wireless sense network receives the end test command of host computer transmission, stop to host computer Report test data bag;
Step 4: host computer carries out Treatment Analysis to the test data bag receiving, calculates the packet transmission of wireless sense network Delay, network topology structure and packet loss;
Wherein, described every wired TCH test channel includes slave computer, testing backboard and programming module, and each slave computer passes through The high-speed interface of wired connection is connected with a testing backboard;Each testing backboard provides several low-speed interfaces, each low speed Interface connects a programming module;It is connected with clock sync signal line, for each test back of the body synchronous between described each testing backboard Clock between plate.
As shown in figure 4, test node includes node number by wired test channel to the test data bag that host computer reports Field, payload length field, payload field, check code, air transmission postpone, Serial Port Transmission postpones, and store wherein in node number Send the node number of the node of this test data bag to host computer, the length of stored payload field, payload in payload length field The business data packet that this node sends or receives is stored, described check code field stores the cyclic redundancy of test data bag in field Verification, the air transmission of the business data packet that this node that described air transmission stores in postponing sends or receives postpones, described What Serial Port Transmission stored in postponing is that the last serial ports sending to host computer during test data bag of this node postpones.Its interior joint Number length be 2 bytes, payload length be 2 bytes, payload content be elongated, verification code length be 2 bytes;Aerial biography The length of defeated delay is 2 bytes, and represented unit is millisecond;The length that Serial Port Transmission postpones is 2 bytes, represented Unit is millisecond.
System of the present invention has following functions:
1. high accuracy delay measurements
A. in existing measuring technology, mostly time synchronized is realized using software, this time synchronized is all in bottom Realize between machine.There are 2 points of deficiencies in software synchronization, one is that synchronization accuracy is not high;Two is packets need through testing backboard Buffer queue, because the delay that buffer queue leads to is variable, slave computer provides timestamp, when can lead to lower Between precision.
The present invention adopts the synchronization mechanism of cooperative work of software and hardware, is obtained with high accuracy by the lock-out pulse of timing Synchronised clock.
As shown in figure 5, participating in the n testing backboard tested, clock controller based on testing backboard 1, other test back ofs the body Plate is from clock controller.Testing backboard 1 when it's 10 seconds pasts each integer minute, send software clock report signal s1 to Slave computer 1, and it is relayed to host computer.The content of signal s1 is current clock value during testing backboard 1 sending signal s1.Upper After machine receives signal s1, send software clock more new signal s2 to other slave computers, and be relayed to corresponding testing backboard, letter The numerical value of number s2 is equal to the numerical value of signal s1.Testing backboard 1, when it's 30 seconds pasts each integer minute, is being carried on the back with other tests Sending signal s3 on the hardware synchronization line that plate is connected.Testing backboard 1 is usually low on hardware synchronization line, and signal s3 allows for firmly Part line synchro moment puts height.The clock synchronization algorithm of other testing backboards is as follows.After receiving signal s2, just local clock is arranged For s2;After receiving signal s3, the number of minutes of local clock is constant, and a second number is set as 30 seconds.
B., in the data communication process between tested node, business data packet transmission will experience multiple delays, in node Queueing delay in dispatch delay, wireless sending module, the carrier sense in transmission process postpones the weight that data collision leads to Pass and postpone, these postpone length and often have elongated characteristic, can lead to larger Delay computing error.Air transmission postpones meter Calculate: tested node, when wireless channel sends business data packet, records the transmission starting time stamp of each business data packet and sends out Send successfully timestamp, deduct transmission starting time stamp using sending successfully timestamp, obtain air transmission and postpone, by air transmission Postpone to report host computer by wired TCH test channel in the test data bag be encapsulated in this report, host computer is calculated by correction Method, is calculated accurately aerial delay parameter;Tested node, after wireless channel receives business data packet, reports to host computer Test data bag in, air transmission postpones to be zero.
During reporting test data bag between tested node, test data bag transmission will experience multiple delays, node Queueing delay in interior dispatch delay, low speed sending module, these postpone length and often have elongated characteristic, can lead to relatively Big performance evaluation error.Serial Port Transmission Delay computing: when test data bag reports host computer, record each test data bag Report starting time stamp and report successfully timestamp, report using reporting successfully timestamp to deduct starting time to stab, obtain serial ports Transmission delay, Serial Port Transmission is postponed to be encapsulated in the test data bag next time reporting to report by wired TCH test channel Position machine, host computer passes through correction algorithm, calculates accurate serial ports delay parameter.
In addition, when test data bag is sent at the testing backboard of wired TCH test channel, testing backboard adopts fixed length to split Receive, receive timestamp for each fixed length packet marking, variable delay is changed into fixed delay, further increases computing relay Precision.Measuring tool body can block adjustable length test data bag as one packet of every 10 bytes, and is grouped for each Increase a timestamp.
2. the topology calculating of universality
Because Sensor Network wireless channel is easily subject to external disturbance, topological structure can occurrence dynamics change, so occurring of short duration Route and the topological transitions phase, institute is easily subject to transitional interference in the conventional way, and the topological structure of calculating is inaccurate;Sensing Net species is various, can adopt various Routing Protocols and Topology Control Algorithm, so that topological analysis algorithm has widely fitting With property, employ the pattern of data-driven.Although the topology of Sensor Network controls and route computing method is varied, by number The real topology of Sensor Network can effectively be disclosed according to flow direction.This method test process be divided into that user specifies some Time period, it is calculated the topological structure of this time period according to the data flow characteristic of each time period.
Host computer adopts data driven mode, and the counting period specified according to user, when being divided into several test process Between section, within each time period, tested node pass through wired TCH test channel to host computer send test data bag report each The business data packet transmission quantity of tested node, host computer and then collect the business data packet transmission quantity of each of the links, obtain The degree of correlation of link, using the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtains stable network topology machine Structure.
Concrete obtain link association degree to realize process as follows:
The degree of association initializing all tested nodes first is 0, secondly, from the beginning of sink node, obtains sink node Child node, and these child nodes are set to the degree of association of sink node according to the traffic of these child nodes and sink node;Again Secondary, find the Sun Jiedian of these child nodes, and calculate Sun Jiedian to the degree of association of child node, if the degree of association obtaining is more than grandson The current degree of association of node, just changes the father node of Sun Jiedian;Otherwise, just do not update.
Using the iterative process of above depth-first, until all of node is all traversed.
3. accurate packet loss statistics
In the calculating process of packet loss, because test starting and test terminate order and be difficult between tested node in a large number together Step execution, repeats the reasons such as transmission and Multipath Transmission, and the situation of the many parts of identical business data packet receiving can be led to occur, Lead to the not high problem of the accuracy in computation of packet loss.For this reason, can be embedding in the business data packet of transmission between each tested node There is sequence number, in each tested node, be provided with several destination address counters, an independent meter is safeguarded in each destination location Number device, this node often sends a business data packet, and the counter of its corresponding destination address is just incremented by.Each tested node is being sent out Send and receive and all can report test data bag to host computer during business data packet, encapsulation wherein in the payload field of test data bag Be this node send or receive business data packet (including sequence number).
Host computer, from database, according to the ascending order of test data bag timestamp, takes out all test data bags, solves successively Analyse each test data bag, the sequence number of the business data packet of storage in read test data packet payload field, according to sequence number Judging whether out of order and spilling situation, if it does, being updated accordingly to sequence number, the sequence number after updating being put Return in database, process next test data bag, until all test data bags all process and complete, then with sequence number ascending order side Formula takes out all test data bags, calculates the sequence number of disappearance, and then calculates packet loss.
For the network of single sink node, the business data packet of other nodes is all sent to sink node, so Each sensing node only needs to safeguard a counter, and after often sending a business data packet, this counter is just incremented by.This meter The storage size of number device is 2 bytes, and initial value is 0x0, and maximum is 0xffff.When the value of this counter reaches 0xffff Afterwards, due to due to counter overflow, next value is 0x0 again.
When test data bag is saved in the database of host computer, to preserve business datum packet number using 4 bytes. Solve the problems, such as that calculator overflows by algorithm as shown in Figure 6, this algorithm also needs to consider that business data packet reaches out of order shadow Ring.
Step 1: from database, according to the ascending order of test data bag timestamp, take out all test data bags, read in the The sequence number nseq of business data packet in one test data bag;
Step 2: and initial value is assigned to parameter count, last_seq and m, wherein count is to overflow the number of times occurring, last_ Seq is up-to-date Receive sequence number, and m is two bytes of storage space corresponding minimum overflow values, is 0x10000 in the system;
Step 3: the relation according to comparing nseq and last_seq judges whether to overflow, if greater than execution step 4; Otherwise execution step 5;
Step 4: whether in the reasonable scope the relation according to comparing nseq and last_seq+m/2 judges increasing degree, with Judge whether out of order, if less than then updating nseq according to (a) module, if greater than then according to (b) module renewal nseq;
Step 5: judge increasing degree whether in zone of reasonableness according to the relation of multilevel iudge nseq and last_seq-m/2 Interior, if less than then updating nseq according to (c) module, if greater than then according to (d) module renewal nseq;
Wherein, in (a) module, the sequence number nseq of new test data bag is more than last_seq, and increases width rational In degree, represent normal the increased situation of sequence number, parameter last_seq normally updates, and such as nseq for 5, last_seq is 4;B, in () module, the sequence number nseq of new test data bag is more than last_seq, but beyond rational increasing degree, represent Above occur in that spilling, currently receive an out of order business data packet again, parameter last_seq and count do not need to become More, such as current last_seq is 0xfffe for 0, nseq, continuously receives three Serial No. (0xffff, 0x0,0xfffe) Packet, will enter such situation;C, in () module, the sequence number nseq of new test data bag is less than last_seq, but not In rational increasing degree, represent and overflow situation about occurring, last_seq normally updates, but count parameter needs to be incremented by, than If nseq is 0x0, last_seq is 0xffff;D, in () module, the sequence number nseq of new test data bag is less than last_seq, Again in rational increasing degree, represent out of order situation, parameter last_seq does not need to update, such as nseq is 8, last_ Seq is 9, shows the transmission more early than No. 9 business data packet of No. 8 business data packet, but arrival destination node afterwards.Respectively according to a, b, c, Situation in d is updated to the nseq of business data packet, the sequence number nseq updating is written back to database, further takes out next The sequence number of business data packet in individual test data bag, and repeat above operation, until terminating.
After operation, the business datum packet number of database does not just have overflow problem, then with business data packet The liter sequential mode of sequence number takes out all test data bags, then calculates the sequence number of wherein disappearance it is possible to obtain packet loss.
4. long-range programming
The programming code being compiled out using sensor node development platform is both for specific node number, channel number and transmitting Power configuration, in long-range programming, needing according to test scene demand flexible configuration is different initialization values.By comparing The programming code difference of different node numbers, just obtains the coding site of node number;By comparing the programming code of different channels number Difference, just obtains the coding site of channel number;By comparing the programming code difference of different transmission power, just obtain transmission power Coding site.Above positional information, position file by these coding sites are placed into the corresponding parameter of programming code In it is possible to neatly long-range programming go out the node of node number, channel number and the transmission power of various needs.
When compiling the programming file of tested node, two programming files that compiling egress number is 1 and node number is 2, Automatically compare the difference of both of these documents by software, and the position of difference is exported the node number positioning that parameter positions file Duan Zhong.Compile out two programming files that channel number is 20 and channel number is 21 again, both of these documents is automatically compared by software Difference, and by the position of difference export parameter position file channel number positioning section in.Compiling out transmission power again is 25 Two programming files being 26 with channel number, automatically compare the difference of both of these documents by software, and will be defeated for the position of difference Go out and position in the transmission power positioning section of file to parameter.
When executing long-range programming order, with user configured node number, channel number and transmission power as foundation, according to ginseng Node number positioning sections in number positioning files, channel number positioning section and the side-play amount indicated by transmission power positioning section, modification is burnt Written document.Again the programming file of customization is sent to programming module, completes last local programming and work it is possible to realize tested The code update function of node.This long-range programming ability, can facilitate the rapid deployment of test scene.
5. multifarious energy ezpenditure is shown
During carrying out test to tested node, testing backboard is with the speed of 300,000 times per second to tested node Current value is sampled.By 10,000 sampled points, calculate a current average and variance yields.Show in figure in energy ezpenditure, simultaneously Show average current curve and electric current variance curve.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.

Claims (9)

1. a kind of style of opening wireless sense network performance test methods are it is characterised in that comprise the steps:
Step 1: host computer passes through wired TCH test channel and sends test command to the tested node of wireless sense network;
Step 2: after the tested node of wireless sense network receives test command, in wireless sense network running, tested section When point sends over the wireless channel or receives business data packet, all can produce the test data bag encapsulating business data packet, and Host computer is reported to by wired TCH test channel;
Step 3: after the tested node of wireless sense network receives the end test command of host computer transmission, stop reporting to host computer Test data bag;
Step 4: host computer carries out Treatment Analysis to the test data bag receiving, the packet transmission calculating wireless sense network is prolonged Late, network topology structure and packet loss;
The concrete steps of the topological structure of acquisition Sensor Network:
Host computer adopts data driven mode, the counting period specified according to user, and test process is divided into several time periods, Within each time period, tested node passes through wired TCH test channel and reports each tested section to host computer transmission test data bag The business data packet transmission quantity of point, host computer and then collect the business data packet transmission quantity of each of the links, obtain link The degree of correlation, using the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtains stable network topology structure;
Wherein, described every wired TCH test channel includes slave computer, testing backboard and programming module, and each slave computer passes through wired The high-speed interface connecting is connected with a testing backboard;Each testing backboard provides several low-speed interfaces, each low-speed interface Connect a programming module;It is connected with clock sync signal line, between each testing backboard synchronous between described each testing backboard Clock.
2. according to claim 1 a kind of style of opening wireless sense network performance test methods it is characterised in that described test number According to include node number field, payload length field, payload field, check code, air transmission postpone, Serial Port Transmission postpone, its The node number of the node sending this test data bag to host computer, stored payload word in payload length field is stored in interior joint number The length of section, stores the business data packet that this node sends or receives, described check code field storage test number in payload field According to the CRC of bag, in described air transmission delay, the business data packet of this node transmission of storage or reception is aerial Transmission delay, what described Serial Port Transmission stored in postponing is the last serial ports sending to host computer during test data bag of this node Postpone.
3. according to claim 1 a kind of style of opening wireless sense network performance test methods it is characterised in that calculate packet The air transmission that transmission delay includes tested inter-node transmission business data packet postpones to upload test data bag with tested node Serial Port Transmission postpones, and concrete calculation procedure is as follows:
Air transmission Delay computing: tested node, when wireless channel sends business data packet, records each business data packet Send starting time stamp and send successfully timestamp, deduct transmission starting time stamp using sending successfully timestamp, obtain aerial Transmission delay, by air transmission postpone be encapsulated in this report test data bag in reported by wired TCH test channel upper Machine, host computer passes through correction algorithm, is calculated accurately aerial delay parameter;Tested node receives business number in wireless channel After bag, in the test data bag reporting to host computer, air transmission postpones to be zero;
Serial Port Transmission Delay computing: when test data bag reports host computer, record each test data bag and report starting time Stab and report successfully timestamp, report using reporting successfully timestamp to deduct starting time to stab, obtain Serial Port Transmission and postpone, will go here and there Port transmission postpones to be encapsulated in the test data bag next time reporting to report host computer by wired TCH test channel, and host computer leads to Cross correction algorithm, calculate accurate serial ports delay parameter.
4. according to claim 1 a kind of style of opening wireless sense network performance test methods it is characterised in that test data bag When being sent at the testing backboard of wired TCH test channel, testing backboard adopts fixed length segmentation to receive, for each fixed length packet marking Receive timestamp, variable delay is changed into fixed delay.
5. according to claim 1 a kind of style of opening wireless sense network performance test methods it is characterised in that packet loss calculate Step:
It is embedded with sequence number in the business data packet of transmission, tested node is sending or receiving business data packet between tested node When, the business data packet sending or receive can be backuped to the payload field of test data bag, be encapsulated in test data bag logical Cross wired TCH test channel and send host computer to, and be stored in database;
Host computer, from database, according to the ascending order of test data bag timestamp, takes out the test data bag of all receptions, successively Parse each test data bag, the sequence number of the business data packet of storage in read test data packet payload field, according to sequence Number judge whether out of order and spilling situation, if it does, being updated accordingly to sequence number, by the sequence number after updating Put back in database, process next test data bag, until all test data bags all process and complete, then with sequence number ascending order Mode takes out all test data bags, calculates the sequence number of disappearance, and then calculates packet loss.
6. according to claim 1 a kind of style of opening wireless sense network performance test methods it is characterised in that also include realize The long-range programming code of tested node, concretely comprises the following steps: host computer writes at least two node numbers, channel number and transmission power all not Same basic programming file;By comparing the difference that programming file is led to due to node number, channel number and transmit power, produce one Individual parameter positions file;File, and the programming parameter that user selects are positioned according to basic programming file and its corresponding parameter, Produce required programming file;Programming file is sent to corresponding programming module by wired TCH test channel, is burnt using local Writing technology, by code programming to tested node.
7. a kind of style of opening wireless sense network Performance Test System is it is characterised in that include host computer, some wired tests are led to Road and several tested nodes;Described host computer is connected with some TCH test channels by cable network, every TCH test channel End is connected with a tested node by privately owned interface;
Described host computer, it is used for sending test command by TCH test channel to tested node, is additionally operable to the test number to feedback Carry out Treatment Analysis according to bag, calculate packet transmission delay, network topology structure and the packet loss of wireless sense network;Described test Passage, it is used for realizing tested node and interacting of host computer test command and reporting of test data;Described tested node, its For receiving test command, and produce test data, host computer is fed back to by TCH test channel;
Host computer adopts data driven mode, the counting period specified according to user, and test process is divided into several time periods, Within each time period, tested node passes through wired TCH test channel and reports each tested section to host computer transmission test data bag The business data packet transmission quantity of point, host computer and then collect the business data packet transmission quantity of each of the links, obtain link The degree of correlation, using the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtains stable network topology structure;
Wherein, described every wired TCH test channel includes slave computer, testing backboard and programming module, and each slave computer passes through wired The high-speed interface connecting is connected with a testing backboard;Each testing backboard provides several low-speed interfaces, each low-speed interface Connect a programming module;It is connected with clock sync signal line, between each testing backboard synchronous between described each testing backboard Clock.
8. according to claim 7 a kind of style of opening wireless sense network Performance Test System it is characterised in that described programming mould Block, is additionally operable to receive the programming file that host computer sends, using local programming technology, by code programming to tested node.
9. according to claim 7 a kind of style of opening wireless sense network Performance Test System it is characterised in that described test the back of the body The data that plate is additionally operable to that tested node is reported adopts fixed length segmentation to receive, and receives timestamp for each fixed length packet marking, will Variable delay is changed into fixed delay.
CN201310683276.XA 2013-12-12 2013-12-12 Open wireless sensing network performance test method and open wireless sensing network performance test system Expired - Fee Related CN103716201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310683276.XA CN103716201B (en) 2013-12-12 2013-12-12 Open wireless sensing network performance test method and open wireless sensing network performance test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310683276.XA CN103716201B (en) 2013-12-12 2013-12-12 Open wireless sensing network performance test method and open wireless sensing network performance test system

Publications (2)

Publication Number Publication Date
CN103716201A CN103716201A (en) 2014-04-09
CN103716201B true CN103716201B (en) 2017-01-18

Family

ID=50408806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310683276.XA Expired - Fee Related CN103716201B (en) 2013-12-12 2013-12-12 Open wireless sensing network performance test method and open wireless sensing network performance test system

Country Status (1)

Country Link
CN (1) CN103716201B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301060B (en) * 2014-10-27 2017-09-15 北京必创科技股份有限公司 A kind of node synchronous collection method and system sampled based on hardware trigger
CN105634836B (en) * 2014-10-27 2020-03-17 香港理工大学 Information processing method and device
CN104703206B (en) * 2015-02-15 2018-05-18 中国科学院上海微系统与信息技术研究所 Towards the Network Protocol Performance Testing bed system and test method of wireless sense network
CN106936664B (en) * 2017-01-18 2020-04-07 中国电子科技集团公司第五十研究所 Software defined network path performance testing device and method
CN109714221B (en) * 2017-10-25 2022-11-01 阿里巴巴集团控股有限公司 Method, device and system for determining network data packet
CN108712348A (en) * 2018-05-18 2018-10-26 王逸人 Flow control methods, system, equipment and computer readable storage medium
CN111008167A (en) * 2019-11-28 2020-04-14 四川观想科技股份有限公司 Distributed computer bus back plate
CN112887140B (en) * 2021-01-25 2022-02-11 中国科学院沈阳自动化研究所 Multi-cloud collaborative network-cut-off disaster recovery method
EP4329360A1 (en) * 2021-12-29 2024-02-28 New H3C Technologies Co., Ltd. Csqf scheduling cycle collecting method and apparatus applied to deterministic network
CN114665990B (en) * 2022-03-10 2024-03-22 深圳市欣博跃电子有限公司 Wireless repeater testing method and device, electronic equipment and medium
CN115001999B (en) * 2022-05-31 2024-04-02 北京交通大学 Network state detection method in wireless ad hoc network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711095A (en) * 2012-05-18 2012-10-03 中国科学院信息工程研究所 Method for updating nodes of wireless sensor network in wireless mode
CN102752843A (en) * 2012-06-20 2012-10-24 中国科学院信息工程研究所 Time synchronization method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711095A (en) * 2012-05-18 2012-10-03 中国科学院信息工程研究所 Method for updating nodes of wireless sensor network in wireless mode
CN102752843A (en) * 2012-06-20 2012-10-24 中国科学院信息工程研究所 Time synchronization method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Monitoring Civil Structures with a Wireless Sensor Network》;Krishna Chintalapudi等;《IEEE Internet Computing》;20060320;第10卷(第2期);第1-15页 *
An Open Conformance Test Systemtowards the Standardization of Wireless Sensor Networks;Zhonghua Zhao等;《International Journal of Distributed Sensor Networks》;20121014;第26-34页 *
基于零打扰测试背板的无线传感器网络测试平台;赵忠华等;《软件学报》;20120415;说明书第882页第3节至第888页第4节,图6、图10 *

Also Published As

Publication number Publication date
CN103716201A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN103716201B (en) Open wireless sensing network performance test method and open wireless sensing network performance test system
CN102421187B (en) High-accuracy clock synchronization method of wireless sensor network
CN102946616B (en) Internet of things middleware performance testing system and testing method
CN201600774U (en) Double-channel automatic meter reading system
CN106961312B (en) A kind of structure of network instrument clock synchronization system and method
CN105450384A (en) Synchronous clock time synchronization apparatus for communication module
CN101646185B (en) Regulation and measurement equipment of wireless self-organizing network and use method thereof
CN106873464A (en) A kind of airborne distributed parallel computing environment of restructural and method
CN109194433A (en) The implementation method united when based on gigabit AFDX network high-precision time service
CN104618087A (en) Method for accurately measuring wide-area power grid PMU (Phasor Measurement Unit) data time delay
CN102291178A (en) Method and device for measuring the asymmetrical time delay of optical fiber
Yang et al. A systematic network traffic emulation framework for digital twin network
CN102593955A (en) Comprehensive intelligent time frequency testing system and testing method
CN103326901B (en) A kind of power system broadband network performance test methods and system
CN201097457Y (en) Railway signal monitoring network system based on ZigBee
CN113036930B (en) Power grid data communication management system
CN101393007A (en) Data acquisition system for flexible articulated arm measuring set
CN202194654U (en) Well logging bus system based on FlexRay bus
CN206789037U (en) A kind of Internet of Things acquisition terminal communicated based on clock synchronous acquisition and various ways
CN202514075U (en) Intermediate piece device in wireless sensor network
CN201372742Y (en) A wireless information acquisition system of well drilling field
CN106656395B (en) Based on the improved power grid time synchronized measurement system of self study and method
CN203840366U (en) Intelligent gateway equipment supporting single-serial-port multi-protocol and single-network-port multi-platform modes
CN102970178A (en) Local communication performance analyzer of low-pressure concentrated meter reading terminal
CN206432787U (en) Intelligent relay protection device information transfer time automatic checkout system

Legal Events

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

Granted publication date: 20170118

Termination date: 20191212

CF01 Termination of patent right due to non-payment of annual fee