Replies: 1 comment 13 replies
-
Can you run There is also a debug mode on the Pico. Set BTStackLib was last updated by the BTStack guys about 7-8 years ago and it could be that you're hitting some bitrot in it. There was a recent discovery and fix #2968 using the above debug process. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to begin by stating what I am trying to accomplish, followed by the problem I am currently experiencing.
I am attempting to build a version of Telemtrix for the RPi Pico W that uses BLE as its data transport. The WIFI version works without issue. I have built a Telemetrix version for the ESP32 and Arduino Uno R4 WiFi, both of which utilize the BLE Nordic BLE UART service.
I started by running the BTstack peripheral example from the Arduino IDE. Although there is a comment at the top of the code, I was still able to compile and run it. I was able to connect to it using the LightBlue iOS app and could send and receive data.
Now the issue. If I use a Python client that works for the UNO R4 and ESP32, I am unable to connect to the BTStack peripheral. I receive a timeout message. The device is detected when I run a scan, but I am unable to establish a connection with it.
Do you know why I can connect using my phone app, but not run a Bluetooth Python program that works for two other processor boards?
To sum up, I have two working examples of using Python to communicate with a BLE peripheral. Both of these working examples utilize similar Python code that utilizes the Bleak library, and the peripherals are built using ArduinoBLE.
For the RPi Pico W, I can run the BTstack example only if I connect using an iOS app. Connection fails with similar code used for the two other microcontroller boards.
Here is the code for the peripheral:
And now the Python client.
Beta Was this translation helpful? Give feedback.
All reactions