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.
  • 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
                                  • zboblamontZ zboblamont

                                    @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 Offline
                                    S Offline
                                    sineverba
                                    Hardware Contributor
                                    wrote on last edited by sineverba
                                    #21

                                    @zboblamont ok. I did not know cause I have a PI1. Btw, what about serial port name and out of the box working? Or need some edit on PI config?

                                    Edit: I did read your answer late ;-)

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

                                      Is MY_RX_MESSAGE_BUFFER_FEATURE auto enabled for a gw using serial or do I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE in the sketch before uploading?
                                      I have looked this page + https://www.mysensors.org/build/connect_radio + https://www.mysensors.org/download/sensor_api_20#configuration and still not sure.....Anyone know?

                                      mfalkviddM 1 Reply Last reply
                                      0
                                      • skywatchS skywatch

                                        Is MY_RX_MESSAGE_BUFFER_FEATURE auto enabled for a gw using serial or do I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE in the sketch before uploading?
                                        I have looked this page + https://www.mysensors.org/build/connect_radio + https://www.mysensors.org/download/sensor_api_20#configuration and still not sure.....Anyone know?

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

                                        @skywatch it is not enabled by default.
                                        https://www.mysensors.org/apidocs-beta/group__RF24SettingGrpPub.html#gafe2f4565dfa8473846dfc82d417c8147

                                        The default value is in parenthesis after the name, if there is a default value. Example:
                                        0_1509484366694_upload-e0d86b02-49e5-4ec6-a04d-13a042607e53

                                        means that the default value for MY_RF24_PA_LEVEL is RF24_PA_HIGH

                                        There is nothing after
                                        0_1509484464746_upload-27141c5e-db60-422e-b853-d70097b7829e
                                        which means it is not set by default.

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

                                          Thanks for reply. Maybe I wasn't too clear, so here is more info.
                                          Today I made a serial gw with a pro mini as the nrf24 attached to pi directly is suspected of problems with MyController.
                                          In the wiring diagram on the build page it shows the IRQ from the nrf24 to the promini as connected. But this is not enabled by default in the MYSGW code.
                                          So, to make the NRF24 IRQ work, I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE and #define MY_RF24_IRQ_PIN.......Or is it #define MY_RX_MESSAGE_BUFFER_FEATURE(ENABLED) #define MY_RF24_IRQ_PIN(D2) ???
                                          I just want to enable the irq from the nrf24 to help with message flow.

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


                                          11

                                          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