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. Controllers
  3. Domoticz
  4. GW with MY_RFM69_ENABLE_ENCRYPTION in Domoticz?

GW with MY_RFM69_ENABLE_ENCRYPTION in Domoticz?

Scheduled Pinned Locked Moved Domoticz
9 Posts 5 Posters 1.3k Views 4 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.
  • alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #1

    Hello,

    I am setting up a new GW with Domoticz.

    The RF version of GW sketch contains:

    // Enable and select radio type attached
    #define MY_RADIO_RFM69
    #define MY_RFM69_NEW_DRIVER
    #define MY_RFM69_ATC_MODE_DISABLED
    //#define MY_DEBUG_VERBOSE_RFM69
    #define MY_RFM69_FREQUENCY RFM69_868MHZ
    #define MY_PARENT_NODE_IS_STATIC
    #define MY_PARENT_NODE_ID 0
    #define MY_RFM69_NETWORKID 90
    #define MY_NODE_ID 2
    #define MY_RFM69_ENABLE_ENCRYPTION
    

    However, despite Domoticz is seeing the GW, it fails to see the node. The node does contain

    #define MY_RFM69_ENABLE_ENCRYPTION
    

    and I have used the same AES key.
    In the Serial monitor I can see that both the sensor and the GW are talking, but the controller cannot understand it.

    Any ideas please?

    1 Reply Last reply
    0
    • nagelcN Offline
      nagelcN Offline
      nagelc
      wrote on last edited by
      #2

      If the clip above is from the Gateway, you are defining MY_NODE_ID 2. Usually the gateway Node ID is 0.

      Do you see anything in the Domoticz log? If you reset the gateway, the domoticz log should show the gateway version and say gateway ready (if you are using the default gateway sketch). If you don't see that, investigate the connection to the gateway.
      If Domoticz sees the gateway, does it see the node present itself when the node is turned on? Should show up in the Domiticz log.

      alexsh1A 1 Reply Last reply
      0
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #3

        The messages will be decrypted by the gateway before they are sent to the controller (Domoticz) so encryption should not affect Domoticz.

        What does the Hardware -> (the mysensors gateway) -> setup page look like?
        What does the devices page look like?
        As already mentioned, what does the domoticz log say?
        What does the gateway log say?

        And yes, the rest of nagelc's questions are also valid :)

        alexsh1A 1 Reply Last reply
        0
        • nagelcN nagelc

          If the clip above is from the Gateway, you are defining MY_NODE_ID 2. Usually the gateway Node ID is 0.

          Do you see anything in the Domoticz log? If you reset the gateway, the domoticz log should show the gateway version and say gateway ready (if you are using the default gateway sketch). If you don't see that, investigate the connection to the gateway.
          If Domoticz sees the gateway, does it see the node present itself when the node is turned on? Should show up in the Domiticz log.

          alexsh1A Offline
          alexsh1A Offline
          alexsh1
          wrote on last edited by alexsh1
          #4

          @nagelc No, this code is from a node.

          I do not see GW READY message as this is an ethernet GW. Domoticz though does recognise the GW and I can ping the GW's IP.

          1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            The messages will be decrypted by the gateway before they are sent to the controller (Domoticz) so encryption should not affect Domoticz.

            What does the Hardware -> (the mysensors gateway) -> setup page look like?
            What does the devices page look like?
            As already mentioned, what does the domoticz log say?
            What does the gateway log say?

            And yes, the rest of nagelc's questions are also valid :)

            alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #5

            @mfalkvidd Let's put it this way, everything works smoothly without encryption. However, as soon as I upload the same GW sketch with encryption (both GW and the node have the same AES key). GW is seen by Domoticz and the node just becomes invisible. I can see there is a successful communication between the node and the GW (sadly I did not save the log). Something fails at the GW level, but you gave me a hint:

            he messages will be decrypted by the gateway before they are sent to the controller
            
            AnticimexA 1 Reply Last reply
            0
            • alexsh1A alexsh1

              @mfalkvidd Let's put it this way, everything works smoothly without encryption. However, as soon as I upload the same GW sketch with encryption (both GW and the node have the same AES key). GW is seen by Domoticz and the node just becomes invisible. I can see there is a successful communication between the node and the GW (sadly I did not save the log). Something fails at the GW level, but you gave me a hint:

              he messages will be decrypted by the gateway before they are sent to the controller
              
              AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #6

              @alexsh1 watch your ram usage. Enabling features cost ram, and that may cause stack corruption because the ram usage could grow into the stack on Arduinos. And that may result in unexpected behavior. So you gw might act up and that may interfere with controller communication in one form or another.

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

              1 Reply Last reply
              1
              • K Offline
                K Offline
                kimot
                wrote on last edited by
                #7

                Encryption Is Pure RFM69 job. So no additional RAM or flash usage. Only initial pconfiguration of RFM.

                AnticimexA 1 Reply Last reply
                0
                • K kimot

                  Encryption Is Pure RFM69 job. So no additional RAM or flash usage. Only initial pconfiguration of RFM.

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

                  @kimot not entirely true. There is some additional code needed to provision the AES key. Granted, it is limited but not nonexistent. What is definite is that controller has no knowledge about node-gw encryption.

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

                  1 Reply Last reply
                  0
                  • alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #9

                    I have abandoned an encryption idea for now as I do not have too much time to troubleshoot it.

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


                    24

                    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