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. Feature Requests
  3. LEACH Protocol

LEACH Protocol

Scheduled Pinned Locked Moved Feature Requests
17 Posts 5 Posters 3.4k Views 5 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #2

    Have you thought about what kind of radio/frequency do you want to use? What speed and range? I don't know if this is the right forum for your problem because this is about an already developed protocol

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SebastianB
      wrote on last edited by
      #3

      Hi, thank you for your reply. On this stage radio/frequency, speed and range is not so important. First I just want to teach myself how to implement it on hardware - to see it working - then I would made a real working prototype with a knowledge that I acquire. Is this possible on your hardware to create a Hierarchical wireless sensor network or if not could you advise me something where I can find tech to do this?

      Best regards,
      Sebastian

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #4

        Mysensors is hierarchical so the radio it uses could be used also for your project, but I can't help you more than this, I am not into programming down to the low level needed for this kind of protocol

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SebastianB
          wrote on last edited by
          #5

          Ok... I only have two question

          -Can you guide me where I can find the desription how you network works? (a more detail specification)
          -Can mysensors be change at low level or is this just like - you can gather information but the network will work in a specific way? Like Zigbee....

          Best regards,
          Sebastian

          AWIA 1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #6

            Mysensors library is on github so you can take a look at the code, there is also some documentation on the main site

            1 Reply Last reply
            0
            • S SebastianB

              Ok... I only have two question

              -Can you guide me where I can find the desription how you network works? (a more detail specification)
              -Can mysensors be change at low level or is this just like - you can gather information but the network will work in a specific way? Like Zigbee....

              Best regards,
              Sebastian

              AWIA Offline
              AWIA Offline
              AWI
              Hero Member
              wrote on last edited by AWI
              #7

              @SebastianB For what I know of LEACH its abstraction kind of replaces the MySensors layer. MySensors handles the network topology (routing, repeating, forwarding) . I guess you can learn a lot from how MySensors handles the different radio protocols (rfm24 etc.) but choose to build on the radio interface of rfm24/69

              S 1 Reply Last reply
              0
              • AnticimexA Offline
                AnticimexA Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #8

                From my understanding, LEACH protocol would replace the MySensors protocol, so technically it would not be an additional feature.
                I do think it would work just fine on the same hw the MySensors protocol supports, but it would be a completely separate network which would not leverage any mysensors functionality. But perhaps some of the drivers could be used.
                It is not in the roadmap of MySensors to support multiple protocols. The MySensors protocol is the core of the whole MySensors library.

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

                S 1 Reply Last reply
                0
                • AWIA AWI

                  @SebastianB For what I know of LEACH its abstraction kind of replaces the MySensors layer. MySensors handles the network topology (routing, repeating, forwarding) . I guess you can learn a lot from how MySensors handles the different radio protocols (rfm24 etc.) but choose to build on the radio interface of rfm24/69

                  S Offline
                  S Offline
                  SebastianB
                  wrote on last edited by
                  #9

                  @AWI Some function of mySensors are very similar - like they are hierarhical. Tell me - is there is a phisical difference between nodes and reapeting nodes? Or is this only "software"?

                  AWIA 1 Reply Last reply
                  0
                  • gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #10

                    No hw differences just software

                    S 1 Reply Last reply
                    0
                    • S SebastianB

                      @AWI Some function of mySensors are very similar - like they are hierarhical. Tell me - is there is a phisical difference between nodes and reapeting nodes? Or is this only "software"?

                      AWIA Offline
                      AWIA Offline
                      AWI
                      Hero Member
                      wrote on last edited by AWI
                      #11

                      @SebastianB Software only but like @Anticimex mentioned LEACH would replace the MySensors networking. However you could use the serial protocol or MQTT for message encoding

                      1 Reply Last reply
                      0
                      • AnticimexA Anticimex

                        From my understanding, LEACH protocol would replace the MySensors protocol, so technically it would not be an additional feature.
                        I do think it would work just fine on the same hw the MySensors protocol supports, but it would be a completely separate network which would not leverage any mysensors functionality. But perhaps some of the drivers could be used.
                        It is not in the roadmap of MySensors to support multiple protocols. The MySensors protocol is the core of the whole MySensors library.

                        S Offline
                        S Offline
                        SebastianB
                        wrote on last edited by
                        #12

                        @Anticimex Yes that is correct. I just want to change drivers and sensors to be phisically the same - but implement rounds, gathering informations in different clusters, and add changing functions of nodes - in one round they are cluster head nodes in another a normal node....
                        Yes I understand. I just want to make LEACH phisical - because most of research is about simulations, and many people are creating garbage articles about it...
                        If I may ask you what harware would you propose?

                        AnticimexA gohanG 2 Replies Last reply
                        0
                        • gohanG gohan

                          No hw differences just software

                          S Offline
                          S Offline
                          SebastianB
                          wrote on last edited by
                          #13

                          @gohan Ok that make my work easier. Thanks for your reply.

                          1 Reply Last reply
                          0
                          • S SebastianB

                            @Anticimex Yes that is correct. I just want to change drivers and sensors to be phisically the same - but implement rounds, gathering informations in different clusters, and add changing functions of nodes - in one round they are cluster head nodes in another a normal node....
                            Yes I understand. I just want to make LEACH phisical - because most of research is about simulations, and many people are creating garbage articles about it...
                            If I may ask you what harware would you propose?

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

                            @SebastianB you can see on the main site what hardware is supported by mysensors. I am not familiar with the LEACH protocol so I don't know if the has particular requirements on drivers and hardware. This site and forum is specific to mysensors so there is not much information on other technologies (for natural reasons).

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

                            1 Reply Last reply
                            0
                            • S SebastianB

                              @Anticimex Yes that is correct. I just want to change drivers and sensors to be phisically the same - but implement rounds, gathering informations in different clusters, and add changing functions of nodes - in one round they are cluster head nodes in another a normal node....
                              Yes I understand. I just want to make LEACH phisical - because most of research is about simulations, and many people are creating garbage articles about it...
                              If I may ask you what harware would you propose?

                              gohanG Offline
                              gohanG Offline
                              gohan
                              Mod
                              wrote on last edited by
                              #15

                              @SebastianB Keep in mind that a repeater node can not sleep or it will not receive messages and so it will use more power and if I understood correctly how LEACH works all nodes are "repeaters" on a rotation basis. I don't know if it will be a winning strategy. Also commercial products like zwave use a mesh network but only powered nodes act as "repeaters".

                              S 1 Reply Last reply
                              0
                              • gohanG gohan

                                @SebastianB Keep in mind that a repeater node can not sleep or it will not receive messages and so it will use more power and if I understood correctly how LEACH works all nodes are "repeaters" on a rotation basis. I don't know if it will be a winning strategy. Also commercial products like zwave use a mesh network but only powered nodes act as "repeaters".

                                S Offline
                                S Offline
                                SebastianB
                                wrote on last edited by SebastianB
                                #16

                                @gohan LEACH works like this -> the head nodes are choosen, normal nodes connect to them creating clusters. The normal nodes have special "time slots" (TDMA). Normal nodes transmit data in time that was set for them by head nodes. So for the time where nobody is transmiting - the antenas are turned off to save the energy. It is all mostly based on synchronization. After this step another group of heads nodes are choosen.... It may be - I also can check it and send you my observation. The "repeates" like you call them - they are choosen in every round - differend sensor - so the use of the energy is balanced. If the "repeater" die in one round in next round someone else will take his place.... My project is to create a wirelss sensor network that is created from cheap nodes - to observe enviroment... Implementation - could be by plane - so we will not know where they really are but only know the region - they will create a grid and try to gather efficiently information... If they die we just drop another group of sensors - for example to gather a information about fire in forests....

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  imen zidi
                                  wrote on last edited by
                                  #17

                                  hey guys!! I need your help please, can anyone give me the C++ code of LEACH protocol? I need to known how the rounds are implemented .

                                  I would be greatful.
                                  Imen

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


                                  17

                                  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