Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
Embodiment:
The embodiment of the invention provides a kind of high speed sensor network test macro, as shown in Figure 1, comprising: data packet generator 101, data packet analysis device 102, OAMAgent device 103 and central platform 10; Described central platform 10 comprises emulation server 11; application server 12; data server among the data server 13(figure in the embodiment of the invention comprises data server A and data server B; so that expansion memory capacity; particularly; main processing server 14 links to each other with server B with server A respectively; and 11 of emulation servers link to each other with data server B and get final product; structure shown in Fig. 1 only is that of the specific embodiment of the invention gives an example; central platform also can make up connection between each server by other network configuration; also belong within the protection range of the present invention) and main processing server 14, application server 12 and data server 13 link to each other with emulation server 11 with main processing server 14 simultaneously.
Data packet generator 101 be used for to receive the test instruction of main processing server 14 and sends test datas to the system equipment 201 of high speed sensor network 20 to be measured; Main processing server 14 uses data packet generator 101 to produce test data in the embodiment of the invention, data packet generator 14 produces the Frame that meets high speed sensor network 20 related protocols to be measured, and launch with the system equipment 201 of this tested network (high speed sensor network 20 to be measured) and to communicate by letter and received communication, can be used for the link-quality of tested network is tested (under different rates and the communication distance condition), comprise throughput, postpone, packet loss, the group bag sends test, the point to point wireless communication test, receive and the address decoding test, radio frequency dormancy test etc.
As shown in Figure 2, described data packet generator 101 comprises in embodiments of the present invention: an ARM primary processor, first network interface card, first memory and the first high speed sensor network communication module, first memory is connected in an ARM primary processor, the one ARM primary processor links to each other with main processing server by first network interface card, and an ARM primary processor communicates by the system equipment of the first high speed sensor network communication module and high speed sensor network to be measured.Wherein an ARM primary processor, first network interface card and first memory have constituted data processing and control module, be understandable that, data packet generator also comprises the time synchronized module that is used to data processing and control module that clock signal is provided, this time synchronized module adopts high accuracy RTC clock, and data packet generator also comprises the power module that is used to whole data packet generator power supply; Time synchronized module and power module those skilled in the art can be known by prior art, do not give unnecessary details one by one herein.
The first high speed sensor network communication module comprises a radio-frequency (RF) transceiver, a modem and a communication protocol processor that links to each other successively in the embodiment of the invention, and communication protocol processor connects an ARM primary processor.High speed sensor network communication module in the embodiment of the invention provides and the communicating by letter of the tested network of high speed (high speed sensor network) and the network equipment thereof, and link to each other with an ARM primary processor by second bus (comprising LAN/USB/CPCI), high speed sensor network communication module in the embodiment of the invention has can plug characteristic, for the equipment of adaptive various manufacturers is provided convenience, communication protocol processor in the embodiment of the invention in the high speed sensor network communication module of data packet generator adopts arm processor, and this arm processor possesses high speed sensor network protocol stack processing capacity; Modem in the embodiment of the invention in the data packet generator adopts the FPGA modulator-demodulator, can finish the modulation and demodulation of signal, realize transmitting-receiving and the control function of protocol stack physical layer, the wireless transceiver in the embodiment of the invention in the data packet generator adopts radio-frequency (RF) transceiver to finish the front end transmitting-receiving of radio frequency.
For the test macro that can make the embodiment of the invention can have application scenario widely, data packet generator in the embodiment of the invention comprises that also one is used for setting up the low-speed sensor network communication module of communicating by letter with the system equipment of low-speed sensor network, described low-speed sensor network communication module comprises a wireless transceiver and a communication protocol stack processor, wireless transceiver on the described data packet generator connects an ARM primary processor by its communication protocol stack processor, thereby this test macro is applied in the test of low-speed sensor network.
The low-speed sensor network communication module provides and the communicating by letter of the tested network of low speed (low-speed sensor network) and the network equipment thereof, and link to each other with an ARM primary processor by first bus (comprising SPI/USB), communication protocol stack processor adopting C51 processor in the low-speed sensor network communication module in embodiments of the present invention, the C51 processor possesses the protocol stack processing capacity, and the wireless transceiver in the embodiment of the invention is finished the wireless receiving and dispatching of radio frequency physical layer.
Data packet analysis device 102 is used for the Frame of monitored data generator package 101 and the communication channel coincidence senser procotol of system equipment 201 and resolves this Frame being sent to main processing server 14; As shown in Figure 3, the data packet analysis device in the embodiment of the invention comprises: the 2nd ARM primary processor, second network interface card, second memory, the second high speed sensor network communication module, space orientation module and energy monitoring module; Second memory, space orientation module and energy monitoring module are connected with the 2nd ARM primary processor respectively, the 2nd ARM primary processor connects main processing server by second network interface card, and the 2nd ARM primary processor communicates by the system equipment of the second high speed sensor network communication module and high speed sensor network to be measured.The space locating module adopts the GPS transceiver to detect the locus of the tested network equipment in the embodiment of the invention, and the energy that energy detection module adopts power supply supply detector to detect the tested network equipment is supplied with; Be understandable that, the second high speed sensor network communication module in the embodiment of the invention has identical structure and operation principle with the above-mentioned first high speed sensor network communication module, in data packet analysis device 102, increased the low-speed sensor network communication module in the embodiment of the invention equally, its structure and operation principle also with above-mentioned data packet generator in the low-speed sensor network communication module identical, therefore, repeat no more herein.
Data packet analysis device 102 Frame of coincidence senser network related protocol in this communication channel of monitoring reception of mourning in silence in the embodiment of the invention, it is resolved and analyzes, the signal energy intensity that while data packet analysis device 102 can also be monitored in this communication channel can be used for data interaction, data frame transfer path, network topology between the equipment in the tested network (high speed sensor network) are analyzed.Simultaneously energy supply, the locus of the tested network equipment are measured.
OAMAgent device 103 arranges instruction for the network parameter with main processing server 14 and is forwarded to high speed sensor network 20 to be measured; As shown in Figure 4, the OAMAgent device 103 in the embodiment of the invention comprises: a PC primary processor, the 3rd network interface card, the 3rd memory, the 3rd high speed sensor network communication module and the first management interface module; The 3rd memory connects a PC primary processor, the one PC primary processor connects main processing server by the 3rd network interface card, the one PC processor communicates by system equipment 201, the access device 202 of the 3rd high speed sensor network communication module, the first management interface module and high speed sensor network 20 to be measured respectively, the first management interface module comprises LAN interface, RS232 interface or SPI interface, realize the variation of communication mode, to satisfy various communicating requirements.For the ease of operator's operation, also be connected with an information display module on the PC primary processor in the embodiment of the invention, described information display module adopts the LCD LCDs.The one PC master processor processes is communicated by letter with the main processing server 14 of central platform 10 by the 3rd network interface card, the one PC primary processor communicates by the access device 202 of the first management interface module and high speed sensor network 20 to be measured, and the first management interface module is provided to the transparent transmission channel (LAN/RS232/SPI) of low-speed sensor network coordinator, high speed sensor network access device for the OAMAgent device.
The 3rd high speed sensor network communication module of OAMAgent device is identical with structure and the operation principle of the first high speed sensor network communication module of above-mentioned data packet generator in the embodiment of the invention, specifically can not give unnecessary details with reference to the above-mentioned first high speed sensor network communication module herein.
In OAMAgent device 103, increased the low-speed sensor network communication module in the embodiment of the invention equally, its structure and operation principle also with above-mentioned data packet generator in the low-speed sensor network communication module identical, therefore, also repeat no more herein.
Emulation server 11 is used for setting up the sensor network model and this model being stored in data server and this model is sent to application server; Before test, can be set up the sensor network model of a typical wireless sensor network model and a plurality of other types by emulation server 11, this network model is a task model, and test is afterwards tested according to the task model that emulation server 11 is set up.
Application server, be used for to show that the sensor network model that sensor network model that emulation server is set up is selected for the tester and the tester is selected is sent to main processing server, and the test data of obtaining main processing server generates and shows test report.In order to increase the range of application of this test macro, described application server 12 connects client computer 15 by the Internet, therefore, the client can be connected to application server 12 by client computer 15, is operated by 12 pairs of test macros of application server then.
Data server 13 is used for the sensor network model of storage emulation server 11 foundation and the test data that main processing server 14 obtains; As everyone knows, data server is used for the storage related data, and the data server in the embodiment of the invention is made of data server A and data server B, so that memory capacity is expanded, is convenient to data management simultaneously.
Main processing server 14, be used for according to the sensor network model that the tester selects high speed sensor network 20 to be measured being tested, when the client is connected to application server 12 by client computer 15, it can be by the task model of application server selection by emulation server 11 foundation, after the client sets the tasks model, application server 12 can notify main processing server 14 to test, main processing server 14 is transferred corresponding task model by data server 13 and is tested, and will collect test result and be stored in the data server, application server 12 is transferred this test data and is carried out analysis and arrangement then, generate test report, and being shown to client computer 15, the confession client checks and preserves.
For the ease of the business datum of high speed sensor network is tested, test macro in the embodiment of the invention also comprises service analogue device 104, the business datum that is used for the analog sensor network application also is sent to this business datum the system equipment 201 of high speed sensor network 20, receive the business control data that described system equipment 201 is passed back simultaneously, and this business datum is sent to main processing server 14.The structure of the service analogue device in the embodiment of the invention as shown in Figure 5, comprise: the 3rd ARM primary processor, the 4th network interface card, the 4th memory, the 4th high speed sensor network communication module, the dsp processor that is used for auxiliary the 3rd ARM master processor processes data for audio-frequency module and video acquisition module that the high speed business datum is provided to dsp processor, is used for accepting the control of the 3rd ARM primary processor provides action Executive Module from the switch level signal to high speed sensor network to be measured; The 4th memory is connected the 3rd ARM primary processor respectively with dsp processor, and the 3rd ARM primary processor connects the primary processor server by the 4th network interface card.Wherein, audio-frequency module can adopt recorder and player, and video acquisition module can adopt high definition CCD image pick-up device.
Structure and the operation principle of the first high speed sensor network communication module in the 4th high speed sensor network communication module in this service analogue device and the above-mentioned data packet generator are identical, therefore, can be with reference to structure and the operation principle of the first high speed sensor network communication module in the above-mentioned data packet generator, this does not repeat no more.
In order to allow service analogue device in the embodiment of the invention adapt to the environment of low-speed sensor network test, described service analogue device also comprises: be used for providing to dsp processor the sensing acquisition module of low-speed service data, described sensing acquisition module comprises high frequency sensors, the cycle transducer that is connected to dsp processor and triggers transducer.Also comprise the low-speed sensor network communication module equally in the service analogue device, this low-speed sensor network communication module has identical structure and operation principle with low-speed sensor network communication module in the above-mentioned data packet generator, repeats no more herein.
The sensing acquisition module provides low-speed service data for the service analogue device, wherein high frequency sensors is that frequency acquisition is greater than the transducer of 10Hz, as high-frequency pressure sensor, the cycle transducer is the transducer of timing acquiring, as Temperature Humidity Sensor, trigger transducer and be the transducer of triggering collection at random, as acceleration transducer; Video acquisition module, audio-frequency module provide the high speed business datum for the service analogue device, the action Executive Module provides professional control action for the service analogue device, namely provide a switch level signal (high level or low level) to sensor network (comprising two kinds of sensor networks of high speed and low speed), dsp processor is the above-mentioned low-speed service data of service analogue device preliminary treatment and high speed business datum, reduces the 3rd ARM primary processor pressure burden.Therefore, data processing and control module are handled and control module with respect to the data of above-mentioned data packet generator in the service analogue device, have increased a dsp processor, form " double-core " processor, make data efficiency be increased dramatically.
In order to simulate different network environments, create the laboratory tests environment, test macro in the embodiment of the invention also comprises network topology simulator 105, be used for high speed sensor network to be measured is carried out the network topology simulation, namely to the branch of network and the systematicness arrangement of node, particularly, as shown in Figure 6, this network topology simulator comprises: the 2nd PC primary processor, the 5th memory, the 5th network interface card and channel link block, the 5th memory connects the 2nd PC primary processor, the 2nd PC primary processor connects main processing server by the 5th network interface card, the 2nd PC primary processor carries out the network topology simulation by the channel link block to high speed sensor network to be measured, the channel link block comprises a communication protocol processor, one modem and a plurality of radio-frequency (RF) transceiver, a plurality of radio-frequency (RF) transceiver connect modem respectively, and modem connects the 2nd PC primary processor by communication protocol processor.The communication protocol processor of network topology simulator, modem and radio-frequency (RF) transceiver are all identical with communication protocol processor, modem and radio-frequency (RF) transceiver structure and principle in the above-mentioned data packet generator in the embodiment of the invention, specifically can repeat no more with reference to the introduction of above-mentioned data packet generator herein.The network topology simulator is when carrying out the topology simulation to sensor network, the corresponding system equipment of each radio-frequency (RF) transceiver, form node topology, the network topology simulator can be set up with the main processing server 14 of central platform 10 by the 5th network interface card and communicate by letter, obtain its control command, make topology control according to task model, can not be connected with other controllers yet, independently manually controlled by operating personnel, sensor network is carried out topology control, certainly, in order to realize control test automatically, the network topology simulator links to each other with main processing server by the 5th network interface card in the embodiment of the invention.In order to increase the memory capacity of network topology simulator, the 5th memory can comprise a large-capacity memory card.
The simulator of network topology described in the embodiment of the invention also comprises one second management interface module, and the second management interface module comprises LAN interface, RS232 interface or SPI interface.The access device that the second management interface module is used for connection high speed sensor network to be measured carries out the network topology simulation, and the second management interface module can also be carried out the network topology simulation to the low-speed sensor network simultaneously.
Testing equipment (comprising: data packet generator, data packet analysis device, OAMAgent device, service analogue device and network topology simulator) comprises the following aspects with communicating by letter of central platform in embodiments of the present invention:
Management is mutual: each testing equipment is as SNMP(Simple Network Management Protocol, Simple Network Management Protocol) client, the main processing server of central platform is as the SNMP server, and the main processing server of central platform is managed each testing equipment by the snmp protocol sending controling instruction.
Data interaction: each testing equipment is submitted to the central platform data server to the bottom test data with the XML form by Transmission Control Protocol.Each testing equipment is simultaneously as HTTP(hypertext transport protocol, HTTP) server, the user passes through the application server of central platform as the control webpage on each testing equipment of HTTP client-access, realizes the management to test.
In the embodiment of the invention testing equipment be subjected to the mode of communicating by letter of measurement equipment (comprise system equipment and access device in the high speed sensor network, even can also comprise telegon and router in the low-speed sensor network) as follows:
Testing equipment possesses the sensor network protocol of standard, and testing equipment is to exist as the system equipment of standard or access device in tested network, carries out with being subjected to the sensor network protocol of communicating by letter namely by standard between the measurement equipment.
The operation principle of this test macro is described below in conjunction with the structure of the test macro of the embodiment of the invention.
Set tested network below and comprise 1 access device, a plurality of system equipments (the high speed sensor network structure shown in Fig. 1).Test by test flow chart shown in Figure 7:
1, test application: the user to
Central platformApplication server submit applications list, confirm test item.
2, test is prepared: obtain the user and be subjected to measurement equipment, be connected with each testing equipment in the test macro.Test should be carried out in the environment of spaciousness, and network arrangement is (can carry out structure according to the mode among Fig. 1 connects) in 50 m diameter ranges.
The network topology simulator is connected with a plurality of system equipments, is wanted the syndeton of tested network by the simulation of network topology simulator.
The data packet analysis device is powered to system equipment, monitors its energy consumption.Monitor simultaneously and analyze channel data frame.
The service analogue device is connected with system equipment, the input application data.
The OAMAgent device is connected with access device, transmits the network management instruction of main processing server.
Above-mentioned testing equipment and data packet generator are connected to central platform by lan network.
3, detection calibration: each testing equipment of test center's platform alignment (comprising data packet generator, data packet analysis device), carry out time synchronized, the configuration testing network parameter.
4, testing process: be subjected to measurement equipment according to the test item layout, the configuration testing network startup, the beginning test record is adjusted tested network and equipment state by the OAMAgent device in the test process; The application server analysis that test is finished by central platform provides test report.Different test items needs different flow processs, is example with the packet loss:
A) data generator is connected with wherein system equipment wireless network as standard device, inserts tested network;
B) data generator sends Frame to system equipment equably with maximum rate, and is counted the number of data frames Ns of transmission by data generator;
C) option is confirmed in the appointment of the Frame of transmission, and with data-analyzing machine monitor channel Frame, the statistics access device is confirmed the number of data frames Nr of reception, and calculating packet loss is (Ns-Nr)/Ns;
D) network connection of data generator disconnection and system equipment, after 5 minutes, repeating step is a) to c at interval) test 5 times;
E) average packet loss ratio of the each test of record, position, distance, frequency, signal strength signal intensity, data generator signal strength signal intensity;
F) respectively according to different frame lengths (comprising: 8,16,32,64,128 Byte) repeating step is a) to e);
G) respectively according to different transmission ranges (comprising: 50,75,100,125 m) repeating step is a) to f).
5, the real-time demonstration of test process: the application server of central platform is display network layout plan and topology diagram, energy and other parametric line figure, data transfer path etc. in real time, and is transferred to client computer and checks for the client.
6, test record: the test data that the data server storage test network of central platform sends, the test instruction of OAMAgent record.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than high speed sensor network test macro that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.