Hello,
Welcome to Microsoft Q&A!
I've got some information from the Bluetooth team about this. After checking the log, our engineer found that the peripheral device is not responding to one of our ATT read requests. This request in particular gets no response:
Generally speaking, the Bluetooth connection will be disconnected due to timeout if no response is received. The write request from your app is blocked during that time since we need to finish the pending read first. Since the read fails and causes the app to disconnect from the device, the write request also gets failed after the timeout. As a result, the write attempt never even gets sent in this case; it fails due to a previous command’s timeout.
In the trace which is reported to be succeed. the same issue happens. A read request timeout for the same characteristic followed by a disconnection which causes the pended write from the app to fail. However, it seems like in this case our API did not correctly report that the write failed back to the app. Regardless, no write request was attempted over the air to the peripheral device for the same reason as above.
So the real culprit seems to be that the peripheral device is not responding to ATT_READ_REQ for the Peripheral Preferred Connection Parameters (a.k.a. PPCP). From what our engineer can see in the logs it is not acting as a compliant Bluetooth device should.
You could make use of the Bluetooth Virtual Sniffer tool we provide to better diagnose these kinds of issues: Microsoft Bluetooth Test Platform - BTVS - Windows drivers | Microsoft Learn.
With that tool you would be able to see in real time that the device is not responding to that ATT read request.
Another suggestion is that you could try to use other kind of Bluetooth device to test for your app.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.