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. 💬 The Sensor Network

💬 The Sensor Network

Scheduled Pinned Locked Moved Announcements
46 Posts 11 Posters 3.0k Views 10 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.
  • F Offline
    F Offline
    frydrik
    wrote on last edited by
    #17

    the problem is that I can't find code examples for LoraWan nodes so I can start this project on LoraWan, first I created my own LoraWan gateways on TTGO LoRa32 SX1276 OLED, and on another module TTGO LoRa32 SX1276 OLED a test node as in the video on youtube https://www.youtube.com/watch?v=T40a51TAMDI&t=401s
    something works but the number of messages that reach the gate are very small in 24 hours I can receive 5-6, the problem I think I miss a gateways with one channel, and the node transmits randomly on that 8 channels, in addition I do not understand how to combine a sketch that reads the pulses from a meter with the loraWan library, I can't find examples of how to do it, that's why I was enchanted by the mysensors community, it's simple to create a node to understand how it works,
    in mysensors I found what I needed + it is a receptive community, if you have experience with LoraWan please guide me how to start creating these nodes, I found how to build a local LoRaWAN® Network Server, and unfortunately here I stopped

    mfalkviddM 1 Reply Last reply
    0
    • F frydrik

      the problem is that I can't find code examples for LoraWan nodes so I can start this project on LoraWan, first I created my own LoraWan gateways on TTGO LoRa32 SX1276 OLED, and on another module TTGO LoRa32 SX1276 OLED a test node as in the video on youtube https://www.youtube.com/watch?v=T40a51TAMDI&t=401s
      something works but the number of messages that reach the gate are very small in 24 hours I can receive 5-6, the problem I think I miss a gateways with one channel, and the node transmits randomly on that 8 channels, in addition I do not understand how to combine a sketch that reads the pulses from a meter with the loraWan library, I can't find examples of how to do it, that's why I was enchanted by the mysensors community, it's simple to create a node to understand how it works,
      in mysensors I found what I needed + it is a receptive community, if you have experience with LoraWan please guide me how to start creating these nodes, I found how to build a local LoRaWAN® Network Server, and unfortunately here I stopped

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

      @frydrik I have multiple years of experience with LoRaWAN, but transferring that experience from one person to another in a forum thread is not possible.

      F 2 Replies Last reply
      0
      • F Offline
        F Offline
        frydrik
        wrote on last edited by
        #19

        to start with loraWan do I need to study the Arduino-LMIC library?

        1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          @frydrik I have multiple years of experience with LoRaWAN, but transferring that experience from one person to another in a forum thread is not possible.

          F Offline
          F Offline
          frydrik
          wrote on last edited by
          #20
          This post is deleted!
          1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @frydrik I have multiple years of experience with LoRaWAN, but transferring that experience from one person to another in a forum thread is not possible.

            F Offline
            F Offline
            frydrik
            wrote on last edited by
            #21

            @mfalkvidd Hi, I have a question regarding the numbering of nodes, as I understood, 254 can be connected to a Gateway, if I configure a node of these 254 as a repeater then at this node they will connect in theory another 254, the question is how the handle can define this number of nodes?
            #define MY_NODE_ID ------ does it work in the range from 1 -254?

            mfalkviddM 1 Reply Last reply
            0
            • F frydrik

              @mfalkvidd Hi, I have a question regarding the numbering of nodes, as I understood, 254 can be connected to a Gateway, if I configure a node of these 254 as a repeater then at this node they will connect in theory another 254, the question is how the handle can define this number of nodes?
              #define MY_NODE_ID ------ does it work in the range from 1 -254?

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

              @frydrik yes MY_NODE_ID can be between 1 and 254. No, repeaters will not allow you to add more nodes to the same MySensors network.

              F 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @frydrik yes MY_NODE_ID can be between 1 and 254. No, repeaters will not allow you to add more nodes to the same MySensors network.

                F Offline
                F Offline
                frydrik
                wrote on last edited by
                #23

                @mfalkvidd thanks for the answer, but I have another question, why can't the number of nodes be increased to more than 254? Is it a hardware limitation or can these values be changed inside libraries?

                skywatchS mfalkviddM 2 Replies Last reply
                0
                • F frydrik

                  @mfalkvidd thanks for the answer, but I have another question, why can't the number of nodes be increased to more than 254? Is it a hardware limitation or can these values be changed inside libraries?

                  skywatchS Offline
                  skywatchS Offline
                  skywatch
                  wrote on last edited by
                  #24

                  @frydrik Don't forget that each node can have up to 255 sensors and you can have multiple networks. So 3 gateways running 3 networks could have 193,548 sensors. Wouldn't that be enough? If not just add another gateway.

                  If you used every channel on an nrf24l01+ you could have 254x254x128 sensors = 8,258,048!

                  F 1 Reply Last reply
                  0
                  • F frydrik

                    @mfalkvidd thanks for the answer, but I have another question, why can't the number of nodes be increased to more than 254? Is it a hardware limitation or can these values be changed inside libraries?

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

                    @frydrik said in 💬 The Sensor Network:

                    @mfalkvidd thanks for the answer, but I have another question, why can't the number of nodes be increased to more than 254? Is it a hardware limitation or can these values be changed inside libraries?

                    Because the MySensors library is designed that way, and because sending larger addresses will mean that messages must be shorter that what's currently supported.

                    But MySensors is open source - anyone with enough skills, time and motivation can change it.

                    F 1 Reply Last reply
                    1
                    • skywatchS skywatch

                      @frydrik Don't forget that each node can have up to 255 sensors and you can have multiple networks. So 3 gateways running 3 networks could have 193,548 sensors. Wouldn't that be enough? If not just add another gateway.

                      If you used every channel on an nrf24l01+ you could have 254x254x128 sensors = 8,258,048!

                      F Offline
                      F Offline
                      frydrik
                      wrote on last edited by
                      #26

                      @skywatch thanks for the answer, I understand that 254 nodes can be connected to a Gateway, and 255 sensors can be connected to each node, the question is how to apply this for reading electric meters where their number is considerably higher than 254, as with a node to read as ex. at least 20 meters?

                      skywatchS zboblamontZ 2 Replies Last reply
                      0
                      • F frydrik

                        @skywatch thanks for the answer, I understand that 254 nodes can be connected to a Gateway, and 255 sensors can be connected to each node, the question is how to apply this for reading electric meters where their number is considerably higher than 254, as with a node to read as ex. at least 20 meters?

                        skywatchS Offline
                        skywatchS Offline
                        skywatch
                        wrote on last edited by
                        #27

                        @frydrik I think you need to spend more time with mysensors to appreciate it's strengths and weaknesses and from that experience decided if it is suitable for your needs.

                        F 1 Reply Last reply
                        1
                        • F frydrik

                          @skywatch thanks for the answer, I understand that 254 nodes can be connected to a Gateway, and 255 sensors can be connected to each node, the question is how to apply this for reading electric meters where their number is considerably higher than 254, as with a node to read as ex. at least 20 meters?

                          zboblamontZ Offline
                          zboblamontZ Offline
                          zboblamont
                          wrote on last edited by
                          #28

                          @frydrik For a population of 500,000, say 200,000 customers, you are into commercial scale data gathering such as EON etc might deploy, a principal driver for the power companies fitting smart meters.
                          I would have to guess in a city of the size you mention, smart meters are already in place...

                          skywatchS 1 Reply Last reply
                          1
                          • zboblamontZ zboblamont

                            @frydrik For a population of 500,000, say 200,000 customers, you are into commercial scale data gathering such as EON etc might deploy, a principal driver for the power companies fitting smart meters.
                            I would have to guess in a city of the size you mention, smart meters are already in place...

                            skywatchS Offline
                            skywatchS Offline
                            skywatch
                            wrote on last edited by
                            #29

                            @zboblamont Absolutely - with hundreds of meters in properties, most of which will have wifi ap's, wifi cameras, bluetooth devices and microwave ovens then it's a really complex situation.

                            1 Reply Last reply
                            0
                            • skywatchS skywatch

                              @frydrik I think you need to spend more time with mysensors to appreciate it's strengths and weaknesses and from that experience decided if it is suitable for your needs.

                              F Offline
                              F Offline
                              frydrik
                              wrote on last edited by
                              #30

                              @skywatch Hello, I'm fascinated by the mysensors project, take off your hat in front of those who develop it, I'm not a programmer, that's why I can ask a lot of stupid questions, but otherwise you can't gain experience, I'm currently programming an arduino I use graphical programming I use a Russian application: flprog is very good for me, you can program an arduino with superficial programming knowledge. Now I'm trying to learn C ++ so I can clear up the code in arduino.

                              skywatchS 1 Reply Last reply
                              0
                              • mfalkviddM mfalkvidd

                                @frydrik said in 💬 The Sensor Network:

                                @mfalkvidd thanks for the answer, but I have another question, why can't the number of nodes be increased to more than 254? Is it a hardware limitation or can these values be changed inside libraries?

                                Because the MySensors library is designed that way, and because sending larger addresses will mean that messages must be shorter that what's currently supported.

                                But MySensors is open source - anyone with enough skills, time and motivation can change it.

                                F Offline
                                F Offline
                                frydrik
                                wrote on last edited by
                                #31

                                @mfalkvidd Hello, can you help me understand, I use the example to read the data on an electric meter, but I have some problems,
                                when I set PULSE_FACTOR with the one indicated on the meter I receive the wrong result, for me the meter has PULSE_FACTOR 5000 and I receive double V_VAR1 with the number of real pulses, that is if the number as ex. 10 pulses the node transmits in Gateway 20. if I set PULSE_FACTOR = with the one indicated on the counter I get a value double with the real one, in the sketch I set PULSE_FACTOR 2500 and now I get real kwh as on the counter, my question is why does V_VAR1 have such values?

                                1 Reply Last reply
                                0
                                • F frydrik

                                  @skywatch Hello, I'm fascinated by the mysensors project, take off your hat in front of those who develop it, I'm not a programmer, that's why I can ask a lot of stupid questions, but otherwise you can't gain experience, I'm currently programming an arduino I use graphical programming I use a Russian application: flprog is very good for me, you can program an arduino with superficial programming knowledge. Now I'm trying to learn C ++ so I can clear up the code in arduino.

                                  skywatchS Offline
                                  skywatchS Offline
                                  skywatch
                                  wrote on last edited by skywatch
                                  #32

                                  @frydrik You don't really need to be a "C++ programmer" to use mysensors. There are a lot of examples that you can learnn from and modify to your needs.

                                  That said I am impressed that a Russian speaker is getting on with this in such a fast way. :)

                                  I hope I don't upset anyone with this, but I still think of mysensors as an amateur/home project.... A learning adventure if you think of it like that. I don't consider it a commercial ready application for large scale implementation.

                                  That is of course just my experience and opinion based on many years using it. Your opinion may be different to mine, but the only way to know is to learn, try, fail, develop and try again...... ;)

                                  F 1 Reply Last reply
                                  1
                                  • skywatchS skywatch

                                    @frydrik You don't really need to be a "C++ programmer" to use mysensors. There are a lot of examples that you can learnn from and modify to your needs.

                                    That said I am impressed that a Russian speaker is getting on with this in such a fast way. :)

                                    I hope I don't upset anyone with this, but I still think of mysensors as an amateur/home project.... A learning adventure if you think of it like that. I don't consider it a commercial ready application for large scale implementation.

                                    That is of course just my experience and opinion based on many years using it. Your opinion may be different to mine, but the only way to know is to learn, try, fail, develop and try again...... ;)

                                    F Offline
                                    F Offline
                                    frydrik
                                    wrote on last edited by
                                    #33

                                    @skywatch Hello, I am from the Republic of Moldova, I am a Romanian speaker, I also learned the Russian language, My country is the poorest country in Europe. I am also trying to implement this remote meter reading project as a pilot project, on my own account, I have no funding here, I have to implement it myself without any resources. so I can't say this is a commercial project

                                    skywatchS 1 Reply Last reply
                                    0
                                    • F frydrik

                                      @skywatch Hello, I am from the Republic of Moldova, I am a Romanian speaker, I also learned the Russian language, My country is the poorest country in Europe. I am also trying to implement this remote meter reading project as a pilot project, on my own account, I have no funding here, I have to implement it myself without any resources. so I can't say this is a commercial project

                                      skywatchS Offline
                                      skywatchS Offline
                                      skywatch
                                      wrote on last edited by
                                      #34

                                      @frydrik OK, so with no funding the only option is to educate yourself little-by-little.

                                      Build a small test system and keep trying it in new locations to see how it goes. Learning by doing is the best and quickest way I think.

                                      Have you considered that signals might be hacked, spoofed or jammed? How will you mitigate such things?

                                      What you want to do may seem simple at first, but there is a lot to think about with such big ambitions.

                                      There is no easy short cut - try things for yourself and if you have problems then post them here and I am sure many people will try and help you.

                                      F 1 Reply Last reply
                                      0
                                      • skywatchS skywatch

                                        @frydrik OK, so with no funding the only option is to educate yourself little-by-little.

                                        Build a small test system and keep trying it in new locations to see how it goes. Learning by doing is the best and quickest way I think.

                                        Have you considered that signals might be hacked, spoofed or jammed? How will you mitigate such things?

                                        What you want to do may seem simple at first, but there is a lot to think about with such big ambitions.

                                        There is no easy short cut - try things for yourself and if you have problems then post them here and I am sure many people will try and help you.

                                        F Offline
                                        F Offline
                                        frydrik
                                        wrote on last edited by
                                        #35

                                        @skywatch Hi, thank you very much for the encouragement, I will try to document the steps I did with pictures with schemes, but I will also think about security.

                                        1 Reply Last reply
                                        0
                                        • skywatchS Offline
                                          skywatchS Offline
                                          skywatch
                                          wrote on last edited by skywatch
                                          #36

                                          @frydrik My approach would be to make one gateway and one node only. It will simplify testing and speed it up a lot!

                                          Decide which bootloader you will use and why (the below list will impact that decision).

                                          Learn how to burn a bootloader and when successful move on to....

                                          Get the code working.

                                          Then add soft or hard signing to messages if you think you need to.
                                          Then add encryption to messages if you think you need to.
                                          Then add wireless firmware updates (FOTA) if you think you need to.

                                          Then, when you have it all as you want it is easy to duplicate it very quickly to lots of nodes. And test again.

                                          Also I suggest manually assigning node ID's as when power goes off they will all come back with the same ID, not randomly assigned ones.

                                          Always save a modified sketch with a new name or verison so if things don't go well you can go back to the last working version.

                                          It is very likely that you will hit many obsticals along the way. You need to remain focused and determined to do what you want. Be warned that it's going to take some time.

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


                                          20

                                          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