codesubuntu10.04

ubuntu10.04  时间:2021-03-29  阅读:()
DesignofCentralizedRemote-readingMeterSystemandIntelligentNetworkWaterMeterChuanfengLiSchoolofComputerandInformationEngineeringLuoyangInstituteofScienceandTechnologyLuoyang,Chinalichuanfeng@sina.
comChenLiSchoolofComputerandInformationEngineeringLuoyangInstituteofScienceandTechnologyLuoyang,Chinaleilacoffee@163.
comWenguangDiaoSchoolofComputerandInformationEngineeringLuoyangInstituteofScienceandTechnologyLuoyang,Chinalitdwg@gmail.
comShuranZhangSchoolofComputerandInformationEngineeringLuoyangInstituteofScienceandTechnologyLuoyang,Chinazhangsr9@163.
comAbstract—Thispaperdescribesadesigntodevelopacentralizedremote-readingmetersystemwhichusedtoovercomeshortcomingsofthetraditionalmanpower-basedreadingmeter.
Thesystemisdesignedfromthehostcomputer,networkmeterandconcentratorthreeparts.
Concentratorisconnectedtothehostcomputer,soremotemetercouldberead,monitoredandmanagedbythehostcomputer.
Thehostcomputerconsistsofclient,server,dataserviceanddatabase,developedbyC#languageandSQLServer.
ThenetworkwatermeterisbasedonSTC89C52RCmicrocontrollersendingdatatotheconcentratorthrough485bus.
TheconcentratortakingARM9andLinuxasthecore,readmeterdataby485bus,andsenddatatoserverthroughEthernet.
Thetestresultsshowthattheremote-readingmetersystemisaccurate,simple,real-time,secure,reliable,andeasytoapplication.
Keywords-remotesystem;networkwatermeter;concentrator;ARM9;LinuxI.
INTRODUCTIONAtpresent,readingdataofresidents'ammeter,watermeterandgasmeterisachievedbymanpower.
Readingmeterpeopleshouldtaketimetocheckmetersfromdoortodooreverymonth,whichconsumesalotofmanpower,materialresources,time-consumingandlowaccurate.
Tosolvethis,thecomputer-basedreadingmetersystemisusedtoreplacemanpower-basedsystem.
Remotereadingmetersystemusingintelligentinformationmanagementcanbeputintouseinresidential,apartmentintelligentmanagement.
Studyonautomaticreadingmetertechnologyabroadmaybestartedinthe1970s,afterdecadesofdevelopment,thetechnologyisrelativelymature,andhasbeenwidelyused.
InChina,thedevelopmentofremoteautomaticreadingmetersystemstartedlaterthanabroad,thetraditionalmanualreadingmetersystemisstillwidelyused,whichcreateabigpotentialmarketespeciallyremoteautomaticreadingmetertechnologydevelopingrapidly,soautomaticreadingmetertechnologywillgraduallyreplacethetraditionalreadingmeter[1-4].
Thesystemconsistsofsoftwareandhardwarecomponents,usestechnologiessuchasembeddedtechnology,networkcommunication,multitaskandsoon.
Thesystemconsistsofthehostcomputer,concentratorandnetworkmeter.
HostcomputerisC/Sstructure,usingmulti-threading,WCFandothertechnologies,isresponsiblefordataanalysis,watermonitoringandmanagement.
Concentratorusingembeddedtechnologyisresponsiblefordatareceivingandforwarding[5].
NetworkmeterusingSCMtechnologyisresponsibleforwaterflowdatareadingandforwarding.
Thesystemismainlyusedforresidential,dormitoryandotheroccasion'sintelligentmanagement,sopropertystaffgetsareal-time[6,7].
ChapterIIismainlytoanalyzethesystemanddrawageneralframeworkmap,andchapterIIIismainlytoanalyzethespecificdesignofhostcomputer,setforththespecificfunction,thedatadictionary,storedproceduresandsoon.
ChapterIVanalyzestheparticulardesignoftheconcentratoranddescribesrelatedtechnologiessuchasTCP,multithreading,andgivestheschematicdiagramoftheconcentratorandtheassociatedflowchart.
ChapterVismainlyanalyzesspecificnetworkmeterdesign,summarizesthespecificmethodsofsystemtesting,andtestresults.
Finally,givesconclusionsandfuturedirectionsforimprovement.
II.
SYSTEMSTRUCTUREDESIGNThesystemconsistsofahostcomputer,concentrators,andnetworkmetersthreemajorcomponents.
MeterusingSTC89C52microcontrollerreadstheresident'sactualwaterconsumptionatregulartime,fulfillsdatacollection,storage,transmissionandothertasks.
ConcentratorusingS3C2440microprocessor,whichhasaclockspeedupto400MHz,isresponsiblefordataforwardingandstorage.
HostcomputerusingC/Sstructuredesign,consistsofserver,client,dataserviceanddatabase.
Whenreadingmeterdataisrequired,hostcomputersendcommandstotheconcentratorviaEthernet,theconcentratorwillanalyzedataandsendcodestometersconnectedthrough485bus,whichcheckreceivedcodeswithinsidecodes,sendwaterInternationalConferenceonMechatronics,Electronic,IndustrialandControlEngineering(MEIC2014)2014.
Theauthors-PublishedbyAtlantisPressusagedatatoconcentratorthrough485busifcodesreceivedisconsistentwithinsidecodes[8].
GeneralframeworkisshowninFig.
1.
RS-485BusRS-485BusEthernetConcentratorPCFigure1.
SystemprincipalbodystructureIII.
DESIGNOFTHEHOSTCOMPUTERA.
SystemStructureHostcomputermanagementsystemconsistsofserversoftware,clientsidesoftware,dataserviceanddatabase[9],systemdataflowisshowninFig.
2.
DatabaseDataserviceServerReturndataCallserviceClientConcentratorNetworkmeterSevercommandTransmittotheserverTransmittometerWatermetercodeWaterconsumptionFigure2.
SystemdataflowchartB.
DesignofDatabaseThesystemneedsstoreclientdata,userdata,waterconsumingdataandreadingtimeinformation,sodatabasehascorrespondingtableforeach.
Storeproceduresareusedtofulfilloperationsontables.
TABLEI.
T_ROLETABLETABLETYPESTYLESFieldnameDatatypeLengthAllownullPrimarykeyNotesUsernamevarchar15NYPasswordvarchar15NTABLEII.
T_USERTABLEFieldnameDatatypeLengthAllownullPrimarykeyNotesUsercodevarchar30NYNamevarchar20NSexchar2NIDnumbervarchar18NPhonevarchar15NAddressvarchar50NWatermetercodingvarchar20YTABLEIII.
T_WATERTABLEFieldnameDatatypeLengthAllownullPrimarykeyNotesNumbernchar15NYWatermetercodingnchar15YWaterconsumptionfloat0YTimedatetime0YTABLEIV.
T_READDATATIMETABLEFieldnameDatatypeLengthAllownullPrimarykeyNotesNumbervarchar50NYStatetinyint0YC.
DesignoftheServerSoftwareThefunctionofserverismainlykeepingconnectwithconcentrator,queryingtableT_readingTimeandcheckingstatusvalueinthetable,ifstatusvalueequals1,meaningmeterdatashouldbeuploadtoserver;afterreceivingdata,serverdecodesdataandupdatedatabasedata,displaysitatuserinterface.
(1)DesignoftheServerSoftwareServersoftwaredesignprocessisshowninFig.
3.
(2)DetectionmoduleDetectionmoduleprocessisshowninFig.
4.
BeginOpenlinkButtonpressEstablishTCPServerEstablishReadTimerWhetherthereisaconnectionEstablishClientFuncNYNYFigure3.
TheserversoftdesignprocessBeginDatareadingtimeThreadhangupIfitisthelastcodeRecordthecurrentpasswordSendtoallconcentratortogetdataNYNYFigure4.
ThedetectionmoduleflowchartD.
DesignoftheClientClientsideconsistsofdatastatistics,customerinformationmanagement,usermanagementandsystemsettings.
Datastatisticsisachievedbasedoncustomernameandtimespan,customerinformationmodulecanaddcustomers,deletecustomersandmodifycustomersinformation,administratorscanchangethepasswordthroughusermanagement.
ClientSidefunctionalblockdiagramisshowninFig.
5.
ClientUserloginStatisticaldataCustomerinformationUsermanagementSystemsettingsFigure5.
TheclientfunctionblockdiagramFigure6.
DatastatisticsUserscanqueryallcustomers'waterusageinformation,thenonlythetotalstatisticalquery,whencometoindividualcustomer,theusageinformationcanbequeriedtotallyorpartially,UserinterfaceisshowninFig.
6.
IV.
CONCENTRATORDESIGNA.
TheBlockDiagramofConcentratorSystemConcentratorbasedonARM9andLinuxoperationsystem[10,11],consistsofEthernet,serialcommunications,resetcircuit,powersupplymoduleandsoon.
ConcentratorsystemblockdiagramshowninFig.
7.
S3C2440PowermoduleClockcircuitResetcircuitEthernet485communicationFigure7.
TheblockdiagramofconcentratorSystemB.
SystemConcentratorSoftwareDesignInsoftwaredesign,Linuxmultithreading,Socketcommunication,serialcommunication,filemanipulationtechniquesareinvolved.
Thetotaloffoursub-systemsofthreads,andtheirfunctionistoreaddata,writedatavianetwork,readdataandwritedataviaserialports.
Whentheprogramstarts,itreadsSr.
llzfile,thefilewillbeencodedintoasinglelinklistinordertocommunicatetothemeterlater.
InUbuntu10.
04generatesanARMexecutableprogrambyarm-linux-gcc,thentheprogramwillbeportedtoARM,addedtothestartupitems,theprogramcanautomaticallystartatboottime.
ProgramflowchartisshowninFig.
8.
BeginReadfileConnecttoserverOpentheserialportCreates4threadsSerialreadthreadSerialsendthreadNetsendthreadNetreadthreadWaitforthe4threadendsClose(serialfd)Close(socketfd)DestroythelinkedlistEndFigure8.
TheconcentratordesignprocessV.
THENETWORKWATERMETERDESIGNNetworkWaterMeterisbasedonSCM,themainfunctionsisreadingthepulseviaSCM,thenmakeanalysisandcalculation,convertingintowaterdosage,showingitinthe12864LCD,andstoringitintheAT24C16,whenthedatauploadcommandisreceived,uploadingdataby485bustoconcentratorwhichthenuploadittohostcomputerviaEthernet.
MeterblockdiagramshowninFig.
9.
STC89C52PowermoduleClockcircuitResetcircuitLCDDatastorage485communicationFigure9.
ThewatermeterblockdiagramA.
WaterFlowAcquisitionModuleInthewatermeteracquisitionmodule,thewaterflowsensoristhecore.
Waterflowsensorismainlymadeofaplasticbody,theflowoftherotorassemblyandtheHallsensor.
UsingUSN-HS21TBHallflowsensorinthiswatermeterandthesensoriscalculatedasEq.
1.
F(Hz)=8.
1*flowrate(Q)-6(l/min)Q=L/Min(1)Figure10.
Thesquare-wavepulseThewaterflowsensormountedinletsidetodetectwaterflow,whentheflowofwaterthroughtherotorassembly,magneticrotorandspeedchangesastheflowratechanges,theHallsensoroutputcorrespondingsquarewavepulsesignalbacktothecontroller,whichdeterminesthedosageofthewaterflow,calculatetheactualwaterconsumption.
SquarewavepulsesignalisshowninFig.
10.
B.
SoftwareDesignThedesignofwatermetersoftwareadoptsthemodularprogramming,whichisshowninFig.
14.
BeginLCDinitializationIICinitializationUARTinitializationIftheconnectionconcentratorWhile(1)ReadpulsedataLCDIftheserialportreceivedataSendingdatatotheconcentratorbythe485busNYNYFigure14.
TheflowchartofwatermetersoftwaredesignC.
DesignTestingAnalysisofSystemWhentheservertaskstarting,itwillsetuptaskexecutioncycle,thatcycleofreadingthemeterdataandtheserverreadsthedatabase.
Ifitneedstoreadthewatermeterdata,thensendscommandstoconnectconcentrators.
AfterconcentratorsreceivesGETDATAcommands,sendsreadingmetercodingtoeachmeterinsinglelinkedlist,ifconsistentwithitsowncode,metersendmeterdatatotheconcentratorthrough485bus,concentratorthensenddatatotheserver.
Throughoutthetest,themeterdataissenttoserverbetween0-9.
D.
TestingResults(1)Thewatermeterreceivedcodefromtheconcentrator.
(2)ConcentratorreceivestheGETDATAcommand,andsendscodetowatermeter,receivewatermeterdata.
(3)Theserverreadthedatabase,sendsGETDATAtotheconcentrator,receivingareadisplaysthereceiveddata,andupdatesthedatabasethroughanalysis.
(4)Thepartoftheclientreadsthedatabaseandobservestheupdatedresultsofwateryield.
VI.
CONCLUSIONThispaperdescribesadesigntodeveloparemotecentralizedreadingmetersystemwhichcombinedsoftwareandhardwareusing485busandEthernetasdatatransmitmedia.
ServercansendreadcommandtoeachconcentratorviaEthernet,concentratorthensendcommandtoeachwatermeter,watermetersentmeterdatatotheconcentratorthrough485busafterreceivingthecommand,andthentheconcentratoruploaddataviaEthernettotheserver.
Clientsidecanviewandcontrolconsumers'watermeters.
Thevariousfunctionsofthesystembasicallycompleted,buttherearesomeneedsfurtherimprovement.
Concentratorprogramisaterminalprogram,thenextsteptocompletetheinterfacedesignandrealizeusingotherdatabaseasdatastore.
Eveniftheserverfailsoristurnedoff,thedatacanbesavedintime.
Itwillreadsthedatainconcentratordatabasewhentheserveristurnedon.
ACKNOWLEDGMENTThisworkwassupportedinpartbythescienceandtechnologyresearchprojectofeducationdepartmentofHenanProvince(14A510009),thefundingschemeforyouthteacherofHenanProvince(2012GGJS-191),thescienceandtechnologykeyprojectofHenanProvince(142102210568,142102210063).
REFERENCES[1]Z.
J.
Zhang,Y.
Li,andW.
Q.
Yuan,"Metercharacterrecognitionmethodbasedongraytemplatematching,"Proceedingsofthe29thChineseControlConference,Beijing,China,2010.
[2]C.
S.
Fredrick1,"Smartwatermeteringnetworksanintelligentinvestment,"WaterandWastewaterInternational,vol.
26,pp.
16-19,2011.
[3]M.
M.
Al-Rawahi,Z.
Nabeel,andM.
Ahmed,"Amultisensoryintelligentdeviceforreal-timemultiphaseflowmeteringinoilfields,"IEEETransactionsonInstrumentationandMeasurement,vol.
59,pp.
1507-1519,2010.
[4]R.
Gomes,A.
S.
Marques,andJ.
Sousa,"DecisionsupportsystemtodividealargenetworkintosuitableDistrictMeteredAreas,"WaterScienceandTechnology,vol.
65,pp.
1667-1675,2012.
[5]J.
J.
Li,J.
J.
Cui,andL.
L.
Jiang,"Designandimplementationofdistributedremote-readingwatermetermonitoringsystembasedonSaaS,".
LectureNotesinElectricalEngineering,vol.
107,pp.
413-420,2012.
[6]N.
Wu,Y.
J.
Guo,Y.
Q.
Wei,"DesignoftheremotewirelessmeterreadingsystembasedonGPRS,"Telkomnika-IndonesianJournalofElectricalEngineering,vol.
11,pp.
6358-6366,2013.
[7]S.
R.
Mounce,J.
B.
Boxall,andJ.
Machell,"Developmentandverificationofanonlineartificialintelligencesystemfordetectionofburstsandotherabnormalflows,"JournalofWaterResourcesPlanningandManagement,vol.
136,pp.
309-318,2011.
[8]C.
Wang,"Thedesignofthedataacquisitionmodeofwirelessintelligentremotewatermetersysteminthehigh-risebuilding,"2011InternationalConferenceonControl,AutomationandSystemsEngineering,Singapore,2011.
[9]J.
M.
Li,ParadigmDevelopmentofSQLServer.
TsinghuaUniversityPress,2010.
[10]L.
G.
Zhou,TheARMEmbeddedFoundationCourse.
Beijing,Beijinguniversityofaeronauticsandastronauticspress,2008.
[11]M.
Young,TheTechnicalWriter'sHandbook.
MillValley,CA:UniversityScience,1989.

wordpress外贸集团企业主题 wordpress高级推广外贸主题

wordpress外贸集团企业主题,wordpress通用跨屏外贸企业响应式布局设计,内置更完善的外贸企业网站优化推广功能,完善的企业产品营销展示 + 高效后台自定义设置。wordpress高级推广外贸主题,采用标准的HTML5+CSS3语言开发,兼容当下的各种主流浏览器,根据用户行为以及设备环境(系统平台、屏幕尺寸、屏幕定向等)进行自适应显示; 完美实现一套主题程序支持全部终端设备,保证网站在各...

AkkoCloud(60元/月 ),英国伦敦CN2 1核 768 MB 内存 10 GB SSD 硬盘 600GB 流量 英国伦敦CN2 1核  1.5G  300Mbps

官方网站:https://www.akkocloud.com/AkkoCloud新品英国伦敦CN2 GIA已上线三网回程CN2 GIA 国内速度优秀.电信去程CN2 GIALooking Glass:http://lonlg.akkocloud.com/Speedtest:http://lonlg.akkocloud.com/speedtest/新品上线刚好碰上国庆节 特此放上国庆专属九折循环优惠...

易探云美国云服务器评测,主机低至33元/月,336元/年

美国服务器哪家平台好?美国服务器无需备案,即开即用,上线快。美国服务器多数带防御,且有时候项目运营的时候,防御能力是用户考虑的重点,特别是网站容易受到攻击的行业。现在有那么多美国一年服务器,哪家的美国云服务器好呢?美国服务器用哪家好?这里推荐易探云,有美国BGP、美国CN2、美国高防、美国GIA等云服务器,线路优化的不错。易探云刚好就是做香港及美国云服务器的主要商家之一,我们来看一下易探云美国云服...

ubuntu10.04为你推荐
rawtoolsTF卡被写保护了怎么办?m.2828dy.combabady为啥打不开了,大家帮我提供几个看电影的网址789se.comhttp://gv789.com/index.php这个网站可信吗?是真的还是假的!avtt4.comCOM1/COM3/COM4是什么意思??/www.bbb551.com100bbb网站怎样上不去了广告法中华人民共和国广告法中,有哪些广告不得发布?sodu.tw给个看免费小说的网站www.mfav.org邪恶动态图587期 www.zqzj.orgdpscycle国服魔兽WLK,有什么适合死亡骑士的插件?月风随笔赏月之后的情感?语文随笔200-400字
泛域名绑定 dns是什么 dreamhost bluehost 海外服务器 isatap 主机屋免费空间 免费名片模板 搜狗抢票助手 嘟牛 hostker adroit 国外代理服务器软件 免费活动 linux服务器维护 上海联通宽带测速 smtp服务器地址 中国电信测速网站 德讯 申请免费空间 更多