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

    Relay state change speed?

    Official EVOK API
    2
    2
    1030
    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.
    • Vesa Kauppinen
      Vesa Kauppinen last edited by Vesa Kauppinen

      I want to change the relay to state 1 and immediately to state 0 (Neuron M503 and https://github.com/UniPiTechnology/evok/archive/master.zip). What is the minimum time in milliseconds between the change that EVOK guarantees a change from 1 to 0 for success? Can the response rate be increased or changed?

      The EVOK document (https://evok.api-docs.io/1.0/rest/change-relay-state) is pwm_freq and pwm_duty. What is their purpose?

      Thx,
      Vesa

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

        @Vesa-Kauppinen This is a bit more complicated than it seems. First of all, Evok cannot guarantee any time of physical response. Secondly, there is a lot of overhead with the HTTP encapsulation. All this together with available CPU processing power at the moment of the request (actual load of CPU by other applications) can lead to a various time of reaction to the request.

        From what we have tried it can take about 150ms to switch the relay when the command is called from the same RPi using curl.

        If you need faster responses, you can always use the default Modbus TCP where you will get to around 10ms response time.

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