Difference between revisions of "Com0com"

From ReactOS Wiki
Jump to: navigation, search
(sys)
Line 11: Line 11:
 
=== Setup ===
 
=== Setup ===
  
Get com0com and install it. Run the com0com command shell and type
+
Get [http://sourceforge.net/project/showfiles.php?group_id=129551 com0com] and install it. Run the com0com command shell and type
  
 
<pre>install PortName=COM4 PortName=COM5</pre>
 
<pre>install PortName=COM4 PortName=COM5</pre>

Revision as of 16:11, 7 April 2009

com0com is a free utility to create virtual serial port pairs which can be used to capture the debug output of ReactOS and direct it to a terminal program.

Useful terminal programs that are able to get this output include:

Setup

Get com0com and install it. Run the com0com command shell and type

install PortName=COM4 PortName=COM5

and it will create two virtual ports connected together. If you prefer different ports, just change the port names. A simple help is avaiable via "help" command.

Connecting the virtual machine and terminal application

Connect the Virtual Machine to your first virtual port ("COM4") and the terminal application to the second ("COM5").

The properties of the serial port (usually specified in the virtal machine), like the baud rate, are not important. Instead, be sure to select "NO FLOW CONTROL", because otherwise the terminal app won't receive any characters.

What does com0com do?

Com0com sys.png

The virtual machine shows a COM1 port to ReactOS which is used for sending debug messages.

The virtual machine maps this port to a virtual port visible to the host operating system.

com0com emulates a null modem cable between the vm and the terminal application.