COM Check under Windows

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
(New page: == The Sample code source you can download from == ActiveX file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/regActiveX.rar regActiveX.rar] Source file: [ftp://ftp.lex....)
Current revision (14:11, 25 February 2022) (edit) (undo)
(The Sample code source you can download from)
 
(6 intermediate revisions not shown.)
Line 1: Line 1:
 +
[[Category:AllowPages]]
 +
== The Sample code source you can download from ==
== The Sample code source you can download from ==
-
ActiveX file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/regActiveX.rar regActiveX.rar]
+
<Google Drive>
-
Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/ComCheck_Src.rar ComCheck_Src.rar]
+
ActiveX file: [https://drive.google.com/file/d/1rLadHKIQ1gVCmcMKubAAOlYnl_dSOrQj/view?usp=sharing RegActiveX]
-
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/ComCheck_bin.rar ComCheck_bin.rar]
+
Source file: [https://drive.google.com/file/d/11RZMX67q2BCYcWmveg2lsreXqK317wfT/view?usp=sharing ComCheck_Src]
 +
 
 +
Binary file: [https://drive.google.com/file/d/11s4qsogL6fWEeMWDJnSY0EY3tKCy-hG0/view?usp=sharing ComCheck_Bin]
 +
 
 +
 
 +
<FTP>
 +
 
 +
ActiveX file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/regActiveX.rar RegActiveX]
 +
 
 +
Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/ComCheck_Src.rar ComCheck_Src]
 +
 
 +
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/ComCheck/ComCheckAuto_bin.rar ComCheck_Bin]
== How to use this Application ==
== How to use this Application ==
Line 19: Line 32:
4.Download ComCheck and open ComCheck.exe to your computers.
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.
+
[[Image:port1.jpg]]
-
[[Image:Receive.jpg]]
+
5.Select your port and buad rate then click OPEN button to send your message.
-
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.
+
[[Image:port2.jpg]]
-
[[Image:Send.jpg]]
+
6.Input your message counts to send then click SEND_LOOP;
-
7.If the second computer receive the data you will see the words in receive screen.
+
7.When send LOOP_COUNT you can slide Frequency button to determine your frequency.
 +
 
 +
[[Image:port3.jpg]]
 +
 
 +
8.If you want to know your send status then input emailID and SMTP password.
 +
 
 +
[[Image:port4.jpg]]
 +
 
 +
10.If the second computer receive the data you will see the words in receive screen.
[[Image:data.jpg]]
[[Image:data.jpg]]
Line 39: Line 60:
10.Select RTS and select com port then open it which one you want to receive data in second computer.
10.Select RTS and select com port then open it which one you want to receive data in second computer.
-
[[Image:RTS.jpg]]
+
11.You can see the send progress on then progress chart.
 +
 
 +
12.You can see the receive in the receive screen.
-
11.Type words in first computer screen if second computer has receive the data that's mean RTS work.
+
[[Image:PORT4.jpg]]
== Sample Code ==
== Sample Code ==
Line 68: Line 91:
when RS422 connection RS422 then use Ping 1 and Ping 2 must change, Ping 3 and Ping 4 must change
when RS422 connection RS422 then use Ping 1 and Ping 2 must change, Ping 3 and Ping 4 must change
<br />
<br />
-
[[Image:RS422.jpg]]
+
[[Image:RS422.png]]
<br />
<br />
'''RS485 <==> RS485'''
'''RS485 <==> RS485'''

Current revision


Contents

The Sample code source you can download from

<Google Drive>

ActiveX file: RegActiveX

Source file: ComCheck_Src

Binary file: ComCheck_Bin


<FTP>

ActiveX file: RegActiveX

Source file: ComCheck_Src

Binary file: ComCheck_Bin

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.

Image:ActiveX.jpg

4.Download ComCheck and open ComCheck.exe to your computers.

Image:port1.jpg

5.Select your port and buad rate then click OPEN button to send your message.

Image:port2.jpg

6.Input your message counts to send then click SEND_LOOP;

7.When send LOOP_COUNT you can slide Frequency button to determine your frequency.

Image:port3.jpg

8.If you want to know your send status then input emailID and SMTP password.

Image:port4.jpg

10.If the second computer receive the data you will see the words in receive screen.

Image:data.jpg

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.

Image:BIOS.jpg

10.Select RTS and select com port then open it which one you want to receive data in second computer.

11.You can see the send progress on then progress chart.

12.You can see the receive in the receive screen.

Image:PORT4.jpg

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
Image:RS232.jpg
RS422 <==> RS422
when RS422 connection RS422 then use Ping 1 and Ping 2 must change, Ping 3 and Ping 4 must change
Image:RS422.png
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
Image:RS485_2.jpg
RS485 <==> RS232
when RS485 connection RS232 then must use converter and RS485 Ping 1 and Ping 2 must change
Image:conver.jpg

Personal tools