Nexsys A7 100T - stereoboy/Study GitHub Wiki

USB Port(Virtual COM on PC Host through USB)<->USB-UART Bridge(Nexys)를 통한 통신

  • Setup 1: /devy/ttyUSB# 선택
    • $ tail -f -n 30 /var/log/syslog 를 보면 다음과 같이 ttyUSB1로 연결된 것을 확인 가능하다.
Jan  8 14:36:38 jylee-ubuntu upowerd[1698]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4/5-2.4:1.0
Jan  8 14:36:38 jylee-ubuntu upowerd[1698]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4/5-2.4:1.1
Jan  8 14:36:38 jylee-ubuntu upowerd[1698]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.848013] usb 5-2.4: new high-speed USB device number 20 using xhci_hcd
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.978958] usb 5-2.4: New USB device found, idVendor=0403, idProduct=6010
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.978961] usb 5-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.978962] usb 5-2.4: Product: Digilent USB Device
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.978963] usb 5-2.4: Manufacturer: Digilent
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.978964] usb 5-2.4: SerialNumber: 210292AE38BE
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.987008] ftdi_sio 5-2.4:1.0: FTDI USB Serial Device converter detected
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.987046] usb 5-2.4: Detected FT2232H
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.992101] usb 5-2.4: FTDI USB Serial Device converter now attached to ttyUSB0
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.996033] ftdi_sio 5-2.4:1.1: FTDI USB Serial Device converter detected
Jan  8 14:36:45 jylee-ubuntu kernel: [255393.996128] usb 5-2.4: Detected FT2232H
Jan  8 14:36:45 jylee-ubuntu kernel: [255394.001078] usb 5-2.4: FTDI USB Serial Device converter now attached to ttyUSB1
Jan  8 14:36:45 jylee-ubuntu mtp-probe: checking bus 5, device 20: "/sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4"
Jan  8 14:36:45 jylee-ubuntu mtp-probe: bus: 5, device: 20 was not an MTP device
Jan  8 14:36:45 jylee-ubuntu snapd[28318]: hotplug.go:199: hotplug device add event ignored, enable experimental.hotplug
Jan  8 14:36:45 jylee-ubuntu snapd[28318]: hotplug.go:199: hotplug device add event ignored, enable experimental.hotplug
Jan  8 14:36:45 jylee-ubuntu upowerd[1698]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4/5-2.4:1.1
Jan  8 14:36:45 jylee-ubuntu upowerd[1698]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4/5-2.4:1.0
Jan  8 14:36:45 jylee-ubuntu upowerd[1698]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1c.4/0000:06:00.0/usb5/5-2/5-2.4
Jan  8 14:36:45 jylee-ubuntu systemd-resolved[808]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Jan  8 14:36:47 jylee-ubuntu kernel: [255395.673471] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
Jan  8 14:36:47 jylee-ubuntu kernel: [255395.673500] ftdi_sio 5-2.4:1.0: device disconnected
  • $ lsusb -v
Bus 005 Device 020: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0403 Future Technology Devices International, Ltd
  idProduct          0x6010 FT2232C Dual USB-UART/FIFO IC
  bcdDevice            7.00
  iManufacturer           1 Digilent
  iProduct                2 Digilent USB Device
  iSerial                 3 210292AE38BE
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               94mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 Digilent USB Device
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 Digilent USB Device
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

  • Connect by minicom
$ minicom -D /dev/ttyUSB1 -b 230400 // baudrate 230400 for Nexsys-A7-100T-DMA-Audio