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. Find parent

Find parent

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 5 Posters 3.3k Views 4 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.
  • L Offline
    L Offline
    LastSamurai
    Hardware Contributor
    wrote on last edited by
    #1

    Hi,
    I am currently using domoticz + Raspberry pi + serial Gateway via Arduino uno as a controller and a small sensor node from this thread. I have a working rgbw node, so this can't really be the problem but with my sensor node I only get "find parent" in the serial output and it doesn't show up at the controller.
    Both are using the 1.5 Version of mysensors.
    The sensor node uses the bootloader and fuse settings from the 2AA Battery Sensor Thread.

    Any ideas?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qu3Uk
      wrote on last edited by
      #2

      I had this problem the other day.

      I noticed when I put my thumb on the radio the communication reached the gateway.

      I ended up extending the radio antenna with a piece of wire. It's documented I believe in the latest video. MySenors Troublshooting. I'd link but on mobile/a plane.

      Not entirely sure why this wasn't working but this fixed it for me. I assumed as it was sending a signal the radio wires/power was okay, I suspect it wasn't recieveing okay.

      1 Reply Last reply
      1
      • sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by sundberg84
        #3

        Hi!

        Find parent means the node is trying to find its way to the gateway - and if this repeats it cant.
        Its either a range issue or a power issue. You can start by checking the gateway serial log and see if there is any info.
        Also, have you added a capacitor on the radios? This is very important since the radio is sensitive to power spikes.

        It this doesnt work start with changing the power source and check your wirings / ground connection on the node.
        Also you can try to move the node closer to the gateway - if this works and you have some distance between node and gateway you should consider a repeater.

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LastSamurai
          Hardware Contributor
          wrote on last edited by
          #4

          Thanks for the advice but nothing seems to help :( It's running of of 2 AA batteries and there is a capacitor right beside the radio so power should be no problem. I even measured the values and tried an external usb power source.
          Whatever I do there is no reaction at all in the serial log of the gateway and the sensor only says "find parent". Only once though and without any other info. The distance is less than 10cm so that can't be a problem either.
          I also tried different radios: 2x find parent 1x cant init radio.

          The strange thing is that it worked some months ago (see my linked thread above) and the only thing that I changed (at least I think so) is the bootloader. The one I am now using is the one from the Slim 2AA node and that has been tested too. Do I have to change any other settings when changing the bootloader (done via arduino IDE so the fuses are changed too)?

          I will try to build another node to test tomorrow but if you guys have and other ideas how to fix this... feel free to tell me ;)

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by mfalkvidd
            #5

            I actually had a problem with only one "find parent" earlier today. Normally, when the node is unable to reach the gateway, it keeps repeating "find parent". In this case the node died after writing "find parent" once. I switched the radio and the problem went away. I haven't spent any time troubleshooting that radio so I don't know what is wrong with it but the new one works.

            Also, I've seen some forum users having trouble with too short distance. You could try moving the node 1-2m away from the gateway.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LastSamurai
              Hardware Contributor
              wrote on last edited by
              #6

              It seems like I have found the problem. As I said I am using the 1MHz bootloader/settings from the other thread. That seems to require slower baudrates. I already used 9600 for uploading but it seems like you also have to use it internally for the mysensors library. I changed the baudrate setting in the MyConfig.h to

              #define BAUD_RATE 9600
              

              and now its working. Can you somehow overwrite that in the sketch direclty (so that I don't have to change the library I am using for other sketches too)? Perhaps just include that define statement there?

              1 Reply Last reply
              0
              • mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by mfalkvidd
                #7

                Unfortunately not. MyConfig.h will always override whatever you set in the sketch.

                But if you change

                #define BAUD_RATE 115200
                

                to

                #ifndef BAUD_RATE
                #define BAUD_RATE 115200
                #endif
                

                in MyConfig.h you should be able to define it in your sketch before #include <MySensor.h>

                This change has already been done in the MySensors dev version so in the future you'll be able to override in your sketch without modifying the library.

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

                  @mfalkvidd said:

                  in MyConfig.h you should be able to define it in your sketch before #include <MySensor.h>

                  Overriding defines from sketch only work in the development branch.
                  It requires a source code inclusion "hack" that's not in place for 1.5.x.

                  1 Reply Last reply
                  0
                  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