Establishing a TCP/IP Connection with a Device Server

Top  Previous  Next

 

Setting up the Device Server for TCP/IP Communication

 

The simplest and most reliable way to set the DS up for TCP/IP communication is using the Connection Wizard.

 

Click Start > Programs > Tibbo > Connection Wizard:

 

an008_conwiz1

 

Click Next.

 

an008_conwiz2

 

 

Select Configure a Device Server for direct communications with an application on this PC. Click Next.

 

 

an008_conwiz3

 

Click Select from the list.

 

an008_conwiz4

 

Select the DS you would like to work with. If its IP address is invalid (it says so on the status bar), click Change IP.

 

an008_conwiz5

 

Having made sure the IP of the device is correct, select the DS in the list, click Select to go back to the Wizard, and click Next.

 

an008_conwiz6

 

Select Your application. Click Next.

 

an008_conwiz7

 

Select TCP/IP transport protocol. Don't change the port, but remember it's 1001. You'll need this for later.

 

an008_conwiz8

 

Set whatever serial parameters you need. Just remember what you set here, as you might need it for later (or for Establishing a Serial Connection with a Device Server). If you are going to perform a loopback test, set RTS/CTS flow control to Disabled or remote.

 

an008_conwiz9

 

This is just a summary screen. Click Finish.

 

Now we know the IP address and port for this device server, and have set it so it would listen for incoming TCP connections. On to the next phase:

       

Setting up HyperTerminal for TCP/IP Communications

 

We resume from where we left off on Setting Correct Parameters on Startup. To establish a TCP/IP connection with the Device Server, open the drop-down titled Connect using, and select TCP/IP (Winsock):

 

       an008_Connect_To_1

       

Next, enter the IP address and the port number we got earlier from the DS Manager:

 

       an008_Connect_To_2

       

Now click OK.

 

The following screen should appear:

       

an008_Screen1

       

Congratulations! You're connected. Continue to Sending Commands To the Device Server or Using HyperTerminal to Test a Connection.