Signing 2.3.1 no longer allowing upload of new data?



  • Hi,

    I have a number of nodes, a few of which utilise signing. this has been the case for about 9 months, all working ok.
    Signing is soft signing based. I was on 2.2.0 currently 2.3.1. Controller is Domoticz on a synology NAS.
    Today, all my nodes that are signed, stopped receiving any sent updates, values sent from the nodes to the GW and thus controller, continued to function. I have seen this before, and eventually solved it by re-flashing the gateway from scratch (serial GW) , first clearing the EEprom, re-signing, and then uploading GW sketch.
    I re-performed this today after the "issue" and after a false start of the software signing sketch not compiling, I resolved this, and re performed as above on the gateway. No Joy, same behaviour. OK, so I might need to reflash all the nodes with the 2.3.1 soft signing, so clear eeprom, sign, reflash, in each case. No dice, cannot "send" data to nodes, can only receive. In desperation, I have removed signing from my nodes, in order to get my Central Heating working again. Obviously this isn't ideal, and I wish to re-establish security as soon as possible. (nodes now work upload as well as download)
    Given that it has all been working for months, and all that has other wise changed is the mysensors changing from 2.2.0 to 2.3.1 (in my case) What has changed, and what do I need to do differently to get signing working again?

    I cant get simultaneous logs from my devices, as they are physically installed in disparate locations.

    Anybody else had a problem?
    I did come across this bug report, which I followed, to enable the personaliser to complile. [https://forum.mysensors.org/topic/10068/node-personalizer-sketch-seems-broken-in-mysensors-2-3-1/3](link url)

    Suggestions / help please.

    Regards Nigel


  • Contest Winner

    @njwyborn hi, do you have any logs so that the problem can be analyzed?
    To my knowledge there have not been any changes to the security parts recently.



  • Hi Anticimex,

    I will have to do it on Tuesday, it is the earliest I can spend time on it. (re-flash etc)
    I can easily send logs from the nodes, however getting debug logs directly from the gateway will be an issue for me, as I don't know how to access the serial logs, once it is connected to the controller, If I just have it connected to the PC, obviously I won't be generating the appropriate inputs.

    Any idea how I might access the raw GW serial output when it is connected to the Controller?

    Many thanks
    Nigel


  • Contest Winner

    @njwyborn well, by just having the gateway hooked up to your pc you should at least see logs appearing when the nodes come online and send presentation details such as sketch names, etc.
    At least then we would know of signing is failing completely or if it could be a change in the radio stack which makes big packet communications more sensitive or something like that.



  • Hi,

    Excellent, I'll do that.

    Many thanks
    Nigel



  • Hi,

    I have re-flashed the GW and one of the nodes using signing.
    This is the log of the GW, when connected to PC, it is NOT connected to the controller.
    The Signed node is Node 7.

    I'm not sure what I might have done any diffrent, but after trying this again all connected up, this now works! I must say though that the coms are now very sketchy when sending new data to node7 (switching outputs).

    As always I am grateful for the help.

    Regards
    Nigel

    the signing relivent parts of the sketch on the node are

    #define MY_SIGNING_SOFT
    #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
    #define MY_SIGNING_REQUEST_SIGNATURES
    

    Log from GW

    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RRNGAS--,REL=255,VER=2.3.1
    0;255;3;0;9;11 SGN:PER:OK
    0;255;3;0;9;40 SGN:INI:BND OK
    0;255;3;0;9;44 TSM:INIT
    0;255;3;0;9;46 TSF:WUR:MS=0
    0;255;3;0;9;49 TSM:INIT:TSP OK
    0;255;3;0;9;52 TSM:INIT:GW MODE
    0;255;3;0;9;55 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;58 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.1
    0;255;3;0;9;63 MCO:BGN:STP
    0;255;3;0;9;69 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;72 TSM:READY:NWD REQ
    0;255;3;0;9;75 SGN:SGN:NREQ=255
    0;255;3;0;9;1311 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;1393 TSF:MSG:READ,4-4-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    4;255;3;0;21;0
    0;255;3;0;9;1453 TSF:MSG:READ,7-7-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    7;255;3;0;21;0
    0;255;3;0;9;1468 TSF:MSG:READ,7-7-0,s=30,c=1,t=45,pt=7,l=5,sg=0:55.0
    7;30;1;0;45;55.0
    0;255;3;0;9;1484 TSF:MSG:READ,7-7-0,s=11,c=2,t=2,pt=0,l=0,sg=0:
    7;11;2;0;2;
    0;255;3;0;9;1712 TSF:MSG:READ,10-10-0,s=2,c=1,t=2,pt=7,l=5,sg=0: 1
    10;2;1;0;2; 1
    0;255;3;0;9;1914 TSF:MSG:READ,10-10-0,s=2,c=1,t=2,pt=7,l=5,sg=0: 1
    10;2;1;0;2; 1
    0;255;3;0;9;1939 TSF:MSG:READ,7-7-0,s=10,c=1,t=2,pt=1,l=1,sg=0:0
    7;10;1;0;2;0
    0;255;3;0;9;1954 TSF:MSG:READ,7-7-0,s=6,c=1,t=37,pt=2,l=2,sg=0:-55
    7;6;1;0;37;-55
    0;255;3;0;9;1970 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;2028 TSF:MSG:READ,10-10-0,s=4,c=1,t=16,pt=7,l=5,sg=0: 0
    10;4;1;0;16; 0
    0;255;3;0;9;2142 TSF:MSG:READ,10-10-0,s=1,c=1,t=45,pt=7,l=5,sg=0:20.5
    10;1;1;0;45;20.5
    0;255;3;0;9;2254 TSF:MSG:READ,10-10-0,s=5,c=1,t=37,pt=2,l=2,sg=0:0
    10;5;1;0;37;0
    0;255;3;0;9;2314 TSF:MSG:READ,10-10-0,s=1,c=2,t=29,pt=0,l=0,sg=0:
    10;1;2;0;29;
    0;255;3;0;9;3678 TSF:MSG:READ,7-7-0,s=1,c=1,t=0,pt=7,l=5,sg=0:54.50
    7;1;1;0;0;54.50
    0;255;3;0;9;3693 TSF:MSG:READ,7-7-0,s=12,c=2,t=2,pt=0,l=0,sg=0:
    7;12;2;0;2;
    0;255;3;0;9;3707 TSF:MSG:READ,7-7-0,s=11,c=1,t=2,pt=1,l=1,sg=0:0
    7;11;1;0;2;0
    0;255;3;0;9;3822 TSF:MSG:READ,7-7-0,s=23,c=1,t=2,pt=1,l=1,sg=0:0
    7;23;1;0;2;0
    0;255;3;0;9;10138 TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;10144 TSF:MSG:BC
    0;255;3;0;9;10147 TSF:MSG:FPAR REQ,ID=7
    0;255;3;0;9;10150 TSF:PNG:SEND,TO=0
    0;255;3;0;9;10153 TSF:CKU:OK
    0;255;3;0;9;10157 TSF:MSG:GWL OK
    0;255;3;0;9;11104 SGN:SKP:MSG CMD=3,TYPE=8
    0;255;3;0;9;11522 TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;11720 TSF:MSG:READ,4-4-0,s=25,c=1,t=39,pt=7,l=5,sg=0:2.6
    4;25;1;0;39;2.6
    0;255;3;0;9;11735 TSF:MSG:READ,4-4-0,s=26,c=1,t=38,pt=7,l=5,sg=0:248.7
    4;26;1;0;38;248.7
    0;255;3;0;9;11748 TSF:MSG:READ,4-4-0,s=32,c=1,t=37,pt=2,l=2,sg=0:-66
    4;32;1;0;37;-66
    0;255;3;0;9;11865 TSF:MSG:READ,4-4-0,s=1,c=1,t=17,pt=5,l=4,sg=0:535
    4;1;1;0;17;535
    0;255;3;0;9;11878 TSF:MSG:READ,4-4-0,s=1,c=1,t=24,pt=5,l=4,sg=0:11406923
    4;1;1;0;24;11406923
    0;255;3;0;9;11893 TSF:MSG:READ,4-4-0,s=1,c=1,t=18,pt=7,l=5,sg=0:3168.5898
    4;1;1;0;18;3168.5898
    0;255;3;0;9;13390 TSF:MSG:READ,7-7-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
    0;255;3;0;9;13396 TSF:MSG:PINGED,ID=7,HP=1
    0;255;3;0;9;13401 SGN:SKP:MSG CMD=3,TYPE=25
    0;255;3;0;9;13411 TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
    0;255;3;0;9;13437 TSF:MSG:READ,7-7-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101
    0;255;3;0;9;13444 SGN:PRE:SGN REQ,FROM=7
    0;255;3;0;9;13448 SGN:PRE:SGN NREQ,TO=7
    0;255;3;0;9;13452 SGN:PRE:WHI NREQ,TO=7
    0;255;3;0;9;13455 SGN:SKP:MSG CMD=3,TYPE=15
    0;255;3;0;9;13465 TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    0;255;3;0;9;13473 SGN:PRE:XMT,TO=7
    0;255;3;0;9;13686 TSF:MSG:READ,7-7-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.3.1
    7;255;0;0;17;2.3.1
    0;255;3;0;9;13702 TSF:MSG:READ,7-7-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
    7;255;3;0;6;0
    0;255;3;0;9;15733 TSF:MSG:READ,7-7-0,s=255,c=3,t=11,pt=0,l=23,sg=0:Airing Cupboard Control
    7;255;3;0;11;Airing Cupboard Control
    0;255;3;0;9;15751 TSF:MSG:READ,7-7-0,s=255,c=3,t=12,pt=0,l=5,sg=0:1.3.2
    7;255;3;0;12;1.3.2
    0;255;3;0;9;15768 TSF:MSG:READ,7-7-0,s=0,c=0,t=6,pt=0,l=14,sg=0:Water Tank Top
    7;0;0;0;6;Water Tank Top
    0;255;3;0;9;16037 TSF:MSG:READ,7-7-0,s=1,c=0,t=6,pt=0,l=14,sg=0:Water Tank Mid
    7;1;0;0;6;Water Tank Mid
    0;255;3;0;9;16306 TSF:MSG:READ,7-7-0,s=2,c=0,t=6,pt=0,l=17,sg=0:Water Tank Bottom
    7;2;0;0;6;Water Tank Bottom
    0;255;3;0;9;16575 TSF:MSG:READ,7-7-0,s=3,c=0,t=6,pt=0,l=20,sg=0:Airing Cupboard Temp
    7;3;0;0;6;Airing Cupboard Temp
    0;255;3;0;9;16845 TSF:MSG:READ,7-7-0,s=4,c=0,t=6,pt=0,l=20,sg=0:Water Tank Loft Temp
    7;4;0;0;6;Water Tank Loft Temp
    0;255;3;0;9;17115 TSF:MSG:READ,7-7-0,s=5,c=0,t=6,pt=0,l=9,sg=0:Loft Temp
    7;5;0;0;6;Loft Temp
    0;255;3;0;9;17381 TSF:MSG:READ,7-7-0,s=6,c=0,t=33,pt=0,l=7,sg=0:RX RSSI
    0;255;3;0;9;17387 TSF:MSG:ACK REQ
    0;255;3;0;9;17390 SGN:SKP:ACK CMD=0,TYPE=33
    0;255;3;0;9;17401 TSF:MSG:SEND,0-0-7-7,s=6,c=0,t=33,pt=0,l=7,sg=0,ft=0,st=OK:RX RSSI
    7;6;0;0;33;RX RSSI
    0;255;3;0;9;18908 TSF:MSG:READ,7-7-0,s=10,c=0,t=3,pt=0,l=5,sg=0:SSR_1
    0;255;3;0;9;18914 TSF:MSG:ACK REQ
    0;255;3;0;9;18917 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;18927 TSF:MSG:SEND,0-0-7-7,s=10,c=0,t=3,pt=0,l=5,sg=0,ft=0,st=OK:SSR_1
    7;10;0;0;3;SSR_1
    0;255;3;0;9;19174 TSF:MSG:READ,7-7-0,s=11,c=0,t=3,pt=0,l=5,sg=0:SSR_2
    0;255;3;0;9;19181 TSF:MSG:ACK REQ
    0;255;3;0;9;19184 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;19194 TSF:MSG:SEND,0-0-7-7,s=11,c=0,t=3,pt=0,l=5,sg=0,ft=0,st=OK:SSR_2
    7;11;0;0;3;SSR_2
    0;255;3;0;9;19440 TSF:MSG:READ,7-7-0,s=12,c=0,t=3,pt=0,l=5,sg=0:SSR_3
    0;255;3;0;9;19446 TSF:MSG:ACK REQ
    0;255;3;0;9;19450 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;19461 TSF:MSG:SEND,0-0-7-7,s=12,c=0,t=3,pt=0,l=5,sg=0,ft=0,st=OK:SSR_3
    7;12;0;0;3;SSR_3
    0;255;3;0;9;19706 TSF:MSG:READ,7-7-0,s=13,c=0,t=3,pt=0,l=5,sg=0:SSR_4
    0;255;3;0;9;19713 TSF:MSG:ACK REQ
    0;255;3;0;9;19716 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;19727 TSF:MSG:SEND,0-0-7-7,s=13,c=0,t=3,pt=0,l=5,sg=0,ft=0,st=OK:SSR_4
    7;13;0;0;3;SSR_4
    0;255;3;0;9;19975 TSF:MSG:READ,7-7-0,s=14,c=0,t=3,pt=0,l=16,sg=0:Relay_DISRUPT_CH
    0;255;3;0;9;19982 TSF:MSG:ACK REQ
    0;255;3;0;9;19985 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;19997 TSF:MSG:SEND,0-0-7-7,s=14,c=0,t=3,pt=0,l=16,sg=0,ft=0,st=OK:Relay_DISRUPT_CH
    7;14;0;0;3;Relay_DISRUPT_CH
    0;255;3;0;9;20244 TSF:MSG:READ,7-7-0,s=15,c=0,t=3,pt=0,l=14,sg=0:Relay_HotWater
    0;255;3;0;9;20250 TSF:MSG:ACK REQ
    0;255;3;0;9;20253 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;20265 TSF:MSG:SEND,0-0-7-7,s=15,c=0,t=3,pt=0,l=14,sg=0,ft=0,st=OK:Relay_HotWater
    7;15;0;0;3;Relay_HotWater
    0;255;3;0;9;20513 TSF:MSG:READ,7-7-0,s=16,c=0,t=3,pt=0,l=20,sg=0:Relay_CentralHeating
    0;255;3;0;9;20521 TSF:MSG:ACK REQ
    0;255;3;0;9;20525 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;21807 !TSF:MSG:SEND,0-0-7-7,s=16,c=0,t=3,pt=0,l=20,sg=0,ft=0,st=NACK:Relay_CentralHeating
    7;16;0;0;3;Relay_CentralHeating
    0;255;3;0;9;21862 TSF:MSG:READ,10-10-0,s=2,c=1,t=2,pt=7,l=5,sg=0: 1
    10;2;1;0;2; 1
    0;255;3;0;9;21976 TSF:MSG:READ,10-10-0,s=4,c=1,t=16,pt=7,l=5,sg=0: 0
    10;4;1;0;16; 0
    0;255;3;0;9;22088 TSF:MSG:READ,10-10-0,s=1,c=1,t=45,pt=7,l=5,sg=0:20.5
    10;1;1;0;45;20.5
    0;255;3;0;9;22201 TSF:MSG:READ,10-10-0,s=5,c=1,t=37,pt=2,l=2,sg=0:0
    10;5;1;0;37;0
    0;255;3;0;9;22261 TSF:MSG:READ,10-10-0,s=1,c=2,t=29,pt=0,l=0,sg=0:
    10;1;2;0;29;
    0;255;3;0;9;22478 TSF:MSG:READ,7-7-0,s=17,c=0,t=3,pt=0,l=13,sg=0:SSR_IMMERSION
    0;255;3;0;9;22486 TSF:MSG:ACK REQ
    0;255;3;0;9;22489 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;22501 TSF:MSG:SEND,0-0-7-7,s=17,c=0,t=3,pt=0,l=13,sg=0,ft=0,st=OK:SSR_IMMERSION
    7;17;0;0;3;SSR_IMMERSION
    0;255;3;0;9;22748 TSF:MSG:READ,7-7-0,s=20,c=0,t=3,pt=0,l=19,sg=0:Shower Pump Running
    0;255;3;0;9;22755 TSF:MSG:ACK REQ
    0;255;3;0;9;22758 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;22771 TSF:MSG:SEND,0-0-7-7,s=20,c=0,t=3,pt=0,l=19,sg=0,ft=0,st=OK:Shower Pump Running
    7;20;0;0;3;Shower Pump Running
    0;255;3;0;9;23017 TSF:MSG:READ,7-7-0,s=21,c=0,t=3,pt=0,l=15,sg=0:CH Pump Running
    0;255;3;0;9;23024 TSF:MSG:ACK REQ
    0;255;3;0;9;23027 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;23040 TSF:MSG:SEND,0-0-7-7,s=21,c=0,t=3,pt=0,l=15,sg=0,ft=0,st=OK:CH Pump Running
    7;21;0;0;3;CH Pump Running
    0;255;3;0;9;23287 TSF:MSG:READ,7-7-0,s=22,c=0,t=3,pt=0,l=22,sg=0:Immersion Heater ON FB
    0;255;3;0;9;23296 TSF:MSG:ACK REQ
    0;255;3;0;9;23299 SGN:SKP:ACK CMD=0,TYPE=3
    0;255;3;0;9;23312 TSF:MSG:SEND,0-0-7-7,s=22,c=0,t=3,pt=0,l=22,sg=0,ft=0,st=OK:Immersion Heater ON FB
    7;22;0;0;3;Immersion Heater ON FB
    0;255;3;0;9;23559 TSF:MSG:READ,7-7-0,s=30,c=0,t=14,pt=0,l=22,sg=0:Temperature 1 Setpoint
    0;255;3;0;9;23567 TSF:MSG:ACK REQ
    0;255;3;0;9;23570 SGN:SKP:ACK CMD=0,TYPE=14
    0;255;3;0;9;24810 !TSF:MSG:SEND,0-0-7-7,s=30,c=0,t=14,pt=0,l=22,sg=0,ft=0,st=NACK:Temperature 1 Setpoint
    7;30;0;0;14;Temperature 1 Setpoint
    0;255;3;0;9;26826 TSF:MSG:READ,7-7-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;26832 SGN:SKP:MSG CMD=3,TYPE=16
    0;255;3;0;9;26843 TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;26850 SGN:SGN:NCE REQ,TO=7
    0;255;3;0;9;26868 TSF:MSG:READ,7-7-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
    0;255;3;0;9;26874 SGN:NCE:FROM=7
    0;255;3;0;9;26878 SGN:BND:NONCE=0E92DADC44930DBA963AE05F948FCBCAAD56AD406929AC6E67AAAAAAAAAAAAAA
    0;255;3;0;9;3204178589 SGN:BND:HMAC=7E75749D03A4DDC0AA3504697193B20458089AE4CC74A60874E0D66BC517060A
    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RRNGAS--,REL=255,VER=2.3.1
    0;255;3;0;9;12 SGN:PER:OK
    0;255;3;0;9;46 SGN:INI:BND OK
    0;255;3;0;9;49 TSM:INIT
    0;255;3;0;9;51 TSF:WUR:MS=0
    0;255;3;0;9;54 TSM:INIT:TSP OK
    0;255;3;0;9;57 TSM:INIT:GW MODE
    0;255;3;0;9;60 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;64 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.1
    0;255;3;0;9;68 MCO:BGN:STP
    0;255;3;0;9;74 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;78 TSM:READY:NWD REQ
    0;255;3;0;9;81 SGN:SGN:NREQ=255
    0;255;3;0;9;1303 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;1375 TSF:MSG:READ,7-7-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    7;255;3;0;21;0
    0;255;3;0;9;1936 TSF:MSG:READ,7-7-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;1942 SGN:SKP:MSG CMD=3,TYPE=16
    0;255;3;0;9;1952 TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;1959 SGN:SGN:NCE REQ,TO=7
    0;255;3;0;9;1978 TSF:MSG:READ,7-7-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
    0;255;3;0;9;1985 SGN:NCE:FROM=7
    0;255;3;0;9;1988 SGN:BND:NONCE=D8CED04EF84C6D5857E71E2AD5EF14F30C6D4C65EBEAF90AF5AAAAAAAAAAAAAA
    0;255;3;0;9;3224681300 SGN:BND:HMAC=80D86928F9B24139397069BDAB37B38BB162CA17B09BC2AF2A15C529B9263A57
    0;255;3;0;9;1 MCO:BGN:INIT GW,CP=RRNGAS--,REL=255,VER=2.3.1
    0;255;3;0;9;13 SGN:PER:OK
    0;255;3;0;9;49 SGN:INI:BND OK
    0;255;3;0;9;52 TSM:INIT
    0;255;3;0;9;54 TSF:WUR:MS=0
    0;255;3;0;9;57 TSM:INIT:TSP OK
    0;255;3;0;9;60 TSM:INIT:GW MODE
    0;255;3;0;9;63 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;67 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.1
    0;255;3;0;9;71 MCO:BGN:STP
    0;255;3;0;9;77 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;81 TSM:READY:NWD REQ
    0;255;3;0;9;84 SGN:SGN:NREQ=255
    0;255;3;0;9;1305 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;1345 TSF:MSG:READ,7-7-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    7;255;3;0;21;0
    0;255;3;0;9;1555 TSF:MSG:READ,10-10-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    10;255;3;0;21;0
    0;255;3;0;9;1938 TSF:MSG:READ,7-7-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    0;255;3;0;9;1944 SGN:SKP:MSG CMD=3,TYPE=16
    0;255;3;0;9;1953 TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;1960 SGN:SGN:NCE REQ,TO=7
    0;255;3;0;9;1980 TSF:MSG:READ,7-7-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
    0;255;3;0;9;1986 SGN:NCE:FROM=7
    0;255;3;0;9;1989 SGN:BND:NONCE=7084126762BEC1FA72C020B81DD22C3FAC3F3591CEB5A614BDAAAAAAAAAAAAAA
    0;255;3;0;9;357226624 SGN:BND:HMAC=61F31C34FD0B2C6651575468ED0327A8E09C38F8831B4543BBFCA4132998FDF3
    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RRNGAS--,REL=255,VER=2.3.1
    0;255;3;0;9;12 SGN:PER:OK
    0;255;3;0;9;40 SGN:INI:BND OK
    0;255;3;0;9;43 TSM:INIT
    0;255;3;0;9;46 TSF:WUR:MS=0
    0;255;3;0;9;49 TSM:INIT:TSP OK
    0;255;3;0;9;52 TSM:INIT:GW MODE
    0;255;3;0;9;55 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;58 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.1
    0;255;3;0;9;62 MCO:BGN:STP
    0;255;3;0;9;69 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;72 TSM:READY:NWD REQ
    0;255;3;0;9;75 SGN:SGN:NREQ=255
    0;255;3;0;9;1296 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;1343 TSF:MSG:READ,4-4-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    4;255;3;0;21;0
    0;255;3;0;9;1473 TSF:MSG:READ,10-10-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    10;255;3;0;21;0
    0;255;3;0;9;1499 TSF:MSG:READ,7-7-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
    7;255;3;0;21;0
    0;255;3;0;9;1560 TSF:MSG:READ,4-4-0,s=25,c=1,t=39,pt=7,l=5,sg=0:2.6
    4;25;1;0;39;2.6
    0;255;3;0;9;1574 TSF:MSG:READ,4-4-0,s=26,c=1,t=38,pt=7,l=5,sg=0:248.7
    4;26;1;0;38;248.7
    0;255;3;0;9;1588 TSF:MSG:READ,4-4-0,s=32,c=1,t=37,pt=2,l=2,sg=0:-71
    4;32;1;0;37;-71
    0;255;3;0;9;1703 TSF:MSG:READ,4-4-0,s=1,c=1,t=17,pt=5,l=4,sg=0:534
    4;1;1;0;17;534
    0;255;3;0;9;1718 TSF:MSG:READ,4-4-0,s=1,c=1,t=24,pt=5,l=4,sg=0:11406934
    4;1;1;0;24;11406934
    0;255;3;0;9;1732 TSF:MSG:READ,4-4-0,s=1,c=1,t=18,pt=7,l=5,sg=0:3168.5928
    4;1;1;0;18;3168.5928
    0;255;3;0;9;2021 TSF:MSG:READ,7-7-0,s=17,c=2,t=2,pt=0,l=0,sg=0:
    7;17;2;0;2;
    0;255;3;0;9;3545 TSF:MSG:READ,7-7-0,s=30,c=2,t=45,pt=0,l=0,sg=0:
    7;30;2;0;45;
    0;255;3;0;9;3560 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;4660 TSF:MSG:READ,7-7-0,s=21,c=1,t=2,pt=7,l=5,sg=0: 1
    7;21;1;0;2; 1
    0;255;3;0;9;4675 TSF:MSG:READ,7-7-0,s=0,c=1,t=0,pt=7,l=5,sg=0:59.50
    7;0;1;0;0;59.50
    0;255;3;0;9;4790 TSF:MSG:READ,7-7-0,s=30,c=1,t=45,pt=7,l=5,sg=0:55.0
    7;30;1;0;45;55.0
    0;255;3;0;9;4806 TSF:MSG:READ,7-7-0,s=11,c=2,t=2,pt=0,l=0,sg=0:
    7;11;2;0;2;
    0;255;3;0;9;4820 TSF:MSG:READ,7-7-0,s=10,c=1,t=2,pt=1,l=1,sg=0:0
    7;10;1;0;2;0
    0;255;3;0;9;4836 TSF:MSG:READ,7-7-0,s=6,c=1,t=37,pt=2,l=2,sg=0:-65
    7;6;1;0;37;-65
    0;255;3;0;9;4851 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;9698 TSF:MSG:READ,7-7-0,s=1,c=1,t=0,pt=7,l=5,sg=0:54.50
    7;1;1;0;0;54.50
    0;255;3;0;9;9712 TSF:MSG:READ,7-7-0,s=12,c=2,t=2,pt=0,l=0,sg=0:
    7;12;2;0;2;
    0;255;3;0;9;9728 TSF:MSG:READ,7-7-0,s=11,c=1,t=2,pt=1,l=1,sg=0:0
    7;11;1;0;2;0
    0;255;3;0;9;9842 TSF:MSG:READ,7-7-0,s=23,c=1,t=2,pt=1,l=1,sg=0:0
    7;23;1;0;2;0
    0;255;3;0;9;9928 TSF:MSG:READ,10-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:20.26
    10;0;1;0;0;20.26
    0;255;3;0;9;10041 TSF:MSG:READ,10-10-0,s=2,c=1,t=2,pt=7,l=5,sg=0: 1
    10;2;1;0;2; 1
    0;255;3;0;9;10153 TSF:MSG:READ,10-10-0,s=4,c=1,t=16,pt=7,l=5,sg=0: 0
    10;4;1;0;16; 0
    0;255;3;0;9;10267 TSF:MSG:READ,10-10-0,s=1,c=1,t=45,pt=7,l=5,sg=0:20.5
    10;1;1;0;45;20.5
    0;255;3;0;9;10381 TSF:MSG:READ,10-10-0,s=5,c=1,t=37,pt=2,l=2,sg=0:0
    10;5;1;0;37;0
    0;255;3;0;9;10441 TSF:MSG:READ,10-10-0,s=1,c=2,t=29,pt=0,l=0,sg=0:
    10;1;2;0;29;
    0;255;3;0;9;14735 TSF:MSG:READ,7-7-0,s=2,c=1,t=0,pt=7,l=5,sg=0:37.00
    7;2;1;0;0;37.00
    0;255;3;0;9;14749 TSF:MSG:READ,7-7-0,s=13,c=2,t=2,pt=0,l=0,sg=0:
    7;13;2;0;2;
    0;255;3;0;9;14764 TSF:MSG:READ,7-7-0,s=12,c=1,t=2,pt=1,l=1,sg=0:0
    7;12;1;0;2;0
    0;255;3;0;9;14925 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;19771 TSF:MSG:READ,7-7-0,s=3,c=1,t=0,pt=7,l=5,sg=0:10.00
    7;3;1;0;0;10.00
    0;255;3;0;9;19786 TSF:MSG:READ,7-7-0,s=14,c=2,t=2,pt=0,l=0,sg=0:
    7;14;2;0;2;
    0;255;3;0;9;19801 TSF:MSG:READ,7-7-0,s=13,c=1,t=2,pt=1,l=1,sg=0:0
    7;13;1;0;2;0
    0;255;3;0;9;21699 TSF:MSG:READ,4-4-0,s=25,c=1,t=39,pt=7,l=5,sg=0:2.5
    4;25;1;0;39;2.5
    0;255;3;0;9;21712 TSF:MSG:READ,4-4-0,s=26,c=1,t=38,pt=7,l=5,sg=0:248.6
    4;26;1;0;38;248.6
    0;255;3;0;9;21726 TSF:MSG:READ,4-4-0,s=32,c=1,t=37,pt=2,l=2,sg=0:-68
    4;32;1;0;37;-68
    0;255;3;0;9;21841 TSF:MSG:READ,4-4-0,s=1,c=1,t=17,pt=5,l=4,sg=0:531
    4;1;1;0;17;531
    0;255;3;0;9;21856 TSF:MSG:READ,4-4-0,s=1,c=1,t=24,pt=5,l=4,sg=0:11406945
    4;1;1;0;24;11406945
    0;255;3;0;9;21870 TSF:MSG:READ,4-4-0,s=1,c=1,t=18,pt=7,l=5,sg=0:3168.5959
    4;1;1;0;18;3168.5959
    0;255;3;0;9;24807 TSF:MSG:READ,7-7-0,s=4,c=1,t=0,pt=7,l=5,sg=0:28.50
    7;4;1;0;0;28.50
    0;255;3;0;9;24821 TSF:MSG:READ,7-7-0,s=15,c=2,t=2,pt=0,l=0,sg=0:
    7;15;2;0;2;
    0;255;3;0;9;24836 TSF:MSG:READ,7-7-0,s=14,c=1,t=2,pt=1,l=1,sg=0:0
    7;14;1;0;2;0
    0;255;3;0;9;24851 TSF:MSG:READ,7-7-0,s=20,c=1,t=2,pt=7,l=5,sg=0: 0
    7;20;1;0;2; 0
    0;255;3;0;9;24998 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;29843 TSF:MSG:READ,7-7-0,s=5,c=1,t=0,pt=7,l=5,sg=0:9.00
    7;5;1;0;0;9.00
    0;255;3;0;9;29858 TSF:MSG:READ,7-7-0,s=16,c=2,t=2,pt=0,l=0,sg=0:
    7;16;2;0;2;
    0;255;3;0;9;29873 TSF:MSG:READ,7-7-0,s=15,c=1,t=2,pt=1,l=1,sg=0:0
    7;15;1;0;2;0
    0;255;3;0;9;29949 TSF:MSG:READ,10-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:20.31
    10;0;1;0;0;20.31
    0;255;3;0;9;30063 TSF:MSG:READ,10-10-0,s=2,c=1,t=2,pt=7,l=5,sg=0: 1
    10;2;1;0;2; 1
    0;255;3;0;9;30177 TSF:MSG:READ,10-10-0,s=4,c=1,t=16,pt=7,l=5,sg=0: 0
    10;4;1;0;16; 0
    0;255;3;0;9;30289 TSF:MSG:READ,10-10-0,s=1,c=1,t=45,pt=7,l=5,sg=0:20.5
    10;1;1;0;45;20.5
    0;255;3;0;9;30402 TSF:MSG:READ,10-10-0,s=5,c=1,t=37,pt=2,l=2,sg=0:0
    10;5;1;0;37;0
    0;255;3;0;9;30464 TSF:MSG:READ,10-10-0,s=1,c=2,t=29,pt=0,l=0,sg=0:
    10;1;2;0;29;
    0;255;3;0;9;34881 TSF:MSG:READ,7-7-0,s=18,c=1,t=39,pt=7,l=5,sg=0:0.00
    7;18;1;0;39;0.00
    0;255;3;0;9;34896 TSF:MSG:READ,7-7-0,s=20,c=1,t=2,pt=7,l=5,sg=0:0.00
    7;20;1;0;2;0.00
    0;255;3;0;9;34912 TSF:MSG:READ,7-7-0,s=17,c=2,t=2,pt=0,l=0,sg=0:
    7;17;2;0;2;
    0;255;3;0;9;34926 TSF:MSG:READ,7-7-0,s=16,c=1,t=2,pt=1,l=1,sg=0:0
    7;16;1;0;2;0
    0;255;3;0;9;35074 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;39917 TSF:MSG:READ,7-7-0,s=21,c=1,t=2,pt=7,l=5,sg=0: 1
    7;21;1;0;2; 1
    0;255;3;0;9;39931 TSF:MSG:READ,7-7-0,s=10,c=2,t=2,pt=0,l=0,sg=0:
    7;10;2;0;2;
    0;255;3;0;9;39946 TSF:MSG:READ,7-7-0,s=17,c=1,t=2,pt=1,l=1,sg=0:0
    7;17;1;0;2;0
    0;255;3;0;9;41841 TSF:MSG:READ,4-4-0,s=25,c=1,t=39,pt=7,l=5,sg=0:2.6
    4;25;1;0;39;2.6
    0;255;3;0;9;41854 TSF:MSG:READ,4-4-0,s=26,c=1,t=38,pt=7,l=5,sg=0:248.4
    4;26;1;0;38;248.4
    0;255;3;0;9;41868 TSF:MSG:READ,4-4-0,s=32,c=1,t=37,pt=2,l=2,sg=0:-68
    4;32;1;0;37;-68
    0;255;3;0;9;41985 TSF:MSG:READ,4-4-0,s=1,c=1,t=17,pt=5,l=4,sg=0:540
    4;1;1;0;17;540
    0;255;3;0;9;41998 TSF:MSG:READ,4-4-0,s=1,c=1,t=24,pt=5,l=4,sg=0:11406956
    4;1;1;0;24;11406956
    0;255;3;0;9;42013 TSF:MSG:READ,4-4-0,s=1,c=1,t=18,pt=7,l=5,sg=0:3168.5989
    4;1;1;0;18;3168.5989
    0;255;3;0;9;44953 TSF:MSG:READ,7-7-0,s=14,c=1,t=2,pt=7,l=5,sg=0: 0
    7;14;1;0;2; 0
    0;255;3;0;9;45068 TSF:MSG:READ,7-7-0,s=21,c=1,t=2,pt=7,l=5,sg=0: 1
    7;21;1;0;2; 1
    0;255;3;0;9;45184 TSF:MSG:READ,7-7-0,s=22,c=1,t=2,pt=7,l=5,sg=0: 0
    7;22;1;0;2; 0
    0;255;3;0;9;45298 TSF:MSG:READ,7-7-0,s=18,c=1,t=39,pt=7,l=5,sg=0:0.00
    7;18;1;0;39;0.00
    0;255;3;0;9;45315 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;49974 TSF:MSG:READ,10-10-0,s=0,c=1,t=0,pt=7,l=5,sg=0:20.31
    10;0;1;0;0;20.31
    0;255;3;0;9;49990 TSF:MSG:READ,7-7-0,s=0,c=1,t=0,pt=7,l=5,sg=0:59.50
    7;0;1;0;0;59.50
    0;255;3;0;9;50086 TSF:MSG:READ,10-10-0,s=2,c=1,t=2,pt=7,l=5,sg=0: 0
    10;2;1;0;2; 0
    0;255;3;0;9;50107 TSF:MSG:READ,7-7-0,s=30,c=1,t=45,pt=7,l=5,sg=0:55.0
    7;30;1;0;45;55.0
    0;255;3;0;9;50123 TSF:MSG:READ,7-7-0,s=11,c=2,t=2,pt=0,l=0,sg=0:
    7;11;2;0;2;
    0;255;3;0;9;50138 TSF:MSG:READ,7-7-0,s=10,c=1,t=2,pt=1,l=1,sg=0:0
    7;10;1;0;2;0
    0;255;3;0;9;50152 TSF:MSG:READ,7-7-0,s=6,c=1,t=37,pt=2,l=2,sg=0:-61
    7;6;1;0;37;-61
    0;255;3;0;9;50200 TSF:MSG:READ,10-10-0,s=4,c=1,t=16,pt=7,l=5,sg=0: 0
    10;4;1;0;16; 0
    0;255;3;0;9;50314 TSF:MSG:READ,10-10-0,s=1,c=1,t=45,pt=7,l=5,sg=0:20.5
    10;1;1;0;45;20.5
    0;255;3;0;9;50425 TSF:MSG:READ,10-10-0,s=5,c=1,t=37,pt=2,l=2,sg=0:0
    10;5;1;0;37;0
    0;255;3;0;9;50486 TSF:MSG:READ,10-10-0,s=1,c=2,t=29,pt=0,l=0,sg=0:
    10;1;2;0;29;
    0;255;3;0;9;55026 TSF:MSG:READ,7-7-0,s=1,c=1,t=0,pt=7,l=5,sg=0:54.50
    7;1;1;0;0;54.50
    0;255;3;0;9;55041 TSF:MSG:READ,7-7-0,s=12,c=2,t=2,pt=0,l=0,sg=0:
    7;12;2;0;2;
    0;255;3;0;9;55055 TSF:MSG:READ,7-7-0,s=11,c=1,t=2,pt=1,l=1,sg=0:0
    7;11;1;0;2;0
    0;255;3;0;9;55170 TSF:MSG:READ,7-7-0,s=23,c=1,t=2,pt=1,l=1,sg=0:0
    7;23;1;0;2;0
    0;255;3;0;9;55387 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    0;255;3;0;9;60062 TSF:MSG:READ,7-7-0,s=2,c=1,t=0,pt=7,l=5,sg=0:37.00
    7;2;1;0;0;37.00
    0;255;3;0;9;60078 TSF:MSG:READ,7-7-0,s=13,c=2,t=2,pt=0,l=0,sg=0:
    7;13;2;0;2;
    0;255;3;0;9;60092 TSF:MSG:READ,7-7-0,s=12,c=1,t=2,pt=1,l=1,sg=0:0
    7;12;1;0;2;0
    0;255;3;0;9;61981 TSF:MSG:READ,4-4-0,s=25,c=1,t=39,pt=7,l=5,sg=0:2.3
    4;25;1;0;39;2.3
    0;255;3;0;9;61995 TSF:MSG:READ,4-4-0,s=26,c=1,t=38,pt=7,l=5,sg=0:248.6
    4;26;1;0;38;248.6
    0;255;3;0;9;62008 TSF:MSG:READ,4-4-0,s=32,c=1,t=37,pt=2,l=2,sg=0:-66
    4;32;1;0;37;-66
    0;255;3;0;9;62125 TSF:MSG:READ,4-4-0,s=1,c=1,t=17,pt=5,l=4,sg=0:439
    4;1;1;0;17;439
    0;255;3;0;9;62139 TSF:MSG:READ,4-4-0,s=1,c=1,t=24,pt=5,l=4,sg=0:11406965
    4;1;1;0;24;11406965
    0;255;3;0;9;62153 TSF:MSG:READ,4-4-0,s=1,c=1,t=18,pt=7,l=5,sg=0:3168.6013
    4;1;1;0;18;3168.6013
    0;255;3;0;9;65099 TSF:MSG:READ,7-7-0,s=3,c=1,t=0,pt=7,l=5,sg=0:10.00
    7;3;1;0;0;10.00
    0;255;3;0;9;65114 TSF:MSG:READ,7-7-0,s=14,c=2,t=2,pt=0,l=0,sg=0:
    7;14;2;0;2;
    0;255;3;0;9;65128 TSF:MSG:READ,7-7-0,s=13,c=1,t=2,pt=1,l=1,sg=0:0
    7;13;1;0;2;0
    0;255;3;0;9;65462 TSF:MSG:READ,7-7-0,s=255,c=3,t=1,pt=0,l=0,sg=0:
    7;255;3;0;1;
    

  • Contest Winner

    @njwyborn hm, it looks to me like your gw is not requesting signatures.
    And your gw does not really send anything to the node so there is no signing being done. Your node reports a lot to your gw but as your gw does not require signatures, the node does not sign anything.
    In the start of the log it looks like the GW tries to send something to the node, and it gets a nonce and generates a signature but then it restarts?


  • Contest Winner

    @njwyborn what gw are you running? Is it atmega328p based, then soft signing could make it run short of stack and that can cause very nasty behavior.
    There is some tips for reducing memory footprints in the documentation you could try, but the biggest gain is dropping the debug support so it will cause you to go blind as a bat. But if you can validate the behavior in the controller you could at least see if that helps.
    If you run a atmega328p based gw i suspect this can be the problem. Newest library could tip the ram cup ever so slightly in the wrong direction.


  • Admin

    @anticimex indeed, seems to be a stack issue - see milliseconds counter before the GW reboots:
    0;255;3;0;9;26878 SGN:BND:NONCE=0E92DADC44930DBA963AE05F948FCBCAAD56AD406929AC6E67AAAAAAAAAAAAAA
    0;255;3;0;9;3204178589 SGN:BND:HMAC=7E75749D03A4DDC0AA3504697193B20458089AE4CC74A60874E0D66BC517060A
    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RRNGAS--,REL=255,VER=2.3.1



  • Hi All,

    GW is a Uno Clone At328 based.
    I noticed the restart, and had observed this previously when frantically reflashing on Sunday.
    When "in situ" on the controller, I remove the debug entries (comment out).
    If I should employ an alternate GW base, what would you suggest?
    I would otherwise buy the "official" but I am in the UK, and it looks like having to buy from the US?
    I am using RFM69 series for radio.

    Regards
    Nigel


  • Contest Winner

    @njwyborn I suggest disabling the MY_DEBUG flag to strip all debug logic away from the library. The few lines in your sketch would probably make little difference.
    Here are details on what you can do to increase available RAM/flash: https://www.mysensors.org/apidocs/group__memorysavings.html

    Debug flags are documented here: https://www.mysensors.org/apidocs/group__SerialDebugGrpPub.html


  • Contest Winner

    @tekka yes, I also noticed the dramatic jump there. I highly suspect this is the stack creeping into the "work area". Once the GW is to send data to the node, it goes into a new flow to calculate the signature, more stack is claimed, and boom.
    Removing all prints could help but we are clearly coming very close of loosing atmega328p support in the library due to the amount of features in the library vs the fixed and limited ram/flash of that device.



  • Hi Anticimex,

    Given that things must therefore be approaching the end for this platform, I'll bite the bullet for a Sencebender from the US. It is a bit of a pain, as the duty to be paid will be just a couple of pounds, but the "handling fee" is 12 pounds!, almost doubling the cost of the origional board.

    When the GW booted, there wasn't a splash screen.
    As above, when "in use" the GW has the debugs disabled.

    I am assuming that IF the signing isn't happening, the only obvious way of knowing, is that the "uploads" will cease?

    Regards
    Nigel


  • Contest Winner

    @njwyborn you can always determine if signing takes place at both ends.
    In your case, the GW is signing messages sent to the node but the node is not signing messages to the gw.
    Still, by examining the logs on either the node or the GW you can see that nonces are being sent in either direction which indicate that signing is in play.
    Either side failing as part of the signing could be seen as either a signed message is not received after a nonce has been transmitted, or a nonce is received, a hmac signature is calculated and then the system appears frozen, restarts or acts weirdly (like above).
    Of course this all mean debug need to be turned on at some level at least.
    If it isn't, the only visible effect would be that messages appear lost or nodes/gw appear non responsive.


  • Admin

    @njwyborn Can you post the GW sketch that fails in your setup - did you also try with the 2.3.2-dev branch?



  • GW Sketch, built under 2.3.1. I have not tried any more recent versions.

    Regards

    /**
    * The MySensors Arduino library handles the wireless radio link and protocol
    * between your home built sensors/actuators and HA controller of choice.
    * The sensors forms a self healing radio network with optional repeaters. Each
    * repeater and gateway builds a routing tables in EEPROM which keeps track of the
    * network topology allowing messages to be routed to nodes.
    *
    * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
    * Copyright (C) 2013-2015 Sensnology AB
    * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
    *
    * Documentation: http://www.mysensors.org
    * Support Forum: http://forum.mysensors.org
    *
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * version 2 as published by the Free Software Foundation.
    *
    *******************************
    *
    * DESCRIPTION
    * The ArduinoGateway prints data received from sensors on the serial link.
    * The gateway accepts input on seral which will be sent out on radio network.
    *
    * The GW code is designed for Arduino Nano 328p / 16MHz
    *
    * Wire connections (OPTIONAL):
    * - Inclusion button should be connected between digital pin 3 and GND
    * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series
    *
    * LEDs (OPTIONAL):
    * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs
    * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
    * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
    * - ERR (red) - fast blink on error during transmission error or recieve crc error
    *
    */
    
    // Enable debug prints to serial monitor
    //#define MY_DEBUG
    
    #define MY_SIGNING_SOFT
    #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
    //#define MY_SIGNING_WEAK_SECURITY //  only for debug
    
    // Enable and select radio type attached
    #define MY_RADIO_RFM69
    #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here
    //#define   MY_RFM69_TX_POWER_DBM (13)
    //#define MY_RFM69_MAX_POWER_LEVEL_DBM (13)   // max. TX power 10dBm = 10mW
    //#define MY_IS_RFM69HW // Omit if your RFM is not "H"
    //#define MY_RF69_IRQ_PIN 2
    //#define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN
    #define MY_RFM69_CS_PIN 10 // NSS. Use MY_RF69_SPI_CS for older versions (before 2.2.0)
    
    //#define MY_RFM69_ENABLE_ENCRYPTION
    //#define MY_RFM69_NETWORKID 100  // Default is 100 in lib. Uncomment it and set your preferred network id if needed
    #define   MY_SPLASH_SCREEN_DISABLED
    // Set LOW transmit power level as default, if you have an amplified NRF-module and
    // power your radio separately with a good regulator you can turn up PA level.
    //#define MY_RF24_PA_LEVEL RF24_PA_MAX
    
    // Enable serial gateway
    #define MY_GATEWAY_SERIAL
    
    // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
    #if F_CPU == 8000000L
    #define MY_BAUD_RATE 38400
    #endif
    
    // Enable inclusion mode
    #define MY_INCLUSION_MODE_FEATURE
    // Enable Inclusion mode button on gateway
    #define MY_INCLUSION_BUTTON_FEATURE
    
    // Inverses behavior of inclusion button (if using external pullup)
    //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
    
    // Set inclusion mode duration (in seconds)
    #define MY_INCLUSION_MODE_DURATION 60
    // Digital pin used for inclusion mode button
    #define MY_INCLUSION_MODE_BUTTON_PIN  3
    
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Inverses the behavior of leds
    //#define MY_WITH_LEDS_BLINKING_INVERSE
    
    // Flash leds on rx/tx/err
    // Uncomment to override default HW configurations
    #define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
    #define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
    #define MY_DEFAULT_TX_LED_PIN  7  // tx
    
    #include <MySensors.h>
    
    void setup()
    {
    	// Setup locally attached sensors
    }
    
    void presentation()
    {
    	// Present locally attached sensors
    }
    
    void loop()
    {
    	// Send locally attached sensor data here
    }```

Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 24
  • 2
  • 1
  • 4

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts