TCP vs. UDP
Serial Encapsulation
TCP Client vs. TCP
Server
68
NOTE: To restore the
services, connect a terminal to the port, select the proper baud
rate (115,200 is default), and enter an escape sequence (
reset it to the console mode.
There is a configuration parameter for the
another parameter for the
be different, so when switching out of data mode to console
mode, the port might also change its baud rate.
TCP and UDP services are used by the transceiver's embedded serial
device server. TCP provides a connection-oriented link with end-to-end
acknowledgment of data, but with some added overhead. UDP provides
a connectionless best-effort delivery service with no acknowledgment.
Most polled protocols are best served by UDP service as the protocol
itself has built-in error recovery mechanisms. UDP provides the needed
multidrop operation by means of multicast addressing.
On the other hand, TCP services are best suited for applications without
a recovery mechanism (error-correction) and must have the guaranteed
delivery that TCP provides in spite of the extra overhead. The
IP-to-Serial Application Example on Page 75
Transparent encapsulation, or IP tunneling, provides a mechanism to
encapsulate serial data in an IP envelope. All bytes received through the
serial port are put into the data portion of a TCP or UDP packet (TCP or
UDP are user-configurable options). In the same manner, all data bytes
received in a TCP or UDP packet are output through the serial port.
When the radio receives data through the serial port, it is buffered until
the packet is received completely. There are two events that signal an
end-of-packet to the radio: a period of time since the last byte was
received, or a number of bytes that exceed the buffer size. Both of these
triggers are user-configurable.
One radio can perform serial data encapsulation (IP-to-Serial) and talk
to a PC. You can use two radios together (or one radio and a terminal
server) to provide a serial-to-serial channel. For more information,
"IP-to-Serial Application Example" on Page 75
Serial-to-Serial Application Example on Page
On a TCP session there is a server side and a client side. You can con-
figure the transceiver to act as either a server or a client. The server
always waits for requests from clients.
The client mode attempts to establish a connection to a server (typically
running on a PC) whenever it receives data on the serial port. There is
also a Client/Server mode, where the client establishes a connection
when data is received on the serial port and the server is not currently
handling a connection.
Mercury Reference Manual
port to support Management System
COM1
serial data baud rate
shows how to do this.
76.
) to
+++
and
console baud rate
. These items can
see
and
Point-to-Point
05-4446A01, Rev. C