Cypress技术william hill官网
直播中

张桂芝

7年用户 165经验值
私信 关注
[问答]

BT堆栈上下文切换

您好!
@ MDL
我使用WICD SDK 3.7与BCM943131 WiFi/BT组合芯片。
我们有一个基于Fielrtos的OS,正在启动BT堆栈,以便从外部开放连接。
当BT堆栈处于活动状态时,每隔100ms就会产生一个上下文切换。
上下文切换每秒似乎有点高。我想我真的不能抱怨10个开关,但是有什么东西吗?
在BT协议中真的需要这个吗?不能处理中断驱动吗?
(这是BT是可连接的,但既没有连接,也没有发现,也没有广告。BLE是一个低设置的广告,但没有连接。
当做,
马格努斯

以上来自于百度翻译


     以下为原文
  Hi
@mdl

I'm using Wiced SDK 3.7 with a BCM943341 WiFi/BT combo chip.

We have a FreeRTOS based OS and is starting the BT stack in order to be open for connections from the outside.

When the BT stack is active, it causes a context switch every 100ms. I previously measured this incorrectly, getting >50
context switches per second which seemed a bit high. I guess I can't really complain about 10 switches/s, but is there something
in the BT protocol that really requires this? Can't it be handled interrupt driven?

(This is when BT is connectable, but neither connected, discoverable nor advertising. BLE is adverting on a LOW setting, but is not connected.)

Regards,

Magnus

回帖(1)

魏茂娜

2018-12-17 16:36:16
嗨,马格纳斯,
对于BT协议中的查询,真的需要这样做吗?不能处理中断驱动吗?
a)不能更改为中断驱动。不能对Bt线程进行相同的配置。
谢谢,
安阇那

以上来自于百度翻译


     以下为原文
  Hi Magnus,
 
For your query in the BT protocol that really requires this? Can't it be handled interrupt driven?
A) It can't be changed to interrupt driven. BT thread can't be configured for the same.
 
Thanks,
Anjana
举报

更多回帖

发帖
×
20
完善资料,
赚取积分