From nobody Tue Oct 04 10:03:19 2022 X-Original-To: hardware@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MhYDn75nHz4cyX1; Tue, 4 Oct 2022 10:03:21 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhYDn3wKGz3M0V; Tue, 4 Oct 2022 10:03:21 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=2022; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=iAbUprfAPsrEUM2xMvC3UQ3rKkkHCHRmoZy9mn5hgsQ=; b=XLlkkG6orFG6kcE7VjYrVHMgS6 s+DltDtXLCjdcQt5SKwly36c6IuuHWPLR7g8jmyvW/th0EUQr0PUCZEl38jtuT5slOGV0Ym/nbRpK 1AmbwxE5/Tl/QjMeUWDjV3HsLDuryUAaAvjQrxXHuWJwtFWbV1CX4GK9N/uVTTO4OYF9Tt2UdFClM XR5/a+CzegZbuhvRc02gNSBRohs0DO7sAJJbASeQlPxqkroibTJ6KQ2ENhkAPavcV+oSDf8WH+l/8 cD8poku3504IPboVpo2bAgH0f4iIxkByVe0W6P1D03HWqvuec1T/i8Qi8bmTL22R22iREKDrP++Rn G9YGWVgQ==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofelk-000FAe-7F; Tue, 04 Oct 2022 10:03:20 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664877799-11078-8168/7/140; Tue, 4 Oct 2022 10:03:19 +0000 Content-Type: text/plain; charset=utf-8 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C From: Axel Rau In-Reply-To: <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> Date: Tue, 4 Oct 2022 12:03:19 +0200 Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MhYDn3wKGz3M0V X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=XLlkkG6o; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-4.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[chaos1.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.20)[2a05:bec0:26:5::73:from,2a05:bec0:26:5::74:received]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Am 04.10.2022 um 10:39 schrieb Hans Petter Selasky : >=20 > That looks normal. >=20 > The DONE transaction transferred the SETUP packet, but still lists = frame [0], but is not dumping the data, because it has already been = sent. frame [0] is always the SETUP packet for control endpoints. >=20 So where should I dig further to find out why the read at 09:28:44.885162= shows only 'e:' from the string, shown completely at 09:28:47.463632 (2nd block) ? 09:28:44.878743 usbus1.3 SUBM-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 4,IVAL=3D0 frame[0] WRITE 1 bytes 0000 3F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |? = | flags 0x8 status 0xca023 09:28:44.878816 usbus1.3 DONE-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 1 bytes flags 0x8 status 0xca021 09:28:44.885162 usbus1.3 DONE-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 4,IVAL=3D0,ERR=3D0 frame[0] READ 2 bytes 0000 65 3A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |e: = | flags 0xa status 0xcb021 09:28:44.885176 usbus1.3 SUBM-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0 frame[0] READ 1024 bytes flags 0xa status 0xeb023 09:28:44.888153 usbus1.3 DONE-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 24,IVAL=3D0,ERR=3D0 frame[0] READ 24 bytes 0000 31 31 35 32 30 30 20 62 69 74 2F 73 0D 0A 49 32 |115200 = bit/s..I2| 0010 43 2D 43 6C 6F 63 6B 3A -- -- -- -- -- -- -- -- |C-Clock: = | flags 0xa =20 Here I get the right response: 09:28:47.457426 usbus1.3 SUBM-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 4,IVAL=3D0 frame[0] WRITE 1 bytes 0000 3F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |? = | flags 0x8 status 0xca023 09:28:47.457462 usbus1.3 DONE-BULK-EP=3D00000001,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 1 bytes flags 0x8 status 0xca021 09:28:47.463632 usbus1.3 DONE-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 68,IVAL=3D0,ERR=3D0 frame[0] READ 66 bytes 0000 0D 0A 45 4C 56 20 55 53 42 2D 49 32 43 2D 49 6E |..ELV USB-I2C-I= n| 0010 74 65 72 66 61 63 65 20 76 31 2E 38 20 28 43 61 |terface v1.8 = (Ca| 0020 6C 3A 35 43 29 0D 0A 4C 61 73 74 20 41 64 72 65 |l:5C)..Last = Adre| 0030 73 73 3A 30 78 30 30 0D 0A 42 61 75 64 72 61 74 |ss:0x00..Baudra= t| 0040 65 3A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |e: = | flags 0xa status 0xeb021 09:28:47.463644 usbus1.3 SUBM-BULK-EP=3D00000081,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0 frame[0] READ 1024 bytes flags 0xa status 0xcb023 Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius >=20 =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius