雷竞技电竞平台Dialog半导体客户支持- LLC_TASK https://support.dialog-semiconductor.com/resource-keywords/llctask LLC_TASK卡在LLC_ENC_WAIT_LTK https://support.dialog-semiconductor.com/llctask-stuck-llcencwaitltk < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨对话框中,< / p > < p >我一直观察我的行为应用程序,我可以做广告没有问题,但我不能连接。
外设一直返回0x3E错误(连接无法建立)。这个行为只能通过应用复位来修复

通过调试,可以确认应用程序任务上的一切运行正常,GAPM任务正在运行,定时器正在运行。

但是,当我检查LLC_TASK的状态(ke_state_get(LLC_TASK))时,我得到0x0D的状态(LLC_ENC_WAIT_LTK),
我通过定时器定期检查它,它从不改变。
此行为发生在断开连接后(可能是错误断开),很少发生。我可以复制
这个行为:

1。连接外围设备
使用app_easy_gap_disconnect()强制断开中心与外围设备的连接,同时
Disconnecting _from_ central (in this case, iPhone)
4. Trying to connect again

After step 2. and 3. The disconnection status on peripheral is either 0x16 (disconnection from local) or 0x13 (disconnection
from remote). When the behavior happened, the disconnection will almost certainly show 0x13. I am guessing that
this is a timing-related problem when there are disconnection request from both side at almost the same time.

Like I said, this happens really rarely, but I can reproduce it after trying several time every time.

My question is, when LLC task is stuck at LLC_ENC_WAIT_LTK status, is it right to assume that connection is impossible?
furthermore, do you have any recommendation to prevent this kind of error?

I am using Murata Type ZY that includes DA14580. And using app_barebone example of SDK5.

Overall, I am satisfied with the example provided by Dialog and their support on this website. However,
it is still really hard to debug errors that possibly comes from lower level tasks such as this.

Thanks in advance
Isa

Device: 
星期二,2016年1月12日06:43:19 +0000 meriororen 2550年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/llctask-stuck-llcencwaitltk#comments