基于Android智能手机的车辆远程监控系统的设计与开发重庆大学硕士学位论文(学术学位)学生姓名:袁宁指导教师:杨亚联教授专业:车辆工程学科门类:工学重庆大学机械工程学院二O一四年五月ResearchoftheRemoteMonitoringSystemoftheVehicleBasedonAndriodSmartphoneAThesisSubmittedtoChongqingUniversityinPartialFulfillmentoftheRequirementfortheMaster’sDegreeofEngineeringByYuanNingSupervisedbyProf.YangYalianSpecialty:VehicleEngineeringCollegeofMechanicalEngineeringofChongqingUniversity,ChongqingChina.May.2014中文摘要摘要随着我国经济的飞速发展,汽车数量也逐年增加,随之出现的交通问题也日益严重。车辆远程监控系统是智能交通系统(ITS)的核心部分之一,可以对车辆的出行进行规划,提高道路的利用率,改善交通环境;可以对车辆进行实时监控,及时发现车辆故障,尽可能避免交通事故的发生,增强行车安全等。本课题是在重庆产学研合作创新项目“重庆恒通新能源客车远程监控系统开发”和国家重点实验室专向经费项目的支持下对车辆远程监控系统进行了深入的研究。首先,了解GPS车辆监控导航系统在国内外的发展状况,通过分析其总体构架、、软硬件设备、工作原理以及功能模块,挖掘现有车辆监控导航系统中存在的不足,从而提出了一种以手机作为车载数采终端的车辆远程监控系统的方案,该方案基于Android手机操作系统,利用3G网络实现数据通讯,然后监控中心服务器将上传的数据进行分析、处理,实现对目标车辆的实时监控、历史轨迹回放、车辆报警等功能。第二,深入剖析车辆远程监控系统所需的关键技术,即:Android系统、地理信息系统(GIS)、全球定位系统(GPRS)、3G无线通信技术等。根据这些关键技术的工作原理设计出本系统的总体架构,并设计了监控系统各个模块要实现的功能。第三,基于提出的系统总体方案,设计并建立了系统的软硬件架构。采用Android智能手机、ELM327、车辆OBD系统的集成为一个车载终端采集车辆动态数据,从而实现了用专用设备作为数据采集终端的弊端。并采用B/S架构搭建监控中心服务器,完成对上传数据的接收和解析,同时,选用J2EE作为软件开发平台,采用MVC模式进行整个系统的软件开发,实现了整个系统的模块化,便于系统的维护升级。第四,选用SQLServer2005进行系统中心数据库的开发,根据系统的数据需要,完成了系统中心数据库的概念模型设计、逻辑设计和数据库的物理实现,实现了系统后台数据的存取,使整个系统的数据管理更加信息化和科学化。第五,结合车辆远程监控系统的功能需求编程实现各个功能模块,根据人机交互的特性开发系统的界面,方便用户对本系统的操作。最后,对本系统进行了实车联调测试,完成系统软硬件的配置,实现车载数据的无线传输和实时采集、监控中心的数据解析以及行车轨迹显示等功能。关键词:Android智能手机,OBD-Ⅱ,中心数据库,B/S架构,远程监控I重庆大学硕士学位论文II英文摘要ABSTRACTAstherapidprogressofeconomyinourcountry,thenumberofcarisincreasingyearbyyear.Astheresult,thetrafficproblembecomesincreasinglyserious.Theremotemonitoringsystemofthevehicleisacorepartofintelligenttransportationsystem(ITS),whichcanbeusedtoplanthevehicletravel,toimprovetherateofroadutilizationandthetrafficenvironment.Also,itcanbeusedtomonitorthevehicleinrealtime,todetectthebreak-downofvehicletimely,toavoidtrafficaccidentsasfaraspossible,andtoenhanceroadsafety.SobasedontheChongqingcooperativeinnovationprojectthedevelopmentofremotemonitoringsystemforHengtong’snewenergybusandthespecialfundsofstatekeylaboratoriesproject,theremotemonitoringsystemofthevehicleisconductedin-depthresearchinthepaper.Firstly,thepaperintroducestheapplicationandprogresssituationofGPSvehiclemonitoringandnavigationsystemathomeandonabroad,andanalysestheoverallstructureofthesesystemstounderstandthefunctionandworksofeachpart.Atthesametime,thepaperalsoanalysestheexistingproblemofvehiclemonitoringandnavigationsystem.Soanewtheremotemonitoringsystemofthevehicleisproposedwhichusesamobilephoneasvehicledataacquisitionterminal.ItbasesontheAndroidmobilephoneandusesthe3rd-generation(3G)wirelesscommunicationsfordatacommunications.Afterthat,thedatauploadedbytheAndroidmobilephoneisanalyzedandprocessedbymonitoringcentralserver,inordertorealizethefunctionofreal-timemonitoring、historicaltrackplayback、vehiclealarm,andsoon.Secondly,thekeytechnologieswhichtheremotemonitoringsystemofthevehiclerequiresareintroducedinthepaper.TheyareAndroidsystem,GeographicInformationSystem(GPS),3rd-generation(3G)System(GIS),GlobalPositioningwirelesscommunicationstechnology,andsoon.Accordingtotheworkingprincipleofthesekeytechnologies,theoverallarchitectureofthesystemisdesigned,andmeanwhile,thefunctionofeachmoduleisprovided.Thirdly,basedontheoverallarchitectureofthesystem,thehardwareandsoftwareofthesystemaredesigned.ThedesignofvehicledataacquisitionterminaliscompletedwhichbasesonAndroidSmartphone,ELM327,andtheOn-BoardDiagnostics(OBD)systemofthevehicle.Browse/Server(B/S)structureisusedtobuildthemonitoringcenterserver.Meanwhile,J2EEischoseasthesoftwaredevelopmentplatform.AndtheIII重庆大学硕士学位论文softwaredevelopmentofthesystemiscompletedbyusingtheMVCpattern.Fourthly,SQLServer2005isusedtodevelopthecenterdatabaseofthesystem.Accordingtothedatawhichthesystemneeds,theconceptualdesign,thelogicdesignandthephysicalimplementationofthecenterdatabasehavebeencompleted.Thedatamanagementofthewholesystembecomesinformatizationandscientization.Fifthly,combiningthefunctionalrequirementsoftheremotemonitoringsystemofthevehicle,thefunctionofeachmoduleisachievedbyprogramming.Theinterfaceofthesystemisdevelopedviathecharacteristicsofhuman-computer,inorderthatusersareconvenienttooperateit.Finally,wecarriedoutrealvehicletestofthesystem,andcompletedthehardwareandsoftwareconfigurationofthesystem.Then,thesystemrealizedthefunctionofreal-timeacquisitionofvehicledataandwirelesstransmission,dataanalysis,trackdisplay,andsoon.Keywords:AndroidSmartphone,OBD-Ⅱ,centraldatabase,B/Sarchitecture,remotemonitoringIV目录目录中文摘要.........................................................................................................................................I英文摘要......................................................................................................................................III1绪论.........................................................................................................................................11.1论文的目的和意义.........................................................................................................11.2国内外发