Pressure Systems 9022 User Manual

Page 77

Advertising
background image

Pressure Systems, Inc.

NetScanner™ System (9016, 9021, & 9022) User’s Manual

www.PressureSystems.com

3 - 47

Command ‘c’ — Sub-command Index 06: Select Protocol For Stream Delivery

Command

c 06 st pro [remport [ipaddr]]

‘c’ is the command letter.
‘ 06’ is the sub-command index (ii) for Select Protocol.
st’ is the stream id digit (0=the ONLY acceptable entry).
pro’ is the protocol id digit (1=UDP/IP, 0=TCP/IP)
remport’ is an optional remote port number to which each UDP
stream is directed in the host (port 9000 is the default if
unspecified). It is ignored if pro=0.
ipaddr’ is an optional host IP address to which each UDP stream
is directed (default is the host IP address per current TCP
connection that sent this command). It is ignored if pro=0.
NOTE: all parameters separated by a space.

Response

“A”

‘A’ is the acknowledge letter.

Description:

This command sets the protocol by which every configured autonomous stream is
delivered to the host. It must be executed after streams are configured, but
before they are enabled. This command is only available
to modules with
firmware revision 2.28 or higher.

By default, streams are delivered via the same TCP/IP protocol used to receive
commands from host (i.e., via the existing TCP/IP connection used to send this
command). However, for special circumstances, all autonomous streams may be
delivered to the host via the UDP/IP protocol instead. This command is required
only when UDP/IP is to be used. It also can restore the default protocol (to TCP/IP)
once it has been changed. The TCP/IP version of the command ignores the optional
(pro and ipaddr) parameters, which have meaning only to the UDP/IP protocol.

Though the command has a stream parameter, it is currently limited to changing the
protocol of all defined streams at the same time (i.e., parameter st must be = 0,
meaning all configured streams).

The optional remport parameter may be any value in the range 1024 to 65535.
However, remport = 7001 should be avoided, since NetScanner modules emit UDP
Query
responses to that port, and most host programs should have a UDP socket
already bound to that port for receiving these special responses. The choice of

Advertising