RP2040 - Pi Pico W - Micropython- Wifi & bluetooth connection issues. #13615
Replies: 1 comment 1 reply
-
I can't say much about the wifi connections but I have done a lot with the Bluetooth and have no problems with connection. The nightmare is pairing as it has not been configured in the PICO-W port. Neither has Resolvable Privacy Addressing (RPA) which some of the examples in the MicroPython distro use. That error means there is something needed by your code that is not present. Probably advertising configured with adr_mode=2 (RPA) somewhere (just a guess). That will bork. I don't know where you got your sample code. If I could look at it I could probably guess where it is going awry. I used the aioble examples too, but none of them pair. Wrote my own and connection works fine (central). I have lots of health devices I need a central for. I scan for devices Looks like this
Are you interested in a central or a peripheral? (Remember that it is the central that must initiate the connection.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good evening everyone,
I am encountering difficulties in properly configuring my Raspberry Pi Pico W for both Bluetooth and Wi-Fi connections. Below, I detail the steps I've followed and the issues encountered, hoping someone might offer a solution or suggestions.
Environment:
Hardware: Raspberry Pi Pico W.
Firmware: version 1.22.1 (released on 01/05/2024).
IDE: Thonny version 4.1.4.
Operating System: Ubuntu 23.04, but testedeven on Windows 11 always with Thonny.
Guides followed: "Connecting to the Internet with Raspberry Pi Pico W" (updated 06/14/2023),(https://datasheets.raspberrypi.com/picow/connecting-to-the-internet-with-pico-w.pdf) Chapter 6 for Bluetooth in MicroPython.
Scripts tested: ble_advertising.py, picow_ble_temp_sensor.py.
Libraries: Attempted with and without the aioble package installed.
Procedure and Issues Encountered:
I followed the instructions for Bluetooth connection step by step as indicated in the book.
I downloaded and attempted to run the ble_advertising.py and picow_ble_temp_sensor.py scripts.
I used two different Raspberry Pi Pico Ws and switched 2 different USB cables to rule out hardware issues.
The Bluetooth connection does not work, receiving errors:
Testing the Pico W with a basic script to blink an LED, I encounter no problems, indicating the device functions correctly for simple operations. Similar issues occur using both Ubuntu and Windows, suggesting the problem is not related to the operating system.
I tested WI-FI too:
And got similar mistake, e.g.
MPY: soft reboot
Traceback (most recent call last):
File "", line 19, in
OSError: [Errno 1] EPERM
Questions:
Thank you in advance for any help or suggestion you can provide.


Thank you for support.
Beta Was this translation helpful? Give feedback.
All reactions