1 .TH MDSMS 1 "30 Oct 1999" ~ VERSION ~ "MDSMS Manual"
6 mdsms \- Mobile Device SMS tool
9 .BR "mdsms --send" [ -mobildock ]
19 .BR "mdsms --logo-send"
26 .RB [ "-c <cfgfile>" ]
30 .RB [ "-l <lockfile>" ]
39 Program sends one SmartMessaging SMS through one of the supported mobile
40 device connected through the serial port. Currently supported:
43 .B Nokia Communicator 9000/9000i
44 All modes except \fB--logo-send\fP and Nokia multiparts supported.
46 .B Nokia Communicator 9110
47 All modes except Nokia multiparts supported. This is the only device
48 with \fB--logo-send\fP capability for now.
51 Firmware revision 2.0 required. All modes except \fB--logo-send\fP supported.
56 .BR -c | --config\ < cfgfile >
57 Process recursively this file and read all options from it. See the section
61 .BR -d | --device\ < device >
62 Specify serial device to communicate with your mobile. If only bare name is
63 specified, "\fB/dev/\fP" is prepended automatically. This device name is used
68 .BR -L | --log\ < file >
69 Log all important messages to this file preceded by timestamp, machine hostname
70 etc., similar to output of
72 If set to empty string (which is default - ~\fB DEF_LOGNAME \fP~), nothing
75 .BR -b | --baud\ < rate >
76 Sets custom baudrate for accessing Nokia modem. Supported speeds are currently:
82 \fB57600\fP. Default is \fB DEF_BAUD \fP.
84 .BR -l | --lockfile\ < lockfile >
85 Prior to accessing serial device specified above the lockfile should be
86 acquired for correct concurrent processes behaviour. Although this name
87 can be given as direct filename more common method is to use pattern
88 with embedded "\fB%s\fP" where this mark is replaced by actual basename
89 (last component of pathname with all preceding directory names stripped)
90 of serial device used.
91 Default name for lockfile is ~\fB DEF_LOCKFILE \fP~.
93 .BR -s | --smsc\ < smsc\ # >
94 Specify custom SMS center number. If not specified (or overriden as empty
95 string by \fB-s ""\fP)
97 asks by "\fBAT+CSCA?\fP"
98 for the current default SMS center. Situation with undeterminable SMS center
99 is unrecoverable and casues immediate fail. It is a common practice to use
100 plus sign ("\fB+\fP") to indicate international number type.
101 Known SMS centers as of May 1999:
104 .BR "CZ Paegas " ( "230 01" "): " +420603052000
106 .BR "CZ EuroTel " ( "230 02" "): " +420602909909
109 .BR -m | --maxretry\ < # >
110 Maximum retries of any \fBAT\fP-style command during the session. All the
111 retries are summed during one run of
113 and no more retries of the command are permitted. After exceeding this
114 value the program is terminated. Exception is \fB--receive\fP which is never
115 quit after the initial initialisation has been successfuly negotiated.
117 .BR -r | --readtime\ < sec >
118 Maximum response read timeout before command retry.
120 sends the requested \fBAT\fP-style command to
123 and expects response. Unfortunately when the voice call is in progress,
125 \80will block any serial device communication and it is impossible to differentiate
128 and stucked/disconnected one. After exceeding this time interval,
130 is terminated immediately,
132 parameter notwithstanding. Standard value is
135 and expects response. After exceeding this time interval,
137 reissues the last command until the maximum retry count (\fBmaxretry\fP) is exhausted.
142 \80seconds and should be enough for any voice call.
144 seconds and should be enough for standard
149 .BR -t | --chartime\ < msec >
150 Although the fixed used baudrate of
152 is pretty low, MobilDock/Siemens A1 couple
154 able to accept steady
155 stream of data at this speed. Even the used XON/XOFF handshaking is just not
156 enough. The only possible workaround is to slowdown the communication by
157 waiting a bit after character sent to give relax time to these devices.
158 When full rate communication was used, occasional longer SMS data corruption
159 was observed. Argument is given in milliseconds and its default value is
161 \fB(This paragraph\fP
163 \fBapply to Nokia 9110 but the functionality has been
164 retained just to be on the safe side.)\fP
166 .BR -T | --cmdtime\ < msec >
167 This delay is given before sending any
170 Its primary purpose is to let any previous entered commands to finish and
171 to clear any input before actually sending our own command. Also all Siemens
172 devices are known that they strongly dislike fast edge-to-edge communication
173 and to satisfy these requirements this delay was considered as the best
177 \fBapply to Nokia 9110 but the functionality has been
178 retained just to be on the safe side.)\fP
184 When parameter <\fBmsg text\fP> has been specified, by using this option
185 \fBmdsms\fP will read the file with the <\fBmsg text\fP> filename instead
186 and send its \fBcontents\fP as the SMS message.
191 Increase verbosity level by one. Currently the maximum defined level is
197 Give short parameters description to
199 (standard error output stream).
202 Print the version number and exit.
204 .RB < "dest. phone" >
205 This mandatory parameter specifies the telephone number of the recipient
206 of SmartMessaging message. International prefix character plus
208 is supported the national mode without plus
210 prefix is supported and the meaning is specific to the GSM operator currently
211 being roamed in (NOT the native
213 operator of the SIM card!).
214 This number can be made default in system configuration files, see below
218 .RB < "logo filename" >
219 Here you specifify the filename of the logo file to be uploaded. Currently
220 recognized file formats are \fBNOL\fP (Nokia logo?) and \fBNGG\fP (Nokia
221 Group Graphics). These formats are proprietary by \fBKESSLER Wireless Design\fP
222 and \fBsms9110\fP currently "can't" edit them. More info can be found on:
224 .B http:/ /www.kessler-design.com/wireless/operatorlogo.php3
228 \80.RB < "msg text" >
229 Here you write the exact body of the message. This parameter should be
230 specified only as one component, although if more found they are concatenated
231 with separating space (" "). But this practice is discouraged as
232 your shell will probably remove any multiple spaces found and also other
233 metacharacters may be incorrectly interpreted. To prevent any escaping
234 mess, you may prefer to omit this parameter and the the message text is
237 (standard input stream).
240 Specify GSM network code to be set on the logo being uploaded. Upon upload to
241 Nokia phone each operator logo has a GSM network code binded with it. When
242 you are registered (even roamed) into such network the logo is displayed on
243 the phone. Current Nokia mobile phones can handle only one logo loaded
244 simultaneously, it will be rewritten by any other upload. You can also
245 specify string ~\fB WORD_GROUP \fP~ to send the logo as group graphics
246 (even from \fBNOL\fP format) or string ~\fB WORD_NET \fP~ to force detection
247 of network code from \fBNOL\fP. The default if this parameter is not specified
248 is ~\fB WORD_NET \fP~ for \fBNOL\fP files and ~\fB WORD_GROUP \fP~ for
254 reads ~\fB CONFIG_MAIN \fP~ followed by ~\fB$HOME CONFIG_HOME \fP~
255 configuration files. The content of these files (and also any file read by
260 syntax with dashes. Newlines are taken as whitespace, both double ("\fB~\fP")
261 and single ("\fB'\fP")
262 quoting is supported. Embedded quote characters can be escaped by backslash
264 Arguments are processes in order as specified in configuration files and
265 finally the command-line of the program itself, overriding any previous
266 values. Although the order of
268 options on one line is preserved the first file is read AFTER all of the
269 current options are processed. Recursive use of
271 is permitted and the files are read in LIFO (Last-In First-Out, AKA stack)
272 order. You should use "\fB-v -v\fP"
273 to see details of option processing with more complex configuration setups.
278 locks the port (see option
280 for details) and opens the serial device with specified baudrate (default
281 \fB DEF_BAUD \fP baud), software handshaking (XON/XOFF style), 8 bits,
282 no parity. Then issues the following commands:
287 \80is used to fool MobilDock and pass the following
289 (ascii decimal code 26) character to Siemens A1 and break it from eventual
291 is used to fool Nokia and pass the following
293 (ascii decimal code 27) character to Nokia and break it from eventual
296 mode in which it may errorneously remain from previous sessions.
299 Test the responsiveness of Nokia.
301 \fBAT+CSCA="\fPsmc # from user\fB"\fP
302 This command is omitted if
304 is not specified by user (or specified/overriden as empty string \fB""\fP
308 Query the currently set SMC center number to include it later to the
309 header of SMS PDU format where it is required. If \fBAT+CSCA="\fP...\fB"\fP
310 was issued before, this number should match it but no sanity checks are
314 Set the default SMS message format to PDU type. Currently Siemens A1
316 support any other SMS format anyway.
318 Query the currently set SMC center number to detect possibly unset SMS center.
320 \fBAT+CSMP=81,,0,245\fP
321 Sets PDU type to 81 (\fBSMS-SUBMIT\fP + integer-type for \fBvalidity\fP
322 + \fBUDHI\fP - user data header indicator), PID (protocol identifier) to
323 0 (standard non-converted SMS) and DCS (data coding scheme) to 0xF5
324 (\fBdata coding\fP/\fBmessage class\fP, \fB8-bit data\fP + \fBmobile-equipment\fP
329 \80\fBAT+CMGS=\fP# chars
331 \fBAT+CMGS="\fPphone # from user\fB"\fP
333 This command physically sends the message and the resulting "\fB+CMGS:\fP" output
334 is catched and returned as
336 (message reference) number to the user.
338 \fBAT+CSMP=17,,0,0\fP
339 Resets back PDU type to 17 (\fBSMS-SUBMIT\fP + integer-type for \fBvalidity\fP),
340 PID (protocol identifier) to 0 (standard non-converted SMS) and DCS (data coding
341 scheme) to 0 (\fBalphabet indication\fP, \fBdefault 7-bit alphabet\fP).
344 Check that Nokia survived the sending of the message.
349 ETSI documentation for SMS messages in GSM networks
351 .B GNokii, tools and drivers for Nokia mobile phones
352 Nokia logo data format was read from its sources:
353 .B http:/ www.gnokii.org/
355 .B "Developers'" Guide: SMS with the A1
356 Tech note on PDU SMS format etc:
357 .B http:/ /www.siemens.se/telefoner/ovrigtgsm/fragorsvar/a1_sms.pdf
359 .B Technical Description of the Siemens A1
360 Siemens A1 command description
361 .B http:/ /www.siemens.se/telefoner/ovrigtgsm/fragorsvar/a1_manual.pdf
366 Main configuration file
368 \fB$HOME CONFIG_HOME \fP
369 User personalized local configuration file
373 was written by Jan Kratochvil who should be responsible for all the bugs
374 included. Please see the file "\fBAUTHORS\fP"
375 shipped with the original distribution archive for more details.