Page 1 of 1

BLE and raspberry

Posted: Thu Sep 10, 2020 8:58 pm
by IHOXOHI
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.

Re: BLE and raspberry

Posted: Thu Sep 10, 2020 11:49 pm
by jimmo
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.

Re: BLE and raspberry

Posted: Fri Sep 11, 2020 7:55 pm
by IHOXOHI
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.