asinto
July 19, 2014, 1:11pm
#1
I first posted my problem in the PLEG section:
http://forum.micasaverde.com/index.php/topic,26077.0.html
Seems like the problem is coming from the Arduino Sensor Plugin. Is there a fix for this? Or am i doing something wrong?
Plugin version: 1.4b1
Lib version:1.4b1 (18848A2)
hek
July 19, 2014, 3:11pm
#2
Do you have (and not ) in your I_Arduino plugin file? This was updated a while ago and might fix your problems.
<?xml version="1.0"?>
<implementation>
<functions>
local p
function startup(lul_device)
luup.log("Arduino plugin: loading library L_Arduino ...")
if (package.path:find ("/etc/cmh-ludl/?.lua;/etc/cmh-lu/?.lua", 1, true) == nil) then
package.path = package.path .. ";/etc/cmh-ludl/?.lua;/etc/cmh-lu/?.lua"
end
package.loaded.L_Arduino = nil
p = require("L_Arduino")
if (package.loaded.L_Arduino == nil)
then
luup.log("Arduino plugin: plugin is not installed correctly. Library L_Arduino cannot be loaded.", 1)
luup.task("Plugin not correctly installed", 2, "Arduino plugin", -1)
return false
end
This file has been truncated. show original
asinto
July 20, 2014, 10:15am
#3
Will try it. Thank for helping me out.
asinto
July 20, 2014, 10:33am
#4
Already using the file with the job instead of run commands. Any idea what else causes the problem?
I have my I_Arduino1.xml included as attachment.
hek
July 20, 2014, 12:14pm
#5
Memory shortage? Which Vera model do you have?
asinto
July 20, 2014, 1:49pm
#6
I’m using a Vera Lite running 1.5.622 firmware. System monitor shows over 45 MB memory available.
hek
July 20, 2014, 2:02pm
#7
Sorry. Don’t know why it restarts. The debug possibilities on Vera is minimal when it comes to why it decides to restarts of the luup-engine.
asinto
July 20, 2014, 2:17pm
#8
It freezes. At least parts of it (arduino gateway) No restarts occur. I will look further info it. Thanks for your time.
I see your on the beta 1.4. Have you tried 1.3 to see if you have the same problem?
Sent from my iPad using Tapatalk HD
asinto
July 21, 2014, 7:56am
#11
My sensors are not easy to reach/program, so i hope i can fix it otherwise. At the moment i’m configuring pleg in a different way to minimize the send/recieve to the sensors.
One of my last options will be switching back to 1.3
hek
July 21, 2014, 8:10am
#12
I don’t see that switching back should make any real difference.
asinto
July 23, 2014, 6:58pm
#13
Works fine now At first i had pleg configured in such way that when a value (humidity) changed the state of a switch was triggered and thus generating a send/recieve. Also when the switch was in the right state. That happened every 30s. Now i’m using a trigger instead and i’m only generating traffic when necesarry. No more freezing so far.