sptarget

Section: User Commands (1)
Updated: April, 2005
Index


NAME

sptarget - simulates a remote application for spd testing

SYNOPSIS

sptarget [-d] -l

OPTIONS

-?
display summary help for sptarget
-d
display debugging output. This option may appear more than once, each appearance causing debugging output to be more verbose.
-l
Log all input and output in sptarget.log

DESCRIPTION

sptarget is a test target for the serial port server. Its function is to interpret its input stream, which is read on stdin, and output responses on stdout.

Commands are the single upper case characters listed below. Some commands are followed by a variable length parameter which is terminated by a semicolon. Parameters and the terminating semicolon are not echoed. Anything which isn't a command is immediately sent back on stdout.

COMMANDS

Q
sptarget exits immediately.
Wnnnn;
Wait for up to nnnn milliseconds before executing the following commands. Cancelled by a following W0; command
Pnnn;
Pause nnn milliseconds before sending each byte. Cancelled by a following P0; command.
Sfile;
Send the contents of file.
Dnnn;
Discard the following nnn bytes.
Annn;
Accept and store the following nnn bytes.
T
Transmit the stored bytes.
Ennn;
Echo the following nnn bytes by storing them all before transmitting them.

E10;bytestring

is equivalent to

A10;bytestringT

The response is sent immediately regardless of the current Wait setting.

Lbbbb,d,p,s;
sets new operating conditions for the serial line. bbbb is the required baud rate, d is the number of data bits (5-8), p is parity (n,e,o in upper or lower case) and s is the number of stop bits (1,2). No response is sent. If the parameters are incorrect sptarget will abort with an error message.
M
Send a string containing the serial line parameters that were set by a preceeding L command. If there was no preceeding L command the response is "Unset".

Index


This document was created by man2html, using the manual pages.
Time: 17:25:38 GMT, February 12, 2006