Git Product home page Git Product logo

Comments (4)

lthiery avatar lthiery commented on August 22, 2024

#123 will display RSSI. devaddr is not available at the scope of this debug message, so we would have to print another line if we did that.

from gateway-rs.

madninja avatar madninja commented on August 22, 2024

Fixed for RSSI in #123

from gateway-rs.

jpmeijers avatar jpmeijers commented on August 22, 2024

+1

I also want to see the DevAddr, as I am curious which network's data is actually being received. The gateway only earns HNT for Helium DevAddr's. If I see a lot of logs being printed, but not earning anything, showing the DevAddr (or NetID) will help to explain why.

I also agree with @disk91 that the MacAddress of the gateway is not really useful here, and can be removed to save space.

from gateway-rs.

jpmeijers avatar jpmeijers commented on August 22, 2024

Looking at the code where you print the RSSI, it seems like the raw payload of the uplink packet is available.

payload: rxpk.get_data().to_vec(),

gateway-rs/src/packet.rs

Lines 50 to 51 in edf4056

signal_strength: rssi as f32,
snr: rxpk.get_snr() as f32,

self.0.signal_strength,

The DevAddr is not encrypted and by calculating the correct offset one can extract the DevAddr and Frame Count from it, like done here:
https://github.com/kersing/packet_forwarder/blob/e84e9a38d3c5deeaf6792b1e77449cf119cd542b/mp_pkt_fwd/src/stats.c#L197-L205

from gateway-rs.

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.