Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Feature Requests
  3. Big Wish - a working system including up-to-date Reference

Big Wish - a working system including up-to-date Reference

Scheduled Pinned Locked Moved Feature Requests
22 Posts 4 Posters 7.0k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kr0815
    wrote on last edited by kr0815
    #5

    Not really something for feature request, more trouble shooting...

    But the relay sensor was just an example, not connected to the gateway, node by itself.
    I don´t even have to switch the relay - just the Wifi Gateway running, connected to putty
    As soon as a sensor sends his startup message, Wifi Gateway crashes, no longer reachable

    I´d be really happy if someone could try it, maybe it´s still my fault:
    Power Up Wifi Gateway, then power up relay node ( both dev version) , i think it has something to do because relay node is also a repeater ?

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #6

      Ok, I just verified your setup on the latest dev branch.

      • Uploaded the relay sketch on a node (unmodified).
      • Flashed an esp with attached NRF-radio (static ip).
      > telnet 192.168.178.87 5003
      Trying 192.168.178.87...
      Connected to 192.168.178.87.
      Escape character is '^]'.
      0;255;3;0;14;Gateway startup complete.
      2;255;0;0;18;2.0.0-beta
      2;255;3;0;6;0
      2;255;3;0;11;Relay
      2;255;3;0;12;1.0
      2;1;0;0;3;
      

      And the same time on the gateway while powering up the relay node.

      ip:192.168.178.87,mask:255.255.255.0,gw:192.168.178.1
      .IP: 192.168.178.87
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0
      pm open,type:2 0
      0;255;3;0;9;Client 0 connected
      0;255;3;0;9;read: 2-2-0 s=255,c=3,t=15,pt=0,l=2,sg=0:
      0;255;3;0;9;send: 0-0-2-2 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
      0;255;3;0;9;read: 2-2-0 s=255,c=0,t=18,pt=0,l=10,sg=0:2.0.0-beta
      0;255;3;0;9;read: 2-2-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
      0;255;3;0;9;read: 2-2-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
      0;255;3;0;9;read: 2-2-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
      0;255;3;0;9;read: 2-2-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;read: 4-4-0 s=255,c=2,t=0,pt=1,l=1,sg=0:75
      0;255;3;0;9;read: 4-4-0 s=1,c=3,t=8,pt=7,l=5,sg=0:23.5
      0;255;3;0;9;read: 4-4-0 s=2,c=1,t=1,pt=2,l=2,sg=0:40
      

      No crashes or nothing. It even picked up another sensebender module reporting temperature.

      The only difference I can see is that you use putty to connect.

      martinhjelmareM 1 Reply Last reply
      0
      • hekH hek

        Ok, I just verified your setup on the latest dev branch.

        • Uploaded the relay sketch on a node (unmodified).
        • Flashed an esp with attached NRF-radio (static ip).
        > telnet 192.168.178.87 5003
        Trying 192.168.178.87...
        Connected to 192.168.178.87.
        Escape character is '^]'.
        0;255;3;0;14;Gateway startup complete.
        2;255;0;0;18;2.0.0-beta
        2;255;3;0;6;0
        2;255;3;0;11;Relay
        2;255;3;0;12;1.0
        2;1;0;0;3;
        

        And the same time on the gateway while powering up the relay node.

        ip:192.168.178.87,mask:255.255.255.0,gw:192.168.178.1
        .IP: 192.168.178.87
        0;255;3;0;9;Init complete, id=0, parent=0, distance=0
        pm open,type:2 0
        0;255;3;0;9;Client 0 connected
        0;255;3;0;9;read: 2-2-0 s=255,c=3,t=15,pt=0,l=2,sg=0:
        0;255;3;0;9;send: 0-0-2-2 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
        0;255;3;0;9;read: 2-2-0 s=255,c=0,t=18,pt=0,l=10,sg=0:2.0.0-beta
        0;255;3;0;9;read: 2-2-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
        0;255;3;0;9;read: 2-2-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
        0;255;3;0;9;read: 2-2-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
        0;255;3;0;9;read: 2-2-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
        0;255;3;0;9;read: 4-4-0 s=255,c=2,t=0,pt=1,l=1,sg=0:75
        0;255;3;0;9;read: 4-4-0 s=1,c=3,t=8,pt=7,l=5,sg=0:23.5
        0;255;3;0;9;read: 4-4-0 s=2,c=1,t=1,pt=2,l=2,sg=0:40
        

        No crashes or nothing. It even picked up another sensebender module reporting temperature.

        The only difference I can see is that you use putty to connect.

        martinhjelmareM Offline
        martinhjelmareM Offline
        martinhjelmare
        Plugin Developer
        wrote on last edited by martinhjelmare
        #7

        @hek

        The second and third lines from the end of the last log don't make sense to me. Sensor 255 requests temperature, payload 75? Sensor 1 internal message parent response 23.5?

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #8

          @martinhjelmare said:

          The second and third lines from the end of the last log don't make sense to me. Sensor 255 requests temperature, payload 75? Sensor 1 internal message parent response 23.5?

          Yes, strange. I suspect it is some trace of my "production" serial gateway (on the same freq) that is doing hardware acks while the esp node is listening to all of this (and also acks the same message). Hmm.. I should probably have turned the serial gw off before the test to get a cleaner log.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kr0815
            wrote on last edited by
            #9

            Hello Hek,

            thanks a lot for all the effort trying to help me

            Thats what the relay node gives me when plugging in power:

            Starting sensor (RNNNA-, 2.0.0-beta)
            Radio init successful.
            send: 100-100-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
            send: 100-100-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:2.0.0-beta
            send: 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
            read: 0-0-100 s=255,c=3,t=6,pt=0,l=1,sg=0:M
            send: 100-100-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
            send: 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
            send: 100-100-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
            Init complete, id=100, parent=0, distance=1
            

            Thats what the Gateway logs, after that it´s unreachable

            0;255;3;0;14;Gateway startup complete.
            100;255;0;0;17;2.0.0-beta
            100;255;3;0;6;0
            

            That´s the serial output of the gateway, 111 is another node:

            0;255;3;0;9;Radio init successful.
            ....scandone
            state: 0 -> 2 (b0)
            .state: 2 -> 3 (0)
            state: 3 -> 5 (10)
            add 0
            aid 7
            pm open phy_2,type:2 0 0
            cnt 
            
            connected with Power-LAN, channel 6
            dhcp client start...
            chg_B:-60
            ...ip:192.168.178.90,mask:255.255.255.0,gw:192.168.178.1
            .IP: 192.168.178.90
            0;255;3;0;9;Init complete, id=0, parent=0, distance=0
            0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
            0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
            0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
            0;255;3;0;9;read: 100-100-0 s=255,c=3,t=15,pt=0,l=2,sg=0:
            0;255;3;0;9;send: 0-0-100-100 s=255,c=3,t=15,pt=0,l=2,sg=0,st=fail:
            0;255;3;0;9;read: 100-100-0 s=255,c=0,t=17,pt=0,l=10,sg=0:2.0.0-beta
            0;255;3;0;9;read: 100-100-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
            0;255;3;0;9;read and forward: 0-0-100 s=255,c=3,t=6,pt=0,l=1,sg=0
            

            strange you don´t have this "read and forward" message ?

            1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by hek
              #10

              Looks like the second fast consecutive send kills the gateway. What measures have you taken to ensure ESP/radio powering?

              What type of NRF radio are you using?

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kr0815
                wrote on last edited by kr0815
                #11

                I tried many things regarding power supply, 47uF and 100nF both on the ESP and NRF, even feeded it with a good laboratory power supply (max 3A).
                I can´t imagine it´s a power problem, but could try tonight to even feed them with different power sources ?

                But i found a similar thread / same problem:
                http://forum.mysensors.org/topic/3012/packet-freezes-wifi-gateway-esp8266

                But i don´t use any bootloader

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kr0815
                  wrote on last edited by
                  #12

                  So just to be totally sure and to help me and hopefully others, i did the following:

                  I feeded ESP and NRF from different power supplys-result is still the same, ESP hangs, no response

                  The Power supply of the ESP is the same as i use for many ESP-Easy-Projects, i even flashed ESP-Easy on these 2 boards i try to get the MySensors-Gateway running, no problems

                  You asked which nRF i use - they are from china :-) different sellers, different looking, some with external antenna, all the same results

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #13

                    I've tried to stress test again here but I still cannot reproduce the hangs.

                    Are you using this gateway sketch:
                    https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/GatewayW5100

                    And this Relay sketch:
                    https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/RelayActuator

                    Unmodified (except for WLAN SSID)?

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kr0815
                      wrote on last edited by kr0815
                      #14

                      The second one yes, but the first one, i´m not using a Ethernet Gateway, but a Wifi Gateway with the ESP8266

                      that´s the one i use: https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/GatewayESP8266
                      nothing modified, even still with DHCP

                      I also have a Ethernet Gateway, which is running since months, the problems started with the Wifi / ESP Gateway

                      Could you maybe have a look at the link above ? In this thread, Yveaux asked you for some help, maybe tha´t the point the problem comes from ?

                      1 Reply Last reply
                      0
                      • hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #15

                        Yes, I meant GatewayESP8266 ;)

                        I don't get the "read and forward" print at all. Even when sending out a command to the node (from telnet/nc).

                        I guess you've updated library to the latest and ESP as well in Board Manager?

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kr0815
                          wrote on last edited by kr0815
                          #16

                          Yes, i erased and downloaded everything new 2 days ago

                          Did you see the other forum post ?

                          Really strange problem, i´d say i have a fake chip or something, but as it´s working with ESPEasy, i can´t imagine...

                          In Board manager, i´m using 2.0, should i also go to the developer version ?

                          1 Reply Last reply
                          0
                          • hekH Offline
                            hekH Offline
                            hek
                            Admin
                            wrote on last edited by
                            #17

                            Yes, really strange. Just wish I could reproduce. Make things much easier to debug!

                            I'm using 2.1.0-rc2 of the esp.

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              kr0815
                              wrote on last edited by
                              #18

                              Could maybe someone upload the compiled binary ? Just to check all possible faults ?
                              The needed settings are:

                              • With DHCP
                              • SSID Power-LAN
                              • key kr08151020
                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                drock1985
                                wrote on last edited by
                                #19

                                Hi @hek

                                Thank you again for all the work you and the team do for the MySensors community - maybe we can help back? I read your post, and understand the family and full time job - it's two careers. Maybe if there was a community Wiki that we all could help maintain - this way when things change they are instantly updated?

                                Just throwing it out there.

                                My Projects
                                2 Door Chime Sensor
                                Washing Machine Monitor

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  kr0815
                                  wrote on last edited by kr0815
                                  #20

                                  Hello Hek,

                                  i just saw in the german FHEM Forum, somebody has exactly the same Problems as me - but when switching back to the old / regular version, it works as expected, except the other problem with the long values.
                                  SO it musst be a software thing, nothing hardware related

                                  But as it is really strange you don´t get this problen, did any body else see it ?

                                  1 Reply Last reply
                                  0
                                  • hekH Offline
                                    hekH Offline
                                    hek
                                    Admin
                                    wrote on last edited by
                                    #21

                                    If you can reproduce this, It would be helpful if you could start adding debug prints in the library code to locate where it hangs to narrow down things.

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      kr0815
                                      wrote on last edited by
                                      #22

                                      Hello Hek,

                                      thank you so much to try to help me - i found the problem now and i guess it´s the same problem many others have here:
                                      On almost all ESP12 GPIO 4 and 5 are labeled wrong
                                      I didn´t use a NodeMCU, but one of the other available boards

                                      As the CE pin is then connected to the wrong GPIO, it seems to work, Radio init ok, but as soon as the gateway sends something, it crashes

                                      Here are some interesting posts about that:
                                      https://github.com/esp8266/Arduino/issues/437

                                      Maybe you should ad this notice to the build-section for the wifi gateway ?

                                      Best regards

                                      Klaus

                                      1 Reply Last reply
                                      1
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      16

                                      Online

                                      11.7k

                                      Users

                                      11.2k

                                      Topics

                                      113.0k

                                      Posts


                                      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • MySensors
                                      • OpenHardware.io
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular