BLE and raspberry

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
IHOXOHI
Posts: 112
Joined: Sat Apr 25, 2020 7:31 am

BLE and raspberry

Post by IHOXOHI » Thu Sep 10, 2020 8:58 pm

Hi,

I tried to use the new function of bluetooth...
After a litlle moment on the doc, fortunatly I have found examples of use by Damien.

The example of BLE_peripheral works for me, but my rasp can't do anything more than connection...No?

So, I tried the example of BLE_uart_repl, but my rasp respond : "Pairing failed - GDBus.Error:org.bluez.Error.InProgress: In Progress"

I have seen the topic on BLE and Temperature with 2 pyboard-d which looks working.

So, have I to use an other pyboard-d connected to my rasp for check the first one in repl session?
Or how configure a computer for initiate a repl session by BLE connection?

Thanks.

User avatar
jimmo
Posts: 2232
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: BLE and raspberry

Post by jimmo » Thu Sep 10, 2020 11:49 pm

Hi,
IHOXOHI wrote:
Thu Sep 10, 2020 8:58 pm
but my rasp can't do anything more than connection...No?
Can you explain what you're doing on your Raspberry Pi?

What code are you running there?

What board are you running MicroPython on?

Probably the best thing to confirm first is to run something like ble_temperature.py on your board, and try and connect from the "nRF Connect" app on your phone.

IHOXOHI
Posts: 112
Joined: Sat Apr 25, 2020 7:31 am

Re: BLE and raspberry

Post by IHOXOHI » Fri Sep 11, 2020 7:55 pm

Hi jimmo,

Thanks for your help.
It doesn't matter for the rasp for moment, and I don't have smartphone.
I tried BLE.temperature with 2 pyboard-d ; it's allright although I don't understand the values which are very low.

But the uart_repl dosen't works for me... between 2 pyboard-d, one in peripheral mode, and the other in BLE_uart_repl mode.
Maybe the BLE_repl abilitie is not operationnal yet?

Thanks.

Post Reply