Comments (7)
I don't think it's a good idea to add this. At the core, RadioLib is a collection of drivers for radio modules - the library does all the heavy lifting of register configuration etc., and leaves the top level functionality fully exposed to the user - the user can then implement whatever he wants on top of that. This restriction means that only features of the hardware are implemented.
What you're describing seems to be more like a part of some protocol - it's a higher level of abstraction and it's not a feature of any radio module.
from radiolib.
This is true. It's OSI layer 2 (one layer above physical layer). I thought it might fit in with the other protocols in the library.
from radiolib.
It would have to be implemented as a standalone protocol - PhysicalLayer
is just an abstraction that provides common interface to similar radio modules.
from radiolib.
Yes, I would certainly think to do something along those lines. But the protocol has to know whether there is traffic on the channel in order to work. Currently there is no method on Physical layer like isChannelBusy
, although all of the hardware units provide something that could be used:
RF9x, SX126x and 127x provide scanChannel
.
RF69 would have to implement something with the RSSI DIO or register.
nRF24 looks like it needs to expose RPD measurements (datasheet section 6.4).
C1101 can expose Carrier Sense (Datasheet 17.4)
As I mentioned, I don't have much desire to write the code for modules I don't own or use, but I can write the protocol to work on SX126x and that can be expanded in future.
from radiolib.
Hey nevermind, I wrote the code and it's only 17 lines long and you're right it doesn't need to be a part of RadioLib.
from radiolib.
I remain sceptical, sorry. My main issue is that different protocols might handle collisions differently. If at some point we come to the conclusion it would be advantageous to provide information about channel state to the upper layers, your outline for what to use in different modules would be 100% correct.
Also (mainly as a note for your code), scanChannel
on RF9x and SX127x will only detect LoRa preamble, not the whole packet. In addition, RF9x, SX127x and SX126x have FSK modem, which can't use scanChannel
at all and must rely on RSSI measurement - not sure if this is relevant to your code, just putting it out there.
from radiolib.
Mysensors library is using it in RFM95_sendWithRetry
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
- EEPROM.h: No such file or directory HOT 6
- Other pager protocols HOT 3
- Add method to set io-home mode HOT 10
- LoRaWAN: band at compile time, bands in general. HOT 12
- ESP8266 store Session in EEPROM not supported (Issue) HOT 5
- LoRaWAN - Frame Count Reset HOT 2
- 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.