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.
vollcloud怎么样?vollcloud LLC创立于2020年,是一家以互联网基础业务服务为主的 技术型企业,运营全球数据中心业务。VoLLcloud LLC针对新老用户推出全场年付产品7折促销优惠,共30个,机会难得,所有产品支持3日内无条件退款,同时提供产品免费体验。目前所有产品中,“镇店之宝”产品性价比高,适用大部分用户基础应用,卖的也是最好,同时,在这里感谢新老用户的支持和信任,我们...
外贸主机哪家好?抗投诉VPS哪家好?无视DMCA。ParkinHost今年还没有搞过促销,这次parkinhost俄罗斯机房上新服务器,母机采用2个E5-2680v3处理器、128G内存、RAID10硬盘、2Gbps上行线路。具体到VPS全部200Mbps带宽,除了最便宜的套餐限制流量之外,其他的全部是无限流量VPS。ParkinHost,成立于 2013 年,印度主机商,隶属于 DiggDigi...
Budgetvm(原EZ机房),2005年成立的美国老品牌机房,主打美国4个机房(洛杉矶、芝加哥、达拉斯、迈阿密)和日本东京机房的独立服务器和VPS业务,而且不限制流量,默认提供免费的1800G DDoS防御服务,支持IPv6和IPMI,多种免费中文操作系统可供选择,独立服务器主打大硬盘,多硬盘,大内存,用户可以在后台自行安装系统等管理操作!内存可定制升级到1536G,多块硬盘随时加,14TBSA...
ubuntu10.04为你推荐
太空国家世界上有哪些国家有能力探索太空留学生认证留学生为什么要做学历认证?18comic.fun贴吧经常有人说A站B站,是什么意思啊?刘祚天还有DJ网么?冯媛甑冯媛甄 康熙来了月神谭求几个个性网名:同ip域名不同的几个ip怎样和同一个域名对应上www.gegeshe.com有什么好听的流行歌曲www.kanav001.com翻译为日文: 主人,请你收养我一天吧. 带上罗马音标会更好www杨丽晓博客杨丽晓哪一年出生的?
网站空间租用 北京vps 域名备案只选云聚达 新网域名解析 如何注册中文域名 怎么申请域名 科迈动态域名 重庆服务器托管 edis tier bash漏洞 好看的桌面背景大图 ubuntu更新源 发包服务器 gspeed 股票老左 绍兴电信 免费网页空间 双线机房 闪讯官网 更多