Git Product home page Git Product logo

Comments (8)

HeadBoffin avatar HeadBoffin commented on June 5, 2024

Could you share the bytes you send and the bytes you receive please.

along with its example file for uplink communication. I'm also using the same file for downlink reception.

Be aware that you have to use the same file - for Class A configs (the vast majority) a downlink is ONLY sent after an uplink.

from radiolib.

DavidKrepzi avatar DavidKrepzi commented on June 5, 2024

Thanks for looking into this. Yes, I receive the downlinks only after an uplink.

I schedule a downlink of "DEADBEEF" at the Actility side. I receive exactly 4 bytes worth downlink payload from the end-device. However, the received payload changes with each downlink although same payload is sent from NS side. Would it be because some encryption is happening on the downlink payload, and its not yet decrypted?

from radiolib.

StevenCellist avatar StevenCellist commented on June 5, 2024

I've sent multiple handfuls of downlinks by now and never noticed any trouble. Can you enable debug mode (pretty please not verbose mode) and show the output on your device when one or two downlinks occur?

from radiolib.

HeadBoffin avatar HeadBoffin commented on June 5, 2024

Just doing a sanity check / test on the downlink - I'm not a fan of Strings and Strings for a byte array is particularly messy so I'm just reworking it for the other downlink function signature.

from radiolib.

HeadBoffin avatar HeadBoffin commented on June 5, 2024

Try this:

uint8_t downlinkPayload[32];
size_t downlinkLength;
state = node.downlink(downlinkPayload, &downlinkLength);
if(state == RADIOLIB_ERR_NONE) {
      if(downlinkLength > 0) {
            Serial.print(F("[LoRaWAN] Downlink:\t"));
            Module::hexdump(downlinkPayload, downlinkLength);
      }
}

Your DEADBEEF should be revealed and you can interpret the downlinkPayload byte array

from radiolib.

HeadBoffin avatar HeadBoffin commented on June 5, 2024
        Module::hexdump(downlinkPayload, downlinkLength);

Should have added, you need RADIOLIB_DEBUG turned on for this to work, otherwise it won't compile.

I'm working on a more modular example so will figure the debug output shortly.

from radiolib.

HeadBoffin avatar HeadBoffin commented on June 5, 2024

@DavidKrepzi, did this solve your issue?

from radiolib.

HeadBoffin avatar HeadBoffin commented on June 5, 2024

Assuming this worked for OP so closing.

from radiolib.

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.