Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4779553ybe; Mon, 9 Sep 2019 14:36:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhqCUX8IfyFXFewsVpa+P+tYEEEe5/mrdWpj8rMBRcKQ6WEJnOiC2UEJiIdgNjH9O+1F3Q X-Received: by 2002:a17:906:4e15:: with SMTP id z21mr21418890eju.299.1568065002079; Mon, 09 Sep 2019 14:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568065002; cv=none; d=google.com; s=arc-20160816; b=zt+MR2jPwK1Qc+ifYNXGXy/qqg10YWYFwGGx4qDdBC2Ft5HpiAZKGZCW0Nhp4xFxoj Yhssa9uKPk+134caRWS/tqLFliuHZka9SfASPZ/rwrasCaP3PGDLRXmY5UC4hG4Lbf7O SihJc+z3kCoeDqZuXt76j+BDkR6JMwNqNE6Xor9UalPNrq7XlaiQSyMys6iDU3rEoz6a IIbeWLr83SyHHv2Tee77ez/mer/LKS1SBAIcCrkeE1sdIWuUnKjo/yP9dD0FHYUQ5rRz bL/ca9JDNm+L5PcSaRABlWLT8h6EgKaNXl/68QKzgeWpZKSJUTpA/JYTTLjlF71J/B+t Y5lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=AxBKQMMJmoIl8zFfCGAbOfSsNJZv2X5TRJOZ2QkFWr8=; b=nbwG382c7+43k3tzIVaZrMPFivwL0/T6GXPikM8QRhR1J4ia+KMXn2F4jMdX2G63Hd 1sM1u1WdAqH5rIbmKHmBu59BmUIoIZVe4d66Hp9Rb4Lb6Zz3WUl0fdG8fvNfyWr4R/JC U7tqYkO4+RkM9lMW6kIkUn4cDNYAlWtKyohwuBAhy/P/VqS7BW994kYaXj/kPMoL2Bp9 NnYx3Q6IUCCt4NJOlpeA3Fl7x0tXma6nLOoD+Cvc9IeVaWKxvP0rMldpM1F/Jp69A3VY L4wkw7LvwJg7DL2xaeroAzSJcefyo6OSqL8lrqDNHXJ7KMQKtKvcZDqcnLvN0jK2w93C JYtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@fel.cvut.cz header.s=felmail header.b=Vo8j7bZW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c48si9856964edc.169.2019.09.09.14.36.18; Mon, 09 Sep 2019 14:36:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@fel.cvut.cz header.s=felmail header.b=Vo8j7bZW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731799AbfIIHHx (ORCPT + 99 others); Mon, 9 Sep 2019 03:07:53 -0400 Received: from smtpx.feld.cvut.cz ([147.32.192.33]:49961 "EHLO smtpx.feld.cvut.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731728AbfIIHHx (ORCPT ); Mon, 9 Sep 2019 03:07:53 -0400 X-Greylist: delayed 345 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Sep 2019 03:07:50 EDT Received: from localhost (styx [192.168.200.7]) by smtpx.feld.cvut.cz (Postfix) with ESMTP id 4035B3AC14; Mon, 9 Sep 2019 09:02:04 +0200 (CEST) X-Virus-Scanned: IMAP STYX AMAVIS Received: from smtpx.feld.cvut.cz ([192.168.200.2]) by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10060) with ESMTP id 3bngMKHHp4-p; Mon, 9 Sep 2019 09:02:02 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by smtpx.feld.cvut.cz (Postfix) with ESMTP id 784063AADF; Mon, 9 Sep 2019 09:01:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fel.cvut.cz; s=felmail; t=1568012519; bh=AxBKQMMJmoIl8zFfCGAbOfSsNJZv2X5TRJOZ2QkFWr8=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=Vo8j7bZWpC5Cc8mU4AF94IKNphe3wu9ILkfhziz39x7c6AR4HeORk6MzY4JC9JHEN KnfTuDujeB3oJtlAWieHwKbjejwMOIMwHj0c/lBbzRN5hNADsKb7UsumedygVA2BJX KDwZ++Ei5CJOi2S3RGRk9hn1eZva/USwzrfm6RfEMerLJlcyMIy6YOP5zzGKsrNI/T uB0GHuFFxEf2NM4jz7n6n4b+ez4B2Cr6+SFlh59kiC3hqPz3kSn+iqaXvYVRTXHmW9 Qq4ILfuGxHTYS0CXuaLvxrWfMlgznz7gJPkEwTfUzzpU6FtHH728fQjG8Xn20nbAfv w69KLXr/OlrOg== From: =?utf-8?Q?Zbyn=C4=9Bk_Kocur?= Message-Id: <7FD0B694-64B5-433D-B451-A0FD4DF32AED@fel.cvut.cz> Content-Type: multipart/signed; boundary="Apple-Mail=_A1CBC4C3-6BB8-4C15-AA59-291285AA0473"; protocol="application/pkcs7-signature"; micalg=sha-256 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] iio: srf04: fix wrong limitation in distance measuring Date: Mon, 9 Sep 2019 08:53:57 +0200 In-Reply-To: <20190907094632.kalkqtkxlfphdx4w@arbad> Cc: Jonathan Cameron , linux-iio@vger.kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org To: Andreas Klinger References: <20190623122909.hhzskp6k5vm4wify@arbad> <20190626192134.4b7aed3c@archlinux> <03D5EE82-D6C7-4A03-9404-45B48F1EF5B6@fel.cvut.cz> <20190626204936.2756cefd@archlinux> <3372AFA8-5AD0-4044-9718-D3E2B76EDFAE@fel.cvut.cz> <20190907094632.kalkqtkxlfphdx4w@arbad> X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Apple-Mail=_A1CBC4C3-6BB8-4C15-AA59-291285AA0473 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Andreas, I'm so sorry for the delay. I was working on another project now, and I = wasn't entirely devoted to this. I looked at it at the weekend and the = modified code is working. I have only tested OpenWRT in build - = r10204-38b22b1, kernel 4.14.125. I do not expect complications on other = platforms. I tried it on several sensors. I was primarily interested in JSN-SR04T = (https://www.makerguides.com/jsn-sr04t-arduino-tutorial/). I have also = verified other designs = (https://randomnerdtutorials.com/complete-guide-for-ultrasonic-sensor-hc-s= r04/). It generally works. Relatively accurate for the area up to 2.5 m. = However, if the distance is longer, it starts to fizz, depending on the = sensor design. It is a property of used HW and its construction. I do not know how to do this in the development of drivers, whether it = makes sense to put a filter directly into the driver or at least pull = the maximum distance parameter as a variable? Anyway, the change made works. Zbynek --- email: zbynek.kocur@fel.cvut.cz phone: +420 224 354 054 web: http://www.fel.cvut.cz Department of Telecommunications Engineering Faculty of Electrical Engineering > On 7 Sep 2019, at 11:46, Andreas Klinger wrote: >=20 > Hi Zbynek, >=20 > do you have any feedback for us? >=20 > Thank you, >=20 > Andreas >=20 >=20 > Zbyn=C4=9Bk Kocur schrieb am Mi, 26. Jun = 21:50: >> Thank you, i will write a feedback after testing. >>=20 >>=20 >> Zbynek >> --- >> email: zbynek.kocur@fel.cvut.cz >> phone: +420 224 354 054 >> web: http://www.fel.cvut.cz >> Department of Telecommunications Engineering >> Faculty of Electrical Engineering >>=20 >>> On 26 Jun 2019, at 21:49, Jonathan Cameron wrote: >>>=20 >>> No rush, it's a clear fix anyway so we can queue this up >>> in the rc phase of the next kernel cycle! >>=20 >=20 > --=20 > Andreas Klinger > Grabenreith 27 > 84508 Burgkirchen > +49 8623 919966 > ak@it-klinger.de > www.it-klinger.de > www.grabenreith.de --Apple-Mail=_A1CBC4C3-6BB8-4C15-AA59-291285AA0473 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCCo0w ggUJMIID8aADAgECAhACt8ndrdK9CetZxFyQDGB4MA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNVBAYT AlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xJDAi BgNVBAMTG0RpZ2lDZXJ0IEFzc3VyZWQgSUQgUm9vdCBDQTAeFw0xNDExMTgxMjAwMDBaFw0yNDEx MTgxMjAwMDBaMHIxCzAJBgNVBAYTAk5MMRYwFAYDVQQIEw1Ob29yZC1Ib2xsYW5kMRIwEAYDVQQH EwlBbXN0ZXJkYW0xDzANBgNVBAoTBlRFUkVOQTEmMCQGA1UEAxMdVEVSRU5BIGVTY2llbmNlIFBl cnNvbmFsIENBIDMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwp9Jj5Aej1xPkS1GV 3LvBdemFmkUR//nSzBodqsU3dv2BCRD30r4gt5oRsYtyqDGF2nnItxV1SkwVoDxFeRzOIHYNYvBR HaiGvCQjEXzPRTocOSVfWpmq/zAL/QOEqpJogeM+0IBGiJcAENJshl7UcfjYbBnN5qStk74f52VW Ff/aiF7MVJnsUr3oriQvXYOzs8N/NXyyQyimatBbumJVCNszF1X+XHCGfPNvxlNFW9ktv7azK0ba minfLcsh6ubCdINZc+Nof2lU387NCDggoh3KsYVcZTSuhh7qp6MjxE5VqOZod1hpXXzDOkjK+DAM C57iZ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