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.

SugarHosts糖果主机商更换域名

昨天,遇到一个网友客户告知他的网站无法访问需要帮他检查到底是什么问题。这个同学的网站是我帮他搭建的,于是我先PING看到他的网站是不通的,开始以为是服务器是不是出现故障导致无法打开的。检查到他的服务器是有放在SugarHosts糖果主机商中,于是我登录他的糖果主机后台看到服务器是正常运行的。但是,我看到面板中的IP地址居然是和他网站解析的IP地址不同。看来官方是有更换域名。于是我就问 客服到底是什...

Gcorelabs:美国GPU服务器,8路RTX2080Ti;2*Silver-4214/256G内存/1T SSD,1815欧/月

gcorelabs怎么样?gcorelabs是创建于2011年的俄罗斯一家IDC服务商,Gcorelabs提供优质的托管服务和VPS主机服务,Gcorelabs有一支强大的技术队伍,对主机的性能和稳定性要求非常高。Gcorelabs在 2017年收购了SkyparkCDN并提供全球CDN服务,目标是进入全球前五的网络服务商。G-Core Labs总部位于卢森堡,在莫斯科,明斯克和彼尔姆设有办事处。...

VoLLcloud:超便宜香港CMI大带宽vps-三网CMI直连-年付四免服务-低至4刀/月-奈飞

vollcloud LLC创立于2020年,是一家以互联网基础业务服务为主的 技术型企业,运营全球数据中心业务。致力于全球服务器租用、托管及云计算、DDOS安 全防护、数据实时存储、 高防服务器加速、域名、智能高防服务器、网络安全服务解决方案等领域的智 能化、规范化的体验服务。所有购买年付产品免费更换香港原生IP(支持解锁奈飞),商家承诺,支持3天内无条件退款(原路退回)!点击进入:vollclo...

ubuntu10.04为你推荐
微信回应封杀钉钉微信违规操作被封了,西部妈妈网九芽妈妈网加盟费多少22zizi.comwww 地址 didi22怎么打不开了,还有好看的吗>comwww.522av.com在白虎网站bhwz.com看电影要安装什么播放器?789se.comhttp://gv789.com/index.php这个网站可信吗?是真的还是假的!百度指数词百度指数是指,词不管通过什么样的搜索引擎进行搜索,都会被算成百度指数吗?抓站工具大家在家用什么工具练站?怎么固定?面壁思过?在医院是站站立架彪言彪语()言() 语采采风荷芰荷迭映蔚的意思蚕食嫩妻求都市超宠文、温馨、轻松、无虐、无小三
东莞电信局 新世界机房 美国主机评测 enzu googleapps 日本空间 日本bb瘦 怎么测试下载速度 中国网通测速 卡巴斯基破解版 免费邮件服务器 服务器是干什么用的 qq金券 宿迁服务器 北京主机托管 上海联通 时间同步服务器 德国代理ip paypal登陆 bwg 更多