Bluetooth kills ethernet. Advice needed.


5 posts
by castalla » Thu Jan 17, 2013 1:20 pm
After days of configuring, reimaging, updating I cannot get a Bluetooth connection to exit without the Pi losing its ethernet connection. This affects a bt speaker. It's probably never applicable to bt keyboards as these would never normally be switched off.

Symptoms:

1. Pair and access sound files - working

2. Switch off BT device - about 10 secs later the ethernet connection dies - router lights still active but Pi absent from network. Only opton is cold reboot.

I suspect a usb interface issue here - but there's no info available anywhere on this.

Any Raspi gurus willing to comment?
Posts: 543
Joined: Thu Jul 19, 2012 3:46 pm
by jamiesk » Thu Jan 17, 2013 8:10 pm
are there any messages in the log ?

sudo tail -n 50 /var/log/messages | more

the numner 50 might need to be changed to get more than the last lines.

My guess is that the BT is not just cancelling itself, but anything in the USB. I might not be able to help more, but i know where to look :)
Pi1 (Nov 2012 loft)= 1KW immersion controller for Solar panel
Pi2 (Jan 2013 living room)=Play thing
Pi3 (Feb 2013 mobile)= Play thing with Tandy Ladder board,breakout board,Nokia display
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=28193
Posts: 88
Joined: Mon Nov 26, 2012 8:48 pm
Location: Ipswich, Suffolk, England, UK.
by castalla » Thu Jan 17, 2013 9:35 pm
Thanks for the advice.



I'll do your tip and report back!

The following includes the last tail before the PI crashed 10 secs after I switched the bt device off:

Code: Select all
k up, 100Mbps, full-duplex, lpa 0x45E1
Jan 17 21:17:51 squeezeplug kernel: [   39.220658] CIFS: no cache= option specif
ied, using "cache=loose". This default will change to "cache=strict" in 3.7.
Jan 17 21:17:53 squeezeplug kernel: [   45.050642] Bluetooth: BNEP (Ethernet Emu
lation) ver 1.3
Jan 17 21:17:53 squeezeplug kernel: [   45.050673] Bluetooth: BNEP filters: prot
ocol multicast
Jan 17 21:17:53 squeezeplug kernel: [   45.112312] Bluetooth: RFCOMM TTY layer i
nitialized
Jan 17 21:17:53 squeezeplug kernel: [   45.112437] Bluetooth: RFCOMM socket laye
r initialized
Jan 17 21:17:53 squeezeplug kernel: [   45.112456] Bluetooth: RFCOMM ver 1.11
Jan 17 21:17:53 squeezeplug kernel: [   45.798225] Adding 102396k swap on /var/s
wap.  Priority:-1 extents:129 across:1754856k SS
Jan 17 21:24:13 squeezeplug kernel: [  210.556496] input: 10:B7:F6:00:46:40 as /
devices/virtual/input/input0
root@squeezeplug:~#

root@squeezeplug:~#
root@squeezeplug:~# aplay -D btheadset /home/tada.wav
Playing WAVE '/home/tada.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

root@squeezeplug:~#  tail -n 50 /var/log/messages | more
Jan 17 21:17:51 squeezeplug kernel: [    2.173697] registered taskstats version
1
Jan 17 21:17:51 squeezeplug kernel: [    2.192492] Waiting for root device /dev/
mmcblk0p2...
Jan 17 21:17:51 squeezeplug kernel: [    2.203409] mmc0: new high speed SDHC car
d at address b368
Jan 17 21:17:51 squeezeplug kernel: [    2.222155] mmcblk0: mmc0:b368 NCard 3.73
 GiB
Jan 17 21:17:51 squeezeplug kernel: [    2.243018]  mmcblk0: p1 p2
Jan 17 21:17:51 squeezeplug kernel: [    2.371978] usb 1-1: new high-speed USB d
evice number 2 using dwc_otg
Jan 17 21:17:51 squeezeplug kernel: [    2.380940] Indeed it is in host mode hpr
t0 = 00001101
Jan 17 21:17:51 squeezeplug kernel: [    2.612202] usb 1-1: New USB device found
, idVendor=0424, idProduct=9512
Jan 17 21:17:51 squeezeplug kernel: [    2.620955] usb 1-1: New USB device strin
gs: Mfr=0, Product=0, SerialNumber=0
Jan 17 21:17:51 squeezeplug kernel: [    2.630826] hub 1-1:1.0: USB hub found
Jan 17 21:17:51 squeezeplug kernel: [    2.636705] hub 1-1:1.0: 3 ports detected
Jan 17 21:17:51 squeezeplug kernel: [    2.922091] usb 1-1.1: new high-speed USB
 device number 3 using dwc_otg
Jan 17 21:17:51 squeezeplug kernel: [    3.042383] usb 1-1.1: New USB device fou
nd, idVendor=0424, idProduct=ec00
Jan 17 21:17:51 squeezeplug kernel: [    3.051314] usb 1-1.1: New USB device str
ings: Mfr=0, Product=0, SerialNumber=0
Jan 17 21:17:51 squeezeplug kernel: [    3.063647] smsc95xx v1.0.4
Jan 17 21:17:51 squeezeplug kernel: [    3.126720] smsc95xx 1-1.1:1.0: eth0: reg
ister 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:9c:
86:fb
Jan 17 21:17:51 squeezeplug kernel: [    3.221974] usb 1-1.2: new full-speed USB
 device number 4 using dwc_otg
Jan 17 21:17:51 squeezeplug kernel: [    3.344202] usb 1-1.2: New USB device fou
nd, idVendor=0a12, idProduct=0001
Jan 17 21:17:51 squeezeplug kernel: [    3.353252] usb 1-1.2: New USB device str
ings: Mfr=0, Product=0, SerialNumber=0
Jan 17 21:17:51 squeezeplug kernel: [   11.301573] EXT4-fs (mmcblk0p2): recovery
 complete
Jan 17 21:17:51 squeezeplug kernel: [   11.311292] EXT4-fs (mmcblk0p2): mounted
filesystem with ordered data mode. Opts: (null)
Jan 17 21:17:51 squeezeplug kernel: [   11.323556] VFS: Mounted root (ext4 files
ystem) on device 179:2.
Jan 17 21:17:51 squeezeplug kernel: [   11.332700] devtmpfs: mounted
Jan 17 21:17:51 squeezeplug kernel: [   11.338265] Freeing init memory: 128K
Jan 17 21:17:51 squeezeplug kernel: [   14.200904] Bluetooth: Core ver 2.16
Jan 17 21:17:51 squeezeplug kernel: [   14.553973] NET: Registered protocol fami
ly 31
Jan 17 21:17:51 squeezeplug kernel: [   14.560649] Bluetooth: HCI device and con
nection manager initialized
Jan 17 21:17:51 squeezeplug kernel: [   14.870651] Bluetooth: HCI socket layer i
nitialized
Jan 17 21:17:51 squeezeplug kernel: [   14.916958] Bluetooth: L2CAP socket layer
 initialized
Jan 17 21:17:51 squeezeplug kernel: [   15.032042] Bluetooth: SCO socket layer i
nitialized
Jan 17 21:17:51 squeezeplug kernel: [   15.044319] usbcore: registered new inter
face driver btusb
Jan 17 21:17:51 squeezeplug kernel: [   24.663964] EXT4-fs (mmcblk0p2): re-mount
ed. Opts: (null)
Jan 17 21:17:51 squeezeplug kernel: [   25.076269] EXT4-fs (mmcblk0p2): re-mount
ed. Opts: (null)
Jan 17 21:17:51 squeezeplug kernel: [   25.788000] bcm2835 ALSA card created!
Jan 17 21:17:51 squeezeplug kernel: [   25.799693] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.813731] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.822317] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.832623] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.840487] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.848434] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.856315] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   34.139130] smsc95xx 1-1.1:1.0: eth0: lin
k up, 100Mbps, full-duplex, lpa 0x45E1
Jan 17 21:17:51 squeezeplug kernel: [   39.220658] CIFS: no cache= option specif
ied, using "cache=loose". This default will change to "cache=strict" in 3.7.
Jan 17 21:17:53 squeezeplug kernel: [   45.050642] Bluetooth: BNEP (Ethernet Emu
lation) ver 1.3
Jan 17 21:17:53 squeezeplug kernel: [   45.050673] Bluetooth: BNEP filters: prot
ocol multicast
Jan 17 21:17:53 squeezeplug kernel: [   45.112312] Bluetooth: RFCOMM TTY layer i
nitialized
Jan 17 21:17:53 squeezeplug kernel: [   45.112437] Bluetooth: RFCOMM socket laye
r initialized
Jan 17 21:17:53 squeezeplug kernel: [   45.112456] Bluetooth: RFCOMM ver 1.11
Jan 17 21:17:53 squeezeplug kernel: [   45.798225] Adding 102396k swap on /var/s
wap.  Priority:-1 extents:129 across:1754856k SS
Jan 17 21:24:13 squeezeplug kernel: [  210.556496] input: 10:B7:F6:00:46:40 as /
devices/virtual/input/input0
root@squeezeplug:~#
root@squeezeplug:~#
root@squeezeplug:~#  tail -n 50 /var/log/messages | more
Jan 17 21:17:51 squeezeplug kernel: [    2.173697] registered taskstats version
1
Jan 17 21:17:51 squeezeplug kernel: [    2.192492] Waiting for root device /dev/
mmcblk0p2...
Jan 17 21:17:51 squeezeplug kernel: [    2.203409] mmc0: new high speed SDHC car
d at address b368
Jan 17 21:17:51 squeezeplug kernel: [    2.222155] mmcblk0: mmc0:b368 NCard 3.73
 GiB
Jan 17 21:17:51 squeezeplug kernel: [    2.243018]  mmcblk0: p1 p2
Jan 17 21:17:51 squeezeplug kernel: [    2.371978] usb 1-1: new high-speed USB d
evice number 2 using dwc_otg
Jan 17 21:17:51 squeezeplug kernel: [    2.380940] Indeed it is in host mode hpr
t0 = 00001101
Jan 17 21:17:51 squeezeplug kernel: [    2.612202] usb 1-1: New USB device found
, idVendor=0424, idProduct=9512
Jan 17 21:17:51 squeezeplug kernel: [    2.620955] usb 1-1: New USB device strin
gs: Mfr=0, Product=0, SerialNumber=0
Jan 17 21:17:51 squeezeplug kernel: [    2.630826] hub 1-1:1.0: USB hub found
Jan 17 21:17:51 squeezeplug kernel: [    2.636705] hub 1-1:1.0: 3 ports detected
Jan 17 21:17:51 squeezeplug kernel: [    2.922091] usb 1-1.1: new high-speed USB
 device number 3 using dwc_otg
Jan 17 21:17:51 squeezeplug kernel: [    3.042383] usb 1-1.1: New USB device fou
nd, idVendor=0424, idProduct=ec00
Jan 17 21:17:51 squeezeplug kernel: [    3.051314] usb 1-1.1: New USB device str
ings: Mfr=0, Product=0, SerialNumber=0
Jan 17 21:17:51 squeezeplug kernel: [    3.063647] smsc95xx v1.0.4
Jan 17 21:17:51 squeezeplug kernel: [    3.126720] smsc95xx 1-1.1:1.0: eth0: reg
ister 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:9c:
86:fb
Jan 17 21:17:51 squeezeplug kernel: [    3.221974] usb 1-1.2: new full-speed USB
 device number 4 using dwc_otg
Jan 17 21:17:51 squeezeplug kernel: [    3.344202] usb 1-1.2: New USB device fou
nd, idVendor=0a12, idProduct=0001
Jan 17 21:17:51 squeezeplug kernel: [    3.353252] usb 1-1.2: New USB device str
ings: Mfr=0, Product=0, SerialNumber=0
Jan 17 21:17:51 squeezeplug kernel: [   11.301573] EXT4-fs (mmcblk0p2): recovery
 complete
Jan 17 21:17:51 squeezeplug kernel: [   11.311292] EXT4-fs (mmcblk0p2): mounted
filesystem with ordered data mode. Opts: (null)
Jan 17 21:17:51 squeezeplug kernel: [   11.323556] VFS: Mounted root (ext4 files
ystem) on device 179:2.
Jan 17 21:17:51 squeezeplug kernel: [   11.332700] devtmpfs: mounted
Jan 17 21:17:51 squeezeplug kernel: [   11.338265] Freeing init memory: 128K
Jan 17 21:17:51 squeezeplug kernel: [   14.200904] Bluetooth: Core ver 2.16
Jan 17 21:17:51 squeezeplug kernel: [   14.553973] NET: Registered protocol fami
ly 31
Jan 17 21:17:51 squeezeplug kernel: [   14.560649] Bluetooth: HCI device and con
nection manager initialized
Jan 17 21:17:51 squeezeplug kernel: [   14.870651] Bluetooth: HCI socket layer i
nitialized
Jan 17 21:17:51 squeezeplug kernel: [   14.916958] Bluetooth: L2CAP socket layer
 initialized
Jan 17 21:17:51 squeezeplug kernel: [   15.032042] Bluetooth: SCO socket layer i
nitialized
Jan 17 21:17:51 squeezeplug kernel: [   15.044319] usbcore: registered new inter
face driver btusb
Jan 17 21:17:51 squeezeplug kernel: [   24.663964] EXT4-fs (mmcblk0p2): re-mount
ed. Opts: (null)
Jan 17 21:17:51 squeezeplug kernel: [   25.076269] EXT4-fs (mmcblk0p2): re-mount
ed. Opts: (null)
Jan 17 21:17:51 squeezeplug kernel: [   25.788000] bcm2835 ALSA card created!
Jan 17 21:17:51 squeezeplug kernel: [   25.799693] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.813731] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.822317] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.832623] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.840487] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.848434] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   25.856315] bcm2835 ALSA chip created!
Jan 17 21:17:51 squeezeplug kernel: [   34.139130] smsc95xx 1-1.1:1.0: eth0: lin
k up, 100Mbps, full-duplex, lpa 0x45E1
Jan 17 21:17:51 squeezeplug kernel: [   39.220658] CIFS: no cache= option specif
ied, using "cache=loose". This default will change to "cache=strict" in 3.7.
Jan 17 21:17:53 squeezeplug kernel: [   45.050642] Bluetooth: BNEP (Ethernet Emu
lation) ver 1.3
Jan 17 21:17:53 squeezeplug kernel: [   45.050673] Bluetooth: BNEP filters: prot
ocol multicast
Jan 17 21:17:53 squeezeplug kernel: [   45.112312] Bluetooth: RFCOMM TTY layer i
nitialized
Jan 17 21:17:53 squeezeplug kernel: [   45.112437] Bluetooth: RFCOMM socket laye
r initialized
Jan 17 21:17:53 squeezeplug kernel: [   45.112456] Bluetooth: RFCOMM ver 1.11
Jan 17 21:17:53 squeezeplug kernel: [   45.798225] Adding 102396k swap on /var/s
wap.  Priority:-1 extents:129 across:1754856k SS
Jan 17 21:24:13 squeezeplug kernel: [  210.556496] input: 10:B7:F6:00:46:40 as /
devices/virtual/input/input0
root@squeezeplug:~#
Posts: 543
Joined: Thu Jul 19, 2012 3:46 pm
by castalla » Thu Jan 17, 2013 11:05 pm
Here are the properties of the device and the bt dongle:

Code: Select all
root@squeezeplug:~# hcitool info 10:B7:F6:00:46:40
Requesting information ...
        BD Address:  10:B7:F6:00:46:40
        Device Name: Mini Boombox
        LMP Version: 2.1 (0x4) LMP Subversion: 0x189e
        Manufacturer: Cambridge Silicon Radio (10)
        Features page 0: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x83
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
                <power control> <transparent SCO> <broadcast encrypt>
                <EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan>
                <interlaced iscan> <interlaced pscan> <inquiry with RSSI>
                <extended SCO> <EV4 packets> <EV5 packets> <AFH cap. slave>
                <AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL>
                <sniff subrating> <pause encryption> <AFH cap. master>
                <AFH class. master> <EDR eSCO 2 Mbps> <EDR eSCO 3 Mbps>
                <3-slot EDR eSCO> <extended inquiry> <simple pairing>
                <encapsulated PDU> <non-flush flag> <LSTO> <inquiry TX power>
                <extended features>
        Features page 1: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

root@squeezeplug:~# hciconfig hci0 features
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:1F:81:00:08:30  ACL MTU: 1021:4  SCO MTU: 180:1
        Features: 0xff 0x3e 0x09 0x76 0x80 0x01 0x00 0x80
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <RSSI> <channel quality> <SCO link> <HV2 packets>
                <HV3 packets> <CVSD> <transparent SCO> <EDR ACL 2 Mbps>
                <EDR ACL 3 Mbps> <interlaced iscan> <interlaced pscan>
                <inquiry with RSSI> <3-slot EDR ACL> <5-slot EDR ACL>
                <extended features>
root@squeezeplug:~#
Posts: 543
Joined: Thu Jul 19, 2012 3:46 pm
by castalla » Fri Jan 18, 2013 1:31 am
Hmmm .....

I removed the ethernet cable. Connected via wifi.

Now, I can pair and switch off the bt device without a crash. Pairing occurs with 2 beeps from device.

HOWEVER

When I switch the bt device back on a second time, there is a pairing attempt and then the Pi crashes.
Pairing produces only 1 beep.

One step forward, another backwards ....

I'd really like someone from Raspi development (or whatever) to comment on this!
Posts: 543
Joined: Thu Jul 19, 2012 3:46 pm