From nobody Sun Dec 24 21:31:56 2023 X-Original-To: freebsd-arm@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 4SyvPy07Ykz54XR6 for ; Sun, 24 Dec 2023 21:32:22 +0000 (UTC) (envelope-from joseph@josephholsten.com) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SyvPx3bKBz3Qmj for ; Sun, 24 Dec 2023 21:32:21 +0000 (UTC) (envelope-from joseph@josephholsten.com) Authentication-Results: mx1.freebsd.org; none Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D38993200B03; Sun, 24 Dec 2023 16:32:18 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute4.internal (MEProxy); Sun, 24 Dec 2023 16:32:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1703453538; x=1703539938; bh=ShuyWEYYL3 L5AoT0mw7wlrhNp0i80IK4uSBGq+JGydk=; b=VLanaUn3E9UNE3fpoy5xfEE+it W/kGkKh4+AUYsB7XESCUNDPukaAxiqawkTY4OB2cpzsClA4nSQMp40BiCwvzD3pH seJQMiB9a6FyDWQCekboT22zukCzwmWFre/8Lk16+kA9/cZFO6vXU5gav/Ieg4nQ LZNLjwImhR6fO9M37qa6pFqAg0HDs7u7bju79Tr6zKfI03IpLgvwWvwT7kpj4Nmb b1Wl4YNsOirN/qlccAS84bTnE0bYiElT2VBqwEhmyvdJ6VRxskw7RDqcxqf7tixQ Y+9YWySXp6GVY8vGTYTX0vW1DFiuy6IcpIcM3k9KhuSqpJHojQMOBIH0HRAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1703453538; x=1703539938; bh=ShuyWEYYL3L5AoT0mw7wlrhNp0i8 0IK4uSBGq+JGydk=; b=hANRtVHFN94DKIpWb1D21uRhoBi3f3NJ0Bcr8+Vi5o0i v+LTN/6/y3wIrl4ZY4FUWtsFzOtn+TLHvNDSNXgx5K0L5M4+FtMPRI8gxZASWMy+ hVTDXKYvZ1kp6S+GIycwL7P+3Iid0k40GBw3S3ih5m+BvCyu+zSE0zmWhEmoW5sw Jww6zsazkA7qh3AreHZU4Wu9SPw5wBEu0+9P6hvsrVtf1EVN9GLyRDObS8Bgi3f3 4M7AA7AnCz2cNRVfXwmEZsi02t8pAByRHml6XMe3WZpZrM0xCZ0X4RUq1pLpCKe1 uFSMXqMsvyNEL27KTTXwz09Q/GsLEbromrCTYiZZDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddvuddgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtse httdertderredtnecuhfhrohhmpedflfhoshgvphhhucfjohhlshhtvghnfdcuoehjohhs vghphhesjhhoshgvphhhhhholhhsthgvnhdrtghomheqnecuggftrfgrthhtvghrnhepte euhfefjeetueegffeihedugeejiefgfedvudffieffvdeigfffkefftdfhjeegnecuffho mhgrihhnpehjohhsvghphhhhohhlshhtvghnrdgtohhmpdiivghfohigrdhnvghtnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoshgvphhh sehjohhsvghphhhhohhlshhtvghnrdgtohhm X-ME-Proxy: Feedback-ID: i49d34368:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A74DD15A0092; Sun, 24 Dec 2023 16:32:17 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Message-Id: <50011576-256a-4425-9091-7ddcf0c1085b@app.fastmail.com> In-Reply-To: References: <16864054-4os0-pq3p-7qp0-7299666908os@fncre.vasb> Date: Sun, 24 Dec 2023 13:31:56 -0800 From: "Joseph Holsten" To: "bob prohaska" , ticso@cicely.de Cc: "Marcin Cieslak" , freebsd-arm@freebsd.org Subject: Re: USB-serial adapter suggestions needed Content-Type: text/plain X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SyvPx3bKBz3Qmj Okay you all, where should all this great info go in the docs? -- Joseph Holsten http://josephholsten.com mailto:joseph@josephholsten.com tel:+1-360-927-7234 On Sun, Dec 24, 2023, at 11:39, bob prohaska wrote: > On Sun, Dec 24, 2023 at 06:01:00PM +0100, Bernd Walter wrote: >> If you see ssh connections drop then this is network related and has nothing >> to do with the USB adapter. >> In case an USB adapter fails you will just drop out of tip into the shell. >> Most likly this is a statefull network device - e.g. NAT expire on either >> your or ISP side. >> TCPKeepAlive is active per default on OpenSSH, but often not enough for some >> agressive ISP equipment. >> You might also want to check if you have local firewalls in between, which >> are misconfigured to expire TCP states too early. > > The normal network setup is shown at > http://www.zefox.net/~fbsd/netmap > SSH sessions are initiated from the Pi4 workstation on the LAN to each > FreeBSD host, using tip or cu to connect to the corresponding Pi's serial > console. > > It's maybe worth mentioning that changing the host named pelorus from > WAN to LAN and booting release/14 seems to make no difference. SSH sessions > not involving usb-serial adapters stay up until the WiFi link crashes for > some reason. According to the router's (D-Link DI-524) control panel the > firewall features are turned off. > >> If you run through equipment, which isn't in your hands at best you have >> an OpenVPN or similar connection to handle network instabilities and run >> ssh on top of it. >> >> If however this is not ssh session dropped and just tip, then look up kernel >> messages if the USB adapter was disconnected. > > There are no messages of the kind seen when an adapter is unplugged or > turned off using usbconfig. I've tried turning on usb debugging, but the > output is not obviously related to the disconnects, in part due to volume. > Interestingly, a "stuck" adapter can usually be "unstuck" by using usbconfig > to turn the power off and back on. > > Prompted by your email, I noticed that under the Advanced > Filters page of > the router there's an option called "IP Filters", said to deny LAN access to > the Internet. Neither Enabled nor Disabled are checked, no IP numbers are > entered and all schedule times are set to zero. When I finish this email > I'll explictly disable the filter function to see if some default is making > mischief. > >> If yes and you have that problem with multiple adapters then this is most >> likely power related, especially since both systems are connected via ground >> and can have all kind of electrical issues. > > I do see what looks like noise on the serial lines, but only after a spontaneous > disconnect and only with FTDI adapters. When the serial connections are working > nothing resembling noise is seen. > >> In some cases it might be required to have an isolated adapter. > > A close look at the connection diagram will reveal a loop connecting all > the FreeBSD systems via the serial port grounds. Breaking that loop by > lifting ground on one serial cable ground made no difference. > >> That said, beside all chips work well. >> There are some bad boards however, which are unrelated to the chips themselves. >> Also at least with the PL2303, CP2102 and some FTDI there are fake chips on >> the market. >> Other than that you might need specific features, some FTDI and CH340 can do >> higher bps rates, which some rockchip based boards may need. >> Also FTDI and CP2102 and a few others can have uniquie serial numbers, which >> makes them easier to identify if you have multiple. >> That's the reason why I like to use FT4232H based for my bench tests. >> They can handle higher speeds and have serial numbers, plus they support >> multiple uart at the same time. >> I also have lots of CP2102, which I build myself and know those are technically >> good. >> > > That's helpful information. It sounds like there's little preference between > pl2303, ft232, ch340 and cp2102. > > Thanks for writing! > > bob prohaska