Mail Archives: geda-user/2012/08/31/09:58:50
--bcaec51b1b211c9ceb04c8903086
Content-Type: text/plain; charset=ISO-8859-1
I have my own protocol developed. The nodes are on a RS485 bus. A large
system can have multiple RS485 buses.
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.
It's not just for playing, I want to implement this.
On Fri, Aug 31, 2012 at 3:41 PM, John Griessen <john AT ecosensory DOT com> wrote:
> 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
>
--bcaec51b1b211c9ceb04c8903086
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I have my own protocol developed. The nodes are on a RS485 bus. A large sys=
tem can have multiple RS485 buses.<br><br>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.<br>
<br>I don't know how to solve the programmability with your approach. M=
aybe 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=
9;t want to re-program the root-card each time I want to set new temperatur=
e, etc.<br>
<br>It's not just for playing, I want to implement this.<br><br><div cl=
ass=3D"gmail_quote">On Fri, Aug 31, 2012 at 3:41 PM, John Griessen <span di=
r=3D"ltr"><<a href=3D"mailto:john AT ecosensory DOT com" target=3D"_blank">john=
@ecosensory.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">On 08/31/2012 08:14 AM, Levente wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
I'd like to implement something on the root node, that can read some pi=
ece of program from its flash or EEPROM and execute it,<br>
like read this temperature sensor, read that humidity sensor, do some math,=
write to that actor, which turns on a fan.<br>
</blockquote>
<br>
You could look for projects and find something complicated, but if it's=
just to learn and play with,<br>
you make a real time control loop of code on every microcontroller, and eve=
ry subroutine it runs comes from that.<br>
That way, it never gets stuck in a loop. =A0A response from a non-master no=
de can never block anything by the master,<br>
so a response can just be to set some flag, but other wise initiate nothing=
and<br>
wait for the master program to read that flag and go into action.<br>
<br>
What kind of network communication are you using?<span class=3D"HOEnZb"><fo=
nt color=3D"#888888"><br>
<br>
John<br>
</font></span></blockquote></div><br>
--bcaec51b1b211c9ceb04c8903086--
- Raw text -