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

    Relay state change speed?

    Scheduled Pinned Locked Moved Official API - Evok
    2 Posts 2 Posters 1.7k Views
    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 KauppinenV
      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

        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
        • First post
          Last post