|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
How to setup a reliable, sychronized (automatic)system restartBeeing a newbe in the Linux world...
I have a setup where one old and slow computer is doing parts of the datacollection usining owserver under debian, and another faster server to consolidate all inputs and running a control system based on that input data. Now, at a power outage (living on the country side...) the server starts much faster than the data collecing machine. In my setup that prevents the owfs on the server to find the transducers on the collecting computer. Which in turn prevents the control application to run properly. It seems that the owserver on the server is unable to detect the other owserver on the collector when the collector comes up after the server. I am able to do semiautomatic restarts if I control the power switches in the proper sequense i.e. waiting for the collector to start before starting the server. I need some kind of syncronization, I think. How can I implement a reliable startup sequence ? regards tcmsklas ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restartI must admit, I thought owserver would wait for an absent owserver rather than exiting, but tests show you are right.
This sounds like a needed option for owserver. Or maybe just a program like "owtest" that gives a different exit code based on whether owserver exists or not. On Wed, Feb 1, 2012 at 8:47 AM, klas englund <tcmsklas@...> wrote: Beeing a newbe in the Linux world... ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restartOn 1 February 2012 15:01, Paul Alfille <paul.alfille@...> wrote:
> I must admit, I thought owserver would wait for an absent owserver rather > than exiting, but tests show you are right. Possibly not relevant, but I use owread to fetch data from a remote server and it copes fine with the server not accessible. Colin > > This sounds like a needed option for owserver. > > Or maybe just a program like "owtest" that gives a different exit code based > on whether owserver exists or not. > > > On Wed, Feb 1, 2012 at 8:47 AM, klas englund <tcmsklas@...> wrote: >> >> Beeing a newbe in the Linux world... >> >> I have a setup where one old and slow computer is doing parts of the >> datacollection usining owserver under debian, and another faster >> server to consolidate all inputs and running a control system based on >> that input data. >> >> Now, at a power outage (living on the country side...) the server >> starts much faster than the data collecing machine. In my setup that >> prevents the owfs on the server to find the transducers on the >> collecting computer. Which in turn prevents the control application >> to run properly. It seems that the owserver on the server is unable to >> detect the other owserver on the collector when the collector comes up >> after the server. >> >> I am able to do semiautomatic restarts if I control the power switches >> in the proper sequense i.e. waiting for the collector to start before >> starting the server. I need some kind of syncronization, I think. >> >> How can I implement a reliable startup sequence ? >> >> regards >> tcmsklas >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Owfs-developers mailing list >> Owfs-developers@... >> https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@... > https://lists.sourceforge.net/lists/listinfo/owfs-developers > -- gplus.to/clanlaw ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restartthis happen on owhttpd too, i need to restart always when it get down
2012/2/1 Colin Law <clanlaw@...>
-- Roberto Spadim Spadim Technology / SPAEmpresarial ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restartI find I have to wait for owserver to come up first by delaying until owdir
finds devices, then moving on. Bruce ------- owserverp="/opt/owfs/bin/owserver -u -p 3000" owfsp="/opt/owfs/bin/owfs -s 3000 /mnt/1wire" owhttpdp="/opt/owfs/bin/owhttpd -s 3000 -p 3001" owdir="/opt/owfs/bin/owdir -s 3000" ~~~~~~~~ $owserverp owd=$( $owdir ) owl=${#owd} while [ $owl -lt 1 ] do echo -ne "." owd=$( $owdir ) owl=${#owd} done echo "OK." echo " ----- Begin Device Report -----:" echo $owd; echo " ----- End Device Report -----:" echo -ne "Starting owfs[$owfsp]..." $owfsp echo "OK." echo -ne "Starting owhttpd[$owhttpdp]..." $owhttpdp echo "OK." ~~~~~~~~~ -----Original Message----- From: klas englund [mailto:tcmsklas@...] Sent: Wednesday, February 01, 2012 8:48 AM To: owfs-developers@... Subject: [Owfs-developers] How to setup a reliable,sychronized (automatic)system restart Beeing a newbe in the Linux world... I have a setup where one old and slow computer is doing parts of the datacollection usining owserver under debian, and another faster server to consolidate all inputs and running a control system based on that input data. Now, at a power outage (living on the country side...) the server starts much faster than the data collecing machine. In my setup that prevents the owfs on the server to find the transducers on the collecting computer. Which in turn prevents the control application to run properly. It seems that the owserver on the server is unable to detect the other owserver on the collector when the collector comes up after the server. I am able to do semiautomatic restarts if I control the power switches in the proper sequense i.e. waiting for the collector to start before starting the server. I need some kind of syncronization, I think. How can I implement a reliable startup sequence ? regards tcmsklas ---------------------------------------------------------------------------- -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restart-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 If your just collecting values, use owget/owread and simply ignore empty values (and 85.0°C on DS18x20); depends on what you exactly use.. OTOH, owserver inter-connection via avahi works fine (2.8p2) without any manual intervention, (I'm just trying to upgrade to 2.8p14 as you can see on my other posts ;)) Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8pygUACgkQaWRHV2kMuAL12QCfW5rB565V1CKFQPEAl5WhgDfp +FwAnjWbTrk9bUliQ6Buviq+OBAy7c8y =2csz -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restart(and 85.0°C on DS18x20)
just a point to anyone who use ds18X20 sensors when i get a 85 value from ds1820 i read again to check if it´s a problem with sensor, or a real temperature read
2012/2/1 Michael Markstaller <mm@...> -----BEGIN PGP SIGNED MESSAGE----- -- Roberto Spadim Spadim Technology / SPAEmpresarial ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restartTanks all for ideas!
I have not had the time to implement something yet, but I will probably go for the owread solution. Just one slight problem: where do I find a download location for the ow php binding? for the implementation of the "find missing owserver instance" implemntation: I would like owserver to treat that in a similar fashion as is handles 1wire devices. I.e. always connect to it when it apears, and contiunue to talk to all other servers and 1wire devices if one (declared) server has disapeared. Klas 2012/2/2, Roberto Spadim <roberto@...>: > (and 85.0°C on DS18x20) > just a point to anyone who use ds18X20 sensors > when i get a 85 value from ds1820 i read again to check if it´s a problem > with sensor, or a real temperature read > > > 2012/2/1 Michael Markstaller <mm@...> > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> If your just collecting values, use owget/owread and simply ignore >> empty values (and 85.0°C on DS18x20); depends on what you exactly use.. >> >> OTOH, owserver inter-connection via avahi works fine (2.8p2) without >> any manual intervention, (I'm just trying to upgrade to 2.8p14 as you >> can see on my other posts ;)) >> >> Michael >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.11 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAk8pygUACgkQaWRHV2kMuAL12QCfW5rB565V1CKFQPEAl5WhgDfp >> +FwAnjWbTrk9bUliQ6Buviq+OBAy7c8y >> =2csz >> -----END PGP SIGNATURE----- >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Owfs-developers mailing list >> Owfs-developers@... >> https://lists.sourceforge.net/lists/listinfo/owfs-developers >> >> > > > -- > Roberto Spadim > Spadim Technology / SPAEmpresarial > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
|
|
Re: How to setup a reliable, sychronized (automatic)system restartHave you considered using WOL (Wake on LAN) - presuming your old motherboard supports it?
Peter On Wed, Feb 1, 2012 at 5:47 AM, klas englund <tcmsklas@...> wrote: Beeing a newbe in the Linux world... ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Owfs-developers mailing list Owfs-developers@... https://lists.sourceforge.net/lists/listinfo/owfs-developers |
| Free embeddable forum powered by Nabble | Forum Help |