X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Authority-Analysis: v=2.0 cv=Vb91zSV9 c=1 sm=0 a=6jktZp3dcHAl1vye2O6wCg==:17 a=jl9P3j1e7_0A:10 a=2xJ3G-9csIsA:10 a=O3fP0lvC2y8A:10 a=6WB07kdHjWAA:10 a=8nJEP1OIZ-IA:10 a=hBZ8xgLL6mYA:10 a=wR-FlJDvAAAA:8 a=AeGtFplhAAAA:8 a=MW7WNjjHAAAA:8 a=q6n7dDFYgbJtDdBU9N8A:9 a=wPNLvfGTeEIA:10 a=m_AbdItVNwsA:10 a=6jktZp3dcHAl1vye2O6wCg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 70.113.67.117 Message-ID: <5040BF06.9040601@ecosensory.com> Date: Fri, 31 Aug 2012 08:41:26 -0500 From: John Griessen User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] OT scripting inside an MCU References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com On 08/31/2012 08:14 AM, Levente wrote: > I'd like to implement something on the root node, that can read some piece of program from its flash or EEPROM and execute it, > like read this temperature sensor, read that humidity sensor, do some math, write to that actor, which turns on a fan. You could look for projects and find something complicated, but if it's just to learn and play with, you make a real time control loop of code on every microcontroller, and every subroutine it runs comes from that. That way, it never gets stuck in a loop. A response from a non-master node can never block anything by the master, so a response can just be to set some flag, but other wise initiate nothing and wait for the master program to read that flag and go into action. What kind of network communication are you using? John