Problem with Wi-Fi Fundamental: Lesson 1 - Exercise 1

Hi,

I’m trying to finish the first exercise of lesson 1, but when I save it to flash and run the binary, I get this error and I don’t know what’s causing it.

[00:00:00.510,833] <inf> fs_nvs: 2 Sectors of 4096 bytes
[00:00:00.510,833] <inf> fs_nvs: alloc wra: 0, fe8
[00:00:00.510,833] <inf> fs_nvs: data wra: 0, 0
*** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
[00:00:00.511,505] <inf> net_config: Initializing network
[00:00:00.511,535] <inf> net_config: Waiting interface 1 (0x20001140) to be up...
[00:00:00.511,688] <inf> net_config: IPv4 address: 192.165.100.150
[00:00:00.511,718] <inf> net_config: Running dhcpv4 client...
[00:00:00.512,725] <inf> wifi_supplicant: wpa_supplicant initialized
[00:00:03.515,136] <err> bt_hci_driver: Endpoint binding failed with -11
[00:00:03.515,136] <err> bt_hci_core: HCI driver open failed (-11)
Bluetooth init failed (err -11).

Could someone help me? I’ve simply exported the example mentioned in the instructions: Bluetooth LE Wi-Fi provision.

Thank you.

Parents
  • Hi,

     

    These logs indicate that the application firmware is unable to communicate with the network core on the nRF5340:

    [00:00:03.515,136] <err> bt_hci_driver: Endpoint binding failed with -11
    [00:00:03.515,136] <err> bt_hci_core: HCI driver open failed (-11)
    Bluetooth init failed (err -11).

     

    Could you check if your flashed the merged image, or the sub-image? Make sure that the "build" catalog is selected in blue here, and not "ble" or "ipc_radio" before pressing "flash":

     

    Kind regards,

    Håkon

  • Ok that's working right now, but I have another issue:

    [00:00:00.626,739] <inf> fs_nvs: 2 Sectors of 4096 bytes
    [00:00:00.626,739] <inf> fs_nvs: alloc wra: 0, fe8
    [00:00:00.626,739] <inf> fs_nvs: data wra: 0, 0
    *** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
    *** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
    [00:00:00.627,410] <inf> net_config: Initializing network
    [00:00:00.627,441] <inf> net_config: Waiting interface 1 (0x20001140) to be up...
    [00:00:00.627,593] <inf> net_config: IPv4 address: 192.165.100.150
    [00:00:00.627,624] <inf> net_config: Running dhcpv4 client...
    [00:00:00.628,631] <inf> wifi_supplicant: wpa_supplicant initialized
    [00:00:01.653,961] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
    [00:00:01.653,991] <inf> bt_hci_core: HW Variant: nRF53x (0x0003)
    [00:00:01.654,022] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 252.16862 Build 1121034987
    [00:00:01.656,494] <inf> bt_hci_core: HCI transport: IPC
    [00:00:01.656,585] <inf> bt_hci_core: Identity: C1:0A:66:51:4C:31 (random)
    [00:00:01.656,585] <inf> bt_hci_core: HCI: version 6.1 (0x0f) revision 0x2069, manufacturer 0x0059
    [00:00:01.656,616] <inf> bt_hci_core: LMP: version 6.1 (0x0f) subver 0x2069
    Bluetooth initialized.
    Wi-Fi provisioning service starts successfully.
    BT Advertising successfully started.
    BT Connected: 6D:B6:35:A3:F6:D7 (random)

    It seems that the connection is done, but the App is trying to pair continuously:

  • Hi,

     

    Great to hear that you got some progression on this issue.

    There should be a pop-up with a pairing notification from the android system after connecting, like this:

    Before you can fill in your SSID/password, and crypto option.

    Could you check if there is any permissions on that app that is denied?

     

    Please note that if using WPA/WPA2 mixed mode selection, then there is a known issue on NCS v3.1.x at this time, and you will need to cherry pick this fix:

    https://github.com/nrfconnect/sdk-zephyr/commit/f72f7a27e923980e864dfa926c50545f7ecc9864

      

    Kind regards,

    Håkon

  • I am not able to change these permissions from my cell phone. I've tried to reinstall, and delete data app:

  • Hi,

     

    Have you tried restarting your phone, and/or turning bluetooth on/off to see if this has any impact?

    Have you checked if there are any updates on your phone?

     

    Kind regards,

    Håkon

Reply Children
Related