Glad you are finding success! Let me answer your questions about owserver.

Good news. owserver is very flexible.

So multiple connections to owserver: OK
owserver to owserver: OK
owserver to multiple owservers: OK
owserver to any mix of real adapters and owservers: OK

As you can see, owserver is very powerful. It allows multiple connections to 
the same adapters, allows pooling adapters, and allows network separation of 
adapters and clients.

I gather that you aren't going to try to talk to the raw tcp traffic directly 
any more. That is wise. You won't have to worry about changes in the program 
this way. Clearly, the ascii interface (OW_get("26.1212123333/temperature")) 
is never going to change, but the tcp messages will probably evolve over 
time.

Paul Alfille

On Sunday 26 February 2006 07:24 pm, Krzysztof Drewicz wrote:
> Krzysztof Drewicz napisał(a):
> > Paul Alfille napisał(a):
> >> May I suggest looking at owcapi ?
> >>
> >>
> >>              #### for TCP/IP port (owserver)
> >
> > may I connect to one psychical owserwer (i.e. /dev/ttyS0 plus serving
> > on TCP port 3000) by owhttp -s 3000 and by owcapi?
Yes
>
> That seems ok
> even cache works:
>
> [EMAIL PROTECTED] c]# time ./ow_fscat
> temperature is  17.50
>     3.09s real     0.00s user     0.00s system
> [EMAIL PROTECTED] c]# time ./ow_fscat
> temperature is  17.50
>     1.01s real     0.01s user     0.00s system
> [EMAIL PROTECTED] c]# time ./ow_fscat
> temperature is  17.50
>     1.00s real     0.00s user     0.00s system
Great! Note that this data point was probably cached, which is why you are 
getting the same exact number. Try 
OW_get("/uncached/26.121212333/temperature") if you want a new measurement 
each time.
>
> any way: now i'm going to search for 'ow proxy' ie -- something that
> would work as "-s 3000 ... -s 3009" and will restult in single tcp
> output port with one owfs :-D
> in other words: i've got many (as much as 8 connected to USB ports and 1
> to real /dev/ttyS0) adapters on one box, and i could (should) use only
> one TCP port to talk to this box.
You can use either:
owserver -u -p 3000
owserver -u -p 3001
...
oswerver /dev/ttyS0 -s3009
owserver -s 3000 -s 3001 ... -s 3009 -p 4000
or
owserver -u1 -u2 ... -u8 /dev/ttyS0 -p 4000

The later choice uses less memory.

Paul Alfille


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to