I've updated to the latest NSLU2 build of owlib/owfs/owshell (2.6p2-3) and
continue to be unable to read DS18S20 sensors through a DS2409 microlan
coupler. The thing is, I *can* read the DS1820 in my V1 weather station. I
tried reading both devices using owread and made sure the conditions were the
same (unexpired entry in cache while reading uncached value). The results are
the same whether reading cached values, uncached/expired, etc. The debug output
from owserver is below. I don't see any real differences between the two, yet
the DS18S20 consistently fails while the other consistently works. This worked
OK in earlier versions (2.5p10 I believe) and digitemp reads the sensor just
fine, so I don't think the bus has changed any. The same sensors work if *not*
connected through the hub. That makes is sound like owfs is doing something to
the hub during the read that disrupts the DS18S20, but not the older DS1820. No
evidence to support this, just guessing.
At this point I'm at a loss. I don't know what other debug info to collect,
what I have isn't telling me anything, and my sensors still don't work :\ Any
ideas for further debugging?
Thanks!
Paul
(debug logs below)
Unreadable DS18S20:
DEBUG: ServerProcessAccept = 1026 CLOSING
DEBUG: ServerProcessAccept 3002[1026] try lock 0
DEBUG: ServerProcessAccept 3002[1026] locked 0
DEBUG: FromClient payload=58 size=8096 type=2 tempscale=10102 offset=0
CALL: owserver: parse
path=/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
DEBUG: FS_OWQ_create of
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
CALL: PARSENAME
path=[/uncached/1F.A6D500000000/aux/10.B57639010800/temperature]
DEBUG: Cache_Get_Device 1F A6 D5 00 00 00 00 DB
DEBUG: Get from cache sn 1F A6 D5 00 00 00 00 DB pointer=(nil) index=-1 size=4
DEBUG: value found in cache
CALL: Read message
DEBUG: ReadHandler: From Client sm->payload=58 sm->size=8096 sm->offset=0
DEBUG: READ_POSTPARSE
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
DEBUG: READ_POSTPOSTPARSE
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
DEBUG: FS_r_given_bus
OWQ OneWireQuery structure of
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
OneWireQuery size=8096 offset=0
Byte buffer OneWireQuery buffer, length=8096
-- 00 00 00 07 00 00 A3 70 00 00 00 00 80 00 00 00
-- 00 00 00 18 00 00 21 71 20 20 20 20 20 20 20 20
-- 20 31 38 35 FF FF FF FF 45 F7 07 AE 00 00 00 04
-- 00 00 00 00 A1 AF 28 6C 00 00 00 28 00 00 21 49
-- 20 20 20 20 20 20 20 20 20 31 38 35 80 00 00 00
-- 00 00 00 00 00 00 21 31 44 53 31 38 53 32 30 2E
-- 35 39 37 34 00 00 00 00 00 00 00 00 00 00 00 00
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<.......p..............!q 185....E.............(l...(..!I
185..........!1DS18S20.5974...........
OneWireQuery I=0 U=0 F=0 Y=0 D=Wed Dec 31 19:00:00 1969
--- OneWireQuery done
CALL: FS_r_single: format=11 file_length=8096 offset=0
DEBUG: Selecting a path (and device)
path=/uncached/1F.A6D500000000/aux/10.B57639010800/temperature SN=10 B5 76 39
01 08 00 E0 last path=1F A6 D5 00 00 00 00 DB
DATA: DS9490_reset
DATA: DS9490_reset: ok
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Transaction select = 0
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Cache_Add_Internal 10 B5 76 39 01 08 00 E0 size=1
DEBUG: Add to cache sn 10 B5 76 39 01 08 00 E0 pointer=0x4005bed8 index=-2
size=1
DEBUG: Selecting a path (and device)
path=/uncached/1F.A6D500000000/aux/10.B57639010800/temperature SN=10 B5 76 39
01 08 00 E0 last path=1F A6 D5 00 00 00 00 DB
DATA: DS9490_reset
DATA: DS9490_reset: ok
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Transaction select = 0
DATA: DS9490_Powerbyte
DEBUG: ToClient payload=-1 size=0, ret=0, sg=0 offset=0
DATA: DS9490_level 0 (old = 1)
DATA: DS9490_HaltPulse
DATA: DS9490_HaltPulse: loop
DATA: DS9490_HaltPulse: ok
DEBUG: Transaction power (1100 usec) = 0
DEBUG: Transaction end = 0
DEBUG: Selecting a path (and device)
path=/uncached/1F.A6D500000000/aux/10.B57639010800/temperature SN=10 B5 76 39
01 08 00 E0 last path=1F A6 D5 00 00 00 00 DB
DATA: DS9490_reset
DATA: DS9490_reset: ok
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Transaction select = 0
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction CRC8 = 0
DEBUG: Transaction end = 0
DEBUG: FS_r_single: (float) 85
DEBUG: Cache_Add 10 B5 76 39 01 08 00 E0 size=8
DEBUG: Add to cache sn 10 B5 76 39 01 08 00 E0 pointer=0x4006cc44 index=0
size=8
Byte buffer Fowq_output_offset_and_size, length=12
-- 20 20 20 20 20 20 20 20 20 31 38 35
< 185>
DEBUG: READ_POSTPOSTPARSE:
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature return 12
DEBUG: READ_POSTPARSE
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature return 12
DEBUG: ReadHandler: To Client cm->payload=8096 cm->size=12 cm->offset=0
DEBUG: ReadHandler: return size=12 [ 185€]
DEBUG: Read message done retbuffer=0x20e80
DEBUG: FS_OWQ_destroy of
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
DEBUG: ParsedName_destroy
/uncached/1F.A6D500000000/aux/10.B57639010800/temperature
DEBUG: RealHandler: FS_ParsedName_destroy done
DEBUG: RealHandler: cm.ret=12
DEBUG: ToClient payload=8096 size=12, ret=12, sg=10102 offset=0
DEBUG: RealHandler: done
DEBUG: OWSERVER handler done
#
Original V1 Weather Station DS1820:
DEBUG: ServerProcessAccept = 1026 CLOSING
DEBUG: ServerProcessAccept 3002[1026] try lock 0
DEBUG: ServerProcessAccept 3002[1026] locked 0
DEBUG: FromClient payload=59 size=8096 type=2 tempscale=10102 offset=0
CALL: owserver: parse
path=/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
DEBUG: FS_OWQ_create of
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
CALL: PARSENAME
path=[/uncached/1F.A9D400000000/main/10.C2913C000000/temperature]
DEBUG: Cache_Get_Device 1F A9 D4 00 00 00 00 32
DEBUG: Get from cache sn 1F A9 D4 00 00 00 00 32 pointer=(nil) index=-1 size=4
DEBUG: value found in cache
CALL: Read message
DEBUG: ReadHandler: From Client sm->payload=59 sm->size=8096 sm->offset=0
DEBUG: READ_POSTPARSE
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
DEBUG: READ_POSTPOSTPARSE
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
DEBUG: FS_r_given_bus
OWQ OneWireQuery structure of
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
OneWireQuery size=8096 offset=0
Byte buffer OneWireQuery buffer, length=8096
-- 40 1A FE 1C 40 1A FE 1C 37 34 34 37 00 00 00 00
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-- 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<@[EMAIL PROTECTED]
OneWireQuery I=0 U=0 F=0 Y=0 D=Wed Dec 31 19:00:00 1969
--- OneWireQuery done
CALL: FS_r_single: format=11 file_length=8096 offset=0
DEBUG: Selecting a path (and device)
path=/uncached/1F.A9D400000000/main/10.C2913C000000/temperature SN=10 C2 91 3C
00 00 00 2A last path=1F A9 D4 00 00 00 00 32
DATA: DS9490_reset
DATA: DS9490_reset: ok
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Transaction select = 0
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Cache_Add_Internal 10 C2 91 3C 00 00 00 2A size=1
DEBUG: Add to cache sn 10 C2 91 3C 00 00 00 2A pointer=0x4005bed8 index=-2
size=1
DEBUG: Selecting a path (and device)
path=/uncached/1F.A9D400000000/main/10.C2913C000000/temperature SN=10 C2 91 3C
00 00 00 2A last path=1F A9 D4 00 00 00 00 32
DATA: DS9490_reset
DATA: DS9490_reset: ok
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Transaction select = 0
DATA: DS9490_Powerbyte
DEBUG: ToClient payload=-1 size=0, ret=0, sg=0 offset=0
DATA: DS9490_level 0 (old = 1)
DATA: DS9490_HaltPulse
DATA: DS9490_HaltPulse: loop
DATA: DS9490_HaltPulse: ok
DEBUG: Transaction power (1100 usec) = 0
DEBUG: Transaction end = 0
DEBUG: Selecting a path (and device)
path=/uncached/1F.A9D400000000/main/10.C2913C000000/temperature SN=10 C2 91 3C
00 00 00 2A last path=1F A9 D4 00 00 00 00 32
DATA: DS9490_reset
DATA: DS9490_reset: ok
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction end = 0
DEBUG: Transaction select = 0
DEBUG: Transaction send = 0
DEBUG: Transaction readin = 0
DEBUG: Transaction CRC8 = 0
DEBUG: Transaction end = 0
DEBUG: FS_r_single: (float) 9.34211
DEBUG: Cache_Add 10 C2 91 3C 00 00 00 2A size=8
DEBUG: Add to cache sn 10 C2 91 3C 00 00 00 2A pointer=0x4006cc44 index=0
size=8
Byte buffer Fowq_output_offset_and_size, length=12
-- 20 20 20 20 20 34 38 2E 38 31 35 38
< 48.8158>
DEBUG: READ_POSTPOSTPARSE:
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature return 12
DEBUG: READ_POSTPARSE
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature return 12
DEBUG: ReadHandler: To Client cm->payload=8096 cm->size=12 cm->offset=0
DEBUG: ReadHandler: return size=12 [ 48.8158]
DEBUG: Read message done retbuffer=0x1e9e8
DEBUG: FS_OWQ_destroy of
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
DEBUG: ParsedName_destroy
/uncached/1F.A9D400000000/main/10.C2913C000000/temperature
DEBUG: RealHandler: FS_ParsedName_destroy done
DEBUG: RealHandler: cm.ret=12
DEBUG: ToClient payload=8096 size=12, ret=12, sg=10102 offset=0
DEBUG: RealHandler: done
DEBUG: OWSERVER handler done
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers