Paul, one more question about the owserver protocol...


doing requests with those headers below, presence, write, dir/dirall works ok
The read function behaves somewhat funny.
a. numbers are msg packet contents, first=version
b. all my functions use the same sendPacket/getPacket function

take a breath..



Presence A
* OWNET.Java DEBUG [sendPacket] : 0 17 6 258 512 0
* OWNET.Java DEBUG [getPacket] : 0 0 0 0 0 0
true

^^^ nothing i can blame for ;)


Presence B
* OWNET.Java DEBUG [sendPacket] : 0 18 6 258 512 0
* OWNET.Java DEBUG [getPacket] : 0 0 -2 0 0 0
false

^^^ not for this, too ;)


Reading temperature
* OWNET.Java DEBUG [sendPacket] : 0 38 2 258 8192 0
* OWNET.Java DEBUG [getPacket] : 0 8192 12 0 12 0
        21.5

^^^ Well, shouldn't I have the response reversed?


Reading temperature on missing chip
* OWNET.Java DEBUG [sendPacket] : 0 38 2 258 8192 0
* OWNET.Java DEBUG [getPacket] : 0 0 -2 0 0 0
java.io.IOException: Error reading from server

^^^ on error, ret is in position.



Reading DS2406 memory
* OWNET.Java DEBUG [sendPacket] : 0 33 2 258 8192 0
* OWNET.Java DEBUG [getPacket] : 0 8192 128 0 128 0
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

^^^ again, wrong order?



Writing 1 to DS2406 PIO.A
* OWNET.Java DEBUG [sendPacket] : 0 25 3 258 2 0
* OWNET.Java DEBUG [getPacket] : 0 0 0 258 0 0
true

^^^ seems ok.


Writing 0 to DS2406 PIO.A
* OWNET.Java DEBUG [sendPacket] : 0 25 3 258 2 0
* OWNET.Java DEBUG [getPacket] : 0 0 0 258 0 0
true

^^^ seems ok.


Classic Directory
* OWNET.Java DEBUG [sendPacket] : 0 2 4 258 0 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 5 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 8 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 6 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 10 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 16 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 16 0
* OWNET.Java DEBUG [getPacket] : 0 42 0 258 16 0
* OWNET.Java DEBUG [getPacket] : 0 0 0 258 0 32770
bus.0
settings
system
statistics
/28.C072C0000000
/28.0E67C0000000
/12.04E64A000000

^^^ seems ok, but still need clarification:
payload should be <0 when timeout, 0 when end of list, >0 when pending data  ?




Compact Directory (DirAll)
* OWNET.Java DEBUG [sendPacket] : 0 2 7 258 8192 0
* OWNET.Java DEBUG [getPacket] : 0 84 0 258 83 0
bus.0
settings
system
statistics
/28.C072C0000000
/28.0E67C0000000
/12.04E64A000000

^^^ seems ok.






begin:vcard
fn:George M. Zouganelis
n:Zouganelis;George
org:Athens University of Economics and Business;Department of Management Science & Technology
adr:;;76, Patission Ave.;Athens;Attica;;Greece
email;internet:gzoug(at)aueb(dot) gr
title:Technical Administrator
x-mozilla-html:FALSE
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to