This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52833DK as HCI dongle for BlueZ?

I'm running the Zephyr hci_usb sample on a nRF52833DK to see if I can use it as a Bluetooth dongle on my Ubuntu dev machine. It appears as /dev/ttyACM0, so:

sudo btmon

In another window:

sudo btattach -B /dev/ttyACM0 -P bcsp -S 1000000

btmon shows

@ MGMT Open: bluetoothd (privileged) version 1.17                {0x0002} 103.202202
= bluetoothd: Starting SDP server                                         103.202230
@ MGMT Command: Read Management Version Infor.. (0x0001) plen 0  {0x0002} 103.205023
@ MGMT Event: Command Complete (0x0001) plen 6                   {0x0002} 103.205026
      Read Management Version Information (0x0001) plen 3
        Status: Success (0x00)
        Version: 1.17
= bluetoothd: Bluetooth management interface 1.17 initialized             103.205067
@ MGMT Command: Read Management Supported Com.. (0x0002) plen 0  {0x0002} 103.205041
@ MGMT Event: Command Complete (0x0001) plen 221                 {0x0002} 103.205042
      Read Management Supported Commands (0x0002) plen 218
        Status: Success (0x00)
        Commands: 70
          Read Controller Index List (0x0003)
          Read Controller Information (0x0004)
          Set Powered (0x0005)

...... many lines omitted ....

@ MGMT Command: Read Controller Index List (0x0003) plen 0       {0x0002} 103.205047
@ MGMT Event: Command Complete (0x0001) plen 5                   {0x0002} 103.205048
      Read Controller Index List (0x0003) plen 2
        Status: Success (0x00)
        Controllers: 0

After this, hciconfig and rfkill say there is an hci0


~$ hciconfig -a hci0
hci0:    Type: Primary  Bus: UART
    BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
    DOWN
    RX bytes:0 acl:0 sco:0 events:0 errors:0
    TX bytes:4 acl:0 sco:0 commands:1 errors:0
    Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    Packet type: DM1 DH1 HV1
    Link policy:
    Link mode: SLAVE ACCEPT

~$ rfkill list
2: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

But there is no controller available according to btmgmt, so I can't power it up

~$ btmgmt info
Index list with 0 items

What do I do from here to work with this?

Thanks,

Michael

Parents
  • Hi,

     

    I'm running the Zephyr hci_usb sample
    It appears as /dev/ttyACM0

    Do you mean hci_uart? hci_usb should come up as a hcix device automatically.

      

    sudo btattach -B /dev/ttyACM0 -P bcsp -S 1000000

    I see from your logs that this seems to respond in btmon, but unless you have changed the transport, its defaulted to h4. Could you try h4 instead of bcsp?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I'm running the Zephyr hci_usb sample
    It appears as /dev/ttyACM0

    Do you mean hci_uart? hci_usb should come up as a hcix device automatically.

      

    sudo btattach -B /dev/ttyACM0 -P bcsp -S 1000000

    I see from your logs that this seems to respond in btmon, but unless you have changed the transport, its defaulted to h4. Could you try h4 instead of bcsp?

     

    Kind regards,

    Håkon

Children
No Data
Related