jahnvi
Posts: 7
Joined: Thu May 05, 2016 5:02 am

Bluetooth problems on Raspberry pi-jessie

Sat May 28, 2016 11:10 am

Hi,
I am working on raspberry and one wearable device,till now eveything was fine but suddenly on firing command:
sudo hcitool lescan it goes on showing error :Set scan parameters failed: Input/output error.
I tried sudo hciconfig hci0 down,sudo hciconfig hci0 up.Also removed bluez and installed it again but the error remains same.Can anyone suggest me what should i do now?Thanks..

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth problems on Raspberry pi-jessie

Sat May 28, 2016 2:24 pm

What kind of adapter, built-in or dongle? What does 'hciconfig -a' show? Have you tried 'sudo hciconfig hci0 reset'?

jahnvi
Posts: 7
Joined: Thu May 05, 2016 5:02 am

Re: Bluetooth problems on Raspberry pi-jessie

Mon May 30, 2016 6:19 am

Douglas6 wrote:What kind of adapter, built-in or dongle? What does 'hciconfig -a' show? Have you tried 'sudo hciconfig hci0 reset'?
Hi, it is built in..
Output of hciconfig -a is:
hci0: Type: BR/EDR Bus: UART
BD Address: B8:27:EB:DB:FE:E8 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:64424 acl:65 sco:0 events:6340 errors:0
TX bytes:50791 acl:90 sco:0 commands:4340 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'raspberrypi'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 4.1 (0x7) Revision: 0xb6
LMP Version: 4.1 (0x7) Subversion: 0x2209
Manufacturer: Broadcom Corporation (15)
Also i have tried to reset but same response. :cry:

jahnvi
Posts: 7
Joined: Thu May 05, 2016 5:02 am

Re: Bluetooth problems on Raspberry pi-jessie

Mon May 30, 2016 6:25 am

supra wrote:Did u installed latest version for Jessie 2016-05-10?
Hi,it is running on version 8.

jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

Re: Bluetooth problems on Raspberry pi-jessie

Tue Jun 14, 2016 4:26 pm

Hi all,
I don't want to start another thread on this subject.
My problem is that after a few days, the RPi3 bluetooth adapter is not detected anymore. I just did a totally fresh install with this Rasbian May-27-2016 image and booting directly with a HDMI monitor and the bluetooth icon is gray and says No Bluetooth adapter found.

Another problem is that I cannot find raspi-config.
Is raspi-config suppose to be in the menus somewhere? I don't see it now. I suspect that my Pi is dying :(
Apart from hciconfig, is there any other ways to check the bluetooth adapter presence?
Thanks for listening!

this is what I get in a terminal

Code: Select all

pi@raspberrypi:~ $ ps ax | grep blu
  990 ?        Ss     0:00 /usr/lib/bluetooth/bluetoothd
 2654 pts/0    S+     0:00 grep --color=auto blu
pi@raspberrypi:~ $ hciconfig -a
pi@raspberrypi:~ $ 

jahnvi
Posts: 7
Joined: Thu May 05, 2016 5:02 am

Re: Bluetooth problems on Raspberry pi-jessie

Wed Jun 15, 2016 4:40 am

Hi,
Check for bluetooth.service,hciuart.service and bluetoothctl..Other than this use hcidump to know the actual problem.

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Bluetooth problems on Raspberry pi-jessie

Wed Jun 15, 2016 6:40 am

Just checking you are running the update tools. Bluez seems to have been updated a few times along with some firmwares very recently.

Raspi-config should be in the menu in Raspian.

jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

Re: Bluetooth problems on Raspberry pi-jessie

Wed Jun 15, 2016 1:37 pm

I did a fresh install.
apt-get upgrade shows :
"Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded."

1) deamon running but nothing in the bluetooth "sys"

Code: Select all

pi@raspberrypi:~ $ ps ax | grep blu
  461 ?        Ss     0:00 /usr/lib/bluetooth/bluetoothd
 2541 pts/3    S+     0:00 grep --color=auto blu
pi@raspberrypi:~ $ ls /sys/class/bluetooth
pi@raspberrypi:~ $ 
If I install a dongle, sys/class/bluetooth is populated.

2) where in the menu exactly should Raspi-config be? Menu-> xxx -> xxx ?

jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

Re: Bluetooth problems on Raspberry pi-jessie

Wed Jun 15, 2016 6:54 pm

Should the bluetooth interface showed up when I do lshw or hwinfo?

I can see the wifi as wlan0 but no sign of bluetooth. Is it the same MAC address?

This is the last few lines from hwinfo

Code: Select all

36: None 00.0: 1070a WLAN
  [Created at net.125]
  Unique ID: AYEt.QXn1l67RSa1
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "brcmfmac_sdio"
  Driver Modules: "brcmfmac"
  Device File: wlan0
  HW Address: b8:27:eb:9b:f1:19
  Link detected: no
  Config Status: cfg=new, avail=yes, need=no, active=unknown

User avatar
bensimmo
Posts: 4622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Bluetooth problems on Raspberry pi-jessie

Wed Jun 15, 2016 8:24 pm

Menu -> Preferences -> Raspberry Pi Configuration for the GUI version

or type sudo raspi-config in a console window for the text version.



Also I'm assuming you run sudo apt-get update before sudo apt-get upgrade.

I know I recently created a new install (week back or so) and then there have been update.


I'm by no means an expert, just a beginner. Unfortunately have no real experience with debugging Bluetooth other than trying to turn the damn thing off on the Pi3 ;-) oh and attaching a WiiMote to it just to see.

You could also try sudo apt-get install pi-bluetooth to check it installed properly ?
(just something I had to do with an older raspian install to actually get it in the first place).

jam1
Posts: 47
Joined: Tue Oct 21, 2014 5:51 pm

Re: Bluetooth problems on Raspberry pi-jessie

Thu Jun 16, 2016 3:03 pm

Good news today.
I did a fresh install again and the bluetooth controller magically appears.
I just hope it stays on from now on. I have no idea why it did not show up before.

Return to “General discussion”