Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A20C6C433F5 for ; Mon, 15 Nov 2021 03:02:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8425061401 for ; Mon, 15 Nov 2021 03:02:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231716AbhKODFn (ORCPT ); Sun, 14 Nov 2021 22:05:43 -0500 Received: from smtp161.vfemail.net ([146.59.185.161]:33527 "EHLO smtp161.vfemail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbhKODF0 (ORCPT ); Sun, 14 Nov 2021 22:05:26 -0500 Received: (qmail 21945 invoked from network); 15 Nov 2021 03:02:29 +0000 Received: from localhost (HELO nl101-3.vfemail.net) () by smtpout.vfemail.net with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 15 Nov 2021 03:02:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=vfemail.net; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type; s=2018; bh=WEQkjRj8LEY4PURnCHLMdFVayJw94vNsrm7X9f TgRs0=; b=aqBSly5d2coWyFcSeqFHu8mGKRIfIUP0s7ail9EkZPFOSJoAaiwqyd MbIvHpTE3v6eIsSd2JzAWn3AvnPw5y43VZF/S/A6SNxuIuuMOStVGBK6zQCmqzgU SEjEl08JJtljV6K/rwv1bAl2pW/Hj+TKAwPpcSHKDMlyYz6ZLUIC4= Received: (qmail 85000 invoked from network); 15 Nov 2021 03:01:58 -0000 Received: by simscan 1.4.0 ppid: 84678, pid: 84895, t: 0.3965s scanners:none Received: from unknown (HELO bmwxMDEudmZlbWFpbC5uZXQ=) (aGdudGt3aXNAdmZlbWFpbC5uZXQ=@MTkyLjE2OC4xLjE5Mg==) by nl101.vfemail.net with ESMTPA; 15 Nov 2021 03:01:58 -0000 Date: Sun, 14 Nov 2021 22:02:22 -0500 From: David Niklas To: linux-usb@vger.kernel.org Cc: stern@rowland.harvard.edu, linux-input@vger.kernel.org, Subject: Re: I need advice with UPS connection. (ping) Message-ID: <20211114220222.31755871@Zen-II-x12.niklas.com> In-Reply-To: <20211114211435.GA87082@rowland.harvard.edu> References: <20201109220000.2ae98fa5@Phenom-II-x6.niklas.com> <20211114144842.72463ccc@Zen-II-x12.niklas.com> <20211114211435.GA87082@rowland.harvard.edu> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/8+8m=9DCuNOXXSGkdDFZIB0" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --MP_/8+8m=9DCuNOXXSGkdDFZIB0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, 14 Nov 2021 16:14:35 -0500 stern@rowland.harvard.edu wrote: > On Sun, Nov 14, 2021 at 02:48:42PM -0500, David Niklas wrote: > > Hello, > > > > Almost 1 year ago to the date I posted a question regarding > > connecting my UPS to my PC (look for the same subject -ping). The > > input subsystem maintainers, Jiri Kosina or Ben Tissoires were asked > > to get back to me. No one ever did though. > > > > Now my UPS is *not* working correctly, and I'd really really like to > > be able to speak to it with my PC so I can (hopefully) figure out > > what's wrong with it. > > > > I'm running Linux Kernel 5.15.X on a Devuan (Debian) system. I > > connected my UPS (OPTI-UPS Thunder Shield TS2250B) via USB cable and > > got (almost the same as last time...): > > [ 4236.165138] usb 3-2: new low-speed USB device number 2 using > > xhci_hcd [ 4236.325178] usb 3-2: New USB device found, idVendor=0d9f, > > idProduct=0004, bcdDevice= 0.02 [ 4236.325183] usb 3-2: New USB > > device strings: Mfr=3, Product=1, SerialNumber=2 [ 4236.325185] usb > > 3-2: Product: HID UPS Battery [ 4236.325187] usb 3-2: Manufacturer: > > POWERCOM Co.,LTD [ 4236.325188] usb 3-2: SerialNumber: 004-0D9F-000 > > [ 4236.423210] hid-generic 0003:0D9F:0004.000B: hiddev3,hidraw8: USB > > HID v1.00 Device [POWERCOM Co.,LTD HID UPS Battery] on > > usb-0000:11:00.3-2/input0 [ 4239.842223] usb 3-2: USB disconnect, > > device number 2 [ 4242.485126] usb 3-2: new low-speed USB device > > number 3 using xhci_hcd [ 4242.645075] usb 3-2: New USB device found, > > idVendor=0d9f, idProduct=0004, bcdDevice= 0.02 [ 4242.645080] usb > > 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2 > > [ 4242.645082] usb 3-2: Product: HID UPS Battery [ 4242.645084] usb > > 3-2: Manufacturer: POWERCOM Co.,LTD [ 4242.645085] usb 3-2: > > SerialNumber: 004-0D9F-000 [ 4242.727148] hid-generic > > 0003:0D9F:0004.000C: hiddev3,hidraw8: USB HID v1.00 Device [POWERCOM > > Co.,LTD HID UPS Battery] on usb-0000:11:00.3-2/input0 [ 4246.135926] > > usb 3-2: USB disconnect, device number 3 [ 4248.781839] usb 3-2: new > > low-speed USB device number 4 using xhci_hcd [ 4248.942099] usb 3-2: > > New USB device found, idVendor=0d9f, idProduct=0004, bcdDevice= 0.02 > > [ 4248.942104] usb 3-2: New USB device strings: Mfr=3, Product=1, > > SerialNumber=2 [ 4248.942106] usb 3-2: Product: HID UPS Battery > > [ 4248.942108] usb 3-2: Manufacturer: POWERCOM Co.,LTD [ 4248.942109] > > usb 3-2: SerialNumber: 004-0D9F-000 [ 4249.031166] hid-generic > > 0003:0D9F:0004.000D: hiddev3,hidraw8: USB HID v1.00 Device [POWERCOM > > Co.,LTD HID UPS Battery] on usb-0000:11:00.3-2/input0 [ 4252.511996] > > usb 3-2: USB disconnect, device number 4 ... > > > > I'd appreciate any advice trying to get my UPS to stay connected and > > not spam the kernel log. I'd like to have nut or apcupsd talk to it. > > It would help to see the details of the communication between the > computer and the UPS. You can collect a usbmon trace by running (as > superuser): > > cat /sys/kernel/debug/usb/usbmon/3u >mon.txt > > before plugging in the UPS cable. (The 3 comes from the bus number of > the USB port in the log above.) Kill the process after the cable has > been plugged in long enough for a couple of these disconnect messages > to appear, and post the output file to the mailing list. > > Alan Stern > Attached is the info. In case someone doesn't realize, I'm subscribed to the linux-kernel ML, but not input or usb. Please CC me if you don't want to spam the LKML. Thanks for the timely response, David --MP_/8+8m=9DCuNOXXSGkdDFZIB0 Content-Type: application/x-bzip Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=mon.txt.bz2 QlpoOTFBWSZTWRol2JwAIi3fgGgQQAJ/9gggCAA/IIgAYA1feBAHdZbdDoAACigVIEqVDo1VoZAB qp/omniopoA0ABKaaCFTSoYACYxgAAAABnqVVP2qmmhkyYmmgwxgAAAAAqJECEQmpqNP1BOSSH49 P9CBom9/nGZjMxmZ/TarLgDMNV2mV99MrO5wdBSjgDMNV2mVzTKzjg6ClVEVwartMrmmVnHB0FKO AMwDMNV2mVzTKzjg6CldSXk+XWwAE2wACZgALtgALLbfpJZfeRbpYqyVYri222/5OAjQ8Nn9g0U2 aLP0WllLTBHQpZOPebo1rNWNazVia1mrNmxSij4XstLS02H7HY8GDB0P2cDZHA6PDnj0zMZmMzH+ Dk8IcGDCjCfZgw4NjQop9mCB6NHBsT6I4EnJR16tRaS2W2xbBbMEk5ORH0aNlOBiF1n1HrEm95uN 5E3vNxvJDe83G8IlGhQMLAoDgOD4/mZutlxJd9L6uzXBrRdy8jipUlcvQWLQiptazHYbFYdQKEku jdNdcXeueWkym7jB8SwtG2+87czvj/w/yUiUiWFhYWFhYWFhRKJVVVVVRRvz33+PM44zXznPOET9 NuZ+TuZwdur+bOTtFW4o66TQiu7Sq+lmIhy2ilZ1NMW0ZMhM3MyDBo2ntW8zjjW99cO/OOh9ETok k/slhEW2WoSEVCQkJCKhAhISEsq2LS0tWVag/9JJMIjgUPhCmxR/EdVIVMRdotSFSotRakK0VJJU l2NkP2YUpJ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