Slow Response

34 views
Skip to first unread message

Randy Kirkland

unread,
Jun 26, 2017, 4:10:49 PM6/26/17
to PrivateEyePi
I am using the PrivateEye program and server to switch a 4 channel relay. I'm doing this by setting rules that signal certain pins to switch a relay specific to that pin and using Arm/Disarm on the dashboard.

The response from the time I hit the 'Arm' function on the dashboard, until the relay switches is very slow and often seems stop working all together eventually. I just timed 5 responses to vary between 1 minute 45 seconds and 4 minutes. Then it just seemed to lose interest and isn't responding. I set printToscreen to True in Globals to send status updates. Whenever a relay is switched, it shows RelayOn, along with the pin that 
signaled it. After it becomes unresponsive, it still periodically sends updates but after changing arm/disarm states on the dashboard the statuses of the relays are not showing on the updates.

The relays require 15-20mA to switch so I am using a pn2222 transistor and 1k ohm resistor in conjunction with each relay.

What am I doing wrong for the slow response? Is there something I can tweak?
Message has been deleted

Randy Kirkland

unread,
Jun 26, 2017, 4:26:06 PM6/26/17
to PrivateEyePi
I forgot to mention that I tested the relays using a program in python. They switch immediately and accurately to the program so hardware should not be the issue.

I also have Crontab scheduled to run every minute. As instructed, before each use I run sudo service cron stop, kill dallas PIDs, run sudo service cron start, and then run dallas.py
Reply all
Reply to author
Forward
0 new messages