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.

cc2540 broadcast frame

Other Parts Discussed in Thread: CC2540

TI 好

我使用 cc2540, blue stack 為 1.4 , project-SimpleBLEBroadcast

我該如何去調整廣播的 frame? 比如我想要設定3個 frame,它就可以廣播 37→38→39

                                                                                                                 37→38→39

                                                                                                                  37→38→39

謝謝                                                                                                                 

  • Bernie ,

    如果你的意思是想用不同的3个frame进行广播的话,你可以先广播第一个frame一段时间, 然后停止广播,把广播内容改成第二个frame, 再广播一段时间,再改成第三个frame, 再广播一段时间,这样循环就行。

  • 感謝TI的回覆

    cc2540 在channel 37 38 39 廣播,為一個 frame,因為我現在只能用 osal_start_timerEx( taskid, event_name, x ),設定 x 秒後進入 event 把廣播關掉,來算出幾個 frame。

    例如: 客戶想要六個 frame , 37→38→39

                                                        interval time

                                                        37→38→39

                                                        interval time

                                                        37→38→39

                                                        interval time

                                                        37→38→39

                                                         interval time

                                                        37→38→39

                                                        interval time

                                                        37→38→39

    假設 interval time = 200ms

    我帶入公式 x = (6-1)*200 = 1000,所以osal_start_timerEx( taskid, event_name, 1000) <也就是1秒後關掉 broad cast>來得出有幾個 frame

  • 客戶需要最後一個 frame 為不同的資料,在當我進入 event 更新 advertData 時,它已經發完全部的 frame,我更新 data 時已經來不及。

    謝謝

  • Hello TI

    簡單的問,我可以精準的控制 frame 次數嗎? 

    謝謝