基于CAN总线的智能家居和小区监控管理系统 (2).pdf
《基于CAN总线的智能家居和小区监控管理系统 (2).pdf》由会员分享,可在线阅读,更多相关《基于CAN总线的智能家居和小区监控管理系统 (2).pdf(62页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、河北工业大学硕士学位论文基于CAN总线的智能家居监测系统的研究姓名:王新磊申请学位级别:硕士专业:通信与信息系统指导教师:王志刚20081101?i?CAN?CAN?LPC2119?CAN?8?CAN?LPC2119?LPC2119?CAN?Clinux?LPC2119?CAN?DS18B20?CAN?TCP/IP?iiTHE RESEARCH OF SAMRT HOME SUPERVISORY SYSTEM BASED ON CAN BUS ABSTRACTIntelligent home network system takes modern computer technology,com
2、munication technology and control technology as foundation.It adopts advanced management software to manage communication,security and alarming of the entire house on one platform.The design of intelligent home monitoring system,based on CAN bus and LPC2119,is presented under an actual project backg
3、round.Firstly,studying on CAN bus technology,the hardware of CAN node module based on the 8-bit microprocessor and the intelligent home controller based on the LPC2119 are designed.The designs are completed combining with the specific background of smart home applications.The system makes intelligen
4、t controller LPC2119 as the core component.By the combination of CAN bus and the Internet,the system achieved the goal of centralized management and remote monitoring of home appliances.Then,according to the system task analysis,the contents include that the transplantation of?Clinux OS on the LPC21
5、19 and the development of device drivers,the designs of CAN communication software,the design of remote monitoring interface and the software designs of other modules are completed.Last,modules of the system are tested.The whole performace of system is tested primarily by temperature sensor DS18B20.
6、Test results show that the system meets the performance targets.The system can provide a more safe,comfortable,convenient,fast and open living space which is intelligent and information-based for the residents.KEY WORDS:Smart home appliance,CAN bus,embedded operating system,TCP/IP?1?4C?Computer Tech
7、nology?Communication Technology,Control Technology,CRT Technology?1?1-1?1-1-1?HBS?1,2?1.?2.?3.?4.?80?HA?Home Automation?80?WH?Wise Home?SH?Smart Home?1990?EIA?1998?IHS?HDS?Home?2Distribution System?80?80?80?80?90?,?90?Intelligent Control NetwoData Terminal,?NDT?Internet?HUB?Smart Home?20%?45%?35%?3?
8、2006?CPU?6?1.?3?2.?3.?4.?WTO?5.?1-1-2 CAN?CAN?Controller Area Network?20?80?BOSCH?CAN?CAN?CAN?DSP?Intel?Philips?Microchip?Infineon?CAN?CAN?Philips Semiconductor?CAN?Version2.0?ISO?ISO11898?CAN?CAN?CAN?CAN?4?41-2?30%?2002?2431?221?756?4?40.2%?53.1%?7?11?2004?3900?82%?135?CAN?ISO?CAN?CAN?CAN?110?2032?
9、CAN2.0A?CAN2.0B?CAN?CAN?ID?CAN?CAN?1-3?CAN?8?CAN?ARM7?/?CAN?CAN?LPC2119?Clinux?CAN?5?Internet?Internet?1.?CAN?2.?CAN?3.?Clinux?LPC2119?4.?Clinux?5.?6.?1-4?CAN?CAN?CAN?CAN?Clinux?LPC2119?DS18B20?6?CAN?2-1?4,5?2-1-1?9?1.?2.?3.?4.?DCS?5.?2-1-2?1.?DCS?PC?72.?60%?3.?4.?5.?2-1-3?20?80?9,13?1.?FF?Foundatio
10、n Field bus?Fisher-Rosemount?Foxboro?ABB?80?ISP?Honeywell?150?Word FIP?1994?H1?H2?H1?31.25Kbps?1900m?H2?1Mbps?2.5Mbps?750m?500m?IEC1158-2?FF?2.Lon Works Lon Works?Echelon?1990?ISO/OSI?7?8?300bps?1.5Mbps?2700m?78Kbps?3.PROFIBUS PROFIBUS?DIN19245?EN50170?PROFIBUS-DP?PROFIBUS-FMS?PROFIBUS-PA?PROFIBUS?D
11、P?FMS?PROFIBUS-FMS?PA?IEC1158-2?OSI?FMS?9.6 Kbps12Mbps?12Mbps?100m?1.5Mbps?400m?10Km?127?4.HART HART?Highway Addressable Remote Transducer?Rosemount?80?1993?HART?HART?DDL?HART?DDL?HART?5.CAN CAN?Controller Area Network?CAN?2-2?CAN?CAN?Controller Area Network?Bosch?BENZ?BMW?PORSCHE?CAN?CAN?ECU?CAN?CA
12、N?CAN?9?Philips P82C250?CAN?110?CAN?1Mbit/s?10Km?CAN?50Kbit/s?CAN?2.1?8?2.1?Table.2.1 Bit rates and practical bus lengths?1Mb/s 25m 1us 800Kb/s 50m 1.25us 500Kb/s 100m 2us 250Kb/s 250m 4us 125Kb/s 500m 8us 50Kb/s 1000m 20us 20Kb/s 2500m 50us 10Kb/s 5000m 100us 2-2-1 CAN?1.?11,12CAN?110?CAN?CAN?5?2.?
13、CRC?10?NRZ-Non Return to Zero?0?l?CAN?3.?CAN 2.0B?11?29?CAN?1.2?/?CAN 2.0B?4.?CAN?2.0B?2-2-2 CAN?CAN?13?1.CAN?2.CAN?3.CAN?110?11?29?4.?CAN?134?s?5.CAN?CAN?6.CAN?7.CAN?10Km?5Kbps?1Mbps?40m?11 8.CAN?CRC?9.CAN?10.CAN?11.CAN?CAN?3?OSI?CAN?2-2-3 CAN?CAN?ISO/OSI?OSI?CAN?14,15,16,17?CAN?LLC?MAC?CAN?2.1?2.1
14、 CAN?Fig.2.1 The hierarchical structure and function of CAN?CAN?CAN_H?CAN_L?CAN?1?0?2.2?12?V?3.52.51.5?s?CAN_HCAN_L?2.2?Fig.2.2 The difference bus CAN?120?CAN?2.3?2.3 CAN?Fig.2.3 The structure of CAN system 2-2-4 CAN?CAN?ID?CAN?ID?CAN?CAN?ID?ID?ID?CAN?13?CAN?4?11?1.CAN?0?CRC?CAN2.0B?11?29?11?SRR?IDE
15、?11?18?CAN2.0B?11?3?1?1?7?FF?FF=0?6?RTR?RTR=0?RTR=l?DLC?2?3?11?4?11?CAN2.0B?13?5?1?1?7?FF?FF=l?6?RTR?RTR=0?RTR=1?DLC?2?5?29?6?13?1?CAN?2?RTR?CAN?11?ID.10?ID.0?LSB?CAN?ID.10ID.4?CAN?RTR?RTR?0?3?R0?Rl?CAN?4?08?4?/?5?CRC?CRC?l5?CRC?CRC?15?0?14?x15+x14+x10+x8+x7+x4+x3+l?2?CRC?CRC?/?CRC?127?6?CRC?CRC?7?2
16、.CAN?CAN?RTR?1?RTR?CRC?3.CAN?1?Active?Passive?CAN?CAN?6?12?CAN?2?8?CAN?CAN?8?4.CAN?15?l?2?8?8?5.CAN?l?CAN?CAN?2?CAN?2-2-5 CAN?CAN?12,13?CAN?CAN?CAN?RTR?RTR?RTR?RTR?CAN?ID=1111111XXXX?X?BasicCAN?2048-16=2032?CRC?CAN?5?CAN?5?/?CAN?CRC?CAN?CAN?16?CAN?CAN?6?CAN?CAN?CAN?7?CAN?CAN?CAN?CAN?2-3?CAN?CAN?CAN?
17、CAN?CAN?17?3-1?PC?Internet?CAN?Internet?20,21?3.1?3.1?Fig.3.1 The overall structure of smart home appliance supervisory system?3.1?CAN?Internet?CAN?CAN?8?MCU+CAN?+CAN?+?/?Philips?CAN?32?LPC2119?CAN?CAN?CAN?Internet?Internet?1.?110?LPC2119?Flash ROMEEPROM SDRAM?InternetCAN?182.?3.?4.?5.?3-2?8?MCU+CAN
18、?+CAN?+?/?8?MCU?AT89S52?CAN?SJA1000?CAN?82C250?/?/?3-2-1?3.2?CAN?CAN?3.2?5?AT89S52?CAN?SJA1000?CAN?82C250?6N137?CAN?CAN?CAN?CAN?19?CAN?RFI?13,23?3.2?Fig.3.2 The circuit of Smart Node 3-2-2?1.?AT89S52 AT89S52?CMOS 8?8K?Flash?Atmel?80C51?Flash?8?CPU?Flash?AT89S52?AT89S52?8K?Flash?256?RAM?32?I/O?2?16?/
19、?AT89S52?0Hz?2?CPU?RAM?/?RAM?2.CAN?SJA1000 SJA1000?CAN?PHILIPS AD61AD72ALE3CS4RD5WR6CLKOUT7AD023AD124AD225AD326AD427AD528TX013TX114RX019RX120MODE11VDD122VDD218VDD312VSS18VSS221VSS315INT16SJA1000EA/VP31X119X218RESET9RD17WR16INT012INT113T014T115P101P112P123P134P145P156P167P178P0039P0138P0237P0336P0435
20、P0534P0633P0732P2021P2122P2223P2324P2425P2526P2627P2728PSEN29ALE/P30TXD11RXD10AT89S52NC1VDD2IN3NC4GND5OUT6EN7VCC86N137TXD1GND2VCC3RXD4VREF5CANL6CANH7RS882C250RDWRWRRDINTVDDINTNC1VDD2IN3NC4GND5OUT6EN7VCC86N13739047k56.2K390VCC100nf100nf390100nf390?VDD54.7K30p30p?20?PCA82C200 CAN?BasicCAN?CAN?SJA1000?
21、2?Basic CAN?PCA82C200?PeliCAN?Basic CAN?PCA82C200?SJA1000?PeliCAN?CAN2.0B?SJA1000?SJA1000?3.3?FIFO?CAN?CAN2.0B?CAN?SJA1000?3.3 SJA1000?Fig.3.3 The hardware structure diagram of SJA1000?3.3?CAN?CAN?CAN?SJA1000?/?13?CMR?TR?CAN?CAN?CAN?FIFO?SR.0?RMC?FIFO?64?82C250?SJA1000?SJA1000?RAM?TXB?RXB?CAN?1628?1
22、3?CAN?3295?FIFO RAM?96109?SJA1000?1?MOD?CAN?0?MOD.4?SJA1000?MOD.3?MOD.0?MOD.0?1?SJA1000?0?SJA1000?2?CMR?1?3?SR?SJA1000?SR.7?SR.6?SR.5?SR.4?SR.3?SR.2?SR.1?SR.0?4?IR?IER?8?5?CDR?SJA1000?CLKOUT?CDR.7?0?SJA1000?21?BasicCAN?1?PeliCAN?6?(ACR)?(AMR)?7?BTR0?BTR1?3.?PCA82C250 PCA82C250?3.4?1Mbit/s?12V?CAN?TX
23、?RX?CANH?CANL?Rs?VREF?VCC?0.5?5V?3.4 PCA82C250?Fig.3.4 The structure diagram of PCA82C250 PCA82C250?Rs?Px,y=?PCA82C250?VRs0.75 Vcc?Px,y=?PCA82C250?Rs?PCA82C250?1?ISO/DIS11898?2?1Mb/s?3?4?5?6?7?8?110?223-2-3?1.?SJA1000?AD0AD7?AT89S52?P0?/CS?89S52?P2.0?P2.0?0?CPU?SJA1000?CPU?SJA1000?/?SJA1000?/RD?/WR?
24、ALE?89S52?/INT?89S52?/INT0?89S52?SJA1000?2.?CAN?SJA1000?TX0?RX0?82C250?TXD?RXD?6N137?82C250?VCC?VDD?5V?3.?82C250?CAN?82C250?CANH?CANL?5?CAN?82C250?CANH?CANL?30pF?CAN?82C250?Rs?16140?K?4.I/O?AT89S52?P1?P2?P3?P1?A/D?P2?D/A?5.?1?RT?120?2?PCA82C250?CAN?CAN?TXD?RXD?8?Rs?2?Rs?15-200K?Rs?3?SJA1000?TX1?RX1?
25、0.5VCC?CAN?82C250?VREF?0.5VCC?SJA1000?RX1?233-3?4?CAN?22,24?3-3-1?CAN?3.5?3.5?Fig.3.5 The flow chart for initial program of smart code 3-3-2 CAN?CAN?CAN?CAN?CAN?1.CAN?SJA1000?SJA1000?SJA1000?24?AMR?ACR?IER?SJA1000?SJA1000?SJA1000?3.6?3.6 CAN?Fig 3.6 CAN controller initialization 2.?SJA1000?SJA1000?3
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于CAN总线的智能家居和小区监控管理系统 2 基于 CAN 总线 智能家居 小区 监控 管理 系统
限制150内