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. 💬 Building a Serial Gateway

💬 Building a Serial Gateway

Scheduled Pinned Locked Moved Announcements
52 Posts 21 Posters 32.9k Views 20 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.
  • mntlvrM mntlvr
    [[topic:post-is-deleted]]
    mfalkviddM
    mfalkviddM
    mfalkvidd
    Mod
    wrote on last edited by
    #28

    @mntlvr you have now posted variants of the same questions in three places. This means efforts to help you will be split into three places. People will waste time helping you in one thread, not knowing the discissions in the other threads. This will waste people's time. Please only post your question in one place.

    mntlvrM 1 Reply Last reply
    0
    • mfalkviddM mfalkvidd

      @mntlvr you have now posted variants of the same questions in three places. This means efforts to help you will be split into three places. People will waste time helping you in one thread, not knowing the discissions in the other threads. This will waste people's time. Please only post your question in one place.

      mntlvrM
      mntlvrM
      mntlvr
      wrote on last edited by
      #29

      @mfalkvidd
      Well I thought since you wrote this you could answer the question
      I have searched entire site for answer and can not find one and since you posted the build last year you would be the one who could answer it

      mfalkviddM 1 Reply Last reply
      0
      • mntlvrM mntlvr

        @mfalkvidd
        Well I thought since you wrote this you could answer the question
        I have searched entire site for answer and can not find one and since you posted the build last year you would be the one who could answer it

        mfalkviddM
        mfalkviddM
        mfalkvidd
        Mod
        wrote on last edited by
        #30

        @mntlvr sorry, I have no experience with Vera.

        1 Reply Last reply
        0
        • T
          T
          tismoj
          wrote on last edited by
          #31

          Hi I'm new to MySensors, I've installed openHAB as my controller and installed the Add-on MySensors to it. But now that I have uploaded GatewaySerial.ino to a Nano with an nRF24L01+, I've noticed that there was no code to drive the setup and loop functions. And how do I verify that it is working? from the Karaf console?...

          1 Reply Last reply
          0
          • T
            T
            tismoj
            wrote on last edited by
            #32

            Please disregard my question, I got it working, turn out there was no need to have some code in the setup and loop functions, suprisingly.

            1 Reply Last reply
            1
            • wahidW
              wahidW
              wahid
              wrote on last edited by
              #33

              Hello,
              im kind of lost, i need to install a distance sensor buried in a well of water, and will need a lot of tweaking and reprogramming until i get the desired correct measurements.
              so i need OTA, extremely low power (battery powered, sleeps most of time), so i went to ultrasonic sensor HC04 which is even powered through GPIO of pro mini, and an nrf24l01+. the main problem is OTA. My concerns are:

              1. should i burn MYSBOOTLOADER on sensor and Serial GW ?
              2. if bootlader burnt, any sketch can do the OTA?
              3. should I use only MySensors GW SW, or can i have my own sketch.
                Any ideas are welcome.
                Thanks a lot
              1 Reply Last reply
              0
              • S
                S
                siouxme
                wrote on last edited by
                #34

                Is there a way to make a serial2mqtt gateway (e.g. a NodeMCU is getting MySensor data on the serial interface and should just bridge that to MQTT)?

                YveauxY 1 Reply Last reply
                0
                • S siouxme

                  Is there a way to make a serial2mqtt gateway (e.g. a NodeMCU is getting MySensor data on the serial interface and should just bridge that to MQTT)?

                  YveauxY
                  YveauxY
                  Yveaux
                  Mod
                  wrote on last edited by
                  #35

                  @siouxme there is a direct mqtt gateway that you can build, so you don't need the serial step inbetween. See the list of gateways.

                  http://yveaux.blogspot.nl

                  1 Reply Last reply
                  0
                  • alowhumA
                    alowhumA
                    alowhum
                    Plugin Developer
                    wrote on last edited by
                    #36

                    Is it possible to get a list of all attached nodes? I'd like to attach a TFT screen to the gateway that shows all the connected devices.

                    mfalkviddM 1 Reply Last reply
                    0
                    • alowhumA alowhum

                      Is it possible to get a list of all attached nodes? I'd like to attach a TFT screen to the gateway that shows all the connected devices.

                      mfalkviddM
                      mfalkviddM
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #37

                      @alowhum there is no such thing as an attachment in a MySensors network.

                      Nodes send messages whenever they like. The nodes may go to sleep at any time, which would make them unavailable.

                      The gateway does not store information about when a node last communicated, nor about which child sensors have been presented.

                      1 Reply Last reply
                      0
                      • alowhumA
                        alowhumA
                        alowhum
                        Plugin Developer
                        wrote on last edited by
                        #38

                        @mfalkvidd Thanks. Would it be possible to generate that list somehow? Perhaps by listening to what nodes connect to it?

                        It doesn't matter if they are offline or not, it doesn't have to be perfect.

                        mfalkviddM 1 Reply Last reply
                        0
                        • alowhumA alowhum

                          @mfalkvidd Thanks. Would it be possible to generate that list somehow? Perhaps by listening to what nodes connect to it?

                          It doesn't matter if they are offline or not, it doesn't have to be perfect.

                          mfalkviddM
                          mfalkviddM
                          mfalkvidd
                          Mod
                          wrote on last edited by
                          #39

                          @alowhum yes. That's how a controller learns about the nodes :)

                          1 Reply Last reply
                          0
                          • alowhumA
                            alowhumA
                            alowhum
                            Plugin Developer
                            wrote on last edited by
                            #40

                            But could the gateway itself do it too? If so, do you have any suggestions on where I should start? How can I "hook into" the gateway to find out what devices are communicating with it? Is there example code of this?

                            mfalkviddM 1 Reply Last reply
                            0
                            • alowhumA alowhum

                              But could the gateway itself do it too? If so, do you have any suggestions on where I should start? How can I "hook into" the gateway to find out what devices are communicating with it? Is there example code of this?

                              mfalkviddM
                              mfalkviddM
                              mfalkvidd
                              Mod
                              wrote on last edited by
                              #41

                              @alowhum yes you could build a controller into the gateway.

                              The receive function will be called for each incoming message. You can react to the messages inside receive().

                              1 Reply Last reply
                              0
                              • mfalkviddM
                                mfalkviddM
                                mfalkvidd
                                Mod
                                wrote on last edited by
                                #42

                                These threads might be useful
                                https://forum.mysensors.org/topic/1973/esp8266-as-wifi-gateway-controller-node
                                https://forum.mysensors.org/topic/4528/esp8266-as-a-gateway-and-controller

                                1 Reply Last reply
                                0
                                • alowhumA
                                  alowhumA
                                  alowhum
                                  Plugin Developer
                                  wrote on last edited by
                                  #43

                                  Thanks!!

                                  1 Reply Last reply
                                  0
                                  • R
                                    R
                                    rodaman
                                    wrote on last edited by
                                    #44

                                    After 3 years of using RADIO_RF24 i replaced my all sensors with espeasy. It was just big battle with lost transmissions, disconnections, every day problems. Now for many days silence...Everything works.I still use mysensors in diferrent setup but NRF Radio is asking for trouble.

                                    1 Reply Last reply
                                    0
                                    • M
                                      M
                                      maaaaaaaaaartin
                                      wrote on last edited by maaaaaaaaaartin
                                      #45

                                      I tried building a serial gateway using an Arduino Nano, but it never worked (both gateway and node start, but node keeps saying NO REPLY). I used the same NRF24 module directly on the Raspberry Pi, and built a Raspberry Pi gateway, it worked perfectly. Any idea on what might be going on? Thanks!

                                      mfalkviddM 1 Reply Last reply
                                      0
                                      • M maaaaaaaaaartin

                                        I tried building a serial gateway using an Arduino Nano, but it never worked (both gateway and node start, but node keeps saying NO REPLY). I used the same NRF24 module directly on the Raspberry Pi, and built a Raspberry Pi gateway, it worked perfectly. Any idea on what might be going on? Thanks!

                                        mfalkviddM
                                        mfalkviddM
                                        mfalkvidd
                                        Mod
                                        wrote on last edited by
                                        #46

                                        @maaaaaaaaaartin most common problem is that the power source is not stable enough for the nrf24.

                                        1 Reply Last reply
                                        0
                                        • A
                                          A
                                          APL2017
                                          wrote on last edited by
                                          #47

                                          Can serial gateway be build on Atmel 168 chip instead of 328 in terms of memory? It compiles fine, but leaves little extra memory for variables.

                                          mfalkviddM 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          Online

                                          12.4k

                                          Users

                                          11.2k

                                          Topics

                                          113.4k

                                          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