Install the serial port debugging tool cutecom under Linux, and how to use it

Table of contents

installation method:

 How to use:

1. Set serial port data

2. Find the serial port

3. Connect the serial port

4. Close the connection

transfer data


Since the serial port debugging tool under Linux is used in the project, cutecom is selected. After checking the information, record the installation and usage methods here. This article is referenced from https://www.cnblogs.com/Netsharp/p/16010814.html , this article is written in great detail.

installation method:

Enter in the terminal command line:

sudo apt-get install cutecom

When the selection comes up type: y 

It will be installed shortly. Then enter: sudo cutecom to run, enter the password, and the following interface will appear, indicating that the installation is complete.

 How to use:

        1. Set serial port data

        Click the Settings button in the above figure, and the following interface will appear, where you can set relevant data

         Click the Settings button in the above figure, you can see the following interface, you can configure the serial port data.

        2. Find the serial port

        Connect the serial port to the computer, enter the dmesg | grep ttyS* command in the terminal, and the status of the unplugged serial port will be listed.

        3. Connect the serial port

        Select ttyS0 in the device column, if not in the list, you can directly input it manually, and then click open device (button in the upper left corner of the software) to connect


        4. Close the connection

        Click close device (the button in the upper left corner of the software) to close the current connection.

transfer data

After configuring the settings and opening the serial port (click the open button), you can send and receive data.

    

Guess you like

Origin blog.csdn.net/weixin_55735677/article/details/130061737