Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5010

MicroPython • Pico W bluetooth pairing

$
0
0
Good morning!

I am trying to get the Pi Pico W to perform a bluetooth pair with a windows 10 system. Has anyone had luck getting that to work? I am using the code from

https://github.com/Heerkog/MicroPythonB ... ree/master
hid_services.py and examples/simple/mouse_example.py

and it seems to interact with the BT radio on the W just fine; Windows discovers the device and attempts to pair, giving a 'Connecting' message. On the board itself I get the messages indicating a connection ie "Central connected: 64".. however then nothing happens for ~40 seconds, I get a 'Central disconnected: 64' and a 'Try connecting your device again' on windows..

Pairing with an Android device yields a similar result, the pairing process starts but then fails to complete.

Anyone had success having a W pair with a windows system using micrpython? If so, could you point me at your code? thank you!

NOTE: I did find I needed to power-cycle the board every time running the script; if I stopped and restarted the script the BT 'active' call activating the radio would error/timeout. I also saw windows sends a '_IRQ_GATTS_READ_REQUEST' which I implemented to return 'None' and same result. Android does not make this request and also fails to pair, so I dont think its that.

Statistics: Posted by gregatragenet — Mon Apr 01, 2024 3:44 pm — Replies 0 — Views 28



Viewing all articles
Browse latest Browse all 5010

Trending Articles