I'm currently looking for a simple solution to have nRF52840 BLE scanning for 1M and Coded advertisements and have the results printed via serial.
I found this, and I thought I give it I try: Using Bluetooth Shell
Hardware: nRF52840 DK
SDK(s): nCS 2.5.0, 2.5.1, 2.3.0 (These I've tried)
Build target is nrf52840dk_nrf52840, without any modifications to CMakeLists.txt or menuconfig, extra build arguments, etc.
I basically go to ${NCS_ROOT}/zephyr/testing/bluetooth/ and copy the shell sample to a different location, and then I open it and build it in VS Code (using ncs extension)
I can initialize BLE, and start scanning, but when I add argument "coded" I get an error.
This is the output I see in my terminal:
uart:~$ bt init Bluetooth initialized Settings Loaded [00:00:04.457,672] <inf> fs_nvs: nvs_mount: 8 Sectors of 4096 bytes [00:00:04.457,702] <inf> fs_nvs: nvs_mount: alloc wra: 0, fb8 [00:00:04.457,702] <inf> fs_nvs: nvs_mount: data wra: 0, 34 [00:00:04.458,343] <inf> bt_sdc_hci_driver: hci_driver_open: SoftDevice Controller build revision: d8 0c 2d 2f 36 ae e2 5c 80 26 80 4c 3f 4d 16 53 |..-/6..\ .&.L?M.S 50 96 c7 73 |P..s [00:00:04.462,493] <inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002) [00:00:04.462,524] <inf> bt_hci_core: hci_vs_init: HW Variant: nRF52x (0x0002) [00:00:04.462,585] <inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 216.11532 Build 3803067951 [00:00:04.463,134] <inf> bt_hci_core: bt_init: No ID address. App must call settings_load() [00:00:04.465,484] <inf> bt_hci_core: bt_dev_show_info: Identity: C1:B6:48:E6:66:7F (random) [00:00:04.465,545] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x124b, manufacturer 0x0059 [00:00:04.465,576] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x124b uart:~$ bt scan on coded Bluetooth set active scan failed (err -5) [00:00:12.686,645] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2041 status 0x1
Is this actually supported on nRF52840?
Does anyone have an idea on how to fix it?
Thanks
Emir