nRF Cloud cards not showing

Hi,

I am connecting my nrf9160 based system to the nRF Cloud and sending data from it.

I got the cloud to show the RSRP values that I sent it through the following JSON message:

  {
    "topic": "prod/.../m/d/nrf-.../d2c",
    "deviceId": "nrf-...",
    "receivedAt": "2022-04-14T14:24:49.208Z",
    "message": {
      "messageType": "DATA",
      "data": "-84.0",
      "appId": "RSRP"
    },
    "tenantId": "..."
  },

Now I want the cloud to show me some device info and other cards, so I sent the following message:

  {
    "topic": "prod/.../m/d/nrf-.../d2c",
    "deviceId": "nrf-...",
    "receivedAt": "2022-04-14T14:24:48.749Z",
    "message": {
      "messageType": "DATA",
      "data": {
        "networkInfo": {
          "networkMode": "LTE-MLTE-MLTE-ML\u0001LTE-M",
          "areaCode": 31501,
          "currentBand": 20,
          "mccmnc": "20408",
          "ipAddress": "2A02:A420:0016:5F66:0002:0002:1CD7:6EB4",
          "ueMode": 2,
          "cellID": 5350668,
          "supportedBands": "(1,2,3,4,5,8,12,13,18,19,20,25,26,28,66)\r\n"
        },
        "simInfo": {
          "iccid": "...",
          "uiccMode": 19457,
          "imsi": "..."
        },
        "serviceInfo": {
          "ui": [
            "RSRP",
            "DEVICE",
            "TEMP"
          ]
        },
        "deviceInfo": {
          "appVersion": "v1.5.1",
          "modemFirmware": "mfw_nrf9160_1.2.7",
          "batteryVoltage": 3653,
          "appName": "PROJECT_NAME",
          "imei": "...",
          "board": "b2_nrf9160"
        }
      },
      "appId": "DEVICE"
    },
    "tenantId": "..."
  },

I suspect that I made an error in my JSON format, as I saw someone mention in another thread that unrecognised messages are silently ignored by nRF Cloud, but I can not find the error myself. (basing my formatting on the information found in https://github.com/nRFCloud/application-protocols/tree/v1/schemas/deviceToCloud/device).

I do see the information appearing in the terminal card, so this is not that critical for me. Still it would be nice and useful for testing if the data was presented in a nice UI window.

Unrelated: I use the modem_info_params_get function to get and update my device information. For some reason it messes up the networkMode field, going from LTE-M to LTE-MLTE-M to LTE-MLTE-MLTE-M etc.. until it ends up at LTE-MLTE-MLTE-ML\u0001LTE-M. Does anyone know why that might be? I have tried clearing the string field for this parameter before updating the struct, but it did not help.

  • Hello, 

    Have you read the nRF Cloud application protocol Readme? It states:

    Devices that send messages to nRFCloud can optionally have data displayed on cards. Cards will be shown only if the device shadow includes valid service ui and messages transmitted from the device use the correct protocols described in this repo.

    Messages that do not conform to the schemas are still processed and stored. However, it is not guaranteed that nRF Cloud will display your data on a card. Instead you will have to view the data using the terminal card.

     

    Now I want the cloud to show me some device info and other cards, so I sent the following message

    Did you try with deviceToCloud - Device schema

    Kind regards,
    Øyvind

Related