This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

basicRfPacketIsReady() 函數 return false

Other Parts Discussed in Thread: CC2530

大家好
自己近來在CC2530上配置Security CCM,好讓資料在加密的情況下傳輸
一開始先以兼簡單的點對點傳輸做測試

並以TI packet sniffer驗證看封包有沒有問題

我發現在配置CCM之後,接收端的指示燈沒有正常運作,於是下了好幾個中斷點發現程式卡死在basicRfPacketIsReady函數

看了看datasheet,了解到此函數的回傳值必須要是true才能跳出無窮迴圈,而true的條件得讓FCS和Sequence number兩個參數符合預期

FCS我用packet sniffer驗證過是沒問題(顯示OK)
偏偏Sequence number在各篇datasheet都是輕描淡寫,我目前找不到方法來驗證它的正確性
只曉得在packet sniffer中,sequence number會隨著我發送封包而遞增
再麻煩各位前輩賜教