We would like to dev a hardware controller for SCADA , PLC ussages , The
system should run well year by year , without even 1 second down.
Yes, it can certainly be used for SCADA or PLC systems (I've used it for
both). Again, I see no reason it couldn't run forever. In reality, if you
last more than 19 days (a DWORD wrap incrementing at 1 per ms) then you're
going to probably live forever, or at least as long as your environment
allows.
1 How to write the stable code , what should I foucs on ? memory ,
ports...
Focus on testing. I can't say what area will be a problem since I have no
idea what you BSP or app look like, or your development skills with either.
Regaardless, though, if you have good testing, you can get a level of
confidence on MTBF.
2 <it's intentional for maintenance, services, etc> , for this , could
you
please tell me the detail principle in maintenance. could the application
come back to life by itself or OS chould do this?
Depends on the install. Maintenance may be an upgrade of teh app., It may
be a shutdown to change a servo or do robot programming. Whatever your
imagination can come up with in your scenario. Getting the app back up
afterward is your responsibility. It could be in the OS and auto-launched
that way. it could be on storage media and launched some other way. There
are almost limitless ways you could come up with to do this, but there are
probably less than half a dozen that are common.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com