|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
How to enable statistics?Hi all,
it looks like the 1-Wire statistics had been changed some time ago. So the documentation found here is not valid anymore. Meanwhile the directories and values found are much "leaner" and maybe enough. Is there somewhere else a documentation on how to use the new statistics and interpret all these values? I've provoked an error by unplugging a polled DS18B20, I've got the error-code in the OWCAPI application, but nowhere else. No logging in the /var/log/daemon.log (whereas a restart of the owserver appears here!) and no number increase in /bus.0/interface/statistics/errors. Any idea on what to change to make the errors in statistics or logfile visible? Here the owserver starting line: owserver --error_level=0 --error_print=1 --i2c=/dev/i2c-0:ALL -uall -f f.i.c -t 5 Thanks Achim |
|
|
Re: How to enable statistics?The statistics are usually generated by 1-wire trasmisssion errors: CRC errors and the like. You are right that the writeup is outdated. Some of the statistics (bus-specific) are now in the interface directory.
Why not run owserver with --debug when you provoke your problem? the debug messages are the most comprehensive since they are what is actually used to fix owfs development bugs. Paul Alfille P.S. A longer term project to have a better error reporting mechanism for owcapi is under way. On Tue, Jan 24, 2012 at 5:42 AM, ekgnkb3d <achimrs@...> wrote:
------------------------------------------------------------------------------ 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 enable statistics?So disconnected devices which are polled will not generate errors counted within the statistics, right? The provoked problem is not what I'm searching ;-) Basicaly I try to find a highly sporadic problem with DS18B20 connected via a long cable to a USB-Busmaster. They work fine wit a polling rate of 10s for one or more weeks, suddenly they disappear, all together at exactly the same time. Other DS18B20 connected to another BusMaster stay alive. I can't provoke this problem, I even have bad access to the hardware, it's not easy to make some changes. I only have full remote access to the Linux commandline, so I tried to find it via analyzing the logs. But --debug throws so much logs, that I can't see the problem after some hours... :-( This is good news!!! Thanks for all your time and energy Achim |
|
|
Re: How to enable statistics?what's your installation?
computer - serial ow - ow network - ds18b20? i have some ARM devices and i don't know why my serial device stop working what i do is restart owhttp program and it return normal operation maybe we have a problem at automatic detection of serial devices another doubt... could we remove auto detection and hard configure a single device at console? 2012/1/24 ekgnkb3d <achimrs@...>: > > > > Paul Alfille-2 wrote: >> >> The statistics are usually generated by 1-wire trasmisssion errors: CRC >> errors and the like. >> > So disconnected devices which are polled will not generate errors counted > within the statistics, right? > > > > Paul Alfille-2 wrote: >> >> Why not run owserver with --debug when you provoke your problem? the debug >> messages are the most comprehensive since they are what is actually used >> to >> fix owfs development bugs. >> > The provoked problem is not what I'm searching ;-) > Basicaly I try to fing a highly sporadic problem with DS18B20 connected via > a long cable to a USB-Busmaster. I > They work fine wit a polling rate of 10s for one or more weeks, suddenly > they disappear, al together at exactly the same time. But I can't provoke > this problem, I even hav bad access to the hardware, it's not easy to make > some changes. > I only have full remote access to the Linux/commandline, so I tried to find > it via analyzing the logs. But --debug throws so much logs, that I can't see > the problem after some hours... :-( > > > Paul Alfille-2 wrote: >> >> P.S. A longer term project to have a better error reporting mechanism for >> owcapi is under way. >> > This is good news!!! Thanks for all your time and energy > Achim > -- > View this message in context: http://old.nabble.com/How-to-enable-statistics--tp33194069p33198784.html > Sent from the OWFS - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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 enable statistics?could be a similar problem:
I'm using an ARM CPU and 1-Wire Busmaster for I2C and USB to establish 6 networks with about 40m length each. computer - I²C DS2482-100 ow - ow network - 1xDS18B20+3xDS2408 - I²C DS2482-100 ow - ow network - 3xDS18B20 - I²C DS2482-100 ow - ow network - 3xDS18B20 - I²C DS2482-100 ow - ow network - 3xDS18B20 - USB DS9490R ow - ow network - 3xDS18B20 - USB DS9490R ow - ow network - 2xDS18B20 These networks work fine except the 6. with USB and only 2 devices. They have the longest and worst cables and star topology. I measured a capacity of about 5nF to one device and 5.9nF to the other. Probably a solution would be to add a third DS9490R and connect only one device to each adapter, but ther are not enough USB-ports, so an addition USB-splitter would be needed. The above mentioned USB network simply stops responding after a random time between 1 day and 6 days. All devices will be polled each 10s and this works fine without any error (also not in the statistics) until the time comes and the both devices connected to this network are not reachable anymore. All other devices connected to the other 5 networks still works fine, even that one with the 3 devices on the other USB never had any problem. This behavior can be verified with owdir-tool and my self made owcapi application. A simple restart of the owserver will solve the problem. For the next days it will work fine until it hangs again... Maybe some error handling routine will be called very often for this network and at some time some resources are gone which causes all devices attached to this one network to be not reachable anymore. Currently this only happens in a house which is far away, I can't access the hardware for tests, so I'll try to recreate the problem within my lab. ??? I don't understand your proposal, maybe this is directed to Paul :-) |
|
|
Re: How to enable statistics?HI PAUL!! PLEASE READ!!!
2012/1/25 ekgnkb3d <achimrs@...>: > > could be a similar problem: > i have some ARM devices and i don't know why my serial device stop working > what i do is restart owhttp program and it return normal operation > maybe we have a problem at automatic detection of serial devices > The above mentioned USB network simply stops responding after a random time between 1 day and 6 days. All devices will be polled each 10s and this works fine without any error (also not in the statistics) until the time comes and the both devices connected to this network are not reachable anymore. All other devices connected to the other 5 networks still works fine, even that one with the 3 devices on the other USB never had any problem. This behavior can be verified with owdir-tool and my self made owcapi application. A simple restart of the owserver will solve the problem. For the next days it will work fine until it hangs again... Maybe some error handling routine will be called very often for this network and at some time some resources are gone which causes all devices attached to this one network to be not reachable anymore. Currently this only happens in a house which is far away, I can't access the hardware for tests, so I'll try to recreate the problem within my lab. Roberto Spadim wrote: > > another doubt... could we remove auto detection and hard configure a > single device at console? > ??? I don't understand your proposal, maybe this is directed to Paul :-) YES!!! PAUL PLEASE HELP US !!! =D a option to remove auto detection, and set a especific master device at console, with this for example i could just connect ds2480 and i don´t need to detect a bitbang rs232 device for example... this help reducing problem since i checked some problems at autodetection algorithm, but please don´t fix autodetection now, i think allowing a hard configuration detection is more efective since i really know what hardware i´m using, could you change this??? thanks! ------------------------------------------------------------------------------ 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 enable statistics?What "auto detection" are you referring to? Serial ports need to be specified specifically. USB enumeration is inconsistent, but you can specify which adapter (in order) to use. i2c address can be specified. network addresses can be specified. w1 won't let you specify. What else is there?
Are you referring to the auto-restart of USB? We could add an option to simply fail. The restart was in response to problems with USB getting transiently disconnected.
Paul
On Wed, Jan 25, 2012 at 12:13 PM, Roberto Spadim <roberto@...> wrote: HI PAUL!! PLEASE READ!!! ------------------------------------------------------------------------------ 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 enable statistics?for example...
owhttpd -d /dev/ttyS0 -p 80 using this it will test ds2480 and serial bit bang device (auto detect) could i set it to just use ds2480? 2012/1/25 Paul Alfille <paul.alfille@...>: > What "auto detection" are you referring to? Serial ports need to be > specified specifically. USB enumeration is inconsistent, but you can specify > which adapter (in order) to use. i2c address can be specified. network > addresses can be specified. w1 won't let you specify. What else is there? > > Are you referring to the auto-restart of USB? We could add an option to > simply fail. The restart was in response to problems with USB getting > transiently disconnected. > > Paul > > On Wed, Jan 25, 2012 at 12:13 PM, Roberto Spadim <roberto@...> > wrote: >> >> HI PAUL!! PLEASE READ!!! >> >> >> 2012/1/25 ekgnkb3d <achimrs@...>: >> > >> > could be a similar problem: >> > i have some ARM devices and i don't know why my serial device stop >> > working >> > what i do is restart owhttp program and it return normal operation >> > maybe we have a problem at automatic detection of serial devices >> > >> The above mentioned USB network simply stops responding after a random >> time >> between 1 day and 6 days. All devices will be polled each 10s and this >> works >> fine without any error (also not in the statistics) until the time comes >> and >> the both devices connected to this network are not reachable anymore. All >> other devices connected to the other 5 networks still works fine, even >> that >> one with the 3 devices on the other USB never had any problem. >> This behavior can be verified with owdir-tool and my self made owcapi >> application. >> >> A simple restart of the owserver will solve the problem. For the next >> days >> it will work fine until it hangs again... >> Maybe some error handling routine will be called very often for this >> network >> and at some time some resources are gone which causes all devices >> attached >> to this one network to be not reachable anymore. >> Currently this only happens in a house which is far away, I can't access >> the >> hardware for tests, so I'll try to recreate the problem within my lab. >> >> >> Roberto Spadim wrote: >> > >> > another doubt... could we remove auto detection and hard configure a >> > single device at console? >> > >> ??? I don't understand your proposal, maybe this is directed to Paul :-) >> >> YES!!! PAUL PLEASE HELP US !!! =D >> a option to remove auto detection, and set a especific master device >> at console, with this for example i could just connect ds2480 and i >> don´t need to detect a bitbang rs232 device for example... this help >> reducing problem since i checked some problems at autodetection >> algorithm, but please don´t fix autodetection now, i think allowing a >> hard configuration detection is more efective since i really know what >> hardware i´m using, could you change this??? >> thanks! >> >> >> ------------------------------------------------------------------------------ >> 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 > -- 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 enable statistics?yes usb restart is nice too since usb-serial devices get down (i don´t know why)
and some idiot can delete ttyS0 while owhttpd is running and after mknod it again 2012/1/25 Roberto Spadim <roberto@...>: > for example... > owhttpd -d /dev/ttyS0 -p 80 > > using this it will test ds2480 and serial bit bang device (auto detect) > could i set it to just use ds2480? > > 2012/1/25 Paul Alfille <paul.alfille@...>: >> What "auto detection" are you referring to? Serial ports need to be >> specified specifically. USB enumeration is inconsistent, but you can specify >> which adapter (in order) to use. i2c address can be specified. network >> addresses can be specified. w1 won't let you specify. What else is there? >> >> Are you referring to the auto-restart of USB? We could add an option to >> simply fail. The restart was in response to problems with USB getting >> transiently disconnected. >> >> Paul >> >> On Wed, Jan 25, 2012 at 12:13 PM, Roberto Spadim <roberto@...> >> wrote: >>> >>> HI PAUL!! PLEASE READ!!! >>> >>> >>> 2012/1/25 ekgnkb3d <achimrs@...>: >>> > >>> > could be a similar problem: >>> > i have some ARM devices and i don't know why my serial device stop >>> > working >>> > what i do is restart owhttp program and it return normal operation >>> > maybe we have a problem at automatic detection of serial devices >>> > >>> The above mentioned USB network simply stops responding after a random >>> time >>> between 1 day and 6 days. All devices will be polled each 10s and this >>> works >>> fine without any error (also not in the statistics) until the time comes >>> and >>> the both devices connected to this network are not reachable anymore. All >>> other devices connected to the other 5 networks still works fine, even >>> that >>> one with the 3 devices on the other USB never had any problem. >>> This behavior can be verified with owdir-tool and my self made owcapi >>> application. >>> >>> A simple restart of the owserver will solve the problem. For the next >>> days >>> it will work fine until it hangs again... >>> Maybe some error handling routine will be called very often for this >>> network >>> and at some time some resources are gone which causes all devices >>> attached >>> to this one network to be not reachable anymore. >>> Currently this only happens in a house which is far away, I can't access >>> the >>> hardware for tests, so I'll try to recreate the problem within my lab. >>> >>> >>> Roberto Spadim wrote: >>> > >>> > another doubt... could we remove auto detection and hard configure a >>> > single device at console? >>> > >>> ??? I don't understand your proposal, maybe this is directed to Paul :-) >>> >>> YES!!! PAUL PLEASE HELP US !!! =D >>> a option to remove auto detection, and set a especific master device >>> at console, with this for example i could just connect ds2480 and i >>> don´t need to detect a bitbang rs232 device for example... this help >>> reducing problem since i checked some problems at autodetection >>> algorithm, but please don´t fix autodetection now, i think allowing a >>> hard configuration detection is more efective since i really know what >>> hardware i´m using, could you change this??? >>> thanks! >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >> > > > > -- > Roberto Spadim > Spadim Technology / SPAEmpresarial -- 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 |
| Free embeddable forum powered by Nabble | Forum Help |