User Manual Version 1.5SE5001 Ethernet Serial ServerCopyright © 2006 Atop Technologies, Inc.All rights reserved. Designed in Taiwan.386. Start Writing Ones Own ApplicationsBefore one start writing ones host applications or programs to interact with SE5001, please make sure onehave done the following.6.1 Preparing the System1. Properly connect SE5001 hardware including power, Ethernet and serial cable2. Properly configure the parameters of SE5001 including connection type, IP address, gateway IPaddress, 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 withdesignated TCP port number 4660 for COM1.5. Make sure SE5001 is running by checking the running status through SerialManager configurationutility.6.2 Running the Sample ProgramSample programs written in VB and VC++ included in package are provided for one reference, source codesare 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 BasicThis sample program is written in Visual Basic 5.0 with Winsock Controls. It shows one how to send andreceive 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 canstart testing functions (Figure 6.1). For more information, please press Help in the program to get detailexplanation.Note: Please be sure the Microsoft visual studio family software is installed on the computer. Otherwise thesample program will not run.