【正文】
a Wide band) [6]超寬帶技術(shù) UWB(Ultra Wide band)是另一個(gè)新發(fā)展起來的無線通信技術(shù)。但是藍(lán)牙的傳輸距離比較短,而且藍(lán)牙是一種還沒有完全成熟的技術(shù),盡管被描述得前景誘人,但還有待于實(shí)際使用的嚴(yán)格檢驗(yàn)。2 外圍設(shè)備互連 是指將各種設(shè)備通過藍(lán)牙鏈路連接到主機(jī)上。在此范圍內(nèi),采用藍(lán)牙技術(shù)的多臺(tái)設(shè)備,如手機(jī)、微機(jī)、激光打印機(jī)等能夠無線互聯(lián),以約 1Mb/s 的速率相互傳遞數(shù)據(jù),并能方便地接入互聯(lián)網(wǎng)。 無線通信技術(shù)的發(fā)展現(xiàn)狀 按照發(fā)射功率的不同,無線通信技術(shù)可分為短距離無線通信技術(shù)和長距離無線通信技術(shù),它們各自依托的硬件平臺(tái)和通信協(xié)議也有很大不同。無線電子點(diǎn)菜系統(tǒng)基于目前很熱門的技術(shù)——嵌入式技術(shù) [3],依托一定的硬件平臺(tái)。無線電子點(diǎn)菜系統(tǒng)的目的就是利用最先進(jìn)的 無線通信技術(shù)、嵌入式移動(dòng)數(shù)據(jù)庫技術(shù) [3][4]、以及觸摸屏的掌上電腦技術(shù), 為餐飲業(yè)走向全面數(shù)字化提供了完整的解決方案。其 DuoCeiverTM 技術(shù)使 nRF2401 可以使用同一天線,同時(shí)接收兩個(gè)不同頻道的數(shù)據(jù)。目前國際上有很多專門生產(chǎn)射頻芯片的公司,例如 Nordic 公司和 Chipcon 公司。隨著集程度的提高,芯片的體積能耗和成本在逐步降低。但這時(shí)候的無線通信技術(shù)還只是處于萌芽階段,只有到 19 世紀(jì)末意大利人馬可尼發(fā)明無線電報(bào)開始,人類才真正開始大規(guī)模地利用無線通信技術(shù) [1]。設(shè)計(jì)的硬件平臺(tái)時(shí),首先詳細(xì)介紹了平臺(tái)將要用到的一些芯片,然后使用 Protel 99 SE 設(shè)計(jì)出了系統(tǒng)的原理圖和 PCB(Print Circuit Broad,印刷電路板) 圖;在設(shè)計(jì)的硬件平臺(tái)的基礎(chǔ)上,依據(jù)所用芯片的編程原則,在 Windows環(huán)境下,以 C51 語言為編程語言,開發(fā)出了無線通信系統(tǒng)的驅(qū)動(dòng)程序來實(shí)現(xiàn)雙方約定的通信協(xié)議。本科生畢業(yè)論文(設(shè)計(jì))題 目基于單片機(jī)無線電子點(diǎn)菜系統(tǒng)硬件設(shè)計(jì)及實(shí)現(xiàn)學(xué)生姓名指導(dǎo)教師學(xué) 院專業(yè)班級(jí)完成時(shí)間II目 錄摘 要 ................................................................IVABSTRACT ...............................................................V第一章 緒論 ............................................................1 研究背景和意義 ..................................................1 論文的研究內(nèi)容 ..................................................4 內(nèi)容安排 ........................................................4第二章 ZIGBEE 協(xié)議分析 ..................................................6 ZIGBEE協(xié)議框架 ....................................................6 ZIGBEE協(xié)議優(yōu)缺點(diǎn)和應(yīng)用前景 ........................................8 ZigBee 協(xié)議的優(yōu)點(diǎn) .............................................9 ZigBee 協(xié)議存在的問題及解決方案 ...............................9 ZigBee 協(xié)議應(yīng)用前景 ..........................................102.3 基于 ZIGBEE協(xié)議的芯片 ............................................10第三章 基于 ZIGBEE 協(xié)議的硬件系統(tǒng)的設(shè)計(jì)及實(shí)現(xiàn) ..........................14 STC89C58RD+單片機(jī)概述 ............................................14 開發(fā)板的各個(gè)組成部分原理圖以及功能 ...............................15 單片機(jī)最小系統(tǒng)組成電路 .......................................15 串行口電平轉(zhuǎn)換部分 ...........................................16 LED 部分 .....................................................17 開發(fā)板和無線數(shù)據(jù)傳輸模塊接口部分 .............................17 鍵盤部分 .....................................................18 無線數(shù)據(jù)傳輸模塊 .................................................19 無線數(shù)據(jù)傳輸模塊和開發(fā)板的 PCB 圖設(shè)計(jì) .............................20 開發(fā)板的 PCB 圖 .................................................20 無線數(shù)據(jù)傳輸模塊的 PCB 圖 .......................................22第四章 硬件驅(qū)動(dòng)程序和串行口調(diào)試工具 ...................................24 硬件驅(qū)動(dòng)程序 .....................................................24 主機(jī)端硬件驅(qū)動(dòng)程序 ...........................................24 移動(dòng)端驅(qū)動(dòng)程序 ...............................................28 串行口調(diào)試工具 ...................................................28III 串行通信的基本原理 ...........................................28 程序設(shè)計(jì)原理 .................................................30第五章 總結(jié)與展望 .....................................................37 全文總結(jié) .........................................................37 研究展望 .........................................................38致 謝 ................................................................39參考文獻(xiàn) ..............................................................40附錄 ..................................................................41IV摘 要隨著人民生活水平的提高和生活方式的轉(zhuǎn)變,餐飲業(yè)具有巨大的投資市場,被稱為中國的黃金產(chǎn)業(yè)。整個(gè)系統(tǒng)有主機(jī)端和移動(dòng)端兩部分組成,無線通信的雙方依托一定的硬件平臺(tái),按照約定好的協(xié)議來實(shí)現(xiàn)數(shù)據(jù)交換。關(guān)鍵詞 無線通信,ZigBee,單片機(jī),nRF2401VAbstractAlong with the enhancement of the level of the people’s lives and the transformation of the lifestyle, the dining industry which is called gold industry in China has the huge investment market. The wireless electronic ordering food system is the typical use of the technology of wireless munication. Using the technology of wireless munication in the dining industry will largely improve the working efficiency and the grade of service. The present paper brings up the plan of the hardware design of the the wireless electronic ordering food system and how to realize. The overall system is made up of two parts, one is the main end and the other is the mobile end. Both sides of wireless correspondence depend on certain hardware platforms. They exchange data according to the protocol which both sides have agreed on before, and the data is transformed in specific frame form. When designing the hardware platform, first analyzes the CMOS chips that will be used in the system. Then, the paper uses Protel 99 SE to design the principle picture and the PCB picture of the system. In this foundation, according to the programming rules of the CMOS chips used in the system, the paper exploits the driving program of the system using C51 programming language in the Windows operating system. By the way, this paper also briefly introduces the software development kits which will be used next, analyzes the limitations of system, and also proposes how to improve it.In order to make the entire system more prehensive,the paper also exploits the serial debugging tool in Visual C++ to display the data from remote end in the window on puter and send data to remote end in the window form. This basically achieves the goal.KEY WORLD wireless munication, ZigBee,SingleChip Microputer, nRF2401基于單片機(jī)的無線點(diǎn)菜系統(tǒng)的硬件設(shè)計(jì)及實(shí)現(xiàn) 第一章 緒論0第一章 緒論 研究背景和意義人類利用無線通信技術(shù)的歷史已經(jīng)有幾千年了,古時(shí)候用的烽火臺(tái)就是最原始的無線通信?;仡櫦呻娐返陌l(fā)展歷程,我們可以看到,自發(fā)明集成電路至今 40 多年以來,從電路集成到系統(tǒng)集成這句話是對 IC 產(chǎn)品從SSI(Small Scale Integrated,小規(guī)模集成電路)到 VLSI(Very Large Scale Integrated 超大規(guī)模集成電路)今天特大規(guī)模集成電路發(fā)展過程的最好總結(jié),即整個(gè)集成電路產(chǎn)品的發(fā)展經(jīng)歷了從傳統(tǒng)的板上系統(tǒng)(Systemonboard)到片上系統(tǒng)(Systemonachip)的過程。從分類上來看,射頻芯片屬于專用集成電路。芯片能耗非常低,以5dBm 的功率發(fā)射時(shí),工作電流只有 ,接收時(shí)工作電流只有 18mA,多種低功率工作模式,節(jié)能設(shè)計(jì)更方便。人們在消費(fèi)過程中對服務(wù)質(zhì)量也有了更高的要求,同時(shí)餐館之間的激烈競爭也促進(jìn)了無線通信技術(shù)在餐飲業(yè)中的應(yīng)用。同時(shí),無線通信的可以移動(dòng)性也使服務(wù)員隨時(shí)可以和吧臺(tái)聯(lián)系??梢哉f,隨著微電子技術(shù)的進(jìn)一步發(fā)展,無線電子點(diǎn)菜系統(tǒng)仍然有很大的發(fā)展空間。藍(lán)牙工作頻率為 2.4GHz,有效范圍大約在 10m 半徑內(nèi)。藍(lán)牙技術(shù)的應(yīng)用主要有以下 3 類:1 語音/數(shù)據(jù)接入 是指將一臺(tái)計(jì)算機(jī)通過安全的無線鏈路連接到通信設(shè)備上,完成與廣域網(wǎng)的連接。藍(lán)牙的支持者們預(yù)