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. General Discussion
  3. One GW with 2 controllers?

One GW with 2 controllers?

Scheduled Pinned Locked Moved General Discussion
5 Posts 4 Posters 1.3k Views 6 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.
  • skywatchS Offline
    skywatchS Offline
    skywatch
    wrote on last edited by skywatch
    #1

    Is it possible to have one arduino gw connected serially to a pi running 2 different controllers.
    I have problems with crashes and would like to isolate where the problem lies, so having 2 different controllers would help eliminate 'something' from the fault finding process....

    D mfalkviddM 2 Replies Last reply
    0
    • skywatchS skywatch

      Is it possible to have one arduino gw connected serially to a pi running 2 different controllers.
      I have problems with crashes and would like to isolate where the problem lies, so having 2 different controllers would help eliminate 'something' from the fault finding process....

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

      @skywatch No because only one controller would be able to read from the serial port at a time. Even if you possibly did 2 RS485 serial modules on the same board connected in parallel. You would have to set each controller to act as a master device and each one using a different RS485 interface. If a node would expect a response from the master controller, which one should respond? Both cannot respond as master.

      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

      1 Reply Last reply
      0
      • skywatchS skywatch

        Is it possible to have one arduino gw connected serially to a pi running 2 different controllers.
        I have problems with crashes and would like to isolate where the problem lies, so having 2 different controllers would help eliminate 'something' from the fault finding process....

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

        @skywatch yes it can be done but there are some caveats. See https://forum.mysensors.org/topic/3150/use-node-red-to-allow-multiple-connections-to-ethernet-gateway for some ideas on how to do it.

        Other threads that might be interesting:
        https://forum.mysensors.org/topic/1853/production-setup-how-do-you-guys-do-it
        https://forum.mysensors.org/topic/2815/flow-to-turn-serialgateway-with-mqtt-flow-to-ethernetgateway
        https://forum.mysensors.org/topic/2681/mycontroller-domoticz-at-same-time/

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tbowmo
          Admin
          wrote on last edited by
          #4

          The trick is to have one program listening on the serial port, and have that program act as a sort of proxy for the controllers...

          This can be done with node-red, as @mfalkvidd mentions, and is how I do it. I have both domoticz, and a test instance of openhab running. One benefit of using node-red, is that it can be used to manipulate data to/from the mysensors network (For example, domoticz has "locked state" for doors etc reversed, compared to all other controllers, so I have node-red invert the command to / from domoticz, if it's a door lock, so now domoticz is "compliant" with the other controllers that I mock around with.

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

            Thank you all for taking the time to reply.

            I will take a look at the documentation, but then realised I could just have one controller at a time running to test at first (doh!)... ;) -

            Still, this really is all about an end product that works for my needs with learning new stuff into the bargain. :)

            I'll let you know if I do need to try it - nice to know it's an option!

            1 Reply Last reply
            1

            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


            15

            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