Re: Accessing I2C-Bus via ELV USB-I2C
Axel Rau <[email protected]> Wed, 5 Oct 2022 18:31:26 +0200
| Newsgroups | gmane.os.freebsd.devel.hardware |
|---|---|
| Message-ID | <23E6D546-DAEF-468D-AE40-752EEB279C8A__32947.7113251173$1664987519$gmane$org@Chaos1.DE> |
--Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky <[email protected]>: >=20 > On 10/5/22 13:55, Axel Rau wrote: >> If I do not want to touch th USB stuff, can I get the same effect by = close/open of the serial device? >=20 > The uslcom driver only does this right after attach, in 13-stable and = 14-main. >=20 > Does the attached patch make any difference for you? >=20 > --HPS > <0001-uslcom-4-Clear-stall-at-every-open.patch> As this is a production server, I try to avoid reboots. Meanwhile, I have inserted a read loop which eats the fragments and allows the following status query to get a clean response. With this patch, recovery seems to work. Additionally I have eliminated a hub and connected the device directly = to a port. Hopefully this will stop the frequent `/dev/cuaU0: Bus connection = lost`events. Thanks for your time, Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF 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 05.10.2022 um 16:46 schrieb Hans Petter Selasky <<a href=3D"mailto:= [email protected]" class=3D"">[email protected]</a>>:</div><br class=3D"Ap= ple-interchange-newline"><div class=3D""><div class=3D"">On 10/5/22 = 13:55, Axel Rau wrote:<br class=3D""><blockquote type=3D"cite" class=3D""= >If I do not want to touch th USB stuff, can I get the same effect by = close/open of the serial device?<br class=3D""></blockquote><br class=3D"= ">The uslcom driver only does this right after attach, in 13-stable and = 14-main.<br class=3D""><br class=3D"">Does the attached patch make any = difference for you?<br class=3D""><br class=3D"">--HPS<br class=3D""><spa= n id=3D"cid:[email protected]"><0001-u= slcom-4-Clear-stall-at-every-open.patch></span></div></div></blockquot= e></div>As this is a production server, I try to avoid reboots.<div = class=3D""><br class=3D""></div><div class=3D"">Meanwhile, I have = inserted a read loop which eats the fragments</div><div class=3D"">and = allows the following status query to get a clean response.</div><div = class=3D"">With this patch, recovery seems to work.</div><div class=3D"">= <br class=3D""></div><div class=3D"">Additionally I have eliminated a = hub and connected the device directly to a port.</div><div class=3D"">Hop= efully this will stop the frequent `/dev/cuaU0: Bus connection lost`event= s.</div><div class=3D""><br class=3D""></div><div class=3D"">Thanks for = your time,</div><div class=3D"">Axel<br class=3D""><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-tex= t-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"caret-color: rgb(0, 0, 0); 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; text-decoration: 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-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=3D""><div style=3D"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=3D""><div style=3D"color: = rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-li= gatures: 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=3D""><di= v class=3D"">---<br class=3D"">PGP-Key: CDE74120 =E2=98=80 = computing @ chaos claudius</div></div></div></div></div></div> </div> <br class=3D""></div></body></html> --Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF--