the perl code (OWNet.pm) uses:

# PresenceCheck, Return bus list,  and apply aliases
my $DEFAULT_SG = 0x100 + 0x2 + 0x8 ;

One suggestion is to run owserver with debugging (--debug). The
interpretation of the incoming message is pretty well parsed in the output.

type 7 (DIRALL) is probably the best choice.

Yes, owread gets the temps over tcp. In fact, owread will work remotely and
you can wireshark it.


On Wed, Mar 13, 2013 at 10:53 AM, Hans Erik Busk <[email protected]> wrote:

> Thank you for helping.
>
> Your suggestion did avoid the error, but I still have no succes in
> getting data back from the owserver.
>
> I have tried several permutations of message types (4, 7, 8)  and format
> flags (ownet_flag, persistence) but I only get tcp-frames without data
> content back from the server.
>
> My dataframe from client is now like:
> 0030  fa f0 e0 3b 00 00) [00 00  00 00 00 00 00 01 00 00   ...;....
> ........
> 0040  00 04 00 00 01 04 00 00  00 00 00 00 00 00 2f]      ........ ....../
>
> and the info fram Wireshark looks like:
>
> time
> 0.000000  52838 > owserver  [SYN]
> 0.000486  owserver > 52838  [SYN, ACK]
> 0.000574  52838 > owserver  [ACK]
> 2.607654  52838 > owserver  [PSH, ACK]  contains the dataframe above
> 2.608142  owserver > 52838  [ACK]
> 2.608504  owserver > 52838  [FIN, ACK]
> 2.608542  52838 > owserver  [ACK]
>
> when I stop the testapplication I get further:
>
> 22.598495 52838 > owserver  [FIN, ACK]
> 22.599094 owserver > 52838  [ACK]
>
> I do not understand why owserver sendt the [FIN, ACK] at time 2.607654
> instead of a dataframe with [PSH, ACK]
>
> I assume that version=0000 and offset=0000 is correct, but I am
> uncertain about sg flags. It says in the docs:
> "0x00000100 Ownet request (included for all ownet messages)",
> does that mean both from client and from server, and are any of the
> flags mandatory?
>
> I can still read the temps locally:
> pi@raspberrypi ~ $ sudo /opt/owfs/bin/owread
> /28.991049010000/temperature /28.D43C49010000/temperature
>        12.375       23.75
>
> and as I understand it, owread also get the temps over TCP ?
>
>
>
> --
> --
> Yours
> Hans Erik Busk
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to