Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • V_FORECAST

    4
    0 Votes
    4 Posts
    612 Views
    skywatchS
    This seems to work for anyone who needs it....... void receive(const MyMessage &message) { if (message.sensor == CHILD_ID_GETFORECAST && message.type == V_FORECAST) { forecast = (message.getString()); if (forecast == "stable"){ Index = 0;} else if (forecast == "sunny"){ Index = 1;} else if (forecast == "cloudy"){ Index = 2;} else if (forecast == "unstable"){ Index = 3;} else if (forecast == "thunderstorm"){ Index = 4;} else if (forecast == "unknown"){ Index = 5;} }
  • 0 Votes
    2 Posts
    530 Views
    A
    @andy5211d Sorted. After trying to use different versions and combinations of the various files nothing made any difference; it had to be an issue with the include file to drive the Ethernet module. I discovered the default configuration for a new Ardunio IDE install uses includes from a different location compared to my original software build. Thus the Ethernet.h file was the default Ardunio sketch not the one for the SAMD board included in MySensors and as suspected the Ethernet module was not being communicated with. Using the verbose options for the compiler in the IDE preferences it is possible to see which 'includes' are used. So far I have not been able to 'drive' the compiler to use specific locations and the description of how and the order of Library preference is not that clear to me. There are now IDE warnings about nRF5 but as I don't use nRF5's its not important, these are different issues though.
  • Sensebender Gateway with W5100 trouble

    4
    0 Votes
    4 Posts
    1k Views
    A
    Hi I have exactly the same problem but now using the latest IDE environment and MySensors build. Did you manage to find out what was causing the issue? In my set-up seems like the ethernet module is not communication with the rest of the hardware. Fixed. The IDE was using the incorrect Ethernet library after a clean install of the Arduino IDE.
  • FOTA wont work, Controller error NACK

    20
    0 Votes
    20 Posts
    2k Views
    gohanG
    Try a normal radio on gateway instead of the PA lna
  • RGBW controller design issues

    8
    1
    0 Votes
    8 Posts
    2k Views
    J
    Thanks all for your input. It is going to be back to the drawing board for me. At least I learned a lot about the mistakes made here. I did try the setup on a breadboard before and that worked but that was with a arduino pro mini so not with the seperate chip. Aw well lessons learned and let's get going for the next PCB. Probably gonna post it here before ordering it :wink:
  • Gateway

    2
    0 Votes
    2 Posts
    567 Views
    mfalkviddM
    Welcome to the MySensors community @kittelmann ! If you haven't already, see https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ for the most common problems and how to troubleshoot them. You say you have several in action. Is that several gateways or several sensor nodes?
  • Compiler Issue GatewayESP8266

    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    @free118 great. Thanks for reporting back!
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    1 Views
  • I'm not good at programming

    6
    0 Votes
    6 Posts
    856 Views
    zrom69Z
    in domoticz he sends his state of light it is he and turn on or off
  • Recovery of Battery Powered Sensor after Gateway Outage

    3
    0 Votes
    3 Posts
    892 Views
    G
    Here is a link to my sketches and log file. If I don't sleep the SAMD21G18 but instead wait, I can cycle the power on the gateway and the sensor recovers even with my SPI write to a register to implement the radio sleep. The log file is called "node_debug_wait.txt" However, If the wait is replaced with a sleep, LowPower.deepSleep(10000); the sensor does not recover until it too is power cycled. I also tried the RTCZero.h library to implement the sleep. See MySensors_BME280_RTC sketch. Both sleep methods work as long as the gateway never goes down. I tried #define MY_TRANSPORT_WAIT_READY_MS 2000 and the sensor does not connect with gateway at all. When the sensor is down after the gateway power cycle there is no receive data at the gateway so I did not collect the gateway log. On the sensor side, once the CPU powers down the serial USB connection lost. I tried both Arduino Serial Monitor and PuTTY to get the sensor log file. To overcome the serial problem I created a blink function and then inserted that into the code to determine if my interrupt service function was working see MySensors_BME280_Debug. Now the solution: I added an awake up interrupt service routine which calls transportCheckUplink(). That's it. It seems to be enough to get the transport layer running again after a CPU sleep. My Motenio M0 board only draws 10 - 20 uA total when CPU, RFM69 and BME280 are shutdown with no modifications of the factory board. It is be a very capable yet low power MySensor. I look forward to official support of sleep for a SAMD21G18 based board. Meanwhile, this is a workaround.
  • Timer2 does not work after including MySensors.h

    17
    0 Votes
    17 Posts
    2k Views
    scalzS
    @TSD glad to hear i helped you. you have to work with doxygen and sources
  • This topic is deleted!

    4
    0 Votes
    4 Posts
    124 Views
  • RPi gw broken, invalid message length

    2
    0 Votes
    2 Posts
    594 Views
    MasMatM
    Apparently sleeping less and debugging late solves problems. This is SOLVED. My IDE library was outdated. I updated my Arduino Mysensors-library, upload to one node, and my node started to communicate fine. Must reupload all nodes unfortunately. Probably the problems are caused by signing differences in previous library versions vs. 2.3.0 release for Raspberry. Again, hope this helps someone who encounters the same problem.
  • Irrigation controller

    12
    0 Votes
    12 Posts
    2k Views
    E
    @Anticimex just tried this, doesn't seem to work. What is the easiest way to debug this? How can I verify that all the components work?
  • This topic is deleted!

    1
    1 Votes
    1 Posts
    71 Views
    No one has replied
  • Dimmer problem (value changes by the sensor)

    1
    0 Votes
    1 Posts
    565 Views
    No one has replied
  • RFM69HCW Feather M0 MQTT

    23
    0 Votes
    23 Posts
    2k Views
    Andrew MaynardA
    Would it be wise to close this and move it to Domoticz MySensors forum? It looks like its an issue with mqtt or domoticz.
  • 0 Votes
    5 Posts
    1k Views
    pihomeP
    @mfalkvidd thank, i got it working but i think pi gateway isn't reliable or its just me :( once every while i get DEBUG !TSF:RTE:100 UNKNOWN whereas esp gateway works flawless Aug 05 11:31:36 INFO Starting gateway... Aug 05 11:31:36 INFO Protocol version - 2.3.0 Aug 05 11:31:36 DEBUG Serial port /dev/ttyMySensorsGateway (115200 baud) created Aug 05 11:31:36 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,VER=2.3.0 Aug 05 11:31:36 DEBUG TSF:LRT:OK Aug 05 11:31:36 DEBUG TSM:INIT Aug 05 11:31:36 DEBUG TSF:WUR:MS=0 Aug 05 11:31:36 DEBUG TSM:INIT:TSP OK Aug 05 11:31:36 DEBUG TSM:INIT:GW MODE Aug 05 11:31:36 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Aug 05 11:31:36 DEBUG MCO:REG:NOT NEEDED Aug 05 11:31:36 DEBUG MCO:BGN:STP Aug 05 11:31:36 DEBUG MCO:BGN:INIT OK,TSP=1 Aug 05 11:31:45 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82 Aug 05 11:32:23 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28 Aug 05 11:32:23 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6 Aug 05 11:32:27 DEBUG TSF:MSG:READ,21-21-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.0 Aug 05 11:32:45 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82 Aug 05 11:33:25 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28 Aug 05 11:33:25 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6 Aug 05 11:33:45 DEBUG TSF:MSG:READ,26-26-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.45 Aug 05 11:33:45 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82 Aug 05 11:34:01 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:34:01 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:34:01 DEBUG TSF:MSG:ACK Aug 05 11:34:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=3,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:34:02 DEBUG TSF:MSG:READ,101-101-0,s=3,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:34:02 DEBUG TSF:MSG:ACK Aug 05 11:34:03 DEBUG !TSF:RTE:100 UNKNOWN Aug 05 11:34:03 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0 Aug 05 11:34:26 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28 Aug 05 11:34:26 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6 Aug 05 11:34:27 DEBUG TSF:MSG:READ,25-25-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.4 Aug 05 11:34:46 DEBUG TSF:MSG:READ,26-26-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.45 Aug 05 11:35:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:35:02 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:35:02 DEBUG TSF:MSG:ACK Aug 05 11:35:03 DEBUG TSF:MSG:SEND,0-0-101-101,s=3,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:35:03 DEBUG TSF:MSG:READ,101-101-0,s=3,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:35:03 DEBUG TSF:MSG:ACK Aug 05 11:35:04 DEBUG !TSF:RTE:100 UNKNOWN Aug 05 11:35:04 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0 Aug 05 11:35:18 DEBUG TSF:MSG:READ,20-20-0,s=0,c=1,t=0,pt=7,l=5,sg=0:21.3 Aug 05 11:35:28 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28 Aug 05 11:35:28 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6 Aug 05 11:35:29 DEBUG TSF:MSG:READ,25-25-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.5 Aug 05 11:36:01 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:36:01 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:36:01 DEBUG TSF:MSG:ACK Aug 05 11:36:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=2,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:36:02 DEBUG TSF:MSG:READ,101-101-0,s=2,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:36:02 DEBUG TSF:MSG:ACK Aug 05 11:36:03 DEBUG !TSF:RTE:100 UNKNOWN Aug 05 11:36:03 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0 Aug 05 11:36:16 DEBUG TSF:MSG:READ,101-101-255,s=255,c=3,t=7,pt=0,l=0,sg=0: Aug 05 11:36:16 DEBUG TSF:MSG:BC Aug 05 11:36:16 DEBUG TSF:MSG:FPAR REQ,ID=101 Aug 05 11:36:16 DEBUG TSF:PNG:SEND,TO=0 Aug 05 11:36:16 DEBUG TSF:CKU:OK Aug 05 11:36:16 DEBUG TSF:MSG:GWL OK Aug 05 11:36:17 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 Aug 05 11:36:17 DEBUG TSF:MSG:READ,20-20-0,s=0,c=1,t=0,pt=7,l=5,sg=0:21.2 Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 Aug 05 11:36:18 DEBUG TSF:MSG:PINGED,ID=101,HP=1 Aug 05 11:36:18 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 Aug 05 11:36:18 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=0,t=18,pt=0,l=5,sg=0:2.1.1 Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0 Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=11,pt=0,l=21,sg=0:Zone Controller Relay Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.2 Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=1,c=0,t=3,pt=0,l=0,sg=0: Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=2,c=0,t=3,pt=0,l=0,sg=0: Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=3,c=0,t=3,pt=0,l=0,sg=0: Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=4,c=0,t=3,pt=0,l=0,sg=0: Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 Aug 05 11:36:20 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1 Aug 05 11:36:30 DEBUG TSF:MSG:READ,21-21-0,s=0,c=1,t=0,pt=7,l=5,sg=0:22.9 Aug 05 11:36:30 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28 Aug 05 11:36:30 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6 Aug 05 11:36:46 DEBUG TSF:MSG:READ,26-26-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.45 Aug 05 11:36:46 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82 Aug 05 11:37:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:37:02 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:37:02 DEBUG TSF:MSG:ACK Aug 05 11:37:03 DEBUG TSF:MSG:SEND,0-0-101-101,s=3,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0 Aug 05 11:37:03 DEBUG TSF:MSG:READ,101-101-0,s=3,c=1,t=2,pt=0,l=2,sg=0:0 Aug 05 11:37:03 DEBUG TSF:MSG:ACK Aug 05 11:37:04 DEBUG !TSF:RTE:100 UNKNOWN Aug 05 11:37:04 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0 Aug 05 11:37:30 DEBUG TSF:MSG:READ,21-21-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.0 Aug 05 11:37:32 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28 Aug 05 11:37:32 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
  • Introductions and Range Issues

    37
    1
    0 Votes
    37 Posts
    4k Views
    YveauxY
    @titvs all grounds should be connected together, or you won't have a defined '0' level in your setup.
  • Mega 2560 Pro + W5100 + NRF24 Gateway

    6
    0 Votes
    6 Posts
    1k Views
    Andrew MaynardA
    Im jealous! Im stuck on the gateway not receiving messages.

29

Online

11.7k

Users

11.2k

Topics

113.1k

Posts