Giter Site home page Giter Site logo

Comments (7)

brocaar avatar brocaar commented on June 11, 2024

This is because the time field is only filled in the UDP packet when the gateway has an accurate time source (GPS). Since an empty time in Go is equal to 0001-01-01T00:00:00Z, the JSON published to MQTT is filled with this value. This has been brought up before and I agree it is confusing. I'll look into a proper solution soon.

from chirpstack-gateway-bridge.

lg007 avatar lg007 commented on June 11, 2024

Thanks for your reply. Don't worry too much about it, it is really not a big issue.

from chirpstack-gateway-bridge.

jpmeijers avatar jpmeijers commented on June 11, 2024

How about setting the time field to 1970-01-01 00:00 (unix epoch)?

On the other hand, if the time is not set because the gateway is not aware of the current time, how about setting it to the current timestamp of the server. If the server is NTP sync'ed this will at least give a good representation of when the packet was passed through the bridge.

from chirpstack-gateway-bridge.

tftelkamp avatar tftelkamp commented on June 11, 2024

Please don't set it to current time in the server, because then we don't know anymore of this is GPS synced time from the gateway or not.

Server time is useful though, but then better add a field for it.

from chirpstack-gateway-bridge.

brocaar avatar brocaar commented on June 11, 2024

I don't thing it would be a good idea to let LoRa Gateway Bridge add a time-field to the JSON. As the instance might not run on the gateway itself, there might be quite a difference between when it was received by the gateway and when it was received by the gw bridge (as in seconds in some setups using 3G connection).

from chirpstack-gateway-bridge.

sslupsky avatar sslupsky commented on June 11, 2024

I have seen this issue when using the Microchip gateway as well so I do not think this is specific to the LORANK8.

Here is the output when subscribed to "gateway/#/#":

gateway/1234567887654321/rx {"rxInfo":{"mac":"1234567887654321","time":"0001-01-01T00:00:00Z","timestamp":1433980587,"frequency":903100000,"channel":4,"rfChain":1,"crcStatus":1,"codeRate":"4/5","rssi":-39,"loRaSNR":9.8,"size":21,"dataRate":{"modulation":"LORA","spreadFactor":7,"bandwidth":125}},"phyPayload":"QHC9cwcAIgI8qBIoYzAPfh8iXsvN"}

from chirpstack-gateway-bridge.

brocaar avatar brocaar commented on June 11, 2024

This will be fixed soon :-)

from chirpstack-gateway-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.