Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    44 Views
    No one has replied
  • Soft WDT reset on ESP8266 RFM69 gateway after find parent

    21
    0 Votes
    21 Posts
    2k Views
    mfalkviddM
    About 35 minutes after I reset the node, it started reporting again (without any other changes). I have no idea what caused it to start working.
  • Serial Gateway not working after Raspberry Pi upgrade

    6
    0 Votes
    6 Posts
    1k Views
    C
    I have a new problem regarding the mysensors serial gateway. I have started with a fresh install of Openhab, and have found the documents detailing how to install an up to date java 8 version confusing and out of date. With that said, I'm not sure my java is working properly which may be causing this problem. I have installed the mysensors binding via the paperUI marketplace, and after adding the serial gateway and configuring it, it says UNINITIALIZED - HANDLER_INITIALIZING_ERROR. The logs in karafe gives: 00:30:44.518 [DEBUG] [org.openhab.binding.mysensors ] - BundleEvent STARTING - org.openhab.binding.mysensors 00:30:44.529 [DEBUG] [org.openhab.binding.mysensors ] - BundleEvent STARTED - org.openhab.binding.mysensors 00:30:44.686 [DEBUG] [org.openhab.binding.mysensors ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=org.openhab.binding.mysensors.factory.MySensorsHandlerFactory, component.id=212, service.id=343, service.bundleid=225, service.scope=bundle} - org.openhab.binding.mysensors 00:30:45.167 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:7e41fb40' changed from UNINITIALIZED to INITIALIZING 00:30:45.250 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge 00:30:45.294 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Cache file: given_ids.cached exist. 00:30:45.299 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Cache (given_ids) content: null 00:30:45.304 [ERROR] [rnal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.mysensors.handler.MySensorsBridgeHandler@18c1f58': null java.lang.NullPointerException: null at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.loadCacheFile(MySensorsBridgeHandler.java:172) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.initialize(MySensorsBridgeHandler.java:79) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] 00:30:45.345 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:7e41fb40' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR) 00:30:45.344 [ERROR] [home.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'mysensors:bridge-ser:7e41fb40': null java.lang.NullPointerException: null at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.loadCacheFile(MySensorsBridgeHandler.java:172) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.initialize(MySensorsBridgeHandler.java:79) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] Can anyone help me to debug this problem? I can confirm that when using the command: screen /dev/ttyUSB0 115200 I can see the debug information coming from the gateway: 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 And when I operate a sensor node: 0;255;3;0;9;141450 TSF:MSG:READ,102-102-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.4 102;1;1;0;38;3.4 0;255;3;0;9;141457 TSF:MSG:READ,102-102-0,s=255,c=3,t=0,pt=1,l=1,sg=0:102 102;255;3;0;0;102 0;255;3;0;9;141470 TSF:MSG:READ,102-102-0,s=2,c=1,t=16,pt=1,l=1,sg=0:1 102;2;1;0;16;1 However, if I use the command: cat /dev/ttyUSB0 I get nothing.
  • Singing 2.2.0

    22
    0 Votes
    22 Posts
    2k Views
    AnticimexA
    @alexsh1 nice to hear :)
  • Watermark arduino 3.3 headache

    5
    0 Votes
    5 Posts
    3k Views
    P
    Hello, I hope your are still around about this topic. I very very oft read that we need to take twice the measure by inversing the polarity. As say the doc A special circuit is needed to measure the electrical resistance of the Watermark sensor. DC currents must not be allowed to flow through the wet part of the circuit, or else irreversible reactions will occur and spoil the readings. AC excitation avoids these problems, by reversing the polarity of the current many times per second, so that no net reaction takes place at either electrode In your above sketch, you do not inverse the polarity and it's look like you read 10 time with the same polarity. However, in the above schema, it look like you power (3.3 at the sensor) once the WATERMAK, and then 3.3 at the resistance. Could you explian me your sketch code? And what does the capacitor? Thank a lot..
  • Ethernet Gateway (W5100) not working on an Ethernet Switch.

    12
    0 Votes
    12 Posts
    2k Views
    R
    @gohan Thanks, as per your advice, I soldered 2 100 Ohm resistors between pin 1 and 2 and between pin 3 and 6 on the backside of the boards. I did this for the Ethernet module of the Sensebender Gateway as well as for the Arduino Ethernet shield on the Uno. And indeed both gateways are now perfectly working on the Ethernet Switch. MySensors forum works!! Issue solved within 24 hours. I Am Very Grateful, @gohan
  • I'm stuck! - !TSM:FPAR:FAIL

    14
    0 Votes
    14 Posts
    2k Views
    AnticimexA
    @alowhum one way to check is to run the security personaliser without changing it. It will print the security related contents in eeprom. Then enable the simple flag, run a sketch with it, then re-run the personaliser and see if the eeprom content changed.
  • No new node possible

    22
    0 Votes
    22 Posts
    5k Views
    alowhumA
    For anyone finding this: I solved it by clearing the eeprom of the Arduino. There's a special sketch for that under examples.
  • Node to Node communication without gatway

    3
    0 Votes
    3 Posts
    773 Views
    B
    Hi, meanwhile I was able to solve the problem. #define MY_PASSIVE_NODE did the trick.
  • Message lag

    1
    0 Votes
    1 Posts
    497 Views
    No one has replied
  • Arduino Interrupts and I2C

    4
    0 Votes
    4 Posts
    1k Views
    YveauxY
    @zboblamont avr-libc is the 'base library' which allows c-coding on atmega's. It describes how to use the twi interface and includes some example code to juggle the twi registers of the atmega. Possibly you can find some arduino library abstracting these details for you, but this is how it works/should be done.
  • Battery issue with whispernode

    10
    0 Votes
    10 Posts
    1k Views
    zboblamontZ
    @gohan :joy: It is now 20.26, and the Lounge is currently reading 21.5 with a precision of 0.1 and has not updated since 17.07....
  • [ SOLVED ] MyS 2.2.0 - MY_DEBUG fails on certain bootloaders

    12
    0 Votes
    12 Posts
    2k Views
    @gertsanders Thanks! Works great! I'm so happy!!! :relaxed: :smile:
  • SW_Signing failing: !TSF:MSG:SIGN FAIL

    27
    0 Votes
    27 Posts
    3k Views
    joaoabsJ
    @tekka What debug flag should I activate for this? When I see the erratic behavior there isn't nothing appearing in the serial console, even with the MY_DEBUG on, so I guess there should be other that is of your interest... Thanks
  • MYSBootloader starting without gateway

    1
    0 Votes
    1 Posts
    394 Views
    No one has replied
  • Vera Inclusion Issue

    2
    0 Votes
    2 Posts
    776 Views
    JohnRobJ
    When I started off and knew nothing about the MySensors system and was in the same spot as you (I didn't know what if anything worked). It was suggested i try the webserver example on the gateway. This would make sure the GW is talking to the LAN. Then I made a simple counting sketch on my node that counted from 0 to 250 in steps of 5, sending the count to my VeraPlus using the Multimeter Voltage parameter. Maybe this helps.
  • How does the serial GW work after all?

    8
    0 Votes
    8 Posts
    1k 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
    1k 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
    1k 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
    953 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.

29

Online

11.7k

Users

11.2k

Topics

113.1k

Posts