Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Whitelist not wirking from sensor to gateway

Whitelist not wirking from sensor to gateway

Scheduled Pinned Locked Moved Troubleshooting
26 Posts 2 Posters 3.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karelsmits
    wrote on last edited by
    #21

    This is my node code regarding signing:

    #define MY_NODE_ID 5
     
    #define MY_DEBUG //!< Enable debug prints to serial monitor
    #define MY_DEBUG_VERBOSE_SIGNING //!< Enable signing related debug prints to serial monitor
    #define MY_NODE_LOCK_FEATURE //!< Enable lockdown of node if suspicious activity is detected
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24 //!< NRF24L01 radio driver
    //#define MY_RADIO_RFM69 //!< RFM69 radio driver
    
    // Select soft/hardware signing method
    #define MY_SIGNING_SOFT //!< Software signing
    //#define MY_SIGNING_ATSHA204 //!< Hardware signing using ATSHA204A
    
    // Enable node whitelisting
    //#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
    // Enable this if you want destination node to sign all messages sent to this node.
    //#define MY_SIGNING_REQUEST_SIGNATURES
    
    
    // SETTINGS FOR MY_SIGNING_SOFT
    #define MY_SIGNING_SOFT_RANDOMSEED_PIN A5 //!< Unconnected analog pin for random seed
    
    // SETTINGS FOR MY_SIGNING_ATSHA204
    #define MY_SIGNING_ATSHA204_PIN 17 //!< A3 - pin where ATSHA204 is attached
    
    1 Reply Last reply
    0
    • K karelsmits

      Hi, thanks for your help so far.
      I am usinf the version you recommended. Now the signing seems to work, because I get a confirmation message from the gateway and the node. For some reason the gateway reports that the connection is dropped, it keeps on happening. What is wrong?
      I am only using signing, not whitelisting
      When signing is disabled, everything is working.
      Just FYI,I did not change anything in MyConfig.h

      Gateway:
      __  __       ____
      |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
      | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
      | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
      |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
              |___/                      2.2.0-beta
      
      17 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0-beta
      49 SGN:PER:OK
      79 SGN:INI:BND OK
      81 TSM:INIT
      82 TSF:WUR:MS=0
      90 TSM:INIT:TSP OK
      91 TSM:INIT:GW MODE
      93 TSM:READY:ID=0,PAR=0,DIS=0
      96 MCO:REG:NOT NEEDED
      IP: 192.168.0.249
      1398 MCO:BGN:STP
      1400 MCO:BGN:INIT OK,TSP=1
      2089 TSF:MSG:READ,9-9-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      2095 TSF:MSG:BC
      2097 TSF:MSG:FPAR REQ,ID=9
      2099 TSF:CKU:OK,FCTRL
      2101 TSF:MSG:GWL OK
      2158 SGN:SKP:MSG CMD=3,TYPE=8
      2164 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      4141 TSF:MSG:READ,9-9-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
      4146 SGN:SKP:MSG CMD=3,TYPE=24
      4149 TSF:MSG:PINGED,ID=9,HP=1
      4151 SGN:SKP:MSG CMD=3,TYPE=25
      4158 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
      4180 TSF:MSG:READ,9-9-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101
      4186 SGN:SKP:MSG CMD=3,TYPE=15
      4189 SGN:PRE:SGN REQ,FROM=9
      4192 SGN:PRE:SGN REQ,TO=9
      4194 SGN:PRE:WHI NREQ,TO=9
      4196 SGN:SKP:MSG CMD=3,TYPE=15
      4201 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101
      4207 SGN:PRE:XMT,TO=9
      4215 TSF:MSG:READ,9-9-0,s=255,c=3,t=16,pt=0,l=0,sg=0:
      4220 SGN:SKP:MSG CMD=3,TYPE=16
      4238 SGN:SKP:MSG CMD=3,TYPE=17
      4246 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE>
      4253 SGN:NCE:XMT,TO=0
      4355 TSF:MSG:READ,9-9-0,s=255,c=0,t=17,pt=0,l=10,sg=1:2.2.0-beta
      4361 SGN:BND:NONCE=4F5AD49AA0F433BE26060A9B1C55F23CC577EA281775DC0B02AAAAAAAAAAAAAA
      4448 SGN:BND:HMAC=78CCB5B0692D9B11DDE1FFB97C0DE0A17040DD6D55BC5BF357163635ACAAE484
      4456 SGN:VER:OK
      4458 TSF:MSG:READ,9-9-0,s=255,c=3,t=16,pt=0,l=0,sg=1:
      4462 SGN:SKP:MSG CMD=3,TYPE=16
      4480 SGN:SKP:MSG CMD=3,TYPE=17
      4486 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
      4492 SGN:NCE:XMT,TO=0
      4594 TSF:MSG:READ,9-9-0,s=255,c=3,t=6,pt=1,l=1,sg=1:0
      4599 SGN:BND:NONCE=A7CA0C7EF09F65DE5D02E9351E48E2A3D6DBF3537ECCF333F4AAAAAAAAAAAAAA
      4686 SGN:BND:HMAC=E731F01B8DF928A36DACBBCDE45651A4B7BE0B1D1248FAB2936CADC0BE85B9AF
      4694 SGN:VER:OK
      6606 TSF:MSG:READ,9-9-0,s=255,c=3,t=16,pt=0,l=0,sg=1:
      6611 SGN:SKP:MSG CMD=3,TYPE=16
      6628 SGN:SKP:MSG CMD=3,TYPE=17
      6634 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
      6641 SGN:NCE:XMT,TO=0
      6743 TSF:MSG:READ,9-9-0,s=255,c=3,t=11,pt=0,l=11,sg=1:Secure Lock
      6749 SGN:BND:NONCE=CFCF368C893918E8B30F5BB9BD05BE2137CE6BC1C9D0A0C46AAAAAAAAAAAAAAA
      6836 SGN:BND:HMAC=E8CCAAE5D1577EFAE089947D520345555DF0A2A7038CDB17E8B9D897C41B5137
      6844 SGN:VER:OK
      6846 TSF:MSG:READ,9-9-0,s=255,c=3,t=16,pt=0,l=0,sg=1:
      6850 SGN:SKP:MSG CMD=3,TYPE=16
      6867 SGN:SKP:MSG CMD=3,TYPE=17
      6874 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
      6880 SGN:NCE:XMT,TO=0
      6985 TSF:MSG:READ,9-9-0,s=255,c=3,t=12,pt=0,l=3,sg=1:1.0
      6990 SGN:BND:NONCE=81349D41F58F0A4219206D8C6A6C5CD822CD125BA0E22C1D08AAAAAAAAAAAAAA
      7077 SGN:BND:HMAC=144CC1F339C5D15BADE41B8CB8EC95FC6AAA37249EB4198169206F8D2116B6C0
      7085 SGN:VER:OK
      7087 TSF:MSG:READ,9-9-0,s=1,c=3,t=16,pt=0,l=0,sg=1:
      7092 SGN:SKP:MSG CMD=3,TYPE=16
      7109 SGN:SKP:MSG CMD=3,TYPE=17
      7114 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
      7121 SGN:NCE:XMT,TO=0
      7224 TSF:MSG:READ,9-9-0,s=1,c=0,t=19,pt=0,l=14,sg=1:SecureActuator
      7230 SGN:BND:NONCE=80764434FE2DB0B952CE5DB13822E08EA76E4CC32848155EBCAAAAAAAAAAAAAA
      7317 SGN:BND:HMAC=7EBFF55E368306D2C1E9A0339DED228E80A0887140052FA13AABF1E5FE533218
      7324 SGN:VER:OK
      7326 TSF:MSG:READ,9-9-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2
      7331 SGN:SKP:MSG CMD=3,TYPE=26
      7334 SGN:SKP:MSG CMD=3,TYPE=16
      7340 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK:
      7346 SGN:SGN:NCE REQ,TO=9
      9250 TSF:MSG:READ,9-9-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2
      9255 SGN:SKP:MSG CMD=3,TYPE=26
      9259 SGN:SKP:MSG CMD=3,TYPE=16
      9264 TSF:MSG:SEND,58-80-9-77,s=67,c=7,t=32,pt=2,l=10,sg=0,ft=0,st=OK:17485
      9270 SGN:SGN:NCE REQ,TO=9
       __  __       ____
      |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
      | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
      | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
      |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
              |___/                      2.2.0-beta
      
      18 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0-beta
      50 SGN:PER:OK
      77 SGN:INI:BND OK
      79 TSM:INIT
      80 TSF:WUR:MS=0
      88 TSM:INIT:TSP OK
      90 TSM:INIT:GW MODE
      91 TSM:READY:ID=0,PAR=0,DIS=0
      94 MCO:REG:NOT NEEDED
      IP: 192.168.0.249
      1397 MCO:BGN:STP
      1398 MCO:BGN:INIT OK,TSP=1
      1988 TSF:MSG:READ,9-9-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2
      1993 SGN:SKP:MSG CMD=3,TYPE=26
      1996 SGN:SKP:MSG CMD=3,TYPE=16
      2000 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
      2007 SGN:SGN:NCE REQ,TO=9
      2030 TSF:MSG:READ,9-9-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
      2035 SGN:SKP:MSG CMD=3,TYPE=17
      2038 SGN:NCE:FROM=9
      2040 SGN:NCE:15!=9 (DROPPED)
       __  __       ____
      |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
      | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
      | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
      |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
              |___/                      2.2.0-beta
      
      18 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0-beta
      51 SGN:PER:OK
      80 SGN:INI:BND OK
      82 TSM:INIT
      83 TSF:WUR:MS=0
      91 TSM:INIT:TSP OK
      92 TSM:INIT:GW MODE
      94 TSM:READY:ID=0,PAR=0,DIS=0
      97 MCO:REG:NOT NEEDED
      IP: 192.168.0.249
      1399 MCO:BGN:STP
      1401 MCO:BGN:INIT OK,TSP=1
      1956 TSF:MSG:READ,9-9-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2
      1961 SGN:SKP:MSG CMD=3,TYPE=26
      1965 SGN:SKP:MSG CMD=3,TYPE=16
      1969 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
      1975 SGN:SGN:NCE REQ,TO=9
      1998 TSF:MSG:READ,9-9-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
      2003 SGN:SKP:MSG CMD=3,TYPE=17
      2007 SGN:NCE:FROM=9
      2009 SGN:NCE:7!=9 (DROPPED)
       __  __       ____
      |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
      | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
      | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
      |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
              |___/                      2.2.0-beta
      
      18 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0-beta
      51 SGN:PER:OK
      79 SGN:INI:BND OK
      81 TSM:INIT
      82 TSF:WUR:MS=0
      90 TSM:INIT:TSP OK
      92 TSM:INIT:GW MODE
      94 TSM:READY:ID=0,PAR=0,DIS=0
      96 MCO:REG:NOT NEEDED
      IP: 192.168.0.249
      1399 MCO:BGN:STP
      1401 MCO:BGN:INIT OK,TSP=1
      1965 TSF:MSG:READ,9-9-0,s=255,c=3,t=16,pt=0,l=0,sg=1:
      1969 SGN:SKP:MSG CMD=3,TYPE=16
      1986 SGN:SKP:MSG CMD=3,TYPE=17
      1991 TSF:MSG:SEND,0-0-9-9,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE>
      1998 SGN:NCE:XMT,TO=0
      2101 TSF:MSG:READ,9-9-0,s=255,c=3,t=23,pt=0,l=3,sg=1:LDB
      2107 SGN:BND:NONCE=82C773EAE20327A3D8AF62421F246E67B56C3B228CA6370164AAAAAAAAAAAAAA
      2194 SGN:BND:HMAC=52A2F9D7C90A5A8EB3B5820C654689041561D8FB42BCE89A7B9A91B3D73353E2
      2201 SGN:VER:OK
      
      Node:
      __  __       ____
      |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
      | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
      | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
      |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
              |___/                      2.2.0-beta
      
      17 MCO:BGN:INIT NODE,CP=RNNNAS--,VER=2.2.0-beta
      49 SGN:PER:OK
      77 SGN:INI:BND OK
      79 TSM:INIT
      80 TSF:WUR:MS=0
      88 TSM:INIT:TSP OK
      89 TSF:SID:OK,ID=9
      91 TSM:FPAR
      92 SGN:SGN:NREQ=255
      129 TSF:MSG:SEND,9-9-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2137 !TSM:FPAR:NO REPLY
      2139 TSM:FPAR
      2140 SGN:SGN:NREQ=255
      2177 TSF:MSG:SEND,9-9-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      4185 !TSM:FPAR:NO REPLY
      4187 TSM:FPAR
      4188 SGN:SGN:NREQ=255
      4225 TSF:MSG:SEND,9-9-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      4265 TSF:MSG:READ,0-0-9,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      4270 SGN:SKP:MSG CMD=3,TYPE=8
      4273 TSF:MSG:FPAR OK,ID=0,D=1
      6233 TSM:FPAR:OK
      6234 TSM:ID
      6235 TSM:ID:OK
      6237 TSM:UPL
      6238 SGN:SKP:MSG CMD=3,TYPE=24
      6242 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
      6259 TSF:MSG:READ,0-0-9,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      6263 SGN:SKP:MSG CMD=3,TYPE=25
      6266 TSF:MSG:PONG RECV,HP=1
      6269 TSM:UPL:OK
      6270 TSM:READY:ID=9,PAR=0,DIS=1
      6274 SGN:PRE:SGN REQ
      6276 SGN:PRE:WHI NREQ
      6278 SGN:SKP:MSG CMD=3,TYPE=15
      6282 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101
      6289 SGN:PRE:XMT,TO=0
      6291 SGN:PRE:WAIT GW
      6301 TSF:MSG:READ,0-0-9,s=255,c=3,t=15,pt=6,l=2,sg=0:0101
      6307 SGN:SKP:MSG CMD=3,TYPE=15
      6309 SGN:PRE:SGN REQ,FROM=0
      6312 SGN:SKP:MSG CMD=3,TYPE=16
      6317 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK:
      6323 SGN:SGN:NCE REQ,TO=0
      6347 TSF:MSG:READ,0-0-9,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE>
      6352 SGN:SKP:MSG CMD=3,TYPE=17
      6355 SGN:NCE:FROM=0
      6358 SGN:BND:NONCE=4F5AD49AA0F433BE26060A9B1C55F23CC577EA281775DC0B02AAAAAAAAAAAAAA
      6445 SGN:BND:HMAC=78CCB5B0692D9B11DDE1FFB97C0DE0A17040DD6D55BC5BF357163635ACAAE484
      6452 SGN:SGN:SGN
      6456 TSF:MSG:SEND,9-9-0-0,s=255,c=0,t=17,pt=0,l=10,sg=1,ft=0,st=OK:2.2.0-beta
      6463 SGN:SKP:MSG CMD=3,TYPE=16
      6469 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK:
      6475 SGN:SGN:NCE REQ,TO=0
      6586 TSF:MSG:READ,0-0-9,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE>
      6592 SGN:SKP:MSG CMD=3,TYPE=17
      6594 SGN:NCE:FROM=0
      6596 SGN:BND:NONCE=A7CA0C7EF09F65DE5D02E9351E48E2A3D6DBF3537ECCF333F4AAAAAAAAAAAAAA
      6684 SGN:BND:HMAC=E731F01B8DF928A36DACBBCDE45651A4B7BE0B1D1248FAB2936CADC0BE85B9AF
      6691 SGN:SGN:SGN
      6695 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=6,pt=1,l=1,sg=1,ft=0,st=OK:0
      8702 SGN:SKP:MSG CMD=3,TYPE=16
      8708 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK:
      8714 SGN:SGN:NCE REQ,TO=0
      8734 TSF:MSG:READ,0-0-9,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE>
      8740 SGN:SKP:MSG CMD=3,TYPE=17
      8743 SGN:NCE:FROM=0
      8745 SGN:BND:NONCE=CFCF368C893918E8B30F5BB9BD05BE2137CE6BC1C9D0A0C46AAAAAAAAAAAAAAA
      8833 SGN:BND:HMAC=E8CCAAE5D1577EFAE089947D520345555DF0A2A7038CDB17E8B9D897C41B5137
      8840 SGN:SGN:SGN
      8844 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=11,pt=0,l=11,sg=1,ft=0,st=OK:Secure Lock
      8851 SGN:SKP:MSG CMD=3,TYPE=16
      8857 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK:
      8863 SGN:SGN:NCE REQ,TO=0
      8974 TSF:MSG:READ,0-0-9,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE>
      8980 SGN:SKP:MSG CMD=3,TYPE=17
      8982 SGN:NCE:FROM=0
      8984 SGN:BND:NONCE=81349D41F58F0A4219206D8C6A6C5CD822CD125BA0E22C1D08AAAAAAAAAAAAAA
      9071 SGN:BND:HMAC=144CC1F339C5D15BADE41B8CB8EC95FC6AAA37249EB4198169206F8D2116B6C0
      9079 SGN:SGN:SGN
      9086 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=12,pt=0,l=3,sg=1,ft=0,st=OK:1.0
      9093 SGN:SKP:MSG CMD=3,TYPE=16
      9098 TSF:MSG:SEND,9-9-0-0,s=1,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK:
      9104 SGN:SGN:NCE REQ,TO=0
      9216 TSF:MSG:READ,0-0-9,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE>
      9221 SGN:SKP:MSG CMD=3,TYPE=17
      9224 SGN:NCE:FROM=0
      9226 SGN:BND:NONCE=80764434FE2DB0B952CE5DB13822E08EA76E4CC32848155EBCAAAAAAAAAAAAAA
      9313 SGN:BND:HMAC=7EBFF55E368306D2C1E9A0339DED228E80A0887140052FA13AABF1E5FE533218
      9320 SGN:SGN:SGN
      9324 TSF:MSG:SEND,9-9-0-0,s=1,c=0,t=19,pt=0,l=14,sg=1,ft=0,st=OK:SecureActuator
      9332 MCO:REG:REQ
      9333 SGN:SKP:MSG CMD=3,TYPE=26
      9339 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=26,pt=1,l=1,sg=1,ft=0,st=OK:2
      9441 TSF:MSG:READ,0-0-9,s=255,c=3,t=16,pt=0,l=0,sg=1:
      9445 !TSF:MSG:PVER,1=2
      11346 SGN:SKP:MSG CMD=3,TYPE=26
      11352 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=26,pt=1,l=1,sg=1,ft=0,st=OK:2
      11364 TSF:MSG:READ,58-80-77,s=67,c=7,t=32,pt=2,l=10,sg=0:17485
      11369 !TSF:MSG:PVER,3=2
      13358 SGN:SKP:MSG CMD=3,TYPE=26
      13363 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=26,pt=1,l=1,sg=1,ft=0,st=OK:2
      13374 TSF:MSG:READ,0-0-9,s=255,c=3,t=16,pt=0,l=0,sg=0:
      13379 SGN:SKP:MSG CMD=3,TYPE=16
      13382 SGN:NCE:LEFT=4
      13399 SGN:SKP:MSG CMD=3,TYPE=17
      13404 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE>
      13411 SGN:NCE:XMT,TO=9
      15369 SGN:SKP:MSG CMD=3,TYPE=26
      15374 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=26,pt=1,l=1,sg=1,ft=0,st=OK:2
      15385 TSF:MSG:READ,0-0-9,s=255,c=3,t=16,pt=0,l=0,sg=0:
      15390 SGN:SKP:MSG CMD=3,TYPE=16
      15393 SGN:NCE:LEFT=3
      15410 SGN:SKP:MSG CMD=3,TYPE=17
      15415 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE>
      15422 SGN:NCE:XMT,TO=9
      17382 MCO:NLK:NODE LOCKED. TO UNLOCK, GND PIN 14 AND RESET
      17387 SGN:SKP:MSG CMD=3,TYPE=16
      17392 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK:
      17398 SGN:SGN:NCE REQ,TO=0
      17420 TSF:MSG:READ,0-0-9,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE>
      17425 SGN:SKP:MSG CMD=3,TYPE=17
      17428 SGN:NCE:FROM=0
      17430 SGN:BND:NONCE=82C773EAE20327A3D8AF62421F246E67B56C3B228CA6370164AAAAAAAAAAAAAA
      17517 SGN:BND:HMAC=52A2F9D7C90A5A8EB3B5820C654689041561D8FB42BCE89A7B9A91B3D73353E2
      17525 SGN:SGN:SGN
      17529 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=23,pt=0,l=3,sg=1,ft=0,st=OK:LDB
      17536 MCO:NLK:TSL
      

      Thank you

      AnticimexA Offline
      AnticimexA Offline
      Anticimex
      Contest Winner
      wrote on last edited by
      #22

      @karelsmits on beta with all debugging enabled and signing, code gets so large that the stack becomes too small. This can cause "cheap" gateways to crash and reboot. I am guessing you run some atmga328p based gw right?
      Try to disable at least the verbose debug, possible all debug on the GW and it should run better.

      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karelsmits
        wrote on last edited by
        #23

        Dear Anticimex,
        Thank you so much for helping out.
        This is what I had to do to solve this:
        I used the development edition of mysensors, I had to disable debugging, because indeed I use cheap boards. Then I also had to use the personalizer from the development and not change anything in the config file.
        I just have 1 more question for now. Everything is secured for now, the only thing which isn’t, according to my understanding, is that any controller could communicate with my Ethernet gateway. Of course I could specify the ip address of the controller I want to use in the Ethernet gateway ino file configurations, but an ip address could easily be “doubled” either by causing an ip-conflict, or just plugging out or somehow disabling my controller.
        So, the question is; how can a code or something be specified, besides the ipaddress, in the gateway. And with that security code only, the gateway will be able to be controlled by a controller device like eg Domoticz.
        .Thank you.

        AnticimexA 1 Reply Last reply
        0
        • K karelsmits

          Dear Anticimex,
          Thank you so much for helping out.
          This is what I had to do to solve this:
          I used the development edition of mysensors, I had to disable debugging, because indeed I use cheap boards. Then I also had to use the personalizer from the development and not change anything in the config file.
          I just have 1 more question for now. Everything is secured for now, the only thing which isn’t, according to my understanding, is that any controller could communicate with my Ethernet gateway. Of course I could specify the ip address of the controller I want to use in the Ethernet gateway ino file configurations, but an ip address could easily be “doubled” either by causing an ip-conflict, or just plugging out or somehow disabling my controller.
          So, the question is; how can a code or something be specified, besides the ipaddress, in the gateway. And with that security code only, the gateway will be able to be controlled by a controller device like eg Domoticz.
          .Thank you.

          AnticimexA Offline
          AnticimexA Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #24

          @karelsmits great that you got it up and running at last!
          Regarding gateway security, the security of the library is limited to the OTA parts. It is assumed that you connect your gateway to a secure environment. Your LAN or USB host. If criminals can access your LAN you have a bigger problem than somebody spoofing your controller

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          1 Reply Last reply
          0
          • K Offline
            K Offline
            karelsmits
            wrote on last edited by karelsmits
            #25

            when it says in the gateway code:

            // The MAC address can be anything you want but should be unique on your network.
            // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
            // Note that most of the Ardunio examples use  "DEAD BEEF FEED" for the MAC address.
            //#define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
            

            which mac address is this referring to? the gateway? the controller?
            And what happens if it doesn't match?

            thanks

            AnticimexA 1 Reply Last reply
            0
            • K karelsmits

              when it says in the gateway code:

              // The MAC address can be anything you want but should be unique on your network.
              // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
              // Note that most of the Ardunio examples use  "DEAD BEEF FEED" for the MAC address.
              //#define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
              

              which mac address is this referring to? the gateway? the controller?
              And what happens if it doesn't match?

              thanks

              AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #26

              @karelsmits this is rather off topic. I suggest you move that question to a different thread as it has no relation to signing or security.

              Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              19

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular