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.
使用此源码可以生成QQ自动跳转到浏览器的短链接,无视QQ报毒,任意网址均可生成。新版特色:全新界面,网站背景图采用Bing随机壁纸支持生成多种短链接兼容电脑和手机页面生成网址记录功能,域名黑名单功能网站后台可管理数据安装说明:由于此版本增加了记录和黑名单功能,所以用到了数据库。安装方法为修改config.php里面的数据库信息,导入install.sql到数据库。...
咖啡主机怎么样?咖啡主机是一家国人主机销售商,成立于2016年8月,之前云服务器网已经多次分享过他家的云服务器产品了,商家主要销售香港、洛杉矶等地的VPS产品,Cera机房 三网直连去程 回程CUVIP优化 本产品并非原生地区本土IP,线路方面都有CN2直连国内,机器比较稳定。咖啡主机目前推出美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月;香港弹性云服务器,香港HKBN CN...
Dynadot 是一家非常靠谱的域名注册商家,老唐也从来不会掩饰对其的喜爱,目前我个人大部分域名都在 Dynadot,还有一小部分在 NameCheap 和腾讯云。本文分享一下 Dynadot 最新域名优惠码,包括 .COM,.NET 等主流后缀的优惠码,以及一些新顶级后缀的优惠。对于域名优惠,NameCheap 的新后缀促销比较多,而 Dynadot 则是对于主流后缀的促销比较多,所以可以各取所...
ubuntu10.04为你推荐
neworiental我国最好的英语学校是在哪里?杨丽晓博客杨丽晓哪一年出生的?lcoc.topeagle solder stop mask top是什么层www.97yes.comwww.moyigui88.com是不是一个好网站呢www.dm8.cc有没有最新的日本动漫网站?彪言彪语( )言( )语的词语盗车飞侠侠盗飞车车子下水秘籍ename.com做自己的网站、在哪里买域名啊?国风商讯国风轮胎待遇怎么样苗惟妮绝对搭档全部演员表
enom webhostingpad 2014年感恩节 网站实时监控 免费ddos防火墙 台湾谷歌地址 全站静态化 有奖调查 泉州电信 双11秒杀 共享主机 如何用qq邮箱发邮件 美国凤凰城 免费的asp空间 linode支付宝 美国盐湖城 西安主机 atom处理器 lamp的音标 免费蓝钻 更多