From owner-freebsd-hackers@freebsd.org Mon Jan 13 14:44:58 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A4492267E1 for ; Mon, 13 Jan 2020 14:44:58 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47xGZx1gg5z4bdg for ; Mon, 13 Jan 2020 14:44:56 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 00DEion0046700 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 Jan 2020 15:44:51 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578926691; bh=wBG7Js6Tp2cPaS0yMTSiS8IYkJcEWcFleNn05+pCQ1o=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=U2UpA3lCcdRJE2mbl3qJBgXuT2SOkORAtKsmXM1s6azrrmfrJAH5wUqK3BTFnieMs wcsBF8xJDz1r0FHxZA6Vz26q3xmmTS5YrC26a1lNpcMbzoj+1e6TCv4REvyYPN0New n36hHhHfl8hLpOFNIGqHydVcnPR3rPPnucKNz4pA= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 00DEiojF046697; Mon, 13 Jan 2020 15:44:50 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Mon, 13 Jan 2020 15:44:50 +0100 (CET) From: Wojciech Puchar To: Hans Petter Selasky cc: Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: raspberry pi zero and SLOW USB HID In-Reply-To: <9f8ae63f-abe5-27d9-e6bf-3d0cc1d3d4f3@selasky.org> Message-ID: References: <9f8ae63f-abe5-27d9-e6bf-3d0cc1d3d4f3@selasky.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 47xGZx1gg5z4bdg X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=U2UpA3lC; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.14 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.84)[ip: (-7.50), ipnet: 194.1.144.0/24(-3.75), asn: 43476(-3.00), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2020 14:44:58 -0000 > > Can you check the USB speed used between PC and RPI-zero ? Is one perhaps > High-Speed, while the other is, Full-Speed? > > If yes, try to connect a high-speed USB hub in between. > > Output from: > usbconfig > > > You can also check using "usbdump -i usbus0 -s 65536" to see the actual > timing of the commands. > output is like that 15:35:24.495838 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.503590 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.503829 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.519580 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.519823 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.521235 usbus0.2 SUBM-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=8,IVAL=1 15:35:24.527603 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.527631 usbus0.2 DONE-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=0,IVAL=1,ERR=0 15:35:24.527861 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.535588 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.535848 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.543648 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.543978 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.559587 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.559839 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.567584 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.567823 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.575585 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.575824 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.583587 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.583824 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.599583 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.599827 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.607586 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.607830 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:35:24.615583 usbus0.2 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:35:24.615826 usbus0.2 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 there is over 10ms between each transmission. same on PC 15:43:31.331678 usbus1.6 SUBM-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=8,IVAL=1 15:43:31.332370 usbus1.6 DONE-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=0,IVAL=1,ERR=0 15:43:31.332523 usbus1.6 SUBM-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=8,IVAL=1 15:43:31.333372 usbus1.6 DONE-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=0,IVAL=1,ERR=0 15:43:31.333491 usbus1.6 SUBM-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=8,IVAL=1 15:43:31.334376 usbus1.6 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:43:31.334403 usbus1.6 DONE-INTR-EP=00000001,SPD=FULL,NFR=1,SLEN=0,IVAL=1,ERR=0 15:43:31.334461 usbus1.6 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 15:43:31.335498 usbus1.6 DONE-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 15:43:31.335612 usbus1.6 SUBM-INTR-EP=00000081,SPD=FULL,NFR=1,SLEN=0,IVAL=1 device is the same hardware with the same firmware. What causes larger delays?