您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > 基于CAN总线的智能小区安防报警系统设计
上海交通大学硕士学位论文基于CAN总线的智能小区安防报警系统设计姓名:陈屹申请学位级别:硕士专业:电力电子与电力传动指导教师:马殿光20080101220081251CANICCANCANuClinuxLPCARMATMEL51CANCANuClinuxARM512DesignandimplementationofintelligenceresidentialintrusionsystembasedonCANbusABSTRACTSincethedevelopmentofinformationtechnology,theintelligenceresidentialwhichcanprovidepeoplemorecomfortableserviceisgraduallyrising.ItisboundwithseveralmodernHi-Techssuchascomputer,communication,automaticcontrolandICcard,andthesecuritysystemisoneofthemostimportantpartsamongallresidentialcontrolsystem.Thispassageintroducedanintelligenceresidentialintrusionsystem.Thewholesystemhashighreliability,rapidresponseandgoodexpansibilitysinceitusesCANbustobuildthesystemnetworkingstructure.Thepassagedescribedtheoverallarchitectureandeachmodule’shardwareandsoftwaredesignaswell.Italsoanalyzedsomekeypointsduringsoftwaredevelopindetails,suchasCANcommunicationprotocoldesign,portinguClinuxtoLPCseriesARMplatform,designofcontrolpanelbasedonATMELMCUandetc.ThecontentofthispassagecangiveotherembeddedsystemprojectsbasedonCANbussomeusefulreference.Atlast,thepassageevaluatedtheperformanceofthisproductandgaveabriefpreviewinconclusion.KEYWORDS:CANBus,IntrusionSystem,EmbeddedSystem,uClinux,ARM,51MCU51.11.1.121¾¾¾¾[1]1.1.26PSTNPSTN1-11-1PSTNFigure1-1ArchitectureofintrusionsystembasedonPSTNPSTNPSTN71-21(1)2(2)n(n)1-2Figure1-2Architectureofintrusionsystembasedonfieldbus1.21.2.119791989[2]48581.2.2CANCAN¾CAN¾¾CAN¾¾¾CAN¾¾9CAN2.1FieldBus[3]OSIOpenSystemInterconnectionOSI2-12-1OSIFigure2-1OSIreferencemodelOSI10¾¾¾¾FoundationFieldbusLonWorksPROFIBUSCAN2.2CAN2.2.1CANCANControllerAreaNetworkBOSCHCANCAN[4]2.2.2CANCAN11¾CAN¾CAN134us¾CAN¾CAN¾CAN110CAN2.0A11CAN2.0B29¾¾CANCRC¾CAN2-2CANFigure2-2DominantbitandrecessivebitonCANbusCANDominantRecessive122-2CAN-HCAN-LCANCAN-HCAN-L2.5VVdiffCAN2.3CAN2.0BCAN19919BoschCANVersion2.0AB2.0ACAN2.0B199311ISOCANISO11898CANCAN2.0BCAN2.0ACAN2.0B2.3.1CANCANISO/OSI:LLCMACCANCAN[5]13LLCMAC//PLS/PMA/MDI2-3CANFigure2-3LayerstructureofCANbusISO11898CAN3[6]¾PLS¾PMA¾MDICANCANCAN14CANCAN2-4CANFigure2-4DefinitionofCANbit-time¾CAN¾¾12¾CANCAN[6]/kbps10005002501005020105/m40130270620130033006700100002.1CANChart2.1MaximumcommunicationdistanceonCANbusintheory15MACMACMediumAccessControlCANLLCLLCMACMACMACArbitrationCANMACLLCLLCLogicalLinkControl¾¾LLCLLC¾LLC2.3.2CANCAN1129416CAN72-5Figure2-5Bitdefinitionindataframe¾SoF¾MAC11RTR72911ID18IDIDRTR¾DLC0~8¾0~8¾CRCCRCCRCCRCCRCCRCCRC¾2¾7RTR172.4CANCAN3CPUCANCANControllerCANCANTransceiverCANCANCANCAN-RXCAN-TX2-6CANFigure2-6BlockdiagramofCANintelligencenodeCANCANCANCPU18CAN2-6CANCANCANISO11898CANISO11898CAN193.1PSTNPC2032044800CANCAN110CANCANCANCANCANCANCAN2CAN200003-13-1CAN100CAN10\10kbps20kbps50kbps100m1000m2000m3000m3-1CANChart3-1MaximumcommunicationdistanceonCANbusFromtesting20kbps20CANCANCANCANPC:CAN1CAN110CAN-HCAN-L1:/CANCANCANCAN110:/1:/110:/CAN-LCAN-HCAN-LCAN-H3-1Figure3-1OverallarchitectureofintelligenceresidentialintrusionsystemCANID21CANCANCANCAN3.2OSICANCAN2.0CAN¾¾¾8¾¾CAN3.2.1CANCAN1129IDCANCAN¾22¾¾CANPollingCANCAN11IDIDOpenCloseAlarmOpenAlarmRestore28Open/CloseACKACK0111ID7IDACKOpen/Close4IDCANCANCANCAN1108bit0x000xff0x00CAN11100xff0xff3-2bit0~bit7bit8~bit1517160233-2Figure3-2BitdefinitioninarbitrationfieldCAN8IDID8PCGB2312ASCII8IDIDID3.2.2ACK0ACKACK1ACKACK2CANPCCAN0x00CAN24CANCANCANID::CAN:0x00Data[0]:CANData[1]~Data[7]://IDCANCANID::CAN:0x00Data[0]:CANData[1]~Data[7]://IDCANID::0x00:CANData[0]:CANData[1]~Data[7]://CANID::CAN:CANData[0]:CANData[1]~Data[7]://3-3CANFigure3-3ExampleofframetransferonCANbus3.3.3Polling24CANCANPollingCANCANCANCAN0xffCAN10CANCANCAN25CAN110648bytes=64bitsCAN22112CANID:pollingACK:CAN:CANCANCANID:pollingACK:CAN:0x00Data[0]:0/56Data[1]~Data[8]:CANID:pollingrequest:0x00:0xffCANID:pollingrequest:CAN:0xff3-4Figure3-4Flowofpollingmechanism20kbpsCAN21026CAN2CAN20000CANPCPCPCLCD4.1CPUCANCPULPC22928MPSRAM4MFlashDM9000AUDPUART0(shellforuClinux)UART1()CAN-RXCAN-TXCANCAN1CAN2PCCAN16V5V,3.3V,1.8V416x2LCD4-1Figure4-1Blockdiagramofcentralstation27CPUPhilipsLPC229232ARMCPUARMRISC[7]CPUARM7TDMI-S16kBRAM256kBFlash2CAN4A/D322UARTI2C2SPI2CANCANCANCANCANCPUPLL60Mhz11.0592MhzCPUPLL44.2368Mhz[8]uClinuxLPC2292RAMFlashFlashRAMFlashSST39VF3204MBCFICommonFlashInterfaceNorFlashCS0LPC2292bank0BootloaderuClinuxromfsLPC2292SDRAMSRAMPSRAMMT45W4MW16BCGB8MBCS1LPC2292bank1FlashRAM284-2Figure4-2SchematicofPSRAMandFlashCANLPC22922CANCANMicrochipMCP2551CANCANMCP2551ISO11898CAN1Mb/s12V/24VTXDCAN[9]294-3MCP2551Figure4-3BlockdiagramofMCP2551MCP2551Rs¾RsVssCAN¾CANHCANLEMIRsRextRsRext¾RsRXDCPURXDCANRsCANMCP2551CAN-HCAN-L6N137MCP2551Rs20K304-4CANFigure4-4SchematicofCANinterfaceDM9000MACPHY10/100MIEEE802.3uIEEE802.3x816324-5DM9000nCSLPC2292CS3INTLPC2292P0.7GPIOEINT2LPC2292DM9000DM9000EECS/EECK/EEDIO128EEPROM93C46IDIDEEPROMDM9000314-5Figure4-5Schematicofnetworkinterface16x2LPC2292GPIOCPUIO4LPC22924GPIO22UART0uClinuxshellPC32UART1PCCANID216VKBPC610LM25965V2LM1117CPUIO1.8V3.3VLPC2292ADAD4.2PCLinuxVxworksWindowsCEuCos-IILinuxLinuxLinuxuClinuxLinuxMMUMemoryManagementUnitLinuxMMUuClinuxromfsCLinu
本文标题:基于CAN总线的智能小区安防报警系统设计
链接地址:https://www.777doc.com/doc-7473091 .html