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=cpwZYiEi 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=YISbCtmW_FAvpFsOLn4A:9 a=wPNLvfGTeEIA:10 a=6jktZp3dcHAl1vye2O6wCg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 70.113.67.117 Message-ID: <50415C6B.7020402@ecosensory.com> Date: Fri, 31 Aug 2012 19:52:59 -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: <5040BF06 DOT 9040601 AT ecosensory DOT com> 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:58 AM, Levente wrote: > On the root node there is a RTOS (also my code), but on the sensors and actor nodes there's only a while(1) loop. > > I don't know how to solve the programmability with your approach. Maybe I wasn't clear enough. I want to change the program at run > time as well for example by writing an SMS to the integrated GSM modem, or editing from a keypad, etc. I could write code in > native C of course, but I don't want to re-program the root-card each time I want to set new temperature, etc. I don't have any experience with changing a running program other than changing variables. If you want to reload the non-volatile memory with new code while you run then your while loop on the slave nodes sounds fine. You would do everything on the master node, and still that would involve asking the slave about volatile settings, (which would be in flags it set), and handling checking for inconsistencies caused by reloading the code as you run. John PS "scripting inside an MCU" does sound like forth to me. Or maybe LUA. Don't know. John no forth experience yet...