Open Bartvelp opened 3 years ago
Hi Bart,
Sorry for reacting late, but lots of other interrupts. ? Why are you using board_build.flash_mode = dio and not qio? ? Are you indeed using a comresult board (_PIN_MODE==2) or are you using a standard Halard board. The comresult is "better" but you might miss the CAD.
Maarten
Hi Maarten,
No problem, this is just open source, not free support. I was having some issues flashing the bin that's why I changed it to dio, but I don't think that is related. I am not using a Halard board, or comresult board. I soldered the rfm95w to a esp8266 breakout and connected GPIO wires directly between the Nodemcu and the rfm95w, and this is the pinout in _PIN_MODE==2. I have only wired DIO0 and DIO1, and I am not sure DIO2 is also needed, but this page says it isn't https://things4u.github.io/Projects/SingleChannelGateway/UserGuide/2_Installation.html
I just tried using a different module with the RFM95W DIO0 and DIO1 wired to GPIO15 using a diode, so very similar to Hallards board, and I am getting the same issue.
What I read from the doc: CAD mode is not very sensitive. You have to adjust the threshold for the RSSI, then it maybe works better. The value of -40 is imo too high, most of the packets I receive are around -90 ... -110 (packet RSSI).
Imo this threshold idea is not very practical and the whole CAD functionality is more or less worthless at least for LoRaWAN. I did some experiments with CAD mode on my own pure LoRa projects (not LoRaWAN-based) and its usesless here too. It works better if you have very long preambles, the LoraWAN preambles are way to short to dectect something for shure with it. If preambles are long enogh there is enough time to test all SFs and dont miss the payload.
Best ist to check each channel 24h with SF7, next day with 9. Thats what most nodes use, SF higher than 9 is rarely used. I never recived such a LoRaWAN Packet with SF > 9. Most nodes send at a specific time. The Gateway should remember after it received something successfull the time and the channel+sf and switch the next period at this time to this channel with same settings, a kind of adaptive freq. hopping for each node. In the "free time" it should scan again.
Hoi Maarten,
When using the CAD function to autodetect spreading factor I am not receiving any packets. CAD seems to detect the transmission sometimes. I am transmitting a packet every 12 seconds, alternating between SF7 and SF10.
See log below:
As can be seen in the log, I sometimes get a CDDONE line but no packets. When using a hardcoded SF, receiving works just fine. These are my compilation settings:
I am using an ESP8266 with RFM95W with the connections made using dupont wires.
These are the logs in TTN, note the framecounter (uneven = SF7, even SF10):![image](https://user-images.githubusercontent.com/13890340/98450661-b4cdb080-213e-11eb-9d51-548fc3c6cf59.png)
Any ideas what might cause this? Great working project BTW, could use some refactoring I think but it has a lot of nice features. Lmk if you need anymore info.