Comments (3)
We've masked most of the above by commenting out rows 707-710 in packet.js.
Seeing another buffer range error:
{"tmst":2727136675,"chan":2,"rfch":0,"freq":917.2,"stat":-1,"modu":"LORA","datr":"SF7BW125","codr":"OFF","lsnr":-7.5,"rssi":-103,"size":5,"data":"q5r5mNQ="}
buffer.js:972
throw new RangeError('Index out of range');
^
RangeError: Index out of range
at checkOffset (buffer.js:972:11)
at Buffer.readInt8 (buffer.js:1098:5)
at _initialiseFromWireformat (/usr/local/lib/node_modules/lora-packet/lib/packet.js:166:33)
at LoraPacket._fromWire (/usr/local/lib/node_modules/lora-packet/lib/packet.js:116:13)
at Object.exports.fromWire (/usr/local/lib/node_modules/lora-packet/lib/packet.js:7:8)
at Socket.stage0.on (/Users/rob/Documents/repositories/nisient/loragw/gwtest1680.js:48:19)
at emitTwo (events.js:126:13)
at Socket.emit (events.js:214:7)
at UDP.onMessage [as onmessage] (dgram.js:658:8)
from lora-packet.
thanks for reporting these!
I clearly merged a PR without checking that it contained plausible code. I'll review & fix.
from lora-packet.
I've committed a fix for some of these (+ tests as test/test_github_issue17.js) but the really short packets which give an "index out of range" I think aren't valid LoRa. If I'm wrong, please point me in the right direction & I'd love to get them parsed properly.
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.