我正在尝试将usb转串口驱动程序添加到我的arch linux arm设备中,并且我注意到内核源代码树中已经包含了FTDI驱动程序的源文件,位于:
驱动程序/usb/串口,存在ftdi_sio.c和ftdi_sio.h文件。
当我导航到内核/驱动程序时,到处都找不到ftdi_sio.ko模块。
如何构建ftdi内核模块并将其包含到引导中,以便在我的arch linux arm上具有usb转串口功能?
我使用从串口到usb的转换器,在Windows中可以打开串口属性并设置一个复选框RS-485,只有在此之后,我才能从设备接收数据。如何在Linux中进行同样的操作?因为默认情况下,我得到的结果与未检查的RS-485在Windows中相同:
Port name - /dev/ttyACM0; Method name - readBytes(); Serial port operation timeout (500 ms).
execute try 2 error: I/O exception - failed to read
我的设备是:
Bus 001 Device 008: ID 04e2:
我的Linux内核映像uImage在我的U盘中。我想从U-Boot启动它。此外,设备树文件am335x-evm.dtb在我的U盘中。我所做的是:
U-Boot# usb start
(Re)start USB...
USB0: scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
U-Boot# fatls usb 0:1
3821960 uimage
kit3/
40
我有一个。我正在使用设置一个从STM32到PC的conexion。我想通过串行发送一个字符序列到董事会。作为一个答案,我期待一个闪烁的LED。例如:led1导致LED ON,led2导致LED OFF。
问题是我不知道如何设置连接的端口。
#include "mbed.h"
#include "USBSerial.h"
//Virtual serial port over USB
USBSerial serial;
int main(void) {
while(1)
{
serial.printf("I am a v
大约三分之一的靴子,USB不工作在我的联想Yoga 2 11运行Ubuntu14.04.1。这包括USB触摸屏以及光驱、键盘或插入USB端口的其他任何东西。(外部设备正在接收电力,但Ubuntu无法访问它们。)
在这些时候,"sudo lsusb“只产生:
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root