Rs-232 / tcp/ip port hardware, Tcp/ip overview, Setting a static ip address vs dhcp – Zektor Palladia™ 8X8 User Manual

Page 27

Advertising
background image

HDA800(V2) Serial Protocol, Version 1.3, 9/12/13

27

RS-232 / TCP/IP Port Hardware

RS-232 / TCP/IP Port Hardware

TCP/IP Overview

The Serial and TCP/IP port share the same protocol.

The TCP/IP connection is a very simple socket, sometimes referred to as Raw TCP/IP socket, similar
to Telnet, but without the Telnet protocol overhead. Most telnet clients will allow you to telnet into the
HDA800(V2) without error.

We use the open source package PuTTY to do our testing. It has a convenient “Raw” mode that works
great with the HDA800(V2), and is available in Windows and Linux (with a Mac O/S version in the
works). (We are not associated with PuTTY in anyway, but do find it a useful tool when communicat-
ing over TCP/IP and Serial port connections)

Website: http://www.chiark.greenend.org.uk/~sgtatham/putty

By default, the HDA800(V2) uses DHCP to acquire an IP address. The TCP/IP socket’s is fixed to
50005.

Once a connection is made it will remain open until closed by the client, or after 10 minutes of retries
at attempting to talk to the client.

After connecting to the TCP/IP port, all commands are identical to those of the Serial port. All strings
coming from the HDA800(V2) will be sent to both the TCP/IP sockets and Serial ports.

The HDA800(V2) will accept commands from both Serial ports and TCP/IP simultaneously, each
port’s commands will be buffered until the ending ‘$’ is read, at which time the commands will be exe-
cuted in the order received. All responses will be sent to both Serial ports and TCP/IP connections.

Setting a static IP address vs DHCP

By default, the HDA800(V2) will use DHCP to retrieve a IP address, an IP mask, and the address of
the router (gateway). The IP address can be set using the front panel, or you can issue serial com-
mands.

When using serial commands, setting an IP address is a two step process. You must first set the static
values to be used for the IP address, the IP mask, and the router address, then place the HDA800(V2)
into the Static IP address mode.

The commands to set the static IP address, mask and router are: IPA, IPM and IPG respectively. (See:
‘IPA’ Set / View the static IP Address” on page 47
.)

The command to change the IP address mode is: IPSET. (See: “‘IPSET’ Set the IP operation mode,
DHCP or STATIC
” on page 46.)

The command to save these changes in EEPROM so that they are used after a power failure is: ‘^SS
32$’. (See: ‘SS’ Save Default Power On Settings” on page 43.)

As an example, to set a static address of 192.168.1.200, a mask of 255.255.255.0 and a router address
of 192.168.1.1, and save this in EEPROM, the following commands would be executed:

^IPA 192,168,1,200$

- Set the static IP address

^IPM 255,255,255,0$

- Set the static IP mask

^IPG 192,168,1,1$

- Set the gateway address

^IPSET 0$

- Set the TCP/IP mode to “Static”

^SS 32$

- Save the new settings in EEPROM in case of power failure

Advertising