From owner-freebsd-arm@freebsd.org Mon Mar 11 16:58:06 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 199C415261D1 for ; Mon, 11 Mar 2019 16:58:06 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ACFA66FDC4 for ; Mon, 11 Mar 2019 16:58:04 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x2BGw1DJ010446; Mon, 11 Mar 2019 09:58:01 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x2BGw1dV010445; Mon, 11 Mar 2019 09:58:01 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201903111658.x2BGw1dV010445@ gndrsh.dnsmgr.net> Subject: Re: Multiport USB hubs/switches on Raspberry Pi In-Reply-To: <20190310171028.GA64290@www.zefox.net> To: bob prohaska Date: Mon, 11 Mar 2019 09:58:01 -0700 (PDT) CC: freebsd-arm@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: ACFA66FDC4 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.29 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.85)[0.853,0]; NEURAL_HAM_LONG(-0.13)[-0.133,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.97)[0.972,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; RCPT_COUNT_TWO(0.00)[2]; INVALID_MSGID(1.70)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(0.00)[ip: (0.05), ipnet: 69.59.192.0/19(0.03), asn: 13868(0.01), country: US(-0.07)] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2019 16:58:06 -0000 > Does anyone have experience using multiport USB hubs on freebsd-arm, > specifically in the context of Raspberry Pi 2 or 3? > > I'm interested in trying to use a hub/switch (not sure there's a > difference in the case of USB) to construct a terminal server for > serial console access on a small cluster of Pi's. I'd want about > seven or eight ports, each holding a USB-serial adapter that would > then connect to the GPIO UART pins on one Pi in the cluster. I've > used both USB 3.0 and USB 1.1 hubs, and in both cases odd things > seem to happen from time to time. One potential example is > > > https://www.amazon.com/AmazonBasics-Port-USB-2-0-Hub/dp/B00GGYU46O/ref=sxin_2?keywords=powered+usb+hub&pd_rd_i=B00GGYU46O&pd_rd_r=83f1e3f0-a1e6-40aa-bdd8-aa86a7c0b360&pd_rd_w=foNmt&pd_rd_wg=ncKZR&pf_rd_p=0395a9fd-d124-46c0-a48f-d8582ed1a45c&pf_rd_r=2P9WWPAZGMAA29NMVVV2&qid=1552234319&s=gateway > > > If anyone has experience along these lines or a suggestion for/against > particular USB devices or versions I'd be curious to know. I am going to say some EE general issues that people run into when trying to do this. a) Good power is a must, you must provide adaquate power to all parts of any system, and that power must be delivered without IR losses or drops. (Much of the PC consumer stuff horribly overloads wires, connectors, and under utilizies proper filter capacitors (aka, the "bad caps" situation has more to do with not using proper caps than it has to do with any defects in the caps them selves, run near any caps current rating and it is dead in about 2000 hours.) I would suggest adding 5x-10x what ever the current input filter cap on each item in your cluster is to clean up the local noise. Do not try to deliver power over 24 (2 amps) or even 22 (3 amps) awg wire! Most wall warts use 24 awg wire, at an ampacity of 2 amps your just asking for lots of noise and sag. b) Good ground is as important as a), one must design a proper star connected ground layout when doing this type of stuff, any loops in the layout must be broken. Noise must be minimized on this ground system. Ground noise is a direct loss of signal noise margin, and at 3.3V ttl levels it takes very little noise to destroy the signal. c) Central power. Trying to do complicated large blobs of things like this that are powered from a bunch of wall warts is just a royal pita to get a and b right, so it is usually much better to have 1 power source for all of it. (One person resopnded to the thread about there pick and place machine, I am sure that this is what he has done in it.) > Thanks for reading, > bob prohaska -- Rod Grimes rgrimes@freebsd.org