Skip to content

Troubleshooting

2.7k Topics 21.5k Posts

Help! Everything just falls apart

  • How does the serial GW work after all?

    8
    0 Votes
    8 Posts
    2k Views
    joaoabsJ
    This is actually strange. Its the same sketch, the difference is just the commented debug flag. With the debug flag off, I reset the GW, wait for the startup and then I reset some nodes in order to force presentation, but all I get is this: 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.2.0 With the debug flag on, I don't even need to reset the nodes, I get "automagically" the communication from my 3 test nodes (4, 10 and 44). 0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.2.0 0;255;3;0;9;4 TSM:INIT 0;255;3;0;9;6 TSF:WUR:MS=0 0;255;3;0;9;14 TSM:INIT:TSP OK 0;255;3;0;9;17 TSM:INIT:GW MODE 0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;23 MCO:REG:NOT NEEDED 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.2.0 0;255;3;0;9;28 MCO:BGN:STP 0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1 0;255;3;0;9;1915 TSF:MSG:READ,4-4-0,s=1,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;4982 TSF:MSG:READ,44-44-0,s=3,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;6920 TSF:MSG:READ,4-4-0,s=2,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;10014 TSF:MSG:READ,44-44-0,s=4,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;11924 TSF:MSG:READ,4-4-0,s=70,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;15047 TSF:MSG:READ,44-44-0,s=30,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;16928 TSF:MSG:READ,4-4-0,s=71,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;20079 TSF:MSG:READ,44-44-0,s=31,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;21932 TSF:MSG:READ,4-4-0,s=10,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;25122 TSF:MSG:READ,44-44-0,s=70,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;26937 TSF:MSG:READ,4-4-0,s=50,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;30155 TSF:MSG:READ,44-44-0,s=10,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;31941 TSF:MSG:READ,4-4-0,s=60,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;35186 TSF:MSG:READ,44-44-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;35194 TSF:MSG:SEND,0-0-44-44,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1 0;255;3;0;9;35217 TSF:MSG:READ,44-44-0,s=30,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;36947 TSF:MSG:READ,4-4-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;36955 TSF:MSG:SEND,0-0-4-4,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1 0;255;3;0;9;39106 TSF:MSG:READ,4-4-0,s=70,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;40248 TSF:MSG:READ,44-44-0,s=31,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;44111 TSF:MSG:READ,4-4-0,s=71,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;45270 TSF:MSG:READ,44-44-0,s=70,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;50302 TSF:MSG:READ,44-44-0,s=70,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;53968 TSF:MSG:READ,10-10-0,s=30,c=3,t=16,pt=0,l=0,sg=1: 0;255;3;0;9;64184 TSF:MSG:READ,10-10-0,s=30,c=3,t=16,pt=0,l=0,sg=1: 0;255;3;0;9;69276 TSF:MSG:READ,4-4-0,s=10,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;76290 TSF:MSG:READ,4-4-0,s=60,c=3,t=16,pt=0,l=0,sg=0: 0;255;3;0;9;81298 TSF:MSG:READ,4-4-0,s=50,c=3,t=16,pt=0,l=0,sg=0: What should I see in the serial GW when the debug mode is off? My serial GW code is prety standard, I'd say: /** * 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 serial 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 received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or receive 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 // 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 // Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400 #endif // 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 180 // 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 } Thanks,
  • Issues with NACK on RFM69HW

    9
    0 Votes
    9 Posts
    2k Views
    alexsh1A
    @ryanmt can you please try to use any AVR instead of Wemos for the GW? Are you 100% sure you have HW version? Try with and without define MY_IS_RFM69HW
  • Mysensors PH

    5
    0 Votes
    5 Posts
    2k Views
    alexsh1A
    @szybki946 said in Mysensors PH: how to fix this error Effectively you are asking somebody to complete this project for you - this is not just one simple correction. There were a few PH prob projects in the past (just use search), but you have to be careful and maybe need to convert the code from 1.5 to 2.xx. This is not difficult and there is a sticky post how to do that. https://forum.mysensors.org/topic/3101/ph-probe-code
  • How to blink LED

    2
    0 Votes
    2 Posts
    1k Views
    mfalkviddM
    Hi @piotr, welcome to the forum! You should be able to use the relay example BUT: pin 13 is used for spi communication with the radio, so you will need to use softspi instead. Doing that might be unnecessarily complicated, so it might be easier to connect a led and a resistor to some other pin instead.
  • Relays not working through MySensors Relay, MQTT, and Openhab

    4
    1
    0 Votes
    4 Posts
    1k Views
    F
    @bgunnarb You are right, I'm very new to my sensors and didn't see the protocol definition page and now it makes a lot more sense now that I found that page!
  • Having trouble with my RPI MQTT gateway talking to my first sensor

    7
    0 Votes
    7 Posts
    2k Views
    mfalkviddM
    Also, does MySensors get a commission off of the links provided in the store? I would much rather support you guys! Yes, MySensors does get a commission when using the links in the store (and most links in the forum). Some more info: https://www.mysensors.org/about/mysensors#do-you-make-loads-of-money-on-this
  • The Magic "void receive(const MyMessage & message)"

    9
    1 Votes
    9 Posts
    4k Views
    Sergio RiusS
    @mfalkvidd Look in the ide for language inspection errors. Sometimes while crawling the sources vs decides you have some invalid code files or dependencies, then it changes the file types to avoid live dependency resolution loop. Then you loose auto completion, error detection, navigation, etc. Specially if you use resharper plug-in. Libraries like mysensors confuses the ide.
  • having trouble with water flow sensor + relay + moisture

    4
    0 Votes
    4 Posts
    1k Views
    gohanG
    @tsunami said in having trouble with water flow sensor + relay + moisture: #define CHILD_ID_MOISTURE 2 #define CHILD_ID_HUM 3 #define CHILD_ID_TEMP 4 try #define CHILD_ID_MOISTURE 12 #define CHILD_ID_HUM 13 #define CHILD_ID_TEMP 14 Also delete node from controller if you still see the ID mixed up
  • STM32 signing problem

    4
    0 Votes
    4 Posts
    2k Views
    alowhumA
    I tried looking in Github but couldn't find any new about this. Has this been fixed?
  • Very close I think...

    4
    0 Votes
    4 Posts
    1k Views
    gohanG
    Have you looked at the relay with button example sketch? Then look also here https://forum.mysensors.org/topic/1703/relay-with-switch/4 You don't have to to read relay status because you are controlling it, so whenever you are doing the digitalwrite just set the relaystate with the same value
  • Please help to build Raspberry Pi Gateway

    23
    0 Votes
    23 Posts
    5k Views
    gohanG
    We just updated the links in shop area for good quality nrf24
  • relay statue doesn't change

    22
    0 Votes
    22 Posts
    4k Views
    gohanG
    try it, it is quite simple to run
  • mysgw MQTT Issues

    22
    0 Votes
    22 Posts
    4k Views
    X
    @gohan said in mysgw MQTT Issues: You have to check both gw and node at same time in order to understand if message is delivered but ack fails or else. Of course. I'll provide details this evening ;-)
  • esp8266 gateway doesn't connect to mqtt broker

    8
    0 Votes
    8 Posts
    2k Views
    mfalkviddM
    @tsunami program the sketch to fetch status at boot. See the first example at https://www.mysensors.org/build/dimmer for how it can be done.
  • Serial Gateway constantly restarting (=Startup complete with FHEM)

    3
    0 Votes
    3 Posts
    1k Views
    rejoe2R
    Two remarks: Both of my serial 2.2-GW's stay at "startup complete" and are working as expected (seems to have changed somewhen in the development of 2.0). Trying to set them to "connect" causes a reboot ending again in "startup complete". So this is not really a fault, just let them state "startup complete" and don't worry too much about that. If the Arduino really is spontaneously rebooting, this could also be due to a fault in the Arduino design (Test PION floating). But as you described the "problem" shows up also with the adapter/pro mini version, this seems not to be the case here.
  • Motion Sensors

    11
    0 Votes
    11 Posts
    2k Views
    mntlvrM
    I am asking for help and thee is no one in Vera that can help so I am going to ask admin or others to help solve this problem. And yes I read you last post but you have no experience with Ethernet or Wifi so I must ask behond Vera postings and you would do the same
  • Newbie problems - Sensebender GW + Arduino v1.8.2

    4
    0 Votes
    4 Posts
    2k Views
    marceltrapmanM
    @tbowmo Seen yes, read no because I thought I already added everything... Working now :) Thanks
  • RGBW setup

    17
    0 Votes
    17 Posts
    7k Views
    pepsonP
    Looks very good thanks. This controller RGBW will also work with Home Assistant ?
  • BH1750 library hangs

    20
    0 Votes
    20 Posts
    5k Views
    J
    @alexsh1 Very true :) Anyways, thanks for the tips!
  • Domoticz cannot see devices from my sensors

    8
    2
    0 Votes
    8 Posts
    3k Views
    P
    @bbrowaros It has happened to me so many times that it was easy to guess :D

10

Online

12.5k

Users

11.2k

Topics

113.5k

Posts