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

Disconnected Reason 19 #1712

Open
neil-brik opened this issue Jan 17, 2025 · 5 comments
Open

Disconnected Reason 19 #1712

neil-brik opened this issue Jan 17, 2025 · 5 comments

Comments

@neil-brik
Copy link

Hello,

I've got a Nordic nrf52dk running peripheral_uart and I'm using the uart_service.py example to try and connect to it. However this doesn't connect and the RTT Viewer gives the error below repeated:

00> [21:24:23.761,810] <inf> brikwiz_base: Connected D4:D8:53:4C:5D:23 (public) 00> [21:24:24.115,875] <inf> brikwiz_base: Disconnected: D4:D8:53:4C:5D:23 (public) (reason 19)

Interestingly this also happens when you try to connect with the windows bluetooth console. Is there a way to understand what is happening here as it'll be much easier if I can communicate to the device with a windows machine.

Thanks.

Cheers,

Neil

@dlech
Copy link
Collaborator

dlech commented Jan 17, 2025

The best way to see what is going on at a lower level is to log Bluetooth packets with Wireshark as described in the troubleshooting page of the docs.

@neil-brik
Copy link
Author

neil-brik commented Jan 17, 2025 via email

@neil-brik
Copy link
Author

neil-brik commented Jan 20, 2025

Hello,

That's done; looking at the packet exchange we seem to be receiving the following:

1027 15.146039 controller host HCI_EVT 7 Rcvd Command Complete (LE Set Extended Scan Enable)
1028 15.379031 controller host HCI_EVT 7 Rcvd Encryption Change
1029 15.379126 host controller HCI_CMD 7 Sent Disconnect

For some reason when we get encryption change this cause the windows computer to disconnect; I can't attach the full trace but it is available here. Do you have any ideas as to the reason it is disconnecting and can I avoid it?

Has anyone else managed to get this example working in windows?

Cheers,

Neil

@dlech
Copy link
Collaborator

dlech commented Jan 20, 2025

Sounds just like this discussion: #1708

@neil-brik
Copy link
Author

neil-brik commented Jan 20, 2025 via email

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