Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?
-
Actually you are powering your RFM69 with your 3V from your NodeMCU. It cannot work because you have a 3.3V regulator on the RFM69 board AND 3.3V on NodeMCU is not very good.
First you can try to move your red wire from 3V to VIN on the NodeMCU side. It can works f you use a good USB power supply (1A min).
Just another tip : check in your gateway sketch you have#define MY_IS_RFM69HW -
Actually you are powering your RFM69 with your 3V from your NodeMCU. It cannot work because you have a 3.3V regulator on the RFM69 board AND 3.3V on NodeMCU is not very good.
First you can try to move your red wire from 3V to VIN on the NodeMCU side. It can works f you use a good USB power supply (1A min).
Just another tip : check in your gateway sketch you have#define MY_IS_RFM69HWVIN on the Nodemcu produces WDT resets, not sure why.
I've now connected the RFM69 to the 5V output of a Wemos D1 Mini, and the board via USB.
I'm still getting the same results: https://gist.github.com/solars/7ed4541372f37166910ca4d1842d8c32Trying to use a regulator I have for the breadboard if I find a suitable power supply.
This is really frustrating.
I tried with a Wemos D1 Mini earlier - only produces WDT resets.
Then tried with Arduino Uno + W5100 Ethernet shield, only to find out it's quite complicated
to get this to run with an RFM69 due to soft spi.All I want is get this communication to work..
-
Very strange, I have a wemos mini gateway working fine (With nodeMCU i have a lot of commmunication probelms because of regulator). Do you have other radios for testing ? With your wemos+nodemcu did you connect GND together ?
Wdt resets probably occurs because your usb power supply isn't sufficent. -
Very strange, I have a wemos mini gateway working fine (With nodeMCU i have a lot of commmunication probelms because of regulator). Do you have other radios for testing ? With your wemos+nodemcu did you connect GND together ?
Wdt resets probably occurs because your usb power supply isn't sufficent.@Fabien I have now used a second power supply for the RFM69 (5V), USB for the Nodemcu, connected grounds together. But it's still the same..
I also tried a different radio.
Do you maybe have a picture how you connected the Wemos D1 Mini and sketch used? I guess I just had a wiring problem with the wemos.
I would like to try again. -
I just build a new one because I bought a sensebender Gateway !
So my new setup :RFM69 -> Wemos Mini D1 SS -> GPIO16 (D0) SCK -> GPIO14 (D5) MISO -> GPIO12 (D6) MOSI -> GPIO13 (D7) IRQ -> GPIO15 (D8)Connect GND and 5V power (in my case I Don't use breakout board but direct connection to RFM69
Sketch :
#define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 #define MY_RADIO_RFM69 #define MY_RF69_IRQ_PIN 15 #define MY_RF69_SPI_CS 16 #define MY_RF69_IRQ_NUM 15 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "Fab-WLAN" #define MY_ESP8266_PASSWORD "password" #define MY_PORT 5003 #define MY_GATEWAY_MAX_CLIENTS 2 #include <ESP8266WiFi.h> #include <MySensors.h> void setup() { } void presentation() { } void loop() { }With your Breakout board you must add :
#define MY_IS_RFM69HWAnd now the log with some testing sensors :
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGE--,VER=2.1.0-beta 0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 5 cnt 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  f r0, connected with Fab-WLAN, channel 1 dhcp client start... scandone ..ip:192.168.1.55,mask:255.255.255.0,gw:192.168.1.1 .IP: 192.168.1.55 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 pm open,type:2 0 0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0 0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1 0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0 -
I just build a new one because I bought a sensebender Gateway !
So my new setup :RFM69 -> Wemos Mini D1 SS -> GPIO16 (D0) SCK -> GPIO14 (D5) MISO -> GPIO12 (D6) MOSI -> GPIO13 (D7) IRQ -> GPIO15 (D8)Connect GND and 5V power (in my case I Don't use breakout board but direct connection to RFM69
Sketch :
#define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 #define MY_RADIO_RFM69 #define MY_RF69_IRQ_PIN 15 #define MY_RF69_SPI_CS 16 #define MY_RF69_IRQ_NUM 15 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "Fab-WLAN" #define MY_ESP8266_PASSWORD "password" #define MY_PORT 5003 #define MY_GATEWAY_MAX_CLIENTS 2 #include <ESP8266WiFi.h> #include <MySensors.h> void setup() { } void presentation() { } void loop() { }With your Breakout board you must add :
#define MY_IS_RFM69HWAnd now the log with some testing sensors :
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGE--,VER=2.1.0-beta 0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 5 cnt 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  f r0, connected with Fab-WLAN, channel 1 dhcp client start... scandone ..ip:192.168.1.55,mask:255.255.255.0,gw:192.168.1.1 .IP: 192.168.1.55 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 pm open,type:2 0 0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0 0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1 0;255;3;0;9;TSF:MSG:READ,15-15-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0 -
@Fabien thanks a lot!
I've set it up like you now, but now the GW doesn't seem to read any messages... damn
https://gist.github.com/solars/823bc62306909efd3fbb1a66b5211b31Any idea what's wrong again now?
@chbla I gave up on the 2.1.1 library, and tried with 2.0.0. Then everything start working :-D
-
In your gateway your don't
#define MY_RFM69_FREQUENCY RF69_433MHZ. By default it sets to RF69_868MHZ@Fabien said in Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?:
In your gateway your don't
#define MY_RFM69_FREQUENCY RF69_433MHZ. By default it sets to RF69_868MHZOh my god! What an incredible stupid mistake!
I wasted all this time trying to get the NodeMCU to work only because I forgot that setting in my initial Wemos Sketch...
It's finally working now.. haha. Let me know when you're in Austria @Fabien you deserve a beer :)@Johannes-Hodne thanks for the suggestion but it's finally working now :)
-
Great! I might have to give the 2.1.1 library another try.
-
@Fabien said in Receiving but !TSM:UPL:FAIL and no communication? 2.1.1 issue?:
In your gateway your don't
#define MY_RFM69_FREQUENCY RF69_433MHZ. By default it sets to RF69_868MHZOh my god! What an incredible stupid mistake!
I wasted all this time trying to get the NodeMCU to work only because I forgot that setting in my initial Wemos Sketch...
It's finally working now.. haha. Let me know when you're in Austria @Fabien you deserve a beer :)@Johannes-Hodne thanks for the suggestion but it's finally working now :)