It might be very instructive to set up a connection between an OWFS instance and owserver and watch what it does. So when you want to do a temperature read, do it from owfs first and watch what comes up on your sniffer, them emulate that. I know that's not the same as having a protocol documentation, but it's a way to move forward more quickly.
I think most people have viewed the owserver protocol as something that is private to OW apps and have not tried to write their own software to interface to it. SO you are breaking the ground here. I would urge you to take this moment to document the protocol so the next person down the path can have a smoother time. I think this would also be something Paul would be grateful for. I have done exactly this kind of thing for other protocols in the past. jerry On 03/18/2013 07:51 AM, Hans Erik Busk wrote: > I am still having problems - on a somewhat higher level :-) > > the "dir" and "dirall" messages gets the expected response i.e. > > From Client: > 0000 00 00 00 00 00 00 00 02 00 00 00 07 00 00 01 00 ................ > 0010 00 00 00 00 00 00 00 00 2f 00 ......../. > > From owserver: > 0000 00 00 00 00 00 00 00 22 00 00 00 00 00 00 01 00 ......."........ > 0010 00 00 00 21 00 00 00 00 2f 32 38 2e 39 39 31 30 ...!..../28.9910 > 0020 34 39 30 31 30 30 30 30 2c 2f 38 31 2e 42 39 33 49010000,/81.B93 > 0030 35 32 39 30 30 30 30 30 30 00 529000000. > > > But when I try to get the temperature the server respons with another > errorvalue "ff ff ff ff". Like: > > From Client: > 0000 00 00 00 00 00 00 00 1e 00 00 00 02 00 00 01 00 ................ > 0010 00 00 00 00 00 00 00 00 2f 32 38 2e 39 39 31 30 ......../28.9910 > 0020 34 39 30 31 30 30 30 30 2f 74 65 6d 70 65 72 61 49010000/tempera > 0030 74 75 72 65 2f 00 ture/. > > Or without the trailing slash: > 0000 00 00 00 00 00 00 00 1d 00 00 00 02 00 00 01 00 ................ > 0010 00 00 00 00 00 00 00 00 2f 32 38 2e 39 39 31 30 ......../28.9910 > 0020 34 39 30 31 30 30 30 30 2f 74 65 6d 70 65 72 61 49010000/tempera > 0030 74 75 72 65 00 ture. > > > From owserver: > 0000 00 00 00 00 00 00 00 00 ff ff ff ff 00 00 01 00 ................ > 0010 00 00 00 00 00 00 00 00 ........ > > With wireshark I can se that owread add a value (0x00010000) in the > "size" field of the header, but I have not been able to get an > explanation for that field. > the server now sends "ff ff ff ff" in two datapackets as payload length > before finally sending the temperature reading, and that confuses me > pretty much. > > The dump loks like: > > Via owread, client: > 0000 00 00 00 00 00 00 00 1c 00 00 00 02 00 00 01 0a ................ > 0010 00 01 00 00 00 00 00 00 32 38 2e 39 39 31 30 34 ........28.99104 > 0020 39 30 31 30 30 30 30 2f 74 65 6d 70 65 72 61 74 9010000/temperat > 0030 75 72 65 00 ure. > > server [PSH, ACK]: > 0000 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 ................ > 0010 00 00 00 00 00 00 00 00 ........ > > Client [ACK]: > > server [PSH, ACK] > 0000 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 ................ > 0010 00 00 00 00 00 00 00 00 ........ > > Client [ACK] : > > server [PSH, ACK]: > 0000 00 00 00 00 00 00 00 0c 00 00 00 0c 00 00 01 0a ................ > 0010 00 00 00 0c 00 00 00 00 20 20 20 20 20 31 35 2e ........ 15. > 0020 31 38 37 35 1875 > > Client[ACK] > Client[FIN, ACK] > server[FIN, ACK] > Client[ACK] > server[ACK] > > I have found documentaten for the message format, but only details > regarding the flag and messagetype fields. I know I am missing > something, but I would be grateful if someone could point to a link for > this. > > And yes - I have tried to dig into the source code, but to me it is > really like finding a needle in a haystack. :-( > I am a pascal/delphi man. > > > > -- > Med venlig Hilsen > 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
