Node does not get an ID: !TSM:ID:FAIL



  • Hello,
    I have a problem with my setup.
    My gateway is a Raspi 3 with NRF24L01+ and Raspbian.
    My node is an Arduino Uno R3, also with NRF24L01+. The NRF24 is connected with a 16v 100µF capacitor (some persons told me, that it should work for my project).
    Both are working with v2.1.1 of MySensors. I have checked the wires several times.
    I'm using version 1.8.1 of the Arduino IDE.
    So when I try to make it work with this tutorial: https://www.mysensors.org/build/humidity it seems to not get an ID from the gateway.
    Even when I add #define MY_NODE_ID 2 it doesn't change anything.

    Log from Arduino:
    where #define MY_NODE_ID 2 is set

    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSM:FPAR
    15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2022 !TSM:FPAR:NO REPLY
    2024 TSM:FPAR
    2026 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4034 !TSM:FPAR:NO REPLY
    4036 TSM:FPAR
    4038 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4244 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    4249 TSF:MSG:FPAR OK,ID=0,D=1
    6046 TSM:FPAR:OK
    6047 TSM:ID
    6048 TSM:ID:REQ
    6051 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    8058 TSM:ID
    8059 TSM:ID:REQ
    8061 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    10070 TSM:ID
    10071 TSM:ID:REQ
    10074 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    12081 TSM:ID
    12082 TSM:ID:REQ
    12085 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    14092 !TSM:ID:FAIL
    14093 TSM:FAIL:CNT=1
    14095 TSM:FAIL:PDT```
    

    where #define MY_NODE_ID 2 is NOT set

    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSM:FPAR
    15 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    990 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    995 TSF:MSG:FPAR OK,ID=0,D=1
    2022 TSM:FPAR:OK
    2023 TSM:ID
    2024 TSM:ID:REQ
    2027 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    4034 TSM:ID
    4035 TSM:ID:REQ
    4037 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    6045 TSM:ID
    6046 TSM:ID:REQ
    6048 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    8056 TSM:ID
    8057 TSM:ID:REQ
    8059 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    10068 !TSM:ID:FAIL
    10070 TSM:FAIL:CNT=1
    10072 TSM:FAIL:PDT
    20075 TSM:FAIL:RE-INIT
    20077 TSM:INIT
    20084 TSM:INIT:TSP OK
    20086 TSM:FPAR
    20088 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20668 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    20673 TSF:MSG:FPAR OK,ID=0,D=1
    22097 TSM:FPAR:OK
    22098 TSM:ID
    22100 TSM:ID:REQ
    22103 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    24111 TSM:ID
    24112 TSM:ID:REQ
    24115 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    26122 TSM:ID
    26123 TSM:ID:REQ
    26126 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    28133 TSM:ID
    28134 TSM:ID:REQ
    28137 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    30144 !TSM:ID:FAIL
    30145 TSM:FAIL:CNT=2
    30147 TSM:FAIL:PDT```
    

    Log from Raspi:

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: Listening for connections on 0.0.0.0:5003
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:BC
    mysgw: TSF:MSG:FPAR REQ,ID=255
    mysgw: TSF:CKU:OK,FCTRL
    mysgw: TSF:MSG:GWL OK
    mysgw: TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:BC
    mysgw: TSF:MSG:FPAR REQ,ID=255
    mysgw: TSF:PNG:SEND,TO=0
    mysgw: TSF:CKU:OK
    mysgw: TSF:MSG:GWL OK
    mysgw: TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    mysgw: TSF:MSG:BC
    mysgw: TSF:MSG:FPAR REQ,ID=255
    mysgw: TSF:PNG:SEND,TO=0
    mysgw: TSF:CKU:OK
    mysgw: TSF:MSG:GWL OK
    

    I'm searching the Internet since days about this problem, but I still not found any solution.

    I would really appreciate your help. If you need additional information regarding my problem, please let me know.
    Thanks a lot!



  • @ascanious First of all, please also add a log of the node when #define MY_NODE_ID 2 is set. The present log most likely is the one when node starts without id.

    Seems that the RF communication in general is ok, but there is no reaction from controller side. So my guess would be either inclusion mode for the gw is not turned on or there is something wrong with your controller settings (e.g. in FHEM something like "autocreate").



  • Thank you for your reply.

    I have added a log, when #define MY_NODE_ID 2 is set.

    Is there maybe a config file which I can also add?

    I want to use pimatic as controller, but I think it does not make sense, to use it without a working connection, right?



  • @ascanious Using a controller is (despite some rare exceptions) necessary condition to get these things to work! So you should start using one...


  • Mod

    I suggest you run the clear eeprom sketch on the node and try again. On the RPI, where are you getting power for the NRF24 radio? Do you have also a capacitor on that radio? Did you try setting power level to MIN ?



  • @gohan I already tried it, but it didn't work.

    Anyway, now it's working. I added an Arduino which acts now like the gateway. I don't have any idea why it was not working only with the Pi.

    Thanks to everyone who helped me.


  • Mod

    Probably the rpi couldn't supply enough power



  • @ascanious Had the same problem......replaced the radio on the node..... problem solved......



  • Hello, I also had the same issue, unfortunately I can't fix it.
    I using socket adapter and everything is usb powered. This configuration has been working well since september 2016.

    Last week I decided to update to version 2.1.1 because I need to create a new door sensor. Seen that upgrade I can’t get anything working anymore. I have been try ClearEepromConfig, without success. Verify many time my wiring (Yes many time!). I also force MY_NODE_ID and MY_PARENT_NODE_ID.

    So today I decide to get back to version 2.0.0 and still can’t connect. Luckyly I kept one sensor from being upgraded and this one worked. Look like all sensor that have been upgraded is likely of broken.

    I have been searching and I’m not the only one, mostly the issue is because of power issue. Log parser also say "Finding parent failed","Power-down transport" but why people get power issue after updating to 2.1.* ?
    If someone can tell what should I look for now, at least how to roll back to the 2.0.0.

    GW: Arduino uno W5100-NRF24-L01+PA+LNA
    NODE: Arduino nano-5v NRF24
    Log:

    720991 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    722998 !TSM:FPAR:NO REPLY
    723000 TSM:FPAR
    723003 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    725010 !TSM:FPAR:NO REPLY
    725012 TSM:FPAR
    725015 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    727022 !TSM:FPAR:NO REPLY
    727024 TSM:FPAR
    727027 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    729034 !TSM:FPAR:FAIL
    729036 TSM:FAIL:CNT=7
    729038 TSM:FAIL:PDT
    

  • Mod

    If you want to roll back to library version 2.0 just go to library manager and choose mysensors library and from drop down menu select the version you want. Are you sure you didn't make any customization (channel, encryption, etc)? Because if you upgrade library those get overwritten



  • @Fraid-DIRON Did you check wheter your GW is rebooting very often? Could be enough to downgrade the AVR board definition to Version <=1.6.11.



  • @gohan I did roll back but doesn't work. And by the way I can't downgrade to 2.0.0 from library manager. I'll post the error later but it's like the 2.0.0 does not exist, because I can downgrade to 2.1.0. Anyway I did it by downloading the package from mysensor download page.

    @rejoe2 You may got it! I was using version 1.6.15 but I can't find it anymore in library manager. So can't downgrade, I'll search more carefully tonight.



  • @Fraid-DIRON Just to clarify that point: The board definition is not changed via library manager but via board manager (Tools menu, as fas as I remember).
    Afaik, Versions starting with 1.6.18 should be ok also.


  • Mod

    @Fraid-DIRON what IDE version are you using?



  • @rejoe2 roll back to MySensor 2.0.0 and AVR to (1.6.15 then 1.6.10 then 1.6.11). Cleer eeprom of both GW and node each time. Also restart IDE each time. And still can't connect.

    But I get back to AVR 1.6.18 and it's working now! Only for node with MS 2.0.0. So everything is back to normal except that I can't upgrade to MS 2.1.1 😞

    @gohan No customization and I'm using version 1.6.9.
    FYI error was: CRC doesn't match. File is corrupted. java.lang.RuntimeException: java.lang.Exception: CRC doesn't match. File is corrupted. at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onInstallPressed$12(LibraryManagerUI.java:231) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.Exception: CRC doesn't match. File is corrupted. at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:77) at cc.arduino.contributions.libraries.LibraryInstaller.install(LibraryInstaller.java:97) at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onInstallPressed$12(LibraryManagerUI.java:227) ... 1 more


  • Mod

    Maybe it's time to upgrade it to 1.8.2? ☺



  • @gohan Just did it ! everything is up to date and work thank you :D.


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 1
  • 5
  • 6

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts