基于CAN和ZigBee的混合網(wǎng)絡(luò)網(wǎng)關(guān)的設(shè)計(jì)與實(shí)現(xiàn)
本文選題:CAN + ZigBee; 參考:《太原科技大學(xué)》2014年碩士論文
【摘要】:CAN總線是最具代表性的現(xiàn)場(chǎng)總線之一,具有通信速率高、通信距離遠(yuǎn)、無(wú)主從節(jié)點(diǎn)、非破壞性仲裁、實(shí)時(shí)性好、檢錯(cuò)能力強(qiáng)的優(yōu)點(diǎn);ZigBee作為一種成熟的無(wú)線通信協(xié)議,具有低復(fù)雜度、低成本、低功耗、靈活性強(qiáng)的優(yōu)點(diǎn)。將CAN總線和ZigBee無(wú)線網(wǎng)絡(luò)相結(jié)合,使兩者的優(yōu)勢(shì)互補(bǔ),可以擴(kuò)展兩者的應(yīng)用領(lǐng)域。本課題針對(duì)CAN和ZigBee的原理與特點(diǎn),設(shè)計(jì)了一種CAN/ZigBee混合網(wǎng)絡(luò)。 在分析CAN節(jié)點(diǎn)和ZigBee節(jié)點(diǎn)MCU發(fā)展現(xiàn)狀和趨勢(shì)的基礎(chǔ)上,本課題選用內(nèi)嵌CAN協(xié)議控制器和收發(fā)器的LPC11C24作為CAN節(jié)點(diǎn)MCU,選用內(nèi)嵌增強(qiáng)型8051內(nèi)核和RF收發(fā)器的CC2530作為ZigBee節(jié)點(diǎn)MCU。在對(duì)LPC11C24與CC2530之間通信方式進(jìn)行詳細(xì)分析的基礎(chǔ)上,本課題采用UART在LPC11C24與CC2530之間交換數(shù)據(jù),構(gòu)成雙MCU結(jié)構(gòu)的網(wǎng)關(guān)節(jié)點(diǎn)。 本課題首先完成了CAN總線網(wǎng)絡(luò)和ZigBee無(wú)線網(wǎng)絡(luò)軟件設(shè)計(jì),,然后重點(diǎn)進(jìn)行了網(wǎng)關(guān)節(jié)點(diǎn)軟件設(shè)計(jì)。網(wǎng)關(guān)節(jié)點(diǎn)軟件設(shè)計(jì)主要面臨三個(gè)問(wèn)題:①CAN和ZigBee通信速率不一致;②CAN和ZigBee報(bào)文尋址方式不一致;③CAN和ZigBee最大數(shù)據(jù)載荷不一致。針對(duì)這三個(gè)問(wèn)題,本課題給出的解決方法為:①在雙MCU中設(shè)置緩存區(qū)并在CC2530中采用DMA方式存儲(chǔ)UART接收數(shù)據(jù);②對(duì)CAN數(shù)據(jù)幀標(biāo)識(shí)符和數(shù)據(jù)段以及ZigBee數(shù)據(jù)段進(jìn)行重新定義并設(shè)計(jì)地址映射表,使CAN和ZigBee數(shù)據(jù)幀中包含源節(jié)點(diǎn)和目標(biāo)節(jié)點(diǎn)的地址信息;③引入碎片機(jī)制。 測(cè)試結(jié)果表明:本課題設(shè)計(jì)的CAN總線網(wǎng)絡(luò)、ZigBee無(wú)線網(wǎng)絡(luò)和網(wǎng)關(guān)節(jié)點(diǎn)具有結(jié)構(gòu)簡(jiǎn)單,數(shù)據(jù)傳輸有效性和可靠性高的優(yōu)點(diǎn),為實(shí)現(xiàn)CAN和ZigBee的無(wú)縫連接提供了一種可行方案。
[Abstract]:Can bus is one of the most representative fieldbus. It has the advantages of high communication rate, long communication distance, no master / slave node, non-destructive arbitration, good real-time performance and strong error detection ability. ZigBee is a mature wireless communication protocol. It has the advantages of low complexity, low cost, low power consumption and high flexibility. By combining can bus with ZigBee wireless network, the advantages of the two networks are complementary, and their application fields can be expanded. According to the principle and characteristics of can and ZigBee, a CAN / ZigBee hybrid network is designed. On the basis of analyzing the development status and trend of can node and ZigBee node MCU, LPC11C24 embedded in can protocol controller and transceiver is selected as can node MCU, and embedded enhanced 8051 core and RF transceiver CC2530 are selected as ZigBee node MCU. Based on the detailed analysis of the communication mode between LPC11C24 and CC2530, UART is used to exchange data between LPC11C24 and CC2530. Firstly, the can bus network and ZigBee wireless network software are designed, and then the gateway node software is designed. There are three main problems in the software design of gateway nodes: 1 can and ZigBee communication rates are inconsistent. 2can and ZigBee message addressing methods are inconsistent. 3CAN and ZigBee maximum data load are inconsistent. Aiming at these three problems, the solution given in this paper is that: 1 sets buffer area in double MCU and stores UART data in CC2530 by DMA mode; (2) can data frame identifier, data segment and ZigBee data segment are redefined and address mapping table is designed to introduce shard mechanism into can and ZigBee data frame including address information of source node and target node. The test results show that the ZigBee wireless network and node designed in this paper have the advantages of simple structure, high efficiency and reliability of data transmission, and provide a feasible scheme to realize the seamless connection between can and ZigBee.
【學(xué)位授予單位】:太原科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:TP393.05;TP273
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 趙海;邵士亮;朱劍;張寬;;一種連接WSN與Internet的多核嵌入式網(wǎng)關(guān)設(shè)計(jì)與實(shí)現(xiàn)[J];東北大學(xué)學(xué)報(bào)(自然科學(xué)版);2012年01期
2 李蛟;楊仁錕;肖峻;;2.4GHz無(wú)線技術(shù)標(biāo)準(zhǔn)及ZigBee抗干擾性能[J];電信工程技術(shù)與標(biāo)準(zhǔn)化;2006年03期
3 周惠椒;譚喜堂;朱琴躍;趙亞輝;;ZigBee無(wú)線通信技術(shù)在電力監(jiān)控系統(tǒng)中的應(yīng)用[J];低壓電器;2011年18期
4 夏繼強(qiáng);梁超眾;邢春香;;工業(yè)通信用網(wǎng)關(guān)設(shè)計(jì)及其關(guān)鍵技術(shù)研究[J];電子技術(shù)應(yīng)用;2010年02期
5 孫巖;唐紹炬;羅紅;;基于FPGA的多媒體傳感器網(wǎng)絡(luò)網(wǎng)關(guān)的設(shè)計(jì)與實(shí)現(xiàn)[J];電子學(xué)報(bào);2012年04期
6 夏琳琳;谷麗君;王建國(guó);楊冰;;CAN總線與ZigBee無(wú)線網(wǎng)絡(luò)網(wǎng)關(guān)的設(shè)計(jì)[J];化工自動(dòng)化及儀表;2012年01期
7 張參參;張本宏;王躍飛;韓江洪;;支持ISO15765的FlexRay/CAN網(wǎng)關(guān)的研究與設(shè)計(jì)[J];計(jì)算機(jī)研究與發(fā)展;2010年S1期
8 江海峰;甄陽(yáng)清;傅毅;;礦井無(wú)線傳感器網(wǎng)絡(luò)的網(wǎng)關(guān)設(shè)計(jì)[J];計(jì)算機(jī)工程;2009年03期
9 王芳;柴喬林;班艷麗;;一種改進(jìn)的ZigBee mesh網(wǎng)絡(luò)路由算法[J];計(jì)算機(jī)應(yīng)用;2008年11期
10 陳明;宋寶;唐小琦;;基于DSP和FPGA的網(wǎng)絡(luò)轉(zhuǎn)換網(wǎng)關(guān)[J];計(jì)算機(jī)應(yīng)用;2011年10期
本文編號(hào):2078005
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2078005.html