This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

52832 NUS 串口透传部分数据变成了 0

(中文)

我在串口透传 NUS 的例程基础上开发,做了以下修改:

1. 最大传输包长 NRF_SDH_BLE_GATT_MAX_MTU_SIZE  设置成了 247

some data changed to 0 when master received

如上图所示,当蓝牙从机发送数据包时,蓝牙主机接收到的部分字节总会变成 0.

而且变成 0 的字节位置总是固定的。

请问应该如何消除这个问题。

(English)

My development based on BLE NUS examples.

I changed NRF_SDH_BLE_GATT_MAX_MTU_SIZE to 247 for larage package.

but some data changed to 0 when BLE master received.

and it's always the same position in a package, other data is the same with the sender.

How to solve this problem?

  • Hi,

    Are you able to provide a minimal version of your project to let me replicate this here on my side? I will make this case private if it helps. I think the problem must be in the application layer, possibly on the master side. Because packets that are correctly passed to the Softdevice's send function are more or less guaranteed to be sent and received correctly.

    Best regards,

    Vidar

Related