![ABLELink ABLELink SE5001 Скачать руководство пользователя страница 39](http://html1.mh-extra.com/html/ablelink/ablelink-se5001/ablelink-se5001_user-manual_3425187039.webp)
User Manual Version 1.5
SE5001 Ethernet Serial Server
Copyright © 2006 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.
38
6. Start Writing Ones Own Applications
Before one start writing ones host applications or programs to interact with SE5001, please make sure one
have done the following.
6.1 Preparing the System
1. Properly connect SE5001 hardware including power, Ethernet and serial cable
2. Properly configure the parameters of SE5001 including connection type, IP address, gateway IP
address, and network mask accordingly (see chapter 3
Hardware Installation
section).
3. Configure SE5001 as TCP Server using default TCP port number 4660.
4. The host (PC) application program must be configured as a TCP client and connects to SE5001 with
designated TCP port number 4660 for COM1.
5. Make sure SE5001 is running by checking the running status through
SerialManager
configuration
utility.
6.2 Running the Sample Program
Sample programs written in VB and VC++ included in package are provided for one reference, source codes
are also included. Test program can be found in the product CD or diskette under the directory of
\sample\vb_ap\
and
\sample\vc_ap
respectively.
There are two test programs, TCPTEST written in Visual Basic and TCPTEST2 written in Visual C++.
6.2.1 TCPTEST in Visual Basic
This sample program is written in Visual Basic 5.0 with Winsock Controls. It shows one how to send and
receive data between host (PC) and SE5001 via Ethernet in two socket ports.
Run Visual Basic and open sample program tcptest.vbp, after the program is started successfully, one can
start testing functions (Figure 6.1). For more information, please press
Help
in the program to get detail
explanation.
Note
: Please be sure the Microsoft visual studio family software is installed on the computer. Otherwise the
sample program will not run.