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

FIWARE.Question.Tech.Sending decrypted LoRa Frame Payload to the Fiware's JSON/MQTT IOT agent.

    Details

      Description

      Created question in FIWARE Q/A platform on 28-01-2018 at 21:01
      Please, ANSWER this question AT https://stackoverflow.com/questions/48491033/sending-decrypted-lora-frame-payload-to-the-fiwares-json-mqtt-iot-agent

      Question:
      Sending decrypted LoRa Frame Payload to the Fiware's JSON/MQTT IOT agent

      Description:
      I have a gateway which catches LoRa packets(decrypted with AES-128 and encoded as base64) and converts them to UDP.
      In addition, i execute a service on my gateway (lora-gateway-bridge: https://github.com/brocaar/lora-gateway-bridge) which abstracts the UDP protocol and converts my packet to MQTT.
      On cloud,the packets are published as they are to the mosquitto MQTT broker in JSON format which includes the gateway's metadata and the phypayload as key value pairs.
      I also run the Fiware's JSON/MQTT IOT agent service and the Context Broker.
      What should i do in order to send the measures from the mosquitto to the IOT agent in order to be compatible?
      For example i want to make a post request to iotagent service to send the measure of the temperature and humidity....these are published until now to the mosquitto as

      gateway/1dee18c14948a955/rx {"rxInfo":{"mac":"1dee18c14948a955","time":"0001-01-01T00:00:00Z","timestamp":38099540,"frequency":868500000,"channel":2,"rfChain":1,"crcStatus":1,"codeRate":"4/5","rssi":-28,"loRaSNR":9,"size":20,"dataRate":{"modulation":"LORA","spreadFactor":9,"bandwidth":125}},"phyPayload":"gFY0EjoAAgABCCpbg+AkKM1gHnQ="}

      Essentially i want to send to my IOT agent the decrypted frame payload that the phypayload includes,which is 006700ED016866 HEX.This means that the temperature is 00ED(HEX) and the humidity 66(HEX) according the cayenne low power payload format.
      Then i had to post to the IOT agent the temperature t:23,7 and the humidity h:54

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        10d 19h 1m 1 Jose Gato Luis 08/Feb/18 7:07 PM
        In Progress In Progress Answered Answered
        1s 1 Jose Gato Luis 08/Feb/18 7:07 PM
        Answered Answered Closed Closed
        1s 1 Jose Gato Luis 08/Feb/18 7:07 PM

          People

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

            Dates

            • Created:
              Updated:
              Resolved: