Comments (8)
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.
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.
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.
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.
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.
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.
@DavidKrepzi, did this solve your issue?
from radiolib.
Assuming this worked for OP so closing.
from radiolib.
Related Issues (20)
- NodeMCU (ESP8266) with SX1262 is not working HOT 2
- Heltec Wireless Stick Lite V3 not receiving join accept HOT 4
- e22-400m33s recieve interrupt HOT 3
- Can you update an example of the Arduino platform LLCC68? Thank you! HOT 2
- LoRaWan - CubeCell cannot join most time (error -6) HOT 33
- LoRaWAN cppcheck warnings / bugs HOT 5
- High % of CRC Errors in SF12 and similar configurations, HOT 2
- SX1278 LoRa exmples compiling. Transmitter emits signal but Receiver getting timeout in a loop HOT 3
- [LORAWAN] sending uplink packet… failed code -4 HOT 31
- Test LoRaWAN LinkCheck & DeviceTime HOT 2
- Wiki correction, E22-900M30S HOT 3
- LoRaWAN OTAA saves join session data in background but not f_cnt HOT 1
- Lora SX1268 sleep mode power consumption issue HOT 1
- SetPowerOutput(20, false) not working HOT 5
- LLCC68 LoRaWAN failed with -1106 and -9 HOT 4
- IDF Component registry HOT 2
- Heltec Wireless Stick Lite V3 - code -12 and then -1108 HOT 16
- EByte E22 900T22D HOT 1
- Arduino Nano / ESP32 CC1101 : Error -6 when receiving HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiolib.