Artik520 with resinOS 2.0.0-rc4.rev1

bluetooth

#1

Dear all,
I’m facing a problem with my ARTIK520.
After upgrading from version 1.24, the bluetooth doesn’t work anymore.
Is there a new version of resinOS who solve this issue?

Thank you very much.


#2

Thank you. We are aware of the issue and a new version of resinOS for the ARTIK520 will be released soon, with a fix for bluetooth.


#4

Thank you Afitzek,
could you please tell me the release date?


#5

It was released just a couple of minutes ago (2.0.8+rev1). :slight_smile:


#6

:astonished:
Thank you very much!


#7

Hi Afitzek,
I installed the new version of resinOS on my ARTIK 520, but I still have problem with the bluetooth.
I installed bluez because I didn’t find the bluetooth service inside the "default"2.0.8 resinOS version.
I executed the following commands:
# agent on
# default-agent
and
# scan on

The result is:
No default controller available

Am I doing something wrong?

Thanks!


#8

Can you also install rfkill and issue a “rfkill list”? And if bluetooth shows as soft blocked, can you do a “rfkill unblock bluetooth” and try again?


#9

Hi! I found that:
root@2b4b970-2b4b970:/usr/src/app# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
2: bcm4354 Bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
then
root@2b4b970-2b4b970:/usr/src/app# rfkill unblock bluetooth
root@2b4b970-2b4b970:/usr/src/app# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
2: bcm4354 Bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
I restarted the bluetooth service, and repeat the bluetoothctl commands,but the result is still the same.
No default controller available


#10

after rebooting ARTIK, the status of the bluetooth service is as follows:
root@2b4b970-2b4b970:/usr/src/app# systemctl status bluetooth.service -l
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since Fri 2017-07-07 09:27:30 UTC; 1min 57s ago
Docs: man:bluetoothd(8)
Main PID: 151 (bluetoothd)
Status: "Running"
CGroup: /docker/b181d9339d5b880211b8f78b3a143d5e42bcd1f87848ec2080d3d1407ef8ed48/system.slice/bluetooth.service
└─151 /usr/lib/bluetooth/bluetoothd

Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: l2cap_bind: Address already inuse (98)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: network-nap: Invalid argument (22)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: l2cap_bind: Address already inuse (98)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: avrcp-controller: Protocol notsupported (93)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: l2cap_bind: Address already inuse (98)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: audio-avrcp-target: Protocol not supported (93)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: Sap driver initialization failed.
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: sap-server: Operation not permitted (1)
Jul 07 09:27:29 2b4b970-2b4b970 bluetoothd[151]: hci0 Load Connection Parameters failed: Unknown Command (0x01)
Jul 07 09:27:30 2b4b970-2b4b970 systemd[1]: Started Bluetooth service.

#11

Let me look at it on my side too and come back to you.


#12

Do you have a -dev image so you can access the host OS on the serial debug connection?


#13

No, But I saw that the -dev version of the 2.0.8 is available.
I have to download it and flash it.
What are you looking for?


#14

Can you install the .dev variant please?
On my end I seem to have bluetooth working on the host OS side. I would like to verify on your machine a few things once you have the -dev variant installed and you are connected on the serial debug connection to the host OS.


#15

Hi!
I installed the .dev version and connected the device through the serial debug.
Which are the next steps?


#16

What does “systemctl status brcm-bt-firmware.service -l” say?


#17

Think I found it. Created a PR here: https://github.com/resin-os/meta-artik/pull/24


#18

Thank you, but now what I have to do? :sweat_smile:


#19

Wait for another release :slight_smile:
I hope to have the 2.0.9 done sometimes on Monday


#20

Hi @samsung.test0 we have released version v2.0.8+rev2 which should fix the bluetooth issue you reported.


#21

Hi @floion, I’m downloading it.
Thank you!