No RFM69 - No error
-
Hello,
Currently I'm working on a gateway that uses the RFM69HW module with 868MHz.
When I upload a sketch to my WeMos and no RFM is connected, it seems that there is no error in the init function.0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED
Shouldn't there be any error that no RFM is connected correctly and could not be initialized?
I tried everything with a minimal sketch:
#define MY_DEBUG #define MY_BAUD_RATE 9600 //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "earth" #define MY_ESP8266_PASSWORD "" #define MY_PORT 5003 #include <ESP8266WiFi.h> #include <MySensors.h> void setup() { } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
When I use a NRF24 module in the sketch I get a correct error:
0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=1 0;255;3;0;9;TSM:FAIL:PDT```
-
@gloob This is a known limitation of the current RFM69 driver and has been addressed in the refactored (yet to be released) driver.
-
Hello,
I have the sam problem when i use te mysensors 2.1.1 i mus remove HW from the sketch.
If i #define RFM 69HW place on the sketch i get the error that the RFM 69HW
MySensors.h:328:2: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.Greatz Ton
-
@tekka Is there a branch somewhere with this refactored driver to test?
Seems there is something acting strange with RFM69 + esp8266
-
@emc2 I'm working on this PR, but WIP and untested: https://github.com/mysensors/MySensors/pull/722
-
Thanks!
Will have a shot at it tonight to try to troubleshoot this.