摘 要:ZigBee技術具有低復雜度,低功耗、低成本等優勢,在監測和控制領域具有廣闊的應用前景。分析了ZigBee網絡的優點,提出利用以ZigBee協議為基礎的射頻芯片模塊實現無線串口的設計,進一步拓展串口的應用范圍。經過實踐驗證,該設計方法可靠,操作簡單方便,功耗小,成本低,同時可以實現多機通信,適合于低速率的數據傳輸,具有廣闊的應用前景。關鍵詞:ZigBee; CC2430; 無線串口; 多機通信
中圖分類號:TN925-34文獻標識碼:A
文章編號:1004-373X(2010)18-0151-03
Serial Communication Based on Wireless Sensor Network Nodes
GAO Shan, YUAN Jie
(School of Electronics Science and Engineering, Nanjing University, Nanjing 210046, China)
Abstract: Because of the advantages of low complexity, low power and low cost, ZigBee technique has wide application in the fields of monitoring and control. This design analyzes the advantages of ZigBee network, and proposes the wireless serial port design achieved by ZigBee-based RF chip module, the application of serial port is expanded. The experiment verifies that it has reliable method, easy operation, low power consumption and low cost, and its multi-machine communication can be achieved. It is suitable for low-speed data transmission, and has broad application prospects. Keywords: ZigBee; CC2430; wireless serial interface; communication of multi-computer
0 引 言
隨著計算機應用的普及,計算機與計算機、計算機與數據終端間的通信應用日益廣泛,由于電氣標準相對成熟和完善,串口通信在其中的應用十分廣泛。但在通信設備距離相對較遠或者有線電纜鋪設不便的情形下,無線串口通信的實現將有利于拓展串口的應用范圍,同時有效節約資源。當前無線串口通信的實現主要依靠藍牙、紅外、WIFI等技術,但藍牙和紅外的推廣都受到距離、功耗的限制,紅外適用于單對單的直接通信,距離限制在1~2 m;藍牙的距離也僅在10 m左右,并且WIFI和藍牙系統的建設和使用成本都遠遠高于ZigBee系統,且ZigBee具有低功耗、高通信距離等優點,在無線串口的實現中具有明顯的優勢。本系統利用以ZigBee協議為基礎的射頻芯片CC2430模塊實現無線串口技術,利用CC2430自帶的UART模式,向下兼容RS 232協議,有很強的應用性和推廣性。利用ZigBee網絡架構無線串口在設備數目較多,拓撲相對復雜,互相通信需要穿越墻體等障礙物時,具有通信距離遠,功耗低,安全可靠的優點[1-2]。……