Debian Codegraph @

doc/gsmsendsms.man

raw
1 .\" -*- eval: (nroff-mode) -*-
2 .de TQ
3 .br
4 .ns
5 .TP \\$1
6 ..
7 .\" Like TP, but if specified indent is more than half
8 .\" the current line-length - indent, use the default indent.
9 .de Tp
10 .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
11 .el .TP "\\$1"
12 ..
13 .TH GSMSENDSMS 8 "##DATE##" "gsmsendsms v##VERSION##"
14 .PP
15 .SH NAME
16 gsmsendsms \- SMS message sender utility
17 .PP
18 .SH SYNOPSIS
19 .B gsmsendsms
20 [ \fB\-b\fP \fIbaudrate\fP ]
21 [ \fB\-\-baudrate\fP \fIbaudrate\fP ]
22 [ \fB\-c\fP \fIconcatenatedID\fP ]
23 [ \fB\-\-concatenate\fP \fIconcatenatedID\fP ]
24 [ \fB\-C\fP \fIservice centre address\fP ]
25 [ \fB\-\-sca\fP \fIservice centre address\fP ]
26 [ \fB\-d\fP \fIdevice\fP ]
27 [ \fB\-\-device\fP \fIdevice\fP ]
28 [ \fB\-h\fP ]
29 [ \fB\-\-help\fP ]
30 [ \fB\-I\fP \fIinit string\fP ]
31 [ \fB\-\-init\fP \fIinit string\fP ]
32 [ \fB\-r\fP ]
33 [ \fB\-\-requeststat\fP ]
34 [ \fB\-t\fP ]
35 [ \fB\-\-test\fP ]
36 [ \fB\-v\fP ]
37 [ \fB\-\-version\fP ]
38 [ \fB\-X\fP ]
39 [ \fB\-\-xonxoff\fP ]
40 \fIphonenumber\fP
41 [ \fItext\fP ]
42 .PP
43 .SH DESCRIPTION
44 \fIgsmsendsms\fP sends SMS short messages using an GSM mobile phone.
45 .PP
46 \fIgsmsendsms\fP attaches itself to the \fIdevice\fP given on the command
47 line (usually an GSM modem) using the specified \fIbaudrate\fP. If no
48 \fIdevice\fP is given, the device \fI/dev/mobilephone\fP is used. If
49 no \fIbaudrate\fP is given, a default baud rate of 38400 is used.
50 .PP
51 \fIgsmsendsms\fP accepts a phone number (recipient address) and the
52 short message text as parameters. The text may have a maximum length
53 of 160 characters which is the maximum SMS message length. The GSM
54 default alphabet is used for encoding. ASCII and Latin\-1 characters
55 that can not be encoded using the GSM default alphabet are converted
56 to the GSM delta character (GSM code 16).
57 .PP
58 Error messages are printed to the standard error output. If the program
59 terminates on error the error code 1 is returned.
60 .PP
61 .SH OPTIONS
62 .TP
63 \fB\-b\fP \fIbaudrate\fP, \fB\-\-baudrate\fP \fIbaudrate\fP
64 The baud rate to use.
65 .TP
66 \fB\-c\fP \fIconcatenatedID\fP, \fB\-\-concatenate\fP \fIconcatenatedID\fP
67 If an ID is given, large SMSs are split into several, concatenated
68 SMSs. All SMSs have the same ID and are numbered consecutively so that
69 the receiving phone can assemble them in the correct order. IDs must
70 be in the range 0..255. Not all receiving phones will support
71 concatenated SMSs (and display them as separate SMSs),
72 since all the numbering and ID information is
73 carried in the user data header element at the beginning of the SMS
74 user data. This information may show up as garbage in such phones.
75 .TP
76 \fB\-C\fP \fIservice centre address\fP, \fB\-\-sca\fP \fIservice centre address\fP
77 Sets the service centre address to use for all SUBMIT SMSs (may not
78 work with some phones).
79 .TP
80 \fB\-d\fP \fIdevice\fP, \fB\-\-device\fP \fIdevice\fP
81 The device to which the GSM modem is connected. The default is
82 \fI/dev/mobilephone\fP.
83 .TP
84 \fB\-h\fP, \fB\-\-help\fP
85 Prints an option summary.
86 .TP
87 \fB-I\fP \fIinit string\fP, \fB\-\-init\fP \fIinit string\fP
88 Initialization string to send to the TA (default: "E0"). Note that the
89 sequence "ATZ" is sent first.
90 .TP
91 \fB\-r\fP, \fB\-\-requeststat\fP
92 Request status reports for sent SMS.
93 .TP
94 \fB\-t\fP, \fB\-\-test\fP
95 If this option is given the text is converted
96 to the GSM default alphabet and back to Latin\-1. This option can be
97 used to find out how ASCII or Latin\-1 texts are converted to the GSM
98 default alphabet. Characters that can not be converted to the GSM default
99 alphabet are reported as ASCII code 172 (Latin\-1 boolean "not")
100 after this double conversion. No SMS messages are sent, a connection
101 to a mobile phone is not established.
102 .TP
103 \fB\-v\fP, \fB\-\-version\fP
104 Prints the program version.
105 .TP
106 \fB\-X\fP, \fB\-\-xonxoff\fP
107 Uses software handshaking (XON/XOFF) for accessing the device.
108 .PP
109 .SH EXAMPLES
110 The following two invocations of \fIgsmsendsms\fP each send the same
111 SMS message to the number "1234":
112 .PP
113 .nf
114 gsmsendsms \-d /dev/ttyS2 \-b 19200 1234 "This is a test."
115 echo "This is a test." | gsmsendsms \-d /dev/ttyS2 \-b 19200 1234
116 .fi
117 .PP
118 .SH FILES
119 .TP 1.4i
120 .B /dev/mobilephone
121 Default mobile phone device.
122 .PP
123 .SH AUTHOR
124 Peter Hofmann <[email protected]>
125 .PP
126 .SH BUGS
127 Report bugs to [email protected]. Include a complete, self-contained
128 example that will allow the bug to be reproduced, and say which
129 version of \fIgsmsendsms\fP you are using.
130 .PP
131 .SH COPYRIGHT
132 Copyright \(co 1999 Peter Hofmann
133 .LP
134 \fIgsmsendsms\fP is free software; you can redistribute it and/or modify it under
135 the terms of the GNU Library General Public License as published by the Free
136 Software Foundation; either version 2, or (at your option) any later
137 version.
138 .LP
139 \fIgsmsendsms\fP is distributed in the hope that it will be useful, but
140 WITHOUT ANY WARRANTY; without even the implied warranty of
141 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
142 Library General Public License for more details.
143 .LP
144 You should have received a copy of the GNU Library General Public License along
145 with \fIgsmsendsms\fP; see the file COPYING. If not, write to the Free Software
146 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
147 .PP
148 .SH "SEE ALSO"
149 .BR gsminfo(7),
150 .BR gsmpb(1),
151 .BR gsmctl(1),
152 .BR gsmsmsd(8),
153 .BR gsmsmsstore(1).
154