Comments (12)
hmm -- odd stuff happening -- I am now finding that the code from this repo does not work reliably - sometimes it does - sometime not. My gateway does not see any traffic from it sometimes.
If I revert to @brentru repo https://github.com/brentru/TinyLoRa then it works reliably. Clearly I'v missed something.... I'll keep poking and prodding it.
I make that same compiler related changes to both libraries and am using the data rate setting:
SF7BW125 on both.
from tinylora.
@jerryneedell Thanks for testing! Did you disable the frame counter on the M0? Is your code set up to broadcast over a single or multi channel? If it's set to broadcast on single channel and you have a multi-channel gateway, the gateway's radios may not be listening on that frequency and miss it.
from tinylora.
@brentru Is this line an error in the Adafruit REPO
https://github.com/adafruit/TinyLoRa/blob/master/TinyLoRa.cpp#L207
shouldn't that be MULTICH instead of FULCH
I'll see if that helps
TinyLora.h defines MULTICH
edited to add -- yes, changing FULLCH to MULTICH seems to have helped.
I do have the frame counter disabled.
Back on track...
from tinylora.
This may be a repeated message - I posted it, but don't see it so I'll try again
I think there is a typo in the adafruit repo in TinyLora.cpp in this line.
https://github.com/adafruit/TinyLoRa/blob/master/TinyLoRa.cpp#L207
the #define FULLCH should be #define MULTICH
I made this change and it is working reliably for me now with the adafruit repo.
I do have the frame counter disabled,
from tinylora.
BTW - The SDR from Adbox007 is great for monitoring the frequency shifting!
from tinylora.
Inaddition to removing the "static" from "static const" For the Feather_M0 all uses of PROGMEM can be removed in TinyLora.cpp and the #include <avr/pgmspace.h> can be removed from TinyLora.h. Perhaps these differences can be accommodated via "#ifdef"
see: https://learn.adafruit.com/adafruit-feather-m0-basic-proto/adapting-sketches-to-m0#storing-data-in-flash-7-17
from tinylora.
@brentru I applied PR#4 and now the only changes I have to make are for the compiler differences. I see that you fixed the MULTICH definition there. Looks good!
Note: I also noted that you took the pin definitions out of the calling arguments for TinyLora() and they are set in TinyLora.h -- I also changed them for my configurations
from tinylora.
Thank you for the testing, @jerryneedell. I've modified master
to reflect the channel selection and SF modifications you mentioned.
from tinylora.
pulled current master -- made the usual compiler required changes and it works fine for me. Thanks!
from tinylora.
I've narrowed this down and the only really necessary change for the M0 compiler is to replace all the
"static const" with "const".
With this change, the sketches compile for both the 32U4 and the M0/
from tinylora.
@jerryneedell Thank you for your continued testing - I'm going to add support for this in the next PR
from tinylora.
Added to master, closing...
from tinylora.
Related Issues (18)
- create object instantiator for CS and IRQ pins HOT 1
- modify examples to avoid corrupting fixed message HOT 3
- information on disabling Frame Counter Check HOT 2
- Broken links HOT 2
- Starting LoRa...Failed HOT 3
- comment out all prints HOT 1
- TinyLora with Feather Mo LoRa - Starting LoRa...Failed HOT 30
- use SPI transactions HOT 1
- Lose packets LoRa 32u4 ll HOT 5
- AS923 Frequency table
- TinyLora Downlink functionality HOT 1
- power off/standby api before putting arduino to sleep? HOT 2
- "Starting LoRa...", "Failed" HOT 8
- DEEPSLEEP Arduino Pro mini
- Wrong australian frequencies
- allow multi/single channel selection via function not #define HOT 3
- add doxygen/travisCI 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 tinylora.