minicon installation and xmodem file transfer

minicom is a command line serial port tool     under linux system . This article introduces its download, installation and simple use under Ubuntu.

1. Install Ubuntu .

    Installation is abbreviated. In the example in this article, the VMware version is 16.2.3, and the Ubuntu version is 22.04.1.

2. Install minicon .

   Open ubuntu terminal, or ctrl+alt+t

   Enter the command: sudo apt-get install minicom

    

3. Configure minicon.

    It is mainly to configure the serial port number and baud rate, etc., which are the same as the serial port under windows.
    a. Enter the command: sudo minicom -s 

    
    b. Enter the following configuration interface:

    

    c. Use the keyboard up and down keys to select "Serial port setup"

     

   d. Press enter to enter the serial port setting interface:

   

    Enter the corresponding subtitles to enter the corresponding configuration, for example, select A to configure Serial Device, E to enter the baud rate setting interface

   Press "A" to configure Serial Device: the common setting is /dev/ttyUSB0. Press enter again to return to the selection

   Press "E" to configure Bsp/Par/Bits

   

    Press C/D/R to select the desired baud rate, such as E: 115200, and use the same method to select parity/data/stopbits. After the setting is completed, press Enter to exit the changing interface. The baud rate of 115200 is set.

  

    Press "F" to configure hardware flow control. Generally, flow control is not used, so select NO here. The details will not be described here.

    After the setting is complete, press Enter to return to the main interface.

    e. Use the up and down keys on the keyboard to select "Save setup as dfl", and press enter to save configuration.

    

     f. Use the up and down keys on the keyboard to select "Exit from Minicon" to exit the setting.

4. View minicom.

   Enter: ls /dev/ttyUSB0

  If there is no usb to serial port, then you need to continue to set up. If you are using a system under a virtual machine, the specific steps are as follows:

(1) Open the virtual machine environment, close ubuntu, and select "VM-->Settings(Ctrl+D)".

(2) Click "Add" to enter the Add Hardware Wizard, select "Serial Port", and click "Next".

(3) Select the first item "Use physical port on the host", click "Next".

(4) Select "Physical serial port" as "Auto detect", check "Connect at power on", and click "Finish" to complete.

   (5) Then set Serial Device: /dev/tty0 or Serial Device: /dev/ttyS0 in the minicom configuration above, and restart the development board, so that minicom can run normally.

4. Open minicom.

    Enter the command: sudo minicom

    

 

5. minicom xmodem transfer files.

   Press Ctl+A, then press S (send), select xmodem

   

    Then enter the Select a files for upload dialog.

    Next, press the up and down keys to select the menu, select Goto, and the Goto directory dialog box will pop up. Enter the path and file name of the file to be transferred on the PC, such as /home/jane/test.

     After pressing Enter, the file data transfer starts.

     Transfer completed.

    Press the Esc key to exit.

 

 

Guess you like

Origin blog.csdn.net/u010192735/article/details/127423457