• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Communication between UniPi & external RPi

    Mervis
    2
    9
    2831
    Loading More Posts
    • 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.
    • C
      CKB last edited by CKB

      Hi,

      for a smart home solution I have 2 UniPi's (and a stack of extension boards) as main computing units to automatically control shutters, light, alarms etc.
      In order to enable also manual changes for shutter positions or lights I like to install 2 Raspberry Pi's with a mounted touch panel at central positions - like this:
      0_1502468211471_upload-a86670fc-339a-4a10-bb74-dc884176f596

      The user shall be able to change settings on the UniPi(s) via the RPi or get information from the UniPi(s)
      Like this:
      0_1502468307518_upload-61c8edd7-e24a-41f9-92bd-549cc05ba7dd

      How to realize a bidirectional communication (grey & orange) between RPi's and UniPi's? I2C? Ethernet? ....

      Thanks in advance
      CKB

      T 1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators @CKB last edited by

        @CKB I recommend Ethernet... The second and more difficult issue will be: how you want to talk to each other and what sw you plan to use?

        C 2 Replies Last reply Reply Quote 0
        • C
          CKB last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • C
            CKB @tomas_hora last edited by

            @tomas_hora Many forums mention netcat as a very flexible tool for client/server applications - easy to use and it runs on any linux application.
            I find project examples where people connect two RPi's but unfortunately there is no project where they do the same with a RPi & a UniPi.
            I really would like to realize this setup since it is a key element to enable future steps with peripherals for voice/face recognition.

            T 1 Reply Last reply Reply Quote 0
            • T
              tomas_hora administrators @CKB last edited by

              @CKB RPi is a part of UniPi. So if you want to interface the IOs of UniPi via netcat to, you can use EVOK and via http post... Examples of http post request is on evok's github

              C 1 Reply Last reply Reply Quote 0
              • C
                CKB @tomas_hora last edited by

                @tomas_hora the two UniPi's I have are running on Mervis. What about SoftPLC?

                T 1 Reply Last reply Reply Quote 0
                • T
                  tomas_hora administrators @CKB last edited by

                  @CKB I do not have any experience with SoftPLC so I would recommend TCP Modbus server on the Mervis side...

                  1 Reply Last reply Reply Quote 0
                  • C
                    CKB @tomas_hora last edited by CKB

                    @tomas_hora Can you describe roughly how to create a Modbus TCP communication from one Unipi to another?
                    I can also provide my solution with the two PLCs

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tomas_hora administrators @CKB last edited by

                      @CKB If both UniPis are running Mervis, have them both in one project and use the SSCP protocol which is native protocol of Mervis. An example of this can be found at download section of Mervis.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post