Added option not to use configured logging in SMSD inject and monitor (bug #1539).
[gammu.git] / docs / man / gammu.1
blob20090ebb89cf738eaf741a34830cb05a13617f51
1 .TH "GAMMU" "1" "November 09, 2011" "1.30.91" "Gammu"
2 .SH NAME
3 gammu \- Does some neat things with your cellular phone or modem.
5 .nr rst2man-indent-level 0
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31 .\" Man page generated from reStructeredText.
33 .SH SYNOPSIS
34 .sp
35 .nf
36 .ft C
37 gammu [parameters] <command> [options]
38 .ft P
39 .fi
40 .sp
41 Commands actually indicate which operation should Gammu perform. They can be
42 specified with or without leading \fB\-\-\fP.
43 .SH DESCRIPTION
44 .sp
45 This program is a tool for mobile phones. Many vendors and phones
46 are supported, for actual listing see \fI\%Gammu Phones Database\fP.
47 .SS Options
48 .sp
49 Parameters before command configure gammu behaviour:
50 .INDENT 0.0
51 .TP
52 .B \-c, \-\-config <filename>
53 name of configuration file
54 .UNINDENT
55 .INDENT 0.0
56 .TP
57 .B \-s, \-\-section <confign>
58 section of config file to use, eg. 42
59 .UNINDENT
60 .INDENT 0.0
61 .TP
62 .B \-d, \-\-debug <level>
63 debug level (see \fBLogFormat\fP in \fIgammurc\fP for possible values)
64 .UNINDENT
65 .INDENT 0.0
66 .TP
67 .B \-f, \-\-debug\-file <filename>
68 file for logging debug messages
69 .UNINDENT
70 .SS Call commands
71 .INDENT 0.0
72 .TP
73 .B answercall [id]
74 Answer incoming call.
75 .UNINDENT
76 .INDENT 0.0
77 .TP
78 .B cancelcall [id]
79 Cancel incoming call
80 .UNINDENT
81 .INDENT 0.0
82 .TP
83 .B canceldiverts
84 Cancel all existing call diverts.
85 .UNINDENT
86 .INDENT 0.0
87 .TP
88 .B conferencecall id
89 Initiates a conference call.
90 .UNINDENT
91 .INDENT 0.0
92 .TP
93 .B dialvoice number [show|hide]
94 Make voice call from SIM card line set in phone.
95 .sp
96 \fBshow|hide\fP \- optional parameter whether to disable call number indication.
97 .UNINDENT
98 .INDENT 0.0
99 .TP
100 .B divert get|set all|busy|noans|outofreach all|voice|fax|data [number timeout]
101 Manage or display call diverts.
102 .INDENT 7.0
104 .B \fBget\fP or \fBset\fP
105 whether to get divert information or to set it.
107 .B \fBall\fP or \fBbusy\fP or \fBnoans\fP or \fBoutofreach\fP
108 condition when apply divert
110 .B \fBall\fP or \fBvoice\fP or \fBfax\fP or \fBdata\fP
111 call type when apply divert
113 .B number
114 number where to divert
116 .B timeout
117 timeout when the diversion will happen
118 .UNINDENT
119 .UNINDENT
120 .INDENT 0.0
122 .B getussd code
123 Retrieves USSD information \- dials a service number and reads response.
124 .UNINDENT
125 .INDENT 0.0
127 .B holdcall id
128 Holds call.
129 .UNINDENT
130 .INDENT 0.0
132 .B maketerminatedcall number length [show|hide]
133 Make voice call from SIM card line set in phone which will
134 be terminated after \fBlength\fP seconds.
135 .UNINDENT
136 .INDENT 0.0
138 .B senddtmf sequence
139 Plays DTMF sequence. In some phones available only during calls
140 .UNINDENT
141 .INDENT 0.0
143 .B splitcall id
144 Splits call.
145 .UNINDENT
146 .INDENT 0.0
148 .B switchcall [id]
149 Switches call.
150 .UNINDENT
151 .INDENT 0.0
153 .B transfercall [id]
154 Transfers call.
155 .UNINDENT
156 .INDENT 0.0
158 .B unholdcall id
159 Unholds call.
160 .UNINDENT
161 .SS SMS and EMS commands
163 Sending messages might look a bit complicated on first attempt to use.
164 But be patient, the command line has been written in order to allow
165 almost every usage. See EXAMPLE section for some hints on usage.
167 There is also an option to use \fIgammu\-smsd\fP when you want to send or
168 receive more messages and process them automatically.
169 .SS Introduction to SMS formats
171 Gammu has support for many SMS formats like:
172 .INDENT 0.0
174 .B Nokia Smart Messaging
175 used for monochromatic picture images, downloadable profiles, monochromatic operator logos, monochromatic caller logos and monophonic ringtones
177 .B Linked SMS
178 both with 8 and 16\-bit identification numbers in headers
180 .B EMS
181 this is SMS format used for saving monochromatic images, monophonic ringtones, animations, text formatting and others
183 .B MMS notifications
184 contains links where phone should download MMS
186 .B Alcatel logo messages
187 proprietary format for logos
188 .UNINDENT
190 You need to ensure that the target phone supports message type you want to
191 send. Otherwise the phone will not be able to display it or will even crash,
192 because firmware of phone did not expect this possibility.
193 .SS Encoding chars in SMS text
195 Text in SMS can be coded using two ways:
196 .SS GSM Default Alphabet
198 With \fIGSM Default Alphabet\fP you can fit at most 160 chars into single SMS
199 (Gammu doesn\(aqt support compressing such texts according to GSM standards, but
200 it isn\(aqt big limit, because there are no phones supporting them), but they\(aqre
201 from limited set:
202 .INDENT 0.0
203 .IP \(bu 2
204 all Latin small and large
205 .IP \(bu 2
206 all digits
207 .IP \(bu 2
208 some Greek
209 .IP \(bu 2
210 some other national
211 .IP \(bu 2
212 some symbols like  @\ ! " # & / ( )\ % * + = \- , .\ :\ ; < >\ ?
213 .IP \(bu 2
214 few others
215 .UNINDENT
216 .SS Unicode
218 With \fIUnicode\fP single SMS can contain at most 70 chars, but these can be
219 any chars including all national and special ones.
220 .IP Warning
221 Please note, that some older phones might have problems displaying such
222 message.
224 .SS Conversion
226 Gammu tries to do the best to handle non ASCII characters in your message.
227 Everything is internally handled in Unicode (the input is converted depending
228 on your locales configuration) and in case message uses Unicode the text will
229 be given as such to the message.
231 Should the message be sent in GSM Default Alphabet, Gammu will try to convert
232 all characters to keep message readable. Gammu does support multi byte
233 encoding for some characters in GSM Default Alphabet (it is needed for \fB^\fP \fB{\fP \fB}\fP
234 \fB\e\fP \fB[\fP \fB]\fP \fB~\fP \fB|\fP). The characters which are not present in GSM Default Alphabet
235 are transliterated to closest ASCII equivalent (accents are removed).
236 Remaining not known characters are replaced by question mark.
237 .SS SMS commands
238 .INDENT 0.0
240 .B addsmsfolder name
241 .UNINDENT
242 .INDENT 0.0
244 .B deleteallsms folder
245 Delete all SMS from specified SMS folder.
246 .UNINDENT
247 .INDENT 0.0
249 .B deletesms folder start [stop]
250 Delete SMS from phone. See description for \fI\%gammu getsms\fP for info about
251 sms folders naming convention.
253 Locations are numerated from 1.
254 .UNINDENT
255 .INDENT 0.0
257 .B displaysms ... (options like in sendsms)
258 Displays PDU data of encoded SMS messages. It accepts same parameters and
259 behaves same like sendsms.
260 .UNINDENT
261 .INDENT 0.0
263 .B getallsms \-pbk
264 Get all SMS from phone. In some phones you will have also SMS templates
265 and info about locations used to save Picture Images. With each sms you
266 will see location. If you want to get such sms from phone alone, use
267 \fI\%gammu getsms\fP.
268 .UNINDENT
269 .INDENT 0.0
271 .B geteachsms \-pbk
272 Similiary to \fI\%gammu getallsms\fP. Difference is, that
273 links all concatenated sms
274 .UNINDENT
275 .INDENT 0.0
277 .B getsms folder start [stop]
278 Get SMS.
280 Locations are numerated from 1.
282 Folder 0 means that sms is being read from "flat" memory (all sms from all
283 folders have unique numbers). It\(aqs sometimes emulated by Gammu. You
284 can use it with all phones.
286 Other folders like 1, 2, etc. match folders in phone such as Inbox, Outbox, etc.
287 and each sms has unique number in his folder. Name of folders can
288 depend on your phone (the most often 1="Inbox", 2="Outbox", etc.).
289 This method is not supported by all phones (for example, not supported
290 by Nokia 3310, 5110, 6110). If work with your phone, use
291 \fI\%gammu getsmsfolders\fP to get folders list.
292 .UNINDENT
293 .INDENT 0.0
295 .B getsmsc [start [stop]]
296 Get SMSC settings from SIM card.
298 Locations are numerated from 1.
299 .UNINDENT
300 .INDENT 0.0
302 .B getsmsfolders
303 Get names for SMS folders in phone
304 .UNINDENT
305 .INDENT 0.0
307 .B savesms TYPE [type parameters] [type options] [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]
308 Saves SMS to phone, see bellow for \fBTYPE\fP options.
309 .INDENT 7.0
310 .INDENT 3.5
311 .INDENT 0.0
313 .B \-smscset number
314 SMSC number will be taken from phone stored SMSC configuration \fBnumber\fP.
316 Default: 1
317 .UNINDENT
318 .INDENT 0.0
320 .B \-smscnumber number
321 SMSC number
322 .UNINDENT
323 .INDENT 0.0
325 .B \-reply
326 reply SMSC is set
327 .UNINDENT
328 .INDENT 0.0
330 .B \-folder number
331 save to specified folder.
333 Folders are numerated from 1.
335 The most often folder 1 = "Inbox", 2 = "Outbox",etc. Use \fI\%gammu getsmsfolders\fP to get folder list.
336 .UNINDENT
337 .INDENT 0.0
339 .B \-unread
340 makes message unread. In some phones (like 6210) you won\(aqt see
341 unread sms envelope after saving such sms. In some phones with internal
342 SMS memory (like 6210) after using it with folder 1 SIM SMS memory will be used
343 .UNINDENT
344 .INDENT 0.0
346 .B \-read
347 makes message read. In some phones with internal
348 SMS memory (like 6210) after using it with folder 1 SIM SMS memory will be used
349 .UNINDENT
350 .INDENT 0.0
352 .B \-unsent
353 makes message unsent
354 .UNINDENT
355 .INDENT 0.0
357 .B \-sent
358 makes message sent
359 .UNINDENT
360 .INDENT 0.0
362 .B \-smsname name
363 set message name
364 .UNINDENT
365 .INDENT 0.0
367 .B \-sender number
368 set sender number (default: \fBGammu\fP)
369 .UNINDENT
370 .INDENT 0.0
372 .B \-maxsms num
373 Limit maximal number of messages which will be
374 created. If there are more messages, Gammu will terminate with failure.
375 .UNINDENT
377 Types of messages:
378 .INDENT 0.0
380 .B ANIMATION frames file1 file2...
381 Save an animation as a SMS. You need to give
382 number of frames and picture for each frame. Each picture can be in any
383 picture format which Gammu supports (B/W bmp, gif, wbmp, nol, nlm...).
384 .UNINDENT
385 .INDENT 0.0
387 .B BOOKMARK file location
388 Read WAP bookmark from file created by \fI\%gammu backup\fP command and saves in
389 Nokia format as SMS
390 .UNINDENT
391 .INDENT 0.0
393 .B CALENDAR file location
394 Read calendar note from file created by \fI\%gammu backup\fP command and saves in
395 VCALENDAR 1.0 format as SMS. The location identifies position of calendar item
396 to be read in backup file (usually 1, but can be useful in case the backup contains
397 more items).
398 .UNINDENT
399 .INDENT 0.0
401 .B CALLER file
402 Save caller logo as sms in Nokia (Smart Messaging)
403 format \- size 72x14, two colors.
404 .IP Warning
405 Please note, that it isn\(aqt designed for colour logos available for
406 example in DCT4/TIKU \- you need to put bitmap file there inside
407 phone using filesystem commands.
409 .UNINDENT
410 .INDENT 0.0
412 .B EMS [\-unicode] [\-16bit] [\-format lcrasbiut] [\-text text] [\-unicodefiletext file] [\-defsound ID] [\-defanimation ID] [\-tone10 file] [\-tone10long file] [\-tone12 file] [\-tone12long file] [\-toneSE file] [\-toneSElong file] [\-fixedbitmap file] [\-variablebitmap file] [\-variablebitmaplong file] [\-animation frames file1 ...] [\-protected number]
413 Saves EMS sequence. All format specific parameters (like \fI\%-defsound\fP) can be used few times.
414 .INDENT 7.0
416 .B \-text
417 adds text
418 .UNINDENT
419 .INDENT 7.0
421 .B \-unicodefiletext
422 adds text from Unicode file
423 .UNINDENT
424 .INDENT 7.0
426 .B \-defanimation
427 adds default animation with ID specified by user. ID for different phones are different.
428 .UNINDENT
429 .INDENT 7.0
431 .B \-animation
432 adds "frames" frames read from file1, file2, etc.
433 .UNINDENT
434 .INDENT 7.0
436 .B \-defsound
437 adds default sound with ID specified by user. ID for different phones are different.
438 .UNINDENT
439 .INDENT 7.0
441 .B \-tone10
442 adds IMelody version 1.0 read from RTTL or other compatible file
443 .UNINDENT
444 .INDENT 7.0
446 .B \-tone10long
447 IMelody version 1.0 saved in one of few SMS with UPI. Phones
448 compatible with UPI (like Sony\-Ericsson phones) will read such
449 ringtone as one
450 .UNINDENT
451 .INDENT 7.0
453 .B \-tone12
454 adds IMelody version 1.2 read from RTTL or other compatible file
455 .UNINDENT
456 .INDENT 7.0
458 .B \-tone12long
459 IMelody version 1.2 saved in one of few SMS with UPI. Phones
460 compatible with UPI (like Sony\-Ericsson phones) will read such
461 ringtone as one
462 .UNINDENT
463 .INDENT 7.0
465 .B \-toneSE
466 adds IMelody in "short" form supported by Sony\-Ericsson phones
467 .UNINDENT
468 .INDENT 7.0
470 .B \-toneSElong
471 add Sony\-Ericsson IMelody saved in one or few SMS with UPI
472 .UNINDENT
473 .INDENT 7.0
475 .B \-variablebitmap
476 bitmap in any size saved in one SMS
477 .UNINDENT
478 .INDENT 7.0
480 .B \-variablebitmaplong
481 bitmap with maximal size 96x128 saved in one or few sms
482 .UNINDENT
483 .INDENT 7.0
485 .B \-fixedbitmap
486 bitmap 16x16 or 32x32
487 .UNINDENT
488 .INDENT 7.0
490 .B \-protected
491 all ringtones and bitmaps after this parameter (excluding default
492 ringtones and logos) will be "protected" (in phones compatible with
493 ODI like SonyEricsson products it won\(aqt be possible to forward them
494 from phone menu)
495 .UNINDENT
496 .INDENT 7.0
498 .B \-16bit
499 Gammu uses SMS headers with 16\-bit numbers for saving linking info
500 in SMS (it means less chars available for user in each SMS)
501 .UNINDENT
502 .INDENT 7.0
504 .B \-format lcrasbiut
505 last text will be formatted. You can use combinations of chars:
507 center;
508 |l|l|.
511 Character
512 T}      T{
513 Formating
517 \fBl\fP
518 T}      T{
519 left aligned
523 \fBc\fP
524 T}      T{
525 centered
529 \fBr\fP
530 T}      T{
531 right aligned
535 \fBa\fP
536 T}      T{
537 large font
541 \fBs\fP
542 T}      T{
543 small font
547 \fBb\fP
548 T}      T{
549 bold font
553 \fBi\fP
554 T}      T{
555 italic font
559 \fBu\fP
560 T}      T{
561 underlined font
565 \fBt\fP
566 T}      T{
567 strikethrough font
571 .UNINDENT
572 .UNINDENT
573 .INDENT 0.0
575 .B MMSINDICATOR URL Title Sender
576 Creates a MMS indication SMS. It contains URL where the actual MMS
577 payload is stored which needs to be SMIL encoded. The phone usually
578 downloads the MMS data using special APN, which does not count to
579 transmitted data, however there might be limitations which URLs can
580 be accessed.
581 .UNINDENT
582 .INDENT 0.0
584 .B MMSSETTINGS file location
585 Saves a message with MMS configuration. The
586 configuration will be read from Gammu backup file from given location.
587 .UNINDENT
588 .INDENT 0.0
590 .B OPERATOR file  [\-netcode netcode] [\-biglogo]
591 Save operator logo as sms in Nokia (Smart Messaging) format \- size
592 72x14 in two colors.
593 .INDENT 7.0
595 .B \-biglogo
596 Use 78x21 formatted logo instead of standard 72x14.
597 .UNINDENT
598 .IP Note
599 This isn\(aqt designed for colour logos available for example in newer
600 phones \- you need to put bitmap file there inside phone using
601 filesystem commands.
603 .UNINDENT
604 .INDENT 0.0
606 .B PICTURE file  [\-text text] [\-unicode] [\-alcatelbmmi]
607 Read bitmap from 2 colors file (bmp, nlm, nsl, ngg, nol, wbmp, etc.), format
608 into bitmap in Smart Messaging (72x28, 2 colors, called often Picture Image
609 and saved with text) or Alcatel format and send/save over SMS.
610 .UNINDENT
611 .INDENT 0.0
613 .B PROFILE  [\-name name] [\-bitmap bitmap] [\-ringtone ringtone]
614 Read ringtone (RTTL) format, bitmap (Picture Image size) and name, format into
615 Smart Messaging profile and send/save as SMS.
616 .IP Warning
617 Please note, that this format is abandoned by Nokia and supported
618 by some (older) devices only like Nokia 3310.
620 .UNINDENT
621 .INDENT 0.0
623 .B RINGTONE file  [\-long] [\-scale]
624 Read RTTL ringtone from file and save as SMS
625 into SIM/phone memory. Ringtone is saved in Nokia (Smart Messaging) format.
626 .INDENT 7.0
628 .B \-long
629 ringtone is saved using Profile style. It can be longer (and saved
630 in 2 SMS), but decoded only by newer phones (like 33xx)
631 .UNINDENT
632 .INDENT 7.0
634 .B \-scale
635 ringtone will have Scale info for each note. It will allow one to edit
636 it correctly later in phone composer (for example, in 33xx)
637 .UNINDENT
638 .UNINDENT
639 .INDENT 0.0
641 .B SMSTEMPLATE  [\-unicode] [\-text text] [\-unicodefiletext file] [\-defsound ID] [\-defanimation ID] [\-tone10 file] [\-tone10long file] [\-tone12 file] [\-tone12long file] [\-toneSE file] [\-toneSElong file] [\-variablebitmap file] [\-variablebitmaplong file] [\-animation frames file1 ...]
642 Saves a SMS template (for Alcatel phones).
643 .UNINDENT
644 .INDENT 0.0
646 .B TEXT  [\-inputunicode] [\-16bit] [\-flash] [\-len len] [\-autolen len] [\-unicode] [\-enablevoice] [\-disablevoice] [\-enablefax] [\-disablefax] [\-enableemail] [\-disableemail] [\-voidsms] [\-replacemessages ID] [\-replacefile file] [\-text msgtext] [\-textutf8 msgtext]
647 Take text from stdin (or commandline if \-text
648 specified) and save as text SMS into SIM/phone memory.
649 .INDENT 7.0
651 .B \-flash
652 Class 0 SMS (should be displayed after receiving on recipients\(aq phone display after receiving without entering Inbox)
653 .UNINDENT
654 .INDENT 7.0
656 .B \-len len
657 specify, how many chars will be read. When use this option and text
658 will be longer than 1 SMS, will be split into more linked SMS
659 .UNINDENT
660 .INDENT 7.0
662 .B \-autolen len
663 specify, how many chars will be read. When use this option and text
664 will be longer than 1 SMS, will be split into more linked
665 SMS.Coding type (SMS default alphabet/Unicode) is set according to
666 input text
667 .UNINDENT
668 .INDENT 7.0
670 .B \-enablevoice
671 sms will set voice mail indicator. Text will be cut to 1 sms.
672 .UNINDENT
673 .INDENT 7.0
675 .B \-disablevoice
676 sms will not set voice mail indicator. Text will be cut to 1 sms.
677 .UNINDENT
678 .INDENT 7.0
680 .B \-enablefax
681 sms will set fax indicator. Text will be cut to 1 sms.
682 .UNINDENT
683 .INDENT 7.0
685 .B \-disablefax
686 sms will not set fax indicator. Text will be cut to 1 sms.
687 .UNINDENT
688 .INDENT 7.0
690 .B \-enableemail
691 sms will set email indicator. Text will be cut to 1 sms.
692 .UNINDENT
693 .INDENT 7.0
695 .B \-disableemail
696 sms will not set email indicator. Text will be cut to 1 sms.
697 .UNINDENT
698 .INDENT 7.0
700 .B \-voidsms
701 many phones after receiving it won\(aqt display anything, only beep,
702 vibrate or turn on light. Text will be cut to 1 sms.
703 .UNINDENT
704 .INDENT 7.0
706 .B \-unicode
707 SMS will be saved in Unicode format
708 .IP Note
709 The \fB~\fP char in SMS text and \fI\%-unicode\fP option
710 (Unicode coding required) can cause text of SMS after \fB~\fP
711 char  blink in some phones (like Nokia 33xx).
713 .UNINDENT
714 .INDENT 7.0
716 .B \-inputunicode
717 input text is in Unicode.
718 .IP Note
719 You can create Unicode file using WordPad in Windows (during
720 saving select "Unicode Text Document" format). In Unix can use
721 for example YUdit or vim.
723 .UNINDENT
724 .INDENT 7.0
726 .B \-text
727 get text from command line instead of stdin.
728 .UNINDENT
729 .INDENT 7.0
731 .B \-textutf8
732 get text in UTF\-8 from command line instead of stdin.
733 .IP Note
734 Gammu detects your locales and uses by default encoding based
735 on this. Use this option only when you know the input will be
736 in UTF\-8 in all cases.
738 .UNINDENT
739 .INDENT 7.0
741 .B \-16bit
742 Gammu uses SMS headers with 16\-bit numbers for saving linking info
743 in SMS (it means less chars available for user in each SMS)
744 .UNINDENT
745 .INDENT 7.0
747 .B \-replacemessages ID
748 \fBID\fP can be 1..7. When you will use option and send more single
749 SMS to one recipient with the same ID, each another SMS will
750 replace each previous with the same ID
751 .UNINDENT
752 .INDENT 7.0
754 .B \-replacefile file
755 File with replacement table in unicode (UCS\-2), preferably with
756 byte order mark (BOM). It contains pairs of chars, first one is to
757 replace, second is replacement one. The replacement is done after
758 reading text for the message.
760 For example replacement \fB1\fP (0x0061) with \fBa\fP (0x0031) would
761 be done by file with following content (hex dump, first two bytes
762 is BOM):
765 .ft C
766 ff fe 61 00 31 00
767 .ft P
769 .UNINDENT
770 .UNINDENT
771 .INDENT 0.0
773 .B TODO file location
774 Saves a message with a todo entry. The content will
775 be read from any backup format which Gammu supports and from given location.
776 .UNINDENT
777 .INDENT 0.0
779 .B VCARD10|VCARD21 file SM|ME location [\-nokia]
780 Read phonebook entry from file created by \fI\%gammu backup\fP
781 command and saves in VCARD 1.0 (only name and default number) or VCARD
782 2.1 (all entry details with all numbers, text and name) format as SMS.
783 The location identifies position of contact item to be read in backup
784 file (usually 1, but can be useful in case the backup contains more
785 items).
786 .UNINDENT
787 .INDENT 0.0
789 .B WAPINDICATOR URL Title
790 Saves a SMS with a WAP indication for given
791 URL and title.
792 .UNINDENT
793 .INDENT 0.0
795 .B WAPSETTINGS file location DATA|GPRS
796 Read WAP settings from file created by \fI\%gammu backup\fP command
797 and saves in Nokia format as SMS
798 .UNINDENT
799 .UNINDENT
800 .UNINDENT
801 .UNINDENT
802 .INDENT 0.0
804 .B sendsms TYPE destination [type parameters] [type options] [\-smscset number] [\-smscnumber number] [\-reply] [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]]
805 Sends a message to a \fBdestination\fP number, most parameters are same as for \fI\%gammu savesms\fP.
806 .INDENT 7.0
808 .B \-save
809 will also save message which is being sent
810 .UNINDENT
811 .INDENT 7.0
813 .B \-report
814 request delivery report for message
815 .UNINDENT
816 .INDENT 7.0
818 .B \-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX
819 sets how long will be the
820 message valid (SMSC will the discard the message after this time if it could
821 not deliver it).
822 .UNINDENT
823 .UNINDENT
824 .INDENT 0.0
826 .B setsmsc location number
827 Set SMSC settings on SIM card. This keeps all SMSC configuration
828 intact, it just changes the SMSC number.
830 Locations are numerated from 1.
831 .UNINDENT
832 .SS Memory (phonebooks and calls) commands
833 .SS Memory types
835 Gammu recognizes following memory types:
836 .INDENT 0.0
838 .B \fBDC\fP
839 Dialled calls
841 .B \fBMC\fP
842 Missed calls
844 .B \fBRC\fP
845 Received calls
847 .B \fBON\fP
848 Own numbers
850 .B \fBVM\fP
851 voice mailbox
853 .B \fBSM\fP
854 SIM phonebook
856 .B \fBME\fP
857 phone internal phonebook
859 .B \fBFD\fP
860 fixed dialling
862 .B \fBSL\fP
863 sent SMS log
864 .UNINDENT
865 .SS Memory commands
866 .INDENT 0.0
868 .B deleteallmemory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL
869 Deletes all entries from specified memory type.
871 For memory types description see \fI\%Memory types\fP.
872 .UNINDENT
873 .INDENT 0.0
875 .B deletememory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL start [stop]
876 Deletes entries in specified range from specified memory type.
878 For memory types description see \fI\%Memory types\fP.
879 .UNINDENT
880 .INDENT 0.0
882 .B getallmemory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL
883 Get all memory locations from phone.
885 For memory types description see \fI\%Memory types\fP.
886 .UNINDENT
887 .INDENT 0.0
889 .B getmemory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL start [stop [\-nonempty]]
890 Get memory location from phone.
892 For memory types description see \fI\%Memory types\fP.
894 Locations are numerated from 1.
895 .UNINDENT
896 .INDENT 0.0
898 .B getspeeddial start [stop]
899 Gets speed dial choices.
900 .UNINDENT
901 .INDENT 0.0
903 .B searchmemory text
904 Scans all memory entries for given text. It performs
905 case insensitive substring lookup. You can interrupt searching by pressing
906 \fBCtrl+C\fP.
907 .UNINDENT
908 .SS Filesystem commands
910 Gammu allows one to access phones using native protocol (Nokias) or OBEX. Your
911 phone can also support usb storage, which is handled on the operating system
912 level and Gammu does not use that.
913 .INDENT 0.0
915 .B addfile folderID name [\-type JAR|BMP|PNG|GIF|JPG|MIDI|WBMP|AMR|3GP|NRT] [\-readonly] [\-protected] [\-system] [\-hidden] [\-newtime]
916 Add file with specified name to folder with specified folder ID.
917 .INDENT 7.0
919 .B \-type
920 File type was required for filesystem 1 in Nokia phones (current filesystem 2 doesn\(aqt need this).
921 .UNINDENT
922 .INDENT 7.0
924 .B \-readonly
925 Sets the read only attribute.
926 .UNINDENT
927 .INDENT 7.0
929 .B \-protected
930 Sets the protected attribute (file can\(aqt be for example forwarded
931 from phone menu).
932 .UNINDENT
933 .INDENT 7.0
935 .B \-system
936 Sets the system attribute.
937 .UNINDENT
938 .INDENT 7.0
940 .B \-hidden
941 Sets the hidden attribute (file is hidden from phone menu).
942 .UNINDENT
943 .INDENT 7.0
945 .B \-newtime
946 After using it date/time of file modification will be set to moment of uploading.
947 .UNINDENT
948 .UNINDENT
949 .INDENT 0.0
951 .B addfolder parentfolderID name
952 Create a folder in phone with specified name in a
953 folder with specified folder ID.
954 .UNINDENT
955 .INDENT 0.0
957 .B deletefiles fileID
958 Delete files with given IDs.
959 .UNINDENT
960 .INDENT 0.0
962 .B deletefolder name
963 Delete folder with given ID.
964 .UNINDENT
965 .INDENT 0.0
967 .B getfilefolder fileID, fileID, ...
968 Retrieve files or all files from folder with given IDs from a phone filesytem.
969 .UNINDENT
970 .INDENT 0.0
972 .B getfiles fileID, fileID, ...
973 Retrieve files with given IDs from a phone filesytem.
974 .UNINDENT
975 .INDENT 0.0
977 .B getfilesystem [\-flatall|\-flat]
978 Display info about all folders and files in phone memory/memory card. By default there is tree displayed, you can change it:
979 .INDENT 7.0
981 .B \-flatall
982 there are displayed full file/folder details like ID (first parameter in line)
983 .UNINDENT
984 .INDENT 7.0
986 .B \-flat
987 .UNINDENT
988 .IP Note
989 In some phones (like N6230) content of some folders (with more files) can be cut (only part of files will be displayed) for example on infrared connection. This is not Gammu issue, but phone firmware problem.
991 .UNINDENT
992 .INDENT 0.0
994 .B getfilesystemstatus
995 Display info filesystem status \- number of
996 bytes available, used or used by some specific content.
997 .UNINDENT
998 .INDENT 0.0
1000 .B getfolderlisting folderID
1001 Display files and folders available in folder with given folder ID. You can get ID\(aqs using getfilesystem \-flatall.
1002 .IP Warning
1003 Please note, that in some phones (like N6230) content of some folders
1004 (with more files) can be cut (only part of files will be displayed) for
1005 example on infrared connection. This is not Gammu issue, but phone
1006 firmware problem.
1008 .UNINDENT
1009 .INDENT 0.0
1011 .B getrootfolders
1012 Display info about drives available in phone/memory card.
1013 .UNINDENT
1014 .INDENT 0.0
1016 .B sendfile name
1017 Sends file to a phone. It\(aqs up to phone to decide where
1018 to store this file and how to handle it (for example when you send vCard or
1019 vCalendar, most of phones will offer you to import it.
1020 .UNINDENT
1021 .INDENT 0.0
1023 .B setfileattrib folderID [\-system] [\-readonly] [\-hidden] [\-protected]
1024 .UNINDENT
1025 .SS Logo and pictures commands
1027 These options are mainly (there are few exceptions) for monochromatic logos and
1028 images available in older phones. Recognized file formats: xpm (only saving),
1029 2\-colors bmp, nlm, nsl, ngg, nol, wbmp, gif (for Samsung).
1031 In new models all bitmaps are saved in filesystem and should go into filesystem section
1032 .INDENT 0.0
1034 .B copybitmap inputfile [outputfile [OPERATOR|PICTURE|STARTUP|CALLER]]
1035 Allow one to convert logos files to another. When give ONLY inputfile, output will
1036 be written to stdout using ASCII art. When give output file and format, in
1037 some file formats (like NLM) will be set indicator informing about logo type
1038 to given.
1039 .UNINDENT
1040 .INDENT 0.0
1042 .B getbitmap TYPE [type options]
1043 Reads bitmap from phone, following types are supported:
1044 .INDENT 7.0
1046 .B CALLER location [file]
1047 Get caller group logo from phone. Locations 1\-5.
1048 .UNINDENT
1049 .INDENT 7.0
1051 .B DEALER
1052 In some models it\(aqs possible to save dealer welcome note \- text displayed
1053 during enabling phone, which can\(aqt be edited from phone menu.  Here you can
1054 get it.
1055 .UNINDENT
1056 .INDENT 7.0
1058 .B OPERATOR [file]
1059 Get operator logo (picture displayed instead of operator name) from phone.
1060 .UNINDENT
1061 .INDENT 7.0
1063 .B PICTURE location [file]
1064 Get Picture Image from phone.
1065 .UNINDENT
1066 .INDENT 7.0
1068 .B STARTUP [file]
1069 Get static startup logo from phone. Allow one to save it in file.
1070 .UNINDENT
1071 .INDENT 7.0
1073 .B TEXT
1074 Get startup text from phone.
1075 .UNINDENT
1076 .UNINDENT
1077 .INDENT 0.0
1079 .B setbitmap TYPE [type options]
1080 Sets bitmap in phone, following types are supported:
1081 .INDENT 7.0
1083 .B CALLER location [file]
1084 Set caller logo.
1085 .UNINDENT
1086 .INDENT 7.0
1088 .B COLOUROPERATOR [fileID [netcode]]
1089 Sets color operator logo in phone.
1090 .UNINDENT
1091 .INDENT 7.0
1093 .B COLOURSTARTUP [fileID]
1094 .UNINDENT
1095 .INDENT 7.0
1097 .B DEALER text
1098 Sets welcome message configured by dealer, which usually can not be changed in phone menus.
1099 .UNINDENT
1100 .INDENT 7.0
1102 .B OPERATOR [file [netcode]]
1103 Set operator logo in phone. When won\(aqt give file and netcode, operator logo
1104 will be removed from phone. When will give only filename, operator logo will
1105 be displayed for your current GSM operator. When you give additionally network
1106 code, it will be displayed for this operator.
1107 .UNINDENT
1108 .INDENT 7.0
1110 .B PICTURE file location [text]
1111 Sets picture image in phone.
1112 .UNINDENT
1113 .INDENT 7.0
1115 .B STARTUP file|1|2|3
1116 Set startup logo in phone. It can be static (then you will have to give file
1117 name) or one of predefined animated (only some phones like Nokia 3310 or 3330
1118 supports it, use location 1, 2 or 3 for these).
1119 .UNINDENT
1120 .INDENT 7.0
1122 .B TEXT text
1123 Sets startup text in phone.
1124 .UNINDENT
1125 .INDENT 7.0
1127 .B WALLPAPER fileID
1128 Sets wallpaper in phone.
1129 .UNINDENT
1130 .UNINDENT
1131 .SS Ringtones commands
1133 Ringtones are mostly supported only for older phones. For recent phones you
1134 usually just upload them to some folder in phone filesystem.
1136 There are recognized various file formats by options described below: rttl,
1137 binary format created for Gammu, mid (saving), re (reading), ott, communicator,
1138 ringtones format found in fkn.pl, wav (saving), ime/imy (saving), rng, mmf (for
1139 Samsung).
1140 .INDENT 0.0
1142 .B copyringtone source destination [RTTL|BINARY]
1143 Copy source ringtone to destination.
1144 .UNINDENT
1145 .INDENT 0.0
1147 .B getphoneringtone location [file]
1148 Get one of "default" ringtones and saves into file
1149 .UNINDENT
1150 .INDENT 0.0
1152 .B getringtone location [file]
1153 Get ringtone from phone in RTTL or BINARY format.
1155 Locations are numerated from 1.
1156 .UNINDENT
1157 .INDENT 0.0
1159 .B getringtoneslist
1160 .UNINDENT
1161 .INDENT 0.0
1163 .B playringtone file
1164 Play aproximation of ringtone over phone buzzer. File can be in RTTL or BINARY (Nokia DCT3) format.
1165 .UNINDENT
1166 .INDENT 0.0
1168 .B playsavedringtone number
1169 Play one of built\-in ringtones. This option is available for DCT4 phones.
1170 For getting ringtones list use \fI\%gammu getringtoneslist\fP.
1171 .UNINDENT
1172 .INDENT 0.0
1174 .B setringtone file [\-location location] [\-scale] [\-name name]
1175 Set ringtone in phone. When don\(aqt give location, it will be written
1176 "with preview" (in phones supporting this feature like 61xx or 6210).
1177 .INDENT 7.0
1179 .B \-scale
1180 Scale information will be added to each note of RTTL ringtone. It will
1181 avoid scale problems available during editing ringtone in composer
1182 from phone menu (for example, in Nokia 33xx).
1183 .UNINDENT
1184 .IP Note
1185 When use \fB~\fP char in ringtone name, in some phones (like 33xx) name
1186 will blink later in phone menus.
1188 .UNINDENT
1189 .SS Calendar notes commands
1191 In Nokia 3310, 3315 and 3330 these are named "Reminders" and have some limitations (depending on phone firmware version).
1192 .INDENT 0.0
1194 .B deletecalendar start [stop]
1195 Deletes selected calendar entries in phone.
1196 .UNINDENT
1197 .INDENT 0.0
1199 .B getallcalendar
1200 Retrieves all calendar entries from phone.
1201 .UNINDENT
1202 .INDENT 0.0
1204 .B getcalendar start [stop]
1205 Retrieves selected calendar entries from phone.
1206 .UNINDENT
1207 .SS To do list commands
1208 .INDENT 0.0
1210 .B deletetodo start [stop]
1211 Deletes selected todo entries in phone.
1212 .UNINDENT
1213 .INDENT 0.0
1215 .B getalltodo
1216 Retrieves all todo entries from phone.
1217 .UNINDENT
1218 .INDENT 0.0
1220 .B gettodo start [stop]
1221 Retrieves selected todo entries from phone.
1222 .UNINDENT
1223 .SS Notes commands
1224 .INDENT 0.0
1226 .B getallnotes
1227 Reads all notes from the phone.
1228 .IP Note
1229 Not all phones supports this function, especially most Sony Ericsson
1230 phones even if they have notes inside phone.
1232 .UNINDENT
1233 .SS Date, time and alarm commands
1234 .INDENT 0.0
1236 .B getalarm [start]
1237 Get alarm from phone, if no location is specified,
1238 1 is used.
1239 .UNINDENT
1240 .INDENT 0.0
1242 .B getdatetime
1243 Get date and time from phone
1244 .UNINDENT
1245 .INDENT 0.0
1247 .B setalarm hour minute
1248 Sets repeating alarm in phone on selected time.
1249 .UNINDENT
1250 .INDENT 0.0
1252 .B setdatetime [HH:MM[:SS]] [YYYY/MM/DD]
1253 Set date and time in phone to date and time set in computer. Please
1254 note, that this option doesn\(aqt show clock on phone screen. It only set
1255 date and time.
1256 .IP Note
1257 You can make such synchronization each time, when will connect your
1258 phone and use Gammu. See \fBSynchronizeTime\fP in \fIgammurc\fP for details.
1260 .UNINDENT
1261 .SS Categories commands
1262 .IP Note
1263 Categories are supported only on few phones (Alcatel).
1265 .INDENT 0.0
1267 .B addcategory TODO|PHONEBOOK text
1268 .UNINDENT
1269 .INDENT 0.0
1271 .B getallcategory TODO|PHONEBOOK
1272 .UNINDENT
1273 .INDENT 0.0
1275 .B getcategory TODO|PHONEBOOK start [stop]
1276 .UNINDENT
1277 .INDENT 0.0
1279 .B listmemorycategory text|number
1280 .UNINDENT
1281 .INDENT 0.0
1283 .B listtodocategory text|number
1284 .UNINDENT
1285 .SS Backing up and restoring commands
1286 .INDENT 0.0
1288 .B addnew file [\-yes] [\-memory ME|SM|..]
1289 Adds data written in file created using \fI\%gammu backup\fP command. All things
1290 backed up \fI\%gammu backup\fP can be restored (when made backup to Gammu text
1291 file).
1293 Please note that this adds all content of backup file to phone and
1294 does not care about current data in the phone (no duplicates are
1295 detected).
1297 Use \-yes parameter to answer yes to all questions (you want to automatically
1298 restore all data).
1300 Use \-memory parameter to force usage of defined memory type for storing entries
1301 regardless what backu format says.
1302 .UNINDENT
1303 .INDENT 0.0
1305 .B addsms folder file [\-yes]
1306 Adds SMSes from file (format like \fI\%gammu backupsms\fP uses) to
1307 selected folder in phone.
1308 .UNINDENT
1309 .INDENT 0.0
1311 .B backup file [\-yes]
1312 Backup your phone to file. It\(aqs possible to backup (depends on phone and backup format):
1313 .INDENT 7.0
1314 .IP \(bu 2
1315 phonebook from SIM and phone memory
1316 .IP \(bu 2
1317 calendar notes
1318 .IP \(bu 2
1319 SMSC settings
1320 .IP \(bu 2
1321 operator logo
1322 .IP \(bu 2
1323 startup (static) logo or startup text
1324 .IP \(bu 2
1325 WAP bookmarks
1326 .IP \(bu 2
1327 WAP settings
1328 .IP \(bu 2
1329 caller logos and groups
1330 .IP \(bu 2
1331 user ringtones
1332 .UNINDENT
1334 There are various backup formats supported and the backup format is guessed
1335 based on file extension:
1336 .INDENT 7.0
1337 .IP \(bu 2
1338 \fB.lmb\fP \- Nokia backup, supports contacts, caller logos and startup logo.
1339 .IP \(bu 2
1340 \fB.vcs\fP \- vCalendar, supports calendar and todo.
1341 .IP \(bu 2
1342 \fB.vcf\fP \- vCard, supports contacts.
1343 .IP \(bu 2
1344 \fB.ldif\fP \- LDAP import, supports contacts.
1345 .IP \(bu 2
1346 \fB.ics\fP \- iCalendar, supports calendar and todo.
1347 .IP \(bu 2
1348 Any other extension is Gammu backup file and it supports all data mentioned above, see \fIgammu\-backup\fP for more details.
1349 .UNINDENT
1350 .UNINDENT
1351 .INDENT 0.0
1353 .B backupsms file [\-yes|\-all]
1354 Stores all SMSes from phone to file into \fIgammu\-smsbackup\fP.
1356 Use \-yes for answering yes to all questions (backup all messages and
1357 delete them from phone), or \-all to just backup all folders while keeping
1358 messages in phone.
1359 .UNINDENT
1360 .INDENT 0.0
1362 .B restore file [\-yes]
1363 .IP Warning
1364 Please note that restoring deletes all current content in phone. If you
1365 want only to add entries to phone, use \fI\%gammu addnew\fP.
1368 Restore settings written in file created using \fI\%gammu backup\fP command.
1370 In some phones restoring calendar notes will not show error, but won\(aqt
1371 be done, when phone doesn\(aqt have set clock inside.
1372 .UNINDENT
1373 .INDENT 0.0
1375 .B restoresms file [\-yes]
1376 .IP Warning
1377 Please note that this overwrites existing messages in phone (if it supports it).
1380 Restores SMSes from file (format like \fI\%gammu backupsms\fP uses) to
1381 selected folder in phone.
1382 .UNINDENT
1383 .INDENT 0.0
1385 .B savefile TYPE [type options]
1386 Converts between various file formats supported by Gammu, following types
1387 are supported:
1388 .INDENT 7.0
1390 .B BOOKMARK target.url file location
1391 Converts backup format supported by
1392 Gammu to vBookmark file.
1393 .UNINDENT
1394 .INDENT 7.0
1396 .B CALENDAR target.vcs file location
1397 Allows one to convert between various backup formats which gammu
1398 supports for calendar events. The file type is guessed (for input file
1399 guess is based on extension and file content, for output solely on
1400 extension).
1401 .UNINDENT
1402 .INDENT 7.0
1404 .B TODO target.vcs file location
1405 Allows one to convert between various backup formats which gammu
1406 supports for todo events. The file type is guessed (for input file
1407 guess is based on extension and file content, for output solely on
1408 extension).
1409 .UNINDENT
1410 .INDENT 7.0
1412 .B VCARD10|VCARD21 target.vcf file SM|ME location
1413 Allows one to convert between various backup formats which gammu
1414 supports for phonebook events. The file type is guessed (for input file
1415 guess is based on extension and file content, for output solely on
1416 extension).
1417 .UNINDENT
1418 .IP "See also"
1420 \fI\%gammu convertbackup\fP
1422 .UNINDENT
1423 .INDENT 0.0
1425 .B convertbackup source.file output.file
1426 New in version 1.28.94.
1428 Converts backup between formats supported by Gammu. Unlike
1429 \fI\%gammu savefile\fP, this does not give you any options what to
1430 convert, it simply takes converts all what can be saved into output file.
1431 .IP "See also"
1433 \fI\%gammu savefile\fP
1435 .UNINDENT
1436 .SS Nokia specific commands
1437 .INDENT 0.0
1439 .B nokiaaddfile TYPE [type options]
1440 Uploads file to phone to specific location for the type:
1441 .INDENT 7.0
1443 .B APPLICATION|GAME file [\-readonly] [\-overwrite] [\-overwriteall]
1444 Install the \fB*.jar/*.jad\fP file pair of a midlet in the application or
1445 game menu of the phone. You need to specify filename without the jar/jad
1446 suffix, both will be added automatically.
1447 .INDENT 7.0
1449 .B \-overwrite
1450 Delete the application\(aqs .jad and .jar files before installing, but
1451 doesn\(aqt delete the application data.
1452 .UNINDENT
1453 .INDENT 7.0
1455 .B \-overwriteall
1456 Delete the application (same as \fI\%-overwrite\fP) and all it\(aqs
1457 data.
1458 .UNINDENT
1460 You can use \fIjadmaker\fP to generate a .jad file from a .jar file.
1461 .UNINDENT
1462 .INDENT 7.0
1464 .B GALLERY|GALLERY2|CAMERA|TONES|TONES2|RECORDS|VIDEO|PLAYLIST|MEMORYCARD file [\-name name] [\-protected] [\-readonly] [\-system] [\-hidden] [\-newtime]
1465 .UNINDENT
1466 .UNINDENT
1467 .INDENT 0.0
1469 .B nokiaaddplaylists
1470 Goes through phone memory and generated playlist for all music files found.
1472 To manually manage playlists:
1475 .ft C
1476 gammu addfile a:\e\epredefplaylist filename.m3u
1477 .ft P
1480 Will add playlist filename.m3u
1483 .ft C
1484 gammu getfilesystem
1485 .ft P
1488 Will get list of all files (including names of files with playlists)
1491 .ft C
1492 gammu deletefiles a:\e\epredefplaylist\e\efilename.m3u
1493 .ft P
1496 Will delete playlist filename.m3u
1498 Format of m3u playlist is easy (standard mp3 playlist):
1500 First line is \fB#EXTM3U\fP, next lines contain  names of files (\fBb:\efile1.mp3\fP,
1501 \fBb:\efolder1\efile2.mp3\fP, etc.). File needs t have \fB\er\en\fP terminated lines. So
1502 just run \fBunix2dos\fP on the resulting file before uploading it your your phone.
1503 .UNINDENT
1504 .INDENT 0.0
1506 .B nokiacomposer file
1507 Show, how to enter RTTL ringtone in composer existing in many Nokia phones
1508 (and how should it look like).
1509 .UNINDENT
1510 .INDENT 0.0
1512 .B nokiadebug filename [[v11\-22] [,v33\-44]...]
1513 .UNINDENT
1514 .INDENT 0.0
1516 .B nokiadisplayoutput
1517 .UNINDENT
1518 .INDENT 0.0
1520 .B nokiadisplaytest number
1521 .UNINDENT
1522 .INDENT 0.0
1524 .B nokiagetadc
1525 .UNINDENT
1526 .INDENT 0.0
1528 .B nokiagetoperatorname
1529 6110.c phones have place for name for one GSM network (of course, with flashing it\(aqs
1530 possible to change all names, but Gammu is not flasher ;\-)). You can get this
1531 name using this option.
1532 .UNINDENT
1533 .INDENT 0.0
1535 .B nokiagetpbkfeatures memorytype
1536 .UNINDENT
1537 .INDENT 0.0
1539 .B nokiagett9
1540 This option should display T9 dictionary content from
1541 DCT4 phones.
1542 .UNINDENT
1543 .INDENT 0.0
1545 .B nokiagetvoicerecord location
1546 Get voice record from location and save to WAV file. File is
1547 coded using GSM 6.10 codec (available for example in win32). Name
1548 of file is like name of voice record in phone.
1550 Created WAV files require GSM 6.10 codec to be played. In Win XP it\(aqs included
1551 by Microsoft. If you deleted it by accident in this operating system, make such
1552 steps:
1553 .INDENT 7.0
1554 .IP 1. 4
1555 Control Panel
1556 .IP 2. 4
1557 Add hardware
1558 .IP 3. 4
1559 click Next
1560 .IP 4. 4
1561 select "Yes. I have already connected the hardware
1562 .IP 5. 4
1563 select "Add a new hardware device
1564 .IP 6. 4
1565 select "Install the hardware that I manually select from a list
1566 .IP 7. 4
1567 select "Sound, video and game controllers
1568 .IP 8. 4
1569 select "Audio codecs
1570 .IP 9. 4
1571 select "windows\esystem32" directory and file "mmdriver.inf
1572 .IP 10. 4
1573 if You will be asked for file msgsm32.acm, it should unpacked from Windows CD
1574 .IP 11. 4
1575 now You can be asked if want to install unsigned driver (YES), about select codec configuration (select what you want) and rebotting PC (make it)
1576 .UNINDENT
1577 .UNINDENT
1578 .INDENT 0.0
1580 .B nokiamakecamerashoot
1581 .UNINDENT
1582 .INDENT 0.0
1584 .B nokianetmonitor test
1585 Takes output or set netmonitor for Nokia DCT3 phones.
1586 .IP "See also"
1588 For more info about this option, please visit
1589 \fI\%Marcin's page\fP and read netmonitor manual
1590 there.
1592 .IP Note
1593 test \fB243\fP enables all tests (after using command
1594 \fBgammu nokianetmonitor 243\fP in some phones like 6210 or 9210 have to reboot
1595 them to see netmonitor menu)
1597 .UNINDENT
1598 .INDENT 0.0
1600 .B nokianetmonitor36
1601 Reset counters from netmonitor test 36 in Nokia DCT3 phones.
1602 .IP "See also"
1604 For more info about this option, please visit
1605 \fI\%Marcin's page\fP and read netmonitor manual
1606 there.
1608 .UNINDENT
1609 .INDENT 0.0
1611 .B nokiasecuritycode
1612 Get/reset to "12345" security code
1613 .UNINDENT
1614 .INDENT 0.0
1616 .B nokiaselftests
1617 Perform tests for Nokia DCT3 phones.
1618 .IP Note
1619 EEPROM test can show an error when your phone has an EEPROM in flash
1620 (like 82xx/7110/62xx/33xx). The clock test will show an error when the
1621 phone doesn?t have an internal battery for the clock (like 3xxx).
1623 .UNINDENT
1624 .INDENT 0.0
1626 .B nokiasetlights keypad|display|torch on|off
1627 .UNINDENT
1628 .INDENT 0.0
1630 .B nokiasetoperatorname [networkcode name]
1631 .UNINDENT
1632 .INDENT 0.0
1634 .B nokiasetphonemenus
1635 Enable all (?) possible menus for DCT3 Nokia phones:
1636 .INDENT 7.0
1637 .IP 1. 3
1638 ALS (Alternative Line Service) option menu
1639 .IP 2. 3
1640 vibra menu for 3210
1641 .IP 3. 3
1642 3315 features in 3310 5.45 and higher
1643 .IP 4. 3
1644 two additional games (React and Logic) for 3210 5.31 and higher
1645 .IP 5. 3
1646 WellMate menu for 6150
1647 .IP 6. 3
1648 NetMonitor
1649 .UNINDENT
1651 and for DCT4:
1652 .INDENT 7.0
1653 .IP 1. 3
1654 ALS (Alternative Line Service) option menu
1655 .IP 2. 3
1656 Bluetooth, WAP bookmarks and settings menu, ... (6310i)
1657 .IP 3. 3
1658 GPRS Always Online
1659 .IP 4. 3
1660 and others...
1661 .UNINDENT
1662 .UNINDENT
1663 .INDENT 0.0
1665 .B nokiasetvibralevel level
1666 Set vibra power to "level" (given in percent)
1667 .UNINDENT
1668 .INDENT 0.0
1670 .B nokiatuneradio
1671 .UNINDENT
1672 .INDENT 0.0
1674 .B nokiavibratest
1675 .UNINDENT
1676 .SS Siemens specific commands
1677 .INDENT 0.0
1679 .B siemensnetmonact netmon_type
1680 Enables network monitor in Siemens phone. Currently known values for type
1681 are 1 for full and 2 for simple mode.
1682 .UNINDENT
1683 .INDENT 0.0
1685 .B siemensnetmonitor test
1686 .UNINDENT
1687 .INDENT 0.0
1689 .B siemenssatnetmon
1690 .UNINDENT
1691 .SS Network commands
1692 .INDENT 0.0
1694 .B getgprspoint start [stop]
1695 .UNINDENT
1696 .INDENT 0.0
1698 .B listnetworks [country]
1699 Show names/codes of GSM networks known for Gammu
1700 .UNINDENT
1701 .INDENT 0.0
1703 .B networkinfo
1704 Show information about network status from the phone.
1705 .UNINDENT
1706 .INDENT 0.0
1708 .B setautonetworklogin
1709 .UNINDENT
1710 .SS WAP settings and bookmarks commands
1711 .INDENT 0.0
1713 .B deletewapbookmark start [stop]
1714 Delete WAP bookmarks from phone.
1716 Locations are numerated from 1.
1717 .UNINDENT
1718 .INDENT 0.0
1720 .B getchatsettings start [stop]
1721 .UNINDENT
1722 .INDENT 0.0
1724 .B getsyncmlsettings start [stop]
1725 .UNINDENT
1726 .INDENT 0.0
1728 .B getwapbookmark start [stop]
1729 Get WAP bookmarks from phone.
1731 Locations are numerated from 1.
1732 .UNINDENT
1733 .INDENT 0.0
1735 .B getwapsettings start [stop]
1736 Get WAP settings from phone.
1738 Locations are numerated from 1.
1739 .UNINDENT
1740 .SS MMS and MMS settings commands
1741 .INDENT 0.0
1743 .B getallmms [\-save]
1744 .UNINDENT
1745 .INDENT 0.0
1747 .B geteachmms [\-save]
1748 .UNINDENT
1749 .INDENT 0.0
1751 .B getmmsfolders
1752 .UNINDENT
1753 .INDENT 0.0
1755 .B getmmssettings start [stop]
1756 .UNINDENT
1757 .INDENT 0.0
1759 .B readmmsfile file [\-save]
1760 .UNINDENT
1761 .SS FM radio commands
1762 .INDENT 0.0
1764 .B getfmstation start [stop]
1765 Show info about FM stations in phone
1766 .UNINDENT
1767 .SS Phone information commands
1768 .INDENT 0.0
1770 .B battery
1771 Displays information about battery and power source.
1772 .UNINDENT
1773 .INDENT 0.0
1775 .B getdisplaystatus
1776 .UNINDENT
1777 .INDENT 0.0
1779 .B getlocation
1780 Gets network information from phone (same as networkinfo)
1781 and prints location (latitude and longitude) based on information from
1782 \fI\%OpenCellID\fP.
1783 .UNINDENT
1784 .INDENT 0.0
1786 .B getsecuritystatus
1787 Show, if phone wait for security code (like PIN, PUK, etc.) or not
1788 .UNINDENT
1789 .INDENT 0.0
1791 .B identify
1792 Show the most important phone data.
1793 .UNINDENT
1794 .INDENT 0.0
1796 .B monitor [times]
1797 Retrieves phone status and writes it continuously to standard output. Press
1798 \fBCtrl+C\fP to interrupt this command.
1800 If no parameter is given, the program runs until interrupted, otherwise
1801 only given number of iterations is performed.
1803 This command outputs almost all information Gammu supports:
1804 .INDENT 7.0
1805 .IP \(bu 2
1806 Number of contacts, calendar and todo entries, messages, calls, etc.
1807 .IP \(bu 2
1808 Signal strength.
1809 .IP \(bu 2
1810 Battery state.
1811 .IP \(bu 2
1812 Currently used network.
1813 .IP \(bu 2
1814 Notifications of incoming messages and calls.
1815 .UNINDENT
1816 .UNINDENT
1817 .SS Phone settings commands
1818 .INDENT 0.0
1820 .B getcalendarsettings
1821 Displays calendar settings like first day of
1822 week or automatic deleting of old entries.
1823 .UNINDENT
1824 .INDENT 0.0
1826 .B getprofile start [stop]
1827 .UNINDENT
1828 .INDENT 0.0
1830 .B resetphonesettings PHONE|DEV|UIF|ALL|FACTORY
1831 .IP Warning
1832 This will delete user data, be careful.
1835 Reset phone settings.
1836 .INDENT 7.0
1838 .B \fBPHONE\fP
1839 Clear phone settings.
1841 .B \fBDEV\fP
1842 Clear device settings.
1844 .B \fBALL\fP
1845 Clear user settings.
1846 .INDENT 7.0
1847 .IP \(bu 2
1848 removes or set logos to default
1849 .IP \(bu 2
1850 set default phonebook and other menu settings
1851 .IP \(bu 2
1852 clear T9 words,
1853 .IP \(bu 2
1854 clear call register info
1855 .IP \(bu 2
1856 set default profiles settings
1857 .IP \(bu 2
1858 clear user ringtones
1859 .UNINDENT
1861 .B \fBUIF\fP
1862 Clear user settings and disables hidden menus.
1863 .INDENT 7.0
1864 .IP \(bu 2
1865 changes like after \fBALL\fP
1866 .IP \(bu 2
1867 disables netmon and PPS (all "hidden" menus)
1868 .UNINDENT
1870 .B \fBFACTORY\fP
1871 Reset to factory defaults.
1872 .INDENT 7.0
1873 .IP \(bu 2
1874 changes like after \fBUIF\fP
1875 .IP \(bu 2
1876 clear date/time
1877 .UNINDENT
1878 .UNINDENT
1879 .UNINDENT
1880 .SS Dumps decoding commands
1881 .IP Note
1882 These commands are available only if Gammu was compiled with debugging options.
1884 .INDENT 0.0
1886 .B decodebinarydump file [phonemodel]
1887 Decodes a dump made by Gammu with
1888 \fBLogFormat\fP set to \fBbinary\fP.
1889 .UNINDENT
1890 .INDENT 0.0
1892 .B decodesniff MBUS2|IRDA file [phonemodel]
1893 Allows one to decode sniffs. See \fIDiscovering protocol\fP for more details.
1894 .UNINDENT
1895 .SS Other commands
1896 .INDENT 0.0
1898 .B entersecuritycode PIN|PUK|PIN2|PUK2|PHONE|NETWORK code|\- [newpin|\-]
1899 Allow one to enter security code from PC. When code is \fB\-\fP, it is read from stdin.
1901 In case entering PUK, some phones require you to set new PIN as well.
1902 .UNINDENT
1903 .INDENT 0.0
1905 .B presskeysequence mMnNpPuUdD+\-123456789*0#gGrR<>[]hHcCjJfFoOmMdD@
1906 Press specified key sequence on phone keyboard
1907 .INDENT 7.0
1909 .B \fBmM\fP
1910 Menu
1912 .B \fBnN\fP
1913 Names key
1915 .B \fBpP\fP
1916 Power
1918 .B \fBuU\fP
1921 .B \fBdD\fP
1922 Down
1924 .B \fB+\-\fP
1927 .B \fBgG\fP
1928 Green
1930 .B \fBrR\fP
1933 .B \fB123456789*0#\fP
1934 numeric keyboard
1935 .UNINDENT
1936 .UNINDENT
1937 .INDENT 0.0
1939 .B reset SOFT|HARD
1940 Make phone reset:
1941 .INDENT 7.0
1943 .B \fBSOFT\fP
1944 without asking for PIN
1946 .B \fBHARD\fP
1947 with asking for PIN
1948 .UNINDENT
1949 .IP Note
1950 Some phones will ask for PIN even with \fBSOFT\fP option.
1952 .IP Warning
1953 Some phones will reset user data on \fBHARD\fP reset.
1955 .UNINDENT
1956 .INDENT 0.0
1958 .B screenshot filename
1959 Captures phone screenshot and saves it as filename. The extension is
1960 automatically appended to filename based on what data phone provides.
1961 .UNINDENT
1962 .SS Batch mode commands
1963 .INDENT 0.0
1965 .B batch [file]
1966 Starts Gammu in a batch mode. In this mode you can issue
1967 several commands each on one line. Lines starting with # are treated as a
1968 comments.
1970 By default, commands are read from standard input, but you can optionally
1971 specify a file from where they would be read (special case \fB\-\fP means standard
1972 input).
1973 .UNINDENT
1974 .SS Configuration commands
1975 .INDENT 0.0
1977 .B searchphone [\-debug]
1978 Attempts to search for a connected phone.
1979 .IP Warning
1980 Please note that this can take a very long time, but in case you have
1981 no clue how to configure phone connection, this is a convenient way to
1982 find working setup for Gammu.
1984 .UNINDENT
1985 .INDENT 0.0
1987 .B install
1988 Installs applet for currently configured connection to the phone.
1990 You can configure search path for instllation files by
1991 \fBDataPath\fP.
1992 .UNINDENT
1993 .SS Gammu information commands
1994 .INDENT 0.0
1996 .B checkversion [STABLE]
1997 Checks whether there is newer Gammu version
1998 available online (if Gammu has been compiled with CURL). If you pass
1999 additional parameter \fBSTABLE\fP, only stable versions will be checked.
2000 .UNINDENT
2001 .INDENT 0.0
2003 .B features
2004 Print information about compiled in features.
2005 .UNINDENT
2006 .INDENT 0.0
2008 .B help [topic]
2009 Print help. By default general help is printed, but you can
2010 also specify a help category to get more detailed help on some topic.
2011 .UNINDENT
2012 .INDENT 0.0
2014 .B version
2015 Print version information and license.
2016 .UNINDENT
2017 .SH RETURN VALUES
2019 gammu returns 0 on success. In case of failure non zero code is
2020 returned.
2021 .INDENT 0.0
2023 .B 1
2024 Out of memory or other critical error.
2026 .B 2
2027 Invalid command line parameters.
2029 .B 3
2030 Failed to open file specified on command line.
2032 .B 4
2033 Program was interrupted.
2035 .B 98
2036 Gammu library version mismatch.
2038 .B 99
2039 Functionality has been moved. For example to \fIgammu\-smsd\fP.
2040 .UNINDENT
2042 Errors codes greater than 100 map to the GSM_Error
2043 values increased by 100:
2044 .INDENT 0.0
2046 .B 101
2047 No error.
2049 .B 102
2050 Error opening device. Unknown, busy or no permissions.
2052 .B 103
2053 Error opening device, it is locked.
2055 .B 104
2056 Error opening device, it doesn\(aqt exist.
2058 .B 105
2059 Error opening device, it is already opened by other application.
2061 .B 106
2062 Error opening device, you don\(aqt have permissions.
2064 .B 107
2065 Error opening device. No required driver in operating system.
2067 .B 108
2068 Error opening device. Some hardware not connected/wrongly configured.
2070 .B 109
2071 Error setting device DTR or RTS.
2073 .B 110
2074 Error setting device speed. Maybe speed not supported.
2076 .B 111
2077 Error writing to the device.
2079 .B 112
2080 Error during reading from the device.
2082 .B 113
2083 Can\(aqt set parity on the device.
2085 .B 114
2086 No response in specified timeout. Probably phone not connected.
2088 .B 115
2089 Frame not requested right now. See <\fI\%http://wammu.eu/support/bugs/\fP> for information how to report it.
2091 .B 116
2092 Unknown response from phone. See <\fI\%http://wammu.eu/support/bugs/\fP> for information how to report it.
2094 .B 117
2095 Unknown frame. See <\fI\%http://wammu.eu/support/bugs/\fP> for information how to report it.
2097 .B 118
2098 Unknown connection type string. Check config file.
2100 .B 119
2101 Unknown model type string. Check config file.
2103 .B 120
2104 Some functions not available for your system (disabled in config or not implemented).
2106 .B 121
2107 Function not supported by phone.
2109 .B 122
2110 Entry is empty.
2112 .B 123
2113 Security error. Maybe no PIN?
2115 .B 124
2116 Invalid location. Maybe too high?
2118 .B 125
2119 Functionality not implemented. You are welcome to help authors with it.
2121 .B 126
2122 Memory full.
2124 .B 127
2125 Unknown error.
2127 .B 128
2128 Can not open specified file.
2130 .B 129
2131 More memory required...
2133 .B 130
2134 Operation not allowed by phone.
2136 .B 131
2137 No SMSC number given. Provide it manually or use the one configured in phone.
2139 .B 132
2140 You\(aqre inside phone menu (maybe editing?). Leave it and try again.
2142 .B 133
2143 Phone is not connected.
2145 .B 134
2146 Function is currently being implemented. If you want to help, please contact authors.
2148 .B 135
2149 Phone is disabled and connected to charger.
2151 .B 136
2152 File format not supported by Gammu.
2154 .B 137
2155 Nobody is perfect, some bug appeared in protocol implementation. Please contact authors.
2157 .B 138
2158 Transfer was canceled by phone, maybe you pressed cancel on phone.
2160 .B 139
2161 Phone module need to send another answer frame.
2163 .B 140
2164 Current connection type doesn\(aqt support called function.
2166 .B 141
2167 CRC error.
2169 .B 142
2170 Invalid date or time specified.
2172 .B 143
2173 Phone memory error, maybe it is read only.
2175 .B 144
2176 Invalid data given to phone.
2178 .B 145
2179 File with specified name already exists.
2181 .B 146
2182 File with specified name doesn\(aqt exist.
2184 .B 147
2185 You have to give folder name and not file name.
2187 .B 148
2188 You have to give file name and not folder name.
2190 .B 149
2191 Can not access SIM card.
2193 .B 150
2194 Wrong GNAPPLET version in phone. Use version from currently used Gammu.
2196 .B 151
2197 Only part of folder has been listed.
2199 .B 152
2200 Folder must be empty.
2202 .B 153
2203 Data were converted.
2205 .B 154
2206 Gammu is not configured.
2208 .B 155
2209 Wrong folder used.
2211 .B 156
2212 Internal phone error.
2214 .B 157
2215 Error writing file to disk.
2217 .B 158
2218 No such section exists.
2220 .B 159
2221 Using default values.
2223 .B 160
2224 Corrupted data returned by phone.
2226 .B 161
2227 Bad feature string in configuration.
2229 .B 162
2230 Desired functionality has been disabled on compile time.
2232 .B 163
2233 Bluetooth configuration requires channel option.
2235 .B 164
2236 Service is not running.
2238 .B 165
2239 Service configuration is missing.
2241 .B 166
2242 Command rejected because device was busy. Wait and restart.
2244 .B 167
2245 Could not connect to the server.
2247 .B 168
2248 Could not resolve the host name.
2250 .B 169
2251 Failed to get SMSC number from phone.
2253 .B 170
2254 Operation aborted.
2256 .B 171
2257 Installation data not found, please consult debug log and/or documentation for more details.
2259 .B 172
2260 Entry is read only.
2261 .UNINDENT
2262 .SH EXAMPLES
2263 .SS Configuration
2265 To check it out, you need to have configuration file for gammu, see
2266 \fIgammurc\fP for more details about it.
2267 .SS Sending messages
2268 .IP Note
2269 All messages bellow are sent to number 123456, replace it with proper destination.
2272 Send text message up to standard 160 chars:
2275 .ft C
2276 echo "All your base are belong to us" | gammu sendsms TEXT 123456
2277 .ft P
2283 .ft C
2284 gammu sendsms TEXT 123456 \-text "All your base are belong to us"
2285 .ft P
2288 Send long text message:
2291 .ft C
2292 echo "All your base are belong to us" | gammu sendsms TEXT 123456 \-len 400
2293 .ft P
2299 .ft C
2300 gammu sendsms TEXT 123456 \-len 400 \-text "All your base are belong to us"
2301 .ft P
2307 .ft C
2308 gammu sendsms EMS 123456 \-text "All your base are belong to us"
2309 .ft P
2312 Send some funky message with predefined sound and animation from 2 bitmaps:
2315 .ft C
2316 gammu sendsms EMS 123456 \-text "Greetings" \-defsound 1 \-text "from Gammu \-tone10 axelf.txt \-animation 2 file1.bmp file2.bmp
2317 .ft P
2320 Send protected message with ringtone:
2323 .ft C
2324 gammu sendsms EMS 123456 \-protected 2 \-variablebitmaplong ala.bmp \-toneSElong axelf.txt \-toneSE ring.txt
2325 .ft P
2327 .SS Uploading files to Nokia
2329 Add Alien to applications in your phone (you need to have files Alien.JAD and Alien.JAR in current directory):
2332 .ft C
2333 gammu nokiaaddfile APPLICATION Alien
2334 .ft P
2337 Add file.mid to ringtones folder:
2340 .ft C
2341 gammu nokiaaddfile TONES file.mid
2342 .ft P
2344 .SS Setting operator logo
2346 Set logo for network \fB230 03\fP (Vodafone CZ):
2349 .ft C
2350 gammu setbitmap OPERATOR ala.bmp "230 03"
2351 .ft P
2353 .SS Converting file formats
2355 The formats conversion can done using \fI\%gammu savefile\fP or
2356 \fI\%gammu convertbackup\fP commands.
2358 Convert single entry (at position 260) from \fIgammu\-backup\fP to vCalendar:
2361 .ft C
2362 gammu savefile CALENDAR output.vcs myCalendar.backup 260
2363 .ft P
2366 Convert first phonebook entry from \fIgammu\-backup\fP to vCard:
2369 .ft C
2370 gammu savefile VCARD21 output.vcf phone.backup ME 1
2371 .ft P
2374 Convert all contacts from backup to vCard:
2377 .ft C
2378 gammu convertbackup phone.backup output.vcf
2379 .ft P
2381 .SS Reporting bugs
2383 There are definitely many bugs, reporting to author is welcome. Please include
2384 some useful information when sending bug reports (especially debug logs,
2385 operating system, it\(aqs version and phone information are needed).
2387 To generate debug log, enable it in \fIgammurc\fP:
2390 .ft C
2391 [gammu]
2392 YOUR CONNECTION SETTINGS
2393 logfile = /tmp/gammu.log
2394 logformat = textall
2395 .ft P
2398 Alternatively you can specify logging on command line:
2401 .ft C
2402 gammu \-d textall \-f /tmp/gammu.log ...
2403 .ft P
2406 With this settings, Gammu generates /tmp/gammu.log on each connection to
2407 phone and stores dump of communication there. You can also find some
2408 hints for improving support for your phone in this log.
2410 See <\fI\%http://wammu.eu/support/bugs/\fP> for more information on reporting bugs.
2412 Please report bugs to \fI\%Gammu bug tracker\fP.
2413 .SH AUTHOR
2414 Michal Čihař <michal@cihar.com>
2415 .SH COPYRIGHT
2416 2009-2011, Michal Čihař <michal@cihar.com>
2417 .\" Generated by docutils manpage writer.
2418 .\"