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

    Evok inputs status reporting

    Scheduled Pinned Locked Moved Evok API
    4 Posts 2 Posters 2.5k 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.
    • D
      denis
      last edited by

      Hello,

      I've notice when using evok through a websocket interface, when a input state is changing, evok is sending back values for all the inputs, not only the one that changed...
      Anyway to have only the inputs that changed ?

      thanks,
      Denis

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

        Evok should be sending an array of values that changed. Are you certain that it is sending all of the values?

        You should see the values being sent (in square brackets) if you run evok manually with "systemctl stop evok" + "python /opt/evok/evok.py" (you may have to run "sudo su" first to get the necessary privileges).

        A typical output would look like:
        [<neuron.AnalogInput instance at 0x75927be8>, <neuron.AnalogInput instance at 0x75927c60>, <neuron.AnalogInput instance at 0x75927cd8>, <neuron.AnalogInput instance at 0x75927d50>]

        Do note that the AnalogInput(s) change on most frames due to minor fluctuations if they are left floating.

        1 Reply Last reply
        Reply Quote 0
        • D
          denis
          last edited by

          Solved with 16th October commits on github.

          Thanks, Denis

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

            The reason the values were being sent is that they are stored internally in one register per 16 inputs; therefore we needed to implement state tracking to properly distinguish which of the 16 inputs for a given register actually changed.

            Apologies for the issues.

            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