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. Announcements
  3. 2.0 Discussion: Units, sensor types and protocol

2.0 Discussion: Units, sensor types and protocol

Scheduled Pinned Locked Moved Announcements
170 Posts 23 Posters 83.8k Views 7 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.
  • AnticimexA Offline
    AnticimexA Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #149
    This post is deleted!
    1 Reply Last reply
    0
    • daulagariD Offline
      daulagariD Offline
      daulagari
      Hero Member
      wrote on last edited by
      #150

      what benefit is there from encryption vs signing in the MySensors case?

      If you have a lock or door sensor do you want others to know when it is opened or closed?

      Signing is quite expensive if you look at additional payload size, you need a big counter to prevent replay and a big MAC to prevent attacks. I think that when encrypting things you can do it with the same additional payload and maybe even a less.

      1 Reply Last reply
      0
      • AnticimexA Offline
        AnticimexA Offline
        Anticimex
        Contest Winner
        wrote on last edited by
        #151
        This post is deleted!
        1 Reply Last reply
        0
        • daulagariD Offline
          daulagariD Offline
          daulagari
          Hero Member
          wrote on last edited by
          #152

          Yes, signing, when properly done, is for sure a good begin.

          How many bytes are you using for the truncated MAC and nonce?

          The AES block size is 128 bytes, so 16 bytes so I do not see why that would not fit.

          Encryption is already some kind of authentication is a sense that if you can successfully decode the message you can be sure that the other side knows the shared secret, just like in the cause of your SHA25-HMAC.

          1 Reply Last reply
          0
          • daulagariD Offline
            daulagariD Offline
            daulagari
            Hero Member
            wrote on last edited by
            #153

            Would be good to move the last five message into a separate thread...

            1 Reply Last reply
            0
            • AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #154
              This post is deleted!
              1 Reply Last reply
              0
              • AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #155
                This post is deleted!
                hekH 1 Reply Last reply
                0
                • AnticimexA Anticimex

                  This post is deleted!

                  hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #156

                  I'm afraid I can only fork a topic int two threads. Haven't found a way to move posts to another thread/topic.

                  1 Reply Last reply
                  0
                  • AnticimexA Offline
                    AnticimexA Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #157
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • tekkaT tekka

                      Any plans for encryption?

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

                      @tekka Please see the discussion on security.

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        lunarok
                        wrote on last edited by
                        #159

                        Hi,

                        A new wish. Possible to have the network gateway listening for nodes also on the ethernet network. Looking for ethernet nodes inside the electric panel. No RF, no security break :)

                        1 Reply Last reply
                        0
                        • axillentA Offline
                          axillentA Offline
                          axillent
                          Mod
                          wrote on last edited by
                          #160

                          A support for multi-gateway setup is needed. Currently it is required to hardcode radio-channel or base-address for different segments-different gateways

                          sense and drive

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            marceloaqno
                            Code Contributor
                            wrote on last edited by
                            #161

                            There is a solution for multi-gateway that I'm working to port it to the development branch which could use the same radio channel and also to have sensors at gateway node.

                            axillentA 1 Reply Last reply
                            0
                            • M marceloaqno

                              There is a solution for multi-gateway that I'm working to port it to the development branch which could use the same radio channel and also to have sensors at gateway node.

                              axillentA Offline
                              axillentA Offline
                              axillent
                              Mod
                              wrote on last edited by
                              #162

                              @celonunes what kind of a solution it will be?
                              will it be possible to route messages between nodes managed by different gateways?

                              sense and drive

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                marceloaqno
                                Code Contributor
                                wrote on last edited by
                                #163

                                Gateway become normal node, with an id(1-254), like a repeater. Address 0 become like a virtual address which is used when a node wants to send a message to the controller.
                                This solution will give more redundancy to the network but the same limitations apply, like the max of 254 per network.

                                axillentA 1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  marceloaqno
                                  Code Contributor
                                  wrote on last edited by marceloaqno
                                  #164

                                  In the case raised by @lunarok, I'm not sure it will fit.

                                  1 Reply Last reply
                                  0
                                  • M marceloaqno

                                    Gateway become normal node, with an id(1-254), like a repeater. Address 0 become like a virtual address which is used when a node wants to send a message to the controller.
                                    This solution will give more redundancy to the network but the same limitations apply, like the max of 254 per network.

                                    axillentA Offline
                                    axillentA Offline
                                    axillent
                                    Mod
                                    wrote on last edited by
                                    #165

                                    @celonunes said:

                                    Gateway become normal node, with an id(1-254), like a repeater. Address 0 become like a virtual address which is used when a node wants to send a message to the controller.
                                    This solution will give more redundancy to the network but the same limitations apply, like the max of 254 per network.

                                    OK. But how this will prevent conflicts on the air between nodes connected to different gateways and having same radio channel and BASE_ADDRESS?

                                    sense and drive

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      marceloaqno
                                      Code Contributor
                                      wrote on last edited by
                                      #166

                                      Each node will continue to have a unique id in the network.
                                      The controller would have additional work to map nodes to their proper gateway, and this could make the whole idea into something impracticable depending on the controller software.

                                      axillentA 1 Reply Last reply
                                      0
                                      • M marceloaqno

                                        Each node will continue to have a unique id in the network.
                                        The controller would have additional work to map nodes to their proper gateway, and this could make the whole idea into something impracticable depending on the controller software.

                                        axillentA Offline
                                        axillentA Offline
                                        axillent
                                        Mod
                                        wrote on last edited by
                                        #167

                                        @celonunes will you keep a limit 8 bit for ID?

                                        currently with multi-gateway setup I have N * 255 address space, where N is a number of gateways

                                        sense and drive

                                        M 1 Reply Last reply
                                        0
                                        • axillentA axillent

                                          @celonunes will you keep a limit 8 bit for ID?

                                          currently with multi-gateway setup I have N * 255 address space, where N is a number of gateways

                                          M Offline
                                          M Offline
                                          marceloaqno
                                          Code Contributor
                                          wrote on last edited by
                                          #168

                                          @axillent said:

                                          @celonunes will you keep a limit 8 bit for ID?

                                          currently with multi-gateway setup I have N * 255 address space, where N is a number of gateways

                                          Yes.
                                          Your solution seems interesting, do you have some published code of it?

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


                                          15

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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