• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. capitanfindus
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    capitanfindus

    @capitanfindus

    0
    Reputation
    291
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    capitanfindus Unfollow Follow

    Latest posts made by capitanfindus

    • RE: Evok, json, Python2.7, read multiple inputs so SLOW??

      Websocket solved the issue. Thank you

      posted in Official EVOK API
      C
      capitanfindus
    • Evok, json, Python2.7, read multiple inputs so SLOW??

      Hello, here I post my code. "s" is the server instance from jsonrpclib.

      while 1:
      i1=s.input_get_value(1);
      i2=s.input_get_value(2);
      i3=s.input_get_value(3);
      ......
      If I only read one input, response time is approx 0.1[s]. But if I read all 12 (not DI13 and DI14) inputs (also with for loop writing into array) it takes 0.7 to 0.8 [s].

      Any idea on how to speed this up? I can't have that latency when reading all inputs. My idea is to have a while 1 loop to have coherent info inside it: read input, do my code, set output.

      Thank you for help!
      Is there anything like this?
      https://github.com/kimmoli/evok/commit/14442a67cd79b211c2c8756092a4aa0314f1f741

      ps: UniPi 1.1 (full version wiith 8 output relays)

      ps2: VERY IMPORTANT: in the webbrowser the status of the digital inputs has no delay! I found with measuring timers that is the "s.input_get_value(1)" operation that takes a lot of time. Any other way? Using PIGPIO is ok to read digital inputs?

      posted in Official EVOK API
      C
      capitanfindus