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.
  • 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
                    • skywatchS skywatch

                      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 Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #25

                      @skywatch thanks for clarifying.

                      Use

                      #define 	MY_RX_MESSAGE_BUFFER_FEATURE
                      

                      to enable the RX buffer feature

                      Use

                      #define MY_RF24_IRQ_PIN 2
                      

                      to set the irq pin to pin 2.

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

                        Perfect - Just what I needed to know! :)

                        Thanks!

                        1 Reply Last reply
                        1
                        • mntlvrM Offline
                          mntlvrM Offline
                          mntlvr
                          wrote on last edited by
                          #27
                          This post is deleted!
                          mfalkviddM 1 Reply Last reply
                          0
                          • mntlvrM mntlvr

                            This post is deleted!

                            mfalkviddM Offline
                            mfalkviddM Offline
                            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 Offline
                              mntlvrM Offline
                              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 Offline
                                mfalkviddM Offline
                                mfalkvidd
                                Mod
                                wrote on last edited by
                                #30

                                @mntlvr sorry, I have no experience with Vera.

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


                                          13

                                          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