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. Soil Moisture Sensor / analog value

Soil Moisture Sensor / analog value

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 3 Posters 1.4k 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.
  • k5austriaK Offline
    k5austriaK Offline
    k5austria
    wrote on last edited by
    #9

    That's from sensor:

    16 MCO:BGN:INIT REPEATER,CP=RNNRA---,REL=255,VER=2.3.1
    26 MCO:BGN:BFR
    28 TSM:INIT
    29 TSF:WUR:MS=10000
    35 !TSM:INIT:TSP FAIL
    37 TSM:FAIL:CNT=1
    39 TSM:FAIL:DIS
    40 TSF:TDI:TSL
    10030 MCO:BGN:STP
    Hello world
    Loaded: 35
    Warming up the sensors (15 seconds).
    10042 TSM:FAIL:RE-INIT
    10044 TSM:INIT
    10050 !TSM:INIT:TSP FAIL
    10052 TSM:FAIL:CNT=2
    10054 TSM:FAIL:DIS
    10056 TSF:TDI:TSL
    20059 TSM:FAIL:RE-INIT
    20061 TSM:INIT
    20067 !TSM:INIT:TSP FAIL
    20069 TSM:FAIL:CNT=3
    20071 TSM:FAIL:DIS
    20073 TSF:TDI:TSL
    
    1 Reply Last reply
    0
    • k5austriaK Offline
      k5austriaK Offline
      k5austria
      wrote on last edited by
      #10

      This is from Gateway:

      0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1
      0;255;3;0;9;5 TSM:INIT
      0;255;3;0;9;7 TSF:WUR:MS=0
      0;255;3;0;9;14 TSM:INIT:TSP OK
      0;255;3;0;9;17 TSM:INIT:GW MODE
      0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0
      0;255;3;0;9;24 MCO:REG:NOT NEEDED
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.3.1
      0;255;3;0;9;28 MCO:BGN:STP
      0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1
      0;255;3;0;9;37 TSM:READY:NWD REQ
      0;255;3;0;9;76 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
      
      1 Reply Last reply
      0
      • k5austriaK Offline
        k5austriaK Offline
        k5austria
        wrote on last edited by
        #11

        Gateway is ok. Other sensors are connected.

        mfalkviddM 1 Reply Last reply
        0
        • k5austriaK k5austria

          Gateway is ok. Other sensors are connected.

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #12

          @k5austria !TSM:INIT:TSP FAIL means that the node is unable to initialize the radio. Without radio initialization, the node cannot communicate.

          Triple-check the radio wiring. Replace the radio module if possible. If you don't find a problem, post pictures of the wiring here and we'll help you.

          If you haven't already, check out https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ for info on how to troubleshoot efficiently.

          k5austriaK 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @k5austria !TSM:INIT:TSP FAIL means that the node is unable to initialize the radio. Without radio initialization, the node cannot communicate.

            Triple-check the radio wiring. Replace the radio module if possible. If you don't find a problem, post pictures of the wiring here and we'll help you.

            If you haven't already, check out https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ for info on how to troubleshoot efficiently.

            k5austriaK Offline
            k5austriaK Offline
            k5austria
            wrote on last edited by
            #13

            @mfalkvidd

            Thank you for your answer !!!
            You're right. Radio module was defective (every 3 pcs.). I got new ones today and now everything works fine. I still have some questions about code.

            • Why do i get response from sensor every 8 minutes ?

            • May I operate my cheap Aliexpress radio module (nRF24L01+PA+LNA) with MY_RF24_PA_LEVEL RF24_PA_MAX ? Power supply is enough.

            k5austriaK mfalkviddM 2 Replies Last reply
            1
            • k5austriaK k5austria

              @mfalkvidd

              Thank you for your answer !!!
              You're right. Radio module was defective (every 3 pcs.). I got new ones today and now everything works fine. I still have some questions about code.

              • Why do i get response from sensor every 8 minutes ?

              • May I operate my cheap Aliexpress radio module (nRF24L01+PA+LNA) with MY_RF24_PA_LEVEL RF24_PA_MAX ? Power supply is enough.

              k5austriaK Offline
              k5austriaK Offline
              k5austria
              wrote on last edited by
              #14

              0_1565944929272_541.jpg

              1 Reply Last reply
              0
              • k5austriaK k5austria

                @mfalkvidd

                Thank you for your answer !!!
                You're right. Radio module was defective (every 3 pcs.). I got new ones today and now everything works fine. I still have some questions about code.

                • Why do i get response from sensor every 8 minutes ?

                • May I operate my cheap Aliexpress radio module (nRF24L01+PA+LNA) with MY_RF24_PA_LEVEL RF24_PA_MAX ? Power supply is enough.

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #15

                Nice work @k5austria

                The code is a bit too complex for me to follow, so I can't guess why something happens every 8 minutes. Sorry.

                1 Reply Last reply
                0
                • alowhumA Offline
                  alowhumA Offline
                  alowhum
                  Plugin Developer
                  wrote on last edited by
                  #16

                  What have you set as:

                  #define SLEEPTIME 100                               // In seconds, how often should a measurement be made and sent to the server? The maximum delay between measurements is once every 254 seconds, but if you change "byte" to "int" further down in the code you could create more time between each loop.
                  #define LOOPDURATION 5000                           // The main loop runs every x milliseconds. This main loop starts the modem, and from then on periodically requests the password.
                  
                  

                  5000 * 1000 = 5.000.000 milliseconds between measurements = 8.33 minutes

                  Change the loopduration (how long a tick of the internal clock takes) to 1000, and then the SLEEPTIME variable is in normal seconds again.

                  1 Reply Last reply
                  1
                  • alowhumA Offline
                    alowhumA Offline
                    alowhum
                    Plugin Developer
                    wrote on last edited by
                    #17

                    @k5austria said in Soil Moisture Sensor / analog value:

                    May I operate my cheap Aliexpress radio module (nRF24L01+PA+LNA) with MY_RF24_PA_LEVEL RF24_PA_MAX ? Power supply is enough

                    In my experience this will fail.

                    1 Reply Last reply
                    1
                    • k5austriaK Offline
                      k5austriaK Offline
                      k5austria
                      wrote on last edited by
                      #18

                      Thanks guys ! Everything works fine .

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