Skip to content

Troubleshooting

2.7k Topics 21.5k Posts

Help! Everything just falls apart

  • No MY_DEBUGDEVICE.begin ?

    5
    0 Votes
    5 Posts
    1k Views
    F
    fac13 about 2 hours ago I realized I should have added a wait after the initialization, like this: - void preHwInit() { MY_DEBUGDEVICE.begin(115200); while(!MY_DEBUGDEVICE){}; } With that included, my sketch works without needing the architecture code mod. Putting the same code in before() doesn't work. Thanks for your help.
  • ClearEprom does not work for Sensebender GW

    12
    0 Votes
    12 Posts
    3k Views
    tbowmoT
    @alexsh1 Sorry, didn't have access to my hardware lab, so got thrown off by other projects. The upcoming weekend will probably go with looking at old nasty php code, fixing issues in a 7 year old project I made for a former employer.. / Thomas
  • Help soil moisture sensor

    3
    0 Votes
    3 Posts
    885 Views
    J
    Hello it's nice to answer me. I followed the tutorial to the letter: Connection and code https://www.mysensors.org/build/moisture
  • Latest beta build of Domoticz (9379) crashes when adding new sensors

    14
    1 Votes
    14 Posts
    4k Views
    alexsh1A
    @gertsanders said in Latest beta build of Domoticz (9379) crashes when adding new sensors: DIL connector :+1: I do not have a PCB. I have the atmega1284p board (Mightyduino) -> https://oshpark.com/shared_projects/zuZ4OIae and would like to have a moteino like board with either nrf24l01+ or rfm69 on it I can use wires to connect a transceiver but would like to have a neat solution
  • 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
    4k 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
    2k 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
    6k Views
    AnticimexA
    @alexsh1 nice to hear :)
  • Watermark arduino 3.3 headache

    5
    0 Votes
    5 Posts
    4k 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
    4k 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
    3k 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
    8k 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
    1k 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
    751 Views
    No one has replied
  • Arduino Interrupts and I2C

    4
    0 Votes
    4 Posts
    2k 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
    2k 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
    3k Views
    ร
    @gertsanders Thanks! Works great! I'm so happy!!! :relaxed: :smile:
  • SW_Signing failing: !TSF:MSG:SIGN FAIL

    27
    0 Votes
    27 Posts
    5k 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
    563 Views
    No one has replied
  • Vera Inclusion Issue

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

9

Online

12.5k

Users

11.2k

Topics

113.5k

Posts