請先看『使用說明』
COM Check under Windows
From LEXWiKi
Contents |
The Sample code source you can download from
ActiveX file: regActiveX.rar
Source file: ComCheck_Src.rar
Binary file: ComCheck_bin.rar
How to use this Application
1.The first computer and second computer use crossover cable to connection ports which you choice if all of your coms are RS232.
2.Download ActiveX and open regActiveX.exe for "system administrator" permission.
3.click "regActiveX" button to register ActiveX component in first computer and second computer.
4.Download ComCheck and open ComCheck.exe to your computers.
5.Select Auto_flow and select com port then open it which one you want to receive data in second computer.
6.Select Auto_flow and select com port then open it which one you want to send data in first computer then type some words and click SEND button.
7.If the second computer receive the data you will see the words in receive screen.
8.All step in RS485 COM is the same only cable to connection ports use Parallel cable.
9.Open second computer's BIOS then disable auto_flow COM in RS485.
10.Select RTS and select com port then open it which one you want to receive data in second computer.
11.Type words in first computer screen if second computer has receive the data that's mean RTS work.
Sample Code
check 32bit or 64bit
fnIsWow64Process = (LPFN_ISWOW64PROCESS) GetProcAddress(GetModuleHandle(TEXT("kernel32")),"IsWow64Process");
load ActiveX to windows
lpDllEntryPoint = GetProcAddress(hLib,"DllRegisterServer");
unload ActiveX to windows
lpDllEntryPoint = GetProcAddress(hLib,"DllUnregisterServer");
Test Method
RS232 <==> RS232
when RS232 connection RS232 then use Ping 2 and Ping 3 must change
RS422 <==> RS422
when RS422 connection RS422 then use Ping 1 and Ping 2 must change, Ping 3 and Ping 4 must change
RS485 <==> RS485
when RS485 connection RS485 then use Ping 1 and Ping 2 must Parallel
if auto_flow is disable,then recivie COM RTS must enable
RS485 <==> RS232
when RS485 connection RS232 then must use converter and RS485 Ping 1 and Ping 2 must change