usb控制器和usb port之间有什么联系-usbview工具的使用?

218 篇文章 29 订阅
8 篇文章 0 订阅

usbview 是一个可以查看usb 拓扑的工具,可以通过这个工具查看当前USB Host控制器的个数和连接device信息.

UBUNTU系统上安装usbview:

我用的小米笔记本,可以看到,有两个HOST,一个是480Mb的 USB2.0另一个是10 Gbps的USB3.2,3.2支持10G BPS。这和配置相符.

设备的描述符信息展示:

这是另外一台PC的USB 控制器配置,它也有两个USB 主机控制器,分别是2.0,3.0

 同一个接口,插入USB3.0和2.0设备时表现:

3.0 PSSD:

 2.0TF卡

上面用的是PC上支持USB3.0的接口,现在用usb2.0的接口接3.0设备,发现接到了2.0的控制器上。

 所以,看起来,3.0的接口可以兼容2.0的设备,方法是将接口路由到2.0 controller.也就是说,PC上,接口和主机控制器之间没有绑定关系,一个物理接口,可以根据链接设备的不同,被不同的host controller接管。

USB 的各个版本是兼容的。每个 USB2.0 控制器带有 3 个芯片,根据设备的识别方式将信 号发送到正确的控制芯片。我们可以将 1.1 设备连接到 2.0 的控制器上使用,不过它只能 达到 1.1 的速度。同时也可以将 2.0 的设备连接到 1.1 的控制器上,不过不能指望它能以 2.0 的速度运行。
向上的话,USB控制器连接到PCIE的插槽上,对应了PCIE设备拓扑结构中的1个PCIE设备(USB2.0,USB3.o同时属于这1个PCIE设备)。

印证了USB3.0 下面的拓扑结构

上图中的PSSD设备支持两个接口,subclass 0x50 的 bulk msc和 subclass 0x62的,0x62是UAS设备,3.0支持的超速运行。

USB无线网卡的例子

型号为ax88179_178a无线网卡:

根据驱动名,找到驱动文件,注意这里的BUS, Address相当于lsusb输出中的Bus和Dev. lsusb中的 Port即是物理USB Port口,和Dev设备号是一一对应的。

使用modinfo命令,可以查看到此网卡依赖的模块,比如这里我们知道了,此网卡驱动依赖mii.ko, usbnet.ko两个模块文件。

$ modinfo ax88179_178a
filename:       /lib/modules/5.4.0-131-generic/kernel/drivers/net/usb/ax88179_178a.ko
license:        GPL
description:    ASIX AX88179/178A based USB 3.0/2.0 Gigabit Ethernet Devices
srcversion:     DB4426E16E22CE0222515D8
alias:          usb:v050Dp0128d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v17EFp304Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04E8pA100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0072d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p4A00d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04B4p3610d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B95p178Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B95p1790d*dc*dsc*dp*ic*isc*ip*in*
depends:        usbnet,mii
retpoline:      Y
intree:         Y
name:           ax88179_178a
vermagic:       5.4.0-131-generic SMP mod_unload modversions
signat:         PKCS#7
signer:
sig_key:
sig_hashalgo:   md4


结束!

  • 8
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
The USB Device Tree Viewer, short UsbTreeView is based upon the Microsoft "USBView" sample application found in the Windows Driver Development Kits and now standalone at GitHub. But it is source code only, there is no executable for end users provided. Meanwhile USBView comes as executables as part of the "Debugging Tools für Windows", see here: USBView. UsbTreeView started with the USBView source code from the DDK for Server 2003. Here are the improvements I've done: Informations from the Windows Device Management are collected and matched with the found USB devices; Therefore UsbTreeView can show the child devices, including drive letters and COM-ports Window position is saved Background color and font of the right pane can be set (the font shown in the screenshots is DOSLike 7) Text output rearranged Keeps the tree item selection over refresh way more descriptors are decoded, as Audio 2.0 Hexdump of the descriptors can be shown Safe removal, device restart and port restart Extended USB information available under Windows 8 (taken from the latest USBView sample application) Extended information about host controllers Enumeration of the USB devices accelerated and independent from the treeview Failed USB requests are re-tried in the background, e.g. if a USB mouse was moved while requesting its properties Toolbar with jump-lists for easily finding devices in complex trees TreeView with handmade 16x16 icons, USBView used 32x32 icons scaled down to 15x15 many minor improvements With V3.0 No more enumeration of all devices on arrival and removal of a USB device Search function (not full text, only things like device ID, drive letter, volume name etc) Some new Keyboard shortcuts (Alt+D to open the drives list, Alt+O the Others list, Alt+S to focus the search edit, Alt+Left/Right to cycle thru the search hits Options not to expand empty hubs or hub with only empty hubs attached Options to jump to arrived and removed devices Option to expand tree items to make selected

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

papaofdoudou

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值