Giter Site home page Giter Site logo

Comments (11)

brocaar avatar brocaar commented on June 11, 2024

The base64_data (AZh8ABI0VniHZUMheyJzdGF0Ijp7InRpbWUiOiIyMDExLTAxLTAxVDA2OjA0OjI1WiIsInJ4bmIiOjE2LCJyeG9rIjoxMiwicnhmdyI6MTIsImFja3IiOjMyLCJkd25iIjowLCJ0eG5iIjowfX0=) decodes to:

{
    "stat": {
        "time": "2011-01-01T06:04:25Z",
        "rxnb": 16,
        "rxok": 12,
        "rxfw": 12,
        "ackr": 32,
        "dwnb": 0,
        "txnb": 0
    }
}

However, the time key has a different formatting than is documented in https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT#L231. As well, it seems a little bit in the past 😉

Could you let me know which version of the packet_forwarder you're using?

from chirpstack-gateway-bridge.

shmrymbd avatar shmrymbd commented on June 11, 2024
  1. Bridge version=2.1.0 i download from your guide
  2. my lora gateway using

from chirpstack-gateway-bridge.

brocaar avatar brocaar commented on June 11, 2024

To me it seems that the time format sent by the
https://github.com/JaapBraam/LoRaWanGateway project has an incompatibility
with the packet_forwarder protocol.

On Sun, Aug 21, 2016, 10:45 kamodachi [email protected] wrote:

  1. Bridge version=2.1.0 i download from your guide
  2. my lora gateway using


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKGeVUyq9ODPMriJbLYB8uz0ljDAVlNks5qiBAVgaJpZM4JosZF
.

from chirpstack-gateway-bridge.

jamiechard avatar jamiechard commented on June 11, 2024

Forgive me if I'm stating the obvious, but I "worked around" the above for another gateway by changing the "Time" inside the "type Stat struct" in gateway/structs.go (i.e. line 396) from "ExpandedTime" to "CompactTime".

from chirpstack-gateway-bridge.

brocaar avatar brocaar commented on June 11, 2024

Yes, but I think if you would use the "official" packet_forwarder now (https://github.com/Lora-net/packet_forwarder), it wouldn't be able to parse that timestamp. I think it is better to open a ticket here https://github.com/JaapBraam/LoRaWanGateway and ask them to change their timestamp format according to the PROTOCOL.TXT.

from chirpstack-gateway-bridge.

htdvisser avatar htdvisser commented on June 11, 2024

For reference:
JaapBraam/LoRaWanGateway@01bf651 fixed this issue

from chirpstack-gateway-bridge.

alexanderplanar avatar alexanderplanar commented on June 11, 2024

Hello, brocaar!
I've got the same problem with Microchip LoRa Gateway!
Does it mean, that the problem is in gateway firmware and I need update it, or, maybe, there is a several legal time formats of "stat":"time" variable? I tried to form this packet by hand using Wireshark and UDP-Tools, I just replaced '..T...Z' string to '.... GMT' format, and it correctly passes parsing....

Now I think about rebuilding the server for my format, because I'm not able to reprogramm the LoRa gateway, cuz I do not have any firmware binaries or sources for this PCB...

from chirpstack-gateway-bridge.

sslupsky avatar sslupsky commented on June 11, 2024

@alexanderplanar Did you fix this problem? I recently installed the gateway_bridge with the Microchip gateway and I am seeing this error. I am not sure if I can just ignore it?

from chirpstack-gateway-bridge.

alexanderplanar avatar alexanderplanar commented on June 11, 2024

sslupsky, bad news, not yet, I had to put aside my work with LoRa for some time due to the other work.
But I guess this could not be fixed until either the firmware of Microchip gateway will be upgraded or the gateway bridge source code will be fixed. The last one is not recommended because, as far I understand, it corresponds to the standard, and fixing it could cause other problems with other gateways. So, I'm still ignoring this error, because I do not have the fixed firmware for Microchip gateway.
The last way I see it is to retranslate messages from Microchip gateway to the gateway_bridge software using a UDP-proxy application. I do not know is these application already written by someone, but I'm sure it is not so complicated to create your own UDP-proxy using e.g. GCC and some kind of notepad-editor. The only few bytes needs to be fixed in the message before retranslating it to the software.

from chirpstack-gateway-bridge.

brocaar avatar brocaar commented on June 11, 2024

@alexanderplanar @sslupsky please see #28.

from chirpstack-gateway-bridge.

sslupsky avatar sslupsky commented on June 11, 2024

@alexanderplanar @brocaar It is unfortunate that Microchip has not supplied a fix to this problem. It has been around for a while and likely a trivial fix that would be fixed by now if Microchip open sourced their gateway firmware. Has anyone asked them to do so? @brocaar , a request from you would likely get their attention.

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.