基于+AT89C55的酒店客房控制系统下位机设计

上传人:e****s 文档编号:280388555 上传时间:2022-04-21 格式:DOC 页数:31 大小:125.50KB
返回 下载 相关 举报
基于+AT89C55的酒店客房控制系统下位机设计_第1页
第1页 / 共31页
基于+AT89C55的酒店客房控制系统下位机设计_第2页
第2页 / 共31页
基于+AT89C55的酒店客房控制系统下位机设计_第3页
第3页 / 共31页
基于+AT89C55的酒店客房控制系统下位机设计_第4页
第4页 / 共31页
基于+AT89C55的酒店客房控制系统下位机设计_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《基于+AT89C55的酒店客房控制系统下位机设计》由会员分享,可在线阅读,更多相关《基于+AT89C55的酒店客房控制系统下位机设计(31页珍藏版)》请在金锄头文库上搜索。

1、基于+AT89C55的酒店客房控制系统下位机设计 分类号 密级UDC 学 位 论 文 基于 AT89C55 的 酒 店 客 房 控 制 系 统 下 位 机 设 计 (题名和副题名) 邓淳 (作者姓名)指导教师姓名 张 德 源 高工电 子 科技 大 学 成都(职务、职称、学位、单位名称及地址)学位授予单位和日期 电子科技大学 答辩委员会主席评阅人2006 年 5 月 日 注 1 注明国际十进分类法 UDC的类号独 创 性 声 明 本 人 声 明 所 呈 交 的 学 位 论 文 是 本 人 在 导 师 指 导 下 进 行 的 研 究 工 作及 取 得 的 研 究 成 果 。 据 我 所 知 , 除

2、 了 文 中 特 别 加 以 标 注 和 致 谢 的 地 方外 , 论 文 中 不 包 含 其 他 人 已 经 发 表 或 撰 写 过 的 研 究 成 果 , 也 不 包 含 为获 得 电 子 科 技 大 学 或 其 它 教 育 机 构 的 学 位 或 证 书 而 使 用 过 的 材 料 。 与我 一 同 工 作 的 同 志 对 本 研 究 所 做 的 任 何 贡 献 均 已 在 论 文 中 作 了 明 确 的说 明 并 表 示 谢 意 。签名: 邓 淳 日期:2006 年 5 月 12 日关 于 论文 使 用授 权 的说 明 本 学 位 论 文 作 者 完 全 了 解 电 子 科 技 大 学

3、 有 关 保 留 、 使 用 学 位 论 文的 规 定 , 有 权 保 留 并 向 国 家 有 关 部 门 或 机 构 送 交 论 文 的 复 印 件 和 磁 盘 ,允 许 论 文 被 查 阅 和 借 阅 。 本 人 授 权 电 子 科 技 大 学 可 以 将 学 位 论 文 的 全部 或 部 分 内 容 编 入 有 关 数 据 库 进 行 检 索 , 可 以 采 用 影 印 、 缩 印 或 扫 描等 复 制 手 段 保 存 、 汇 编 学 位 论 文 。 ( 保 密 的 学 位 论 文 在 解 密 后 应 遵 守 此 规 定 )签名: 邓 淳导 师 签 名 :日期: 2006 年 5 月 1

4、2 日摘要 摘 要 本文着力介绍了一种基于 AT89C55 的价廉且功能相对完备 、运行稳定可靠的酒 店 客 房 控 制 管 理 系 统 的 下 位 机 的 设 计 方 法 。 本 文 从 硬 件 和 软 件 两 个 方 面 对 系 统的 设 计 进 行 了 详 尽 地 阐 述 。 在 硬 件 方 面 , 详 细 介 绍 了 各 功 能 子 系 统 的 原 理 和 实 现方法;在软件方面,详细介绍了基于嵌入式操作系统 UCOS-II 的系 统设计的相关方法,并重点介绍了 UCOS-II 在 KEIL C 上的移植。 本 设 计 实 现 了 一 种 智 能 化 酒 店 客房 管 理 系 统 。

5、系 统 的 上 位 机 可 以 对 酒 店 各 个客 房 进 行 实 时 监 控 , 下 位 机 能 将 客 房 的 各 类 信 息 ( 包 括 房 门 卡 类 型 、 客 房 温 度 、客 户 请 求 等 ) 及 时 地 传 输 至 上 位 机 以 作 为 系 统 控 制 策 略 的 依 据 。 此 外 , 上 位 机 还可 以 利 用 下 发 控 制 数 据 包 的 方 式 对 酒 店 客 房 的 相 应 设 备 进 行 间接 远 程 控 制 。 几 种不 同 类 型 房 门 卡 的 设 计 使 得 系 统 可 以 根 据 不 同 的 用 户 开 放 不 同 的 客 房 功 能 。 设 计

6、中 引 入 了 嵌 入 式 实 时 操 作 系 统 UCOS-II , 使 得 下 位 机 对 上 位 机 的 响 应 速 度 大 为 提高。本文只涉及系统设计中的下位机部分,主要内容包括: 1. 设计了基于 RS485 总线的通讯系统, 并对 上下位机间的通信协议进行了研究和制定, 使通信协议不但具有标准的格式规范, 而且数据吞吐量不会对下位机的运行造成太大影响。 2. 设计了一套基于反射式红外光传感器的可靠、 方便且价廉的房门卡读取及客房取电系统, 并相应的设计了与之匹配的几种类型的房门卡。 既能充分保证酒店客房的安全性,又能使成本较之其它设计 大大降低。 3. 介绍了通过硬件+软件模拟的

7、方式实现 AT89C55 的 PWM 输出和对 SPI 总线器件的进行控制的方法, 并对单总线器件 DS1820 的使用做了详细介绍。 4. 进行了嵌入式操作系统 UCOS-II 在 KEIL 上的移植, 使 UCOS-II 可以运行在 AT89C55 这样的 8 位单片机上。 5. 通 过 操 作 系 统 各 任 务 的 合 理 规 划 提 高 系 统 的 实 时 性 和 程 序 的 稳 定 性 及 可维护性,提高了各客房下位机对上位机的响应时间。 关 键 词 : 智 能 化 酒 店 客 房 管 理,RS485 总 线 , 反 射 式 红 外 光 传 感 器 ,SPI 总 线 ,UCOS-I

8、I I ABSTRACT ABSTRACT This article mainly introduces a design method of the lower computer of a hotel guest room control management system based on AT89C55, which is cheap and reliable and have more complete functions. This article expatiate on the design of the system from both hardware and softwar

9、e. In relation to hardware, the principle and realization of the sub-systems are particularly introduced; In relation to software, the design method which is based on embedded operating system UCOS-II is particularly introduced, and the method of moving UCOS-II to KEIL C is described in detailThis d

10、esign realizes an intelligent hotel guest room management system. The upper computer of the system can take real-time monitor on the guest rooms of the hotel. The lower computer can transmit the information of the guest roomincluding the type of the door card 、the guest room temperature 、the request

11、s of the customers in time, thus the upper computer can use the information as control strategies. And, the upper computer can control the corresponding function equipments remotely with data packages. The design of different types of door cards can make the system choose different functions for dif

12、ferent customers. The introduction of the embedded real-time operating system UCOS-II in the design make the lower computer respond more quickly to the upper computer. This article only involves the lower computer parts of the design. The main content includes : 1. A communication system based on th

13、e RS485 bus is designed and the communication protocol between the upper computer and the lower computer is studied and formulated. The communication protocol has standard format and the quantity of data transmission will not put much influence on the running of the lower computer2. A reliable 、conv

14、enient and cheap door-card-reading and electricity-supplying system based on reflecting infrared light sensor is designed. Some types of corresponding door cards are also designed. Such design can not only guarantee the safety of the hotel guest room, but also reduce the design cost greatly compared

15、 to other designsII ABSTRACT 3. The PWM output on AT89C55 ,using the method of simulating through hardware and software ,and the method of controlling SPI bus on AT89C55 ,are both introduced in this article. The usage of DS1820,a 1-wire bus component, is particularly introduced4. The embedded real-time operating system UCOS-II is replanted to KEIL, thus UCOS-II can run on the 8-bit SCM like AT89C555. Tasks which is running on the operating system is rational planed, thus the real time ability of the system is improved and the program is more steady and easier to maintain. The

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 经济/贸易/财会 > 经济学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号