From nobody Wed Oct 05 11:55:22 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 4MjCgh4bqsz4f4Yb; Wed, 5 Oct 2022 11:55:28 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjCgg51vVz3MDX; Wed, 5 Oct 2022 11:55:27 +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=IiQznazTxYvHtU6hRE3sYFO9MKnQgNu0+SbE254V0go=; b=C0U/5FVDm/Zcl0V577Zp8/fFKw VC6PGVI3inaIBsx0b9YaKuJwRjRxinXlfPHd53mVc8N2TEnAYF7Cr92V1x6Kxl5CBbXGIIUKCrN9C +S1+whPrj2wnkBFS2+cKGs70Y6UHk/nF6uOi8C4KN4FzHS97lSnoNqjBfzN6VfSFHiK10FdvaTfX/ 7aws6eFl843b4+a8HvBD8OcirFikcwrMlNJsp4VPPyM8sAeXlPey25c7iXRWBEU3lpfAgmHLAIsLa 3WaV4ZluC9qoy+PiMijG0XwlysdtUKW1N09skQMJSxjdingby+fgDxGVANXqk1Jgj9vlg+lKtGmwH 8NGhTUog==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1og2zj-0003uv-4H; Wed, 05 Oct 2022 11:55:23 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1664970922-10326-8168/7/156; Wed, 5 Oct 2022 11:55:22 +0000 From: Axel Rau Message-Id: <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1" 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: Wed, 5 Oct 2022 13:55:22 +0200 In-Reply-To: <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@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> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4MjCgg51vVz3MDX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=2022 header.b="C0U/5FVD"; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-3.90 / 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)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=2022]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:2::73:from]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[hardware@freebsd.org,freebsd-hackers@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[chaos1.de]; DKIM_TRACE(0.00)[chaos1.de:+]; 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=_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 : >=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
=

= Am 04.10.2022 um 13:43 schrieb Hans Petter Selasky <hps@selasky.org>:

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?

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

--Apple-Mail=_5E42947A-F854-4C69-8415-B0726CD1FFE1--