Pressure Systems, Inc.

98RK-1 & 9816 User’s Manual©

 

 

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.

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 remport parameter will affect the way host software must handle multiple modules sending streams. If every module uses the same port, then a single host socket can be bound to that port to receive all responses from all modules. The remote IP Address, given to that socket, at time of receipt of the stream’s datagram, will identify the particular module who sent the datagram.

Page 72

www.PressureSystems.com

Page 74
Image 74
Pressure Systems 98RK-1 user manual Command, St pro remport ipaddr