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. Development
  3. Gateway *and* sensor node on same Arduino - is it possible ?

Gateway *and* sensor node on same Arduino - is it possible ?

Scheduled Pinned Locked Moved Development
6 Posts 4 Posters 3.8k Views 2 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.
  • J Offline
    J Offline
    joshmosh
    wrote on last edited by
    #1

    Hi,
    would it be possible to run a sensor node in parallel to a serial gateway on one Arduino ? A gateway does not consume a huge amount of code, so there would be room for some sensor code.

    If it is possible: anything to take care of or can I use the example code for a serial gateway and just simply add code for sensors ?

    Cheers
    Josh

    1 Reply Last reply
    0
    • hekH Online
      hekH Online
      hek
      Admin
      wrote on last edited by
      #2

      Working on it.

      The plan is to provide a gateway class capable of different transport-layers (serial, ethernet, esp) to the controller supporting different protocols (MySenors, MQTT, and some json-variant).

      The gateway should also be able to report and receive sensor data (and relay things if you have wireless sensors connected to the gateway).

      You can do this today also but it is a bit more work involved (where you have to emulate the serial/MQTT protocol yourself). I.e. do a Serial.println("0;0;X;X;X;payload");

      1 Reply Last reply
      1
      • J Offline
        J Offline
        joshmosh
        wrote on last edited by
        #3

        Of course ! I should have thought of it myself. Thank you for putting me on track :smile:

        Cheers
        Josh

        1 Reply Last reply
        0
        • michlb1982M Offline
          michlb1982M Offline
          michlb1982
          wrote on last edited by
          #4

          Hello...
          got a question, did you crushed it? could you make it work a sensor-Gateway on one arduino?
          I'm asking because i want to use my ethernet - gateway with a DHT22 and 4 Relays and as said before as a ethernet gateway... (hope there are enought pins for my plan)...

          if yes, maybe you could write a tiny tutorial or something like that, because i'm not a programmer and just starting with arduino-stuff... i'm a little newbeeeeeee...

          so please mybe you could help me a little...
          thanks
          mike

          1 Reply Last reply
          0
          • A Offline
            A Offline
            afick
            wrote on last edited by
            #5

            Hello,

            Any update on this ?
            I'm also interested in build all-in-one (gw + sensors).

            Rafal

            1 Reply Last reply
            0
            • hekH Online
              hekH Online
              hek
              Admin
              wrote on last edited by
              #6

              This is working in the development branch now.

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


              5

              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