@user2684 Hi again. In order to verify if it is something related to mysensors nodemanager library I tested an sketch that monitor two pins (3 and 7) for changes and to print them over the serial and sending the message to the GW.
Sum up:
- Nodemanager + NRF51822 + a pin other than pin 3 = fails
- Nodemanager + Arduino + a pin other than pin 3 = works
- NRF51822 + MySensors (without Nodemanager) + a pin other than 3 = works
Sketch for the NRF51822 test without Nodemanager:
#define MY_DEBUG
#define MY_RADIO_NRF5_ESB
#include <MySensors.h>
uint32_t SLEEP_TIME = 120000;
#define DIGITAL_INPUT_SENSOR 3
#define DIGITAL_INPUT_SENSOR2 7
#define CHILD_ID 1
#define CHILD_ID2 2
MyMessage msg(CHILD_ID, V_TRIPPED);
MyMessage msg2(CHILD_ID2, V_TRIPPED);
void setup()
{
pinMode(DIGITAL_INPUT_SENSOR, INPUT);
pinMode(DIGITAL_INPUT_SENSOR2, INPUT);
}
void presentation()
{
sendSketchInfo("Testing without Nodemanager on NRF51822", "1.0");
present(CHILD_ID, S_DOOR);
present(CHILD_ID2, S_DOOR);
}
void loop()
{
bool tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH;
bool tripped2 = digitalRead(DIGITAL_INPUT_SENSOR2) == HIGH;
Serial.println(tripped);
send(msg.set(tripped?"1":"0")); // Send tripped value to gw
Serial.println(tripped2);
send(msg2.set(tripped2?"1":"0"));
sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, digitalPinToInterrupt(DIGITAL_INPUT_SENSOR2), CHANGE, SLEEP_TIME);
}
The serial output:
15:16:34.164 -> __ __ ____
15:16:34.164 -> | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___
15:16:34.164 -> | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
15:16:34.164 -> | | | | |_| |___| | __/ | | \__ \ _ | | \__ \
15:16:34.164 -> |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/
15:16:34.164 -> |___/ 2.3.2
15:16:34.164 ->
15:16:34.164 -> 24 MCO:BGN:INIT NODE,CP=RNNNN---,FQ=16,REL=255,VER=2.3.2
15:16:34.164 -> 29 TSM:INIT
15:16:34.164 -> 31 TSF:WUR:MS=0
15:16:34.164 -> 32 TSM:INIT:TSP OK
15:16:34.164 -> 34 TSF:SID:OK,ID=18
15:16:34.199 -> 36 TSM:FPAR
15:16:34.199 -> 43 ?TSF:MSG:SEND,18-18-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=NACK:
15:16:36.206 -> 2052 !TSM:FPAR:NO REPLY
15:16:36.206 -> 2054 TSM:FPAR
15:16:36.206 -> 2061 ?TSF:MSG:SEND,18-18-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=1,st=NACK:
15:16:37.154 -> 3027 TSF:MSG:READ,0-0-18,s=255,c=3,t=8,pt=1,l=1,sg=0:0
15:16:37.188 -> 3032 TSF:MSG:FPAR OK,ID=0,D=1
15:16:38.202 -> 4070 TSM:FPAR:OK
15:16:38.202 -> 4071 TSM:ID
15:16:38.202 -> 4072 TSM:ID:OK
15:16:38.202 -> 4074 TSM:UPL
15:16:38.202 -> 4076 TSF:MSG:SEND,18-18-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=OK:1
15:16:38.235 -> 4083 TSF:MSG:READ,0-0-18,s=255,c=3,t=25,pt=1,l=1,sg=0:1
15:16:38.235 -> 4089 TSF:MSG:PONG RECV,HP=1
15:16:38.235 -> 4091 TSM:UPL:OK
15:16:38.235 -> 4093 TSM:READY:ID=18,PAR=0,DIS=1
15:16:38.235 -> 4097 TSF:MSG:SEND,18-18-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
15:16:38.235 -> 4105 TSF:MSG:READ,0-0-18,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
15:16:38.235 -> 4112 TSF:MSG:SEND,18-18-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.2
15:16:38.269 -> 4121 TSF:MSG:SEND,18-18-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
15:16:38.304 -> 4175 TSF:MSG:READ,0-0-18,s=255,c=3,t=6,pt=0,l=1,sg=0:M
15:16:38.338 -> 4182 TSF:MSG:SEND,18-18-0-0,s=255,c=3,t=11,pt=0,l=25,sg=0,ft=0,st=OK:Testing without Nodemanag
15:16:38.338 -> 4193 TSF:MSG:SEND,18-18-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
15:16:38.338 -> 4201 TSF:MSG:SEND,18-18-0-0,s=1,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
15:16:38.338 -> 4209 TSF:MSG:SEND,18-18-0-0,s=2,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
15:16:38.373 -> 4216 MCO:REG:REQ
15:16:38.373 -> 4218 TSF:MSG:SEND,18-18-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
15:16:38.373 -> 4225 TSF:MSG:READ,0-0-18,s=255,c=3,t=27,pt=1,l=1,sg=0:1
15:16:38.373 -> 4231 MCO:PIM:NODE REG=1
15:16:38.373 -> 4233 MCO:BGN:STP
15:16:38.373 -> 4235 MCO:BGN:INIT OK,TSP=1
15:16:38.373 -> 1
15:16:38.373 -> 4239 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:38.373 -> 1
15:16:38.373 -> 4247 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:38.408 -> 4254 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:16:38.408 -> 4259 TSF:TDI:TPD
15:16:45.586 -> 11434 MCO:SLP:WUP=3
15:16:45.586 -> 11436 TSF:TRI:TPU
15:16:45.586 -> 0
15:16:45.586 -> 11440 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:0
15:16:45.586 -> 1
15:16:45.586 -> 11448 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:45.586 -> 11455 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:16:45.586 -> 11460 TSF:TDI:TPD
15:16:49.882 -> 15727 MCO:SLP:WUP=3
15:16:49.882 -> 15729 TSF:TRI:TPU
15:16:49.882 -> 1
15:16:49.882 -> 15732 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:49.882 -> 1
15:16:49.882 -> 15741 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:49.882 -> 15748 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:16:49.882 -> 15752 TSF:TDI:TPD
15:16:53.505 -> 19379 MCO:SLP:WUP=3
15:16:53.539 -> 19381 TSF:TRI:TPU
15:16:53.539 -> 0
15:16:53.539 -> 19384 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:0
15:16:53.539 -> 1
15:16:53.539 -> 19393 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:53.539 -> 19400 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:16:53.539 -> 19405 TSF:TDI:TPD
15:16:58.925 -> 24771 MCO:SLP:WUP=3
15:16:58.925 -> 24773 TSF:TRI:TPU
15:16:58.925 -> 1
15:16:58.925 -> 24776 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:58.925 -> 1
15:16:58.925 -> 24785 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:16:58.925 -> 24792 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:16:58.925 -> 24796 TSF:TDI:TPD
15:17:01.256 -> 27111 MCO:SLP:WUP=3
15:17:01.256 -> 27112 TSF:TRI:TPU
15:17:01.256 -> 0
15:17:01.256 -> 27116 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:0
15:17:01.256 -> 1
15:17:01.256 -> 27124 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:01.289 -> 27131 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:01.289 -> 27136 TSF:TDI:TPD
15:17:04.545 -> 30413 MCO:SLP:WUP=3
15:17:04.545 -> 30415 TSF:TRI:TPU
15:17:04.545 -> 1
15:17:04.545 -> 30418 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:04.578 -> 1
15:17:04.578 -> 30426 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:04.578 -> 30433 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:04.578 -> 30438 TSF:TDI:TPD
15:17:08.065 -> 33936 MCO:SLP:WUP=7
15:17:08.065 -> 33938 TSF:TRI:TPU
15:17:08.065 -> 1
15:17:08.065 -> 33941 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:08.099 -> 0
15:17:08.099 -> 33949 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:0
15:17:08.099 -> 33956 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:08.099 -> 33961 TSF:TDI:TPD
15:17:13.597 -> 39440 MCO:SLP:WUP=7
15:17:13.597 -> 39442 TSF:TRI:TPU
15:17:13.597 -> 1
15:17:13.597 -> 39445 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:13.597 -> 1
15:17:13.597 -> 39453 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:13.597 -> 39460 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:13.597 -> 39465 TSF:TDI:TPD
15:17:15.520 -> 41366 MCO:SLP:WUP=7
15:17:15.520 -> 41368 TSF:TRI:TPU
15:17:15.520 -> 1
15:17:15.520 -> 41371 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:15.520 -> 0
15:17:15.520 -> 41379 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:0
15:17:15.520 -> 41386 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:15.520 -> 41391 TSF:TDI:TPD
15:17:19.470 -> 45344 MCO:SLP:WUP=7
15:17:19.503 -> 45346 TSF:TRI:TPU
15:17:19.503 -> 1
15:17:19.503 -> 45349 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:19.503 -> 1
15:17:19.503 -> 45357 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:19.503 -> 45364 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:19.503 -> 45369 TSF:TDI:TPD
15:17:21.291 -> 47162 MCO:SLP:WUP=7
15:17:21.291 -> 47164 TSF:TRI:TPU
15:17:21.291 -> 1
15:17:21.291 -> 47167 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:21.324 -> 0
15:17:21.324 -> 47175 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:0
15:17:21.324 -> 47182 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
15:17:21.324 -> 47187 TSF:TDI:TPD
15:17:25.817 -> 51669 MCO:SLP:WUP=7
15:17:25.817 -> 51670 TSF:TRI:TPU
15:17:25.817 -> 1
15:17:25.817 -> 51674 TSF:MSG:SEND,18-18-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:25.817 -> 1
15:17:25.817 -> 51682 TSF:MSG:SEND,18-18-0-0,s=2,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=OK:1
15:17:25.817 -> 51689 MCO:SLP:MS=120000,SMS=0,I1=3,M1=2,I2=7,M2=2
Gateway received information:
1884 26/10/2020 15:16:38 RX 18 INTERNAL C_PRESENTATION NO S_ARDUINO_NODE 2.3.2
1885 26/10/2020 15:16:38 RX 18 INTERNAL C_INTERNAL NO I_CONFIG 0
1886 26/10/2020 15:16:38 TX 18 INTERNAL C_INTERNAL NO I_CONFIG M
1887 26/10/2020 15:16:38 RX 18 - Testing without Nodemanag INTERNAL C_INTERNAL NO I_SKETCH_NAME Testing without Nodemanag
1888 26/10/2020 15:16:38 RX 18 - Testing without Nodemanag INTERNAL C_INTERNAL NO I_SKETCH_VERSION 1.0
1889 26/10/2020 15:16:38 RX 18 - Testing without Nodemanag 1 - S_DOOR C_PRESENTATION NO S_DOOR
1890 26/10/2020 15:16:38 RX 18 - Testing without Nodemanag 2 - S_DOOR C_PRESENTATION NO S_DOOR
1891 26/10/2020 15:16:38 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1892 26/10/2020 15:16:38 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1893 26/10/2020 15:16:45 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 0
1894 26/10/2020 15:16:45 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1895 26/10/2020 15:16:49 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1896 26/10/2020 15:16:49 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1897 26/10/2020 15:16:55 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 0
1898 26/10/2020 15:16:56 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1899 26/10/2020 15:16:58 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1900 26/10/2020 15:16:58 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1901 26/10/2020 15:17:01 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 0
1902 26/10/2020 15:17:01 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1903 26/10/2020 15:17:04 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1904 26/10/2020 15:17:04 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1905 26/10/2020 15:17:08 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1906 26/10/2020 15:17:08 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 0
1907 26/10/2020 15:17:13 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1908 26/10/2020 15:17:13 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1909 26/10/2020 15:17:15 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1910 26/10/2020 15:17:15 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 0
1911 26/10/2020 15:17:19 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1912 26/10/2020 15:17:19 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
1913 26/10/2020 15:17:21 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1914 26/10/2020 15:17:21 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 0
1915 26/10/2020 15:17:25 RX 18 - Testing without Nodemanag 1 - S_DOOR C_SET NO V_TRIPPED 1
1916 26/10/2020 15:17:25 RX 18 - Testing without Nodemanag 2 - S_DOOR C_SET NO V_TRIPPED 1
So no need to test the NRF52 (but I will do anyway and I'll post the result).
Do you know how to inform to the development team about this issue?
Thanks a lot