freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

基于cc2430無線信道選擇的軟件設計畢業(yè)論文-資料下載頁

2025-06-26 17:09本頁面
  

【正文】 網(wǎng)絡結構查看當前網(wǎng)絡結構,無線傳感器網(wǎng)絡會自動生成不同的網(wǎng)絡結構如圖 415,圖 416,圖 417 所示:圖 415 網(wǎng)絡結構 圖 416 網(wǎng)絡結構基于 CC2430 無線信道選擇的軟件設計圖 417 網(wǎng)絡結構通過程序在串口調試助手中的運行可以看到程序的基本功能,顯示信道信息和更改信道。隨后通過監(jiān)控軟件查看了程序在各個傳感器中的運行情況,可以看到各傳感器運行正常,傳感器與匯聚節(jié)點之間的信息傳輸正常。驗證了程序的正確性?;?CC2430 無線信道選擇的軟件設計結論本課題是基于 CC2430 無線信道選擇的軟件設計。在能夠熟練掌握基于CC2430 的無線傳感器網(wǎng)絡原理以及其開發(fā)環(huán)境的安裝和運行基礎上,深入學習nesC 語言的編程規(guī)則及運用,完成了關于無線信道的軟件設計。掌握無線傳感器網(wǎng)絡硬件環(huán)境的搭建,通過對程序的編譯和運行驗證了軟件設計可行性和正確性?;?CC2430 無線信道選擇的軟件設計致謝 基于 CC2430 無線信道選擇的軟件設計參考文獻[1]. 王小強,歐陽駿, 無線傳感器網(wǎng)絡設計與實現(xiàn). 北京:化學工業(yè)出版社,[2]. [M]. 北京: 電子工業(yè)出版社,2022[3]. 潘浩,董齊芬,張貴軍,俞立等. 無線傳感器網(wǎng)絡操作系統(tǒng) TinyOS. 北京:清華大學出版社,[4]. David Gay, Philip Levis, David Culler, Eric Brewer. nesC 語言參考手冊,[5]. 李文仲, 無線網(wǎng)絡技術入門與實戰(zhàn)[M]. 北京: 北京航空航天大學出版社,2022[6]. 崔吉,徐桂云,張燕超,2022 年[7]. 趙洪磊,王英龍,張先毅.無線傳感器網(wǎng)絡熱點問題的研究[J] .信息技術與信息化.2022(2) ;5052[8]. 尹航,張奇松., ZigBee ,(11) ;2023[9]. 成小良, ZigBee 規(guī)范構建大規(guī)模無線傳感器網(wǎng)絡[期刊論文]通信學報,2022(11)[10].任豐原,黃海寧,[J ].軟件學報, 2022,14(7) ,12821291[11].林喜源. 基于 TinyOS 無線傳感器網(wǎng)絡協(xié)議研究[D] ,武漢理工大學;2022 年[12].[J] ,安徽職業(yè)技術學院學報;2022 年 04 期[13].肖本強,張鑫,林之光, CC2430 的 Tinyos 實現(xiàn)[A]。 計算機技術與應用進展2022——全國第 18 屆計算機技術與應用(CACIS)學術會議論文集[C]。2022 年[14].李婧,趙保華,[J],微型機與應用。2022 年 09 期[15].趙得斌,陳遠知, OS[J],中國傳媒大學學報( 自然科學版)。2022 年 04 期[16].韓樹人,溫如春,王軍. 無線傳感器網(wǎng)絡中的 nesC 嵌入式編程語言, 《單片機與嵌入式系統(tǒng)應用》 ;2022 年 05 期.[17].呂治安,ZigBee 網(wǎng)絡原理與應用開發(fā) ,北京航空航天大學出版社,2022基于 CC2430 無線信道選擇的軟件設計[18].紀晴,段陪永,基于 ZigBee 的無線傳感器網(wǎng)絡協(xié)議研究與實現(xiàn),傳感器世界,13(10):30~35,2022[19].順舟科技提供的技術文檔,ZigBee 技術應用概述,[20].成都無線龍公司提供的參考文檔,CC2430 成都無線龍公司提供的參考文檔, ZigBee 基于 CC2430 無線信道選擇的軟件設計附錄附錄一程序代碼應用程序模塊define DBG_LEV 1000module SetRFChannelM{uses {interface Boot。interface StdControl as UartStdControl。interface UartStream。interface AMSend。interface Receive。interface Packet。interface AMPacket。interface CC2520Config。interface SplitControl as RFControl。interface Leds。}}implementation{enum{MAX_CHANNEL = 26,MIN_CHANNEL = 11,MAX_CHANNEL_LEN = 2,INPUT_CHOICE = 0,INPUT_CHANNEL = 1,}。message_t msg。uint16_t count = 0。char m_channel_str[MAX_CHANNEL_LEN] = {0}。uint8_t m_channel_index = 0。uint8_t m_input_type = 0。bool choice = FALSE。task void sendData()。/*顯示菜單*/基于 CC2430 無線信道選擇的軟件設計task void showMenu(){if(m_input_type == INPUT_CHANNEL){/*等待輸入頻道值*/ADBG(DBG_LEV, \r\n* Input new channel(valid range:11~26):\r\n)。m_channel_index = 0。}else{/*選擇是否改變頻道*/ADBG(DBG_LEV, \r\n\r\n* MY nodeId = 0x%x, GROUP = 0x%x, Current Channel = %d, set channel ?(Y/N)\r\n,ADBG_N(call ()),ADBG_N(TOS_IEEE_PANID),ADBG_N(call ()))。m_input_type = INPUT_CHOICE。choice = FALSE。}}uint8_t getChannel(){uint16_t channel = 0。uint16_t i = 0。if(m_channel_index MAX_CHANNEL_LEN){m_channel_index = MAX_CHANNEL_LEN 1。}for ( i=0。 i m_channel_index。 ++i){uint8_t digital = m_channel_str[i]。if(digital = 39。039。 amp。amp。 digital = 39。939。){digital = digital 39。039。}channel = channel*10 +digital。}基于 CC2430 無線信道選擇的軟件設計return channel。} /*設置信道*/task void setChannel(){uint8_t channel。channel = getChannel()。if(channel = 11 amp。amp。 channel = 26){call (channel)。if(call () !=1){post sendData()。}else{post showMenu()。m_input_type = INPUT_CHOICE。}ADBG(DBG_LEV, \r\n**Set Channel OK!\r\n)。}else{ADBG(DBG_LEV, \r\nInvalid Channel input\r\n)。post showMenu()。}} /*發(fā)送數(shù)據(jù)*/task void sendData(){uint8_t i。uint8_t* payload = call (amp。msg, NULL)。uint16_t address = call ()。uint16_t dest_address = 1。count++。payload[0] = count。payload[1] = count 8。ADBG( DBG_LEV, \r\n\r\n* Sending ... from [%d], to [%d], len=[%d]\r\n,ADBG_N(address),ADBG_N(dest_address),基于 CC2430 無線信道選擇的軟件設計ADBG_N(sizeof(count)))。call (dest_address, amp。msg, sizeof(count))。call ()。}/*發(fā)送完處理*/event void (message_t* msg, error_t success){ADBG(DBG_LEV, * Sent%s!\r\n, (success == SUCCESS) ? OK : FAIL)。m_input_type = INPUT_CHOICE。post showMenu()。}/*從串口接收數(shù)*/async event void (uint8_t c){if(c != 39。\r39。){if(m_input_type == INPUT_CHOICE){/*輸入選擇*/ADBG(DBG_LEV, %c, c)。if(c == 39。Y39。 || c == 39。y39。){choice = TRUE。return。}else if(c == 39。N39。 || c== 39。n39。){post sendData()。return。}else{ADBG(DBG_LEV, \r\n invalid input!!\r\n)。基于 CC2430 無線信道選擇的軟件設計post showMenu()。return。}}else{/*輸入頻道值*/if(m_channel_index MAX_CHANNEL_LEN){m_channel_str[m_channel_index++] = c。ADBG(DBG_LEV, %c, c)。}if(m_channel_index MAX_CHANNEL_LEN){return。}}}if(m_input_type == INPUT_CHANNEL){post setChannel()。}else {if(choice ==TRUE) {m_input_type = INPUT_CHANNEL。post showMenu()。}return。}}/*節(jié)點啟動*/event void (){/*開啟射頻*/call ()。/*開啟串口通信*/call ()。call ()。基于 CC2430 無線信道選擇的軟件設計call ()。ADBG(DBG_LEV, \r\n\r\n)。ADBG(DBG_LEV, [SETRFCHANNEL DEMO] My Address = 0x%x, Group = 0x%x\r\n, ADBG_N(call ()), ADBG_N(TOS_IEEE_PANID))。ADBG(DBG_LEV, \r\n)。m_input_type = INPUT_CHOICE。post showMenu()。}/** 實現(xiàn)接口 RFControl 接口中的事件*/event void (error_t result){}event void (error_t result){}/** 實現(xiàn)接口 UartStream 接口中的事件*/async event void (uint8_t* buf, uint16_t len, error_t error){}async event void (uint8_t* buf, uint16_t len, error_t error){}event void (error_t err){}/*射頻接收數(shù)據(jù)*/event message_t* (message_t* msg, void* payload, uint8_t len){uint8_t i。ADBG(DBG_LEV, \r\n*Receive, len = [%d]\r\n, ADBG_N(len))。call ()?;?CC2430 無線信道選擇的軟件設計m_input_type = INPUT_CHOICE。post showMenu()。}}應用程序組件configuration SetRFChannelC{}implementation{ponents SetRFChannelM。ponents MainC。 MainC。ponents LedsC。 LedsC。ponents ActiveMessageC。 ActiveMessageC。 ActiveMessageC。 ActiveMessageC。define AM_DATA_TYPE 124 [AM_DATA_TYPE]。 [AM_DATA_TYPE]。ponents CC2520ControlC。 CC2520ControlC。ponents PlatformSerialC。 PlatformSer
點擊復制文檔內容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1