Bluetooth will not start - Pi zero 1.2 and Pi 2 B V 1.1


#1

Hi - I have followed instructions on the github site: https://github.com/redbear/IoT_pHAT and reconfigured /lib/systemd/system/hciuart.service

Raspbian Jessie lite, fully updated as of today.

Get the following from
systemctl status hciuart.service

hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: start-limit) since Tue 2016-08-09 14:36:01 UTC; 3min 51s ago
  Process: 1019 ExecStartPre=/usr/bin/gpio -g write 5 0 (code=exited, status=203/EXEC)

Any other troubleshooting options?

If it’s relevant, I am getting very slow performance over ssh using the wifi on the board too

Edit - same issue on a Pi 2 B v1.1


List of software dependencies
#2

Hi,

Can you please check is there any gpio command you have?

$ gpio -v

If no, please try to use this to install,

$ sudo apt-get install wiringpi


#3

Hi - many thanks.
Wiringpi was not installed.
Installing wiringpi has got the bluetooth module working.

Might be worth noting that on the wiki :slight_smile:


#4

Hi there!
I’m having a similar problem here, although the message I get is slightly different

 hciuart.service - Configure Bluetooth Modems connected by UART
   Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
   Active: failed (Result: exit-code) since Thu 2016-09-01 12:17:16 UTC; 22h ago
  Process: 475 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)

I have not been able to make the bluetooth work at all, even though I have tried almost every single option posted around here. My EEPROM is updated showing IoT pHAT w/eep_v0.3when I run cat /proc/device-tree/hat/product,
and gpio -v shows:

gpio version: 2.32
Copyright (c) 2012-2015 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi 2, Revision: 01, Memory: 1024MB, Maker: Sony 
  * Device tree is enabled.
  * This Raspberry Pi supports user-level GPIO access.
    -> See the man-page for more details
    -> ie. export WIRINGPI_GPIOMEM=1

Any ideas?


#5

I am also running into the same problem, and have pretty much the same output as yours (i have changed the uart_clock value and installed Wiringpi).

apt-get update/upgrade helped to get the wifi to work, but not the bluetooth. I have tried to reinstall all my blue tooth related packages - bluetooth, bluez-utils, blueman, bluez, python-gobject, and python-gobject-2. They worked with my usb bluetooth dongle, and still no luck. Whenever I pull up the GUI bluetooth interface, it just tells me that no adapter available.

This is the code I am getting after gpio-v (I am using Raspbian Jessie as well)

gpio version: 2.26
Copyright (c) 2012-2015 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
Type: Model 2, Revision: 1.1, Memory: 1024MB, Maker: Sony 

This is what i am getting from systemctl status hciuart.service

● hciuart.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

I am pretty new to this so any help would be helpful!

Thanks!


#6

I get this info back from the Pi

● hciuart.service - Configure Bluetooth Modems connected by UART
Loaded: loaded (/lib/systemd/system/hciuart.service; disabled)
Active: inactive (dead)

How do I get the service active? (what is the command?)
Thanks


#7

I have Blurtooth working. I started with serching on raspberrypi.org.
At https://www.raspberrypi.org/learning/robo-butler/bluetooth-setup/ I found wath I was searching for.

At the command line type sudo apt-get install --no-install-recommends bluetooth.
Once the software is installed, type sudo service bluetooth status.
You should see bluetooth is running.

After that I did an update which gave me also the new pixel screen which is verry nice.
Type
sudo apt-get update
sudo apt-get dist-upgrade
and reboot. Now it works for me both wifi and bluetooth…
Hope it will help you to.
Ragards


#8

for me, wifi works fine but bluetooth isnt even recognized. usb bluetooth dongles work so I know the software side is ok. tried on 2 pi zeroes and a few distros.

tried the command “gpio readall” but still trying to figure it out hehe

edit: fixed! didnt have the pi-bluetooth package installed.


#10

Thanks for your sharing.


#12

Hey There,

Do you mind sharing how you installed the pi-bluetooth package? I am current using

“sudo apt-get install pi-bluetooth” but i am getting “E: Unable to locate package pi-bluetooth” message.

Let me know. Thank you!


#13

I’ve tried the same thing but I am still getting this…

● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)

Let me know if you have any suggestions.

Thanks!


#14

Hi,

I have a similar problem with an IoT pHAT: wifi works, but I can’t get bluetooth going.

System: Pi zero 1.2, Raspbian Jessie September 2016 updated and upgraded

I have changed the uart clock to 4Mhz, checked that wiringpi is installed, checked that the bluetooth service is running, and tried modifing the hciuart.service file…

However, ‘systemctl status hciuart.service’ returns:

● hciuart.service - Configure Bluetooth Modems connected by UART
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
Active: failed (Result: exit-code) since Sat 2016-11-26 18:18:01 GMT; 20min ago
Process: 367 ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow (code=exited, status=1/FAILURE)

What else can I try?