Comments (3)
I just figured out (thanks to TTN Slack) that the Oyster is quite possibly the device is sending LoRaWAN v1.1 packets... can that be seen with the above?
from lora-packet.
Quite late, but: no, one cannot tell the version from a LoRaWAN packet. A device can tell if it gets a 1.0.x or 1.1.x Join Accept (this allows it to fall back to 1.0.x if the server does not understand 1.1), but in regular uplinks and downlinks this cannot be seen.
However:
MIC = 6695F9CC (BAD != F9CC34D1)
Above, note that the F9CC
part matches, and that is by design. That part is calculated just like a 1.0.x MIC, but in 1.1 only 16 bits are included in the full 32 bits MIC. To calculate the other 16 bits, one must also know at which data rate and channel the uplink was transmitted (and, in case of a downlink confirmation, also the downlink's frame counter), along with the secret SNwkSIntKey
.
So maybe the answer is actually: yes, when using the 1.0 validation on a 1.1 packet, then when seeing that those 16 bits match, one can assume it's a valid 1.1 packet. And hence I'd say this issue can be closed.
(You can try yourself, but that does not add much.)
from lora-packet.
excellent, thank you for the analysis!
from lora-packet.
Related Issues (20)
- Browser support HOT 1
- How to use the library with TypeScript ESM? HOT 1
- .toString() function giving "Attempt to access memory outside buffer bounds" on Join Accept messages HOT 2
- incorrect decoding of Rejoin Request (type 1)
- bogus test for Rejoin Request fromWire
- missing toString output for ReJoinRequest
- Command Line frame decoding ... HOT 2
- Decoding 1.1 LoRaWAN payload HOT 2
- unable to decode payload: FRMPayload is empty HOT 1
- Online decoder using wrong Session Key HOT 3
- Where to find Nwskey and Appskey HOT 1
- Lora Join accept giving error in Crypt JS
- Typescript and support for modern Node.js API HOT 4
- Could you explain this error, please. HOT 6
- New parsed field HOT 2
- After FCNT crosses 65535, MIC Matched, but decryption of data is wrong HOT 3
- LoRa packets from YoLink sensors
- Buffer Deprecation Warning HOT 1
- npm issue HOT 1
- command not found HOT 1
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 lora-packet.