ErgoEmacsEmacsLispBlogEmacsLispBuy Tutorial
Web Hosting by 1&1

41.12 Serial Terminal

If you have a device connected to a serial port of your computer, you can use Emacs to communicate with it. M-x serial-term will ask you for a serial port name and speed and will then open a new window in Term Mode.

The speed of the serial port is measured in bits per second. The most common speed is 9600 bits per second. You can change the speed interactively by clicking on the mode line.

A serial port can be configured even more by clicking on “8N1” in the mode line. By default, a serial port is configured as “8N1”, which means that each byte consists of 8 data bits, No parity check bit, and 1 stopbit.

When you have opened the serial port connection, you will see output from the device in the window. Also, what you type in the window is sent to the device.

If the speed or the configuration is wrong, you cannot communicate with your device and will probably only see garbage output in the window.

blog comments powered by Disqus