Very thoughtful note.
Let me explore one of your ideas, on polling.
On Fri, Dec 21, 2012 at 6:06 PM, Michael Markstaller <m...@elabnet.de> wrote:
>
> And then I thought, if it wouldn't be great for owserver to have some
> kind of long-polling API where the client only gets notified if
> something interesting (again: iButtons, IO's) has changed instead of
> polling every 100ms.. Though I have no idea if/how this could be
> implemented..
> During the next days I wanted to add some timestamp-output to debugging
> to find out where we loose these 1-3secs but maybe there is an easier
> way/thought..
>
>
The only way owserver could notify you of changes, is indeed to poll, every
so often.
One method would be to add that function into owserver, as you suggest.
Another way would be to create an "owpoll" that would be configured to poll
owserver.
1. The overhead of communicating with owserver is negligible. (just chain
some owservers together to prove this).
2. owpoll could implement it's own configuration and communication system.
It's not clear how you'd want the signalling to be done.
3. owpoll could also act as a passthough to owserver to simplify the client
connections.
4. Perhaps owpoll could have some intelligence about what frequency to poll
given items.
On the other hand, 1-wire has a assynchronous presence detect mote for some
bus masters that we don't exploit. Because it's hard to do for serial
connections, and any communication on the bus can interfere with it. I
suppose that we could use it on the USB bus. owlib knows when the bus is
idle and so could sense new connections during that period. (This only
works for ibuttons being plugged in, not new sensor values, those still
need polling.)
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers