Forums

ECOS

Started by duci750 November 30, 2008
Hi!
I'am trying to find a good RTOS that can help me with a CAN based home
automation project. I am trying to put some intelligence into
controlling the heating, air-conditioning etc.

So far couple of Olimex LPC-H2294 header boards seem like good
candidates. I'am a bit spoiled by the power of PCs and would like to
get a feature rich RTOS that can handle networks etc. Also I would
like to use one RTOS for large and small task, even at the expense of
buying more memory.

After looking at a couple RTOSs I am about to settle with eCos.

Before committing myself I would be glad to hear some comments.

Thanks.

Best Regards,

Peter

An Engineer's Guide to the LPC2100 Series

On Sun, Nov 30, 2008 at 6:55 PM, duci750 wrote:
> Hi!
>
> I'am trying to find a good RTOS that can help me with a CAN based home
> automation project. I am trying to put some intelligence into
> controlling the heating, air-conditioning etc.
>
> So far couple of Olimex LPC-H2294 header boards seem like good
> candidates. I'am a bit spoiled by the power of PCs and would like to
> get a feature rich RTOS that can handle networks etc. Also I would
> like to use one RTOS for large and small task, even at the expense of
> buying more memory.
>
> After looking at a couple RTOSs I am about to settle with eCos.
>
> Before committing myself I would be glad to hear some comments.
>
> Thanks.
>
> Best Regards,
>
> Peter

ECOS is nice but a bit takes a lot of resources. FreeRTOS is much more
suited for small things. Contiki (http://www.sics.se/contiki/) is also
nice. Also have a look at the VSCP (Very Simple Control Protocol)
http://www.vscp.org

Cheers
/Ake

--
---
Ake Hedman
D of Scandinavia, http://www.dofscandinavia.com

Hi!

LPC-H2294 has a LPC2000 chip. I could not find any support for it mentioned
in either Contiki or CSCP. (the network will not be run by a PC)

FreeRTOS seem to be good, but I had a feeling that it is a bit too small
to provide enough OS functionality like I/O drivers, memory interface,
standard input/output functions etc.

Am I missing out on something? Is there more to it than it seems after
a brief overview?

Thx

Peter

________________________________
From: YAP
To: l...
Sent: Sunday, November 30, 2008 8:17:23 PM
Subject: Re: [lpc2000] ECOS
On Sun, Nov 30, 2008 at 6:55 PM, duci750 wrote:
> Hi!
>
> I'am trying to find a good RTOS that can help me with a CAN based home
> automation project. I am trying to put some intelligence into
> controlling the heating, air-conditioning etc.
>
> So far couple of Olimex LPC-H2294 header boards seem like good
> candidates. I'am a bit spoiled by the power of PCs and would like to
> get a feature rich RTOS that can handle networks etc. Also I would
> like to use one RTOS for large and small task, even at the expense of
> buying more memory.
>
> After looking at a couple RTOSs I am about to settle with eCos.
>
> Before committing myself I would be glad to hear some comments.
>
> Thanks.
>
> Best Regards,
>
> Peter

ECOS is nice but a bit takes a lot of resources. FreeRTOS is much more
suited for small things. Contiki (http://www.sics. se/contiki/) is also
nice. Also have a look at the VSCP (Very Simple Control Protocol)
http://www.vscp. org

Cheers
/Ake

--
---
Ake Hedman
D of Scandinavia, http://www.dofscand inavia.com


On Sun, Nov 30, 2008 at 9:19 PM, Peter Last NameHuszar
wrote:
> Hi!
>
> LPC-H2294 has a LPC2000 chip. I could not find any support for it mentioned
> in either Contiki or CSCP. (the network will not be run by a PC)

Contiki needs some porting. You have to do something yourself also... ;-)

VSCP runs on most stuff. no PC needed. This is a home automation
system not an OS. And it's been designed for CAN in the beginning even
if it now work on RF and Ethernet etc..

>
> FreeRTOS seem to be good, but I had a feeling that it is a bit too small
> to provide enough OS functionality like I/O drivers, memory interface,
> standard input/output functions etc.
>
> Am I missing out on something? Is there more to it than it seems after
> a brief overview?
>
> Thx
>
> Peter

You will find that the C standard libs is what you get and the loose
collections of code for drivers. Contiki take this a bit further but
not much. On the next level (Embedded windows/Embedded Linux/Ecos) you
have what you look for. But most LPC2000 uP's are not suitable for
this level and you have to stick with FreeRTOS ans similar (many
commercial systems available that costs plenty.
Cheers
/Ake

Thanks for the summary in the last paragraph. It was very helpful to
see the options available. FreeRTOS seems like a good candidate,
Contiki and VSCP needs more reading up from me before making a decision.

Regarding your comment:
> Contiki needs some porting. You have to do something yourself
also... ;-)

I am planning to control 4 air-conditioning units, a fireplace, a gas
furnace, water heater and a circulation system, with mixing valve, 4
pumps, plus other minor items like 7 electric shades, alarm system
interface etc. This should keep me busy for a while. I am eager to
start, but it would be more fun to get working on the control logic
rather than on the OS.

But as usual, there is no free lunch ;)

Thx
Peter
--- In l..., YAP wrote:
>
> On Sun, Nov 30, 2008 at 9:19 PM, Peter Last NameHuszar
> wrote:
> > Hi!
> >
> > LPC-H2294 has a LPC2000 chip. I could not find any support for it
mentioned
> > in either Contiki or CSCP. (the network will not be run by a PC)
>
> Contiki needs some porting. You have to do something yourself
also... ;-)
>
> VSCP runs on most stuff. no PC needed. This is a home automation
> system not an OS. And it's been designed for CAN in the beginning even
> if it now work on RF and Ethernet etc..
>
> >
> > FreeRTOS seem to be good, but I had a feeling that it is a bit too
small
> > to provide enough OS functionality like I/O drivers, memory interface,
> > standard input/output functions etc.
> >
> > Am I missing out on something? Is there more to it than it seems after
> > a brief overview?
> >
> > Thx
> >
> > Peter
>
> You will find that the C standard libs is what you get and the loose
> collections of code for drivers. Contiki take this a bit further but
> not much. On the next level (Embedded windows/Embedded Linux/Ecos) you
> have what you look for. But most LPC2000 uP's are not suitable for
> this level and you have to stick with FreeRTOS ans similar (many
> commercial systems available that costs plenty.
> Cheers
> /Ake
>

> I'am trying to find a good RTOS that can help me with a CAN based home
> automation project.

I might want to consider http://www.nuttx.org as well. It sounds like
it is very much along the lines you are thinking of. It is intended
to be a small footprint, scalable Linux-like OS. There are several
ARM ports including the LPC2148.

FWIW, I used FreeRTOS on an Olimex LPC2148 header board to control my
radiant heat floor system. I have several Dallas Semi OneWire
temperature sensors embedded in the floor, and an optoisolator to trip
the pump system. The system measures the temperature every 5 minutes
or so, figures out how long until the next time the floor is supposed
to be warm, and uses historical data to decide whether to start
pumping hot water through the pipes. I have a little UI, and the
system collects historical data so I can see why it decided to do what
it did.

The 2148 is overkill for this application, but I had one lying around.
I also have a '70s home security system that's based on some obsolete
monstrosity CPU; I plan to use another 2148 to run it.
On Sun, Nov 30, 2008 at 11:41 PM, duci750 wrote:
> Thanks for the summary in the last paragraph. It was very helpful to
> see the options available. FreeRTOS seems like a good candidate,
> Contiki and VSCP needs more reading up from me before making a decision.
>
> Regarding your comment:
>
>> Contiki needs some porting. You have to do something yourself
> also... ;-)
>
> I am planning to control 4 air-conditioning units, a fireplace, a gas
> furnace, water heater and a circulation system, with mixing valve, 4
> pumps, plus other minor items like 7 electric shades, alarm system
> interface etc. This should keep me busy for a while. I am eager to
> start, but it would be more fun to get working on the control logic
> rather than on the OS.
>
> But as usual, there is no free lunch ;)
>
> Thx
>
Consider joining the VSCP project. We do much of what you want to do.
Our mailing list is here
http://lists.sourceforge.net/lists/listinfo/m2m-development I have
our house heating controlled with a LPC2000 board
http://www.vscp.org/wiki/doku.php/the_hulk_ii_-_the_hulk_ii other
modules are here http://www.vscp.org/wiki/doku.php/vscp_modules

Good luck with your project
/Ake

--
---
Ake Hedman
D of Scandinavia, http://www.dofscandinavia.com

I have been studying the docs and the configtool of ECOS for a day or two.
It has a nice upscale path but it is really an overkill at this
state of my project. (and anywhere in the near future, I might add)

So I think I am now down to VSPC and FreeRTOS.

Regarding your home project, that's exactly the scale I am looking
for. Nice job! I'll definitely join up.

Thx.

Peter
--- In l..., YAP wrote:
> Consider joining the VSCP project. We do much of what you want to do.
> Our mailing list is here
> http://lists.sourceforge.net/lists/listinfo/m2m-development I have
> our house heating controlled with a LPC2000 board
> http://www.vscp.org/wiki/doku.php/the_hulk_ii_-_the_hulk_ii other
> modules are here http://www.vscp.org/wiki/doku.php/vscp_modules
>
> Good luck with your project
> /Ake
>
> --
> ---
> Ake Hedman
> D of Scandinavia, http://www.dofscandinavia.com
>

Thanks for the advice. I have almost given up on eCos due to
it's size and overwhelming features for such a small project. I am now
down to VSPC and FreeRTOS. I still don't have enoug info to make up
my mind.

Rgds,

Peter

--- In l..., "thirdshoedrops" wrote:
>
> FWIW, I used FreeRTOS on an Olimex LPC2148 header board to control my
> radiant heat floor system. I have several Dallas Semi OneWire
> temperature sensors embedded in the floor, and an optoisolator to trip
> the pump system. The system measures the temperature every 5 minutes
> or so, figures out how long until the next time the floor is supposed
> to be warm, and uses historical data to decide whether to start
> pumping hot water through the pipes. I have a little UI, and the
> system collects historical data so I can see why it decided to do what
> it did.
>
> The 2148 is overkill for this application, but I had one lying around.
> I also have a '70s home security system that's based on some obsolete
> monstrosity CPU; I plan to use another 2148 to run it.
>