1SJINN(1)                    General Commands Manual                   SJINN(1)
2
3
4

NAME

6       sjinn - RS-232 control and serial communications
7

SYNOPSIS

9       sjinn ption [options] ...
10

EXAMPLE

12       sjinn -b600 -p7n2 -s"D" -r14 --verbose
13

COMMUNICATIONS OPTIONS

15       -d, --file [default /dev/ttyS0] serial I/O device
16
17       -b, --baud [default 9600] set baud rate
18              50,75,110,134,150,200,300,600,1200,1800,2400,9600,
19              19200,38400,57600,115200,230400
20
21       -p, --comm [default 8N1] set databits,parity,stopbits
22              (5,6,7,8)(N,E,O)(1,2)  note:  3  character  string   each
23              parameter is a single character i.e. '7N2' mark and space
24              parity not supported
25
26       --xonxoff [default off] XON/XOFF - software flow control
27
28       --rtscts [default off] RTS/CTS - hardware flow control
29
30       --dtr [default enabled] disable DTR
31
32       --rts [default disabled] enable RTS
33
34       -s, --send STRING write string to device
35              note: in addition to ASCII characters the following  con‐
36              trol-chars are supported: \r \n \0 \p \h \w \\
37
38       -r, --read INT read n characters from device
39
40       -w, --wait FLOAT [default 0.5] seconds between send & read
41
42       --pause FLOAT [default = wait] wait time for pause-character, if
43       not specified it is set to the value of the -w parameter
44
45       -m, --msec specify \w and \p in milliseconds instead of seconds
46

FORMATTING OPTIONS

48       --hex  [default=ASCII] display read buffer in hex values
49
50       --hex+ [default=ASCII] display read buffer in hex + ASCII
51
52       --wrap INT wrap lines at n characters
53
54       --trim INT truncate lines at n characters
55
56       --n, --nolf do not output the trailing new line
57
58       --verbose verbose
59

OPTIONS

61       -h, --help display this help and exit
62
63       -V, --version output version and exit
64

SEND STRING CONTROL-CHARACTERS

66       \\  Back-Slash
67
68       \-  Minus-Sign (dash)
69
70       \n  LF
71
72       \r  CR
73
74       \p  Pause
75              Delay number of seconds/mSec defined by --pause
76
77       \w  Wait
78              Delay number of seconds/mSec specified,  number  must  be
79              followed by a space (example: -s"cmd1\n\w.5 cmd2\n")
80
81       \h  Hex Mode
82              Toggle  to/from  hex mode, hex codes must be 2-characters
83              followed by a space (example: -s"command1\h9e 4c\h\n")
84

AUTHOR

86       Brian Peterson, Aspen Research Corporation
87

BUGS

89       Report bugs at <http://sourceforge.net/projects/sjinn>
90

WARRANTY

92       This is free software with ABSOLUTELY NO WARRANTY
93
94
95
96
97
98                                   May 2001                           SJINN(1)
Impressum