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. Controllers
  3. Is it possible to have an Ethernet Gateway also act as a node(Single Arduino setup)?

Is it possible to have an Ethernet Gateway also act as a node(Single Arduino setup)?

Scheduled Pinned Locked Moved Controllers
7 Posts 3 Posters 2.5k 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.
  • MagiskeM Offline
    MagiskeM Offline
    Magiske
    wrote on last edited by
    #1

    Hi,

    Got a Vera Lite and would like to start out with only one nano acting as an Gateway and for a start do some basic onewire temperature operations. Later one I can all ways add more nodes when I need them(If I need them).

    So can I do a "gw.send(msg.setSensor(i).set(temperature,1));" from within the gateway code and that way makes it act both like a gateway and a node ?

    /Mads

    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by
      #2

      No, it's not possible.. As gw.send() is sending everything to the radio, and the radio can't listen to itself.

      As an alternative, You could emulate the protocol your self, and use that to send sensor data.

      / Thomas

      1 Reply Last reply
      0
      • MagiskeM Offline
        MagiskeM Offline
        Magiske
        wrote on last edited by
        #3

        Though so.. Will try to see if I can rewrite/add gw.local.send based on the original code.

        /Mads

        1 Reply Last reply
        0
        • O Offline
          O Offline
          olaeke
          wrote on last edited by
          #4

          I you success so let us know, I think that we are some out here that are interested in this.

          1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #5

            @Magiske

            The question has been raised before, but answers lead in different directions.. When I asked about it a month ago, the answer from @hek was that it wouldn't work

            http://forum.mysensors.org/topic/568/implementing-sensor-on-the-gateway/2

            At the same time, it is mentioned in other threads that it could be done, but you have to do your own serial transmit functions

            http://forum.mysensors.org/topic/624/combine-gateway-and-sensor/3

            I'm still in for doing some experimentation on the GW, even though hek says it's not advisable to do it :) Just waiting for my shipment from mouser to arrive with components :).

            1 Reply Last reply
            0
            • MagiskeM Offline
              MagiskeM Offline
              Magiske
              wrote on last edited by
              #6

              Thanks for the info. I will try a see if I can get some time during christmas. At least give it a try..

              /M

              1 Reply Last reply
              0
              • MagiskeM Offline
                MagiskeM Offline
                Magiske
                wrote on last edited by Magiske
                #7

                So I did use some time to implement a gw with local sensors.
                And to be honest I gave up.. The existing code is awesome and don't have that much room to implement it. I did make some progress, but all that would be undone with an update.
                So compared to the time it took me to wire up an Arduino Pro Mini with humidity and temperature sensor(20min) and the cost of it. My life is to short:)

                /M

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


                12

                Online

                11.7k

                Users

                11.2k

                Topics

                113.0k

                Posts


                Copyright 2019 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