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. Troubleshooting
  3. Sensebender micro as serial gateway: transmit data?

Sensebender micro as serial gateway: transmit data?

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 1.7k Views 1 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.
  • nsom67N Offline
    nsom67N Offline
    nsom67
    wrote on last edited by
    #1

    Hi, I'm new to mysensors, and maybe I'm missing something, but is there an example of a serialgateway that itself acts as a SensebenderMicro sensor and transmits its temperature and humidity sensor ?
    It would seem possible to merge the code from serialgateway and SensebenderMicro, but not completely straightforward either for a beginner.
    Thanks,

    Nicolas

    D 1 Reply Last reply
    0
    • nsom67N nsom67

      Hi, I'm new to mysensors, and maybe I'm missing something, but is there an example of a serialgateway that itself acts as a SensebenderMicro sensor and transmits its temperature and humidity sensor ?
      It would seem possible to merge the code from serialgateway and SensebenderMicro, but not completely straightforward either for a beginner.
      Thanks,

      Nicolas

      D Offline
      D Offline
      Dwalt
      wrote on last edited by
      #2

      @nsom67

      Are you interested in using a sensebender as a serial gateway or just interested in adding temp and humidity sensors to your gateway? The latter option is possible under the development branch by adding the coding bits regarding the temp/hum sensor to the Serial GW sketch. I would recommend against, however, as it could interfere with the gateway's primary function (e.g. missing messages) while processing sensor routines.

      The sensebender was designed for battery operation and it's use as a powered gateway would nullify the design innovations and would most likely require additional power regulation for stable operation. The only benefit, as I can see, would be the built-in ATSHA204 for security.

      Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

      1 Reply Last reply
      1
      • nsom67N Offline
        nsom67N Offline
        nsom67
        wrote on last edited by
        #3

        Hi,
        Thank you for your answer.
        I understand that the sensebender is intended for battery operation. Simply I only have 1 NRF transceiver for now and while waiting for other ones to arrive I was curious to try to connect the sensor to my controller and get data directly from the gateway. At the same time it helps me understand the messaging system a bit better.
        About the dev branch, are you talking about this example ?
        https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewaySerial/GatewaySerial.ino
        Because this file does not seem to be doing anything, all the loops are empty.
        Thanks,
        Nicolas

        D 1 Reply Last reply
        0
        • nsom67N nsom67

          Hi,
          Thank you for your answer.
          I understand that the sensebender is intended for battery operation. Simply I only have 1 NRF transceiver for now and while waiting for other ones to arrive I was curious to try to connect the sensor to my controller and get data directly from the gateway. At the same time it helps me understand the messaging system a bit better.
          About the dev branch, are you talking about this example ?
          https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewaySerial/GatewaySerial.ino
          Because this file does not seem to be doing anything, all the loops are empty.
          Thanks,
          Nicolas

          D Offline
          D Offline
          Dwalt
          wrote on last edited by
          #4

          @nsom67

          Yes, that is the serialGW sketch. In the development branch, the setup and loop are blank because everything is handled by the libraries in the background. To make a serialGW with sensors, you add the sensor specific code from the applicable sensor sketch to the defines, setup, presentation and loop sections of the GW sketch. In your case, you can even comment out the rf24 bits of the GW sketch and not attach the radio as you don't have anything for the gw to talk to.

          Upload the modified sketch and connect by serial adapter to your controller and test it out. Personally, I would wait and use a nano as a serial gateway and stick with the master branch until you get comfortable with MySensors.

          Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

          1 Reply Last reply
          0
          • nsom67N Offline
            nsom67N Offline
            nsom67
            wrote on last edited by
            #5

            OK thanks for your help and advice,
            I had a quick look at the librairies behind but indeed it was not straightforward to see where the things happen in the background.

            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


            7

            Online

            12.0k

            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