找回密码
 立即注册

微信扫码登录

楼主: Flole

[BLE SDK] Missing retransmits causing connection drops

[复制链接]

3

主题

31

回帖

275

积分

华贵铂金

积分
275
 楼主| 发表于 2025-9-10 01:53:01 | 显示全部楼层 来自 德国
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, 下载次数: 3

48

主题

306

回帖

1137

积分

版主

积分
1137
发表于 2025-9-10 16:58:55 | 显示全部楼层 来自 上海
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

主题

31

回帖

275

积分

华贵铂金

积分
275
 楼主| 发表于 2025-9-11 05:36:51 | 显示全部楼层 来自 德国
Yes, I used the ble_sample without any modifications for testing.

48

主题

306

回帖

1137

积分

版主

积分
1137
发表于 2025-9-11 15:56:26 | 显示全部楼层 来自 上海
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

主题

31

回帖

275

积分

华贵铂金

积分
275
 楼主| 发表于 2025-9-15 19:42:57 | 显示全部楼层 来自 德国
The interval was 2998.75 milliseconds, latency 0, supervision timeout was 32 seconds.

48

主题

306

回帖

1137

积分

版主

积分
1137
发表于 2025-9-16 16:16:03 | 显示全部楼层 来自 上海
ok. I will test this case

0

主题

12

回帖

64

积分

不屈白银

积分
64
发表于 2025-9-18 20:14:04 | 显示全部楼层 来自 上海
Based on the test method and parameters you provided, I conducted the tests. However, it's quite difficult for me to encounter packet loss in my testing environment, so I haven't been able to reproduce the issue of unretransmittable packets that you mentioned.

3

主题

31

回帖

275

积分

华贵铂金

积分
275
 楼主| 发表于 2025-9-19 00:23:04 | 显示全部楼层 来自 德国
I know its hard to simulate, in my environment we have lots of interference so unfortunately it happens quite often here. Maybe you can use a second TLSR8251 as a central and modify the bluetooth stack to ignore all packets if a GPIO pin is high/low. Then you can simulate packet loss by simply pressing a button. If a packet is not retransmitted when you pushed the button and ignored the original packet then you have managed to reproduce it

0

主题

12

回帖

64

积分

不屈白银

积分
64
发表于 2025-9-19 15:39:15 | 显示全部楼层 来自 上海
We will attempt to reproduce the issue following the method you described.

0

主题

12

回帖

64

积分

不屈白银

积分
64
发表于 2025-9-22 16:03:37 | 显示全部楼层 来自 上海
Hi,  I conducted the test as per your method. As shown in the figure, when the central device does not receive the data packet, the peripheral device will resend the packet.


企业微信截图_17585279948612.png 企业微信截图_17585280401641.png

We conducted the test using the professional Bluetooth packet capture tool Ellisys. Could you please confirm whether the issue is caused by the packet capture tool on your side?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2025-10-12 17:53 , Processed in 0.095913 second(s), 21 queries .

Powered by Telink 隐私政策

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

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