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. Relay Node: radio init failure

Relay Node: radio init failure

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 3 Posters 3.2k Views 3 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.
  • martrwM martrw

    I have two modules:

    1. Ethernet Gateway w/Clone Nano, W5100 and NRF24L01+
      Flashing this module with EthernetGateway.ino and opening serial debug I get this:

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.
    Finished
    0;0;3;0;2;0;0;3;0;2;1.5.4
    Finished
    0;0;3;0;2;Get Version0;0;3;0;2;1.5.4
    Finished
    0;0;3;0;18;PINGFinished
    0;0;3;0;18;PINGFinished

    Which I think means everything is working and the PING is a response to Domoticz request for setup.

    1. Relay Module w/Clone Mini Pro, NRF24L01+ and 5/3.3 voltage regulator
      Flashing the module with RelayActuator.ino and stating Serial monitor I get:

    radio init fail

    So, after two days of checking power, wiring, re-flowing solder, changing radios and researching issues, I decide to flash the Relay Module with EthernetGateway.ino, since I can't think of anything else to do. Rearranging radio wiring for the EthernetGateway(since it is different) and using the EXACT SAME HARDWARE, I flash it with EthernetGateway.ino and get this:

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0

    Which I think means the radio is working.

    I then reflash the EXACT SAME HARDWARE using the EthernetGateway radio wiring with the RelayActuator.ino and I get this:

    radio init fail

    Which I expected. All hardware was prototyped and verified to work with Domoticz before soldering onto PCB. Only change was to the Ethernet Gateway Nano which lasted about 3 seconds on the 12V power I had planned to run it with.

    Ideas?

    AWIA Offline
    AWIA Offline
    AWI
    Hero Member
    wrote on last edited by
    #2

    @martrw can you post a photo / schematic?

    1 Reply Last reply
    0
    • martrwM Offline
      martrwM Offline
      martrw
      wrote on last edited by
      #3
      This post is deleted!
      1 Reply Last reply
      0
      • martrwM Offline
        martrwM Offline
        martrw
        wrote on last edited by
        #4

        Please instruct on method for uploading images. Please be specific as I can find no instructions.

        1 Reply Last reply
        0
        • martrwM Offline
          martrwM Offline
          martrw
          wrote on last edited by
          #5

          I am working this problem from the prototype board since the relay components are now soldered in and mounted in a case. The same issue exists with each set of components... i.e. soldered in and prototype have the same serial debut outputs.

          This is the prototype. I have replaced the leads according to the color coding at https://www.mysensors.org/build/connect_radio for trace-ability. I confirmed that the serial debug responses are the same after the rewire. The cap on the radio power is 10uF, this is all I have. I have also tried 68uF with the same results. Recommendations for the size of this component vary by 4 orders of magnitude across MySensors forum. In my uneducated opinion, cap should not matter for initialization.

          ![0_1463758331864_prototype.jpg](Uploading 100%)

          Closeup of the Mini wired for the RelayActuator.ino.
          0_1463758430857_relay_config.jpg

          Closeup of the radio connections:
          ![0_1463758502884_radio.jpg](Uploading 100%)

          Serial Debug output of this configuration:radio init fail

          Mini rewired for EthernetGateway.ino
          0_1463758662575_gateway_config.jpg

          Enable soft_spi in myconfig.h and flash the Mini with EthernetGateway.ino, this is the Serial Debug output:
          0;0;3;0;9;gateway started, id=0, parent=0, distance=0

          Same hardware... same wires... same power supply... different software and wiring for software.

          1 Reply Last reply
          0
          • martrwM Offline
            martrwM Offline
            martrw
            wrote on last edited by martrw
            #6

            Radio wiring photo crapped out:

            ![0_1463759286823_radio.jpg](Uploading 100%)

            I get 405 Error Not Allowed each time I try to upload this image.

            Update:18:30hrs
            GettingStarted.ino from this site https://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo runs the radio just fine utilizing the arduino pin hookup TMRh20 RF24 Library. This is looking like a software issue or a pin out error.

            AWIA 1 Reply Last reply
            0
            • martrwM Offline
              martrwM Offline
              martrw
              wrote on last edited by
              #7

              Is there anyone still in here or should I just turn out the lights when I leave?

              1 Reply Last reply
              0
              • martrwM martrw

                Radio wiring photo crapped out:

                ![0_1463759286823_radio.jpg](Uploading 100%)

                I get 405 Error Not Allowed each time I try to upload this image.

                Update:18:30hrs
                GettingStarted.ino from this site https://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo runs the radio just fine utilizing the arduino pin hookup TMRh20 RF24 Library. This is looking like a software issue or a pin out error.

                AWIA Offline
                AWIA Offline
                AWI
                Hero Member
                wrote on last edited by
                #8

                @martrw still hard to tell from the pictures. If you wire the radio correct (and have a working radio) it should work.
                I always upload pictures by taking a screenshot and just copy paste (ctrl v) it on the posting.

                1 Reply Last reply
                0
                • NuubiN Offline
                  NuubiN Offline
                  Nuubi
                  wrote on last edited by
                  #9

                  You could try connecting all the ground pins of the Arduino together -- this helped me with one clone board.

                  1 Reply Last reply
                  0
                  • martrwM Offline
                    martrwM Offline
                    martrw
                    wrote on last edited by
                    #10

                    I have 10 radios. Two were prototyped to verify and then soldered into enclosures. Three days ago I could not sleep and decided to work on this issue for a bit. Going over the same steps I have gone over multiple times, suddenly, miraculously, the communications started to work. For 15 glorious minutes I clicked an icon on the computer and the relay operated. Then the clock struck midnight and they turned back into pumpkins! I am not making any of this up.

                    Of the remaining 8 radios and 4 or 5 arduinos I have used every software library I can find to try to figure this out. None are diagnostic. Each presumes that the radios, arduinos and stars align and they just work OoB. GettingStarted seems to be the most universally used for radio validation. Using this code and the wiring recommended for it, I can get none of the 8 radios to get past these lines of code:

                    unsigned long start_time = micros(); // Take the time, and send it. This will block until complete
                    if (!radio.write( &start_time, sizeof(unsigned long) )){
                    Serial.println(F("failed"));

                    This means to me that none of the radio's and/or none of the arduino's and/or none of the power configurations work.

                    Respectfully, if this is a wiring issue, then you can tie me up and paint me blue! I will be blue-fully happy to have finally been shown the truth.

                    AWIA 1 Reply Last reply
                    0
                    • martrwM martrw

                      I have 10 radios. Two were prototyped to verify and then soldered into enclosures. Three days ago I could not sleep and decided to work on this issue for a bit. Going over the same steps I have gone over multiple times, suddenly, miraculously, the communications started to work. For 15 glorious minutes I clicked an icon on the computer and the relay operated. Then the clock struck midnight and they turned back into pumpkins! I am not making any of this up.

                      Of the remaining 8 radios and 4 or 5 arduinos I have used every software library I can find to try to figure this out. None are diagnostic. Each presumes that the radios, arduinos and stars align and they just work OoB. GettingStarted seems to be the most universally used for radio validation. Using this code and the wiring recommended for it, I can get none of the 8 radios to get past these lines of code:

                      unsigned long start_time = micros(); // Take the time, and send it. This will block until complete
                      if (!radio.write( &start_time, sizeof(unsigned long) )){
                      Serial.println(F("failed"));

                      This means to me that none of the radio's and/or none of the arduino's and/or none of the power configurations work.

                      Respectfully, if this is a wiring issue, then you can tie me up and paint me blue! I will be blue-fully happy to have finally been shown the truth.

                      AWIA Offline
                      AWIA Offline
                      AWI
                      Hero Member
                      wrote on last edited by
                      #11

                      @martrw You sound pretty hopeless... and not even getting past the first step. Have you measured voltages etc. to make sure the radio gets its juice (and not more than 3.5V)? You can test your arduino with a "blink" sketch on all the relevant pins. If all correct I can't think of anything else that a very bad batch of radio's.

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


                      17

                      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