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. [Newbie] Need help with !TSM:ID:FAIL

[Newbie] Need help with !TSM:ID:FAIL

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 1.8k 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.
  • N Offline
    N Offline
    nekopep
    wrote on last edited by
    #1

    Hello,
    I started experimenting my sensor, and I'm blocked to a specific point with some questions.

    My setup:
    Gateway: An NodeMcu with Nrf4 module with PA + 330uF cap on 3.3v and option RF24_PA_MIN set to avoid power issue.

    Sensor: An arduino nano + Nrf4 module with PA + HC-SR04 + 330uF cap on 3.3v + regulator board for Nrf4 and option RF24_PA_MIN set to avoid power issue.

    I'm using mysensors 2.2 and with RF24_PA_MIN I can now receive/send message to gateway.

    Here are the logs on the sensor:

    16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0
    25 TSM:INIT
    26 TSF:WUR:MS=0
    33 TSM:INIT:TSP OK
    35 TSM:FPAR
    37 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    227 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    232 TSF:MSG:FPAR OK,ID=0,D=1
    2046 TSM:FPAR:OK
    2048 TSM:ID
    2049 TSM:ID:REQ
    2052 TSF:MSG:SEND,255-255-0-0,s=1,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    4059 TSM:ID
    4060 TSM:ID:REQ
    4062 TSF:MSG:SEND,255-255-0-0,s=220,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    6070 TSM:ID
    6071 TSM:ID:REQ
    6073 TSF:MSG:SEND,255-255-0-0,s=183,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    8081 TSM:ID
    8082 TSM:ID:REQ
    8084 TSF:MSG:SEND,255-255-0-0,s=146,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    10092 !TSM:ID:FAIL
    10093 TSM:FAIL:CNT=1
    10095 TSM:FAIL:DIS
    10097 TSF:TDI:TSL
    

    And the gateway part:

    1140857 TSF:MSG:BC
    1140877 TSF:MSG:FPAR REQ,ID=255
    1140911 TSF:PNG:SEND,TO=0
    1140938 TSF:CKU:OK
    1140958 TSF:MSG:GWL OK
    1141264 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    1142805 TSF:MSG:READ,255-255-0,s=217,c=3,t=3,pt=0,l=0,sg=0:
    1144816 TSF:MSG:READ,255-255-0,s=181,c=3,t=3,pt=0,l=0,sg=0:
    1146826 TSF:MSG:READ,255-255-0,s=144,c=3,t=3,pt=0,l=0,sg=0:
    1148837 TSF:MSG:READ,255-255-0,s=107,c=3,t=3,pt=0,l=0,sg=0:
    1160862 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    

    So now I'm blocked with some ID issue.
    I don't know how to decode logs.
    I tried https://www.mysensors.org/apidocs/group__MyTransportgrp.html
    and the Log parser without success.

    1/What line should I feed the Log Parser with? Do I have enabled too much log (time data on first parameter???)
    2/Can someone explain better how to analyze debug output?
    3/I suspect an issue with sensor ID registration,
    Do I need to register my sensor to the gateway? If yes, how should I do this. I don't want to install a button yet, is it possible to pre register my slave sensor?
    (or auto register option?)
    4/When does the sensor enter the main loop and display distance? Once my sensor protocol is all OK?
    5/Is there a more general doc on how the protocol work, I must admit I'm a bit lost trying to find the good doc :/
    6/I've seen in the forum some are defining:

    // Define Node ID
    #define MY_NODE_ID 10
    #define MY_PARENT_NODE_ID 0
    #define MY_PARENT_NODE_IS_STATIC
    

    On my sketch I got
    #define CHILD_ID 1

    Should I set MY_NODE_ID and MY_PARENT_ID?
    Are they usefull at all, how do they compare to CHILD_ID?

    Thanks for any directions :) !

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      You need to define the my node ID, child ID is only used to identify each sensor.

      N 1 Reply Last reply
      0
      • gohanG gohan

        You need to define the my node ID, child ID is only used to identify each sensor.

        N Offline
        N Offline
        nekopep
        wrote on last edited by
        #3

        @gohan , Thks works better now.
        Why someone would use CHILD_ID different than NODE_ID?
        I mean if NODE_ID is needed, for what CHILD_ID is used for?

        Thks!

        mfalkviddM 1 Reply Last reply
        0
        • N nekopep

          @gohan , Thks works better now.
          Why someone would use CHILD_ID different than NODE_ID?
          I mean if NODE_ID is needed, for what CHILD_ID is used for?

          Thks!

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

          @nekopep a sensor node can report multiple data. Example: temperature, humidity and barometric pressure. Child id is used to differentiate between the different data.

          N 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @nekopep a sensor node can report multiple data. Example: temperature, humidity and barometric pressure. Child id is used to differentiate between the different data.

            N Offline
            N Offline
            nekopep
            wrote on last edited by
            #5

            @mfalkvidd ha thanks, I've found one of your forum post where you discuss about a code you did, and I now better understand CHILD_ID.
            Everything working perfectly now, thanks a lot!

            1 Reply Last reply
            1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            15

            Online

            12.1k

            Users

            11.2k

            Topics

            113.4k

            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