Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using COC server and send is stalled, disconnects are not detected #1421

Open
bvdberg opened this issue Dec 14, 2022 · 2 comments
Open
Assignees

Comments

@bvdberg
Copy link
Contributor

bvdberg commented Dec 14, 2022

We have an NRF5340 device running Nimble Peripheral. It has a COC server and a GATT server. We connect from a PC application and the device starts streaming data to the PC. Sometimes we get a stalled, then unstalled and everything continues. But sometimes we get a stalled and the PC side gets a disconnect (Connection time-out). The Nimble side doesn't give a GAP disconnect event and just nothing. It never detects the disconnect. We tried manually disconnecting (using both ble_l2cap_disconnect and ble_gap_terminate (both return 0), but nothing happens. Maybe some bottom layer/queue is still locked?

@rymanluk
Copy link
Contributor

Do you possibly have any logs to share?

@bvdberg
Copy link
Contributor Author

bvdberg commented Jan 20, 2023

Nothing is logged in the device. The PC side detects a connection drop (and starts trying to re-connect). The Device (Nimble) side doesn't log anything special. The device is still running (blinking LEDs etc). Could it be that it runs out of a command buffer and cannot get a disconnect message up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants