MySensors suddenly stop working [solved]



  • MySensors 2.2.0 on Arduino Nano USB GW
    Debian with Domoticz

    I have been running this setup for almost one year. About one week ago I updated Domoticz with the "Check for updates" in the menu, it updated to 4.9701(even if it says 4.9700 as stable on there webpage)
    It was still working good until yesterday afternoon.
    I came home and about 10 minutes later MySensors stopped getting data. I have tried everything, almost.
    New Nano, new RF, new usb port on pc, updated to latest Beta of Domoticz.
    If I restart GW i will get data from my nodes(~30) for about one minute, then I just stops.

    Any that can help my or tell me something to test.
    Thanks

    EDIT: my problem was a MySensor Repeater that did something strange, after a reset of this repeater everything seems to be OK again.


  • Admin

    @flopp Please post the full debug log + sketch for further troubleshooting



  • Thanks for your reply.
    Do you mean sketch for GW and Debug log for GW or from DZ?


  • Admin

    @flopp yes, GW sketch + log, and if possible, from a node that stops sending messages



  • @tekka OK, will upload them as soon as I have them, at work at the moment



  • I think the problem is Domoticz.
    I stopped DZ, installed Arduino IDE on Debian, then opened the Serial Monitor for my GW and it is working more than 1 minute.
    Below is Debug log and sketch for GW

    Serial output

    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.2.0
    5;0;1;0;0;23.4
    5;1;1;0;0;21.9
    5;2;1;0;0;22.9
    19;1;1;0;0;24.5
    19;3;1;0;0;14.0
    19;251;1;0;55;0
    19;252;1;0;55;1
    19;253;1;0;55; 7
    19;250;1;0;55;1676
    21;2;1;0;18;3421.5156
    21;250;1;0;55;57
    21;251;1;0;55;0
    21;252;1;0;55;1
    21;1;1;0;17;261
    21;2;1;0;17;64
    21;1;1;0;24;175354206
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215158
    21;2;1;0;18;3421.5161
    21;250;1;0;55;0
    25;0;1;0;24;48198
    25;0;1;0;35;48.198
    21;1;1;0;17;287
    21;2;1;0;17;64
    21;1;1;0;24;175354207
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215160
    21;2;1;0;18;3421.5161
    21;250;1;0;55;0
    21;1;1;0;17;287
    21;2;1;0;17;64
    21;2;1;0;25;34215162
    21;2;1;0;18;3421.5161
    21;250;1;0;55;0
    21;1;1;0;17;262
    21;2;1;0;17;64
    21;1;1;0;24;175354208
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215164
    21;2;1;0;18;3421.5164
    21;250;1;0;55;0
    25;0;1;0;24;48198
    25;0;1;0;35;48.198
    21;1;1;0;17;262
    21;2;1;0;17;64
    21;1;1;0;24;175354209
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215165
    21;2;1;0;18;3421.5164
    21;250;1;0;55;0
    14;0;1;0;0;22.9
    14;1;1;0;0;23.1
    14;2;1;0;0;23.3
    14;3;1;0;0;23.4
    14;4;1;0;0;23.6
    14;5;1;0;0;23.0
    14;6;1;0;0;22.8
    14;7;1;0;0;23.0
    14;9;1;0;0;51.5
    14;10;1;0;0;23.3
    14;11;1;0;0;23.4
    14;12;1;0;0;22.8
    14;13;1;0;0;22.4
    14;14;1;0;0;21.3
    14;15;1;0;0;52.0
    14;16;1;0;0;21.3
    14;17;1;0;0;32.0
    14;18;1;0;0;16.9
    14;19;1;0;0;18.4
    14;20;1;0;0;17.4
    14;21;1;0;0;20.5
    14;22;1;0;0;17.6
    14;23;1;0;0;18.6
    14;24;1;0;0;16.3
    14;25;1;0;0;20.3
    14;26;1;0;0;6.4
    14;27;1;0;0;3.1
    14;28;1;0;0;4.1
    14;29;1;0;0;-12.8
    14;30;1;0;0;29.4
    14;31;1;0;0;20.5
    14;32;1;0;0;21.4
    14;33;1;0;0;21.4
    14;34;1;0;0;21.2
    14;35;1;0;0;22.4
    14;36;1;0;0;16.2
    14;37;1;0;0;17.9
    14;40;1;0;2;0
    14;41;1;0;2;0
    14;42;1;0;2;0
    14;43;1;0;2;0
    14;44;1;0;2;0
    21;1;1;0;17;261
    21;2;1;0;17;64
    21;1;1;0;24;175354210
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215167
    21;2;1;0;18;3421.5168
    21;250;1;0;55;0
    21;1;1;0;17;671
    21;2;1;0;17;64
    21;1;1;0;24;175354212
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215169
    21;2;1;0;18;3421.5168
    21;250;1;0;55;0
    25;0;1;0;24;48198
    25;0;1;0;35;48.198
    21;1;1;0;17;656
    21;2;1;0;17;64
    21;1;1;0;24;175354213
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215171
    21;2;1;0;18;3421.5171
    21;250;1;0;55;0
    21;1;1;0;17;601
    21;2;1;0;17;64
    21;1;1;0;24;175354214
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215173
    21;2;1;0;18;3421.5171
    21;250;1;0;55;0
    21;1;1;0;17;241
    21;2;1;0;17;64
    21;1;1;0;24;175354215
    21;1;1;0;18;175354.2000
    21;2;1;0;25;34215174
    21;2;1;0;18;3421.5176
    21;250;1;0;55;0
    25;0;1;0;24;48198
    25;0;1;0;35;48.198
    
    

    Sketch

    /**
    * 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.
    *
    *******************************
    *
    * DESCRIPTION
    * The ArduinoGateway prints data received from sensors on the serial link.
    * The gateway accepts input on seral which will be sent out on radio network.
    *
    * The GW code is designed for Arduino Nano 328p / 16MHz
    *
    * Wire connections (OPTIONAL):
    * - Inclusion button should be connected between digital pin 3 and GND
    * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series
    *
    * LEDs (OPTIONAL):
    * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs
    * - 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
    *
    */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_NRF5_ESB
    //#define MY_RADIO_RFM69
    //#define MY_RADIO_RFM95
    
    //Buffer
    #define MY_RX_MESSAGE_BUFFER_FEATURE 
    #define MY_RF24_IRQ_PIN 2 
    
    // Set LOW transmit power level as default, if you have an amplified NRF-module and
    // power your radio separately with a good regulator you can turn up PA level.
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    
    // Enable serial gateway
    #define MY_GATEWAY_SERIAL
    
    // Enable inclusion mode
    //#define MY_INCLUSION_MODE_FEATURE
    // Enable Inclusion mode button on gateway
    //#define MY_INCLUSION_BUTTON_FEATURE
    
    // Inverses behavior of inclusion button (if using external pullup)
    //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
    
    // 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
    
    // Inverses the behavior of leds
    //#define MY_WITH_LEDS_BLINKING_INVERSE
    
    // Flash leds on rx/tx/err
    // Uncomment to override default HW configurations
    //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
    //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
    //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
    
    #include <MySensors.h>
    
    void setup()
    {
      // Setup locally attached sensors
    }
    
    void presentation()
    {
      // Present locally attached sensors
    }
    
    void loop()
    {
      // Send locally attached sensor data here
    }
    


  • Log in DZ

    2018-08-31 10:44:26.576 Status: MySensors: Using serial port: /dev/ttyUSB0
    2018-08-31 10:44:28.068 MySensors: Gateway Ready...
    2018-08-31 10:44:28.143 MySensors: Gateway Version: 2.2.0
    2018-08-31 10:45:01.568 Status: Incoming connection from: 127.0.0.1
    2018-08-31 10:45:05.421 (MySensors USB) Temp (AppleTV_T)
    2018-08-31 10:45:05.441 (MySensors USB) Temp (PS3_T)
    2018-08-31 10:45:05.463 (MySensors USB) Temp (Stereo_T)
    2018-08-31 10:45:18.687 (MySensors USB) RFXMeter (Water)
    2018-08-31 10:45:24.314 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:24.317 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:45:24.320 (MySensors USB) General/Custom Sensor (ElParent)
    2018-08-31 10:45:24.322 (MySensors USB) General/Custom Sensor (ElDistance)
    2018-08-31 10:45:24.323 (MySensors USB) Usage (Usage)
    2018-08-31 10:45:24.326 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:24.328 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:45:24.331 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:45:33.750 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:45:33.759 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:33.778 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:45:33.794 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:33.803 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:45:40.824 (MySensors USB) General/Voltage (TvättMS_V)
    2018-08-31 10:45:40.902 (MySensors USB) General/Custom Sensor (TvättSleepTime)
    2018-08-31 10:45:40.977 (MySensors USB) General/Custom Sensor (TvättFails)
    2018-08-31 10:45:43.750 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:45:43.759 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:43.777 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:43.784 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:45:48.692 (MySensors USB) RFXMeter (Water)
    2018-08-31 10:45:53.752 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:45:53.760 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:53.778 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:45:53.796 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:45:53.805 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:45:55.493 (MySensors USB) General/Custom Sensor (BadrumUppeFails)
    2018-08-31 10:46:03.753 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:03.762 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:03.781 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:03.798 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:03.806 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:46:13.754 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:13.762 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:13.781 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:13.798 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:13.808 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:46:14.950 (MySensors USB) General/Voltage (KöketVaskenMS_V)
    2018-08-31 10:46:14.960 (MySensors USB) General/Voltage (KöketVaskenResMS_V)
    2018-08-31 10:46:14.975 (MySensors USB) General/Custom Sensor (KöketVaskenSleepTime)
    2018-08-31 10:46:14.985 (MySensors USB) General/Custom Sensor (KöketVaskenFails)
    2018-08-31 10:46:18.693 (MySensors USB) RFXMeter (Water)
    2018-08-31 10:46:23.721 (Z-Wave) General/kWh (Pool_Pump_Cirk_kWh)
    2018-08-31 10:46:23.755 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:23.763 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:23.766 (Z-Wave) General/kWh (Pool_Lights_Deck_kWh)
    2018-08-31 10:46:23.781 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:23.790 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:46:24.315 (MySensors USB) General/Voltage (BadrumNereMS_V)
    2018-08-31 10:46:24.389 (MySensors USB) Temp (Temp)
    2018-08-31 10:46:24.464 (MySensors USB) Temp (BadrumNereDew)
    2018-08-31 10:46:24.537 (MySensors USB) General/Custom Sensor (BadrumNereSleepTime)
    2018-08-31 10:46:24.612 (MySensors USB) General/Custom Sensor (BadrumNereFails)
    2018-08-31 10:46:33.757 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:33.766 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:33.783 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:33.802 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:33.810 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:46:43.759 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:43.766 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:43.785 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 10:46:43.803 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 10:46:43.812 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 10:47:07.296 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:47:07.367 (Z-Wave) Usage (Pool_Lights_Water_Watt)
    2018-08-31 10:47:07.369 (Z-Wave) General/kWh (Pool_Lights_Water_kWh)
    2018-08-31 10:47:07.441 (Z-Wave) General/kWh (Pool_Lights_Water_kWh)
    2018-08-31 10:47:48.293 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:47:48.295 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:47:58.293 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:47:58.298 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:48:00.688 (Z-Wave) Usage (Pool_Lights_Deck_Watt)
    2018-08-31 10:48:00.692 (Z-Wave) General/kWh (Pool_Lights_Deck_kWh)
    2018-08-31 10:48:01.688 (Z-Wave) Usage (Pool_Pump_Cirk_Watt)
    2018-08-31 10:48:01.692 (Z-Wave) General/kWh (Pool_Pump_Cirk_kWh)
    2018-08-31 10:48:03.057 (Z-Wave) General/kWh (Pool_Heat_kWh)
    2018-08-31 10:48:11.292 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:48:11.297 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:49:19.055 (Z-Wave) Usage (Pool_Heat_Watt)
    2018-08-31 10:49:19.060 (Z-Wave) General/kWh (Pool_Heat_kWh)
    2018-08-31 10:52:23.692 (Z-Wave) General/kWh (Pool_Pump_Cirk_kWh)
    2018-08-31 10:52:23.765 (Z-Wave) General/kWh (Pool_Lights_Deck_kWh)
    2018-08-31 10:53:07.294 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:53:07.366 (Z-Wave) Usage (Pool_Lights_Water_Watt)
    2018-08-31 10:53:07.369 (Z-Wave) General/kWh (Pool_Lights_Water_kWh)
    2018-08-31 10:53:07.441 (Z-Wave) General/kWh (Pool_Lights_Water_kWh)
    2018-08-31 10:53:30.292 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:53:30.296 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:53:53.291 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:53:53.296 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:54:00.689 (Z-Wave) Usage (Pool_Lights_Deck_Watt)
    2018-08-31 10:54:00.692 (Z-Wave) General/kWh (Pool_Lights_Deck_kWh)
    2018-08-31 10:54:01.689 (Z-Wave) Usage (Pool_Pump_Cirk_Watt)
    2018-08-31 10:54:01.694 (Z-Wave) General/kWh (Pool_Pump_Cirk_kWh)
    2018-08-31 10:54:03.057 (Z-Wave) General/kWh (Pool_Heat_kWh)
    2018-08-31 10:54:03.292 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:54:03.297 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:55:19.055 (Z-Wave) Usage (Pool_Heat_Watt)
    2018-08-31 10:55:19.059 (Z-Wave) General/kWh (Pool_Heat_kWh)
    2018-08-31 10:58:23.692 (Z-Wave) General/kWh (Pool_Pump_Cirk_kWh)
    2018-08-31 10:58:23.767 (Z-Wave) General/kWh (Pool_Lights_Deck_kWh)
    2018-08-31 10:59:06.291 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:59:06.294 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:59:07.293 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:59:07.365 (Z-Wave) Usage (Pool_Lights_Water_Watt)
    2018-08-31 10:59:07.368 (Z-Wave) General/kWh (Pool_Lights_Water_kWh)
    2018-08-31 10:59:07.441 (Z-Wave) General/kWh (Pool_Lights_Water_kWh)
    2018-08-31 10:59:16.291 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:59:16.294 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 10:59:29.291 (Z-Wave) Usage (Pool_Pump_Drain_Watt)
    2018-08-31 10:59:29.296 (Z-Wave) General/kWh (Pool_Pump_Drain_kWh)
    2018-08-31 11:00:00.714 (Z-Wave) Usage (Pool_Lights_Deck_Watt)
    2018-08-31 11:00:00.713 Status Starting automatic database backup procedure
    2018-08-31 11:00:01.786 (Z-Wave) General/kWh (Pool_Lights_Deck_kWh)
    2018-08-31 11:00:01.788 (Z-Wave) Usage (Pool_Pump_Cirk_Watt)
    2018-08-31 11:00:01.790 (Z-Wave) General/kWh (Pool_Pump_Cirk_kWh)
    2018-08-31 11:00:01.781 Status Ending automatic database backup procedure
    2018-08-31 11:00:01.788 Status Incoming connection from: 127.0.0.1
    2018-08-31 11:00:03.058 (Z-Wave) General/kWh (Pool_Heat_kWh)
    2018-08-31 11:01:19.056 (Z-Wave) Usage (Pool_Heat_Watt)
    2018-08-31 11:01:19.060 (Z-Wave) General/kWh (Pool_Heat_kWh)
    2018-08-31 11:01:45.807 Error: MySensors USB hardware (5) nothing received for more than 15 Minutes
    2018-08-31 11:01:46.807 Error: Restarting: MySensors USB
    2018-08-31 11:01:47.752 Status: MySensors: Serial Worker stopped
    2018-08-31 11:01:48.772 Status: MySensors: Using serial port: /dev/ttyUSB0
    2018-08-31 11:01:50.264 MySensors: Gateway Ready
    2018-08-31 11:01:50.339 MySensors: Gateway Version: 2.2.0
    2018-08-31 11:02:04.956 (MySensors USB) Usage (Usage)
    2018-08-31 11:02:04.959 (MySensors USB) Usage (Usage)
    2018-08-31 11:02:04.963 (MySensors USB) General/kWh (Huset_V)
    2018-08-31 11:02:04.968 (MySensors USB) General/kWh (Panna_V)
    2018-08-31 11:02:04.971 (MySensors USB) General/Custom Sensor (ElFails)
    2018-08-31 11:02:08.353 (MySensors USB) General/Voltage (TvättMS_V)
    2018-08-31 11:02:08.430 (MySensors USB) General/Custom Sensor (TvättSleepTime)
    2018-08-31 11:02:08.504 (MySensors USB) General/Custom Sensor (TvättFails)
    2018-08-31 11:02:11.820 Error: SMTP Mailer: Error sending Email to: <@hotmail.com>
    2018-08-31 11:02:11.820 Error: Notification failed (Email) 
    


  • SOLVED please see first post


 

448
Online

7.9k
Users

8.8k
Topics

93.8k
Posts