Bluefruit LE UART Friend : no adapter available

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jakobt
 
Posts: 19
Joined: Thu Apr 03, 2014 7:18 pm

Bluefruit LE UART Friend : no adapter available

Post by jakobt »

Hello there,
I have a Motorshield v2.3 stacked on a Metro Express M4 running with circuit Python.
To control my project i added an 'Adafruit Bluefruit LE UART Friend - Bluetooth Low Energy (BLE)' on top on the motorshield.
I connected the pins according to the BLE guide and used https://docs.circuitpython.org/projects ... mples.html code to test the Bluetooth device.
With my phone app i seem to be able to connect to the ble device.
But when im running the code i get the runtime error: no adapter available
What am I doing wrong?
Thanks, J

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bluefruit LE UART Friend : no adapter available

Post by mikeysklar »

Can you show the full messages from the REPL console.

Which one of the examples are you running from the examples page you linked to.

User avatar
jakobt
 
Posts: 19
Joined: Thu Apr 03, 2014 7:18 pm

Re: Bluefruit LE UART Friend : no adapter available

Post by jakobt »

Below is the full message.
I use the 1st example (examples/bluefruitconnect_simpletest.py).
There seems to be a problem with the command ble = BLERadio()

Press any key to enter the REPL. Use CTRL-D to reload.
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 16, in <module>
File "adafruit_ble/__init__.py", line 162, in __init__
RuntimeError: No adapter available

Code done running.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bluefruit LE UART Friend : no adapter available

Post by mikeysklar »

This setup with an M4 and add-on Bluefruit LE UART is not going to work with CircuitPython. At least there is not example code to get you there. You can use a Feather nRF52 board to have BLE + CircuitPython. Any nRF52 variant that Adafruit sells would be an option.

User avatar
jakobt
 
Posts: 19
Joined: Thu Apr 03, 2014 7:18 pm

Re: Bluefruit LE UART Friend : no adapter available

Post by jakobt »

Hello,
Thank you for the update.
Since the setup M4 with Bluefruit and Circuit Python is not working,

Is the setup M4 and add-on Bluefruit LE UART working with Arduino IDE (C)?
I tried the using the example sketches form the Arduino IDE (C) but I cannot even get the factory reset sketch to work.

It always shows me the message:
Initialising the Bluefruit LE module: OK!
Performing a factory reset:
AT+FACTORYRESET

<- Couldn't factory reset


Is there something I can do or is there no way to controll the Metro M4 via Bluefruit LE?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bluefruit LE UART Friend : no adapter available

Post by mikeysklar »

You can force a hardware reset by holding the DFU pin low for more than five seconds.

If that does not resolve it can you post a photo of your wiring / soldering?

Suggestion: If you really want to use BLE with your setup please consider using a nRF52 board. Adafruit has tons of helpful guides than blend high performance processors, memory and BLE with the nRF52 boards. The Bluefruit LE UART product is intended for an earlier generation of processors that didn't have wireless built-in. The libraries for Arduino and CircuitPython can probably be made to work, but the guides don't address modern hardware like the Metro M4.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”