Date: Wed, 5 Oct 2022 13:55:22 +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: <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> In-Reply-To: <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> 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> <F81783C4-F79F-48A1-A5BE-25D997DF29DA@Chaos1.DE> <beafa2e5-17e7-491a-d104-a0ede1b69ce3@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 04.10.2022 um 13:43 schrieb Hans Petter Selasky <hps@selasky.org>: >=20 > Did you clear the endpoint halt condition (for RX BULK endpoint and TX = BULK endpoint), to reset the so-called USB data-toggle, before starting = to communicate with the device? Else you risk loosing a USB packet? If I do not want to touch th USB stuff, can I get the same effect by = close/open of the serial device? Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbs= p-mode: space; line-break: after-white-space;" class=3D""><br class=3D"">= <div><br class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">= Am 04.10.2022 um 13:43 schrieb Hans Petter Selasky <<a href=3D"mailto:= hps@selasky.org" class=3D"">hps@selasky.org</a>>:</div><br class=3D"Ap= ple-interchange-newline"><div class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" = class=3D"">Did you clear the endpoint halt condition (for RX BULK = endpoint and TX BULK endpoint), to reset the so-called USB data-toggle, = before starting to communicate with the device? Else you risk loosing a = USB packet?</span><br class=3D""></div></blockquote><br class=3D""></div>= <div>If I do not want to touch th USB stuff, can I get the same effect = by close/open of the serial device?</div><div><br class=3D""></div><div>A= xel</div><div><span style=3D"orphans: 2; text-align: -webkit-auto; = widows: 2;" class=3D"">---</span></div><div class=3D""><div dir=3D"auto" = style=3D"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=3D""><div dir=3D"auto" style=3D"car= et-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-decoratio= n: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: = after-white-space;" class=3D""><div style=3D"color: rgb(0, 0, 0); = letter-spacing: normal; text-align: start; text-indent: 0px; text-transfo= rm: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-wid= th: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: = after-white-space;" class=3D""><div style=3D"color: rgb(0, 0, 0); = letter-spacing: normal; text-align: start; text-indent: 0px; text-transfo= rm: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-wid= th: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: = after-white-space;" class=3D""><div style=3D"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-varia= nt-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=3D""><div class=3D"">P= GP-Key: CDE74120 =E2=98=80 computing @ chaos claudius</d= iv></div></div></div></div></div> </div> <br class=3D""></body></html> --Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?752FCC61-496D-40C5-8A99-143F15B1EE84>