As in an earlier thread I am using an DS18B20 directly connected to
GPIO pins of a Pi Zero with 1.5k pullup, operating at 3.3v. Owserver
is version 3.1p1-6 from raspbian testing.

I have specified
dtoverlay=w1-gpio,gpiopin=4
and done
sudo modprobe w1-gpio pullup=1

This basically works, both when connected in parasitic and 3 wire mode
but about 1 in 20 reads I get a read error (in both modes).  It is
operating on the bench so the bus is only a few inches long.  I have
started owserver in debug mode and below is what I see when there is
an error (it was connected in parasitic mode when the debug was
collected). If anyone can suggest what the problem may be I will be
very grateful.

Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_tcp_read.c:(63)
attempt 24 bytes Time: 10.000000 seconds
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_tcp_read.c:(113)
read: 24 - 0 = 24
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: from_client.c:(66)
FromClient payload=28 size=8192 type=2 sg=0x20 offset=0
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: from_client.c:(74)
FromClient (no servermessage) payload=28 size=8192 type=2
controlflags=0x20 offset=0
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_tcp_read.c:(63)
attempt 28 bytes Time: 10.000000 seconds
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_tcp_read.c:(113)
read: 28 - 0 = 28
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: handler.c:(153) START
handler 28.62DABD030000/temperature
Sep  5 13:48:03 piz002 owserver[2462]: CALL: data.c:(103) DataHandler:
parse path=28.62DABD030000/temperature
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_parseobject.c:(163)
28.62DABD030000/temperature
Sep  5 13:48:03 piz002 owserver[2462]: CALL: ow_parsename.c:(104)
path=[28.62DABD030000/temperature]
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_regex.c:(154) Not found
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_regex.c:(201) 0:
0->15 found <><28.62DABD030000><>
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_regex.c:(201) 1: 0->2
found <><28><.62DABD030000>
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_regex.c:(201) 2:
3->15 found <28.><62DABD030000><>
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_cache.c:(912) Looking
for device 28 62 DA BD 03 00 00 B8
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_cache.c:(1070) Search
in cache sn 28 62 DA BD 03 00 00 B8 pointer=0xb6ebd618 index=0 size=4
Sep  5 13:48:03 piz002 owserver[2462]: DEBUG: ow_cache.c:(1102) Value
found in cache, but expired by 0 seconds.
Sep  5 13:48:03 piz002 owserver[2462]: DETAIL: ow_presence.c:(80)
Checking presence of /28.62DABD030000/temperature
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_transaction.c:(379)
pack=RESET END VERIFY
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_transaction.c:(254)
Item cannot be bundled
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_transaction.c:(274)
Ship Packets=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_select.c:(70)
Selecting a path (and device) path=/28.62DABD030000/temperature SN=28
62 DA BD 03 00 00 B8 last path=00 00 00 00 00 00 00 00
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_select.c:(84)
Continuing root branch
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1.c:(103) Sending w1
reset message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_send.c:(132)
Netlink send -----------------
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=52 type=3
(NLMSG_DONE) flags=5 seq=1|301 pid=2465
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|301 ack=65837 len=16 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=4 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=5
(W1_CMD_RESET) len=0
Sep  5 13:48:04 piz002 owserver[2462]: NULL data
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_send.c:(143)
NETLINK sent seq=301
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(229) Loop
waiting for netlink piped message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(162) Pipe
header: len=52 type=3 seq=1|300 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(195) Pipe
read --------------------
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=52 type=3
(NLMSG_DONE) flags=0 seq=1|300 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|300 ack=65836 len=16 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=4 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=4
(W1_CMD_TOUCH) len=0
Sep  5 13:48:04 piz002 owserver[2462]: NULL data
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(236)
Netlink sequence number out of order
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(120)
Pre-parse header: 16 bytes len=36 type=3 seq=0|0 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(67)
Netlink (w1) Bad message length (36)
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(172)
Dispatch loop
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(112) Wait
to peek at message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(120)
Pre-parse header: 16 bytes len=52 type=3 seq=1|301 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(141)
Netlink read -----------------
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=52 type=3
(NLMSG_DONE) flags=0 seq=1|301 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|301 ack=65837 len=16 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=4 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=5
(W1_CMD_RESET) len=0
Sep  5 13:48:04 piz002 owserver[2462]: NULL data
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(91)
Netlink message directed to W1 bus master 1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(148)
Sending this packet to w1_bus_master1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(172)
Dispatch loop
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(112) Wait
to peek at message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(229) Loop
waiting for netlink piped message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(162) Pipe
header: len=52 type=3 seq=1|301 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(195) Pipe
read --------------------
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=52 type=3
(NLMSG_DONE) flags=0 seq=1|301 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|301 ack=65837 len=16 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=4 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=5
(W1_CMD_RESET) len=0
Sep  5 13:48:04 piz002 owserver[2462]: NULL data
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1.c:(260) Sending w1
send/receive data message for 28 62 DA BD 03 00 00 B8
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_send.c:(132)
Netlink send -----------------
Sep  5 13:48:04 piz002 owserver[2462]: Byte buffer Data, length=25
Sep  5 13:48:04 piz002 owserver[2462]: --000: F0 DB BE 6F FB B6 7F FB
FE FD DF FF EF FF B6 6D
Sep  5 13:48:04 piz002 owserver[2462]: --016: DB B6 6D DB B6 6D DB FE EF
Sep  5 13:48:04 piz002 owserver[2462]: <...o...........m..m..m...>
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=77 type=3
(NLMSG_DONE) flags=5 seq=1|302 pid=2465
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|302 ack=65838 len=41 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=29 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=4
(W1_CMD_TOUCH) len=25
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_send.c:(143)
NETLINK sent seq=302
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(120)
Pre-parse header: 16 bytes len=36 type=3 seq=0|0 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(67)
Netlink (w1) Bad message length (36)
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(172)
Dispatch loop
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(112) Wait
to peek at message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(120)
Pre-parse header: 16 bytes len=77 type=3 seq=1|302 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(141)
Netlink read -----------------
Sep  5 13:48:04 piz002 owserver[2462]: Byte buffer Data, length=25
Sep  5 13:48:04 piz002 owserver[2462]: --000: F0 92 AA 4A AA A4 56 AA
5A B5 55 DB AA AD 84 6D
Sep  5 13:48:04 piz002 owserver[2462]: --016: DB B6 6D DB B6 6D DB FE EF
Sep  5 13:48:04 piz002 owserver[2462]: <...J..V.Z.U....m..m..m...>
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=77 type=3
(NLMSG_DONE) flags=0 seq=1|302 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|302 ack=65839 len=41 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=29 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=4
(W1_CMD_TOUCH) len=25
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(91)
Netlink message directed to W1 bus master 1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(148)
Sending this packet to w1_bus_master1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(172)
Dispatch loop
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(112) Wait
to peek at message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(229) Loop
waiting for netlink piped message
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(162) Pipe
header: len=77 type=3 seq=1|302 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(195) Pipe
read --------------------
Sep  5 13:48:04 piz002 owserver[2462]: Byte buffer Data, length=25
Sep  5 13:48:04 piz002 owserver[2462]: --000: F0 92 AA 4A AA A4 56 AA
5A B5 55 DB AA AD 84 6D
Sep  5 13:48:04 piz002 owserver[2462]: --016: DB B6 6D DB B6 6D DB FE EF
Sep  5 13:48:04 piz002 owserver[2462]: <...J..V.Z.U....m..m..m...>
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=77 type=3
(NLMSG_DONE) flags=0 seq=1|302 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|302 ack=65839 len=41 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=29 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=4
(W1_CMD_TOUCH) len=25
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(249)
About to call nrs_callback
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(251)
Called nrs_callback
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_transaction.c:(222) verify = 1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_presence.c:(272)
Presence of 28 62 DA BD 03 00 00 B8 NOT found on bus w1_bus_master1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_parsename.c:(164) Set
error to 27 <Path - bad path syntax>
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_parsename.c:(63)
/28.62DABD030000/temperature
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: data.c:(106)
DataHandler: OWQ_create failed cm.ret=-1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: data.c:(207)
DataHandler: cm.ret=-1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: to_client.c:(76)
payload=0 size=0, ret=-1, sg=0x20 offset=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: to_client.c:(85) No data
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: data.c:(226) Finished
with client request
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: handler.c:(135) OWSERVER
handler done
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_net_server.c:(259)
Normal completion.
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(120)
Pre-parse header: 16 bytes len=52 type=3 seq=1|302 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(141)
Netlink read -----------------
Sep  5 13:48:04 piz002 owserver[2462]: NLMSGHDR: len=52 type=3
(NLMSG_DONE) flags=0 seq=1|302 pid=0
Sep  5 13:48:04 piz002 owserver[2462]: CN_MSG: idx/val=3/1 (CN_W1_IDX)
seq=1|302 ack=65838 len=16 flags=0
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_MSG: type=4
(W1_MASTER_CMD) len=4 id=1
Sep  5 13:48:04 piz002 owserver[2462]: W1_NETLINK_CMD: cmd=4
(W1_CMD_TOUCH) len=0
Sep  5 13:48:04 piz002 owserver[2462]: NULL data
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(91)
Netlink message directed to W1 bus master 1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(148)
Sending this packet to w1_bus_master1
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_dispatch.c:(172)
Dispatch loop
Sep  5 13:48:04 piz002 owserver[2462]: DEBUG: ow_w1_parse.c:(112) Wait
to peek at message

Cheers

Colin

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to