nRF Cloud Multi-service Quick Start is Working, But compiling with nRF7002 Shield can't connect to nRF Cloud

Hi,

I am using a nRF9161-dk with the nRF7002-ek shield WiFi tracking.

Using the nRF Connect Quick-Start, I downloaded the nRF Cloud Multi-service application and went through provisioning, and I can see my device on my nRF Cloud account, using the cellular and GPS tracking.

Because I need to review the nRF7002 WiFi Tracking with the Shield device, I downloaded the source code and added the extra configs and selected the shield.

-DSHIELD=nrf7002ek_nrf7000 -DSB_CONF_FILE=sysbuild_nrf700x-wifi-scan.conf -DEXTRA_CONF_FILE=overlay-nrf7002ek-wifi-scan-only.conf

This compiles OK and I can program/flash it on to my dev kit.

The application runs OK and connects to the LTE-M network, but with my own compiled version I am now getting this error:

[00:12:04.663,665] <err> nrf_cloud_transport: MQTT input error: -128
[00:12:04.663,726] <err> nrf_cloud_transport: Error disconnecting from cloud: -128
[00:12:04.663,787] <inf> cloud_connection: Disconnecting from nRF Cloud
[00:12:04.663,818] <err> cloud_connection: Could not connect to nRF Cloud
[00:12:04.663,818] <inf> cloud_connection: Retrying in 30 seconds...

I have verified the token is still valid and provisioned by using this command: AT&ATTESTTOKEN

nRF Cloud says it is valid and already claimed.

What do I need to do to the source code to allow it to connect back to my nRF Cloud account?

Thanks,

Phil.

Parents Reply Children
  • I am using v2.9.0 and the application always returns this MQTT input error: -128, right from the start.

    I have unclaimed the device and then re-claimed it thinking it needs to go through provisioning, but that is not the case.

    I believe it is connected to the cellular LTE-M network as it says it is, and +CEREG? returns '1'. I also suspect the nRF Cloud connection isn't attempted unless there is a cellular connection.

    Phil.

  • Hi Phil,

    Can you provide complete application log?

    Best regards,
    Dejan

  • How do I enable a full application log?

    Thanks,

    Phil.

  • Hi Phil,

    The application runs OK and connects to the LTE-M network, but with my own compiled version I am now getting this error:

    I was referring to the partial log which you sent in your initial post. I am interested in seeing also the lines before "<err> nrf_cloud_transport: MQTT input error: -128".

    Best regards,
    Dejan

  • *** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
    *** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
    [00:00:00.963,104] <inf> main: nRF Cloud multi-service sample has started, version: 1.0.0, protocol: MQTT
    [00:00:00.963,165] <inf> application: Reset reason: 0x1
    [00:00:00.963,409] <inf> cloud_connection: Enabling connectivity...
    [00:00:01.330,963] <inf> cloud_connection: Setting up nRF Cloud library...
    [00:00:01.332,855] <inf> nrf_cloud_info: Device ID: nrf-358299840048314
    [00:00:01.333,312] <inf> nrf_cloud_info: IMEI:      358299840048314
    [00:00:01.397,521] <inf> nrf_cloud_info: Modem FW:  mfw_nrf91x1_2.0.2
    [00:00:01.397,552] <inf> nrf_cloud_info: Protocol:          MQTT
    [00:00:01.397,583] <inf> nrf_cloud_info: Download protocol: HTTPS
    [00:00:01.397,583] <inf> nrf_cloud_info: Sec tag:           16842753
    [00:00:01.397,644] <inf> nrf_cloud_info: Host name:         mqtt.nrfcloud.com
    [00:00:01.797,790] <inf> nrf_cloud_credentials: Sec Tag: 16842753; CA: Yes, Client Cert: Yes, Private Key: Yes
    [00:00:01.797,851] <inf> nrf_cloud_credentials: CA Size: 1792, AWS: Likely, CoAP: Likely
    [00:00:01.797,882] <inf> cloud_connection: Waiting for network ready...
    +CGEV: EXCE STATUS 0
    %MDMEV: SEARCH STATUS 1
    %MDMEV: SEARCH STATUS 2
    +CEREG: 2
    +CEREG: 2,"01B0","07CEB478",7
    %MDMEV: PRACH CE-LEVEL 0
    +CSCON: 1
    +CGEV: ME PDN ACT 0,0
    +CNEC_ESM: 50,0
    +CEREG: 1,"01B0","07CEB478",7,,,"00001010","00011100"
    [00:02:43.875,427] <inf> cloud_connection: Network connectivity gained!
    [00:02:44.875,640] <inf> cloud_connection: Network is ready
    [00:02:44.875,671] <inf> cloud_connection: Waiting to obtain date/time
    [00:02:45.191,711] <inf> cloud_connection: Connecting to nRF Cloud
    [00:02:51.932,952] <err> nrf_cloud_transport: MQTT input error: -128
    [00:02:51.933,044] <err> nrf_cloud_transport: Error disconnecting from cloud: -128
    [00:02:51.933,074] <inf> cloud_connection: Disconnecting from nRF Cloud
    [00:02:51.933,105] <err> cloud_connection: Could not connect to nRF Cloud
    [00:02:51.933,135] <inf> cloud_connection: Retrying in 30 seconds...
    +CSCON: 0

Related