User avatar
stefanv
Posts: 36
Joined: Wed Oct 19, 2016 12:08 pm
Location: Ontario, Canada
Contact: Website

Re: RPi3 Bluetooth and Wifi don't play well together

Thu Mar 01, 2018 2:58 am

I eventually gave up trying to get two Bluetooth devices and the WiFi working simultaneously with my Pi tablet's built-in Bluetooth, and hardwired in a compact USB Bluetooth adapter. They are literally the size of a fingernail when removed from their case, and take up almost no room.
bluetooth2a_sm.jpg
bluetooth2a_sm.jpg (200.59 KiB) Viewed 626 times
Stefan Vorkoetter: Programmer, hobbyist, amateur watchmaker, pilot, and collector of fountain pens, slide rules, calculators, and watches.

Line40
Posts: 2
Joined: Sat Jun 09, 2018 5:33 pm

Re: RPi3 Bluetooth and Wifi don't play well together

Sat Jun 09, 2018 5:59 pm

Hi all,

is there really no solution to this issue but to either use some DYI hardware or a separate BT dongle? I bought the PI especially for that purpose, WIFI + Bluetooth for some presence detection/beacon for my home, only to find out on my own that there's something wrong WIFI+BT and then by accident finding this thread while searching for a solution.

Is there nowhere to report an Issue like that so the Devs can look into this? Why is it not prominently stated in idk Wikipedia, the blog or on the homepage as "Known issue".

I'm really infuriated, this device is sold millions of times and no one, especially no "official" cares that it has a crippling issue like this?

Cheers

Line40

User avatar
stefanv
Posts: 36
Joined: Wed Oct 19, 2016 12:08 pm
Location: Ontario, Canada
Contact: Website

Re: RPi3 Bluetooth and Wifi don't play well together

Wed Jun 13, 2018 2:56 pm

Perhaps the new Pi 3B+ fixes this issue. Does anyone know?
Stefan Vorkoetter: Programmer, hobbyist, amateur watchmaker, pilot, and collector of fountain pens, slide rules, calculators, and watches.

dl7vea
Posts: 1
Joined: Tue Oct 02, 2018 7:25 am

Re: RPi3 Bluetooth and Wifi don't play well together

Tue Oct 02, 2018 7:30 am

I recently bought a new Pi 3B+. And I must say: I connected a Bluetooth keyboard and have the same problems as described here in the topic.

I haven't yet investigated it further (disable WiFi, trying Bluetooth dongle etc.) but the desciption I read here is fitting 100% what I've seen in my case.

So @stefanv - that seems to be the answer to your question.

Best regards

MaDPaPo
Posts: 3
Joined: Sun May 21, 2017 10:44 pm

Re: RPi3 Bluetooth and Wifi don't play well together

Mon Nov 12, 2018 8:43 pm

Hi all
Also on my RPI 3B the BT+WIFI problem appears.

From some days I activated a service that:
  • Bring up hci0 device - command: hciconfig hci0 up
  • Perform a BLE scan
  • Bring down hci0 device - command: hciconfig hci0 down
This service is running while the RPI is running hostapd.
After 12h ca., in the dmesg I find line like this:

Code: Select all

 brcmfmac: brcmf_netdev_wait_pend8021x: Timed out waiting for no pending 802.1x packets
It happens every 10 minutes (and 10 minutes is the BLE scanning timer).
Where to report the bug?

netlinker
Posts: 3
Joined: Fri May 18, 2018 10:26 am

Re: RPi3 Bluetooth and Wifi don't play well together

Wed May 15, 2019 1:21 pm

I also got a problem using bluetooth with two devices simultaneusly. I connected a Headset with a2dp and a Apple magic keyboard. The Headset alone worked fine, and also the keyboard would.
Altough both of them had problems connecting in the first place (gui alone wouldn't work, had to use bluetoothctl).
When I connected the Keyboard while hearing some music, the music got small interruptions and when typing, the keyboard showed several ghost characters. When typing a little more, something of the hci stack crashed.
Here is the Trace:
[2291915.767191] ------------[ cut here ]------------
[2291915.767222] WARNING: CPU: 0 PID: 4130 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x78/0x88
[2291915.767229] sysfs: cannot create duplicate filename '/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11'
[2291915.767234] Modules linked in: hid_apple hidp uinput cmac fuse rfcomm uhid bnep hci_uart btbcm serdev bluetooth ecdh_generic em28xx_rc si2157 si2168 i2c_mux em28xx_dvb dvb_core binfmt_misc evdev hid_logitech_hidpp em28xx tveeprom v4l2_common videodev media brcmfmac brcmutil hid_logitech_dj cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd i2c_bcm2835 uio_pdrv_genirq fixed uio sg uas i2c_dev ip_tables x_tables ipv6
[2291915.767454] CPU: 0 PID: 4130 Comm: kworker/u9:0 Tainted: G C 4.14.98-v7+ #1200
[2291915.767459] Hardware name: BCM2835
[2291915.767618] Workqueue: hci0 hci_rx_work [bluetooth]
[2291915.767652] [<8010ff30>] (unwind_backtrace) from [<8010c174>] (show_stack+0x20/0x24)
[2291915.767670] [<8010c174>] (show_stack) from [<8078cf04>] (dump_stack+0xd4/0x118)
[2291915.767688] [<8078cf04>] (dump_stack) from [<8011dd70>] (__warn+0xf8/0x110)
[2291915.767702] [<8011dd70>] (__warn) from [<8011ddd0>] (warn_slowpath_fmt+0x48/0x50)
[2291915.767718] [<8011ddd0>] (warn_slowpath_fmt) from [<8030b6f8>] (sysfs_warn_dup+0x78/0x88)
[2291915.767735] [<8030b6f8>] (sysfs_warn_dup) from [<8030b7f4>] (sysfs_create_dir_ns+0x94/0xa4)
[2291915.767753] [<8030b7f4>] (sysfs_create_dir_ns) from [<807918a8>] (kobject_add_internal+0xb4/0x2ec)
[2291915.767772] [<807918a8>] (kobject_add_internal) from [<80791cb8>] (kobject_add+0x50/0x94)
[2291915.767789] [<80791cb8>] (kobject_add) from [<8054507c>] (device_add+0xf4/0x588)
[2291915.767934] [<8054507c>] (device_add) from [<7f525764>] (hci_conn_add_sysfs+0x3c/0x64 [bluetooth])
[2291915.768230] [<7f525764>] (hci_conn_add_sysfs [bluetooth]) from [<7f5142c0>] (hci_event_packet+0xc7c/0x2de8 [bluetooth])
[2291915.768498] [<7f5142c0>] (hci_event_packet [bluetooth]) from [<7f506c9c>] (hci_rx_work+0x178/0x250 [bluetooth])
[2291915.768642] [<7f506c9c>] (hci_rx_work [bluetooth]) from [<80137a40>] (process_one_work+0x158/0x454)
[2291915.768657] [<80137a40>] (process_one_work) from [<80137da0>] (worker_thread+0x64/0x5b8)
[2291915.768671] [<80137da0>] (worker_thread) from [<8013de24>] (kthread+0x13c/0x16c)
[2291915.768689] [<8013de24>] (kthread) from [<801080ac>] (ret_from_fork+0x14/0x28)
[2291915.768717] ---[ end trace 99464a88c2dbd8ea ]---
[2291915.768729] kobject_add_internal failed for hci0:11 with -EEXIST, don't try to register things with the same name in the same directory.
[2291915.768740] Bluetooth: Failed to register connection device
[2291960.803814] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[2291960.804065] pgd = 80004000
[2291960.804149] [00000010] *pgd=00000000
[2291960.804266] Internal error: Oops: 5 [#1] SMP ARM
[2291960.804398] Modules linked in: hid_apple hidp uinput cmac fuse rfcomm uhid bnep hci_uart btbcm serdev bluetooth ecdh_generic em28xx_rc si2157 si2168 i2c_mux em28xx_dvb dvb_core binfmt_misc evdev hid_logitech_hidpp em28xx tveeprom v4l2_common videodev media brcmfmac brcmutil hid_logitech_dj cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd i2c_bcm2835 uio_pdrv_genirq fixed uio sg uas i2c_dev ip_tables x_tables ipv6
[2291960.805558] CPU: 3 PID: 5235 Comm: kworker/u9:1 Tainted: G WC 4.14.98-v7+ #1200
[2291960.805779] Hardware name: BCM2835
[2291960.806031] Workqueue: hci0 hci_rx_work [bluetooth]
[2291960.806175] task: a11b5a00 task.stack: 8170c000
[2291960.806313] PC is at klist_next+0x18/0x108
[2291960.806439] LR is at device_find_child+0x5c/0x94
[2291960.806572] pc : [<80790b60>] lr : [<8054317c>] psr: a0000013
[2291960.806745] sp : 8170dd80 ip : 8170dda8 fp : 8170dda4
[2291960.806890] r10: b1330000 r9 : 7f54d014 r8 : 00000000
[2291960.807037] r7 : 00000000 r6 : 7f52566c r5 : 8170dda8 r4 : b13300bc
[2291960.807217] r3 : 00000000 r2 : 7f52566c r1 : 8170dda8 r0 : 00000000
[2291960.807398] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[2291960.807595] Control: 10c5383d Table: 28fc006a DAC: 00000055
[2291960.807755] Process kworker/u9:1 (pid: 5235, stack limit = 0x8170c210)
[2291960.807936] Stack: (0x8170dd80 to 0x8170e000)
[2291960.808067] dd80: b13300bc 00000000 7f52566c b6ac5000 00000000 7f54d014 8170ddcc 8170dda8
[2291960.808294] dda0: 8054317c 80790b54 00000000 00000000 8170ddec b13300bc b1330198 b6ac5000
[2291960.808522] ddc0: 8170ddec 8170ddd0 7f5257d8 8054312c 00000000 b13300bc b13300bc b1330000
[2291960.808749] dde0: 8170de0c 8170ddf0 7f50cd60 7f525798 b1330000 b6ac5000 00000016 b6ac5008
[2291960.808976] de00: 8170de2c 8170de10 7f50cf1c 7f50ccb8 b6ac5000 b2a2e6c0 00000016 b6ac5008
[2291960.809203] de20: 8170debc 8170de30 7f514cb8 7f50ce80 00000002 00000001 a11b5a80 a11b5a00
[2291960.809431] de40: b6ff8d78 00000000 a11b5e60 80b8ed40 8170de8c 80b8ed40 b6ac5000 00000001
[2291960.809658] de60: 7f54d014 00000000 00ac57e8 b6ac0000 00000000 00000000 8170de9c 8170de88
[2291960.809885] de80: 807a8824 801ee818 b6ac57e8 b2a2e6c0 8170debc b6ac5708 b6ac58b4 b6ac5000
[2291960.810112] dea0: b6ac57e8 b6ac5008 00000088 b2a2e6c0 8170defc 8170dec0 7f506c9c 7f513650
[2291960.810339] dec0: b6ac5708 b6ac501c 814f1a00 80137870 8170defc a8fe0580 b6ac5708 b5a9ea00
[2291960.810567] dee0: 814f1a00 00000000 00000088 00000000 8170df34 8170df00 80137a40 7f506b30
[2291960.810794] df00: b5a9ea18 80c02d00 00000088 b5a9ea00 a8fe0598 b5a9ea00 b5a9ea18 80c02d00
[2291960.811023] df20: 00000088 a8fe0580 8170df7c 8170df38 80137da0 801378f4 8170df5c 8170c000
[2291960.811250] df40: 00000000 80c02d00 80c88a86 8170c038 b2bdb01c b2bdb000 00000000 a8e0e1c0
[2291960.811481] df60: a8fe0580 80137d3c b2bdb01c 80bd9e80 8170dfac 8170df80 8013de24 80137d48
[2291960.811710] df80: 80102d94 a8e0e1c0 8013dce8 00000000 00000000 00000000 00000000 00000000
[2291960.811938] dfa0: 00000000 8170dfb0 801080ac 8013dcf4 00000000 00000000 00000000 00000000
[2291960.812165] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[2291960.812395] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[2291960.812639] [<80790b60>] (klist_next) from [<8054317c>] (device_find_child+0x5c/0x94)
[2291960.813011] [<8054317c>] (device_find_child) from [<7f5257d8>] (hci_conn_del_sysfs+0x4c/0x74 [bluetooth])
[2291960.813534] [<7f5257d8>] (hci_conn_del_sysfs [bluetooth]) from [<7f50cd60>] (hci_conn_cleanup+0xb4/0x138 [bluetooth])
[2291960.814083] [<7f50cd60>] (hci_conn_cleanup [bluetooth]) from [<7f50cf1c>] (hci_conn_del+0xa8/0x178 [bluetooth])
[2291960.814619] [<7f50cf1c>] (hci_conn_del [bluetooth]) from [<7f514cb8>] (hci_event_packet+0x1674/0x2de8 [bluetooth])
[2291960.815157] [<7f514cb8>] (hci_event_packet [bluetooth]) from [<7f506c9c>] (hci_rx_work+0x178/0x250 [bluetooth])
[2291960.826580] [<7f506c9c>] (hci_rx_work [bluetooth]) from [<80137a40>] (process_one_work+0x158/0x454)
[2291960.837929] [<80137a40>] (process_one_work) from [<80137da0>] (worker_thread+0x64/0x5b8)
[2291960.849217] [<80137da0>] (worker_thread) from [<8013de24>] (kthread+0x13c/0x16c)
[2291960.860573] [<8013de24>] (kthread) from [<801080ac>] (ret_from_fork+0x14/0x28)
[2291960.871672] Code: e24cb004 e8900088 e1a05000 e1a00003 (e5938010)
[2291960.882653] ---[ end trace 99464a88c2dbd8eb ]---
Maybe this helps some of the developers.

Return to “Troubleshooting”