nRF9160 with nRF7002-ek; connect to Wi-Fi network

My setup is a nRF7002-EK shield on top of the nRF9160-DK.
Trying to use this shield to connect to a Wi-Fi network, using the shell example compiled with the suggested command:

west build -b nrf9160dk_nrf9160_ns -- -DOVERLAY_CONFIG="overlay-scan-only.conf" -DSHIELD=nrf7002ek

Using the shell `wifi scan`, I can see all the available networks.
However, connecting to a network instantly fails.

Does the `scan-only-overlay` mean that I am only able to use the scan command?
Is it possible (and how?) to also use the other commands as most of the other commands return an error.

Parents
  • Hi

    Yes, this is an overlay to do scanning only in order to minimize the RAM usage on the nRF9160. You will need to remove this overlay config to use the other options, but I'm not sure if this will fit on the nRF9160 in terms of RAM/Flash memory usage.

    If you check out the overlay-scan-only.conf file, you can see what options are disabled or not (attached below):

    # Scan only using offload API
    CONFIG_WPA_SUPP=n
    # In 9160 default is socket interface
    CONFIG_NET_DEFAULT_IF_ETHERNET=y
    CONFIG_MBEDTLS=n
    CONFIG_NORDIC_SECURITY_BACKEND=n
    # If MbedTLS is enabled, use the standard files
    CONFIG_GENERATE_MBEDTLS_CFG_FILE=y
    
    # Disable unused networking options
    CONFIG_NET_SOCKETS=n
    CONFIG_POSIX_API=n
    CONFIG_NET_LOG=n
    CONFIG_NET_IPV6=n
    CONFIG_NET_TCP=n
    CONFIG_DNS_RESOLVER=n
    
    # Memories
    CONFIG_NET_PKT_RX_COUNT=1
    CONFIG_NET_PKT_TX_COUNT=1
    # Needed to handle more scan results
    CONFIG_HEAP_MEM_POOL_SIZE=25000
    

    Best regards,

    Simon

  • Thanks for the quick reply Simon! Will follow-up later this week.

    In the meantime, I have a new related question. The end goal of my project is to use the nRF7002 Wi-Fi chip besides the build-in nRF9160 LTE module. Do you think this is possible at all on the nRF9160?

    Current application (only uses the LTE, no Wi-Fi).

    Memory region         Used Size  Region Size  %age Used
               FLASH:      141668 B       960 KB     14.41%
                 RAM:      110632 B     211736 B     52.25%

Reply
  • Thanks for the quick reply Simon! Will follow-up later this week.

    In the meantime, I have a new related question. The end goal of my project is to use the nRF7002 Wi-Fi chip besides the build-in nRF9160 LTE module. Do you think this is possible at all on the nRF9160?

    Current application (only uses the LTE, no Wi-Fi).

    Memory region         Used Size  Region Size  %age Used
               FLASH:      141668 B       960 KB     14.41%
                 RAM:      110632 B     211736 B     52.25%

Children
Related