nRF9160DK connect to nRF Cloud nrf_cloud_transport: MQTT input error: -128 nrf_cloud_transport: Error disconnecting from cloud: -128

Hi,

I use VS code (windows 10) to program nRF9160DK under modem mfw_nrf9160_1.3.6, application Asset Tracker V2, JITP certificate generated by nRF Cloud and good SIM card from CMHK.

But after adding device to nRF Cloud, the DK cannot connect with cloud. The Serial Terminal displays error: <err> nrf_cloud_transport: MQTT input error: -128  <err> nrf_cloud_transport: Error disconnecting from cloud: -128.

This is the trace file and application logs: trace&application_logs.zip. This application file asset_tracker_v2.zip (prj.conf: I change CONFIG_NET_IPV6=n and add  CONFIG_NRF_MODEM_LIB_TRACE=y, CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=n, CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y, CONFIG_PDN=y, CONFIG_PDN_LEGACY_PCO=y, CONFIG_MODEM_JWT=y, CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y)

Is there anything wrong?

Best regards,

Liza

Parents
  • The SDK version under VS code is 2.6.0. After flashed by VS code, the DK's LED3 triple pulse blinks but cannot connect to cloud.

    I use  nRF Connect for Desktop v5.0.2 - Cellular Monitor v2.4.1 - Program Device - Asset Tracker V2, then the DK can connect and upload data to cloud.

    Is there any difference between my firmware and  Cellular Monitor's ? I notice that Cellular Monitor uses modem mfw_nrf9160_1.3.5, is there any influence?

    This is support information:

    // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro",
        "osKernel": "10.0.19045",
        "vscode": "1.95.1",
        "electron": "32.2.1",
        "node": "v20.18.0"
      },
      "system": {
        "date": "2024-11-07T09:41:21.645Z",
        "vscodeRoot": "c:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "02:00:58",
        "osUptime": "218:58:26",
        "cpu": "Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz"
      },
      "workspace": {
        "name": "asset_tracker_v2",
        "workspaceFile": null,
        "folders": [
          "c:\\WORKSPACE\\CR2405A10\\nordic\\asset_tracker_v2"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.0",
          "path": "c:\\ncs\\v2.6.0"
        }
      ],
      "activeBuild": "c:\\WORKSPACE\\CR2405A10\\nordic\\asset_tracker_v2\\build",
      "apps": [
        {
          "workspace": "c:\\WORKSPACE\\CR2405A10\\nordic\\asset_tracker_v2",
          "uri": "c:\\WORKSPACE\\CR2405A10\\nordic\\asset_tracker_v2",
          "buildConfigurations": [
            {
              "id": "c:\\WORKSPACE\\CR2405A10\\nordic\\asset_tracker_v2\\build",
              "name": "build",
              "boardId": "nrf9160dk_nrf9160_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "c:\\ncs\\v2.6.0",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.0",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "0.15.0",
          "path": "c:\\Users\\Liza\\zephyr-sdk-0.15.0"
        }
      ],
      "activeToolchain": {
        "type": "installation",
        "path": "c:\\ncs\\toolchains\\cf2149caf2",
        "version": "2.6.0",
        "displayName": "nRF Connect SDK Toolchain v2.6.0"
      },
      "connectedDevices": [
        {
          "serialNumber": "000960037024"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
        "C:\\APP\\nRF command line tools\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "C:\\APP\\nRF command line tools\\10.24.2\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\ncs\\toolchains\\cf2149caf2\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
        "C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.2",
          "binPath": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.11.22-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
            "expectedVersion": {
              "version": "JLink_V7.94i",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V7.94e",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.11.22-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\Liza",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Liza",
          "PATH": "C:\\ncs\\toolchains\\cf2149caf2;C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;C:\\ncs\\toolchains\\cf2149caf2\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.11.22-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\APP\\python 3.12;C:\\APP\\python 3.12\\Scripts\\;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\CMake\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\Ninja\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\GNU-tools-for-STM32\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STLink-gdb-server\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STM32CubeProgrammer\\bin;C:\\APP\\VMware\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\APP\\Anaconda\\Anaconda;C:\\APP\\Anaconda\\Anaconda\\Library\\mingw-w64\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\usr\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\bin;C:\\APP\\Anaconda\\Anaconda\\Scripts;C:\\APP\\Python\\Scripts\\;C:\\APP\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Arduino CLI\\;C:\\APP\\PuTTY\\PuTTY 0.80\\;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Git\\Git\\cmd;C:\\APP\\JAVA\\JDK22\\bin;C:\\APP\\JAVA\\JDK22\\jre\\bin;C:\\APP\\Android Studio\\SDK\\platform-tools;C:\\APP\\gcc-arm\\10 2021.10\\bin;C:\\APP\\OpenOCD\\OpenOCD-20231002-0.12.0\\bin;C:\\APP\\make\\GnuWin32\\bin;C:\\APP\\MinGW\\bin;C:\\APP\\cmake\\cmake-3.28.6\\bin;C:\\APP\\nRF command line tools\\10.24.2\\bin\\;C:\\APP\\wget-1.21.4-win32;C:\\APP\\MinGW\\msys\\1.0\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\APP\\GN tool;C:\\Users\\Liza\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\Liza\\AppData\\Local\\Microsoft\\WindowsApps;C:\\APP\\Arduino;C:\\Users\\Liza\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.3\\tools;",
          "ZEPHYR_BASE": "c:\\ncs\\v2.6.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\Liza",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Liza",
          "Path": "c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.20.0\\res\\tools\\win32\\unify_builder;C:\\Users\\Liza\\.eide\\bin\\builder\\utils;C:\\Users\\Liza\\.eide\\bin\\scripts;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.20.0\\res\\tools\\win32\\7z;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.20.0\\res\\tools\\win32\\utils;C:\\Users\\Liza\\.eide\\tools\\gcc_arm\\bin;C:\\Users\\Liza\\.eide\\tools\\jlink;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\st_cube_programer\\bin;C:\\Users\\Liza\\.eide\\bin\\builder\\msys\\bin;C:\\APP\\python 3.12;C:\\APP\\python 3.12\\Scripts\\;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\CMake\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\Ninja\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\GNU-tools-for-STM32\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STLink-gdb-server\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STM32CubeProgrammer\\bin;C:\\APP\\VMware\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\APP\\Anaconda\\Anaconda;C:\\APP\\Anaconda\\Anaconda\\Library\\mingw-w64\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\usr\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\bin;C:\\APP\\Anaconda\\Anaconda\\Scripts;C:\\APP\\Python\\Scripts\\;C:\\APP\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Arduino CLI\\;C:\\APP\\PuTTY\\PuTTY 0.80\\;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Git\\Git\\cmd;C:\\APP\\JAVA\\JDK22\\bin;C:\\APP\\JAVA\\JDK22\\jre\\bin;C:\\APP\\Android Studio\\SDK\\platform-tools;C:\\APP\\gcc-arm\\10 2021.10\\bin;C:\\APP\\OpenOCD\\OpenOCD-20231002-0.12.0\\bin;C:\\APP\\make\\GnuWin32\\bin;C:\\APP\\MinGW\\bin;C:\\APP\\cmake\\cmake-3.28.6\\bin;C:\\APP\\nRF command line tools\\10.24.2\\bin\\;C:\\APP\\wget-1.21.4-win32;C:\\APP\\MinGW\\msys\\1.0\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\APP\\GN tool;C:\\Users\\Liza\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\Liza\\AppData\\Local\\Microsoft\\WindowsApps;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Arduino;C:\\Users\\Liza\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.3\\tools;;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\dotnet",
          "PATH": "c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.20.0\\res\\tools\\win32\\unify_builder;C:\\Users\\Liza\\.eide\\bin\\builder\\utils;C:\\Users\\Liza\\.eide\\bin\\scripts;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.20.0\\res\\tools\\win32\\7z;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.20.0\\res\\tools\\win32\\utils;C:\\Users\\Liza\\.eide\\tools\\gcc_arm\\bin;C:\\Users\\Liza\\.eide\\tools\\jlink;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\st_cube_programer\\bin;C:\\Users\\Liza\\.eide\\bin\\builder\\msys\\bin;C:\\APP\\python 3.12;C:\\APP\\python 3.12\\Scripts\\;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\CMake\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\Ninja\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\GNU-tools-for-STM32\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STLink-gdb-server\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STM32CubeProgrammer\\bin;C:\\APP\\VMware\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\APP\\Anaconda\\Anaconda;C:\\APP\\Anaconda\\Anaconda\\Library\\mingw-w64\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\usr\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\bin;C:\\APP\\Anaconda\\Anaconda\\Scripts;C:\\APP\\Python\\Scripts\\;C:\\APP\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Arduino CLI\\;C:\\APP\\PuTTY\\PuTTY 0.80\\;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Git\\Git\\cmd;C:\\APP\\JAVA\\JDK22\\bin;C:\\APP\\JAVA\\JDK22\\jre\\bin;C:\\APP\\Android Studio\\SDK\\platform-tools;C:\\APP\\gcc-arm\\10 2021.10\\bin;C:\\APP\\OpenOCD\\OpenOCD-20231002-0.12.0\\bin;C:\\APP\\make\\GnuWin32\\bin;C:\\APP\\MinGW\\bin;C:\\APP\\cmake\\cmake-3.28.6\\bin;C:\\APP\\nRF command line tools\\10.24.2\\bin\\;C:\\APP\\wget-1.21.4-win32;C:\\APP\\MinGW\\msys\\1.0\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\APP\\GN tool;C:\\Users\\Liza\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\Liza\\AppData\\Local\\Microsoft\\WindowsApps;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Arduino;C:\\Users\\Liza\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.3\\tools;;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\dotnet",
          "ZEPHYR_BASE": "C:\\ncs\\v2.6.0\\zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt",
          "ZEPHYR_TOOLCHAIN_VARIANT": "C:\\ncs\\v2.6.0\\zephyr\\cmake\\toolchain\\gnuarmemb"
        }
      },
      "terminal": {
        "shell": "C:/APP/Git/Git/bin/bash.exe",
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "variableUseNaturalFormat": true,
          "liveWatchRefreshRate": "300",
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "dbgServerLogfile": null
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.11.22",
            "path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.11.22-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.11.16",
            "path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.11.16",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.11.16",
            "path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.11.16",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.22.11",
          "ms-vscode.js-debug": "1.95.1",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "alefragnani.project-manager": "12.8.0",
          "cl.eide": "3.20.0",
          "cl.keil-assistant": "1.7.0",
          "cschlosser.doxdocgen": "1.4.0",
          "dan-c-underwood.arm": "1.7.4",
          "DanielSanMedium.dscodegpt": "3.5.126",
          "formulahendry.code-runner": "0.12.2",
          "GitHub.remotehub": "0.64.0",
          "hars.CppSnippets": "0.0.15",
          "IBM.output-colorizer": "0.1.2",
          "jeff-hykin.better-cpp-syntax": "1.27.1",
          "keroc.hex-fmt": "1.0.0",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.25",
          "mcu-debug.peripheral-viewer": "1.4.6",
          "mcu-debug.rtos-views": "0.0.7",
          "mechatroner.rainbow-csv": "3.12.0",
          "MS-CEINTL.vscode-language-pack-zh-hans": "1.95.2024103009",
          "ms-python.debugpy": "2024.12.0",
          "ms-python.python": "2024.18.0",
          "ms-python.vscode-pylance": "2024.11.1",
          "ms-vscode.azure-repos": "0.40.0",
          "ms-vscode.cmake-tools": "1.19.52",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.hexeditor": "1.11.1",
          "ms-vscode.makefile-tools": "0.11.13",
          "ms-vscode.remote-repositories": "0.42.0",
          "ms-vscode.vscode-serial-monitor": "0.13.1",
          "platformio.platformio-ide": "3.3.3",
          "redhat.vscode-yaml": "1.15.0",
          "STMicroelectronics.stm32-vscode-extension": "2.1.1",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "vsciot-vscode.vscode-arduino": "0.7.1",
          "xiaoyongdong.srecord": "0.0.5",
          "ZixuanWang.linkerscript": "1.0.4"
        }
      }
    }
    
    

  • I am not an expert in this so I am giving you gathered information.

    Looks like that MQTT input error: -128 means your Asset Tracker v2 app on the nRF9160 DK isn’t able to connect to nRF Cloud. Here are a few things to try that could fix it:

    First, check that the modem firmware on the DK and the SDK version you’re using are compatible. If they don’t match up right, connection issues can pop up. Typically, modem firmware mfw_nrf9160_1.3.6 should work with SDK v2.6.0, but it’s worth verifying with Nordic’s documentation just to be sure.

    Next, take a look at your app configuration, focusing on network modes and protocol settings. Small misconfigurations here are often the source of issues. For example, if CONFIG_NET_IPV6=n is set, it turns off IPv6, which may be required by your network.

    Make sure the Just-In-Time Provisioning (JITP) certificates from nRF Cloud are in place on the device. If they’re missing or not set up correctly, the device won’t be able to make the MQTT connection.

    Confirm that the network modes in your config—like CONFIG_LTE_NETWORK_MODE_LTE_M_GPS and CONFIG_LTE_NETWORK_MODE_NBIOT_GPS—match what your SIM provider supports. If LTE-M is supported by the provider, make sure it’s enabled in the config.

    If the network you’re using requires it, Legacy PCO mode should be enabled (CONFIG_PDN_LEGACY_PCO=y). Leaving this off can also stop the connection from working.

    You might also want to turn on modem traces with CONFIG_NRF_MODEM_LIB_TRACE=y. These will give you more detailed logs, which can be helpful to see exactly where things are breaking in the connection process.

    Since the Cellular Monitor version of the Asset Tracker v2 works fine, try comparing its configuration to yours. It could just be a small difference in settings or versions that’s making the difference.

    With any luck, these checks will help you get things connected!

  • Hi Susheel Nuguru,

    Thanks for your answer! 

    Do you know how to find the Asset Tracker v2 source code used by Cellular Monitor?

    Best regards,

    Liza

Reply Children
  • GitHub: Head over to Nordic Semiconductor’s GitHub repository for the nRF Connect SDK. You’ll find the Asset Tracker v2 code under applications/asset_tracker_v2 Nordic’s nRF Connect SDK documentation provides detailed guidance for Asset Tracker v2, including setup and usage instructions. Just look for the Asset Tracker v2 section on their site. If you prefer a more guided approach, install nRF Connect for Desktop. Using its Toolchain Manager, you can easily download the entire SDK, including Asset Tracker v2.

    It’s worth mentioning that Asset Tracker v2 is no longer actively developed. I suggest checking out their Cellular: nRF Cloud multi-service sample for newer projects.

  • Hi Susheel Nuguru,

    Ok, I will try nRF Cloud multi-service sample. Thanks.

    Best regards,

    Liza

Related