Hello guys,
It's been a while since my last posting.
I have setup a new sensor using my own PCB that is pretty much the same as this one.
I have tried many setups and now I'm using a basic node code
// mysensors
#define DEBUG_ENABLED
#define DEBUG_TI
// Enable debug prints to serial monitor
#define MY_DEBUG
#define MY_RADIO_RF24
#define MY_RF24_PA_LEVEL RF24_PA_LOW
#define RELEASE "0.0.1"
#include <MySensors.h>
//#define MY_NODE_ID 36
#define OPEN 1
#define CLOSE 0
#define CHILD_ID 1
MyMessage msg(CHILD_ID, V_TRIPPED);
uint8_t value = OPEN;
void presentation()
{
Serial.println("Presentation");
present(CHILD_ID, S_DOOR);
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("End setup");
}
void loop() {
// put your main code here, to run repeatedly:
value = value == OPEN ? CLOSE : OPEN;
Serial.println("Sending message");
send(msg.set(value));
Serial.println("Sleeping");
sleep(10000);
}
But, guess what: my node is not getting any parent response.
Here is the output I get from the serial port on my node:
18096 TSM:FAIL:RE-INIT
18098 TSM:INIT
18104 TSM:INIT:TSP OK
18106 TSM:FPAR
18110 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
20119 !TSM:FPAR:NO REPLY
20121 TSM:FPAR
20123 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
22132 !TSM:FPAR:NO REPLY
22134 TSM:FPAR
22136 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
24147 !TSM:FPAR:NO REPLY
24150 TSM:FPAR
24152 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
26161 !TSM:FPAR:FAIL
26163 TSM:FAIL:CNT=2
26165 TSM:FAIL:DIS
26167 TSF:TDI:TSL
and the one on the gateway:
Oct 03 23:06:37 DEBUG TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
Oct 03 23:06:37 DEBUG TSF:MSG:BC
Oct 03 23:06:37 DEBUG TSF:MSG:FPAR REQ,ID=255
Oct 03 23:06:37 DEBUG TSF:PNG:SEND,TO=0
Oct 03 23:06:37 DEBUG TSF:CKU:OK
Oct 03 23:06:37 DEBUG TSF:MSG:GWL OK
Oct 03 23:06:37 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
Oct 03 23:06:38 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;18;PING
Oct 03 23:06:39 DEBUG TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
Oct 03 23:06:39 DEBUG TSF:MSG:BC
Oct 03 23:06:39 DEBUG TSF:MSG:FPAR REQ,ID=255
Oct 03 23:06:39 DEBUG TSF:CKU:OK,FCTRL
Oct 03 23:06:39 DEBUG TSF:MSG:GWL OK
Oct 03 23:06:39 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
Oct 03 23:06:41 DEBUG TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
Oct 03 23:06:41 DEBUG TSF:MSG:BC
Oct 03 23:06:41 DEBUG TSF:MSG:FPAR REQ,ID=255
Oct 03 23:06:41 DEBUG TSF:CKU:OK,FCTRL
Oct 03 23:06:41 DEBUG TSF:MSG:GWL OK
Oct 03 23:06:42 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
Oct 03 23:06:43 DEBUG TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
Oct 03 23:06:43 DEBUG TSF:MSG:BC
Oct 03 23:06:43 DEBUG TSF:MSG:FPAR REQ,ID=255
Oct 03 23:06:43 DEBUG TSF:CKU:OK,FCTRL
Oct 03 23:06:43 DEBUG TSF:MSG:GWL OK
Oct 03 23:06:44 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
Any help would be rewarded by a coffee, beer and may be by a bottle of Chablis if you have the answer
QQ.
ps: yes, I have a great 33µF capacity right next to my radio
pps: yes, I have tried a different NRF24L01+ module
ppps: isn't it tiring to have multiple "PS" ?