Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16808

[fiware-askbot] IoTAgent-LoRaWAN: Error decoding CaynneLPP message

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: None

      Description

      Created question in FIWARE Q/A platform on 24-06-2020 at 13:06
      Please, ANSWER this question AT https://ask.fiware.org/question/1171/iotagent-lorawan-error-decoding-caynnelpp-message/

      Question:
      IoTAgent-LoRaWAN: Error decoding CaynneLPP message

      Description:
      I've published this question in StackOverflow I've followed the official docs and apparently all docker containers are running with no errors, however, the fiware-IoT-agent (IoTAgent-LoRaWAN) is having issues to decode CayennLpp messages as you can see:

      fiware-iot-agent |

      {"timestamp":"2020-06-23T11:45:53.689Z","level":"info","message":"New message in topic"}

      fiware-iot-agent |

      {"timestamp":"2020-06-23T11:45:53.690Z","level":"info","message":"IOTA provisioned devices:"}

      fiware-iot-agent |

      {"timestamp":"2020-06-23T11:45:53.691Z","level":"info","message":"Decoding CaynneLPP message:+XQ="}

      fiware-iot-agent |

      {"timestamp":"2020-06-23T11:45:53.691Z","level":"error","message":"Error decoding CaynneLPP message:Error: Invalid CayennLpp buffer size"}

      fiware-iot-agent |

      {"timestamp":"2020-06-23T11:45:53.691Z","level":"error","message":"Could not cast message to NGSI"}

      This is how I'm provisioning the device

      {
      "devices": [
      {
      "device_id": "node",
      "entity_name": "LORA-N-0",
      "entity_type": "LoraDevice",
      "timezone": "Europe/Madrid",
      "attributes": [

      { "object_id": "potVal", "name": "Pot_Value", "type": "Number" }

      ],
      "internal_attributes": {
      "lorawan": {
      "application_server": {
      "host": "eu.thethings.network",
      "username": "TTN_app_id",
      "password": "TTN_app_pw",
      "provider": "TTN"
      },
      "dev_eui": "TTN_dev_eui",
      "app_eui": "TTN_app_eui",
      "application_id": "TTN_app_id",
      "application_key": "TTN_app_skey"
      }
      }
      }
      ]
      }

      Of course, as I've said in StackOverflow, those }} are environment variables in Postman to avoid get sensible information published, anyway ... I'm not sure about the field "password": "{{TTN_app_pw" that I've used. Also ... I think this site should have better formatting options to publish this questions (or maybe I don't know the formatting tags)

      Thank you all.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2020-06-29 11:29|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-06-29 11:29|CREATED monitor | # answers= 1, accepted answer= False

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: