Nb of possible nodes in a mysensors networks with domoticz



  • Hello, I am a beginner in domotic, and I have a very basic question : in a mysensors network controlled by domoticz, is it possible to use several nodes with one gateway ? I use presently -working like a charm- a network with one Uno node, with nrf24L01, with 6 children, to monitor the water level in a well and several pumps start/stop. I would like to add a 2nd node (another Uno with nrf24) in another place, reporting to the same gateway and domoticz controller, with one child sensor, but I do not manage to do it. The 2nd Uno does not appear in the list of materials / devices of mysensors box in Domoticz. Is there a special procedure I do not know to get this new node recognized in Domoticz ? What could I be missing ?
    My controller and my present gateway are hosted on a raspberrypi 3.
    Thanks very much in advance.



  • You should be able to add up to 254 nodes on one gateway.

    You might be able to get some info from the Domoticz log. In Domoticz, go to Setup->Log.
    If you reset your new node, you should see messages showing the presentation info and maybe the first values.
    If you don't see that, double check your hardware.
    If you do see it, it should be in the Setup->Devices list.



  • Thanks for your answer.
    I do not see anything new in the domoticz log when I reset the Uno. Just in case, I have already changed the NRF24L01+PA&LA and added a 33uF capacity between its power lines : no change. The first node is still working perfectly, so that I assume that the reception part on the gateway and controller is OK.
    I go on investigating.....



  • If you haven's already, add #define MY_DEBUG to your sketch. Then, look at the serial output from the node.
    If you see sancheck fail, then something is probably wrong with the wiring.
    You can also paste the serial output into the decoder here: https://www.mysensors.org/build/parser
    That should give you more readable info about what is gong on.



  • @nagelc I have 'define my_debug' in the sketch. I get this (sample) in the log : Do you have any idea ?
    ....
    16 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=16,REL=255,VER=2.3.2
    26 TSM:INIT
    28 TSF:WUR:MS=0
    34 TSM:INIT:TSP OK
    36 TSM:FPAR
    38 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2048 !TSM:FPAR:NO REPLY
    2050 TSM:FPAR
    2052 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4060 !TSM:FPAR:NO REPLY
    4062 TSM:FPAR
    4064 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6072 !TSM:FPAR:NO REPLY
    6074 TSM:FPAR
    6076 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8084 !TSM:FPAR:FAIL
    8085 TSM:FAIL:CNT=1
    8087 TSM:FAIL:DIS
    8089 TSF:TDI:TSL
    18091 TSM:FAIL:RE-INIT
    18093 TSM:INIT
    ....
    And parser gives me (sample) :
    34 TSM:INIT:TSP OK Transition to Init state:TSP OK
    36 TSM:FPAR Transition to Find Parent state
    38 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: Sent Message without radio ACK
    Sender: 255
    Last Node: 255
    Next Node: 255
    Destination: 255
    Sensor Id: 255
    Command: INTERNAL
    Message Type:I_FIND_PARENT_REQUEST
    Payload Type: P_STRING
    Payload Length: 0
    Signing: 0
    Failed uplink counter: 0
    Status: OK (OK=success, NACK=no radio ACK received)
    Payload:
    2048 !TSM:FPAR:NO REPLY No potential parents replied to find parent request



  • it seems your node never received any reply, are you setting you radio correctly? I'm not using nrf24l01s but you are probably using pa+lna version witn non pa+lna code...



  • @Sasquatch
    I often read that both types of nrf24l01 were software compatible. However a problem is possible.... Since my first node is working perfectly with a nrf24l01 PA+LA it should not be the origin of the problem. But again everything is possible.....
    Another idea is that because my first node has been working successfully for several years, the nrf library it is using is old and might have been updated, and an issue might come from a non compatibility between old and new version. But I am not ready to reload an updated sketch at risk of generating unexpected trouble on my working node !!!!
    I go on investigating....
    One thing I will try to change is the special chip feeding the nrf24l01 from the UNO power supply (and carrying comm signals). I will try to do it.



  • @GLAB Uno-Nrf comms are ok, your node woulnd't get to sending radio packest if radio chip comms weren't ok.
    Instead of reflashing working node and gateway try backdating MySensors library in arduino. You should see what version is used in working gateway somewhere in your contrloller, or by connecing yor serial gateway directly to your PC. in case of ethernet/wifi gateway you can alco use MySController from here:
    https://www.dropbox.com/scl/fi/prn9p2cnheyteopokszor/MYSController.zip?rlkey=up54kg4lt2blmff66t2jlgeo6&e=1

    if your working node/gateway in on 2.00 and your new node works with that, then you can update them all with minimal risk of borking it all.



  • @Sasquatch Your suggestions make sense, but I am afraid not being able to perform them without risking to damage what is already existing and working....
    I go on investigating : a question I have is : could there be a conflict between existing node numbers and the number domoticz is trying to attribute ? Is there a way in the sketch to force a node number ?
    Another question is [0_1737547784339_pesonHX711_mysensors.ino](Uploading 100%) did I miss something in my project of sketch ?

    Many thanks again for your suggestions.



  • I set all of my node numbers to prevent confusion. I have 4 locations with level sensors (full/notful and empty/notempty) They run identical code. The only way I know which is which is by the node number. Before I load the code into the Arduino, I set the the 0 location of the Arduino EEPROM with the node number. The code reads the EEPROM on boot.

    Many of my communication problems are the result of a loose wire. I spent a lot of time running the Getting Started code in the RF24 library by TMRh20 on two Arduinos to ensure that the Arduino is wired correctly and can send and receive data..

    I mucked-up my system many times and finally decided to create a second "development" system. I use two different channels for the Arduino/MySensors networks. I like the Arduino/MySensors because they are cost-effective; the downside is the radio.

    I started to migrate to ESP devices because of the built-in WiFI. The downside there is that my WiFi network can only handle about 20 WiFi devices. A Unify Lite AP solved this, but now the network costs twice as much as a MySensors network.

    Good luck on your project

    OSD


Log in to reply
 

Suggested Topics

81
Online

11.5k
Users

11.1k
Topics

112.7k
Posts