Colibri IMX6 usb bluetooh: connmanctl error

Hi everybody,

I try to use an USB Bluetooth dongle:

root@colibri-imx6:~# lsusb
Bus 002 Device 007: ID 0a5c:2148 Broadcom Corp. BCM92046DG-CL1ROM Bluetooth 2.1 Adapter

I follow this page as instruction, and I get this message:

root@colibri-imx6:~# connmanctl enable bluetooth
Error bluetooth: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist

I think my dongle is not well reconised, I’m right? (And I should get an other one in the list provided by TORADEX…)

hi @base

Welcome to the Toradex Community!!!

Could you provide the complete bootlog and the output of lsmod in a textfile? Which Software Version are you using ( cat /etc/issue ) for the module?

Thank you for the fast answer!

The : link Bootlog

The lsmode:

root@colibri-imx6:~# lsmod

Module Size Used by

usb_f_rndis 11788 2

u_ether 8965 1 usb_f_rndis

libcomposite 35410 10 usb_f_rndis

configfs 20477 3 usb_f_rndis,libcomposite

galcore 209125 10

And finally the cat:

Angstrom v2016.12 - Kernel

Colibri-iMX6_LXDE-Image 2.7b4 20171004

hi

When you did the bootlog, was the dongle connected? Could you resend the bootlog after disconnecting any other USB device and then just connecting the USB Bluetooth dongle? Thanks.

Your dongle reported as a Mouse/Keyboard HID. Are you using correct dongle?

Thank you jaski: yes, the dongle was connected.

In attachement, the bootlog without the dongle, and connected manually at the end!

Alex made a good point. Could you send the datasheet of the dongle or are you suing a hub to connect all the USB devices at once? If so please connect only one device at one time? Thanks.

Hi,
Many thank for your help, sorry for the delay. My dongle was an old one, no datasheet.
I bought 2 new, and advanced a bit in the development: I’m going to use Boot 2 QT.

So, here are all of my info:

root@b2qt-colibri-imx6:~# cat /etc/issue                                                                                                                                
Boot to Qt for Embedded Linux 2.5.3

root@b2qt-colibri-imx6:~# lsusb                                                                                                                                         
Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)                                                                               
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 



root@b2qt-colibri-imx6:~# systemctl enable bluetooth.service  
root@b2qt-colibri-imx6:~# systemctl start bluetooth.service  

root@b2qt-colibri-imx6:~# hciconfig                                                                                                                                     
[  402.384572] Bluetooth: Core ver 2.22                                                                                                                                 
[  402.388399] NET: Registered protocol family 31                                                                                                                       
[  402.392886] Bluetooth: HCI device and connection manager initialized                                                                                                 
[  402.400006] Bluetooth: HCI socket layer initialized                                                                                                                  
[  402.407765] Bluetooth: L2CAP socket layer initialized                                                                                                                
[  402.413174] Bluetooth: SCO socket layer initialized 

root@b2qt-colibri-imx6:~# bluetoothctl                                                                                                                                  
Waiting to connect to bluetoothd...
root@b2qt-colibri-imx6:~# systemctl status bluetooth.service

And it’s not going any further.
I have nothing in the “rfkill list” (I try to follow this post, with the same dongle), but not better.
I try with “systemctl start bluetooth”, and something appear in the “systemctl status bluetooth.service”:

 [0;1;32m��●[[0m bluetooth.service - Bluetooth service
       Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
       Active: [[0;1;32mactive (running)[[0m since Mon 2019-06-03 15:55:29 UTC; 16s ago
         Docs: man:bluetoothd(8)
     Main PID: 391 (bluetoothd)
       Status: "Running"
       CGroup: /system.slice/bluetooth.service
               ��└��─391 /usr/libexec/bluetooth/bluetoothd
    
    Jun 03 15:55:29 b2qt-colibri-imx6 systemd[1]: Starting Bluetooth service...
    Jun 03 15:55:29 b2qt-colibri-imx6 systemd[1]: Started Bluetooth service.

Have you any idea where the problem is?

Hi @base

Thanks for your Input. Could you try your dongle on the Bsp 2.8b6 LXDE Image and check if the dongle is working there or not?

Please provide also the output of lsmod and lsusb with the LXDE image?

Thanks and Best regards,
Jaski

Hi @jaski.tx ,

Thank you for your answer, it has progressed well!

Here is the result, with the hot connection of the module:

root@colibri-imx6:~# [   43.123067] usb 1-1: new full-speed USB device number 2 using ci_hdrc                                                                           
[   43.495427] usbcore: registered new interface driver btusb                                                                                                           
[   43.635697] Bluetooth: BNEP (Ethernet Emulation) ver 1.3                                                                                                             
[   43.641058] Bluetooth: BNEP filters: protocol multicast                                                                                                              
[   43.647295] Bluetooth: BNEP socket layer initialized                                                                                                                 
[   43.775460] Bluetooth: RFCOMM TTY layer initialized                                                                                                                  
[   43.780413] Bluetooth: RFCOMM socket layer initialized                                                                                                               
[   43.785729] Bluetooth: RFCOMM ver 1.11                                                                                                                               
lsmod                                                                                                                                                                   
Module                  Size  Used by                                                                                                                                   
rfcomm                 30722  2                                                                                                                                         
bnep                    9738  2                                                                                                                                         
btusb                  27571  0                                                                                                                                         
btrtl                   6040  1 btusb                                                                                                                                   
btbcm                   5404  1 btusb                                                                                                                                   
btintel                 7969  1 btusb                                                                                                                                   
bluetooth             312244  31 btrtl,btintel,bnep,btbcm,rfcomm,btusb                                                                                                  
compat                 76582  4 bluetooth,bnep,rfcomm,btusb                                                                                                             
usb_f_rndis            11166  2                                                                                                                                         
u_ether                 8661  1 usb_f_rndis                                                                                                                             
libcomposite           34201  10 usb_f_rndis                                                                                                                            
configfs               23662  3 usb_f_rndis,libcomposite                                                                                                                
galcore               366432  4                                                                                                                                         
root@colibri-imx6:~# lsusb                                                                                                                                              
Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)                                                                               
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I think its, better…

root@colibri-imx6:~# hciconfig                                                                                                                                          
hci0:   Type: Primary  Bus: USB                                                                                                                                         
        BD Address: 00:1A:7D:DA:71:0B  ACL MTU: 310:10  SCO MTU: 64:8                                                                                                   
        DOWN                                                                                                                                                            
        RX bytes:574 acl:0 sco:0 events:30 errors:0                                                                                                                     
        TX bytes:368 acl:0 sco:0 commands:30 errors:0 

root@colibri-imx6:~# bluetoothctl                                                                                                                                       
[NEW] Controller 00:1A:7D:DA:71:0B colibri-imx6 [default]                                                                                                               
Agent registered                                                                                                                                                        
[bluetooth]# scan on                                                                                                                                                    
Failed to start discovery: org.bluez.Error.NotReady                                                                                                                     
[bluetooth]# quit                                                                                                                                                       
Agent unregistered                                                                                                                                                      
[DEL] Controller 00:1A:7D:DA:71:0B colibri-imx6 [default]                                                                                                               
root@colibri-imx6:~# [  548.257961] random: crng init done                                                                                                              
[  548.261402] random: 7 urandom warning(s) missed due to ratelimiting                                                                                                  
                                                                                                                                                                        
root@colibri-imx6:~# hciconfig hci0 up                                                                                                                                  
Can't init device hci0: Operation not possible due to RF-kill (132)                                                                                                     
root@colibri-imx6:~# rfkill unblock all                                                                                                                                 
root@colibri-imx6:~# hciconfig hci0 up                                                                                                                                  
root@colibri-imx6:~# bluetoothctl                                                                                                                                       
[NEW] Controller 00:1A:7D:DA:71:0B colibri-imx6 [default]                                                                                                               
Agent registered                                                                                                                                                        
[bluetooth]# scan on                                                                                                                                                    
Discovery started                                                                                                                                                       
[CHG] Controller 00:1A:7D:DA:71:0B Discovering: yes 

Nice! So, the problem come from my QT Image? How can I proceed?

hi @base

These are good news. I am not sure which Kernel you are using for the Boot2Qt image. Could you update to the thud branch and check if bluetooth is working fine there.

Thank you!

I think there is no “qbsp” already packed?

I’m going to follow this: https://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html

I’m right?

I’m trying to build it…
I get the thud branch in the “meta-boot2qt” folder, and then:

~/Yocto/meta-boot2qt$ ./b2qt-init-build-env init --device colibri-imx6
~/Yocto/meta-boot2qt$ export MACHINE=colibri-imx6
~/Yocto/meta-boot2qt$ source ./setup-environment.sh 
~/Yocto/meta-boot2qt$ bitbake b2qt-embedded-qt5-image

But it take so long! Right? Do I something wrong? (Sorry, I use Yocto for the first time…)

But it take so long! Right? Do I something wrong? (Sorry, I use Yocto for the first time…)

This is normal. The first build takes always some time to finish, but it depends also on the hardware of your build host.