-
-
Notifications
You must be signed in to change notification settings - Fork 14
SeqCircute
install package.
sudo apt-get install ckermit
Edit the C-Kermit configuration file. Create a file named ".kermitrc" in your home directory and write the following.
set line /dev/ttyUSB1
set speed 115200
set carrier-watch off
connect
Here, ttyUSB1 changes according to the environment. The easiest way to check is to unplug the cable and to plug it, and then see what's changing in the file.
The correct way is to search the "/var/log/syslog" file, look for the following Digilent or FDTI names, and find the corresponding tty names. The larger number is for UART communication.
May 23 12:46:58 XXXXXX kernel: [17192.716253] usb 1-4: Manufacturer: Digilent
May 23 12:46:58 XXXXXX kernel: [17192.716257] usb 1-4: SerialNumber: 210292696907
May 23 12:46:58 XXXXXX kernel: [17192.719025] ftdi_sio 1-4:1.0: FTDI USB Serial Device converter detected
May 23 12:46:58 XXXXXX kernel: [17192.719094] usb 1-4: Detected FT2232H
May 23 12:46:58 XXXXXX kernel: [17192.719474] usb 1-4: FTDI USB Serial Device converter now attached to ttyUSB0
May 23 12:46:58 XXXXXX kernel: [17192.721708] ftdi_sio 1-4:1.1: FTDI USB Serial Device converter detected
May 23 12:46:58 XXXXXX kernel: [17192.721771] usb 1-4: Detected FT2232H
May 23 12:46:58 XXXXXX kernel: [17192.722043] usb 1-4: FTDI USB Serial Device converter now attached to ttyUSB1
Even if you edit the file, you do not have access privilege to "/dev/ttyUSB1", so add your account to an accessible group.
sudo gpasswd -a ユーザ名 dialout
Alternatively, allow everyone access to the file.(This method requires changing each time the cable is inserted)
sudo chmod a+rw /dev/ttyUSB1
We can then send and receive data from the FPGA board by executing the "kermit" command. To exit, press "Ctrl-" and then "c" and type "exit".
$ kermit
Connecting to /dev/ttyUSB1, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
A
(Back at XXXXX)
----------------------------------------------------
C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)
Copyright (C) 1985, 2011,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/XXXXXX/) C-Kermit>exit
Closing /dev/ttyUSB1...OK