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

  • 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:

    25 TSM:INIT
    26 TSF:WUR:MS=0
    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

    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 🙂 !

  • Mod

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

  • @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?


  • Mod

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

  • @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!

Log in to reply

Suggested Topics

  • 3
  • 2
  • 15
  • 24
  • 3
  • 1