我有,并关闭它,因为我认为它是有效的。其实我还是有问题的。所以我发布了一条新的帖子。我的CMake总是为Visual 2010构建的。我是交叉编译Raspberry PI和我的工具链文件如下。
SET(CMAKE_SYSTEM_NAME Linux) # this one is important
SET(CMAKE_SYSTEM_VERSION 1) # this one not so much
SET(CMAKE_C_COMPILER C:/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnuea
如何在Linux下控制连接到USB口的继电器(一路)? 这张图片展示了usb电缆连接。 ? 当继电器连接到usb端口时,继电器设置为连续。但在终端执行lsusb时,系统找不到该设备。 连接前的lusb输出: Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 1358:c123
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003
在阅读和跟踪这时,过了一段时间,我意识到我的前端USB端口没有检测到任何东西。然而,后方的港口运作良好。
lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 004 Device 002: ID 14cd:125c Super Top SD card reader
Bus 004 Device 001: ID 1d6b:0002 Linux
我正在尝试连接我的笔记本电脑(Ubuntu16.04)与这个适配器额外的监视器。
笔记本电脑有USB3.0。当我在USB中插入适配器时,它会在终端上被识别出来。
damba@damba-Inspiron-5559:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 8087:07dc Intel Corp.
Bus 001 Device 006: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card R
我使用的是ubuntu22.04,我连接了一个usb摄像头,系统检测到有一个摄像头,并在奶酪上检测到它。
当我使用lsusb时,我得到:
Bus 001 Device 002: ID 1903:8328 Generic HD camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
我在VirtualBox中有一个Debian/Linux虚拟机。
# uname -a
Linux debian 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
# vi /etc/motd
##########################
Hi, welcome to the server!
##########################
~
我有一张3G数据卡。在我的Windows系统上,我可以访问它的内存,但我不能访问设备的内存。所以我有几个问题:
如何访问Ubuntu12.04上的数据卡内存?
为什么我的设备不表现为即插即用?
什么是USB模式?
怎么用?
下面是命令lsusb的输出:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundati
我想用C语言读取连接到PC的usb串行设备的bus和dev。我怎么才能得到它,请帮助me...example我想从下面读取国际信任usb设备总线信息和设备信息。 lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID
当我通过USB chord插入设备时,什么都不会发生,设备也不会显示在桌面上。但是,当我在终端中输入"lsusb“时,这是输出:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Fou
我的外部硬盘,几天前运行得很好,现在还没有被发现。
没有理由怀疑它坏了,因为我还没有真正碰过它。硬盘是通过USB3连接的,我使用的是Ubuntu14.04的UnitywithUbuntu14.04。我最近在一个新的硬盘上安装了Ubuntu,并在外部硬盘上安装了我所有的旧Windows文件。我已经尝试过fdisk,Ubuntu的磁盘实用程序,以及终端中的其他一些东西,甚至没有任何东西可以检测到它是连接的。有人能帮忙吗?非常感谢。
编辑:lsusb输出:
Bus 002 Device 002: ID 4971:1013 SimpleTech
Bus 002 Device 001: ID 1d6b