在IEEE802.15.4網路中,路由器無法進入休眠模式來節省電力的消耗,因此長時間下來會造成大量的電力浪費。在原本的IEEE802.15.4的CSMA/CA協定,並沒有執行通道偵測的動作,容易產生封包碰撞,因此也會造成節點產生了不必要的能量消耗。基於以上兩點的原因,在本論文之中,我們使用CC2530設計一個基於IEEE 802.11 CSMA/CA協定的無線感測網路平台。在硬體相關的程式設計,包含RF的驅動程式、MAC Timer驅動程式、相關中斷服務程式、完成了通道偵測方法以及基本的CSMA/CA協定,目前已完成可以傳輸資料的雛型系統,可以多點傳輸封包。未來也可以利用這個平台,進行相關的無線感測網路的媒體存取層協定的開發與驗證,如常見的S-MAC協定。
In IEEE 802.15.4 networks, routers cannot enter sleep mode to reduce power consumption and runs out of battery power quickly. In addition, the implementation of CSMA/CA protocol in IEEE 802.15.4 is different from that in IEEE 802.11. Because a node does not perform channel sensing during backoff, a collision may occurs when a node transmit a packet. As a result, IEEE 802.15.4 is unsuitable for wireless sensor networks (WSN). In this thesis, we design and implement the CSMA / CA protocol based on IEEE 802.11 by TI CC2530 for wireless sensor networks. For hardware-related programming, we have implemented the RF driver, the MAC Timer driver, the interrupt service routines, the channel sensing mechanism, and the two-way handshaking CSMA/CA protocol. A prototype platform was built and packets are successfully delivered between multiple nodes. In the future, the platform can be extended to a complete media access control (MAC) layer suitable for wireless sensor networks, such as the well-know S-MAC.