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. Signing too heavy for Atmega328 on branch-development. Looking for hints

Signing too heavy for Atmega328 on branch-development. Looking for hints

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 3 Posters 1.2k 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.
  • S Offline
    S Offline
    sineverba
    Hardware Contributor
    wrote on last edited by
    #1

    Hi to all and happy new year!
    I did buy a new RPI3 and I now using itself with a NRF24 PA (ethernet setup gateway).

    I did notice that with branch-development (2.2 rc2) signing is simply... too heavy for atmega328.

    For the nodes that need to be secured (and are powered from wall and not from battery, as the heater relay) I could try the Atmega1284 or nodemcu, but I would mantain also the simplest nodes only with temperature sensors with the atmega328 (and this nodes of course don't need security at all).

    I have some question, that cannot solve reading the forum:

    1 -
    On RC2 if we enable the signing on gateway, need to enable on every node. I'm aware for the flag "MY_SIGNING_WEAK_SECURITY".

    Where need enable this flag? Only on gateway? Only on node? On both? And with this enabled can I remove the signing from some node and leave signing on others?

    2
    "Request signature flag". Is it possible to enable ONLY on secured node and not on gateway? So I can leave the nodes that don't need security free from this flag. What the real scope of requesting a signature? In effect for one or two nodes I would have only the WHITELISTING (and I know that to have whitelist we need enable signing), so it can accept only from my gateway. In effect, I can live without the signature..... or no?

    3
    Using the ./congigure cleans totally previous configure options? Or is better delete also some file (e.g. there is a file .dat created, I don't remember the exact location but if I'm not wrong it mantain all configuration. If I remove it before ./configure is ok to have a perfect new clean installation or no?)

    Thank you very much for the support and for the help!

    mfalkviddM AnticimexA 2 Replies Last reply
    0
    • S sineverba

      Hi to all and happy new year!
      I did buy a new RPI3 and I now using itself with a NRF24 PA (ethernet setup gateway).

      I did notice that with branch-development (2.2 rc2) signing is simply... too heavy for atmega328.

      For the nodes that need to be secured (and are powered from wall and not from battery, as the heater relay) I could try the Atmega1284 or nodemcu, but I would mantain also the simplest nodes only with temperature sensors with the atmega328 (and this nodes of course don't need security at all).

      I have some question, that cannot solve reading the forum:

      1 -
      On RC2 if we enable the signing on gateway, need to enable on every node. I'm aware for the flag "MY_SIGNING_WEAK_SECURITY".

      Where need enable this flag? Only on gateway? Only on node? On both? And with this enabled can I remove the signing from some node and leave signing on others?

      2
      "Request signature flag". Is it possible to enable ONLY on secured node and not on gateway? So I can leave the nodes that don't need security free from this flag. What the real scope of requesting a signature? In effect for one or two nodes I would have only the WHITELISTING (and I know that to have whitelist we need enable signing), so it can accept only from my gateway. In effect, I can live without the signature..... or no?

      3
      Using the ./congigure cleans totally previous configure options? Or is better delete also some file (e.g. there is a file .dat created, I don't remember the exact location but if I'm not wrong it mantain all configuration. If I remove it before ./configure is ok to have a perfect new clean installation or no?)

      Thank you very much for the support and for the help!

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @sineverba I don't know about the other questions but https://www.mysensors.org/apidocs-beta/group__memorysavings.html might be useful to get signing to fit on atmega328.

      S 1 Reply Last reply
      1
      • S sineverba

        Hi to all and happy new year!
        I did buy a new RPI3 and I now using itself with a NRF24 PA (ethernet setup gateway).

        I did notice that with branch-development (2.2 rc2) signing is simply... too heavy for atmega328.

        For the nodes that need to be secured (and are powered from wall and not from battery, as the heater relay) I could try the Atmega1284 or nodemcu, but I would mantain also the simplest nodes only with temperature sensors with the atmega328 (and this nodes of course don't need security at all).

        I have some question, that cannot solve reading the forum:

        1 -
        On RC2 if we enable the signing on gateway, need to enable on every node. I'm aware for the flag "MY_SIGNING_WEAK_SECURITY".

        Where need enable this flag? Only on gateway? Only on node? On both? And with this enabled can I remove the signing from some node and leave signing on others?

        2
        "Request signature flag". Is it possible to enable ONLY on secured node and not on gateway? So I can leave the nodes that don't need security free from this flag. What the real scope of requesting a signature? In effect for one or two nodes I would have only the WHITELISTING (and I know that to have whitelist we need enable signing), so it can accept only from my gateway. In effect, I can live without the signature..... or no?

        3
        Using the ./congigure cleans totally previous configure options? Or is better delete also some file (e.g. there is a file .dat created, I don't remember the exact location but if I'm not wrong it mantain all configuration. If I remove it before ./configure is ok to have a perfect new clean installation or no?)

        Thank you very much for the support and for the help!

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

        @sineverba yes, you can set weak security only on gateway and if you do, you can leave some nodes without signing or encryption enabled. You can also only set the require signatures flag on a specific node and omit it on the gateway. Just be aware that any node not having the request flag, will accept unsigned messages.

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

        S 1 Reply Last reply
        2
        • AnticimexA Anticimex

          @sineverba yes, you can set weak security only on gateway and if you do, you can leave some nodes without signing or encryption enabled. You can also only set the require signatures flag on a specific node and omit it on the gateway. Just be aware that any node not having the request flag, will accept unsigned messages.

          S Offline
          S Offline
          sineverba
          Hardware Contributor
          wrote on last edited by
          #4

          @anticimex said in Signing too heavy for Atmega328 on branch-development. Looking for hints:

          @sineverba yes, you can set weak security only on gateway and if you do, you can leave some nodes without signing or encryption enabled. You can also only set the require signatures flag on a specific node and omit it on the gateway. Just be aware that any node not having the request flag, will accept unsigned messages.

          Thank you. Is it secure to have a node without signature but with whitelisting enabled? It seems right to me, but what on your experience?

          AnticimexA 1 Reply Last reply
          0
          • S sineverba

            @anticimex said in Signing too heavy for Atmega328 on branch-development. Looking for hints:

            @sineverba yes, you can set weak security only on gateway and if you do, you can leave some nodes without signing or encryption enabled. You can also only set the require signatures flag on a specific node and omit it on the gateway. Just be aware that any node not having the request flag, will accept unsigned messages.

            Thank you. Is it secure to have a node without signature but with whitelisting enabled? It seems right to me, but what on your experience?

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

            @sineverba whitelisting depend on signing. Without signing, whitelisting is pointless. The receiver has no way of authenticating the sender

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

            S 1 Reply Last reply
            0
            • mfalkviddM mfalkvidd

              @sineverba I don't know about the other questions but https://www.mysensors.org/apidocs-beta/group__memorysavings.html might be useful to get signing to fit on atmega328.

              S Offline
              S Offline
              sineverba
              Hardware Contributor
              wrote on last edited by sineverba
              #6

              @mfalkvidd Fantastic! 58% of occupied space with DEBUG ENABLED and 31% with debug disabled. I did import the adafruitsi7021 library and watchdog.

              I did disable the splash screen and the signal report!

              Thank you!

              1 Reply Last reply
              0
              • AnticimexA Anticimex

                @sineverba whitelisting depend on signing. Without signing, whitelisting is pointless. The receiver has no way of authenticating the sender

                S Offline
                S Offline
                sineverba
                Hardware Contributor
                wrote on last edited by
                #7

                @anticimex Sorry, maybe I'm not clear. I mean, is it secure to have enabled:

                • signing
                  -whitelisting

                But NO signature request on a node that need to be secured?

                AnticimexA 1 Reply Last reply
                0
                • S sineverba

                  @anticimex Sorry, maybe I'm not clear. I mean, is it secure to have enabled:

                  • signing
                    -whitelisting

                  But NO signature request on a node that need to be secured?

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

                  @sineverba that depend on the flow of data. If your node is a lock, it should require signatures to avoid "rouge" senders to unlock it.
                  If your node is collecting data (is a sensor) which is sent to your gateway (and controller) that affect the controller state in some sense then your gateway should require signatures from that sensor unless the state change is of less importance.
                  Example: a temperature sensor that in the controller just display the temperature, it can be considered less critical. If the sensor trigger some relay or heat pump, it could be considered critical.

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

                  S 1 Reply Last reply
                  0
                  • AnticimexA Anticimex

                    @sineverba that depend on the flow of data. If your node is a lock, it should require signatures to avoid "rouge" senders to unlock it.
                    If your node is collecting data (is a sensor) which is sent to your gateway (and controller) that affect the controller state in some sense then your gateway should require signatures from that sensor unless the state change is of less importance.
                    Example: a temperature sensor that in the controller just display the temperature, it can be considered less critical. If the sensor trigger some relay or heat pump, it could be considered critical.

                    S Offline
                    S Offline
                    sineverba
                    Hardware Contributor
                    wrote on last edited by
                    #9

                    @anticimex OK, much more clear! In effect, I can enable request signature on the gateway. So, ALL nodes need to sign their message, also in the case that we did set on gateway "weak security".

                    So, what do you mean with "[...]then your gateway should require signatures from that sensor[...]" is following:

                    • if applied on a node, only that node require signature
                    • if applied on a gateway, ALL sensors in network need to send with a signature.

                    And, for enable signature, we need enable the signing also. So we return at the problem of heavy sketch (but, in reality, with the flags posted here the sketch is very very light now! https://www.mysensors.org/apidocs-beta/group__memorysavings.html )

                    AnticimexA 1 Reply Last reply
                    0
                    • S sineverba

                      @anticimex OK, much more clear! In effect, I can enable request signature on the gateway. So, ALL nodes need to sign their message, also in the case that we did set on gateway "weak security".

                      So, what do you mean with "[...]then your gateway should require signatures from that sensor[...]" is following:

                      • if applied on a node, only that node require signature
                      • if applied on a gateway, ALL sensors in network need to send with a signature.

                      And, for enable signature, we need enable the signing also. So we return at the problem of heavy sketch (but, in reality, with the flags posted here the sketch is very very light now! https://www.mysensors.org/apidocs-beta/group__memorysavings.html )

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

                      @sineverba not really. If you set the weak flag on the gateway it will only require signatures from nodes that require signatures themselves. This is described in the signing documentation.

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

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


                      29

                      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