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 9.3k 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by hek
    #1

    This thread contains comments for the article "Building a Serial Gateway" posted on MySensors.org.

    1 Reply Last reply
    0
    • Michel - ItM Offline
      Michel - ItM Offline
      Michel - It
      wrote on last edited by
      #2

      I have two questions ...
      one) this sketch only works with version mysensors_v2.0 it?
      two) all the old skeck are no longer usable?
      thank you

      mfalkviddM 1 Reply Last reply
      0
      • Michel - ItM Michel - It

        I have two questions ...
        one) this sketch only works with version mysensors_v2.0 it?
        two) all the old skeck are no longer usable?
        thank you

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

        one) this sketch only works with version mysensors_v2.0 it?

        Correct

        two) all the old skeck are no longer usable?

        They are still usable. All nodes in a sensor network need to run the same major MySensor version. If you want to stay on version 1.5, you can continue using the 1.5 sketches.

        1 Reply Last reply
        1
        • Michel - ItM Offline
          Michel - ItM Offline
          Michel - It
          wrote on last edited by Michel - It
          #4

          you have been very kind, you also tell me, where can I find the old serial sketches compatible for mysensors version 1.5?

          mfalkviddM 1 Reply Last reply
          0
          • Michel - ItM Michel - It

            you have been very kind, you also tell me, where can I find the old serial sketches compatible for mysensors version 1.5?

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

            @Michel---It you're welcome :)
            Download 1.5.4 from https://www.mysensors.org/download or select the 1.5.4 tag on Github, https://github.com/mysensors/MySensors/tree/1.5.4

            Michel - ItM 1 Reply Last reply
            1
            • mfalkviddM mfalkvidd

              @Michel---It you're welcome :)
              Download 1.5.4 from https://www.mysensors.org/download or select the 1.5.4 tag on Github, https://github.com/mysensors/MySensors/tree/1.5.4

              Michel - ItM Offline
              Michel - ItM Offline
              Michel - It
              wrote on last edited by Michel - It
              #6

              @mfalkvidd I wanted to see if you were ready :satisfied: It can help someone

              1 Reply Last reply
              1
              • carlekiC Offline
                carlekiC Offline
                carleki
                wrote on last edited by
                #7

                I have 2 gateways : one with 1.5.4 and one with 2.0 :
                I have tested with 2 temp nodes : one with 1.5.4 version and one with 2.0 : the 2 gateways can see the 2 nodes !

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AndreD
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • meanmrgreenM Offline
                    meanmrgreenM Offline
                    meanmrgreen
                    wrote on last edited by
                    #9

                    If i want to update the gateway to 2.1, do i just need to download the master and reupload this scetch to it?
                    Do i need to do that to all my sensors aswell?
                    i am on 2.0 right now

                    mfalkviddM 1 Reply Last reply
                    0
                    • meanmrgreenM meanmrgreen

                      If i want to update the gateway to 2.1, do i just need to download the master and reupload this scetch to it?
                      Do i need to do that to all my sensors aswell?
                      i am on 2.0 right now

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

                      @meanmrgreen yes re-uploading after updating the MySensors library is all you need to do. I recommend updating through the Library Manager (if you use the Arduino IDE) instead of manually downloading from github though.

                      You can mix nodes with 2.0 and 2.1 so there is no immediate need to update your nodes.

                      See https://forum.mysensors.org/topic/5691/upgrade-to-2-1-0/2 and https://forum.mysensors.org/topic/5651/mysensors-2-1-0-released for more information.

                      1 Reply Last reply
                      0
                      • agtigA Offline
                        agtigA Offline
                        agtig
                        wrote on last edited by
                        #11

                        I don't seem to be able to get it to work when loading the SerialGateway sketch onto a Mega 2560 board... I have tried to find out where to change the pins for the SPI connection, as the pin location is different than on the Nano, but can't seem to find it. Does the library autodetect which pins to use on various boards?

                        mfalkviddM 1 Reply Last reply
                        0
                        • agtigA agtig

                          I don't seem to be able to get it to work when loading the SerialGateway sketch onto a Mega 2560 board... I have tried to find out where to change the pins for the SPI connection, as the pin location is different than on the Nano, but can't seem to find it. Does the library autodetect which pins to use on various boards?

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

                          @agtig no it does not autodetect. The instructions for SPI on the Mega are linked from the connecting the radio page.

                          1 Reply Last reply
                          0
                          • ronnyandreR Offline
                            ronnyandreR Offline
                            ronnyandre
                            wrote on last edited by
                            #13

                            Is it possible to update the article with a code example for a gateway that also uses NodeManager?

                            Newbie with RPi and Domoticz, trying to automate my home.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              sineverba
                              Hardware Contributor
                              wrote on last edited by
                              #14

                              Is it possible to use an Arduino Mini Pro instead of a UNO? I did try with a Mini + FTDI232 (the red card) but cannot see nothing on PI serial. Thank you!

                              zboblamontZ 1 Reply Last reply
                              0
                              • S sineverba

                                Is it possible to use an Arduino Mini Pro instead of a UNO? I did try with a Mini + FTDI232 (the red card) but cannot see nothing on PI serial. Thank you!

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

                                @sineverba I had issues incorporating the Sensebender Gateway, as originally planned so used one a Pro-mini as a stopgap gateway to the Pi, and it hasn't skipped a beat... It is a 3.3v 16MHz version however, you would need a level shifter on the serial if you were to use a 5v Pro-mini...

                                S 1 Reply Last reply
                                0
                                • zboblamontZ zboblamont

                                  @sineverba I had issues incorporating the Sensebender Gateway, as originally planned so used one a Pro-mini as a stopgap gateway to the Pi, and it hasn't skipped a beat... It is a 3.3v 16MHz version however, you would need a level shifter on the serial if you were to use a 5v Pro-mini...

                                  S Offline
                                  S Offline
                                  sineverba
                                  Hardware Contributor
                                  wrote on last edited by
                                  #16

                                  @zboblamont It is a 3.3v 8mhz. So do you mean use It connected via GPIO of PI? How do you power It?

                                  zboblamontZ 1 Reply Last reply
                                  0
                                  • S sineverba

                                    @zboblamont It is a 3.3v 8mhz. So do you mean use It connected via GPIO of PI? How do you power It?

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

                                    @sineverba Serial Tx to Rx and vice versa, ground and 3.3 from Pi...

                                    S 1 Reply Last reply
                                    0
                                    • zboblamontZ zboblamont

                                      @sineverba Serial Tx to Rx and vice versa, ground and 3.3 from Pi...

                                      S Offline
                                      S Offline
                                      sineverba
                                      Hardware Contributor
                                      wrote on last edited by
                                      #18

                                      @zboblamont ok, and PI can safely Power It with his radio? If right Remember, max of PI are 50mA .... From a GPIO.....

                                      Another question, please, what the port serial name? Pi recognises It out of the box?

                                      zboblamontZ 2 Replies Last reply
                                      0
                                      • S sineverba

                                        @zboblamont ok, and PI can safely Power It with his radio? If right Remember, max of PI are 50mA .... From a GPIO.....

                                        Another question, please, what the port serial name? Pi recognises It out of the box?

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

                                        @sineverba You are not powering the gateway from the Pi's data pins, you are tapping off the 3v3 power on the Pi's power supply.
                                        On the Pi3 (same as the Pi2), the 3v3, gnd, tx, and rx are grouped on the outside row making it all neat.

                                        S 1 Reply Last reply
                                        0
                                        • S sineverba

                                          @zboblamont ok, and PI can safely Power It with his radio? If right Remember, max of PI are 50mA .... From a GPIO.....

                                          Another question, please, what the port serial name? Pi recognises It out of the box?

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

                                          @sineverba I forgot to add, this gateway has a RFM69, so powers it no problem.
                                          If I remember correctly the input was selected on the Pi in Domoticz as ttyS0...

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


                                          23

                                          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