From nobody Mon Oct 3 15:50:57 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 4Mh50V1bRqz4d3hk; Mon, 3 Oct 2022 15:51:06 +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 4Mh50T1md7z3F5X; Mon, 3 Oct 2022 15:51:05 +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=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type :Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: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=GBJyq8az/8h8VTJsaBla4Q2OrzebC57bjK741XfT38M=; b=cLw+57Lp8CCRT4H7vG2bjPotCS xLNpT1Rtgfq4zwKoRpwVjmydBjAgjaR053DFC3+Cug05mZgErwX6UqXqyn9ODTDYvSGjOw2h3R5/v V2iiBdgRv58uo4AhqYHjP+2ZyKciigNrQFg1/LSHphe/FmZTeFBRYWJOky5i9mD0v5bI3xLseOLpU e2hehA/krrf4RgJzPLDwZ3AR/GDyZinwqSDsBeP15hjuzI3N85IbUpojcBZST+ghNTmdtmm0j/dVv GwQCMMfOcarHUQo52683N/+dPZKFIETdaYtxKKW3oKO/TBgHma/3DNdsUEox1VFewdOL3HpIp8k3b DnyN33ow==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ofNig-000KqL-7W; Mon, 03 Oct 2022 15:51:02 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664812257-12388-8168/7/137; Mon, 3 Oct 2022 15:50:57 +0000 From: Axel Rau Message-Id: <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288" 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 Date: Mon, 3 Oct 2022 17:50:57 +0200 In-Reply-To: <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org To: Hans Petter Selasky References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4Mh50T1md7z3F5X X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b=cLw+57Lp; 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)[multipart/alternative,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:+,1:+,2:~]; 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 --Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 03.10.2022 um 17:38 schrieb Hans Petter Selasky : >=20 > On 10/3/22 17:26, Axel Rau wrote: >> Questions: >> 1. On usbdump, why is the hexdump mssing on some lines like >> frame[0] WRITE bytes ? >=20 > The -s arguments tells to only grab the first 1024 bytes. Maybe it is = truncated. >=20 > Try setting -s to 65536 >=20 That does not help: - - -=20 usbdump -d ugen1.3 -v -v -v -s 65536 > usb.txt - - - 15:46:38.539679 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D= 0,IVAL=3D0,ERR=3D0 frame[0] WRITE 8 bytes flags 0 <0> status 0xca1a1 - - - Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 03.10.2022 um 17:38 schrieb Hans Petter Selasky <hps@selasky.org>:

On 10/3/22 = 17:26, Axel Rau wrote:
Questions:
1. On usbdump, why is the hexdump mssing on = some lines like
frame[0] WRITE <n> bytes  ?

The -s arguments tells to only grab the = first 1024 bytes. Maybe it is truncated.

Try= setting -s to 65536


That does not help:
- - - 
usbdump -d ugen1.3 -v = -v -v -s 65536 > usb.txt
- - -
15:46:38.539= 679 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D0,IVAL=3D0= ,ERR=3D0
 frame[0] WRITE 8 bytes
 flags 0 = <0>
 status 0xca1a1 <OPEN|STARTED|CONTROL_XFR|CON= TROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
- - -

A= xel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_9287BA0D-147A-4061-AAD0-D00C73E2A288--