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 2.9k 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.
  • talhatecT talhatec

    If I have multiple repeater nodes, is there a way to force a child node to got to a repeater Node and not to the GW? I have tried to use the setDestination function but that still goes via GW.

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

    @talhatec setDestination sets final destination, not intermediate destination.

    Use MY_PARENT_NODE_ID and MY_PARENT_NODE_IS_STATIC to set static routing.

    talhatecT 1 Reply Last reply
    0
    • mfalkviddM mfalkvidd

      @talhatec setDestination sets final destination, not intermediate destination.

      Use MY_PARENT_NODE_ID and MY_PARENT_NODE_IS_STATIC to set static routing.

      talhatecT Offline
      talhatecT Offline
      talhatec
      wrote on last edited by
      #8

      @mfalkvidd I will try this out today and see if it helps. But this will just make the child node always communicate with the Repeater node. What im trying to do is : https://forum.mysensors.org/topic/6984/pairing-nodes-with-each-other

      So on first boot, i want the child node to goto the GW and get a node-ID and register itself. Afterwards I want it to pair to a Repeater node.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cloolalang
        wrote on last edited by
        #9

        A theroetcical capacity using RFM 95 LoRa radios in 433 MHz ISM band:
        Lora Config bandwith: 125 KHz.
        ISM band 433.050 - 434.790 MHz.
        Allows for these 5 "channels";

        1. 433.125
        2. 433.400
        3. 433.650
        4. not used (ISM noise from commercial devices on 433.920 etc)
        5. 434.150
          6 .434.400
          7 .not used (local ham repeater), (yes its nice to check!)

        Each GW can handle 254 RF Nodes
        254 x 5 RF channels = 1270 sensor nodes in any one geographical location. (including repeated nodes)?
        p

        mfalkviddM 1 Reply Last reply
        0
        • C cloolalang

          A theroetcical capacity using RFM 95 LoRa radios in 433 MHz ISM band:
          Lora Config bandwith: 125 KHz.
          ISM band 433.050 - 434.790 MHz.
          Allows for these 5 "channels";

          1. 433.125
          2. 433.400
          3. 433.650
          4. not used (ISM noise from commercial devices on 433.920 etc)
          5. 434.150
            6 .434.400
            7 .not used (local ham repeater), (yes its nice to check!)

          Each GW can handle 254 RF Nodes
          254 x 5 RF channels = 1270 sensor nodes in any one geographical location. (including repeated nodes)?
          p

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

          @cloolalang you can also vary the spreading factor (6 alternatives) and the coding rate (4 alternatives), yielding 24x1270= 30,480 nodes. There are other options as well (encryption, directed antennas and more) but what to do will vary in each use case. Theoretical calculations can be fun, but they do not represent the real world.

          F 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @cloolalang you can also vary the spreading factor (6 alternatives) and the coding rate (4 alternatives), yielding 24x1270= 30,480 nodes. There are other options as well (encryption, directed antennas and more) but what to do will vary in each use case. Theoretical calculations can be fun, but they do not represent the real world.

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

            @mfalkvidd Hello, you can give an example of how to do this ? and if it is possible to perform on a Gateways ?

            mfalkviddM 1 Reply Last reply
            0
            • F frydrik

              @mfalkvidd Hello, you can give an example of how to do this ? and if it is possible to perform on a Gateways ?

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

              @frydrik all nodes, including the gateway, on the same MySensors network need to use the same settings.

              Documentation for settings: https://www.mysensors.org/apidocs/group__RFM95SettingGrpPub.html#gaedc32edc29ffd4ecc2c849e39010069e

              F 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @frydrik all nodes, including the gateway, on the same MySensors network need to use the same settings.

                Documentation for settings: https://www.mysensors.org/apidocs/group__RFM95SettingGrpPub.html#gaedc32edc29ffd4ecc2c849e39010069e

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

                @mfalkvidd Thanks for the answer, I want to create a network for reading electric meters in a city with a population of over 500,000 people, the limit of 254 nodes is too small, yes, I understand that you can create more Gateways to share them after different frequencies, the spreading factor, coding rate, and I understand according to this scheme that the point where there will be Gateways will consist of several Gateways each will have as ex. a different frequency and only the nodes will be connected to it with its frequency, you can look at the sketch drawn by me. It gets too complicated, can it be done in a single GW or with a reduced number of GW? diagrama.jpg

                mfalkviddM 1 Reply Last reply
                1
                • F frydrik

                  @mfalkvidd Thanks for the answer, I want to create a network for reading electric meters in a city with a population of over 500,000 people, the limit of 254 nodes is too small, yes, I understand that you can create more Gateways to share them after different frequencies, the spreading factor, coding rate, and I understand according to this scheme that the point where there will be Gateways will consist of several Gateways each will have as ex. a different frequency and only the nodes will be connected to it with its frequency, you can look at the sketch drawn by me. It gets too complicated, can it be done in a single GW or with a reduced number of GW? diagrama.jpg

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

                  @frydrik yes it can be done (in fact, has already been done multiple times). MySensors is not the right technology for that though. Take a look at Sigfox and LoRaWAN. NB-IoT and Wireless MBus might be applicable as well.

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    frydrik
                    wrote on last edited by
                    #15

                    These technologies are quite expensive to make, mysensors comes with some pretty cheap solutions, I think mysensors can be used in urban areas where the density of electric meters is quite high, especially in the panels where the meters are usually installed are grouped several as ex. 4 and more, for this panel you can mount a node that will read the indications of all meters, thus drastically reducing the number of nodes and the cost will be even more attractive to carry out this project, I thought that these nodes can be made on esp8266 + RFM95 to gain greater distances between Gateways nodes, in rural areas I will think about implementing LoraWan, for me it is quite complicated to clarify with this technology.

                    mfalkviddM 1 Reply Last reply
                    0
                    • F frydrik

                      These technologies are quite expensive to make, mysensors comes with some pretty cheap solutions, I think mysensors can be used in urban areas where the density of electric meters is quite high, especially in the panels where the meters are usually installed are grouped several as ex. 4 and more, for this panel you can mount a node that will read the indications of all meters, thus drastically reducing the number of nodes and the cost will be even more attractive to carry out this project, I thought that these nodes can be made on esp8266 + RFM95 to gain greater distances between Gateways nodes, in rural areas I will think about implementing LoraWan, for me it is quite complicated to clarify with this technology.

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

                      @frydrik LoRaWAN nodes can be made with esp8266 and rfm95. I have done so myself.

                      LoRaWAN gateways are slightly more expensive, but they are able to handle at least tens of thousands of nodes which is 100x more than a MySensors gateway, so the cost per node is much much lower than for MySensors.

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


                                          8

                                          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