2011第七届“博创杯”全国大学生嵌入式设计大赛作品设计报告智能家居系统SmartHomeSystem设计报告队伍编号:XB-10-04参赛学校:宝鸡文理学院作者:芦少娜韩菲张鹏程指导教师:张光南赵朋飞组别:本科组□高职组□恩智浦单项(单独使用恩智浦平台)参选奖项:Qt□IAR□WINDRIVERNXP(使用博创平台)II摘要智能家居系统为人们提供更加舒适,安全,便捷的居住环境。国内市场上出现了较多的智能化系统和产品,但系统间更多的是相互独立、集成度比较低、没有统一控制平台,而且价格昂贵,普通用户消费不起。本系统综合分析市场上现有的智能家居控制系统的优缺点,指出开发一款灵活,便捷,成本低廉,界面友好,易操作维护,适合大众消费的智能家居系统解决方案。运用嵌入式系统开发智能家居系统终端,运用无线通信技术进行操作。依托北京博创公司的UP-TECHPXA270开发板,为硬件载体,综合应用GSM无线通信,嵌入式Linux,QT开发,单片机,传感器等技术,以程序通用性和易用性为方向,实现现代智能家居系统。本系统以Linux系统开发平台为基础,以UP-TECHPXA270开发板为载体,实现智能家居系统终端,该系统整体由三大部分组成,分别为智能控制系统、安防系统、影音娱乐系统。GSM模块通过串口线与UP-TECHPXA270开发板相连接,建立起用户与智能家居系统之间通信的桥梁,用户可通过手机远程控制和监听三大子系统,既可以发送短信控制家里各种电器设备,也可以从GSM模块返回过来的信息监视各种电器的运行状态,从而达到实时了解家电运行状况的目的,本系统开发时间、功能、软件升级和移植复用、价格等方面适合大众消费和使用,具有较高的性价比,其良好的性能和友好的人机交互界面符合现代智能家居系统发展的趋势,本系统的应用无疑可以提升企业的知名度,有利于打造企业的品牌优势,因此可相信本系统具有良好的发展前景。本设计报告介绍了智能家居系统的研究背景,研究工作及实现目标。分别以传感器为单位阐述系统的组成,然后针对Linux操作系统的选择、搭建及QT的安装做出了详细介绍,接着是本系统的程序设计,包括界面设计、程序实现、测试及boa服务器的移植。最后涉及到根文件系统的制作,内核裁剪,文件系统制作及对论文概括性总结和结果分析,以及对后续工作的展望。关键词:Linux;QT;智能家居系统;PXA270;GSM;传感器AbstractSmartHomeSystemprovideforpeoplethemoresoft,safeandconvenientlivingenvironment.Therearemoreintelligentsystemsandproductsareappearedinthedomesticmarket.However,betweensystemsthemoreisindependentofeach,lowintegrationandthereisnounifiedcontrolplatformmoreover,thepriceisexpensive,andordinaryuserscannotafford,throughacomprehensiveanalysisofalltheprosandconsofSmartHomeSystemswhichhaveexistedinmarket.SmartHomeSystemdesignbasedontheQTandArmpointsoutthatthedevelopmentofthesystemwhichisaflexible,convenient,low-cost,user-friendly,easyoperationandmaintenanceliesinthechoiceofSmartHomeTerminalandcommunicationmode,andonthisbasisputsforwardaterminalsolution,andadoptswirelesscommunicationtechnologyforcontrol.RelyingonBeijingBorchCompanyUP-TECHPXA270developmentboardashardwarecarrier,thesystemusessyntheticallyGSM,LinuxandQtdevelopmenttechniques,microcontrollerandsensors,toprogramsoftware'sversatilityandeaseofuseforthedirection,theabilitytoeasilyportabletoanyPDAsystemofSmartHometerminalsandPC,SmartHomeIIISystem.ThisSmartHomeSystemisbasedLinuxsystemdevelopmentasplatform.relyingonUP-TECHPXA270developmentboardashardwarecarrier,toenablingtheSmartHomeSystem.Thesystemisconsistsofthreemainparts.Namely:IntelligentControlSystem,SecuritySystem,VideoandEntertainmentSystems.GSMconnectwiththeUP-TECHPXA270developmentboardthroughtheserialline,toestablishthebridgebetweenuserandthesystem.Usercanremotecontrolandknowthethreesystemsbytheirmobilephone.Usercannotonlysendanmessagetocontroltheelectricalequipmentsofhome,andalsoreceivemessagestoknowtheelectricsareinwhichstate.Soastoachievethepurposeofknowtheelectrics’stateinanytime.Thissystemindevelopmenttime,functionality,softwareupgrades,softwarereuse,price,andsothereisagoodtrade-off;pricehasasatisfactorycombination,dependentonthelargerprice/performanceadvantages,andtheirgoodperformanceanduser-friendlyinterfacedevelopmentrequirementsandtrends.ThereisnodoubtthatthesystemwillimprovetheProductawareness,anditisgoodforbuildtheadvantagesofenterprise.Soyoucanbelievethissysteminfuturehandsetswithgooddevelopmentprospects.Thisdesignreportdescribessmarthometerminalstudyingbackground,atthesametimedescribesworkandachievinggoalsofthesystem.Andeachsensorsunitexplainstheconstructionofthesystem.ThenforthechoiceandcompositionoftheLinuxoperatingsystemdevelopmentenvironmentandinstallationofQTthesystemintroducesindetail.NextitdescribesSmartHometerminalprogramdesign,includinginterfacedesign,programimplementationandtestandtheBOAservertransplantation.Intheend,itcomestomakingtherootfilesystem,corecutting,makingyaffsfilesystemandgeneralsummaryandresultsanalysismadeonpaper,finallyitmakesaprospectonthefollow-upworkatthesametime.Keywords:Linux;QT;smarthomesystem;PXA270;GSM;Sensors;IV目录第1章绪论..................................................................................................................................11.1智能家居控制系统的研究来源......................................................................................11.2智能家居控制系统的发展现状......................................................................................11.2.1国外发展状况:.....................................................................................................11.2.2国内现状..............................................................................................................11.3智能家居系统的研究意义..............................................................................................21.4智能家居系统的的主要研究工作..................................................................................21.4.1嵌入式Linux系统开发平台的构建....................................................................21.4.2.触摸屏终端的程序设计.......................................................................................21.4.3单片机实现的门禁系统的平台搭建...................................................................21.4.4网络控制...............................................................................................................21.4.4程序发布运行:..........................................................................