| In recent years, with rapid development of various technologies, thewireless sensor network (WSN) which integrates the sensor technology,MEMS technology, distributed information processing technology andwirelesscommunicationtechnologywasemergedasthetimesrequire.Compared with the traditional TCP/IP network or wireless network, thecomponents of WSN are smaller in size, lower in cost and easier to deploy;the power consumption of WSN is minimum; WSN has the self-organizingnetwork architecture and routing algorithm; the amount of data acquisition islarger. WSN has been applied in many areas, such as military, guard ofhazardous, environmental monitoring, health care, the intelligent home,commerce, industry and so on, it can complete the tasks which traditionalsystems are unable to do. Therefore, with ceaseless development of thetechnology of wireless sensor network, more and more application systemswhich basic on wireless sensor network and wireless sensor technology weregenerated.After the deep study of the characteristic of the data of WSN and thespecial requirements of data processing in WSN and the existing applicationsystem and solutions of WSN, this paper designs and implements a commongraphic control which oriented to the data of wireless sensor networks usingC#. The graphic control of sensor data can be used in the monitoring moduleoftheapplicationsystemofWSNasanimportantconponent.Because the traditional graphic controls are mostly used to display staticdata, rarely dynamic display real-time data, and basically only for theobservation data without analytical data functionality, so it difficult for themto direct apply in the application systems of WSN. Aim at the notable real-time feature, the graphic control was designed for displaying sensor datain this paper. Firstly, this paper design achieve the function of showing thereal-time sensor data, and then achieve a series of intelligent features toobserve and analyze the graphics displayed on the graphic control, finallyachievesomeofthehumanconfigurationforthegraphiccontrol andmakeitachieveabetterandmorecommonscalability.In the design, the graphic control includes master display area, menusettings column (properties settings, functional selection) two modules. Thegraphic display area is mainly used for displaying graphics, menu settingscolumn are mainlyused for a number of intelligent monitoring operation andsomehumansettings.Thegraphiccontrolhasfunctionsasfollows:The master display area can display the real-time or time-sharing sensordataofWSNintheformofcurve,barcharts,andothergraphics.The master display area achieve mamy functions such as graphic zoom,automatic rolling, the data value show, multi-graphics display at thesametime and so on. It allows users to conveniently and efficientlymonitor graphics and analysis of sensor data, so as to better monitor theentireWSNoperations.The menu settings column has mamy choice, such as the choice of dataanalysis tools, save graphics, print graphics, and other commonly usedfunctions of choice. It was better analysis and monitoringthe graphics ofsensordataraisealotoffacilities.The menu settings column also set up a data source settings, controlslayout settings in the master display area, control properties settings,through the revision of these settings can make the graphic control ofwithstrongerscalability. In order to achieve the functions above, the garphics control will bedivided into two modules: Master display area, Menu settings column. Theconcretedesighandachievementofthemasfollows:(1) Master display area module: The master display area was built on amaster panel, it is divided into graphic area and mark area. Graphic area is arectangular region which has coordinate axis and calibration. Mark area isusedtodisplaysome informationrelateto graphics suchas what motedataisdisplaying in the graphic control. In order to draw the coordinate axis,calibration, grid of the master display area and the text in the mark area, thispaper design six classes to finish these work. These six classes areMasterPane, Axis, Tic, Grid, CurveItem and TextObj. By setting sensor datapoints to the graphic control, we can see the corresponding graphics of thepoints in the master display area. In order to better displaygraphics of sensordata and in accordance with the graphics to analyze sensor data, the paperdesignalsoachievedgraphiczoom,graphicsautomaticrolling,whethershowthe data value, graphic zoom recover, multi-graphics display at the sametimeand graphics switch, and other intelligent functions. Among them, theachievement of graphic zoom is according to the principles oftwo-dimensional transformation. The achievement of graphics automaticrollingisbysettingthetermsofwhethercross-borderofthegraphictodesidewhether change the scope of axis coordinates. The achievement of graphiczoom recover is byrecoveringthe graphic state value which be pushed in thestack after each graphic zoom. The graphics switch by change the layout ofthemasterdisplayareatoachieve.(2) Menu settings column module: The Menu settings column include thesettings, views, tools, help, demo and other submenus, which is the mostcommonly used tools and settings submenu. The submenu of the data sourcesettings can choose the type of data source storage (ie, what database categoryused bythe corresponding application system of the current graphiccontrol). Control layout settings can be set the layout of multi-graphicsdisplay at the sametime.It change the layout of the master display area bysettingthemorethanthecurrentmaindisplaymapoutwiththedistributionofits TableLayoutPanel control bysetting the rowcount and columncount of theTableLayoutPanel control. Control properties settings can be set a series ofgraphic control properties, so as to achieve better observe and analyzegraphics. It through bind an object of graphical properties to a PropertyGridcontrol to achieve. Tools submenu can choose save graphics, copy graphics,screen printing and other function options, they through transfer variouscommonlydialogboxtoachieve.From above we can see that the graphic control which oriented to WSNcan be used in the monitoring module of all kinds of wireless sensornetworks application systems such as enterprises'safety production,monitoring and early warning alarm, and urban public utilities managementsuch as remote meter reading and monitoring and so on. As the graphiccontrol has manystrongpoints suchas steadyperformance, well expansibilityand so on, it can as a rapid develop control use in WSN application systems.And with rapid expansion of the applications of WSN, the application of thegraphiccontrolofsensordatawillhaveabroadprospect!... |