排行榜

  • 用户榜
  • 标签榜
  • 冲榜分奖金

频道

最新最热悬赏待采纳 筛选
  • 0

    回答

  • 7

    浏览

这是单独一块FT4232H的时候的rules文件内容,是可以成功的,两块的时候应该怎么写呢 #SUBSYSTEMS=="usb", ENV{.LOCAL_ifNum}="$attr{bInterfaceNumber}" #SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{product}=="Quad RS232-HS", ENV{.LOCAL_ifNum}=="00",  SYMLINK+="ttl_port1", MODE="0777" #SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{product}=="Quad RS232-HS", ENV{.LOCAL_ifNum}=="01",  SYMLINK+="ttl_port2", MODE="0777" #SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{product}=="Quad RS232-HS", ENV{.LOCAL_ifNum}=="02",  SYMLINK+="ttl_port3", MODE="0777" #SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{product}=="Quad RS232-HS", ENV{.LOCAL_ifNum}=="03",  SYMLINK+="ttl_port4", MODE="0777"     zhihui@zhihui-MS-7B46:~$ lsusb Bus 004 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 004: ID 0bda:0411 Realtek Semiconductor Corp.  Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp.  Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp.  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 010: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC Bus 001 Device 006: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC Bus 001 Device 004: ID 0bda:5411 Realtek Semiconductor Corp.  Bus 001 Device 009: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 001 Device 007: ID 1a2c:2f2a China Resource Semico Co., Ltd  Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp.  Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub     zhihui@zhihui-MS-7B46:~$ udevadm info -a /dev/ttyUSB0 Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device.   looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.4/1-2.4.4:1.0/ttyUSB0/tty/ttyUSB0':     KERNEL=="ttyUSB0"     SUBSYSTEM=="tty"     DRIVER==""   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.4/1-2.4.4:1.0/ttyUSB0':     KERNELS=="ttyUSB0"     SUBSYSTEMS=="usb-serial"     DRIVERS=="ftdi_sio"     ATTRS{latency_timer}=="16"     ATTRS{port_number}=="0"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.4/1-2.4.4:1.0':     KERNELS=="1-2.4.4:1.0"     SUBSYSTEMS=="usb"     DRIVERS=="ftdi_sio"     ATTRS{authorized}=="1"     ATTRS{bAlternateSetting}==" 0"     ATTRS{bInterfaceClass}=="ff"     ATTRS{bInterfaceNumber}=="00"     ATTRS{bInterfaceProtocol}=="ff"     ATTRS{bInterfaceSubClass}=="ff"     ATTRS{bNumEndpoints}=="02"     ATTRS{interface}=="Quad RS232-HS"     ATTRS{supports_autosuspend}=="1"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.4':     KERNELS=="1-2.4.4"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="00"     ATTRS{bDeviceProtocol}=="00"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="500mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 4"     ATTRS{bcdDevice}=="0800"     ATTRS{bmAttributes}=="80"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="10"     ATTRS{devpath}=="2.4.4"     ATTRS{idProduct}=="6011"     ATTRS{idVendor}=="0403"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="FTDI"     ATTRS{maxchild}=="0"     ATTRS{product}=="Quad RS232-HS"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="unknown"     ATTRS{rx_lanes}=="1"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="20"     ATTRS{version}==" 2.00"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4':     KERNELS=="1-2.4"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="09"     ATTRS{bDeviceProtocol}=="02"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="0mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 1"     ATTRS{bcdDevice}=="0138"     ATTRS{bmAttributes}=="e0"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="4"     ATTRS{devpath}=="2.4"     ATTRS{idProduct}=="5411"     ATTRS{idVendor}=="0bda"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="Generic"     ATTRS{maxchild}=="4"     ATTRS{product}=="4-Port USB 2.0 Hub"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="removable"     ATTRS{rx_lanes}=="1"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="67"     ATTRS{version}==" 2.10"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2':     KERNELS=="1-2"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="09"     ATTRS{bDeviceProtocol}=="02"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="0mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 1"     ATTRS{bcdDevice}=="0138"     ATTRS{bmAttributes}=="e0"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="2"     ATTRS{devpath}=="2"     ATTRS{idProduct}=="5411"     ATTRS{idVendor}=="0bda"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="Generic"     ATTRS{maxchild}=="4"     ATTRS{product}=="4-Port USB 2.0 Hub"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="removable"     ATTRS{rx_lanes}=="1"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="41"     ATTRS{version}==" 2.10"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':     KERNELS=="usb1"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{authorized_default}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="09"     ATTRS{bDeviceProtocol}=="01"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="0mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 1"     ATTRS{bcdDevice}=="0504"     ATTRS{bmAttributes}=="e0"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="1"     ATTRS{devpath}=="0"     ATTRS{idProduct}=="0002"     ATTRS{idVendor}=="1d6b"     ATTRS{interface_authorized_default}=="1"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="Linux 5.4.0-70-generic xhci-hcd"     ATTRS{maxchild}=="16"     ATTRS{product}=="xHCI Host Controller"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="unknown"     ATTRS{rx_lanes}=="1"     ATTRS{serial}=="0000:00:14.0"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="52"     ATTRS{version}==" 2.00"   looking at parent device '/devices/pci0000:00/0000:00:14.0':     KERNELS=="0000:00:14.0"     SUBSYSTEMS=="pci"     DRIVERS=="xhci_hcd"     ATTRS{ari_enabled}=="0"     ATTRS{broken_parity_status}=="0"     ATTRS{class}=="0x0c0330"     ATTRS{consistent_dma_mask_bits}=="64"     ATTRS{d3cold_allowed}=="1"     ATTRS{dbc}=="disabled"     ATTRS{device}=="0xa2af"     ATTRS{dma_mask_bits}=="64"     ATTRS{driver_override}=="(null)"     ATTRS{enable}=="1"     ATTRS{index}=="3"     ATTRS{irq}=="124"     ATTRS{label}=="Onboard - Other"     ATTRS{local_cpulist}=="0-5"     ATTRS{local_cpus}=="3f"     ATTRS{msi_bus}=="1"     ATTRS{numa_node}=="-1"     ATTRS{revision}=="0x00"     ATTRS{subsystem_device}=="0x7b46"     ATTRS{subsystem_vendor}=="0x1462"     ATTRS{vendor}=="0x8086"   looking at parent device '/devices/pci0000:00':     KERNELS=="pci0000:00"     SUBSYSTEMS==""     DRIVERS==""       zhihui@zhihui-MS-7B46:~$ udevadm info -a /dev/ttyUSB4 Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device.   looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.3/1-2.4.3:1.0/ttyUSB4/tty/ttyUSB4':     KERNEL=="ttyUSB4"     SUBSYSTEM=="tty"     DRIVER==""   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.3/1-2.4.3:1.0/ttyUSB4':     KERNELS=="ttyUSB4"     SUBSYSTEMS=="usb-serial"     DRIVERS=="ftdi_sio"     ATTRS{latency_timer}=="16"     ATTRS{port_number}=="0"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.3/1-2.4.3:1.0':     KERNELS=="1-2.4.3:1.0"     SUBSYSTEMS=="usb"     DRIVERS=="ftdi_sio"     ATTRS{authorized}=="1"     ATTRS{bAlternateSetting}==" 0"     ATTRS{bInterfaceClass}=="ff"     ATTRS{bInterfaceNumber}=="00"     ATTRS{bInterfaceProtocol}=="ff"     ATTRS{bInterfaceSubClass}=="ff"     ATTRS{bNumEndpoints}=="02"     ATTRS{interface}=="Quad RS232-HS"     ATTRS{supports_autosuspend}=="1"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.3':     KERNELS=="1-2.4.3"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="00"     ATTRS{bDeviceProtocol}=="00"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="500mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 4"     ATTRS{bcdDevice}=="0800"     ATTRS{bmAttributes}=="80"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="6"     ATTRS{devpath}=="2.4.3"     ATTRS{idProduct}=="6011"     ATTRS{idVendor}=="0403"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="FTDI"     ATTRS{maxchild}=="0"     ATTRS{product}=="Quad RS232-HS"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="unknown"     ATTRS{rx_lanes}=="1"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="20"     ATTRS{version}==" 2.00"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4':     KERNELS=="1-2.4"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="09"     ATTRS{bDeviceProtocol}=="02"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="0mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 1"     ATTRS{bcdDevice}=="0138"     ATTRS{bmAttributes}=="e0"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="4"     ATTRS{devpath}=="2.4"     ATTRS{idProduct}=="5411"     ATTRS{idVendor}=="0bda"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="Generic"     ATTRS{maxchild}=="4"     ATTRS{product}=="4-Port USB 2.0 Hub"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="removable"     ATTRS{rx_lanes}=="1"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="67"     ATTRS{version}==" 2.10"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2':     KERNELS=="1-2"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="09"     ATTRS{bDeviceProtocol}=="02"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="0mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 1"     ATTRS{bcdDevice}=="0138"     ATTRS{bmAttributes}=="e0"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="2"     ATTRS{devpath}=="2"     ATTRS{idProduct}=="5411"     ATTRS{idVendor}=="0bda"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="Generic"     ATTRS{maxchild}=="4"     ATTRS{product}=="4-Port USB 2.0 Hub"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="removable"     ATTRS{rx_lanes}=="1"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="41"     ATTRS{version}==" 2.10"   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':     KERNELS=="usb1"     SUBSYSTEMS=="usb"     DRIVERS=="usb"     ATTRS{authorized}=="1"     ATTRS{authorized_default}=="1"     ATTRS{avoid_reset_quirk}=="0"     ATTRS{bConfigurationValue}=="1"     ATTRS{bDeviceClass}=="09"     ATTRS{bDeviceProtocol}=="01"     ATTRS{bDeviceSubClass}=="00"     ATTRS{bMaxPacketSize0}=="64"     ATTRS{bMaxPower}=="0mA"     ATTRS{bNumConfigurations}=="1"     ATTRS{bNumInterfaces}==" 1"     ATTRS{bcdDevice}=="0504"     ATTRS{bmAttributes}=="e0"     ATTRS{busnum}=="1"     ATTRS{configuration}==""     ATTRS{devnum}=="1"     ATTRS{devpath}=="0"     ATTRS{idProduct}=="0002"     ATTRS{idVendor}=="1d6b"     ATTRS{interface_authorized_default}=="1"     ATTRS{ltm_capable}=="no"     ATTRS{manufacturer}=="Linux 5.4.0-70-generic xhci-hcd"     ATTRS{maxchild}=="16"     ATTRS{product}=="xHCI Host Controller"     ATTRS{quirks}=="0x0"     ATTRS{removable}=="unknown"     ATTRS{rx_lanes}=="1"     ATTRS{serial}=="0000:00:14.0"     ATTRS{speed}=="480"     ATTRS{tx_lanes}=="1"     ATTRS{urbnum}=="52"     ATTRS{version}==" 2.00"   looking at parent device '/devices/pci0000:00/0000:00:14.0':     KERNELS=="0000:00:14.0"     SUBSYSTEMS=="pci"     DRIVERS=="xhci_hcd"     ATTRS{ari_enabled}=="0"     ATTRS{broken_parity_status}=="0"     ATTRS{class}=="0x0c0330"     ATTRS{consistent_dma_mask_bits}=="64"     ATTRS{d3cold_allowed}=="1"     ATTRS{dbc}=="disabled"     ATTRS{device}=="0xa2af"     ATTRS{dma_mask_bits}=="64"     ATTRS{driver_override}=="(null)"     ATTRS{enable}=="1"     ATTRS{index}=="3"     ATTRS{irq}=="124"     ATTRS{label}=="Onboard - Other"     ATTRS{local_cpulist}=="0-5"     ATTRS{local_cpus}=="3f"     ATTRS{msi_bus}=="1"     ATTRS{numa_node}=="-1"     ATTRS{revision}=="0x00"     ATTRS{subsystem_device}=="0x7b46"     ATTRS{subsystem_vendor}=="0x1462"     ATTRS{vendor}=="0x8086"   looking at parent device '/devices/pci0000:00':     KERNELS=="pci0000:00"     SUBSYSTEMS==""     DRIVERS==""     两个模块的串口1的信息对比,我尝试过添加过滤信息,但是没有成功  

  • 1

    回答

  • 5

    浏览

在输入 nc -lv 8080 时,得到 nmap发现只开启了 22 端口 请问如何开启8080端口,从而能够正确监听。

  • 0

    回答

  • 7

    浏览

rt..在第一步就卡住了,找不出原因!求解决,谢谢!

  • 9

    回答

  • 957

    浏览

把两本书对照来读,发现很多有意思的地方, 在这里开个帖子讨论,欢迎提问和点评。  《Unix 传奇》 https://book.douban.com/subject/35292726/   《观止 微软创建NT和未来的夺命狂奔 》https://book.douban.com/subject/3699395/

  • 3

    回答

  • 29

    浏览

写一个关键目录和关键文件属性与内容监控的daemon程序task5-3.c,该程序每隔1分钟读取目录/etc及其中所有文件的最后访问时间与最后修改时间,读取用户数据库文件/etc的内容,如有变化,则将变化情况如入日志文件,测试程序的正确性。提示:可监控文件内容是否修改,可由文件内容计算一个hash值(又称数字指纹),比较hash值是否发生变化,一种简单的hash值计算方法是将一个文件划分为一系列四字节整数,把各个整数相加的和作为hash值。

  • 0

    回答

  • 7

    浏览

目前遇到的问题按照这个做的https://jingyan.baidu.com/article/3a2f7c2ed314ef26afd611a1.html 提示拒绝访问,直接用共享也拒绝访问 允许匿名访问那种一定不行 一定要支持密码,共享文件是机密文件

  • 0

    回答

  • 7

    浏览

windows上如果实现如下操作: iptables -t nat -A OUTPUT -d 192.168.0.253 -p tcp --dport 80 -j DNAT --to-destination 192.168.0.254:81 win10上netsh能实现这个效果吗?

  • 1

    回答

  • 18

    浏览

在一个tty里输入两次bash命令得到两个bash,在另外一个tty中kill -9父bash,结果子bash也退出了。

回答 lesion__
采纳率50%
13天前
  • 0

    回答

  • 10

    浏览

操作系统判断一个进程输入哪个tty的标准是什么?(ps命令可以查看进程所属tty) 如果一个进程的标准输入、标准输出、标准错误都是该tty,那么操作系统会认定该进程属于该tty? 如果一个进程是在该tty输入命令创建的那么属于该tty? 如果一个进程的父进程是该tty的进程,那么它创建的子进程属于该tty? 系统判断进程属于哪个tty的标准到底是什么?

回答 lesion__
采纳率50%
13天前
  • 4

    回答

  • 23

    浏览

mainwindow.cpp:523:37: error: incomplete type ‘QUrl’ used in nested name specifier      QDesktopServices::openUrl(QUrl::fromLocalFile("/home/主目录/文档")); 代码: void MainWindow::on_pushButton_2_clicked() {     QDesktopServices::openUrl(QUrl::fromLocalFile("/home/主目录/文档")); }

  • 0

    回答

  • 3

    浏览

显示如下: you are in emergency mode. after logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^d to try again to boot into default mode. cannot open access to console, the root account is locked. see sulogin(8) man page for more details. press enter to continue.

  • 2

    回答

  • 15

    浏览

\刚买的笔记本电脑  

回答 qtynou
采纳率72%
4天前