We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question

wyre's profile - activity

2020-06-25 17:10:35 +0200 answered a question IoTagent-LoRaWAN cannot cast NGSI to Orion Context Broker

The problem was apparently the docker-composer.yml which was not deploying correctly the Context Broker and MongoDB. It's apparently solved already.

Thank you all :-)

2020-06-25 09:43:12 +0200 asked a question IoTagent-LoRaWAN cannot cast NGSI to Orion Context Broker

According to this once I've added a device to the IoTagent (LoRaWAN in this case) the agent should be create an entity in the Context Broker, however apparently the IoTagent-LoRaWAN is not able to cast the message to NGSI as you can see in the picture,

2020-06-24 15:14:08 +0200 received badge  Scholar (source)
2020-06-24 15:14:03 +0200 answered a question IoTAgent-LoRaWAN: Error decoding CaynneLPP message

Apparently the problem is the encoding from the Arduino sketch itself, It was a custom encoding and I must use the CayenneLPP library to encode the payload.

2020-06-24 13:13:20 +0200 asked a question IoTAgent-LoRaWAN: Error decoding CaynneLPP message

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.

2020-06-15 11:17:04 +0200 received badge  Popular Question (source)
2020-06-15 11:17:04 +0200 received badge  Notable Question (source)
2020-05-23 13:16:36 +0200 answered a question Cannot connect IoTagent-LoRaWAN docker container

According to that question in StackOverflow the problem was the docker-compose.yml itself. I've tried the suggested one and apparently is working as expected

EDIT: You have here and here info about why I was doing it wrong.

Thank you anyway.

2020-05-22 11:00:54 +0200 received badge  Editor (source)
2020-05-22 08:29:01 +0200 asked a question Cannot connect IoTagent-LoRaWAN docker container

I've cloned the agent repo and I've used docker-compose to run mongoDB, Orion and the agent itself in containers as docker-compose.yml file marks it. But as you can see here, I cannot get the right response when I try curl -v http://localhost:4061/iot/about

What am I doing wrong?