Use native_posix and nrf5340 audio DK controller

This question is being tested at the same time as my previous question.

I want to use linux as host and nrf5340 audio DK as controller.

for linux:

I build zephyr/sameples/bluetooth/broadcast_audio_source with native_posix

for nrf5340 audio DK:

flash to app-core:hci_usb

flash to net-core:ble5-ctr-rpmsg_3330.hex.

nrf5340 audio DK as a ble controller.

Not working properly.

For ohter le audio demo(for example:unicast_audio_client),it also not work properly.

But something is different, the error occurs when connecting, bt_smp timeout.

Can you help me test it, it is very important for our next plan?

Reskyllr

  • Hi Reskyllr,

    A couple of things to start:

    Please use nRF Connect SDK which includes a fork of the Zephyr project. The latest versions of zephyr in the Zephyr project and nRF Connect SDK are usually different

    Follow the instructions here on how to enable the LE Audio controller.

    When building a sample for the application core, include CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE=n in the prj.conf for that sample.

    Let me know if this helps.

    Best regards,

    Maria

  • Hi Maria Gilje,

    I understand your answer, and I did the same.
    I did the same test in zephyr in ncs with the same result, and it's also clear to me that CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE=n in prj.conf should be used.
    The problem remains as above.
    Can you test it?

    Thanks,

    Reskyllr

  • Hi,Maria.

    i want you to know where i am going.

    for the err opcode 0x203f,i use hcitool cmd test it.

    this work fine.

    Then,i open the btmon log.

    when i use hciconfig reset,it have some error message.

    = Close Index: 00:00:00:00:00:00                              [hci0] 548.597565
    = Open Index: 00:00:00:00:00:00                               [hci0] 548.597630
    < HCI Command: Reset (0x03|0x0003) plen 0                #148 [hci0] 548.597638
    > HCI Event: Command Complete (0x0e) plen 4              #149 [hci0] 548.604107
          Reset (0x03|0x0003) ncmd 1
            Status: Success (0x00)
    < HCI Command: Read Local Suppor.. (0x04|0x0003) plen 0  #150 [hci0] 548.604530
    > HCI Event: Command Complete (0x0e) plen 12             #151 [hci0] 548.611534
          Read Local Supported Features (0x04|0x0003) ncmd 1
            Status: Success (0x00)
            Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
              BR/EDR Not Supported
              LE Supported (Controller)
    < HCI Command: Read Local Versio.. (0x04|0x0001) plen 0  #152 [hci0] 548.611667
    > HCI Event: Command Complete (0x0e) plen 12             #153 [hci0] 548.614965
          Read Local Version Information (0x04|0x0001) ncmd 1
            Status: Success (0x00)
            HCI version: Bluetooth 5.2 (0x0b) - Revision 3349 (0x0d15)
            LMP version: Bluetooth 5.2 (0x0b) - Subversion 3349 (0x0d15)
            Manufacturer: Packetcraft, Inc. (2024)
    < HCI Command: Read BD ADDR (0x04|0x0009) plen 0         #154 [hci0] 548.615074
    > HCI Event: Command Complete (0x0e) plen 10             #155 [hci0] 548.617456
          Read BD ADDR (0x04|0x0009) ncmd 1
            Status: Success (0x00)
            Address: 00:00:00:00:00:00 (OUI 00-00-00)
    < HCI Command: Read Local Suppor.. (0x04|0x0002) plen 0  #156 [hci0] 548.617504
    > HCI Event: Command Complete (0x0e) plen 68             #157 [hci0] 548.641499
          Read Local Supported Commands (0x04|0x0002) ncmd 1
            Status: Success (0x00)
            Commands: 123 entries
              Disconnect (Octet 0 - Bit 5)
              Read Remote Version Information (Octet 2 - Bit 7)
              Set Event Mask (Octet 5 - Bit 6)
              Reset (Octet 5 - Bit 7)
              Read Connection Accept Timeout (Octet 7 - Bit 2)
              Write Connection Accept Timeout (Octet 7 - Bit 3)
              Read Transmit Power Level (Octet 10 - Bit 2)
              Read Local Version Information (Octet 14 - Bit 3)
              Read Local Supported Features (Octet 14 - Bit 5)
              Read BD ADDR (Octet 15 - Bit 1)
              Read RSSI (Octet 15 - Bit 5)
              Set Event Mask Page 2 (Octet 22 - Bit 2)
              LE Set Event Mask (Octet 25 - Bit 0)
              LE Read Buffer Size (Octet 25 - Bit 1)
              LE Read Local Supported Features (Octet 25 - Bit 2)
              LE Set Random Address (Octet 25 - Bit 4)
              LE Set Advertising Parameters (Octet 25 - Bit 5)
              LE Read Advertising Channel TX Power (Octet 25 - Bit 6)
              LE Set Advertising Data (Octet 25 - Bit 7)
              LE Set Scan Response Data (Octet 26 - Bit 0)
              LE Set Advertise Enable (Octet 26 - Bit 1)
              LE Set Scan Parameters (Octet 26 - Bit 2)
              LE Set Scan Enable (Octet 26 - Bit 3)
              LE Create Connection (Octet 26 - Bit 4)
              LE Create Connection Cancel (Octet 26 - Bit 5)
              LE Read Accept List Size (Octet 26 - Bit 6)
              LE Clear Accept List (Octet 26 - Bit 7)
              LE Add Device To Accept List (Octet 27 - Bit 0)
              LE Remove Device From Accept List (Octet 27 - Bit 1)
              LE Connection Update (Octet 27 - Bit 2)
              LE Set Host Channel Classification (Octet 27 - Bit 3)
              LE Read Channel Map (Octet 27 - Bit 4)
              LE Read Remote Used Features (Octet 27 - Bit 5)
              LE Encrypt (Octet 27 - Bit 6)
              LE Rand (Octet 27 - Bit 7)
              LE Start Encryption (Octet 28 - Bit 0)
              LE Long Term Key Request Reply (Octet 28 - Bit 1)
              LE Long Term Key Request Neg Reply (Octet 28 - Bit 2)
              LE Read Supported States (Octet 28 - Bit 3)
              LE Receiver Test (Octet 28 - Bit 4)
              LE Transmitter Test (Octet 28 - Bit 5)
              LE Test End (Octet 28 - Bit 6)
              Read Authenticated Payload Timeout (Octet 32 - Bit 4)
              Write Authenticated Payload Timeout (Octet 32 - Bit 5)
              LE Remote Connection Parameter Request Reply (Octet 33 - Bit 4)
              LE Remote Connection Parameter Request Negative Reply (Octet 33 - Bit 5)
              LE Set Data Length (Octet 33 - Bit 6)
              LE Read Suggested Default Data Length (Octet 33 - Bit 7)
              LE Write Suggested Default Data Length (Octet 34 - Bit 0)
              LE Read Local P-256 Public Key (Octet 34 - Bit 1)
              LE Generate DHKey (Octet 34 - Bit 2)
              LE Add Device To Resolving List (Octet 34 - Bit 3)
              LE Remove Device From Resolving List (Octet 34 - Bit 4)
              LE Clear Resolving List (Octet 34 - Bit 5)
              LE Read Resolving List Size (Octet 34 - Bit 6)
              LE Read Peer Resolvable Address (Octet 34 - Bit 7)
              LE Read Local Resolvable Address (Octet 35 - Bit 0)
              LE Set Address Resolution Enable (Octet 35 - Bit 1)
              LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2)
              LE Read Maximum Data Length (Octet 35 - Bit 3)
              LE Read PHY (Octet 35 - Bit 4)
              LE Set Default PHY (Octet 35 - Bit 5)
              LE Set PHY (Octet 35 - Bit 6)
              LE Enhanced Receiver Test (Octet 35 - Bit 7)
              LE Enhanced Transmitter Test (Octet 36 - Bit 0)
              LE Set Advertising Set Random Address (Octet 36 - Bit 1)
              LE Set Extended Advertising Parameters (Octet 36 - Bit 2)
              LE Set Extended Advertising Data (Octet 36 - Bit 3)
              LE Set Extended Scan Response Data (Octet 36 - Bit 4)
              LE Set Extended Advertising Enable (Octet 36 - Bit 5)
              LE Read Maximum Advertising Data Length (Octet 36 - Bit 6)
              LE Read Number of Supported Advertising Sets (Octet 36 - Bit 7)
              LE Remove Advertising Set (Octet 37 - Bit 0)
              LE Clear Advertising Sets (Octet 37 - Bit 1)
              LE Set Periodic Advertising Parameters (Octet 37 - Bit 2)
              LE Set Periodic Advertising Data (Octet 37 - Bit 3)
              LE Set Periodic Advertising Enable (Octet 37 - Bit 4)
              LE Set Extended Scan Parameters (Octet 37 - Bit 5)
              LE Set Extended Scan Enable (Octet 37 - Bit 6)
              LE Extended Create Connection (Octet 37 - Bit 7)
              LE Periodic Advertising Create Sync (Octet 38 - Bit 0)
              LE Periodic Advertising Create Sync Cancel (Octet 38 - Bit 1)
              LE Periodic Advertising Terminate Sync (Octet 38 - Bit 2)
              LE Add Device To Periodic Advertiser List (Octet 38 - Bit 3)
              LE Remove Device From Periodic Advertiser List (Octet 38 - Bit 4)
              LE Clear Periodic Advertiser List (Octet 38 - Bit 5)
              LE Read Periodic Advertiser List Size (Octet 38 - Bit 6)
              LE Read Transmit Power (Octet 38 - Bit 7)
              LE Read RF Path Compensation (Octet 39 - Bit 0)
              LE Write RF Path Compensation (Octet 39 - Bit 1)
              LE Set Privacy Mode (Octet 39 - Bit 2)
              LE Receiver Test command [v3] (Octet 39 - Bit 3)
              LE Transmitter Test command [v3] (Octet 39 - Bit 4)
              LE Periodic Advertising Receive Enable (Octet 40 - Bit 5)
              LE Periodic Advertising Sync Transfer (Octet 40 - Bit 6)
              LE Periodic Advertising Set Info Transfer (Octet 40 - Bit 7)
              LE Periodic Advertising Sync Transfer Parameters (Octet 41 - Bit 0)
              LE Set Default Periodic Advertisng Sync Transfer Parameters (Octet 41 - Bit 1)
              Octet 41 - Bit 2 
              Octet 41 - Bit 4 
              LE Read Buffer v2 (Octet 41 - Bit 5)
              LE Read ISO TX Sync (Octet 41 - Bit 6)
              LE Set Connected Isochronous Group Parameters (Octet 41 - Bit 7)
              LE Set Connected Isochronous Group Parameters Test (Octet 42 - Bit 0)
              LE Create Connected Isochronous Stream (Octet 42 - Bit 1)
              LE Remove Connected Isochronous Group (Octet 42 - Bit 2)
              LE Accept Connected Isochronous Stream Request (Octet 42 - Bit 3)
              LE Reject Connected Isochronous Stream Request (Octet 42 - Bit 4)
              LE Create Broadcast Isochronous Group (Octet 42 - Bit 5)
              LE Create Broadcast Isochronous Group Test (Octet 42 - Bit 6)
              LE Terminate Broadcast Isochronous Group (Octet 42 - Bit 7)
              LE Broadcast Isochronous Group Create Sync (Octet 43 - Bit 0)
              LE Broadcast Isochronous Group Terminate Sync (Octet 43 - Bit 1)
              LE Request Peer SCA (Octet 43 - Bit 2)
              LE Setup Isochronous Data Path (Octet 43 - Bit 3)
              LE Remove Isochronous Data Path (Octet 43 - Bit 4)
              LE Isochronous Transmit Test (Octet 43 - Bit 5)
              LE Isochronous Receive Test (Octet 43 - Bit 6)
              LE Isochronous Read Test Counters (Octet 43 - Bit 7)
              LE Isochronous Read Test Counters (Octet 44 - Bit 0)
              LE Set Host Feature (Octet 44 - Bit 1)
              Octet 44 - Bit 2 
              Octet 45 - Bit 0 
    < HCI Command: LE Read Local Sup.. (0x08|0x0003) plen 0  #158 [hci0] 548.642003
    > HCI Event: Command Complete (0x0e) plen 12             #159 [hci0] 548.644333
          LE Read Local Supported Features (0x08|0x0003) ncmd 1
            Status: Success (0x00)
            Features: 0xff 0x77 0x01 0xff 0x00 0x00 0x00 0x00
              LE Encryption
              Connection Parameter Request Procedure
              Extended Reject Indication
              Peripheral-initiated Features Exchange
              LE Ping
              LE Data Packet Length Extension
              LL Privacy
              Extended Scanner Filter Policies
              LE 2M PHY
              Stable Modulation Index - Transmitter
              Stable Modulation Index - Receiver
              LE Extended Advertising
              LE Periodic Advertising
              Channel Selection Algorithm #2
              Minimum Number of Used Channels Procedure
              Periodic Advertising Sync Transfer - Sender
              Periodic Advertising Sync Transfer - Recipient
              Sleep Clock Accuracy Updates
              Remote Public Key Validation
              Connected Isochronous Stream - Central
              Connected Isochronous Stream - Peripheral
              Isochronous Broadcaster
              Synchronized Receiver
    < HCI Command: LE Read Buffer v2 (0x08|0x0060) plen 0    #160 [hci0] 548.644496
    > HCI Event: Command Complete (0x0e) plen 10             #161 [hci0] 548.646408
          LE Read Buffer v2 (0x08|0x0060) ncmd 1
            Status: Success (0x00)
            ACL MTU: 256
            ACL max packet: 4
            ISO MTU: 256
            ISO max packet: 6
    < HCI Command: LE Read Supported.. (0x08|0x001c) plen 0  #162 [hci0] 548.646490
    > HCI Event: Command Complete (0x0e) plen 12             #163 [hci0] 548.648436
          LE Read Supported States (0x08|0x001c) ncmd 1
            Status: Success (0x00)
            States: 0x000003ffffffffff
              Non-connectable Advertising State
              Scannable Advertising State
              Connectable Advertising State
              High Duty Cycle Directed Advertising State
              Passive Scanning State
              Active Scanning State
              Initiating State
                and Connection State (Central Role)
              Connection State (Peripheral Role)
              Non-connectable Advertising State
                and Passive Scanning State
              Scannable Advertising State
                and Passive Scanning State
              Connectable Advertising State
                and Passive Scanning State
              High Duty Cycle Directed Advertising State
                and Passive Scanning State
              Non-connectable Advertising State
                and Active Scanning State
              Scannable Advertising State
                and Active Scanning State
              Connectable Advertising State
                and Active Scanning State
              High Duty Cycle Directed Advertising State
                and Active Scanning State
              Non-connectable Advertising State
                and Initiating State
              Scannable Advertising State
                and Initiating State
              Non-connectable Advertising State
                and Connection State (Central Role)
              Scannable Advertising State
                and Connection State (Central Role)
              Non-connectable Advertising State
                and Connection State (Peripheral Role)
              Scannable Advertising State
                and Connection State (Peripheral Role)
              Passive Scanning State
                and Initiating State
              Active Scanning State
                and Initiating State
              Passive Scanning State
                and Connection State (Central Role)
              Active Scanning State
                and Connection State (Central Role)
              Passive Scanning State
                and Connection State (Peripheral Role)
              Active Scanning State
                and Connection State (Peripheral Role)
              Initiating State
                and Connection State (Central Role)
                and Central Role & Central Role
              Low Duty Cycle Directed Advertising State
              Low Duty Cycle Directed Advertising State
                and Passive Scanning State
              Low Duty Cycle Directed Advertising State
                and Active Scanning State
              Connectable Advertising State
                and Initiating State
                and Central Role & Peripheral Role
              High Duty Cycle Directed Advertising State
                and Initiating State
                and Central Role & Peripheral Role
              Low Duty Cycle Directed Advertising State
                and Initiating State
                and Central Role & Peripheral Role
              Connectable Advertising State
                and Connection State (Central Role)
                and Central Role & Peripheral Role
              High Duty Cycle Directed Advertising State
                and Connection State (Central Role)
                and Central Role & Peripheral Role
              Low Duty Cycle Directed Advertising State
                and Connection State (Central Role)
                and Central Role & Peripheral Role
              Connectable Advertising State
                and Connection State (Peripheral Role)
                and Central Role & Peripheral Role
              High Duty Cycle Directed Advertising State
                and Connection State (Peripheral Role)
                and Peripheral Role & Peripheral Role
              Low Duty Cycle Directed Advertising State
                and Connection State (Peripheral Role)
                and Peripheral Role & Peripheral Role
              Initiating State
                and Connection State (Peripheral Role)
                and Central Role & Peripheral Role
    < HCI Command: Set Event Mask (0x03|0x0001) plen 8       #164 [hci0] 548.648597
            Mask: 0x200080000204e890
              Disconnection Complete
              Encryption Change
              Read Remote Version Information Complete
              Command Complete
              Command Status
              Hardware Error
              Number of Completed Packets
              Data Buffer Overflow
              Encryption Key Refresh Complete
              LE Meta
    > HCI Event: Command Complete (0x0e) plen 4              #165 [hci0] 548.651532
          Set Event Mask (0x03|0x0001) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Event Mask (0x08|0x0001) plen 8    #166 [hci0] 548.651617
            Mask: 0x000000003f0a1fff
              LE Connection Complete
              LE Advertising Report
              LE Connection Update Complete
              LE Read Remote Used Features Complete
              LE Long Term Key Request
              LE Remote Connection Parameter Request
              LE Data Length Change
              LE Read Local P-256 Public Key Complete
              LE Generate DHKey Complete
              LE Enhanced Connection Complete
              LE Direct Advertising Report
              LE PHY Update Complete
              LE Extended Advertising Report
              LE Extended Advertising Set Terminated
              LE Channel Selection Algorithm
              LE CIS Established
              LE CIS Request
              LE Create BIG Complete
              LE Terminate BIG Complete
              LE BIG Sync Estabilished Complete
              LE BIG Sync Lost
    > HCI Event: Command Complete (0x0e) plen 4              #167 [hci0] 548.654516
          LE Set Event Mask (0x08|0x0001) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Read Transmit... (0x08|0x004b) plen 0  #168 [hci0] 548.654606
    > HCI Event: Command Complete (0x0e) plen 6              #169 [hci0] 548.657494
          LE Read Transmit Power (0x08|0x004b) ncmd 1
            Status: Success (0x00)
            Min Tx power: -30 dBm
            Max Tx power: 3 dBm
    < HCI Command: LE Read Accept Li.. (0x08|0x000f) plen 0  #170 [hci0] 548.657603
    > HCI Event: Command Complete (0x0e) plen 5              #171 [hci0] 548.659688
          LE Read Accept List Size (0x08|0x000f) ncmd 1
            Status: Success (0x00)
            Size: 4
    < HCI Command: LE Clear Accept L.. (0x08|0x0010) plen 0  #172 [hci0] 548.659813
    > HCI Event: Command Complete (0x0e) plen 4              #173 [hci0] 548.663530
          LE Clear Accept List (0x08|0x0010) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Read Resolving.. (0x08|0x002a) plen 0  #174 [hci0] 548.663591
    > HCI Event: Command Complete (0x0e) plen 5              #175 [hci0] 548.665466
          LE Read Resolving List Size (0x08|0x002a) ncmd 1
            Status: Success (0x00)
            Size: 4
    < HCI Command: LE Clear Resolvin.. (0x08|0x0029) plen 0  #176 [hci0] 548.665532
    > HCI Event: Command Complete (0x0e) plen 4              #177 [hci0] 548.668581
          LE Clear Resolving List (0x08|0x0029) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Resolvable.. (0x08|0x002e) plen 2  #178 [hci0] 548.668630
            Timeout: 900 seconds
    > HCI Event: Command Complete (0x0e) plen 4              #179 [hci0] 548.671534
          LE Set Resolvable Private Address Timeout (0x08|0x002e) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Read Maximum D.. (0x08|0x002f) plen 0  #180 [hci0] 548.671631
    > HCI Event: Command Complete (0x0e) plen 12             #181 [hci0] 548.675399
          LE Read Maximum Data Length (0x08|0x002f) ncmd 1
            Status: Success (0x00)
            Max TX octets: 251
            Max TX time: 2120
            Max RX octets: 251
            Max RX time: 2120
    < HCI Command: LE Read Suggested.. (0x08|0x0023) plen 0  #182 [hci0] 548.675508
    > HCI Event: Command Complete (0x0e) plen 8              #183 [hci0] 548.677541
          LE Read Suggested Default Data Length (0x08|0x0023) ncmd 1
            Status: Success (0x00)
            TX octets: 27
            TX time: 328
    < HCI Command: LE Read Number of.. (0x08|0x003b) plen 0  #184 [hci0] 548.677601
    > HCI Event: Command Complete (0x0e) plen 5              #185 [hci0] 548.679508
          LE Read Number of Supported Advertising Sets (0x08|0x003b) ncmd 1
            Status: Success (0x00)
            Num supported adv sets: 4
    < HCI Command: LE Set Host Feature (0x08|0x0074) plen 2  #186 [hci0] 548.679708
            Bit Number: 32
              Isochronous Channels (Host Support)
            Bit Value: 1
    > HCI Event: Command Complete (0x0e) plen 4              #187 [hci0] 548.682653
          LE Set Host Feature (0x08|0x0074) ncmd 1
            Status: Success (0x00)
    < HCI Command: Set Event Mask Pa.. (0x03|0x0063) plen 8  #188 [hci0] 548.682809
            Mask: 0x0000000000800000
              Authenticated Payload Timeout Expired
    > HCI Event: Command Complete (0x0e) plen 4              #189 [hci0] 548.686423
          Set Event Mask Page 2 (0x03|0x0063) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Write Suggeste.. (0x08|0x0024) plen 4  #190 [hci0] 548.686510
            TX octets: 251
            TX time: 2120
    > HCI Event: Command Complete (0x0e) plen 4              #191 [hci0] 548.690467
          LE Write Suggested Default Data Length (0x08|0x0024) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Default PHY (0x08|0x0031) plen 3   #192 [hci0] 548.690612
            All PHYs preference: 0x00
            TX PHYs preference: 0x03
              LE 1M
              LE 2M
            RX PHYs preference: 0x03
              LE 1M
              LE 2M
    > HCI Event: Command Complete (0x0e) plen 4              #193 [hci0] 548.694530
          LE Set Default PHY (0x08|0x0031) ncmd 1
            Status: Success (0x00)
    = Index Info: 00:00:00:00:00:00 (Packetcraft, Inc.)           [hci0] 548.694572
    < HCI Command: LE Set Extended... (0x08|0x0036) plen 25  #194 [hci0] 548.694610
            Handle: 0x00
            Properties: 0x0012
              Scannable
              Use legacy advertising PDUs: ADV_SCAN_IND
            Min advertising interval: 1280.000 msec (0x0800)
            Max advertising interval: 1280.000 msec (0x0800)
            Channel map: 37, 38, 39 (0x07)
            Own address type: Random (0x01)
            Peer address type: Public (0x00)
            Peer address: 00:00:00:00:00:00 (OUI 00-00-00)
            Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
            TX power: Host has no preference (0x7f)
            Primary PHY: LE 1M (0x01)
            Secondary max skip: 0x00
            Secondary PHY: LE 1M (0x01)
            SID: 0x00
            Scan request notifications: Disabled (0x00)
    < HCI Command: LE Set Random Add.. (0x08|0x0005) plen 6  #195 [hci0] 550.725723
            Address: E5:86:00:46:61:69 (Static)
    > HCI Event: Command Complete (0x0e) plen 5              #196 [hci0] 550.729471
          LE Set Extended Advertising Parameters (0x08|0x0036) ncmd 1
            Status: Invalid HCI Command Parameters (0x12)
            TX power (selected): -127 dbm (0x81)
    @ MGMT Event: New Settings (0x0006) plen 4           {0x0001} [hci0] 552.740901
            Current settings: 0x000c8a01
              Powered
              Low Energy
              Secure Connections
              Static Address
              CIS Central
              CIS Peripheral
    @ RAW Close: hciconfig                                      {0x0002} 552.744878

    I found the bd address is 00:00:00:00:00:00,does that have anything to do with it?

    I want help, it's important.

    Thanks.

    Reskyllr

  • To avoid surprises, I built hci_uart, and ble5-ctr-rpmsg_3330.hex on the ubuntu virtual machine.
    The error of this work is different, the following error occurred.

    Bluetooth initialized
    Creating broadcast source
    Creating broadcast source with 2 subgroups with 2 streams
    Starting broadcast source
    Broadcast source started
    Waiting 120 seconds before stopped
    -- [00:00:00.242,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x565c95cc != &hci_cmd_pool 0x565c95a0
    -- [00:00:00.246,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x2800 pool id 2 pool 0x565c95cc != &hci_cmd_pool 0x565c95a0
    -- [00:00:00.250,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x565c95cc != &hci_cmd_pool 0x565c95a0
    -- [00:00:00.250,000] <err> bt_hci_core: hci_num_completed_packets: No connection for handle 2048
    -- [00:00:00.250,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x565c95cc != &hci_cmd_pool 0x565c95a0
    -- [00:00:00.250,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x565c95cc != &hci_cmd_pool 0x565c95a0

    fot the btmon:

    HCI Event: LE Meta Event (0x3e) plen 23                #403 [hci0] 292.079075
          LE Broadcast Isochronous Group Complete (0x1b)
            Status: Success (0x00)
            Handle: 0x00
            BIG Synchronization Delay: 1974 us (0x0007b6)
            Transport Latency: 1974 us (0x0007b6)
            PHY: LE 2M (0x02)
            NSE: 3
            BN: 1
            PTO: 1
            IRC: 3
            Maximum PDU: 40
            ISO Interval: 10.00 msec (0x0008)
            Connection Handle #0: 6
            Connection Handle #1: 7
    < HCI Command: LE Setup Isochro.. (0x08|0x006e) plen 29  #404 [hci0] 292.081031
            invalid packet size
            06 00 00 00 06 00 00 00 00 00 00 00 10 02 01 03  ................
            02 02 01 05 03 01 00 00 00 03 04 28 00           ...........(.   
    > HCI Event: Command Complete (0x0e) plen 6              #405 [hci0] 292.084561
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 6
    < HCI Command: LE Setup Isochro.. (0x08|0x006e) plen 29  #406 [hci0] 292.084988
            invalid packet size
            07 00 00 00 06 00 00 00 00 00 00 00 10 02 01 03  ................
            02 02 01 05 03 01 00 00 00 03 04 28 00           ...........(.   
    > HCI Event: Command Complete (0x0e) plen 6              #407 [hci0] 292.091665
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 7
    < ISO Data TX: Handle 6 flags 0x02 dlen 44               #408 [hci0] 292.093760
    < ISO Data TX: Handle 6 flags 0x02 dlen 44               #409 [hci0] 292.093838
    < ISO Data TX: Handle 7 flags 0x02 dlen 44               #410 [hci0] 292.093866
    < ISO Data TX: Handle 7 flags 0x02 dlen 44               #411 [hci0] 292.093888
    > HCI Event: Command Status (0x0f) plen 4                #412 [hci0] 292.098884
          Unknown (0x00|0x0302) ncmd 1
            Status: Unknown HCI Command (0x01)
    > HCI Event: Command Status (0x0f) plen 4                #413 [hci0] 292.102704
          Unknown (0x0a|0x0000) ncmd 1
            Status: Unknown HCI Command (0x01)
    > HCI Event: Command Status (0x0f) plen 4                #414 [hci0] 292.108515
          Unknown (0x00|0x0302) ncmd 1
            Status: Unknown HCI Command (0x01)
    > HCI Event: Number of Completed Packets (0x13) plen 5   #415 [hci0] 292.108691
            Num handles: 1
            Handle: 2048
            Count: 1
    > HCI Event: Command Status (0x0f) plen 4                #416 [hci0] 292.108698
          Unknown (0x00|0x0302) ncmd 1
            Status: Unknown HCI Command (0x01)
    > HCI Event: Command Status (0x0f) plen 4                #417 [hci0] 292.108699
          Unknown (0x00|0x0302) ncmd 1
            Status: Unknown HCI Command (0x01)
    < HCI Command: LE Terminate Broa.. (0x08|0x006a) plen 2  #418 [hci0] 412.094868
            BIG Handle: 0x00
            Reason: Remote User Terminated Connection (0x13)
    > HCI Event: Command Status (0x0f) plen 4                #419 [hci0] 412.096889
          LE Terminate Broadcast Isochronous Group (0x08|0x006a) ncmd 1
            Status: Success (0x00)
    > HCI Event: LE Meta Event (0x3e) plen 3                 #420 [hci0] 412.160839
          LE Broadcast Isochronous Group Terminate (0x1c)
            BIG Handle: 0x00
            Reason: Remote User Terminated Connection (0x13)
    < HCI Command: LE Set Periodic A.. (0x08|0x0040) plen 2  #421 [hci0] 412.161638
            Periodic advertising: Disabled (0x00)
            Handle: 0 Address: 00:00:00:00:00:00 (OUI 00-00-00)
    > HCI Event: Command Complete (0x0e) plen 4              #422 [hci0] 412.163714
          LE Set Periodic Advertising Enable (0x08|0x0040) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Extended A.. (0x08|0x0039) plen 6  #423 [hci0] 412.164948
            Extended advertising: Disabled (0x00)
            Number of sets: 1 (0x01)
            Entry 0
              Handle: 0x00
              Duration: 0 ms (0x00)
              Max ext adv events: 0
    > HCI Event: Command Complete (0x0e) plen 4              #424 [hci0] 412.184729
          LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Remove Adverti.. (0x08|0x003c) plen 1  #425 [hci0] 412.185255
            Handle: 0 Address: 00:00:00:00:00:00 (OUI 00-00-00)
    > HCI Event: Command Complete (0x0e) plen 4              #426 [hci0] 412.188688
          LE Remove Advertising Set (0x08|0x003c) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Extended... (0x08|0x0036) plen 25  #427 [hci0] 412.188803
            Handle: 0x00
            Properties: 0x0000
            Min advertising interval: 100.000 msec (0x00a0)
            Max advertising interval: 150.000 msec (0x00f0)
            Channel map: 37, 38, 39 (0x07)
            Own address type: Random (0x01)
            Peer address type: Public (0x00)
            Peer address: 00:00:00:00:00:00 (OUI 00-00-00)
            Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
            TX power: Host has no preference (0x7f)
            Primary PHY: LE 1M (0x01)
            Secondary max skip: 0x00
            Secondary PHY: LE 2M (0x02)
            SID: 0x00
            Scan request notifications: Disabled (0x00)
    > HCI Event: Command Complete (0x0e) plen 5              #428 [hci0] 412.191845
          LE Set Extended Advertising Parameters (0x08|0x0036) ncmd 1
            Status: Success (0x00)
            TX power (selected): 0 dbm (0x00)
    < HCI Command: LE Set Advertisin.. (0x08|0x0035) plen 7  #429 [hci0] 412.192007
            Advertising handle: 0x00
            Advertising random address: 2D:12:9C:38:B5:5C (Non-Resolvable)
    > HCI Event: Command Complete (0x0e) plen 4              #430 [hci0] 412.193756
          LE Set Advertising Set Random Address (0x08|0x0035) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Periodic A.. (0x08|0x003e) plen 7  #431 [hci0] 412.195843
            Handle: 0 Address: 00:00:00:00:00:00 (OUI 00-00-00)
            Min interval: 1000.00 msec (0x0320)
            Max interval: 1200.00 msec (0x03c0)
            Properties: 0x0000
    > HCI Event: Command Complete (0x0e) plen 4              #432 [hci0] 412.197760
          LE Set Periodic Advertising Parameters (0x08|0x003e) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Extended... (0x08|0x0037) plen 35  #433 [hci0] 412.199408
            Handle: 0x00
            Operation: Complete extended advertising data (0x03)
            Fragment preference: Minimize fragmentation (0x01)
            Data length: 0x1f
            Service Data: Broadcast Audio Announcement (0x1852)
            Broadcast ID: 259134 (0x03f43e)
            Name (complete): Broadcast Audio Source
    > HCI Event: Command Complete (0x0e) plen 4              #434 [hci0] 412.203210
          LE Set Extended Advertising Data (0x08|0x0037) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Periodic... (0x08|0x003f) plen 71  #435 [hci0] 412.205110
            Handle: 0 Address: 00:00:00:00:00:00 (OUI 00-00-00)
            Operation: Complete ext advertising data (0x03)
            Data length: 0x44
            Service Data: Basic Audio Announcement (0x1851)
              Presetation Delay: 40000
              Number of Subgroups: 2
                Subgroup #0:
                Number of BIS(s): 1
                Codec: LC3 (0x06)
                Codec Specific Configuration #0: len 0x02 type 0x01
                Codec Specific Configuration: 03
                Codec Specific Configuration #1: len 0x02 type 0x02
                Codec Specific Configuration: 01
                Codec Specific Configuration #2: len 0x05 type 0x03
                Codec Specific Configuration: 01000000
                Codec Specific Configuration #3: len 0x03 type 0x04
                Codec Specific Configuration: 2800
                Metadata #0: len 0x03 type 0x02
                Metadata: 0100
                  BIS #0:
                  Index: 1
                  Codec Specific Configuration: 
                Subgroup #1:
                Number of BIS(s): 1
                Codec: LC3 (0x06)
                Codec Specific Configuration #0: len 0x02 type 0x01
                Codec Specific Configuration: 03
                Codec Specific Configuration #1: len 0x02 type 0x02
                Codec Specific Configuration: 01
                Codec Specific Configuration #2: len 0x05 type 0x03
                Codec Specific Configuration: 01000000
                Codec Specific Configuration #3: len 0x03 type 0x04
                Codec Specific Configuration: 2800
                Metadata #0: len 0x03 type 0x02
                Metadata: 0100
                  BIS #0:
                  Index: 1
                  Codec Specific Configuration: 
    > HCI Event: Command Complete (0x0e) plen 4              #436 [hci0] 412.208695
          LE Set Periodic Advertising Data (0x08|0x003f) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Advertisin.. (0x08|0x0035) plen 7  #437 [hci0] 412.209546
            Advertising handle: 0x00
            Advertising random address: 2D:00:0A:85:0C:20 (Non-Resolvable)
    > HCI Event: Command Complete (0x0e) plen 4              #438 [hci0] 412.212771
          LE Set Advertising Set Random Address (0x08|0x0035) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Extended A.. (0x08|0x0039) plen 6  #439 [hci0] 412.213931
            Extended advertising: Enabled (0x01)
            Number of sets: 1 (0x01)
            Entry 0
              Handle: 0x00
              Duration: 0 ms (0x00)
              Max ext adv events: 0
    > HCI Event: Command Complete (0x0e) plen 4              #440 [hci0] 412.215771
          LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Set Periodic A.. (0x08|0x0040) plen 2  #441 [hci0] 412.217328
            Periodic advertising: Enabled (0x01)
            Handle: 0 Address: 00:00:00:00:00:00 (OUI 00-00-00)
    > HCI Event: Command Complete (0x0e) plen 4              #442 [hci0] 412.219883
          LE Set Periodic Advertising Enable (0x08|0x0040) ncmd 1
            Status: Success (0x00)
    < HCI Command: LE Create Broadc.. (0x08|0x0068) plen 31  #443 [hci0] 412.221717
            Handle: 0x00
            Advertising Handle: 0x00
            Number of BIS: 2
            SDU Interval: 10000 us (0x002710)
            Maximum SDU size: 40
            Maximum Latency: 10 ms (0x000a)
            RTN: 0x02
            PHY: LE 2M (0x02)
            Packing: Sequential (0x00)
            Framing: Unframed (0x00)
            Encryption: 0x00
            Broadcast Code: 00000000000000000000000000000000
    > HCI Event: Command Status (0x0f) plen 4                #444 [hci0] 412.224929
          LE Create Broadcast Isochronous Group (0x08|0x0068) ncmd 1
            Status: Success (0x00)
    > HCI Event: LE Meta Event (0x3e) plen 23                #445 [hci0] 412.327739
          LE Broadcast Isochronous Group Complete (0x1b)
            Status: Success (0x00)
            Handle: 0x00
            BIG Synchronization Delay: 1974 us (0x0007b6)
            Transport Latency: 1974 us (0x0007b6)
            PHY: LE 2M (0x02)
            NSE: 3
            BN: 1
            PTO: 1
            IRC: 3
            Maximum PDU: 40
            ISO Interval: 10.00 msec (0x0008)
            Connection Handle #0: 6
            Connection Handle #1: 7
    < HCI Command: LE Setup Isochro.. (0x08|0x006e) plen 29  #446 [hci0] 412.329587
            invalid packet size
            06 00 00 00 06 00 00 00 00 00 00 00 10 02 01 03  ................
            02 02 01 05 03 01 00 00 00 03 04 28 00           ...........(.   
    > HCI Event: Command Complete (0x0e) plen 6              #447 [hci0] 412.332739
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 6
    < HCI Command: LE Setup Isochro.. (0x08|0x006e) plen 29  #448 [hci0] 412.333082
            invalid packet size
            07 00 00 00 06 00 00 00 00 00 00 00 10 02 01 03  ................
            02 02 01 05 03 01 00 00 00 03 04 28 00           ...........(.   
    > HCI Event: Command Complete (0x0e) plen 6              #449 [hci0] 412.335683
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 7
    

  • I did quite a bit of experimentation.

    I think it will ok, but there seems to be a problem with the iso:

    *** Booting Zephyr OS build v3.3.99-ncs1-18-g890edab701c0 ***
    -- [00:00:00.088,000] <inf> bt_hci_core: bt_dev_show_info: Identity: EA:5B:B5:CB:5B:DC (random)
    -- [00:00:00.088,000] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    -- [00:00:00.088,000] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.2 (0x0b) subver 0x0d15
    Bluetooth initialized
    Creating broadcast source
    Creating broadcast source with 2 subgroups with 2 streams
    Starting broadcast source
    Broadcast source started
    Waiting 120 seconds before stopped
    -- [00:00:00.250,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.252,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x2800 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.256,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.258,000] <err> bt_hci_core: hci_num_completed_packets: No connection for handle 2048
    -- [00:00:00.258,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.262,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    Stopping broadcast source
    Broadcast source stopped
    Deleting broadcast source
    Broadcast source deleted
    Creating broadcast source
    Creating broadcast source with 2 subgroups with 2 streams
    Starting broadcast source
    Broadcast source started
    

    the btmon log:

    https://paste.ubuntu.com/p/fZMx7Vp5pr/

    I need help urgently!

    Thanks,

    Reskllr

Related