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. Troubleshooting
  3. Radio FAIL after ~3 weeks [SOLVED]

Radio FAIL after ~3 weeks [SOLVED]

Scheduled Pinned Locked Moved Troubleshooting
61 Posts 7 Posters 17.5k 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.
  • T tboha

    @Reza I think we are getting close to solution.

    but after start or reset , some time relay choose a node (10 m far) for parent, while gateway is near that ! why ?

    This seems to be the crucial question.
    I never dived into the core functions how MySensors decides about choosing parent.
    Maybe it depends upon speed of answer?

    a little excerpt from an earlier log (which i didn´t read close enough, I told you).

    16 TSM:FPAR
    52 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2059 !TSM:FPAR:NO REPLY
    2061 TSM:FPAR
    2097 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2165 TSF:MSG:READ,2-2-4,s=255,c=3,t=8,pt=1,l=1,sg=0:1
    2170 TSF:MSG:FPAR OK,ID=2,D=2
    2340 TSF:MSG:READ,3-3-4,s=255,c=3,t=8,pt=1,l=1,sg=0:3
    4105 TSM:FPAR:OK
    4106 TSM:ID
    

    at 2097 Node 4 broadcasts for parent and gets accepted for parenting from Node 2.
    at 2340 Node 3 offers parenting too - upon which request?

    and why doesn`t GW offer parenting ?? GW shows up at 8240 with response to PING, so it is alive and connection was ok.

    at least at the moment - unexpected behavior.

    So reading logs give us some hints.
    Could you provide a little more from the simultaneous logs? And don´t stick to the NACK logs - the other messages are interesting as well.

    tekkaT Offline
    tekkaT Offline
    tekka
    Admin
    wrote on last edited by
    #47

    @tboha
    Thanks for your time and effort, you're doing an excellent analysis. Please find below some answers to your questions:

    at 2097 Node 4 broadcasts for parent and gets accepted for parenting from Node 2.
    at 2340 Node 3 offers parenting too - upon which request?

    and why doesn`t GW offer parenting ?? GW shows up at 8240 with response to PING, so it is alive and connection was ok.

    The find parent step is initiated by a local I_FIND_PARENT_REQUEST broadcast, i.e. all repeaters/GW will reply with I_FIND_PARENT_RESPONSE if their uplink connections are operational (this prevents circular referencing). Node 3 (@2340) is replying to the same request, but ignored due to a greater distance to the GW (D=3+1=4 vs D=1+1=2 from node 4). The GW does not offer parenting, because it's either too close (radio interference) or too far from the requesting node. After a timeout (default 2000ms) the node uses the closest repeater/GW that replied to the request unless a static/preferred parent is defined.

    T 1 Reply Last reply
    1
    • T tboha

      @Reza I think we are getting close to solution.

      but after start or reset , some time relay choose a node (10 m far) for parent, while gateway is near that ! why ?

      This seems to be the crucial question.
      I never dived into the core functions how MySensors decides about choosing parent.
      Maybe it depends upon speed of answer?

      a little excerpt from an earlier log (which i didn´t read close enough, I told you).

      16 TSM:FPAR
      52 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2059 !TSM:FPAR:NO REPLY
      2061 TSM:FPAR
      2097 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2165 TSF:MSG:READ,2-2-4,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      2170 TSF:MSG:FPAR OK,ID=2,D=2
      2340 TSF:MSG:READ,3-3-4,s=255,c=3,t=8,pt=1,l=1,sg=0:3
      4105 TSM:FPAR:OK
      4106 TSM:ID
      

      at 2097 Node 4 broadcasts for parent and gets accepted for parenting from Node 2.
      at 2340 Node 3 offers parenting too - upon which request?

      and why doesn`t GW offer parenting ?? GW shows up at 8240 with response to PING, so it is alive and connection was ok.

      at least at the moment - unexpected behavior.

      So reading logs give us some hints.
      Could you provide a little more from the simultaneous logs? And don´t stick to the NACK logs - the other messages are interesting as well.

      R Offline
      R Offline
      Reza
      wrote on last edited by
      #48

      @tboha
      my friend . i am so sorry , i am weak in english and i can not know what am i do and you told to me what am i do!!
      very very thank you for time and tried for me and my problem. i can not get your time more i am sorry . i am very thank you for tried for me but i think , i am failure.
      this is very complicate for me because i am beginner.
      problems is many. this serial monitor is some problem. every time in serial monitor there is new problem and new error.
      i am Ashamed for your time and thank you . i can not understand your guidance.

      1 Reply Last reply
      0
      • tekkaT tekka

        @tboha
        Thanks for your time and effort, you're doing an excellent analysis. Please find below some answers to your questions:

        at 2097 Node 4 broadcasts for parent and gets accepted for parenting from Node 2.
        at 2340 Node 3 offers parenting too - upon which request?

        and why doesn`t GW offer parenting ?? GW shows up at 8240 with response to PING, so it is alive and connection was ok.

        The find parent step is initiated by a local I_FIND_PARENT_REQUEST broadcast, i.e. all repeaters/GW will reply with I_FIND_PARENT_RESPONSE if their uplink connections are operational (this prevents circular referencing). Node 3 (@2340) is replying to the same request, but ignored due to a greater distance to the GW (D=3+1=4 vs D=1+1=2 from node 4). The GW does not offer parenting, because it's either too close (radio interference) or too far from the requesting node. After a timeout (default 2000ms) the node uses the closest repeater/GW that replied to the request unless a static/preferred parent is defined.

        T Offline
        T Offline
        tboha
        wrote on last edited by
        #49

        @tekka This is very interesting. I think i will review my own system - just for curiosity. Thank you for this explanation.

        @Reza: don´t get desperate. I think you are not a beginner - but if you are - your learning curve is fairly steep.
        As mentioned before, sometimes it is better to step backwards and look from the distance.

        If you aren´t too annoyed, I would offer to guide you to a working two-arduino system. (and I am sure @tekka will give advice if necessary) From there you will probably manage it on your own.

        Started correctly MySensors will supply you with a lot of fun -- but today it is not funny for you.

        So put away this stuff for today, go fishing and have a cold one.

        Tomorrow (or Wednesday, because I don´t know my schedule for tomorrow now) we will build up things in an ordered way. (and please don´t scavenge your current gateway, I think it is the source of all evil and I am too curious about the reason).

        footnote: if you are worried about your English (I am not) - give google translate a try - if available for your language

        R 1 Reply Last reply
        3
        • T tboha

          @tekka This is very interesting. I think i will review my own system - just for curiosity. Thank you for this explanation.

          @Reza: don´t get desperate. I think you are not a beginner - but if you are - your learning curve is fairly steep.
          As mentioned before, sometimes it is better to step backwards and look from the distance.

          If you aren´t too annoyed, I would offer to guide you to a working two-arduino system. (and I am sure @tekka will give advice if necessary) From there you will probably manage it on your own.

          Started correctly MySensors will supply you with a lot of fun -- but today it is not funny for you.

          So put away this stuff for today, go fishing and have a cold one.

          Tomorrow (or Wednesday, because I don´t know my schedule for tomorrow now) we will build up things in an ordered way. (and please don´t scavenge your current gateway, I think it is the source of all evil and I am too curious about the reason).

          footnote: if you are worried about your English (I am not) - give google translate a try - if available for your language

          R Offline
          R Offline
          Reza
          wrote on last edited by
          #50

          @tboha
          thank you . very thank you

          T 1 Reply Last reply
          0
          • R Reza

            @tboha
            thank you . very thank you

            T Offline
            T Offline
            tboha
            wrote on last edited by
            #51

            @Reza

            So let us start from scratch.

            Before i want to know

            • what type of computer are you using (laptop?)
            • Operating system? (Windows?, which version)
            • are you familiar with any kind of terminal? (Putty, Kermit?)
            • does your OrangePi have wifi?
            R 1 Reply Last reply
            0
            • T tboha

              @Reza

              So let us start from scratch.

              Before i want to know

              • what type of computer are you using (laptop?)
              • Operating system? (Windows?, which version)
              • are you familiar with any kind of terminal? (Putty, Kermit?)
              • does your OrangePi have wifi?
              R Offline
              R Offline
              Reza
              wrote on last edited by
              #52

              @tboha
              i use a loptop with win 7 . i use putty for connect to orangepi. no orange pi is connect with LAN

              T 1 Reply Last reply
              0
              • R Reza

                @tboha
                i use a loptop with win 7 . i use putty for connect to orangepi. no orange pi is connect with LAN

                T Offline
                T Offline
                tboha
                wrote on last edited by
                #53

                Hopefully your Nodes 2, 3 and 4 are ok (they communicated correctly according to your log).
                So take two of them.
                Make one a new serial GW and the other a "MockMySensors" Node.

                Despite my old Message - please change RF-Channels to another Channel (i don´t know is 72 legal?) for both Arduinos,

                Please connect both to your Windows 7 machine with some longer USB cables so you can space them a little apart.

                I built meanwhile the same complex - one serial GW and one Mock-Node

                R 1 Reply Last reply
                0
                • T tboha

                  Hopefully your Nodes 2, 3 and 4 are ok (they communicated correctly according to your log).
                  So take two of them.
                  Make one a new serial GW and the other a "MockMySensors" Node.

                  Despite my old Message - please change RF-Channels to another Channel (i don´t know is 72 legal?) for both Arduinos,

                  Please connect both to your Windows 7 machine with some longer USB cables so you can space them a little apart.

                  I built meanwhile the same complex - one serial GW and one Mock-Node

                  R Offline
                  R Offline
                  Reza
                  wrote on last edited by
                  #54

                  @tboha
                  i dont know what is mock my sensors ! so you told me build a new gateway with channel for example 1 ? ( my gateway is channel 0 now) and build a node(relay with channel 1)? gateway connect to my loptop with usb cable ?

                  T 2 Replies Last reply
                  0
                  • R Reza

                    @tboha
                    i dont know what is mock my sensors ! so you told me build a new gateway with channel for example 1 ? ( my gateway is channel 0 now) and build a node(relay with channel 1)? gateway connect to my loptop with usb cable ?

                    T Offline
                    T Offline
                    tboha
                    wrote on last edited by
                    #55

                    @Reza "MockMySensors" is a Sketch from Mysensors Examples - it doesn´t need any hardware and simulates input for your GW and controller (e.g. giving random numbers as temperature or as humidity - you can chose within the sketch). So you get some Network traffic to check your components without any effort.

                    Yes change Channel to a private one - far away from channel 0. Maybe 72 is ok - I will look for it.

                    R 1 Reply Last reply
                    0
                    • R Reza

                      @tboha
                      i dont know what is mock my sensors ! so you told me build a new gateway with channel for example 1 ? ( my gateway is channel 0 now) and build a node(relay with channel 1)? gateway connect to my loptop with usb cable ?

                      T Offline
                      T Offline
                      tboha
                      wrote on last edited by
                      #56

                      @Reza
                      Sorry for missing part two:
                      Yes, connect GW with USB cable , and Node too. so you can monitor GW with arduino IDE and Node with putty -- or both with putty. Just as you like. For monitoring basic functions we don´t need a controller now.

                      1 Reply Last reply
                      0
                      • T tboha

                        @Reza "MockMySensors" is a Sketch from Mysensors Examples - it doesn´t need any hardware and simulates input for your GW and controller (e.g. giving random numbers as temperature or as humidity - you can chose within the sketch). So you get some Network traffic to check your components without any effort.

                        Yes change Channel to a private one - far away from channel 0. Maybe 72 is ok - I will look for it.

                        R Offline
                        R Offline
                        Reza
                        wrote on last edited by
                        #57

                        @tboha
                        my dear friend i suggest continue about this my problem in personal chat or a new topic from me! because other friend may be sad about this long chat.thank you

                        T 1 Reply Last reply
                        0
                        • R Reza

                          @tboha
                          my dear friend i suggest continue about this my problem in personal chat or a new topic from me! because other friend may be sad about this long chat.thank you

                          T Offline
                          T Offline
                          tboha
                          wrote on last edited by
                          #58

                          @Reza 0_1483477965478_reza3.PNG

                          Please look at the Check boxes on the right side and click accordingly.

                          R 2 Replies Last reply
                          0
                          • T tboha

                            @Reza 0_1483477965478_reza3.PNG

                            Please look at the Check boxes on the right side and click accordingly.

                            R Offline
                            R Offline
                            Reza
                            wrote on last edited by
                            #59

                            @tboha 0_1483478514528_Untitleddddd.jpg

                            my friend node is near gateway and this is ok. but after some test see. there is a error NACK. but if i more distance error of NACK will be more...
                            0_1483478625603_Untitlekkkkd.jpg

                            1 Reply Last reply
                            0
                            • T tboha

                              @Reza 0_1483477965478_reza3.PNG

                              Please look at the Check boxes on the right side and click accordingly.

                              R Offline
                              R Offline
                              Reza
                              wrote on last edited by
                              #60

                              @tboha 0_1483479526159_1.jpg

                              T 1 Reply Last reply
                              0
                              • R Reza

                                @tboha 0_1483479526159_1.jpg

                                T Offline
                                T Offline
                                tboha
                                wrote on last edited by
                                #61

                                @Reza:
                                I tried to reproduce the errors shown by your log.
                                Part of the errors could be reproduced.
                                So if you are leaving range of stable connections, node will try to get an new parent (within range). So broadcasting for new parent is "normal". As long as there is no valid connection node will reject sending messages because "Transport Not Ready". So this is "normal", too.

                                Leaving range resulted in one or two NACK, then connection died quietly. I never got this amount of NACK you got.

                                I could not reproduce !TSF:MSG:LEN:0!=8 or something similar. This means the message has been crippled (possibly).

                                Reviewing logs and testing on my configuration revealed no clue to defective Chips (in regard to NRF24L01). Chips could be fake though, but at least software functions seem to be ok.

                                Fake NRF modules are reported to have very varying (worse) connection distances, sometimes down to a few (possibly only one) meter(s). Maybe -- may be not.

                                There are two major differences between our setups. I am currently not working with ACKs, I will test this tomorrow.

                                Second - I got no actual relays connected (only LEDs). You reported transmission break down simultaneously to pressing switches at higher rate. Are you supplying DC for relays from Arduino or from separate DC-supply? Have you made any arrangement preventing inductive spikes (ferrite rings, self-induction recuperation diode etc) ?
                                If you simply unhook your relays and try again - you get better results? (since your non-inductive sensors work well).

                                If this will turnout true - you may give Solid-State-Relais a try.

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


                                20

                                Online

                                11.7k

                                Users

                                11.2k

                                Topics

                                113.1k

                                Posts


                                Copyright 2025 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