找回密码
 立即注册

微信扫码登录

楼主: Flole

[BLE SDK] Missing retransmits causing connection drops

[复制链接]

48

主题

290

回帖

1089

积分

版主

积分
1089
发表于 7 天前 | 显示全部楼层 来自 上海
The retransmission mechanism is part of the protocol and there is no possibility of it being shut down. Additionally, from the packet capture data you provided, I couldn't find any errors in the SN and NESN sections. The peripheral devices only transmit the next packet after receiving the ACK signal.

3

主题

27

回帖

223

积分

华贵铂金

积分
223
 楼主| 发表于 7 天前 | 显示全部楼层 来自 德国
Indeed there is nothing wrong with the SN and NESN, but that's been the case in https://forum.telink-semi.cn/for ... d=1024&pid=3198 aswell. The packet is simply missing as if it was never transmitted in the first place, but the debug logs clearly show that it was queued/scheduled for transmitting. Why could that be?

3

主题

27

回帖

223

积分

华贵铂金

积分
223
 楼主| 发表于 6 天前 | 显示全部楼层 来自 德国
I just found another case which shows it more clearly: The central asks for a retransmit as it never received packet 4 but the peripheral does not retransmit but sends an empty PDU instead. It should re-transmit the Error-Response (Attribute not found) until the central acknowledges it. Instead in packet 6 the peripheral sends an empty PDU but with the sequence number 1 again, indicating a retransmit but the data is missing. I am seeing this everytime a packet goes missing, also with the sample code.

MissingPackets.zip

817 Bytes, 下载次数: 2

48

主题

290

回帖

1089

积分

版主

积分
1089
发表于 6 天前 | 显示全部楼层 来自 上海
Do you mean that if I use the sample code, I can directly see this problem? If that's not the case, please kindly provide entire code.

3

主题

27

回帖

223

积分

华贵铂金

积分
223
 楼主| 发表于 5 天前 | 显示全部楼层 来自 德国
Yes, I used the ble_sample without any modifications for testing.

48

主题

290

回帖

1089

积分

版主

积分
1089
发表于 5 天前 | 显示全部楼层 来自 上海
We'll test it with B85m_BLE_Single_Connection_SDK_v3.4.2.4_patch0004. Also, I would like to know about parameters such as connection interval, connection latency, etc

3

主题

27

回帖

223

积分

华贵铂金

积分
223
 楼主| 发表于 昨天 19:42 | 显示全部楼层 来自 德国
The interval was 2998.75 milliseconds, latency 0, supervision timeout was 32 seconds.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2025-9-16 11:46 , Processed in 0.096598 second(s), 22 queries .

Powered by Telink 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

快速回复 返回顶部 返回列表