In Linux, there are mainly two serial port software: C-Kermit and minicom. The following describes how to install and use C-Kermit in Ubuntu: 1. before installing and configuring ckermitsudoapt-getinstallckermit to use kermit, create a name in the user's home directory (/home/user name. the content of the kermrc configuration file is as follows: setline/dev/ttyUSB0 & nbs
In Linux, there are mainly two serial port software: C-Kermit and minicom.
The following describes how to install and use C-Kermit in Ubuntu:
1. install and configure ckermit
Sudo apt-get install ckermit
Before using kermit, create a configuration file named. kermrc under the user's home directory (/home/user name/). The content is as follows:
Set line/dev/ttyUSB0 // If the serial port is ttyS0
Set speed 115200
Set carrier-watch off
Set handshake none
Set flow-control none
Robust
Set file type bin
Set file name Parameters
Set rec package 1000
Set send package 1000
Set window 5
Ii. use USB to serial port Devices
1. Add serial port support to VMware (this step can be left blank. In addition, this step is mainly to prevent connection failure. This method is to add serial port devices to the hardware, add the device in the window to the virtual machine. That is to say, you need to add the usb to serial port when the window gets the focus, and then add the device to the virtual machine. Then you can view the device file of the added device under ubuntu, usually/dev/tty0 or/dev/ttyS0. This method uses Windows usb to serial port as the serial port of the virtual machine, so tty0 or ttyS0 is used instead of being loaded under ubuntu .)
(1) Open Vmware workstation and click setting under VM on the menu bar to enter the virtual machine setting dialog.
(2) Click add to add the serial port. (You must disable ubuntu In the VM before adding the port. I chose COM2)
(3) Enable the USB Service (I turned it off by myself, and it is enabled by default)
2. # lsmod | grep usbserial
If USB serial and USB serial 33019 1 ch341 are available, the USB-to-serial port is supported.
If no sudo apt-get install setserial
Plug in the USB-to-serial port and enter the command # dmesg | grep ttyUSB0 on the terminal. If the connection is successful, the ubuntu system recognizes the device.
3. Start C-kermit
(1) Insert the serial line of the development board into the computer (note that the mouse should be placed in ubbuntu) and run the sudo kermit-c command to start the serial port. Then, the boot information of the bootloader of the Development Board is displayed.
(2) Close the serial port, hold down the "ctrl" and "\" keys at the same time, then release and press the "c" key, then enter "exit" and press Enter.