After the Serial Port Emulator software has started, you will see a list of all the configured SX-560s on the network. Right click on the name of the SX-560 that you want the virtual COM port to connect to (the default name is SDSxxxxxx, where xxxxxx is the last six digits of the SX-560 MAC address), and then click Virtual Port. You will be asked to select the name of the virtual COM port (for example, COM3).

Click OK after you have selected the name, and you now ready to use the virtual COM port.

Using virtual COM port is identical to using a normal COM port. For example, if you configure a virtual COM port called COM3, this port will show up as one of the available serial ports when you use the Windows HyperTerminal Accessory program.

Raw TCP connection

You can communicate directly from your application program to the SX-560 using a raw TCP connection. This is done by opening a TCP port on the SX-560 and then sending and receiving data to this port via a socket or equivalent API. This method is more efficient than using the Serial Port Emulator, and does not require any additional software to be installed on your computer.

If you are using a raw TCP connection, the default TCP port number is either 9100 or 3001 for Serial Port 1 or 9101 or 3002 for Serial Port 2 (you can use any or all of these port numbers) for normal connections. If you want to be able to access your device’s modem control signals from your computer system, then the TCP port number is 9200 for Serial Port 1 or 9201 for Serial Port 2 (this enables RFC 2217 support). You can change the port number, if desired, by modifying one of the SX-560 services. To change the TCP port number:

1.Connect to the SX-560 with a web browser (see chapter 3 for instructions on doing this);

2.After you have logged in, click I/O Services on the left side of the page.

3.Click on the service name that you want to change (any one of the services is OK, provided that you are not using the existing TCP port number of that service for a different application).

4.Change the Raw TCP Port to the desired number (must be greater than 1023).

5.Click Submit to save your change.

You can test this connection by using the TELNET utility from the Windows Command Prompt (MS-DOS prompt), Mac OS X Terminal Utility, or UNIX/Linux command line as follows:

telnet ipaddress portnumber

Using the SX-560

 

Silex

Part Number 140-00192-100

Page 33

Page 39
Image 39
Silex technology SX-560 manual Raw TCP connection, Telnet ipaddress portnumber