Comments (3)
Please fill in the information requested by the issue template.
Receiver goes into an endless loop of Timeout error.
Timeout is not an error, it just means that the receiver did not hear anything in the time window it was receiving, that's it. Did you try with interrupts?
Library does not allow any control over paket size, or am I missing something?
I don't know what you are trying to say here - the library transmits the packets you provide, if you reqeust to send 15 bytes it will send a 15 byte packet + preamble/header/CRCc, which again is set by yourself. You have absolute control over the packet size being sent.
from radiolib.
Receiver goes into an endless loop of Timeout error.
Timeout is not an error, it just means that the receiver did not hear anything in the time window it was receiving, that's it. Did you try with interrupts?
No I haven't tried with interrupts. I would like to stick with one interrupt (is it interrupt or poll ? ) line DIO0 which is required. Polling mode on the receiving side is fine for me.
Without DIO0 declared and connected transmitter signals Timeout. So in the test setup both sides use DIO0.
If not being forced by library requirement I would be fine without DIO0 on the trasnmitting side too.
Data is being sent in the loop by the transmitter device every second and once it is received by the receiving side SX1278 it should be seen in the nearest receiver's loop . It isn't. It always ends up with continuous timeout regardless of trasmitter being on or off.
I don't know what you are trying to say here - the library transmits the packets you provide, if you reqeust to send 15 bytes it will send a 15 byte packet + preamble/header/CRCc, which again is set by yourself. You have absolute control over the packet size being sent.
That is clear now. In other devices with UART like Ebyte E22 they use predefined packet length so i thought there is some distinction between stream and packet modes. As I now understand there are always packets of arbitrary length that can be different every transmission event.
from radiolib.
is it interrupt or poll ?
In interrupt mode, it's an interrupt, as the name suggest. In blocking mode, the pin is polled.
No I haven't tried with interrupts. I would like to stick with one interrupt (... ) line DIO0 which is required.
Packet reception is signaled on DIO0. On the contrary, timeout is signaled on DIO1, or handled by software if you did not provide DIO1.
Polling mode on the receiving side is fine for me.
Then you will see timeouts. That's just what blocking mode is.
once it is received by the receiving side SX1278 it should be seen in the nearest receiver's loop
That's not how this works. If the receiver is not receiving while you are transmitting, then you will not get the packet. And when the receiver times out, it will no longer receive, until reception is restarted. That's the base of the blocking mode. With interrupts, the receiver is listening continuously and triggers an interrupt when it receives a packet.
Also, this is not an issue in the library, but a generic question about usage, so I'm converting this thread to a discussion.
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
- LoRaWAN Downlink HOT 8
- High % of CRC Errors in SF12 and similar configurations, HOT 2
- [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.