Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 2021 00:41:10 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Hans Petter Selasky <hps@selasky.org>, freebsd-usb@freebsd.org
Subject:   Re: Flickering connection to UPS (again, but now I'm sure it is Ok under Windows)
Message-ID:  <035b4eb7-58bd-8555-3416-39e0ec0a665e@FreeBSD.org>
In-Reply-To: <0814e5e8-45dd-14c8-3206-40eab0dc286e@selasky.org>
References:  <e90a1125-1c85-4344-2427-aa50158036fc@FreeBSD.org> <98420b49-dc9a-0a5f-bcfe-e0a0e11a5994@selasky.org> <0c52bcf1-3b1a-a746-9ac3-26bdb4c46354@FreeBSD.org> <6e52d05d-8668-8c38-6745-a4edec50741d@selasky.org> <9a7b3be1-d606-cca6-d6c0-7ebefdfd4753@FreeBSD.org> <0814e5e8-45dd-14c8-3206-40eab0dc286e@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07.05.2021 17:14, Hans Petter Selasky wrote:

>> ster kernel: xhci_roothub_exec: port status=0x000202a0
>> May  7 14:39:08 hamster kernel: xhci_roothub_exec: type=0x23 request=0x01 wLen=0x0000 wValue=0x0010 wIndex=0x0002
>> May  7 14:39:08 hamster kernel: xhci_roothub_exec: UR_CLEAR_PORT_FEATURE
>> May  7 14:39:08 hamster kernel: xhci_device_state_change: May  7 14:39:08 hamster kernel: ugen0.6: <PPC Offline UPS> at usbus0 (disconnected)
> 
> The value reported by XHCI PORTSC, 0x000202a0, indicates:
> 
> BIT5-8 : 5) Link is in the RxDetect State
> BIT9 : Port Power (PP) – RWS. Default = ‘1’
> BIT17 : Connect Status Change (CSC)
> 
> It is clear that the XHCI controller has received a disconnect event from the UPS.
> Can you check the other OS'es where this supposedly does not happen, if the UPS device attaches to the XHCI or EHCI controller?

  Windows 10 Device Manager shows it under "Intel(R) USB 3.1 eXtensible Host Controller". This laptop (with Windows 10) has only USB-C ports...

  I've captured sessions on Windows with "Device Monitoring Studio" and WireShark (it was two sessions, not one) and uploaded them at

http://lev.serebryakov.spb.ru/_sklad/ups/

ups-windows-dms.dump - dump from "Device Monitoring Studio"
ups-windows-dms.log  - log from "Device Monitoring Studio"
ups-windows-wireshark.pcapng - dump from WireShark
ups-windows-wireshark.txt    - dissection export from WireShark.

  My FreeBSD laptop (Lenovo T540p) has both USB 2.0 an USB 3.0 ports, and UPS flickers in both.

> Did you start any driver for the UPS?
  On FreeBSD — I'm not (`nut` supports this UPS, but it detects device slower than UPS stay connected).

  Windows 10, Windows installs something generic and not very useful (it shows battery level as 0%), but "provided" software (very crude one) works and shows plausible information.

  Windows 10 shows it as "HID UPS Battery" in device manager.


-- 
// Lev Serebryakov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?035b4eb7-58bd-8555-3416-39e0ec0a665e>