Re: [Owfs-developers] Two owserver problems

2009-08-09 Thread Steinar Midtskogen
[Steinar Midtskogen] > I've now run the latest owserver for a couple of hours, and all > devices are still there. I still see the duplication, though. I might have been too quick to report improvement. owserver ran fine for a couple of days, then it crashed and when I restarted, it quickly lost

Re: [Owfs-developers] Two owserver problems

2009-08-08 Thread Steinar Midtskogen
[Steinar Midtskogen] > I've now run the latest owserver for a couple of hours, and all > devices are still there. I still see the duplication, though. I then tried to run my logger program without queueing. It creates one thread per sensor, each going into a loop polling its sensor once every f

Re: [Owfs-developers] Two owserver problems

2009-08-07 Thread William Brown
Steinar Midtskogen wrote: > [Steinar Midtskogen] > > >> [Paul Alfille] >> >> >>> I think the duplication should be fixed. >>> >> I can give it a try if you commit to cvs (I just did an update, but >> there didn't seem to be any changes) >> > > Or perhaps there were changes, just

Re: [Owfs-developers] Two owserver problems

2009-08-07 Thread Steinar Midtskogen
[Steinar Midtskogen] > [Paul Alfille] > >> I think the duplication should be fixed. > > I can give it a try if you commit to cvs (I just did an update, but > there didn't seem to be any changes) Or perhaps there were changes, just that cvs doesn't report them at update as svn which I'm more used

Re: [Owfs-developers] Two owserver problems

2009-08-07 Thread Steinar Midtskogen
[Paul Alfille] > I think the duplication should be fixed. I can give it a try if you commit to cvs (I just did an update, but there didn't seem to be any changes) > Which bus master? The possibilities include poor electrical connection > (less likely if some versions work), a problem in the micr

Re: [Owfs-developers] Two owserver problems

2009-08-07 Thread Paul Alfille
I think the duplication should be fixed. Which bus master? The possibilities include poor electrical connection (less likely if some versions work), a problem in the microhub selection code (which is why I wanted to find out your topology) or a problem in the device discovery/location caching. I

Re: [Owfs-developers] Two owserver problems

2009-08-05 Thread Steinar Midtskogen
Paul Alfille writes: > Drat! > > Can you describe your topology a little? Are these DS18S20's off a > DS2409 microhub? Which bus master? Which devices (seem like rather > high temperatures mixed in). Here are the files accessed: 1F.BCFD0400/main/12.70945300/TAI8570/pressure 1F.BCFD0

Re: [Owfs-developers] Two owserver problems

2009-08-05 Thread Paul Alfille
Drat! Can you describe your topology a little? Are these DS18S20's off a DS2409 microhub? Which bus master? Which devices (seem like rather high temperatures mixed in). Paul On Wed, Aug 5, 2009 at 9:38 AM, Steinar Midtskogen wrote: > Paul Alfille writes: > >> There were problems with the DS2409

Re: [Owfs-developers] Two owserver problems

2009-08-05 Thread Steinar Midtskogen
Paul Alfille writes: > There were problems with the DS2409 microhub support. I think I've > fixed it. (At least it works well in extensive testing here). > > New Release 2.7.24 includes the changes. I've just tried the new release. I still lose devices pretty quickly until I restart owserver.

Re: [Owfs-developers] Two owserver problems

2009-08-04 Thread Paul Alfille
There were problems with the DS2409 microhub support. I think I've fixed it. (At least it works well in extensive testing here). New Release 2.7.24 includes the changes. Paul Alfille On Sun, Aug 2, 2009 at 10:57 AM, Steinar Midtskogen wrote: > "Christian Magnusson" writes: > >> Trying to do so

Re: [Owfs-developers] Two owserver problems

2009-08-02 Thread Steinar Midtskogen
"Christian Magnusson" writes: > Trying to do something like this will not crash owserver anymore... > > #!/bin/bash > while [ 1 ]; do > /opt/owfs/bin/owget /uncached/10.01/temperature & > sleep 0.1 > done I grabbed the current cvs version today to try it. Using that code I quick

Re: [Owfs-developers] Two owserver problems

2009-08-02 Thread Steinar Midtskogen
[Steinar Midtskogen] > [Matthias Urlichs] > >> Hi, >> >> Steinar Midtskogen: >>> In some directory listings for the hubs, I notice that the hub >>> (1F.xxx) and others on hte main bus reappear. Is that an error? >>> >> Yes. That shouldn't happen. > > Is it most likely anything more than a bit an

Re: [Owfs-developers] Two owserver problems

2009-08-02 Thread Steinar Midtskogen
[Matthias Urlichs] > Hi, > > Steinar Midtskogen: >> In some directory listings for the hubs, I notice that the hub >> (1F.xxx) and others on hte main bus reappear. Is that an error? >> > Yes. That shouldn't happen. Is it most likely anything more than a bit annoying, i.e. harmless? I see this

Re: [Owfs-developers] Two owserver problems

2009-07-07 Thread Paul Alfille
readonly is pretty good. It blocks all writes. Probably the best other thing to block would be all the "temperature9 temperature10 fasttemp, ...) Each requires changing the resolution setting on the temperature chip and performing a new (slow) read. We could set up a "safe" mode -- read-only, lim

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Steinar Midtskogen
[Paul Alfille] > So I'd guess that people access an public owhttpd should be pretty > safe, as long as the 1-wire devices aren't controlling something > delicate. Apart from the queueing issue, my main "worry" (if it turns out to be a problem, I'll just remove access) has been that a lot of uncac

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Paul Alfille
owhttpd safety: File system. owhttpd is very safe. There is only 2 places in the code where any file operations are done: 1. The "PID" file, which is set from the command line and specifies a file to write the pid number to. 2. The "configuration" file, again specified from the command line. Both

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Gregg C Levine
developers@lists.sourceforge.net > Subject: Re: [Owfs-developers] Two owserver problems > > "Christian Magnusson" writes: > > > Trying to do something like this will not crash owserver anymore... > > > > #!/bin/bash > > while [ 1 ]; do > >

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Steinar Midtskogen
"Christian Magnusson" writes: > Trying to do something like this will not crash owserver anymore... > > #!/bin/bash > while [ 1 ]; do > /opt/owfs/bin/owget /uncached/10.01/temperature & > sleep 0.1 > done Excellent. I've put my bus at risk by having all my sensors available publ

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Christian Magnusson
something like: ServerRead: Error receiving data on /uncached/FF.0001/temperature /Christian -Original Message- From: Steinar Midtskogen [mailto:stei...@latinitas.org] Sent: den 6 juli 2009 15:24 To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] Two ows

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Steinar Midtskogen
[Christian Magnusson] > So, what is a suitable limitation when reading from a remoteserver? Should > it be allowed to do 10, 20 or 50 concurrent requests? > As I can see, something must be really wrong if it increase over 20 > concurrent requests for one single 1-wire adapter. 10 or 20 is probabl

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Christian Magnusson
@lists.sourceforge.net Subject: Re: [Owfs-developers] Two owserver problems I added a simple semaphore to limit number of concurrent connections to 10 + 10 queued connection due to listen(). It may need some tuning or possibility to change with some command-line parameters perhaps. A read-timeout could perhaps also

Re: [Owfs-developers] Two owserver problems

2009-07-06 Thread Christian Magnusson
h too many requests. Is this ok for you all? /Christian -Original Message- From: Christian Magnusson [mailto:m...@mag.cx] Sent: den 10 juni 2009 19:36 To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] Two owserver problems Right now we seldom have more than 1

Re: [Owfs-developers] Two owserver problems

2009-06-11 Thread Steinar Midtskogen
[Christian Magnusson] > Right now we seldom have more than 1 connecting request in the listen-queue > at a time... mostly since the code _very_ quickly accepts all connections > and removes them from the queue. I'm sure nobody would notice any difference > if the listen-queue was lowered from 10 t

Re: [Owfs-developers] Two owserver problems

2009-06-10 Thread Christian Magnusson
e.net Subject: Re: [Owfs-developers] Two owserver problems On Wed, Jun 10, 2009 at 2:37 AM, Christian Magnusson wrote: > > Listen() in ow_net_server.c handles #1 automatically, more or less...  It's > set to handle 10 requests today, and according to the man-pages you see > this: >

Re: [Owfs-developers] Two owserver problems

2009-06-10 Thread Paul Alfille
On Wed, Jun 10, 2009 at 2:37 AM, Christian Magnusson wrote: > > Listen() in ow_net_server.c handles #1 automatically, more or less...  It's > set to handle 10 requests today, and according to the man-pages you see > this: > "If a connection  request  arrives  when the queue is full, the client may

Re: [Owfs-developers] Two owserver problems

2009-06-09 Thread Christian Magnusson
ex and will be hard to implement I think. /Christian -Original Message- From: Paul Alfille [mailto:paul.alfi...@gmail.com] Sent: den 10 juni 2009 04:21 To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] Two owserver problems Hi Steinar, I've been playing wi

Re: [Owfs-developers] Two owserver problems

2009-06-09 Thread Steinar Midtskogen
Hi Paul, > I'm not sure of the best way to handle this. Some thoughts: > 1. limit the total requests being processed at the same time, >A by not accepting new sockets until there is space, or >B. by returning an EBUSY error message. > 2. try to merge requests. (Only works if the same requ

Re: [Owfs-developers] Two owserver problems

2009-06-09 Thread Paul Alfille
Hi Steinar, I've been playing with your setup, and noticed one design problem right away -- currently there is no throttling of the number of queries queued by owserver. The loop can wrap around while owserver is still busy with the prior set of requests. I'm not sure of the best way to handle th

Re: [Owfs-developers] Two owserver problems

2009-06-07 Thread Steinar Midtskogen
Paul Alfille writes: > Great, a nice test case. Should be fixable. I like the shell script approach. ... > The problem seems to be that owserver is relatively fine as long as > the requests come in an orderly fashion, such as in this script: ... > But if I change the script to requ

Re: [Owfs-developers] Two owserver problems

2009-05-26 Thread Paul Alfille
Great, a nice test case. Should be fixable. I like the shell script approach. Paul Alfille On Tue, May 26, 2009 at 10:15 AM, Steinar Midtskogen wrote: > Matthias Urlichs writes: > > > Hi, > > > > Steinar Midtskogen: > >> In some directory listings for the hubs, I notice that the hub > >> (1F.xx

Re: [Owfs-developers] Two owserver problems

2009-05-26 Thread Steinar Midtskogen
Matthias Urlichs writes: > Hi, > > Steinar Midtskogen: >> In some directory listings for the hubs, I notice that the hub >> (1F.xxx) and others on hte main bus reappear. Is that an error? >> > Yes. That shouldn't happen. I'm suspecting that this is another issue, and less harmful. Both of the

Re: [Owfs-developers] Two owserver problems

2009-05-26 Thread Steinar Midtskogen
Steinar Midtskogen writes: > Paul Alfille writes: > >> On 5/25/09, Steinar Midtskogen wrote: >>> digitemp fails to see quite a few sensors (but occationally it finds >>> them but incorrectly list them on the main bus), whereas Oww never has >>> had any problems after years of use. >>> >> >> Sou

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Matthias Urlichs
Hi, Steinar Midtskogen: > In some directory listings for the hubs, I notice that the hub > (1F.xxx) and others on hte main bus reappear. Is that an error? > Yes. That shouldn't happen. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | sm...@smurf.noris.de Disclaimer: Das Zitat wurde zuf

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Steinar Midtskogen
Paul Alfille writes: > On 5/25/09, Steinar Midtskogen wrote: >> digitemp fails to see quite a few sensors (but occationally it finds >> them but incorrectly list them on the main bus), whereas Oww never has >> had any problems after years of use. >> > > Sounds like I should look at OWW implement

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Paul Alfille
On 5/25/09, Matthias Urlichs wrote: > Hi, > > Steinar Midtskogen: >>* When it's time to write to the log file, the parent will cancel >> all the threads, process all data from every thread (average, max, >> min, whatever to be logged etc) and log to file. >> > Hmm. Thread canceling

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Paul Alfille
On 5/25/09, Steinar Midtskogen wrote: > digitemp fails to see quite a few sensors (but occationally it finds > them but incorrectly list them on the main bus), whereas Oww never has > had any problems after years of use. > Sounds like I should look at OWW implementation, then. We are closer to di

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Paul Alfille
On 5/25/09, Steinar Midtskogen wrote: >I've written a C program using owcapi, which makes an Oww like log >file by accessing several owservers. The idea is get several >sources into one log file and one offline source is not to affect >logging from the other sources and have owser

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Steinar Midtskogen
Steinar Midtskogen writes: > I've run into two problems with owserver (on an NSLU2 with a DS9490R > USB adapter). I've been using 2.7p17 and 2.7p21, both have the same > problems. > > 1. Owserver is unable to read all sensors on my Hobby Boards hub, but >the sensors are there in the director

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Matthias Urlichs
Hi, Steinar Midtskogen: > > Why not just add a lock around accesses to the relevant data structures? > > The idea behind the design is to able to access several owservers > simultaniously; my 1-wire network is pretty big and I've split it into > several seperate 1-wire adapters. More important,

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Steinar Midtskogen
[Matthias Urlichs] > Steinar Midtskogen: > >* When it's time to write to the log file, the parent will cancel > > all the threads, process all data from every thread (average, max, > > min, whatever to be logged etc) and log to file. > > > > Hmm. Thread canceling might cause proble

Re: [Owfs-developers] Two owserver problems

2009-05-25 Thread Matthias Urlichs
Hi, Steinar Midtskogen: >* When it's time to write to the log file, the parent will cancel > all the threads, process all data from every thread (average, max, > min, whatever to be logged etc) and log to file. > Hmm. Thread canceling might cause problems (memory leaks? Non-release

[Owfs-developers] Two owserver problems

2009-05-25 Thread Steinar Midtskogen
I've run into two problems with owserver (on an NSLU2 with a DS9490R USB adapter). I've been using 2.7p17 and 2.7p21, both have the same problems. 1. Owserver is unable to read all sensors on my Hobby Boards hub, but the sensors are there in the directory listings. E.g.: This sensor is ok