您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 基于无线网络的活动目标监控终端设计
,(,430073):。,MMS、SMSEmail。、DC。、。:;DC;:TP393.17:A:1672-7800(2009)12-0112-030:、、、,,,。JpegDCT,DCTDC,,DC:Jpeg,DC,DC,DC,DC,。,,MMS、SMSEmail。:,。、DC。1ATmega128,COMediaCMOSC328-7640,CMTGPRSDZ04,CZS-13A,A/D,Ramtron64KBFM25L512。:JPEG,DC,,GPRSMMS/SMS、。,,,。1243ISR:,,,,ISR,A/DISR,ISR。:MainTask(void)//beginInitSystem();CreateTask(taskofobjectdetection);//CreateTask(taskofinstantmonitoring);//CreateTask(taskofsendinginperiodicaltime);//while(1){if(receivesettingnumberorderfromauthorizeduser)StorPhoNum(uintAddress)||StorEmailAddr(uintAddress);//email;::(1983-),,,,;(1971-),,,,。SoftwareGuide8%12200912Vol.8No.12Dec.200912GetSemaphore(user'sSMS/RFmessage)//interpretorderanddistributetocorrespondingtask;if(receivecallfromauthorizeduser){MMSsend();//MMSemail}if(nodehasalarmdata){If(image)MMSsend();//MMSemailelseSMS();//SMS}}endMonitorInTimeTask(void)//beginfor(;;){GetSemaphore(instantmonitoringmessage){captureHRImage();//startAD();//A/D}}endSendOnTimeTask(void)//beginfor(;;){GetSemaphore(periodicalsendingmessage);{captureHRImage();//startAD();//A/D}}ObjDectTask(void)//beginfor(;;){if(detectionmode){captureLRImage();//if(alarm)captureHRImage();//}elsedelay(time);//}endTimer-ISR//ISR{If(alarmsignalA/Dtimearrives)startAD();//A/Dif((periodicalsendingmode)&&(sendingtimearrives))GiveSemaphore(periodicalsendingmessage);//;}}AlarmA/D-ISR//A/DISR{readADValue;//A/D;if(A/Dvalue>threshold)StoreAndNotify();/}SysFailDetect-ISR//ISR{AnalyzeFault();//;CheckLifeMark();//;if((thevalueofeachtask'sfaultcounter<itsthreshold)&&(lifemarkofeachtask=alive))FeedWatchdog();//}3DC,,,,,2,。DC:begin//step1:decodetheJPEGimageinitializethepacketID=0;while(notthelastpacketofJPEGimage){collecttheIDthJPEGpacketwithlow-resolution;decodetheIDthJPEGpackettogetDCcoefficients;ID++;}decodethelastJPEGpackettogetDCcoefficients;//step2:getdifferencesofDCtablefor(i=0;i<16;i++)for(j=0;j<20;j++)difDCArray[i][j]=abs(afterDCArray[i][j]-preDCArray[i][j]);//step3:processbythethreshold,:113··200920092009CalculatethethresholdbydividingdifDCArray[i][j];for(i=0;i<16;i++)for(j=0;j<20;j++)if(difDCArray[i][j]<threshold)difDCArray[i][j]=0;//step4:zonestatisticGetnNoZero0,nNoZero1,nNoZero2,nNoZero3andnNoZero4whichrespectivelyrepresentsthenumberofnonzerodifDCArray[i][j]ineachzonebyzonestatistic。//step5:detectbythecriteriaif(nNoZero0>0)return;nSum=Sum(nNoZero1,nNoZero2,nNoZero3,nNoZero4);nSum12=nNoZero1+nNoZero2;nSum23=nNoZero2+nNoZero3;nSum34=nNoZero3+nNoZero4;if((nSum12>=nSum*80%)||(nSum23>=nSum*80%)||(nSum34>=nSum*80%))capturehigh-resolutionimageandalarm;end160×128320DC,DC5(2)。120×4=80DC,2、3、4、55×12=60DC。,5DC,nNoZero1、nNoZero2、nNoZero3nNoZero4、nNoZero5。2DC:nNoZero1>0,;nSum12nSum23nSum34>nSum*δ>ε(δDC;ε,DC),1-22-33-4,。4,160×128。(1):α=10,β=80%,γ=0,δ=80%,ε=12。αDC;βDC;γDC;δ、ε。Threshold=9。。,,,。nSum23=25,nSum=32,nSum23>=nSum*80%>12,。α、β、γ、δ、ε5,,24100,1。:1/αβγδε100.800.812100/242160.800.812100/2423150.800.812100/2420100.800.712100/2413100.800.912100/2440,,,;,,。,。5GPRS。、,。,,、。Y/U/V,DC,。:[1]CHENCHAN,CHENKEZHONG.DesignofWirelessDataTrans-portSystemofaSingleChipMicrocomputer[J].ModernElectricTechnology,2008,(5).[2]POLASTREJ,SZEWCAYKR,MAINWARINTA,CULLERDANDANDERSONJ.Analysisofwirelesssensornetworksforhabitatmonitoring[J].WirelessSensorNetworks,2004(2).[3]XIAOSUIGUI,ZENGHUIFANG.Implementationofdistance-dataacquisitionsystem[J].ComputerEngineeringandDesign,2006,(10).[4]PAHLAVAN,KRISLMANIURTHY.[M].,.:,2002.[5],.[M].:,1988.(:)114··
本文标题:基于无线网络的活动目标监控终端设计
链接地址:https://www.777doc.com/doc-637265 .html