Date: Mon, 3 Oct 2022 17:50:57 +0200 From: Axel Rau <Axel.Rau@Chaos1.DE> To: Hans Petter Selasky <hps@selasky.org> Cc: hardware@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Accessing I2C-Bus via ELV USB-I2C Message-ID: <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> In-Reply-To: <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> References: <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] > 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.539679 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 8 bytes flags 0 <0> status 0xca1a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0> - - - Axel --- PGP-Key: CDE74120 ☀ computing @ chaos claudius [-- Attachment #2 --] <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 03.10.2022 um 17:38 schrieb Hans Petter Selasky <<a href="mailto:hps@selasky.org" class="">hps@selasky.org</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 10/3/22 17:26, Axel Rau wrote:<br class=""><blockquote type="cite" class="">Questions:<br class="">1. On usbdump, why is the hexdump mssing on some lines like<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>frame[0] WRITE <n> bytes ?<br class=""></blockquote><br class="">The -s arguments tells to only grab the first 1024 bytes. Maybe it is truncated.<br class=""><br class="">Try setting -s to 65536<br class=""><br class=""></div></div></blockquote><br class=""></div><div>That does not help:</div><div>- - - </div><div><div><span style="font-family: Monaco; font-size: 11px; background-color: rgb(255, 255, 255);" class="">usbdump -d ugen1.3 -v -v -v -s 65536 > usb.txt</span></div><div>- - -</div><div>15:46:38.539679 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0</div><div> frame[0] WRITE 8 bytes</div><div> flags 0 <0></div><div> status 0xca1a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0></div><div class="">- - -</div><div class=""><br class=""></div></div>Axel<br class=""><div class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">---<br class="">PGP-Key: CDE74120 ☀ computing @ chaos claudius</div></div></div></div></div></div> </div> <br class=""></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?602324D8-515B-4061-8689-5638E9A82759>
