TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
462 stars 276 forks source link

Handling extra info in gateway status messages #117

Closed jpmeijers closed 8 years ago

jpmeijers commented 8 years ago

The UDP packet my Multitech gateway with poly-packet-forwarder sends to TTN, contains the following JSON payload:

{"stat": 
  {"time":"2016-03-31.11:58:26.GMT", 
   "lati":52.23936, 
   "long":6.85647, 
   "alti":46, 
   "rxnb":0, 
   "rxok":0, 
   "rxfw":0, 
   "ackr":66.7, 
   "dwnb":0, 
   "txnb":0, 
   "pfrm":"MultiTech", 
   "mail":"my-anonymous@mail-address", 
   "desc":"Create.TTN.gateway.1"
  }
}

It would be nice if the fields "pfrm", "mail" and "desc" could be handled by the TTN server if they exist in the payload. Something like the e-mail address should not be publicly displayed via the API, but should be accessible via a web form in case the owner of a gateway should be contacted.

htdvisser commented 8 years ago

Could someone comment with a link to the specific firmware that adds these fields?

gonzalocasas commented 8 years ago

https://github.com/TheThingsNetwork/packet_forwarder/commit/faa525b1c517f481727b8b313e19a84c5bc573e7

gonzalocasas commented 8 years ago

These fields are also supported by our ic880a install script, so, I guess (hope) most IMST ic880a gateways do have them configured already

htdvisser commented 8 years ago

Support for this has been implemented in the refactor branch. See #199 for more info.

As we will migrate to brocaar/lora-gateway-bridge to support the Semtech protocols, we still have to implement these in that project.