com0com-1.5.0.0-386-chk

所属分类:串口编程
开发工具:Windows_Unix
文件大小:25KB
下载次数:124
上传日期:2006-04-13 17:13:11
上 传 者ianrosengren
说明:  虚拟串口。The Null-modem emulator is an open source kernel-mode virtual serial port driver for Windows, available freely under GPL license. The Null-modem emulator allows you to create an unlimited number of virtual COM port pairs and use any pair to connect one COM port based application to another. Each COM port pair provides two COM ports. The output to one port is the input from other port and vice versa. http://sourceforge.net/projects/com0com/
(virtual serial port. The Null- modem emulator is an open source kerne l-mode virtual serial port driver for Windows, available freely under GPL license. The Null- m odem emulator allows you to create an unlimited number of virtual COM port pairs and use any pair to connect one COM port based application to competitor ther. Each COM port pair provides two COM ports. The output to one port is the input from other por t and vice versa. http :// sourceforge.net/projects/com0com /)

文件列表:
com0com-1.5.0.0-386-chk (0, 2005-12-29)
com0com-1.5.0.0-386-chk\com0com.inf (3837, 2005-07-14)
com0com-1.5.0.0-386-chk\com0com.sys (42459, 2005-12-29)

============================= Null-modem emulator (com0com) ============================= INTRODUCTION ============ The null-modem emulator is a kernel-mode virtual serial port driver for Windows. You can create an unlimited number of virtual COM port pairs and use any pair to connect one application to another. Each COM port pair provides two COM ports with names starting at CNCA0 and CNCB0. The output to one port is the input from other port and vice versa. Usually one port of the pair is used by Windows application that requires a COM port to communicate with a device and other port is used by device emulation program. For example, to send/receive faxes over IP you can connect Windows Fax application to CNCA0 port and t38modem (part of the OpenH323 project) to CNCB0 port. In this case the t38modem is a fax modem emulation program. The homepage for com0com project is http://com0com.sourceforge.net/. BUILDING ======== 1. Set up the DDK environment on your machine. 2. Run the build -wcZ command in the com0com directory to build com0com.sys. 3. Copy com0com.inf and com0com.sys files to a temporary directory. INSTALLING ========== 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 ======= 1. Start the HyperTerminal on CNCA0 port. 2. Start the HyperTerminal on CNCB0 port. 3. The output to CNCA0 port should be the input from CNCB0 port and vice versa. UNINSTALLING ============ 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" divices. Remove the following subtrees from the registry: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{DF799E12-3C56-421B-B2***-B6D3***2BC878}] [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. FAQ === 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", ...).

近期下载者

相关文件


收藏者