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
    #143

    I am working on a security protocol, and have posted my take on things in the security thread. I will weigh in on this thread once I have verified my design, but so far, only two new message types should be needed, one to request security capabilities and once for capabilities and a nonce. I do not think software based security is a suitable solution due to memory constraints so I am going for a hardware based solution with a pre-shared key. I will publish more concrete examples once I have verified them.

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

      Hi,

      Is there any move on the V2 ? Can we see the actual status and what it is going to look like ?
      Going to a V2 for the Jeedom controller, will like to see it coming with mySensors v2 changes.
      Precisly will like to have a status about :

      • reboot of node without needing a special bootloader (inside the lib will be the best)
      • sending libversion from presentation including for gateway (this is include for nodes, I don't know for gateway)
      • possible of sending V_type used during presentation, no need to wait to send data
      • possible of sending a short desc name for each sensors created (can be helpfull when you create many sensors with same type and the difference is not only the order)
      • possible to send the power source of node, I don't know inside battery or else. This will be very helpful with battery/plug or battery/solar source for exemple. So we can know how much the battery is full but also if the sensor is actually on battery.
      • getConfig to be used for any paramteres instead of units, like this the node can request parameters from the conrtoler (think about a global sketch for a switch that can talk to a relay node, by the controller side you set which node it's controling)

      Can we have a wiki page maybe with an actual status of where is the V2 ? And is there a dev version we can try ?

      hekH 1 Reply Last reply
      1
      • L lunarok

        Hi,

        Is there any move on the V2 ? Can we see the actual status and what it is going to look like ?
        Going to a V2 for the Jeedom controller, will like to see it coming with mySensors v2 changes.
        Precisly will like to have a status about :

        • reboot of node without needing a special bootloader (inside the lib will be the best)
        • sending libversion from presentation including for gateway (this is include for nodes, I don't know for gateway)
        • possible of sending V_type used during presentation, no need to wait to send data
        • possible of sending a short desc name for each sensors created (can be helpfull when you create many sensors with same type and the difference is not only the order)
        • possible to send the power source of node, I don't know inside battery or else. This will be very helpful with battery/plug or battery/solar source for exemple. So we can know how much the battery is full but also if the sensor is actually on battery.
        • getConfig to be used for any paramteres instead of units, like this the node can request parameters from the conrtoler (think about a global sketch for a switch that can talk to a relay node, by the controller side you set which node it's controling)

        Can we have a wiki page maybe with an actual status of where is the V2 ? And is there a dev version we can try ?

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

        @lunarok said:

        Hi,

        Is there any move on the V2 ? Can we see the actual status and what it is going to look like ?

        There has been some delays due to workload. But i hope to finish it eventually. :)

        • reboot of node without needing a special bootloader (inside the lib will be the best)

        Not sure it is possible to reboot an arduino without watchdog enabled (anyone knows any tricks?).

        • sending libversion from presentation including for gateway (this is include for nodes, I don't know for gateway)

        Yep, possible to get version from gateway today.

        • possible of sending V_type used during presentation, no need to wait to send data

        There will be a different setup.

        • possible of sending a short desc name for each sensors created (can be helpfull when you create many sensors with same type and the difference is not only the order)

        Good idea! I'll take that into consideration.

        • possible to send the power source of node, I don't know inside battery or else. This will be very helpful with battery/plug or battery/solar source for exemple. So we can know how much the battery is full but also if the sensor is actually on battery.

        Thats also a good idea. I'll have to think about how it could be incorporated.

        • getConfig to be used for any paramteres instead of units, like this the node can request parameters from the conrtoler (think about a global sketch for a switch that can talk to a relay node, by the controller side you set which node it's controling)

        Config/settings will be a bit different as well.

        Can we have a wiki page maybe with an actual status of where is the V2 ? And is there a dev version we can try ?

        Hmm.. my github account (henrikekblad) will contain the source until I feel it's worth trying out by the community. But there is a part of it I'm waiting for a c++ guru at work helping out with (advanced c++ templating which is a bit over my level of c++ knowledge). Those will hopefully make callbacks (incoming messages) usage awesome.

        The plan is the gateway will be able to accept/push json objects instead of the semicolon separated parameters, Much depends on how memory demanding it becomes.

        axillentA 1 Reply Last reply
        0
        • hekH hek

          @lunarok said:

          Hi,

          Is there any move on the V2 ? Can we see the actual status and what it is going to look like ?

          There has been some delays due to workload. But i hope to finish it eventually. :)

          • reboot of node without needing a special bootloader (inside the lib will be the best)

          Not sure it is possible to reboot an arduino without watchdog enabled (anyone knows any tricks?).

          • sending libversion from presentation including for gateway (this is include for nodes, I don't know for gateway)

          Yep, possible to get version from gateway today.

          • possible of sending V_type used during presentation, no need to wait to send data

          There will be a different setup.

          • possible of sending a short desc name for each sensors created (can be helpfull when you create many sensors with same type and the difference is not only the order)

          Good idea! I'll take that into consideration.

          • possible to send the power source of node, I don't know inside battery or else. This will be very helpful with battery/plug or battery/solar source for exemple. So we can know how much the battery is full but also if the sensor is actually on battery.

          Thats also a good idea. I'll have to think about how it could be incorporated.

          • getConfig to be used for any paramteres instead of units, like this the node can request parameters from the conrtoler (think about a global sketch for a switch that can talk to a relay node, by the controller side you set which node it's controling)

          Config/settings will be a bit different as well.

          Can we have a wiki page maybe with an actual status of where is the V2 ? And is there a dev version we can try ?

          Hmm.. my github account (henrikekblad) will contain the source until I feel it's worth trying out by the community. But there is a part of it I'm waiting for a c++ guru at work helping out with (advanced c++ templating which is a bit over my level of c++ knowledge). Those will hopefully make callbacks (incoming messages) usage awesome.

          The plan is the gateway will be able to accept/push json objects instead of the semicolon separated parameters, Much depends on how memory demanding it becomes.

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

          can we avoid float?
          instead of float a multiplied integer can be used
          for example 34.6 C temperature can be presented as 346 (no dot)

          a single float operation increase HEX size significantly

          @hek what about idea we discussed to have a network with multiple gateways?
          what about adding support for the 2.0 for the nodes be able to have a different BASE address per each gateway?
          this way the future network will allows to have 255 sensors per EACH gateway, not per NETWORK

          sense and drive

          hekH 1 Reply Last reply
          0
          • axillentA axillent

            can we avoid float?
            instead of float a multiplied integer can be used
            for example 34.6 C temperature can be presented as 346 (no dot)

            a single float operation increase HEX size significantly

            @hek what about idea we discussed to have a network with multiple gateways?
            what about adding support for the 2.0 for the nodes be able to have a different BASE address per each gateway?
            this way the future network will allows to have 255 sensors per EACH gateway, not per NETWORK

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

            @axillent

            Yes, configurable base address would be handy if we choose to create an ESP-gateway. It is already supported today but you have to hard code it into MyConfig.h. Would be neat to have this configurable over WiFi.

            Using OTA transmitted floats is optional. I haven't looked so deeply on how/if this will be supported yet in the upcoming version.

            1 Reply Last reply
            0
            • tekkaT Offline
              tekkaT Offline
              tekka
              Admin
              wrote on last edited by
              #148

              Any plans for encryption?

              AnticimexA 1 Reply Last reply
              0
              • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          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