beautypg.com

2 tcptest2 in visual c, Tcptest2 ip_address port_number, Diagnostics – Atop Technology SE5002 User manual User Manual

Page 36: 1 using standard tcp/ip utility ping command, 7 diagnostics

background image

User manual Version 1.3

ABLELink

®

Ethernet Serial Server SE5002

Copyright © 2006 Atop Technologies, Inc.

All rights reserved. Designed in Taiwan.

-

35

-

6.2.2 TCPTEST2 in Visual C
Enter in the following command on the command line prompt to run the program:
TCPTEST2 IP_Address Port_Number

The command tcptest2 10.0.50.100 4660 connects a TCP server of IP address 10.0.50.100 to port number
4660. The received data is displayed on the screen and the input data is sent to the TCP server. Binary data
in hex format with a leading character “\” can also be sent. For example, “\00” and “\FF” represent ASCII
code 0 and 255, respectively.
A modem can also be used to connect to the serial server. Command "AT\Od" sends standard AT command
to the modem which in return responds with "OK\0D\0A" message to the host application.
Always use '=' then Enter key to exit the program.

7 Diagnostics

There are several ways to check the status and availability of SE5002.

7.1 Using Standard TCP/IP Utility ping Command

Go to Windows Start menu, select Run and Enter in “ping ”.
If the connection is established, the Reply messages are displayed; otherwise it will indicate Request timed
out.