Start scanning...failed (err -5) NCS2.2.0

Hello,

update to NCS2.2.0,VScode, nRF5340DK

C:\ncs\v2.2.0\zephyr\samples\bluetooth\periodic_sync\

no change any code,got error,

*** Booting Zephyr OS build v3.2.99-ncs1 ***
Starting Periodic Advertising Synchronization Demo
Checking LED device...done.
Configuring GPIO pin...done.
Scan callbacks register...success.
Periodic Advertising callbacks register...Success.
Start scanning...failed (err -5)
[00:00:00.476,501] [0m<inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002)[0m
[00:00:00.476,531] [0m<inf> bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003)[0m
[00:00:00.476,562] [0m<inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 109.16784 Build 2917677098[0m
[00:00:00.478,149] [0m<inf> bt_hci_core: bt_dev_show_info: Identity: CA:F6:D8:05:5B:2D (random)[0m
[00:00:00.478,179] [0m<inf> bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x21fa, manufacturer 0x0059[0m
[00:00:00.478,179] [0m<inf> bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x21fa[0m
[00:00:00.489,471] [1;33m<wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2041 status 0x01[0m

    

Best regards

Parents Reply
  • Hello Yo,

    You need to enable periodic sync in the child image as well. How this is done is described here.

    Keep in mind that it might be tempting to change the configurations directly in the hci_rpmsg project, though if you do this you change the configuration for all other projects that use this as well - it is not just a part of you local sample project. Instead, this is what I'd recommend:

    1. Add a child image folder in the build folder. Name it child_image.

    2. Add a hci_rpmsg.conf configuration file to it. 

    3. Add the configurations  from your previous project to it.

    I believe this might work for you too Jeffrey.

    Regards,

    Elfving

Children
No Data
Related