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

scan_adv example works with nRF Connect SDK v1.4.2 but not with nRF SDK v.1.5.1

I want to upgrade my application from v1.4.2 to v.1.5.1.  but the Bluetooth init failed.  So  I tested with the scan_adv, which uses the same logic as my application.  This also failed. Here are the messages

Running Scan Adv with nRF Connect SDK v1.4.2

*** Booting Zephyr OS build v2.4.0-ncs2 ***

Starting Scanner/Advertiser Demo

Bluetooth initialized

[00:00:00.341,857] [1B][0m<inf> sdc_hci_driver: SoftDevice Controller build revision:

cf 5c 0f 11 88 9c d7 02 15 27 c7 c3 ca 60 19 85 |.\...... .'...`..

b7 c4 50 e3 |..P. [1B][0m

[00:00:00.343,292] [1B][0m<inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)[1B][0m

[00:00:00.343,322] [1B][0m<inf> bt_hci_core: HW Variant: nRF52x (0x0002)[1B][0m

[00:00:00.343,322] [1B][0m<inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 207.3932 Build 3617359889[1B][0m

[00:00:00.344,024] [1B][0m<inf> bt_hci_core: Identity: d9:95:28:d5:61:56 (random)[1B][0m

[00:00:00.344,024] [1B][0m<inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x1123, manufacturer 0x0059[1B][0m

[00:00:00.344,024] [1B][0m<inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x1123[1B][0m

Running scan adv with nRF Connect SDK v1.5.1

*** Booting Zephyr OS build v2.4.99-ncs2 ***

Starting Scanner/Advertiser Demo

Bluetooth init failed (err -35)

[00:00:00.341,735] [1B][0m<inf> sdc_hci_driver: SoftDevice Controller build revision:

d9 e2 43 71 3b 2d c0 15 55 e1 1d c8 99 75 01 7a |..Cq;-.. U....u.z

62 85 8d 0a |b... [1B][0m

[00:00:00.341,766] [1B][1;31m<err> bt_hci_core: HCI driver open failed (-35)[1B][0m

I added  

Running Scan Adv with nRF Connect SDK v1.4.2

*** Booting Zephyr OS build v2.4.0-ncs2 ***

Starting Scanner/Advertiser Demo

Bluetooth initialized

[00:00:00.341,857] [1B][0m<inf> sdc_hci_driver: SoftDevice Controller build revision:

cf 5c 0f 11 88 9c d7 02 15 27 c7 c3 ca 60 19 85 |.\...... .'...`..

b7 c4 50 e3 |..P. [1B][0m

[00:00:00.343,292] [1B][0m<inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)[1B][0m

[00:00:00.343,322] [1B][0m<inf> bt_hci_core: HW Variant: nRF52x (0x0002)[1B][0m

[00:00:00.343,322] [1B][0m<inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 207.3932 Build 3617359889[1B][0m

[00:00:00.344,024] [1B][0m<inf> bt_hci_core: Identity: d9:95:28:d5:61:56 (random)[1B][0m

[00:00:00.344,024] [1B][0m<inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x1123, manufacturer 0x0059[1B][0m

[00:00:00.344,024] [1B][0m<inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x1123[1B][0m

Running scan adv with nRF Connect SDK v1.5.1

*** Booting Zephyr OS build v2.4.99-ncs2 ***

Starting Scanner/Advertiser Demo

Bluetooth init failed (err -35)

[00:00:00.341,735] [1B][0m<inf> sdc_hci_driver: SoftDevice Controller build revision:

d9 e2 43 71 3b 2d c0 15 55 e1 1d c8 99 75 01 7a |..Cq;-.. U....u.z

62 85 8d 0a |b... [1B][0m

[00:00:00.341,766] [1B][1;31m<err> bt_hci_core: HCI driver open failed (-35)[1B][0m

I hope I can upgrade to v1.5.1

Thanks for your help 

  • Hi LuRocm, 

    I tested the scan_adv sample in NCS v1.5.1. In zephyr\samples\bluetooth\scan_adv\prj.conf I added 

    CONFIG_BT_LL_SW_SPLIT=y

    And I built and tested the sample on a nrf52840dk_nrf52840. It worked fine. Log output:

    *** Booting Zephyr OS build v2.4.99-ncs2  ***
    
    Starting Scanner/Advertiser Demo
    
    Bluetooth initialized
    
    [00:00:00.714,782] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
    
    [00:00:00.714,782] <inf> bt_hci_core: HW Variant: nRF52x (0x0002)
    
    [00:00:00.714,782] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 2.4 Build 99
    
    [00:00:00.715,362] <inf> bt_hci_core: Identity: DA:20:CF:24:38:05 (random)
    
    [00:00:00.715,362] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1
    
    [00:00:00.715,362] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff
    

    -Amanda H.

  • Hi Amanda

    Thanks for your quick response. I followed your instructions and it worked for scan_adv and my application. 

Related