RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0
-
Hello Everybody,
i'm working some timeon the project, to switch my network to rfm69(cw), because i read many good things about them (e.g. better range)I have tested around for a couple of days, with an Wemos Esp8266, and an Arduino Nano as Gateway and a ProMini with dht22 as Node.
I had no Chance to get them to work (gateway not responding), now i read, that i must switch back to 2.0.0 and everything is really fine (first try, success).Is that a known Bug? Why is it not getting fixed?
I would like to use the newer Firmwares instead of 2.0.0...Thanks for the Mysensors Projekt
Floca
-
without much infos (debugs logs etc..) it's hard to help.
As far as i know, rfm69 is working well with the latest Mysensors development branch at github..
-
Hi,
the log is in this case not very usefull, because they start up normal, with or without rfm69 attached.
The node try's to find the gateway "No Reply" but is it not answering.I have tried some different szenario's... if they are paired with 2.0.0 i can update the node to any newer version, but not the gateway.
The Gateway is not answering when it gets a newer version.
When its not paired, no chance to add new nodes with newer versions.
-
Well, that would explain why some time back I could not get RFM network to work. After a week of reading and changing sketches, and trying to figure it out I give up (got the same "No Replay").
Not tried with an older version, but got one instance when gateway found the node and then immediately hanged, after that nothing.
I guess that I should check again with an older version then.
-
Yes,
that should be the Same Problem, as i tried to explain above.2.0.0 works fine, if you have no Problem, that you don't get any updates
-
@Floca I have just tested RFM69w with the development branch and that works great. Don't know if the code is different from c versions though. It was very important to have the right declarations as described in the radio section.
-
I have declared, that i want to use RFM69CW instead of NRF24 and have nothing else changed.
That what i have declared was ok for the 2.0.0 build...I dont know, if there is an difference between the C an non C Versions of the Module.
-
@Floca
From https://www.mysensors.org/build/connect_radio:And if you need an advanced configuration, you may need to also add these defines :
#define MY_RFM69_FREQUENCY RF69_433MHZ // Define for frequency setting. Needed if you're radio module isn't 868Mhz (868Mhz is default in lib) #define MY_IS_RFM69HW // Mandatory if you radio module is the high power version (RFM69HW and RFM69HCW), Comment it if it's not the case //#define MY_RFM69_NETWORKID 100 // Default is 100 in lib. Uncomment it and set your preferred network id if needed //#define RF69_IRQ_PIN 4 // Default in lib is using D2 for common Atmel 328p (mini pro, nano, uno etc.). Uncomment it and set the pin you're using. Note for Atmel 328p, Mysensors, and regarding Arduino core implementation D2 or D3 are only available. But for advanced mcus like Atmel SAMD (Arduino Zero etc.), Esp8266 you will need to set this define for the corresponding pin used for IRQ // #define MY_RF69_IRQ_NUM 4 // Temporary define (will be removed in next radio driver revision). Needed if you want to change the IRQ pin your radio is connected. So, if your radio is connected to D3/INT1, value is 1 (INT1). For others mcu like Atmel SAMD, Esp8266, value is simply the same as your RF69_IRQ_PIN // #define MY_RF69_SPI_CS 15 // If using a different CS pin for the SPI bus. Use MY_RFM69_CS_PIN for the development branch.
But i guess you are fine, since you are not using H version unless your wiring is ok.
-
Ok, i have seen this defines and used them (without the define for the HW Module, because it is only for that), the Result was 1:1 the same as without the definitions.
-
Here are the Codes from the Gateway and Node (works in 2.0.0, in all versions above 2.0.0 it works not):
/** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * Contribution by tekka, * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Ivo Pullens (ESP8266 support) * * DESCRIPTION * The EthernetGateway sends data received from sensors to the WiFi link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * VERA CONFIGURATION: * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin. * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003 * * LED purposes: * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or recieve crc error * * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions. * nRF24L01+ ESP8266 * VCC VCC * CE GPIO4 * CSN/CS GPIO15 * SCK GPIO14 * MISO GPIO12 * MOSI GPIO13 * GND GND * * Not all ESP8266 modules have all pins available on their external interface. * This code has been tested on an ESP-12 module. * The ESP8266 requires a certain pin configuration to download code, and another one to run code: * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch') * - Connect GPIO15 via 10K pulldown resistor to GND * - Connect CH_PD via 10K resistor to VCC * - Connect GPIO2 via 10K resistor to VCC * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * * Make sure to fill in your ssid and WiFi password below for ssid & pass. */ #include <ArduinoOTA.h> // Enable debug prints to serial monitor #define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 // Enables and select radio type (if attached) #define MY_RADIO_RFM69 #define MY_RF69_IRQ_PIN 4 #define MY_RF69_SPI_CS 15 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "MySSID" #define MY_ESP8266_PASSWORD "MyPass" // Set the hostname for the WiFi Client. This is the hostname // it will pass to the DHCP server if not static. #define MY_ESP8266_HOSTNAME "RFM69-Gateway" // Enable UDP communication //#define MY_USE_UDP // If using UDP you need to set MY_CONTROLLER_IP_ADDRESS below // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) //#define MY_IP_ADDRESS 192,168,178,87 // If using static ip you can define Gateway and Subnet address as well //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1 //#define MY_IP_SUBNET_ADDRESS 255,255,255,0 // The port to keep open on node server mode #define MY_PORT 5003 // How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68 // Enable inclusion mode #define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway // #define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) #define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3 // Set blinking period // #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Flash leds on rx/tx/err // Led pins used if blinking feature is enabled above //#define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED #if defined(MY_USE_UDP) #include <WiFiUDP.h> #else #include <ESP8266WiFi.h> #endif #include <MySensors.h> void setup() { // Setup locally attached sensors ArduinoOTA.onStart([]() { debug("ArduinoOTA start\n"); }); ArduinoOTA.onEnd([]() { debug("\nArduinoOTA end\n"); }); ArduinoOTA.setPassword((const char *)"123"); ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { debug("OTA Progress: %u%%\r", (progress / (total / 100))); }); ArduinoOTA.onError([](ota_error_t error) { debug("Error[%u]: ", error); if (error == OTA_AUTH_ERROR) { debug("Auth Failed\n"); } else if (error == OTA_BEGIN_ERROR) { debug("Begin Failed\n"); } else if (error == OTA_CONNECT_ERROR) { debug("Connect Failed\n"); } else if (error == OTA_RECEIVE_ERROR) { debug("Receive Failed\n"); } else if (error == OTA_END_ERROR) { debug("End Failed\n"); } }); ArduinoOTA.begin(); } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attech sensors data here ArduinoOTA.handle(); }```
/** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0: Henrik EKblad * Version 1.1 - 2016-07-20: Converted to MySensors v2.0 and added various improvements - Torben Woltjen (mozzbozz) * * DESCRIPTION * This sketch provides an example of how to implement a humidity/temperature * sensor using a DHT11/DHT-22. * * For more information, please visit: * http://www.mysensors.org/build/humidity * */ // Enable debug prints #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_RFM69 #define MY_RF69_IRQ_PIN 2 #define MY_RF69_SPI_CS 10 #include <SPI.h> #include <MySensors.h> #include <DHT.h> // Set this to the pin you connected the DHT's data pin to #define DHT_DATA_PIN 3 // Set this offset if the sensor has a permanent small offset to the real temperatures #define SENSOR_TEMP_OFFSET 0 // Sleep time between sensor updates (in milliseconds) // Must be >1000ms for DHT22 and >2000ms for DHT11 static const uint64_t UPDATE_INTERVAL = 60000; // Force sending an update of the temperature after n sensor reads, so a controller showing the // timestamp of the last update doesn't show something like 3 hours in the unlikely case, that // the value didn't change since; // i.e. the sensor would force sending an update every UPDATE_INTERVAL*FORCE_UPDATE_N_READS [ms] static const uint8_t FORCE_UPDATE_N_READS = 10; #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 float lastTemp; float lastHum; uint8_t nNoUpdatesTemp; uint8_t nNoUpdatesHum; bool metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); DHT dht; void presentation() { // Send the sketch version information to the gateway sendSketchInfo("TemperatureAndHumidity", "1.1"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID_HUM, S_HUM); present(CHILD_ID_TEMP, S_TEMP); } void setup() { dht.setup(DHT_DATA_PIN); // set data pin of DHT sensor if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) { Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!"); } // Sleep for the time of the minimum sampling period to give the sensor time to power up // (otherwise, timeout errors might occure for the first reading) sleep(dht.getMinimumSamplingPeriod()); } void loop() { // Force reading sensor, so it works also after sleep() dht.readSensor(true); // Get temperature from DHT library float temperature = dht.getTemperature(); if (isnan(temperature)) { Serial.println("Failed reading temperature from DHT!"); } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) { // Only send temperature if it changed since the last measurement or if we didn't send an update for n times lastTemp = temperature; if (!metric) { temperature = dht.toFahrenheit(temperature); } // Reset no updates counter nNoUpdatesTemp = 0; temperature += SENSOR_TEMP_OFFSET; send(msgTemp.set(temperature, 1)); #ifdef MY_DEBUG Serial.print("T: "); Serial.println(temperature); #endif } else { // Increase no update counter if the temperature stayed the same nNoUpdatesTemp++; } // Get humidity from DHT library float humidity = dht.getHumidity(); if (isnan(humidity)) { Serial.println("Failed reading humidity from DHT"); } else if (humidity != lastHum || nNoUpdatesHum == FORCE_UPDATE_N_READS) { // Only send humidity if it changed since the last measurement or if we didn't send an update for n times lastHum = humidity; // Reset no updates counter nNoUpdatesHum = 0; send(msgHum.set(humidity, 1)); #ifdef MY_DEBUG Serial.print("H: "); Serial.println(humidity); #endif } else { // Increase no update counter if the humidity stayed the same nNoUpdatesHum++; } // Sleep for a while to save energy sleep(UPDATE_INTERVAL); }```
-
Can you post a picture of het back of your RFM module? That way we can eliminate the definitions you won't need.
I run on 2.1.1 with 868MHz versions of both HW and low power. No problems whatsoever. I'm getting very curious as to why I keep reading about users facing issues with the RFM based nodes.
-
Hi, I will look closely this, because I would really like to get RFM network going for my outide, not with NRF reachable sensors.
In my definition, I added
#define MY_RFM69_FREQUENCY RF69_433MHZ // Define for frequency setting. Needed if you're radio module isn't 868Mhz (868Mhz is default in lib)
and
#define MY_IS_RFM69HW // Mandatory if you radio module is the high power version (RFM69HW and RFM69HCW), Comment it if it's not the case
cause my radio was like 4th from left in the picture below. I was using antenna bundled with radios (173mm) stranded but changed to solid but with the same length.
-
@DavidZH said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
Can you post a picture of het back of your RFM module? That way we can eliminate the definitions you won't need.
I run on 2.1.1 with 868MHz versions of both HW and low power. No problems whatsoever. I'm getting very curious as to why I keep reading about users facing issues with the RFM based nodes.RFM69CW
-
Well there's your problem! You have a 868MHz CW version. So NOT the HCW That means both of the above mentioned defines ar not valid. The only define you'd have to make is
#define MY_RADIO_RFM69
. That should work.You can tell that it is not the H version because of the missing components that make up the extra RF amplifier on the module.
Hope this helps! Good luck!
-
As i told above, i have no definitions for the H Module...
Take a look in the posted Scripts, all definitions are excluded, that are belong to the H Version.
-
I think @DavidZH was confused by @archiijs post about the H version.
I double-checked your sketches and none has the definition for H so now that's out of the way at least.
@Floca could you post debug output from the gateway and the node (preferably from the same time) ?
Also, just to double-check, have you made any modifications to MyConfig.h or are you using the untouched original version?
-
Yes, sorry for this, I will stand back til @Floca gets his problem (and maybe mine) figured out and then jump in to avoid confusion, sorry again.
-
GW 2.0.0 Ê$OH˜KlKùið¤0;255;3;0;9;Starting gateway (RRNGE-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSM:RADIO:OK 0;255;3;0;9;TSM:GW MODE 0;255;3;0;9;TSM:READY scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 4 cnt f r0, scandone connected with N3tw0rk.NET, channel 1 dhcp client start... ..ip:192.168.178.118,mask:255.255.255.0,gw:192.168.178.1 .IP: 192.168.178.118 0;255;3;0;9;No registration required 0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1 pm open,type:2 0 0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=100, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;!TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=fail:0100 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=0,c=0,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=0,t=6,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=1,t=0,pt=7,l=5,sg=0:22.8 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=0,c=1,t=1,pt=7,l=5,sg=0:80.7 0;255;3;0;9;TSP:SANCHK:OK
SENSOR 2.0.0 Starting sensor (RRNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=100) TSM:FPAR TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=100) TSM:UPL TSP:PING:SEND (dest=0) TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1 TSP:MSG:READ 0-0-100 s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSP:MSG:PONG RECV (hops=1) TSP:CHKUPL:OK TSM:UPL:OK TSM:READY TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 !TSP:MSG:SEND 100-100-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0 !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=fail:0 TSP:MSG:READ 0-0-100 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=11,pt=0,l=22,sg=0,ft=2,st=ok:TemperatureAndHumidity !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=fail:1.1 TSP:MSG:SEND 100-100-0-0 s=0,c=0,t=7,pt=0,l=0,sg=0,ft=1,st=ok: TSP:MSG:SEND 100-100-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok: Request registration... TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-100 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registration=1 Init complete, id=100, parent=0, distance=1, registration=1 TSP:MSG:SEND 100-100-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:22.8 T: 22.80 TSP:MSG:SEND 100-100-0-0 s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:80.8 H: 80.80
Gateway 2.2.0 ÈDpÈtAhÀD´ðCXXüü0;255;3;0;9;238 MCO:BGN:INIT GW,CP=RRNGE---,VER=2.2.0-beta 0;255;3;0;9;299 TSF:LRT:OK 0;255;3;0;9;327 TSM:INIT 0;255;3;0;9;353 TSF:WUR:MS=0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 4 cnt 0;255;3;0;9;470 TSM:INIT:TSP OK 0;255;3;0;9;502 TSM:INIT:GW MODE 0;255;3;0;9;537 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;582 MCO:REG:NOT NEEDED connected with N3tw0rk.NET, channel 1 dhcp client start... f r0, scandone .....ip:192.168.178.118,mask:255.255.255.0,gw:192.168.178.1 .IP: 192.168.178.118 0;255;3;0;9;3682 MCO:BGN:STP 0;255;3;0;9;3735 MCO:BGN:INIT OK,TSP=1 pm open,type:2 0
Sensor 2.2.0 0 MCO:BGN:INIT NODE,CP=RRNNA---,VER=2.2.0-beta 4 TSM:INIT 4 TSF:WUR:MS=0 8 TSM:INIT:TSP OK 10 TSM:FPAR 1228 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 3237 !TSM:FPAR:NO REPLY 3239 TSM:FPAR 4468 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6477 !TSM:FPAR:NO REPLY 6479 TSM:FPAR 7698 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 9707 !TSM:FPAR:NO REPLY 9709 TSM:FPAR 10928 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 12937 !TSM:FPAR:FAIL 12939 TSM:FAIL:CNT=1 12941 TSM:FAIL:DIS 12943 TSF:TDI:TSL 22947 TSM:FAIL:RE-INIT 22949 TSM:INIT 22951 TSM:INIT:TSP OK 22956 TSM:FPAR 24174 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 26183 !TSM:FPAR:NO REPLY 26185 TSM:FPAR 27404 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 29413 !TSM:FPAR:NO REPLY 29415 TSM:FPAR 30633 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 32643 !TSM:FPAR:NO REPLY 32645 TSM:FPAR 33867 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 35876 !TSM:FPAR:FAIL 35878 TSM:FAIL:CNT=2 35880 TSM:FAIL:DIS 35883 TSF:TDI:TSL 45887 TSM:FAIL:RE-INIT 45889 TSM:INIT 45891 TSM:INIT:TSP OK 45895 TSM:FPAR 47114 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 49123 !TSM:FPAR:NO REPLY 49125 TSM:FPAR 50370 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 52379 !TSM:FPAR:NO REPLY 52381 TSM:FPAR 53600 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 55609 !TSM:FPAR:NO REPLY 55611 TSM:FPAR 56829 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 58839 !TSM:FPAR:FAIL 58841 TSM:FAIL:CNT=3 58843 TSM:FAIL:DIS 58845 TSF:TDI:TSL 68849 TSM:FAIL:RE-INIT 68851 TSM:INIT 68853 TSM:INIT:TSP OK 68857 TSM:FPAR 70076 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 72085 !TSM:FPAR:NO REPLY 72087 TSM:FPAR 73306 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 75315 !TSM:FPAR:NO REPLY 75317 TSM:FPAR 76535 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 78546 !TSM:FPAR:NO REPLY 78548 TSM:FPAR 79767 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 81776 !TSM:FPAR:FAIL 81778 TSM:FAIL:CNT=4 81780 TSM:FAIL:DIS 81782 TSF:TDI:TSL 91785 TSM:FAIL:RE-INIT 91787 TSM:INIT 91789 TSM:INIT:TSP OK 91793 TSM:FPAR 93011 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 95021 !TSM:FPAR:NO REPLY 95023 TSM:FPAR 96241 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 98250 !TSM:FPAR:NO REPLY 98252 TSM:FPAR 99471 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 101480 !TSM:FPAR:NO REPLY 101482 TSM:FPAR 102703 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 104712 !TSM:FPAR:FAIL 104714 TSM:FAIL:CNT=5 104716 TSM:FAIL:DIS 104718 TSF:TDI:TSL 114722 TSM:FAIL:RE-INIT 114724 TSM:INIT 114728 TSM:INIT:TSP OK 114731 TSM:FPAR 115951 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 117960 !TSM:FPAR:NO REPLY 117962 TSM:FPAR 119183 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 121192 !TSM:FPAR:NO REPLY 121194 TSM:FPAR 122443 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 124452 !TSM:FPAR:NO REPLY 124454 TSM:FPAR 125673 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 127682 !TSM:FPAR:FAIL 127684 TSM:FAIL:CNT=6 127686 TSM:FAIL:DIS 127688 TSF:TDI:TSL 137691 TSM:FAIL:RE-INIT 137693 TSM:INIT 137697 TSM:INIT:TSP OK 137699 TSM:FPAR 138919 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 140929 !TSM:FPAR:NO REPLY 140931 TSM:FPAR 142151 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 144160 !TSM:FPAR:NO REPLY 144162 TSM:FPAR 145381 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
-
The Config is the Standard Config which comes with the Package on Github.
-
The Scripts from above are used to flash the devices.
-
The Gateway on 2.2.0-beta gives only these lines as in Codebox, then, nothing else happens.
-
I have cleaned the EEPROM from the devices with the eeprom clean example in mysensors examples
-
-
@Floca
thx for logs. Logs are always usefulI tried a few weeks ago rfm69 with atsam, esp32 etc and was working well here.
So I'll take a look asap. Need to find a wemos to have same setup.Note:
- in your first post, you say that you tried with a nano. But nano is 5v whereas rfm69 is not 5v tolerant. So this can't work.
- all rfm69 modules works the same. C, W the same. HW and HCW the same too. These are just different package and mapping, that's all. But sure, if using HW, HCW, needs the high power dfine in MySensors (not your case here)
-
Oh, of course, i wrote Nano, my mistake
I use Arduino PRO MINI's 3.3v for my Nodes.
-
I'll dig out some modules and see if I can reproduce the problem.
-
@Floca which pins (GPIOxx or Dx) do these correspond to?
#define MY_RF69_IRQ_PIN 4 #define MY_RF69_SPI_CS 15
MySensors is not able to initialize the radio, probably due to my wiring not being the same as yours.
-
I use this Module...
https://www.openhardware.io/view/386/Minimalist-RFM69CW-WeMos-D1-Mini-ShieldIRQ=DIO0= GPIO4=D2
CS=NSS=GPIO15=D8
-
I've spent 2 hours and I can't even get gw+node working on 2.0.0.
I'll take a break and try to clear my head so I can figure out what is wrong.
-
...on 2.0.0 or on 2.2.0?
-
@Floca on 2.0.0.
I can't do any troubleshooting unless I know I have a working configuration.Troubleshooting 2.2.0-beta with a configuration that I know is broken on 2.0.0 it totally useless.
-
Ok, i know what you mean, that is true.
-
I have researched and have found out that an arduino nano as a serial gateway also does not seem to work (same log as above).
I hope this helps you a bit.
-
@Floca - A nano will fry your radio (5v SPI/data lines) but maybe you wrote the wrong mcu?
I can comfirm that a RFM69w and Pro Mini 3.3v 8mhz works great on dev branch.
im using this code: https://github.com/sundberg84/MySensors2.0.0/blob/master/RFM69gw/Rfm69gw.ino
And this hardware: https://forum.mysensors.org/topic/6809/easy-newbie-pcb-rfm69-hw-w-edition-for-mysensors/16
-
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
A nano will fry your radio (5v SPI/data lines) but maybe you wrote the wrong mcu?
whoops, i forget that, but it still works ^^
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
I can comfirm that a RFM69w and Pro Mini 3.3v 8mhz works great on dev branch.
Seems to be an Gateway problem, because the Sensor waits for the gateway...
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
im using this code: https://github.com/sundberg84/MySensors2.0.0/blob/master/RFM69gw/Rfm69gw.ino
@mfalkvidd doublechecked my script, tht should not be the Problem
-
@Floca which controller do you use ? I have a gw and two sensors working great.
-
Gateway: Wemos D1 Mini
Nodes: Arduino Pro Mini
-
@Floca good maybe the issue is rfm+vemos but which controller do you use?
-
Oh you mean which System uses the Data?
I use Fhem.
-
@Floca I'm not familiar with fhem but I guess that controller hands out Id?
-
I think FHEM hands it out, yes, because you can configure the ID's in the Mysensors Module.
...with nRF24 the beta is no Problem with FHEM.
-
@Floca I now have working nodes with 2.0.0. Unfortunately (at least for this troubleshooting) they also work with 2.2.0-beta.
Sensor 2.0.0 and Gateway 2.0.0:
Starting sensor (RRNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=1) TSM:FPAR TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=1) TSM:UPL TSP:PING:SEND (dest=0) TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1 TSP:MSG:READ 0-0-1 s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSP:MSG:PONG RECV (hops=1) TSP:CHKUPL:OK TSM:UPL:OK TSM:READY TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 !TSP:MSG:SEND 1-1-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0 TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=ok:0 TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=ok:TemperatureAndHumidity TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.1 TSP:MSG:SEND 1-1-0-0 s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=ok: TSP:MSG:SEND 1-1-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok: Request registration... TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-1 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registration=1 Init complete, id=1, parent=0, distance=1, registration=1 TSP:MSG:SEND 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:1.0 T: 1.00 TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:35.0 H: 35.00
0;255;3;0;9;Starting gateway (RRNGE-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSM:RADIO:OK 0;255;3;0;9;TSM:GW MODE 0;255;3;0;9;TSM:READY scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 1 cnt connected with Mr-IoT.com, channel 2 dhcp client start... f r0, scandone ip:192.168.1.215,mask:255.255.255.0,gw:192.168.1.1 .IP: 192.168.1.215 0;255;3;0;9;No registration required 0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1 pm open,type:2 0 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL) 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=fail:0100 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:1.0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:35.0 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=fail:0100 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:1.0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:35.0 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=fail:0100 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=fail:0100 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:1.0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:35.0
Sensor 2.2.0-beta and Gateway 2.0.0:
0 MCO:BGN:INIT NODE,CP=RRNNA---,VER=2.2.0-beta 4 TSM:INIT 4 TSF:WUR:MS=0 8 TSM:INIT:TSP OK 10 TSM:INIT:STATID=1 12 TSF:SID:OK,ID=1 14 TSM:FPAR 22 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 446 TSF:MSG:READ,0-0-1,s=255,c=3,t=8,pt=1,l=1,sg=0:0 452 TSF:MSG:FPAR OK,ID=0,D=1 2031 TSM:FPAR:OK 2031 TSM:ID 2033 TSM:ID:OK 2035 TSM:UPL 2043 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 2158 TSF:MSG:READ,0-0-1,s=255,c=3,t=25,pt=1,l=1,sg=0:1 2164 TSF:MSG:PONG RECV,HP=1 2166 TSM:UPL:OK 2168 TSM:READY:ID=1,PAR=0,DIS=1 2385 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 2459 TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 2678 TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.2.0-beta 2899 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 4919 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=OK:TemperatureAndHumidity 5140 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1 5359 TSF:MSG:SEND,1-1-0-0,s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 5578 TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK: 5584 MCO:REG:REQ 5799 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 5869 TSF:MSG:READ,0-0-1,s=255,c=3,t=27,pt=1,l=1,sg=0:1 5875 MCO:PIM:NODE REG=1 5879 MCO:BGN:STP 5881 MCO:BGN:INIT OK,TSP=1 6098 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:1.0 T: 1.00 6318 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:35.0 H: 35.00 6326 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 6332 TSF:TDI:TSL
Gateway 2.0.0 (did not restart it from previous log):
0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=0,t=17,pt=0,l=10,sg=0:2.2.0-beta 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:1.0 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:35.0 0;255;3;0;9;TSP:SANCHK:OK
Sensor 2.2.0-beta and gateway 2.2.0-beta:
0 MCO:BGN:INIT NODE,CP=RRNNA---,VER=2.2.0-beta 4 TSM:INIT 4 TSF:WUR:MS=0 8 TSM:INIT:TSP OK 10 TSM:INIT:STATID=1 12 TSF:SID:OK,ID=1 14 TSM:FPAR 1234 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 1540 TSF:MSG:READ,0-0-1,s=255,c=3,t=8,pt=1,l=1,sg=0:0 1546 TSF:MSG:FPAR OK,ID=0,D=1 3244 TSM:FPAR:OK 3244 TSM:ID 3246 TSM:ID:OK 3248 TSM:UPL 3258 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 3387 TSF:MSG:READ,0-0-1,s=255,c=3,t=25,pt=1,l=1,sg=0:1 3393 TSF:MSG:PONG RECV,HP=1 3395 TSM:UPL:OK 3397 TSM:READY:ID=1,PAR=0,DIS=1 3612 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 3694 TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 3915 TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.2.0-beta 4136 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 6154 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=OK:TemperatureAndHumidity 6377 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1 6594 TSF:MSG:SEND,1-1-0-0,s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6813 TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK: 6821 MCO:REG:REQ 7034 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 7118 TSF:MSG:READ,0-0-1,s=255,c=3,t=27,pt=1,l=1,sg=0:1 7124 MCO:PIM:NODE REG=1 7129 MCO:BGN:STP 7131 MCO:BGN:INIT OK,TSP=1 7348 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:1.0 T: 1.00 7569 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:35.0 H: 35.00 7577 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 7583 TSF:TDI:TSL 7585 MCO:SLP:WUP=-1 7587 TSF:TRI:TSB 8820 !TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=NACK:31.0 T: 31.00 10070 !TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=1,st=NACK:84.0 H: 84.00 10078 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 10084 TSF:TDI:TSL 10086 MCO:SLP:WUP=-1 10088 TSF:TRI:TSB 10100 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=2,st=OK:42.0 T: 42.00 10323 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:81.0 H: 81.00 10332 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 10338 TSF:TDI:TSL 10340 MCO:SLP:WUP=-1 10342 TSF:TRI:TSB 10354 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:31.0 T: 31.00 10577 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:45.0 H: 45.00 10586 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 10592 TSF:TDI:TSL 10594 MCO:SLP:WUP=-1 10596 TSF:TRI:TSB 10608 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:2.0 T: 2.00 10831 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:38.0 H: 38.00 10840 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 10846 TSF:TDI:TSL 10848 MCO:SLP:WUP=-1 10852 TSF:TRI:TSB 10862 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:28.0 T: 28.00 11085 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:18.0 H: 18.00 11094 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 11100 TSF:TDI:TSL 11102 MCO:SLP:WUP=-1 11104 TSF:TRI:TSB 11116 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:43.0 T: 43.00 11339 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:72.0 H: 72.00 11347 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 11354 TSF:TDI:TSL 11358 MCO:SLP:WUP=-1 11360 TSF:TRI:TSB 11372 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:8.0 T: 8.00 11593 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:30.0 H: 30.00 11601 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 11608 TSF:TDI:TSL 11610 MCO:SLP:WUP=-1 11612 TSF:TRI:TSB 11626 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:3.0 T: 3.00 11847 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:17.0 H: 17.00 11855 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 11862 TSF:TDI:TSL 11864 MCO:SLP:WUP=-1 11868 TSF:TRI:TSB 11878 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:40.0 T: 40.00 12101 TSF:MSG:SEND,1-1-0-0,s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=OK:38.0 H: 38.00 12109 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255 12115 TSF:TDI:TSL
0;255;3;0;9;5695 MCO:BGN:INIT GW,CP=RRNGE---,VER=2.2.0-beta 0;255;3;0;9;5757 TSF:LRT:OK 0;255;3;0;9;5786 TSM:INIT 0;255;3;0;9;5813 TSF:WUR:MS=0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 1 cnt connected with Mr-IoT.com, channel 2 dhcp client start... 0;255;3;0;9;5993 TSM:INIT:TSP OK 0;255;3;0;9;6027 TSM:INIT:GW MODE 0;255;3;0;9;6062 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;6108 MCO:REG:NOT NEEDED f r0, scandone ip:192.168.1.215,mask:255.255.255.0,gw:192.168.1.1 .IP: 192.168.1.215 0;255;3;0;9;6647 MCO:BGN:STP 0;255;3;0;9;6698 MCO:BGN:INIT OK,TSP=1 pm open,type:2 0 0;255;3;0;9;40166 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:42.0 0;255;3;0;9;40388 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:81.0 0;255;3;0;9;99604 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:31.0 0;255;3;0;9;99826 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:45.0 0;255;3;0;9;159042 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:2.0 0;255;3;0;9;159264 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:38.0 0;255;3;0;9;218484 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:28.0 0;255;3;0;9;218706 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:18.0 0;255;3;0;9;277923 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:43.0 0;255;3;0;9;278146 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:72.0 0;255;3;0;9;337356 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:8.0 0;255;3;0;9;337577 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:30.0 0;255;3;0;9;396783 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.0 0;255;3;0;9;397005 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:17.0
These are the defines I used
Node:#define MY_NODE_ID 1 // To avoid having to involve a controller #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RFM69_433MHZ // RFM69_433MHZ for development branch, RF69_433MHZ for master #define MY_RF69_IRQ_PIN 2 #define MY_RF69_SPI_CS 10
Gateway:
#define MY_RADIO_RFM69 #define MY_RF69_IRQ_PIN D2 #define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN #define MY_RF69_SPI_CS D8 #define MY_RFM69_FREQUENCY RFM69_433MHZ // RFM69_433MHZ for development branch, RF69_433MHZ for master
The only difference I see is that my radio modules are for 433MHz, while yours are for 868 (which is default). I don't see why it should matter, but it is a difference.
I used this git commit
commit 3e75b52c33b06c70d60eb691bd127e2f585a0c87 Date: Fri Jul 7 14:36:14 2017 +0200
On the node I used
float temperature = random(1,50); float humidity = random(1,100);
to avoid involving the DHT
-
@mfalkvidd said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
commit 3e75b52c33b06c70d60eb691bd127e2f585a0c87
Date: Fri Jul 7 14:36:14 2017 +0200The same commit as i used, freshly downloaded yesterday.
2.0.0 also not running?
-
@Floca said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
2.0.0 also not running?
2.0.0 works
2.2.0-beta works
-
i cant declare
#define MY_RFM69_IRQ_NUMIs that ok for the Gateway?
-
@Floca what happens if you declare it?
-
It is grey, uploads it and same thing as before.
Sensor cant get the gateway, gateway stops at "pm open,type:2 0".Don't know where the problem is
-
@Floca seems like MY_RF69_IRQ_NUM is important. If I do this
//#define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN
my gateway stops at
0;255;3;0;9;6624 MCO:BGN:STP 0;255;3;0;9;6675 MCO:BGN:INIT OK,TSP=1 pm open,type:2 0
and never receives any messages. I even had to restart the node after a flashed the gateway with IRQ_NUM defined. Before I restarted the node it wasn't able to get the transport up and running again, showing repeated !TSF:SND:TNR.
-
seems that this is the problem...
When it is gray, the define is not found, am i right?What would you think? Arduino IDE reinstalling or what could be the problem?
-
@Floca gray or not is just syntax highliting. It does not affect the compiled code. This is what mine looks like:
But what you did before, with setting both to D2, should work. Could you try that again, and reset the temperature node after you have uploaded the new sketch to the gateway?
-
Ok, i delete the eeprom from both, gateway and node and flash the old scripts with additional definiton of Num IRQ for the gateway?
-
@Floca That there should be no need to clear the eeproms, and no need to re-flash the temperature node. Just flash the gateway with the IRQ_NUM set and restart the temperature node.
-
My node and gw have been working throughout the night.
-
I have No Reply, don't know what i do wrong
/** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * Contribution by tekka, * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Ivo Pullens (ESP8266 support) * * DESCRIPTION * The EthernetGateway sends data received from sensors to the WiFi link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * VERA CONFIGURATION: * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin. * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003 * * LED purposes: * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or recieve crc error * * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions. * nRF24L01+ ESP8266 * VCC VCC * CE GPIO4 * CSN/CS GPIO15 * SCK GPIO14 * MISO GPIO12 * MOSI GPIO13 * GND GND * * Not all ESP8266 modules have all pins available on their external interface. * This code has been tested on an ESP-12 module. * The ESP8266 requires a certain pin configuration to download code, and another one to run code: * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch') * - Connect GPIO15 via 10K pulldown resistor to GND * - Connect CH_PD via 10K resistor to VCC * - Connect GPIO2 via 10K resistor to VCC * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * * Make sure to fill in your ssid and WiFi password below for ssid & pass. */ #include <ArduinoOTA.h> // Enable debug prints to serial monitor #define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 // Enables and select radio type (if attached) #define MY_RADIO_RFM69 #define MY_RFM69_IRQ_NUM D2 #define MY_RFM69_IRQ_PIN D2 #define MY_RFM69_CS_PIN D8 #define MY_RFM69_FREQUENCY RFM69_433MHZ #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "N3tw0rk.NET" #define MY_ESP8266_PASSWORD "123456" // Set the hostname for the WiFi Client. This is the hostname // it will pass to the DHCP server if not static. #define MY_ESP8266_HOSTNAME "RFM69-Gateway" // Enable UDP communication //#define MY_USE_UDP // If using UDP you need to set MY_CONTROLLER_IP_ADDRESS below // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) //#define MY_IP_ADDRESS 192,168,178,87 // If using static ip you can define Gateway and Subnet address as well //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1 //#define MY_IP_SUBNET_ADDRESS 255,255,255,0 // The port to keep open on node server mode #define MY_PORT 5003 // How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68 // Enable inclusion mode #define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway // #define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) #define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3 // Set blinking period // #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Flash leds on rx/tx/err // Led pins used if blinking feature is enabled above //#define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED #if defined(MY_USE_UDP) #include <WiFiUDP.h> #else #include <ESP8266WiFi.h> #endif #include <MySensors.h> void setup() { // Setup locally attached sensors ArduinoOTA.onStart([]() { debug("ArduinoOTA start\n"); }); ArduinoOTA.onEnd([]() { debug("\nArduinoOTA end\n"); }); ArduinoOTA.setPassword((const char *)"123"); ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { debug("OTA Progress: %u%%\r", (progress / (total / 100))); }); ArduinoOTA.onError([](ota_error_t error) { debug("Error[%u]: ", error); if (error == OTA_AUTH_ERROR) { debug("Auth Failed\n"); } else if (error == OTA_BEGIN_ERROR) { debug("Begin Failed\n"); } else if (error == OTA_CONNECT_ERROR) { debug("Connect Failed\n"); } else if (error == OTA_RECEIVE_ERROR) { debug("Receive Failed\n"); } else if (error == OTA_END_ERROR) { debug("End Failed\n"); } }); ArduinoOTA.begin(); } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attech sensors data here ArduinoOTA.handle(); }
-
Wich Arduino IDE Version are you using? (Last Idea)
-
@Floca good idea! I'm using 1.6.8 (haven't gotten around to upgrading in a while)
-
dont know, it is not working anyway
-
is there a chance to get your library Folder?
-
@Floca sure. I'm abroad now but I can zip it up when I am back home.
-
@mfalkvidd That would be great!
Your test Module for the Gateway was an Wemos, an NodeMcu or something else?
regards
-
@Floca I verified both nodemcu and wemos d1 mini
-
Hi, not sure if @Floca get his nodes working, but for me, the problem got fixed with this
#define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN
as mentioned by @mfalkvidd Thanks!