




 
		
		
		
	Thank you for answering, and helping to solve. Having the radio module plugged, it worked.
How to define it as a dhcp client instead of setting a fixed ip address, having only the mac address defined?
Thx in advance!
@TRS-80 said in wait() with interrupt:
I can't help but make it complicated, I'm descended from Germans!


Aber das Traue ich dir.
@mfalkvidd Thx for the reply. It makes sense.
Hi all,
i found this link:
It seams to explain some of the problems i'm having.
Can anyone confirm this?
Thank you in advance.
These postal companies, having the monopoly for postal services became pimps, picking pockets for their good.
@mfalkvidd said in Unable to add node - more than 2:
which debugs are necessary?
MY_DEBUG or MY_DEBUG and MY_DEBUG_VERBOSE_RF24?
@mfalkvidd i really like the concept, but having troubles by trying more than 2 nodes is simply ridiculous.
I'm not finding out how to solve it.
i have 3 nodes. all works, but only 2 at a time. clearing the eeproms and flahsing again, it's like the 2 fastest. in any order. but only 2.
@mfalkvidd
thx for answering.
all use the same radio channel: 72
the problematic node was working before.
original: esp8266 gateway + 4 binarys sensor node + weather station node - all ok, no problem
by trying to add the 6 binary sensor node, this new node was never added.
clearead all gw + 3 nodes - eeprom.
now:  esp8266 gateway + 4 binarys sensor node + 6 binary sensor node - all ok, no problem
the weather station node, which was working before, does not get added.
seams that by node 3, it gets refused.
{
    "0": {
        "sensor_id": 0,
        "children": {},
        "type": 18,
        "sketch_name": null,
        "sketch_version": null,
        "battery_level": 0,
        "protocol_version": "2.3.2",
        "heartbeat": 0
    },
    "1": {
        "sensor_id": 1,
        "children": {
            "1": {
                "id": 1,
                "type": 0,
                "description": "",
                "values": {}
            },
            "2": {
                "id": 2,
                "type": 0,
                "description": "",
                "values": {}
            },
            "3": {
                "id": 3,
                "type": 0,
                "description": "",
                "values": {}
            },
            "4": {
                "id": 4,
                "type": 0,
                "description": "",
                "values": {}
            }
        },
        "type": 18,
        "sketch_name": "Door Window Sns x4",
        "sketch_version": "1.0",
        "battery_level": 0,
        "protocol_version": "2.3.2",
        "heartbeat": 0
    },
    "2": {
        "sensor_id": 2,
        "children": {
            "1": {
                "id": 1,
                "type": 0,
                "description": "",
                "values": {}
            },
            "2": {
                "id": 2,
                "type": 0,
                "description": "",
                "values": {}
            },
            "3": {
                "id": 3,
                "type": 0,
                "description": "",
                "values": {}
            },
            "4": {
                "id": 4,
                "type": 0,
                "description": "",
                "values": {}
            },
            "5": {
                "id": 5,
                "type": 0,
                "description": "",
                "values": {}
            },
            "6": {
                "id": 6,
                "type": 0,
                "description": "",
                "values": {}
            }
        },
        "type": 18,
        "sketch_name": "Door Window Sns x6",
        "sketch_version": "1.0",
        "battery_level": 0,
        "protocol_version": "2.3.2",
        "heartbeat": 0
    }
}
Hya,
i have a esp8266 gateway and had 2 nodes - one with 4 binary sensor (door/window) and one weather station
Both nodes works very well with the gateway.
By trying to add a 3rd node, did not work. the 3rd node, a 6 binary sensor (door/window).
By last resource, i cheared the eeprom of all devices, 3 nodes and the gateway and flashed all again.
Now, i have 4 binary sensor and 6 binary sensor recognized by the gateway and the weather station not being included.
Yes, all are using the same radio channel.
No, no hardware was modified.
Is there any limitation?
Any hint of what can be done?
Thx in advance.
@mfalkvidd may this problem be related with eeprom stored vars?
i will clear the eeproms and flash gatewayand nodes again.
This is what i have from GW:
⸮⸮⸮⸮⸮hlD⸮x⸮hT⸮76 MCO:BGN:INIT GW,CP=RNNGE---,FQ=80,REL=255,VER=2.3.2
134 TSF:LRT:OK
149 TSM:INIT
163 TSF:WUR:MS=0
186 TSM:INIT:TSP OK
207 TSM:INIT:GW MODE
229 TSM:READY:ID=0,PAR=0,DIS=0
262 MCO:REG:NOT NEEDED
scandone
1367 GWT:TIN:CONNECTING...
2396 GWT:TIN:CONNECTING...
scandone
state: 0 -> 2 (b0)
4175 GWT:TIN:CONNECTING...
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 5
cnt 
connected with Hirschberg, channel 1
dhcp client start...
ip:192.168.80.9,mask:255.255.255.0,gw:192.168.80.1
4393 GWT:TIN:IP: 192.168.80.9
4424 MCO:BGN:STP
4442 MCO:BGN:INIT OK,TSP=1
4471 TSM:READY:NWD REQ
4498 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
12252 GWT:TSA:C=0,CONNECTED
pm open,type:2 0
22390 GWT:RFC:C=0,MSG=0;255;3;0;2;
32460 GWT:RFC:C=0,MSG=0;255;3;0;2;
42660 GWT:RFC:C=0,MSG=0;255;3;0;2;
52698 GWT:RFC:C=0,MSG=0;255;3;0;2;
62829 GWT:RFC:C=0,MSG=0;255;3;0;2;
72967 GWT:RFC:C=0,MSG=0;255;3;0;2;
83002 GWT:RFC:C=0,MSG=0;255;3;0;2;
93141 GWT:RFC:C=0,MSG=0;255;3;0;2;
103175 GWT:RFC:C=0,MSG=0;255;3;0;2;
no node being recognized
and these are the arduino mini pro gpios being used
#define BUTTON_PIN1  3                                // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN2  4                                // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN3  5                                // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN4  6                                // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN5  7                                // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN6  8                                 // Arduino Digital I/O pin for button/reed switch
@mfalkvidd ok, but does it have any influence by node being recognized by gateway?
@mfalkvidd well, neither my build gateway or the two working nodes have MY_NODE_ID and MY_PARENT_NODE_ID.
in one of the posts, one user claimed not being able to include a node, but was able to do it by defining those https://forum.mysensors.org/post/36819.
so, the question is if those are necessary by having the gateway and nodes, and how to use it?
shall i define MY_NODE_ID 0 to the gateway and AUTO do the nodes, by MY_PARENT_NODE_ID, or MY_PARENT_NODE_ID 0 to the nodes?
yes, maybe stupid questions, but i didn't realize, as i have one gateway and two nodes working and a third one not being registered, even with some nrf24l01 replaced.
@mfalkvidd ok, i did, and did not understand how it works, that's why i asked.