基于CAN和ZigBee的混合網(wǎng)絡(luò)網(wǎng)關(guān)的設(shè)計與實現(xiàn)
本文選題:CAN + ZigBee ; 參考:《太原科技大學(xué)》2014年碩士論文
【摘要】:CAN總線是最具代表性的現(xiàn)場總線之一,具有通信速率高、通信距離遠(yuǎn)、無主從節(jié)點、非破壞性仲裁、實時性好、檢錯能力強的優(yōu)點;ZigBee作為一種成熟的無線通信協(xié)議,具有低復(fù)雜度、低成本、低功耗、靈活性強的優(yōu)點。將CAN總線和ZigBee無線網(wǎng)絡(luò)相結(jié)合,使兩者的優(yōu)勢互補,可以擴展兩者的應(yīng)用領(lǐng)域。本課題針對CAN和ZigBee的原理與特點,設(shè)計了一種CAN/ZigBee混合網(wǎng)絡(luò)。 在分析CAN節(jié)點和ZigBee節(jié)點MCU發(fā)展現(xiàn)狀和趨勢的基礎(chǔ)上,本課題選用內(nèi)嵌CAN協(xié)議控制器和收發(fā)器的LPC11C24作為CAN節(jié)點MCU,選用內(nèi)嵌增強型8051內(nèi)核和RF收發(fā)器的CC2530作為ZigBee節(jié)點MCU。在對LPC11C24與CC2530之間通信方式進(jìn)行詳細(xì)分析的基礎(chǔ)上,本課題采用UART在LPC11C24與CC2530之間交換數(shù)據(jù),構(gòu)成雙MCU結(jié)構(gòu)的網(wǎng)關(guān)節(jié)點。 本課題首先完成了CAN總線網(wǎng)絡(luò)和ZigBee無線網(wǎng)絡(luò)軟件設(shè)計,,然后重點進(jìn)行了網(wǎng)關(guān)節(jié)點軟件設(shè)計。網(wǎng)關(guān)節(jié)點軟件設(shè)計主要面臨三個問題:①CAN和ZigBee通信速率不一致;②CAN和ZigBee報文尋址方式不一致;③CAN和ZigBee最大數(shù)據(jù)載荷不一致。針對這三個問題,本課題給出的解決方法為:①在雙MCU中設(shè)置緩存區(qū)并在CC2530中采用DMA方式存儲UART接收數(shù)據(jù);②對CAN數(shù)據(jù)幀標(biāo)識符和數(shù)據(jù)段以及ZigBee數(shù)據(jù)段進(jìn)行重新定義并設(shè)計地址映射表,使CAN和ZigBee數(shù)據(jù)幀中包含源節(jié)點和目標(biāo)節(jié)點的地址信息;③引入碎片機制。 測試結(jié)果表明:本課題設(shè)計的CAN總線網(wǎng)絡(luò)、ZigBee無線網(wǎng)絡(luò)和網(wǎng)關(guān)節(jié)點具有結(jié)構(gòu)簡單,數(shù)據(jù)傳輸有效性和可靠性高的優(yōu)點,為實現(xiàn)CAN和ZigBee的無縫連接提供了一種可行方案。
[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é)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.05;TP273
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 趙海;邵士亮;朱劍;張寬;;一種連接WSN與Internet的多核嵌入式網(wǎng)關(guān)設(shè)計與實現(xiàn)[J];東北大學(xué)學(xué)報(自然科學(xué)版);2012年01期
2 李蛟;楊仁錕;肖峻;;2.4GHz無線技術(shù)標(biāo)準(zhǔn)及ZigBee抗干擾性能[J];電信工程技術(shù)與標(biāo)準(zhǔn)化;2006年03期
3 周惠椒;譚喜堂;朱琴躍;趙亞輝;;ZigBee無線通信技術(shù)在電力監(jiān)控系統(tǒng)中的應(yīng)用[J];低壓電器;2011年18期
4 夏繼強;梁超眾;邢春香;;工業(yè)通信用網(wǎng)關(guān)設(shè)計及其關(guān)鍵技術(shù)研究[J];電子技術(shù)應(yīng)用;2010年02期
5 孫巖;唐紹炬;羅紅;;基于FPGA的多媒體傳感器網(wǎng)絡(luò)網(wǎng)關(guān)的設(shè)計與實現(xiàn)[J];電子學(xué)報;2012年04期
6 夏琳琳;谷麗君;王建國;楊冰;;CAN總線與ZigBee無線網(wǎng)絡(luò)網(wǎng)關(guān)的設(shè)計[J];化工自動化及儀表;2012年01期
7 張參參;張本宏;王躍飛;韓江洪;;支持ISO15765的FlexRay/CAN網(wǎng)關(guān)的研究與設(shè)計[J];計算機研究與發(fā)展;2010年S1期
8 江海峰;甄陽清;傅毅;;礦井無線傳感器網(wǎng)絡(luò)的網(wǎng)關(guān)設(shè)計[J];計算機工程;2009年03期
9 王芳;柴喬林;班艷麗;;一種改進(jìn)的ZigBee mesh網(wǎng)絡(luò)路由算法[J];計算機應(yīng)用;2008年11期
10 陳明;宋寶;唐小琦;;基于DSP和FPGA的網(wǎng)絡(luò)轉(zhuǎn)換網(wǎng)關(guān)[J];計算機應(yīng)用;2011年10期
本文編號:2078005
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2078005.html