Ubuntu Virtual machine using cutecom for serial communication method
- 2020-12-26 06:17:37
- OfStack
Ubuntu virtual machine uses cutecom for serial communication
1. Install cutecom
Use the following command to install cutecom
[sudo apt-get install cutecom
]Call the following command to open cutecom
[
sudo su
cutecom
In the Device position, if USB is used to transfer to serial port, the path needs to be filled manually
/dev/ttyUSB0
2. Add a serial port to the virtual machine
Open the virtual machine Settings while the virtual switch is closed
Click the Add button
Click the next step to add the serial port
3. Create ttyUSB0 port for the virtual machine
Use the following command to create port ttyUSB0
[sudo mknod /dev/ttyUSB0 c 188 0
]Open permissions for ttyUSB0
[sudo chmod 666 /dev/ttyUSB0
]conclusion