- It doesn't work with SIMPLE_PASSWD disabled either
currently I'm trying it with these settings:
#define MY_SIGNING_SOFT
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
#define MY_SIGNING_REQUEST_SIGNATURES
#define MY_RF24_ENABLE_ENCRYPTION
- Yeah, defines are all above the include
- I can't get #define MY_DEBUG_VERBOSE_SIGNING to work, the output is just gibberish, but here are my normal debug prints from the sensor node:
__ __ ____
| \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___
| |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
| | | | |_| |___| | __/ | | \__ \ _ | | \__ \
|_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/
|___/ 2.2.0
32 MCO:BGN:INIT NODE,CP=RNNNAS-X,VER=2.2.0
124 TSM:INIT
126 TSF:WUR:MS=0
137 TSM:INIT:TSP OK
141 TSM:INIT:STATID=42
145 TSF:SID:OK,ID=42
149 TSM:FPAR
231 TSF:MSG:SEND,42-42-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
376 TSF:MSG:READ,0-0-42,s=255,c=3,t=8,pt=1,l=1,sg=1:0
387 TSF:MSG:FPAR OK,ID=0,D=1
2246 TSM:FPAR:OK
2248 TSM:ID
2250 TSM:ID:OK
2254 TSM:UPL
2260 TSF:MSG:SEND,42-42-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
2312 TSF:MSG:READ,0-0-42,s=255,c=3,t=25,pt=1,l=1,sg=1:1
2322 TSF:MSG:PONG RECV,HP=1
2328 TSM:UPL:OK
2330 TSM:READY:ID=42,PAR=0,DIS=1
2347 TSF:MSG:SEND,42-42-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101
2369 TSF:MSG:READ,0-0-42,s=255,c=3,t=15,pt=6,l=2,sg=0:0101
2392 TSF:MSG:SEND,42-42-0-0,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
2404 !TSF:MSG:SIGN FAIL
2414 TSF:MSG:SEND,42-42-0-0,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=1,st=OK:
2426 !TSF:MSG:SIGN FAIL
2435 TSF:MSG:READ,0-0-42,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
2609 TSF:MSG:READ,0-0-42,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
4431 !TSF:MSG:SIGN FAIL
4435 !TSF:MSG:SIGN FAIL
4440 !TSF:MSG:SIGN FAIL
4544 !TSF:MSG:SIGN FAIL
4648 !TSF:MSG:SIGN FAIL
4753 !TSF:MSG:SIGN FAIL
4757 MCO:REG:REQ
4765 TSF:MSG:SEND,42-42-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=7,st=OK:2
4804 TSF:MSG:READ,0-0-42,s=255,c=3,t=16,pt=0,l=0,sg=1:
4851 TSF:MSG:SEND,42-42-0-0,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
4886 TSF:MSG:READ,0-0-42,s=255,c=3,t=27,pt=1,l=1,sg=1:1
4896 !TSF:MSG:SIGN VERIFY FAIL
4900 MCO:BGN:STP
XXX - STARTING NODE - XXX
4904 MCO:BGN:INIT OK,TSP=1
4915 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255
4923 TSF:TDI:TSL
4927 MCO:SLP:WUP=-1
4931 TSF:TRI:TSB
4933 !TSF:MSG:SIGN FAIL
4937 !TSF:MSG:SIGN FAIL
4943 !TSF:MSG:SIGN FAIL
4947 !TSF:MSG:SIGN FAIL
4952 MCO:SLP:MS=1000,SMS=0,I1=255,M1=255,I2=255,M2=255
4962 TSF:TDI:TSL
4966 MCO:SLP:WUP=-1
4968 TSF:TRI:TSB
4972 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255
4982 TSF:TDI:TSL
4984 MCO:SLP:WUP=-1
4988 TSF:TRI:TSB
4993 MCO:SLP:MS=1000,SMS=0,I1=255,M1=255,I2=255,M2=255
5003 TSF:TDI:TSL
5005 MCO:SLP:WUP=-1
5009 TSF:TRI:TSB
5013 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255
5023 TSF:TDI:TSL
5025 MCO:SLP:WUP=-1
5029 TSF:TRI:TSB
5033 MCO:SLP:MS=1000,SMS=0,I1=255,M1=255,I2=255,M2=255
5042 TSF:TDI:TSL
5046 MCO:SLP:WUP=-1
5050 TSF:TRI:TSB
5054 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255
5062 TSF:TDI:TSL
5066 MCO:SLP:WUP=-1
5070 TSF:TRI:TSB
and from the gateway:
1093 GWT:TPC:CONNECTING...
1098 GWT:TPC:IP=192.168.1.70
1103 MCO:BGN:STP
1106 MCO:BGN:INIT OK,TSP=1
1111 GWT:TPC:IP=192.168.1.70
1116 GWT:RMQ:MQTT RECONNECT
1138 GWT:RMQ:MQTT CONNECTED
1143 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT
1154 GWT:TPS:TOPIC=mygateway1-out/0/255/3/0/11,MSG SENT
1164 GWT:TPS:TOPIC=mygateway1-out/0/255/3/0/12,MSG SENT
pm open,type:2 0
13651 TSF:MSG:READ,42-42-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
13661 TSF:MSG:BC
13664 TSF:MSG:FPAR REQ,ID=42
13669 TSF:PNG:SEND,TO=0
13674 TSF:CKU:OK
13677 TSF:MSG:GWL OK
14051 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
14704 TSF:MSG:READ,42-42-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
14714 TSF:MSG:PINGED,ID=42,HP=1
14727 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
14742 TSF:MSG:READ,42-42-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101
14755 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101
15940 TSF:MSG:READ,42-42-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
15957 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
15981 TSF:MSG:READ,42-42-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
15997 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=27,pt=1,l=1,sg=1,ft=0,st=OK:1
33057 TSF:MSG:READ,42-42-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
33068 TSF:MSG:BC
33071 TSF:MSG:FPAR REQ,ID=42
33076 TSF:PNG:SEND,TO=0
33080 TSF:CKU:OK
33083 TSF:MSG:GWL OK
33409 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=8,pt=1,l=1,sg=1,ft=0,st=OK:0
34109 TSF:MSG:READ,42-42-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
34120 TSF:MSG:PINGED,ID=42,HP=1
34137 TSF:MSG:SEND,0-0-42-42,s=255,c=3,t=25,pt=1,l=1,sg=1,ft=0,st=OK:1
Still trying to get those signing debug logs to work, but I hope these logs already help