Re: [Owfs-developers] [PATCH] fix sequence number bug in w1 host adaptor code

2016-11-17 Thread Enrico Hoepfner
Hi Jan, sorry for that - in my sent-folder looks the message ok. owserver hangs some minutes when sequence number run over 0x Signed-off: "Enrico Hoepfner nlmsg_seq) != (unsigned int) seq ) { + if ( NL_SEQ(nlp.nlm->nlmsg_seq) != NL

Re: [Owfs-developers] [PATCH] fix sequence number bug in w1 host adaptor code

2016-11-17 Thread Enrico Hoepfner
Hi Jan, Thank you for the help and thepatience! owserver hangs some minutes when sequence number run over 0x Signed-off: "Enrico Hoepfner nlmsg_seq) != (unsigned int) seq ) { + if ( NL_SEQ(nlp.nlm->nlmsg_seq) != NL_SEQ(seq) ) { LEVEL_DEBUG(

[Owfs-developers] [PATCH] fix sequence number bug in w1 host adaptor code

2016-11-17 Thread Enrico Hoepfner
owserver hangs some minutes when sequence number run over 0x Signed-off: "Enrico Hoepfner nlmsg_seq) != (unsigned int) seq ) { + if ( NL_SEQ(nlp.nlm->nlmsg_seq) != NL_SEQ(seq) ) { LEVEL_DEBUG("Netlink sequence number

Re: [Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-17 Thread Enrico Hoepfner
r --stdout c14b0e446e686b4ab158bad2d6b4ac111df14c8f..79382f3e10c6566ae2e189fb708dade77e077fd2 From 79382f3e10c6566ae2e189fb708dade77e077fd2 Mon Sep 17 00:00:00 2001 From: Enrico Hoepfner Date: Thu, 17 Nov 2016 17:39:29 +0100 Subject: [PATCH] fix sequence number bug in w1 host adaptor code --- module/o

Re: [Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-16 Thread Enrico Hoepfner
Hello, the patch below works perfectly! thank you all for your help! how can I commit this patch to owfs source? can this do someone of the developers or is there a description how I can do that? best regards eni On 15.11.2016 16:36, Enrico Hoepfner wrote: Hello Stefano, reference to

Re: [Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-15 Thread Enrico Hoepfner
er to avoid a bug surfacing in another point of the code is nooot good. S. On 13 Nov 2016, at 11:10, Jan Kandziora <mailto:j...@gmx.de>> wrote: Am 13.11.2016 um 00:53 schrieb Enrico Hoepfner: Hi Jan, Thank you for the fast answer! I dont understand exacly , which patch and test

Re: [Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-13 Thread Enrico Hoepfner
s a point in the source where this masking is not done properly, and that is the bug to be corrected. Fudging the sequence number in order to avoid a bug surfacing in another point of the code is nooot good. S. On 13 Nov 2016, at 11:10, Jan Kandziora <mailto:j...@gmx.de>> wrote: Am 1

Re: [Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-13 Thread Enrico Hoepfner
ng. Best regards eni On 13.11.2016 11:10, Jan Kandziora wrote: > Am 13.11.2016 um 00:53 schrieb Enrico Hoepfner: >> Hi Jan, >> >> Thank you for the fast answer! >> I dont understand exacly , which patch and test from Paul you mean. >> Maybe I have take the diff i

Re: [Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-12 Thread Enrico Hoepfner
= NL_SEQ(++in->master.w1.seq); + LEVEL_DEBUG("NETLINK sequence number overrun"); + } bus = in->master.w1.id; } Best regards eni On 12.11.2016 22:34, Jan Kandziora wrote: > Am 12.11.2016 um 19:31 schrieb Enrico Hoep

[Owfs-developers] owfs - bug in ow_w1_send.c

2016-11-12 Thread Enrico Hoepfner
in my opinion there is a bug in ow_w1_send.c - that sequence number for netlink can run over 0x. this makes the problem that the message which is send (65536 & 0x), has a different sequence number as the Response is watinting for (65536). I've try the following patch to reset sequence nu

[Owfs-developers] owserver hang 5 minutes - after NETLINK seq=65536

2016-11-06 Thread Enrico Hoepfner
Hello, my owserver hangs sometime for 5 minutes. he is working on one request, but need 5 minutes to get the answer. In the logfile I've seen that this is happen when NETLINK sequence number is running over 65535. Nov 6 12:32:23 raspberrypi OWFS[17573]: DEBUG: ow_w1_send.c:(143) NETLINK sen

Re: [Owfs-developers] Read errors accessing DS18B20 on Pi using w1

2016-11-05 Thread Enrico Hoepfner
behavior best regards eni On 05.11.2016 22:31, Jan Kandziora wrote: > Am 05.11.2016 um 21:54 schrieb Enrico Hoepfner: >> Hello Jan, >> >> Thank you for the answer! >> >>I have 4 buses because >> 1) DS18B20 an DS2408 need different pullup-resistors >

Re: [Owfs-developers] Read errors accessing DS18B20 on Pi using w1

2016-11-05 Thread Enrico Hoepfner
regeards eni On 05.11.2016 20:54, Jan Kandziora wrote: > Am 05.11.2016 um 20:25 schrieb Enrico Hoepfner: >> to my system: >> I use w1_gpio on 4 pins, so I have 4 1wire-buses >> bus.1: 9x DS18B20 >> bus.2: 1x DS2408 >> bus.3: 3x DS18B20 >> bus.4: 1x DS2408 >&g

Re: [Owfs-developers] Read errors accessing DS18B20 on Pi using w1

2016-11-05 Thread Enrico Hoepfner
09:30 schrieb Enrico Hoepfner: Could it have do something with this hint in the kernel-driver from 1w-gpio https://www.kernel.org/doc/Documentation/w1/w1.generic = ... It is possible that between 1. and 2. w1 master thread will reset bus for searching and slave device will be even removed, but

Re: [Owfs-developers] Read errors accessing DS18B20 on Pi using w1

2016-11-05 Thread Enrico Hoepfner
Hello Colin, the workaround is for instance, to use owget -s 192.168.1.183:1 /bus.2/28.F51ECA03/temperature9 instead of owget -s 192.168.1.183:1 /28.F51ECA03/temperature9 eni On 05.11.2016 09:35, Colin Law wrote: On 5 November 2016 at 08:30, Enrico Hoepfner

Re: [Owfs-developers] Read errors accessing DS18B20 on Pi using w1

2016-11-05 Thread Enrico Hoepfner
Hello Colin, I've found a workaround - only use an other path to read from owfs-server and dont need any retry anymore. Workaround is to use /bus.x// instead of //. Have you a possibility to try, if this is working on your system also? I dont found the reason for that, but it works stable (wit

Re: [Owfs-developers] Read errors accessing DS18B20 on Pi using w1

2016-11-05 Thread Enrico Hoepfner
Hello Colin, I've exactly the same problem, also with raspberry pi and w1-kernel-modul. I've implemented a retry on client-side (OWNet.pm), this works mostly in the second try, maximum at the fourth time. could it be there is a timing problem with w1-kernel-modul? Linux raspberrypi 4.4.21+ #911