USB端口速度Linux [英] USB Port Speed Linux

查看:182
本文介绍了USB端口速度Linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式确定运行Linux内核的嵌入式设备中的USB端口速度?

How to programatically determine the usb port speed in embedded devices running the Linux kernel?

推荐答案

您可以阅读/sys/bus/usb/devices/usb?/speed-它会为您提供根集线器的总线速度(以Mbps为单位):1.5、12、480或5000 .前两个表示USB1(低速或全速),第三个USB2和第四个USB3.

You can read /sys/bus/usb/devices/usb?/speed - it'll give you the bus speed of the root hub(s) in Mbps: either 1.5, 12, 480 or 5000. The first two indicate USB1 (low speed or full speed), the third USB2 and the fourth USB3.

这篇关于USB端口速度Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆