Thread: [Com0com-cvs] com0com ReadMe.txt,1.10,1.11
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
From: Vyacheslav F. <vf...@us...> - 2006-12-13 16:44:47
|
Update of /cvsroot/com0com/com0com In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21000 Modified Files: ReadMe.txt Log Message: Added installer description Removed "Manually" Index: ReadMe.txt =================================================================== RCS file: /cvsroot/com0com/com0com/ReadMe.txt,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ReadMe.txt 23 Oct 2006 12:20:32 -0000 1.10 --- ReadMe.txt 13 Dec 2006 16:44:40 -0000 1.11 *************** *** 27,35 **** ======== 1. Set up the DDK environment on your machine. 2. Run the build -wcZ command in the com0com directory to build ! com0com.sys and setup.dll. ! 3. Copy com0com.inf, %CPU%\com0com.sys, %CPU%\setup.dll and setup\setup.bat ! files to a temporary directory. --- 27,38 ---- ======== + If you'd like to build a binary from source yourself then: + 1. Set up the DDK environment on your machine. 2. Run the build -wcZ command in the com0com directory to build ! <CPU>\com0com.sys and <CPU>\setup.dll (where <CPU> is i386, ia64 ! or amd64). ! 3. Create the installer (setup.exe) from NSIS\install.nsi by ! NSIS (see http://nsis.sourceforge.net/ for details) *************** *** 37,46 **** ========== ! With setup.dll ! -------------- ! 1. Run the setup.bat in the directory with com0com.inf, com0com.sys and ! setup.dll files. ! 2. Enter install command, for example: command> install - - --- 40,50 ---- ========== ! Simply run the installer (setup.exe). An installation wizard will guide ! you through the required steps. The one COM port pair with names CNCA0 and ! CNCB0 will be available on your system after the installation. You can add ! more pairs with the Setup Command Prompt: ! 1. Launch the Setup Command Prompt shortcut. ! 2. Enter the install command, for example: command> install - - *************** *** 48,82 **** The system will create 3 new virtual devices. One of the devices has name "com0com - bus for serial port pair emulator" and other two of ! them have name "com0com - serial port emulator" and located on CNCA0 ! and CNCB0 ports (or CNCA1 and CNCB1 or ...). ! To get more info enter help command, for example: command> help - Manually - -------- - - 1. Start the "Add/Remove Hardware" wizard in Control Panel. - 2. Click "Add/Troubleshoot a Device". - 3. Select "Add a new device" and then click Next. - 4. Select "No, I Want to Select the Hardware from a list". - 5. For the first time (if the driver is not installed yet): - 1. Select "Other Devices" and then click Next. - 2. Click "Have Disk". - 3. Enter path to the directory with com0com.inf and com0com.sys - files and then click OK. - For the next time (adding one more port pair) select - "com0com - serial port emulators" and then click Next. - 6. Select "com0com - bus for serial port pair emulator" and then - click Next. - - The system will create 3 new virtual devices. One of the devices has - name "com0com - bus for serial port pair emulator" and other two of - them have name "com0com - serial port emulator" and located on CNCA0 - and CNCB0 ports (or CNCA1 and CNCB1 or ...). - - TESTING ======= --- 52,63 ---- The system will create 3 new virtual devices. One of the devices has name "com0com - bus for serial port pair emulator" and other two of ! them have name "com0com - serial port emulator" and located on CNCAn ! and CNCBn ports. ! To get more info enter the help command, for example: command> help TESTING ======= *************** *** 91,125 **** ============ ! With setup.dll ! -------------- ! ! 1. Run the setup.bat in the directory with com0com.inf, com0com.sys and ! setup.dll files. ! 2. Enter uninstall command: ! ! command> uninstall ! ! ! Manually ! -------- ! ! Start Device Manager this way: ! ! set DEVMGR_SHOW_NONPRESENT_DEVICES=1 ! %SystemRoot%\system32\devmgmt.msc ! ! Click View and select "Show hidden devices". Remove all "com0com" devices. ! ! Remove the following subtrees from the registry: ! ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{DF799E12-3C56-421B-B298-B6D3642BC878}] ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\com0com] ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\System\com0com] ! ! Delete file %SystemRoot%\system32\drivers\com0com.sys ! Find in the %SystemRoot%\inf\ directory the oem{N}.inf file(s) that corresponds ! to the com0com.inf file (the system renames com0com.inf to oem{N}.inf, where {N} ! is a number). Delete all found oem{N}.inf and corresponding oem{N}.PNF files. --- 72,82 ---- ============ ! Simply launch the com0com's Uninstall shortcut in the Start Menu or remove ! the "Null-modem emulator (com0com)" entry from the "Add/Remove Programs" ! section in the Control Panel. An uninstallation wizard will guide ! you through the required steps. ! HINT: To uninstall the old version of com0com (distributed w/o installer) ! install the new one and then uninstall it. *************** *** 128,150 **** Q. Is it possible to change the names CNCA0 and CNCB0 to COM2 and COM3? ! A. Yes, it's possible. Add the following to the registry: ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\com0com\Parameters\CNCA0] ! "PortName"="COM2" ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\com0com\Parameters\CNCB0] ! "PortName"="COM3" Q. The baud rate setting does not seem to make a difference: data is always transferred at the same speed. How to enable the baud rate emulation? ! A. To enable baud rate emulation for transferring data from CNCA0 to CNCB0 add ! the following to the registry: ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\com0com\Parameters\CNCA0] ! "EmuBR"=dword:FFFFFFFF Q. The HyperTerminal test succeeds, but I get a failure when trying to open the port with CreateFile("CNCA0", ...). GetLastError() returns ERROR_FILE_NOT_FOUND. ! A. You must prefix name with the special characters "\\.\". Try to open the port ! with CreateFile("\\\\.\\CNCA0", ...). Q. My application hangs during its startup when it sends anything to one paired --- 85,109 ---- Q. Is it possible to change the names CNCA0 and CNCB0 to COM2 and COM3? ! A. Yes, it's possible. To change the names: ! 1. Launch the Setup Command Prompt shortcut. ! 2. Enter the change commands, for example: ! ! command> change CNCA0 PortName=COM2 ! command> change CNCB0 PortName=COM3 Q. The baud rate setting does not seem to make a difference: data is always transferred at the same speed. How to enable the baud rate emulation? ! A. To enable baud rate emulation for transferring data from CNCA0 to CNCB0: ! 1. Launch the Setup Command Prompt shortcut. ! 2. Enter the change command, for example: ! ! command> change CNCA0 EmuBR=yes Q. The HyperTerminal test succeeds, but I get a failure when trying to open the port with CreateFile("CNCA0", ...). GetLastError() returns ERROR_FILE_NOT_FOUND. ! A. You must prefix the port name with the special characters "\\.\". Try to open ! the port with CreateFile("\\\\.\\CNCA0", ...). Q. My application hangs during its startup when it sends anything to one paired *************** *** 156,163 **** receiving port. Also, to prevent some flow control issues you need to enable baud rate emulation for the sending port. So, if your application use port CNCA0 ! and other paired port is CNCB0, then add the following to the registry: ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\com0com\Parameters\CNCB0] ! "EmuOverrun"=dword:FFFFFFFF ! [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\com0com\Parameters\CNCA0] ! "EmuBR"=dword:FFFFFFFF --- 115,123 ---- receiving port. Also, to prevent some flow control issues you need to enable baud rate emulation for the sending port. So, if your application use port CNCA0 ! and other paired port is CNCB0, then: ! 1. Launch the Setup Command Prompt shortcut. ! 2. Enter the change commands, for example: ! ! command> change CNCB0 EmuOverrun=yes ! command> change CNCA0 EmuBR=yes |