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

    Unipi 1.1 and modbus TCP

    Official EVOK API
    2
    3
    1559
    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.
    • T
      tvleminc last edited by

      Is it possible to communicatie with the unipi 1.1 over modbus /tcp ?

      1 Reply Last reply Reply Quote 0
      • T
        TomasKnot last edited by TomasKnot

        It is, but it's relatively limited in what you can do. You need to use native Linux GPIO/PWM facilities to access the full range of UniPi 1.1 functions.

        As for instructions: you will need to use our Mervis image and will only be able to access DIs and AO. The Modbus map is as follows:
        0 - AO value r/w
        1 - DI value bitfield ro
        2 - DI1 counter r/w lower 16 bits
        3 - DI1 counter r/w upper16 bits
        4 - DI2 counter r/w lower 16 bits
        5 - DI2 counter r/w upper16 bits
        .....
        24 - DI12 counter r/w lower 16 bits
        25 - DI12 counter r/w upper 16 bits

        It might be best to see how it works with Mervis, which uses this very Modbus scheme to communicate with UniPi 1.1. You can try it out for free, simply download our MervisOS image under downloads/software/Mervis, along with the Mervis installer in the same folder. Only the cloud functionality requires a valid license.

        T 1 Reply Last reply Reply Quote 0
        • T
          tvleminc @TomasKnot last edited by

          Ok thx !

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