Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Jaap Struyk
On 04-07-09 22:19, Matthias Urlichs wrote: > So change the code to notice three separate increments in two seconds. > (How often do you poll the counter anyway?) This one every 2 sec. For the other sensors I did what Paul suggested, a (threaded) loop reading uncached every 0.5 sec. only that sc

Re: [Owfs-developers] owserver slowdown between 2.5 and 2.6

2009-07-04 Thread Steinar Midtskogen
[Paul Alfille] > In 2.5 we assumed "uncached" referred only to the property value, not > the location. > In 2.6 and later, "uncached" refers to both location and property > value. This forces clearance of stale directories. > > I suppose we could change this behavior: > uncached/device/property us

Re: [Owfs-developers] owserver slowdown between 2.5 and 2.6

2009-07-04 Thread Paul Alfille
Ok, I've had a chance to look at your question a little more closely. There is a change in behavior, and it was intentional. Let me explain: When you ask for a value, it requires 2 things: 1. Find/confirm the device location. 2. Get the data from the device. Both of these things are cached, the

Re: [Owfs-developers] Linkhub-E

2009-07-04 Thread Paul Alfille
It's the cvs version, but I'll release it as 2.7p23. Paul Alfille On Sat, Jul 4, 2009 at 4:25 PM, Jerry Scharf wrote: > Paul, > > It won't be today, but if you point me at the code I can test the code > against mine some time in the next week. > > jerry > > Paul Alfille wrote: >> You are all exac

Re: [Owfs-developers] Linkhub-E

2009-07-04 Thread Jerry Scharf
Paul, It won't be today, but if you point me at the code I can test the code against mine some time in the next week. jerry Paul Alfille wrote: > You are all exactly on the mark! I got feedback from Bill Farmer (head > of iButtonLink): > > - > If

Re: [Owfs-developers] Linkhub-E

2009-07-04 Thread Jerry Scharf
Matthias, I thought about mentioning that, but I know the xport will never need to escape an FF because the overlaid protocol is true ascii. jerry Matthias Urlichs wrote: > Hi, > > Paul Alfille: >> Using a "proper telnet client" sounds like added dependencies and >> libraries, unless anyone ha

Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Matthias Urlichs
Hi, William Brown: > Would a different or new switch help? I have a very similar problem with > my left mouse button. > Possibly. There are also switches which have a de-bounce capacitor built in. Mouse firmware should, by the way, handle de-bounce on its own. :-/ > Jaap Struyk wrote: > > I go

Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Jaap Struyk
On 04-07-09 20:55, Paul Alfille wrote: > Why do you get a shutdown with a 3-count? Is this a bug in owfs or your > program? It is intentional, the only thing I have to "talk" with the datalogger is that one button, one press starts the logging process, another stops it and when not logging a 3

Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread William Brown
Would a different or new switch help? I have a very similar problem with my left mouse button. Jaap Struyk wrote: > On 04-07-09 19:44, Matthias Urlichs wrote: > > >> That's likely to be simple mechanics. Pressing or releasing a button >> causes intermittent contacts. >> > > Fun thing is t

Re: [Owfs-developers] Install of owfs 2.7p22

2009-07-04 Thread William Brown
I found them, /usr/sbin. Thanks Christian Magnusson wrote: > You are installing the new binaries in /opt/owfs/bin/ > But you probably have some old installation in /usr/bin/ or /usr/local/bin/. > Try "which" to see which binary you have in your path. > > # which owhttpd > > And also try to specify

Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Paul Alfille
Why do you get a shutdown with a 3-count? Is this a bug in owfs or your program? Paul Alfille On Sat, Jul 4, 2009 at 2:03 PM, Jaap Struyk wrote: > I go for the de-bounce, when I push it once logging will start but if I > press 3x in 2 sec. the machine shuts down... (you understand my anger > toda

Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Jaap Struyk
On 04-07-09 19:44, Matthias Urlichs wrote: > That's likely to be simple mechanics. Pressing or releasing a button > causes intermittent contacts. Fun thing is that it hasn't happened for months and today it started again... > Either de-bounce it in hardware (you need a resistor and a capacitor)

Re: [Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Matthias Urlichs
Hi, Jaap Struyk: > > I use one my DS2423 counters and a button to start logging but sometimes > I ran into the odd thing that pressing the button gives a count of 4 or > 8 instead of 1. That's likely to be simple mechanics. Pressing or releasing a button causes intermittent contacts. Either d

Re: [Owfs-developers] Linkhub-E

2009-07-04 Thread Matthias Urlichs
Hi, Paul Alfille: > Using a "proper telnet client" sounds like added dependencies and > libraries, unless anyone has a good suggestion of code? > Nah. Simply ignoring the Telnet sequences (whenever they appear) means that you're essentially a "proper client". Addendum to Jerry's protocol descrip

Re: [Owfs-developers] Linkhub-E

2009-07-04 Thread Paul Alfille
You are all exactly on the mark! I got feedback from Bill Farmer (head of iButtonLink): - If I had to guess, I bet you still don't have a proper telnet client in OWFS (you probably are just opening a socket to port 10001). The FF FA 2C 6A 60 FF F0 c

[Owfs-developers] ds2423 counting wrong.

2009-07-04 Thread Jaap Struyk
Hello, I use one my DS2423 counters and a button to start logging but sometimes I ran into the odd thing that pressing the button gives a count of 4 or 8 instead of 1. It looks like it is related to the voltage of the power supply (I have a car battery to power the pc so it starts at 13.5V and

Re: [Owfs-developers] Linkhub-E

2009-07-04 Thread Ziggy
Seems to me the simplest solution would be to disable telnet mode on the Linkhub-E. Not having one to work with, and with the various models, firmware versions, and documentation versions out there it makes it a little hard so say for sure. But in the doc that I have been able to view there