1 .TH "GAMMU" "1" "November 09, 2011" "1.30.91" "Gammu"
3 gammu \- Does some neat things with your cellular phone or modem.
5 .nr rst2man-indent-level 0
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17 .\" .rstReportMargin pre:
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
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.
37 gammu [parameters] <command> [options]
41 Commands actually indicate which operation should Gammu perform. They can be
42 specified with or without leading \fB\-\-\fP.
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.
49 Parameters before command configure gammu behaviour:
52 .B \-c, \-\-config <filename>
53 name of configuration file
57 .B \-s, \-\-section <confign>
58 section of config file to use, eg. 42
62 .B \-d, \-\-debug <level>
63 debug level (see \fBLogFormat\fP in \fIgammurc\fP for possible values)
67 .B \-f, \-\-debug\-file <filename>
68 file for logging debug messages
84 Cancel all existing call diverts.
89 Initiates a conference call.
93 .B dialvoice number [show|hide]
94 Make voice call from SIM card line set in phone.
96 \fBshow|hide\fP \- optional parameter whether to disable call number indication.
100 .B divert get|set all|busy|noans|outofreach all|voice|fax|data [number timeout]
101 Manage or display call diverts.
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
114 number where to divert
117 timeout when the diversion will happen
123 Retrieves USSD information \- dials a service number and reads response.
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.
139 Plays DTMF sequence. In some phones available only during calls
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:
174 .B Nokia Smart Messaging
175 used for monochromatic picture images, downloadable profiles, monochromatic operator logos, monochromatic caller logos and monophonic ringtones
178 both with 8 and 16\-bit identification numbers in headers
181 this is SMS format used for saving monochromatic images, monophonic ringtones, animations, text formatting and others
184 contains links where phone should download MMS
186 .B Alcatel logo messages
187 proprietary format for logos
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
204 all Latin small and large
212 some symbols like @\ ! " # & / ( )\ % * + = \- , .\ :\ ; < >\ ?
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.
221 Please note, that some older phones might have problems displaying such
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.
244 .B deleteallsms folder
245 Delete all SMS from specified SMS folder.
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.
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.
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.
272 Similiary to \fI\%gammu getallsms\fP. Difference is, that
273 links all concatenated sms
277 .B getsms folder start [stop]
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.
295 .B getsmsc [start [stop]]
296 Get SMSC settings from SIM card.
298 Locations are numerated from 1.
303 Get names for SMS folders in phone
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.
314 SMSC number will be taken from phone stored SMSC configuration \fBnumber\fP.
320 .B \-smscnumber 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.
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
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
368 set sender number (default: \fBGammu\fP)
373 Limit maximal number of messages which will be
374 created. If there are more messages, Gammu will terminate with failure.
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...).
387 .B BOOKMARK file location
388 Read WAP bookmark from file created by \fI\%gammu backup\fP command and saves in
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
402 Save caller logo as sms in Nokia (Smart Messaging)
403 format \- size 72x14, two colors.
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.
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.
422 adds text from Unicode file
427 adds default animation with ID specified by user. ID for different phones are different.
432 adds "frames" frames read from file1, file2, etc.
437 adds default sound with ID specified by user. ID for different phones are different.
442 adds IMelody version 1.0 read from RTTL or other compatible file
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
454 adds IMelody version 1.2 read from RTTL or other compatible file
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
466 adds IMelody in "short" form supported by Sony\-Ericsson phones
471 add Sony\-Ericsson IMelody saved in one or few SMS with UPI
476 bitmap in any size saved in one SMS
480 .B \-variablebitmaplong
481 bitmap with maximal size 96x128 saved in one or few sms
486 bitmap 16x16 or 32x32
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
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)
504 .B \-format lcrasbiut
505 last text will be formatted. You can use combinations of chars:
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
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.
590 .B OPERATOR file [\-netcode netcode] [\-biglogo]
591 Save operator logo as sms in Nokia (Smart Messaging) format \- size
596 Use 78x21 formatted logo instead of standard 72x14.
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
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.
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.
617 Please note, that this format is abandoned by Nokia and supported
618 by some (older) devices only like Nokia 3310.
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.
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)
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)
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).
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.
652 Class 0 SMS (should be displayed after receiving on recipients\(aq phone display after receiving without entering Inbox)
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
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
671 sms will set voice mail indicator. Text will be cut to 1 sms.
676 sms will not set voice mail indicator. Text will be cut to 1 sms.
681 sms will set fax indicator. Text will be cut to 1 sms.
686 sms will not set fax indicator. Text will be cut to 1 sms.
691 sms will set email indicator. Text will be cut to 1 sms.
696 sms will not set email indicator. Text will be cut to 1 sms.
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.
707 SMS will be saved in Unicode format
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).
717 input text is in Unicode.
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.
727 get text from command line instead of stdin.
732 get text in UTF\-8 from command line instead of stdin.
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.
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)
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
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
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.
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
789 .B WAPINDICATOR URL Title
790 Saves a SMS with a WAP indication for given
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
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.
809 will also save message which is being sent
814 request delivery report for message
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
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.
832 .SS Memory (phonebooks and calls) commands
835 Gammu recognizes following memory types:
857 phone internal phonebook
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.
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.
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.
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.
898 .B getspeeddial start [stop]
899 Gets speed dial choices.
904 Scans all memory entries for given text. It performs
905 case insensitive substring lookup. You can interrupt searching by pressing
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.
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.
920 File type was required for filesystem 1 in Nokia phones (current filesystem 2 doesn\(aqt need this).
925 Sets the read only attribute.
930 Sets the protected attribute (file can\(aqt be for example forwarded
936 Sets the system attribute.
941 Sets the hidden attribute (file is hidden from phone menu).
946 After using it date/time of file modification will be set to moment of uploading.
951 .B addfolder parentfolderID name
952 Create a folder in phone with specified name in a
953 folder with specified folder ID.
957 .B deletefiles fileID
958 Delete files with given IDs.
963 Delete folder with given ID.
967 .B getfilefolder fileID, fileID, ...
968 Retrieve files or all files from folder with given IDs from a phone filesytem.
972 .B getfiles fileID, fileID, ...
973 Retrieve files with given IDs from a phone filesytem.
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:
982 there are displayed full file/folder details like ID (first parameter in line)
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.
994 .B getfilesystemstatus
995 Display info filesystem status \- number of
996 bytes available, used or used by some specific content.
1000 .B getfolderlisting folderID
1001 Display files and folders available in folder with given folder ID. You can get ID\(aqs using getfilesystem \-flatall.
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
1012 Display info about drives available in phone/memory card.
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.
1023 .B setfileattrib folderID [\-system] [\-readonly] [\-hidden] [\-protected]
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
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
1042 .B getbitmap TYPE [type options]
1043 Reads bitmap from phone, following types are supported:
1046 .B CALLER location [file]
1047 Get caller group logo from phone. Locations 1\-5.
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
1059 Get operator logo (picture displayed instead of operator name) from phone.
1063 .B PICTURE location [file]
1064 Get Picture Image from phone.
1069 Get static startup logo from phone. Allow one to save it in file.
1074 Get startup text from phone.
1079 .B setbitmap TYPE [type options]
1080 Sets bitmap in phone, following types are supported:
1083 .B CALLER location [file]
1088 .B COLOUROPERATOR [fileID [netcode]]
1089 Sets color operator logo in phone.
1093 .B COLOURSTARTUP [fileID]
1098 Sets welcome message configured by dealer, which usually can not be changed in phone menus.
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.
1110 .B PICTURE file location [text]
1111 Sets picture image in phone.
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).
1123 Sets startup text in phone.
1128 Sets wallpaper in phone.
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
1142 .B copyringtone source destination [RTTL|BINARY]
1143 Copy source ringtone to destination.
1147 .B getphoneringtone location [file]
1148 Get one of "default" ringtones and saves into file
1152 .B getringtone location [file]
1153 Get ringtone from phone in RTTL or BINARY format.
1155 Locations are numerated from 1.
1163 .B playringtone file
1164 Play aproximation of ringtone over phone buzzer. File can be in RTTL or BINARY (Nokia DCT3) format.
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.
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).
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).
1185 When use \fB~\fP char in ringtone name, in some phones (like 33xx) name
1186 will blink later in phone menus.
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).
1194 .B deletecalendar start [stop]
1195 Deletes selected calendar entries in phone.
1200 Retrieves all calendar entries from phone.
1204 .B getcalendar start [stop]
1205 Retrieves selected calendar entries from phone.
1207 .SS To do list commands
1210 .B deletetodo start [stop]
1211 Deletes selected todo entries in phone.
1216 Retrieves all todo entries from phone.
1220 .B gettodo start [stop]
1221 Retrieves selected todo entries from phone.
1227 Reads all notes from the phone.
1229 Not all phones supports this function, especially most Sony Ericsson
1230 phones even if they have notes inside phone.
1233 .SS Date, time and alarm commands
1237 Get alarm from phone, if no location is specified,
1243 Get date and time from phone
1247 .B setalarm hour minute
1248 Sets repeating alarm in phone on selected time.
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
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.
1261 .SS Categories commands
1263 Categories are supported only on few phones (Alcatel).
1267 .B addcategory TODO|PHONEBOOK text
1271 .B getallcategory TODO|PHONEBOOK
1275 .B getcategory TODO|PHONEBOOK start [stop]
1279 .B listmemorycategory text|number
1283 .B listtodocategory text|number
1285 .SS Backing up and restoring commands
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
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
1297 Use \-yes parameter to answer yes to all questions (you want to automatically
1300 Use \-memory parameter to force usage of defined memory type for storing entries
1301 regardless what backu format says.
1305 .B addsms folder file [\-yes]
1306 Adds SMSes from file (format like \fI\%gammu backupsms\fP uses) to
1307 selected folder in phone.
1311 .B backup file [\-yes]
1312 Backup your phone to file. It\(aqs possible to backup (depends on phone and backup format):
1315 phonebook from SIM and phone memory
1323 startup (static) logo or startup text
1329 caller logos and groups
1334 There are various backup formats supported and the backup format is guessed
1335 based on file extension:
1338 \fB.lmb\fP \- Nokia backup, supports contacts, caller logos and startup logo.
1340 \fB.vcs\fP \- vCalendar, supports calendar and todo.
1342 \fB.vcf\fP \- vCard, supports contacts.
1344 \fB.ldif\fP \- LDAP import, supports contacts.
1346 \fB.ics\fP \- iCalendar, supports calendar and todo.
1348 Any other extension is Gammu backup file and it supports all data mentioned above, see \fIgammu\-backup\fP for more details.
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
1362 .B restore file [\-yes]
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.
1375 .B restoresms file [\-yes]
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.
1385 .B savefile TYPE [type options]
1386 Converts between various file formats supported by Gammu, following types
1390 .B BOOKMARK target.url file location
1391 Converts backup format supported by
1392 Gammu to vBookmark file.
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
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
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
1420 \fI\%gammu convertbackup\fP
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.
1433 \fI\%gammu savefile\fP
1436 .SS Nokia specific commands
1439 .B nokiaaddfile TYPE [type options]
1440 Uploads file to phone to specific location for the type:
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.
1450 Delete the application\(aqs .jad and .jar files before installing, but
1451 doesn\(aqt delete the application data.
1456 Delete the application (same as \fI\%-overwrite\fP) and all it\(aqs
1460 You can use \fIjadmaker\fP to generate a .jad file from a .jar file.
1464 .B GALLERY|GALLERY2|CAMERA|TONES|TONES2|RECORDS|VIDEO|PLAYLIST|MEMORYCARD file [\-name name] [\-protected] [\-readonly] [\-system] [\-hidden] [\-newtime]
1469 .B nokiaaddplaylists
1470 Goes through phone memory and generated playlist for all music files found.
1472 To manually manage playlists:
1476 gammu addfile a:\e\epredefplaylist filename.m3u
1480 Will add playlist filename.m3u
1488 Will get list of all files (including names of files with playlists)
1492 gammu deletefiles a:\e\epredefplaylist\e\efilename.m3u
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.
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).
1512 .B nokiadebug filename [[v11\-22] [,v33\-44]...]
1516 .B nokiadisplayoutput
1520 .B nokiadisplaytest number
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.
1535 .B nokiagetpbkfeatures memorytype
1540 This option should display T9 dictionary content from
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
1561 select "Yes. I have already connected the hardware
1563 select "Add a new hardware device
1565 select "Install the hardware that I manually select from a list
1567 select "Sound, video and game controllers
1569 select "Audio codecs
1571 select "windows\esystem32" directory and file "mmdriver.inf
1573 if You will be asked for file msgsm32.acm, it should unpacked from Windows CD
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)
1580 .B nokiamakecamerashoot
1584 .B nokianetmonitor test
1585 Takes output or set netmonitor for Nokia DCT3 phones.
1588 For more info about this option, please visit
1589 \fI\%Marcin's page\fP and read netmonitor manual
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)
1600 .B nokianetmonitor36
1601 Reset counters from netmonitor test 36 in Nokia DCT3 phones.
1604 For more info about this option, please visit
1605 \fI\%Marcin's page\fP and read netmonitor manual
1611 .B nokiasecuritycode
1612 Get/reset to "12345" security code
1617 Perform tests for Nokia DCT3 phones.
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).
1626 .B nokiasetlights keypad|display|torch on|off
1630 .B nokiasetoperatorname [networkcode name]
1634 .B nokiasetphonemenus
1635 Enable all (?) possible menus for DCT3 Nokia phones:
1638 ALS (Alternative Line Service) option menu
1642 3315 features in 3310 5.45 and higher
1644 two additional games (React and Logic) for 3210 5.31 and higher
1646 WellMate menu for 6150
1654 ALS (Alternative Line Service) option menu
1656 Bluetooth, WAP bookmarks and settings menu, ... (6310i)
1665 .B nokiasetvibralevel level
1666 Set vibra power to "level" (given in percent)
1676 .SS Siemens specific commands
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.
1685 .B siemensnetmonitor test
1691 .SS Network commands
1694 .B getgprspoint start [stop]
1698 .B listnetworks [country]
1699 Show names/codes of GSM networks known for Gammu
1704 Show information about network status from the phone.
1708 .B setautonetworklogin
1710 .SS WAP settings and bookmarks commands
1713 .B deletewapbookmark start [stop]
1714 Delete WAP bookmarks from phone.
1716 Locations are numerated from 1.
1720 .B getchatsettings start [stop]
1724 .B getsyncmlsettings start [stop]
1728 .B getwapbookmark start [stop]
1729 Get WAP bookmarks from phone.
1731 Locations are numerated from 1.
1735 .B getwapsettings start [stop]
1736 Get WAP settings from phone.
1738 Locations are numerated from 1.
1740 .SS MMS and MMS settings commands
1743 .B getallmms [\-save]
1747 .B geteachmms [\-save]
1755 .B getmmssettings start [stop]
1759 .B readmmsfile file [\-save]
1761 .SS FM radio commands
1764 .B getfmstation start [stop]
1765 Show info about FM stations in phone
1767 .SS Phone information commands
1771 Displays information about battery and power source.
1780 Gets network information from phone (same as networkinfo)
1781 and prints location (latitude and longitude) based on information from
1786 .B getsecuritystatus
1787 Show, if phone wait for security code (like PIN, PUK, etc.) or not
1792 Show the most important phone data.
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:
1806 Number of contacts, calendar and todo entries, messages, calls, etc.
1812 Currently used network.
1814 Notifications of incoming messages and calls.
1817 .SS Phone settings commands
1820 .B getcalendarsettings
1821 Displays calendar settings like first day of
1822 week or automatic deleting of old entries.
1826 .B getprofile start [stop]
1830 .B resetphonesettings PHONE|DEV|UIF|ALL|FACTORY
1832 This will delete user data, be careful.
1835 Reset phone settings.
1839 Clear phone settings.
1842 Clear device settings.
1845 Clear user settings.
1848 removes or set logos to default
1850 set default phonebook and other menu settings
1854 clear call register info
1856 set default profiles settings
1858 clear user ringtones
1862 Clear user settings and disables hidden menus.
1865 changes like after \fBALL\fP
1867 disables netmon and PPS (all "hidden" menus)
1871 Reset to factory defaults.
1874 changes like after \fBUIF\fP
1880 .SS Dumps decoding commands
1882 These commands are available only if Gammu was compiled with debugging options.
1886 .B decodebinarydump file [phonemodel]
1887 Decodes a dump made by Gammu with
1888 \fBLogFormat\fP set to \fBbinary\fP.
1892 .B decodesniff MBUS2|IRDA file [phonemodel]
1893 Allows one to decode sniffs. See \fIDiscovering protocol\fP for more details.
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.
1905 .B presskeysequence mMnNpPuUdD+\-123456789*0#gGrR<>[]hHcCjJfFoOmMdD@
1906 Press specified key sequence on phone keyboard
1933 .B \fB123456789*0#\fP
1944 without asking for PIN
1950 Some phones will ask for PIN even with \fBSOFT\fP option.
1953 Some phones will reset user data on \fBHARD\fP reset.
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.
1962 .SS Batch mode commands
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
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
1974 .SS Configuration commands
1977 .B searchphone [\-debug]
1978 Attempts to search for a connected phone.
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.
1988 Installs applet for currently configured connection to the phone.
1990 You can configure search path for instllation files by
1993 .SS Gammu information commands
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.
2004 Print information about compiled in features.
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.
2015 Print version information and license.
2019 gammu returns 0 on success. In case of failure non zero code is
2024 Out of memory or other critical error.
2027 Invalid command line parameters.
2030 Failed to open file specified on command line.
2033 Program was interrupted.
2036 Gammu library version mismatch.
2039 Functionality has been moved. For example to \fIgammu\-smsd\fP.
2042 Errors codes greater than 100 map to the GSM_Error
2043 values increased by 100:
2050 Error opening device. Unknown, busy or no permissions.
2053 Error opening device, it is locked.
2056 Error opening device, it doesn\(aqt exist.
2059 Error opening device, it is already opened by other application.
2062 Error opening device, you don\(aqt have permissions.
2065 Error opening device. No required driver in operating system.
2068 Error opening device. Some hardware not connected/wrongly configured.
2071 Error setting device DTR or RTS.
2074 Error setting device speed. Maybe speed not supported.
2077 Error writing to the device.
2080 Error during reading from the device.
2083 Can\(aqt set parity on the device.
2086 No response in specified timeout. Probably phone not connected.
2089 Frame not requested right now. See <\fI\%http://wammu.eu/support/bugs/\fP> for information how to report it.
2092 Unknown response from phone. See <\fI\%http://wammu.eu/support/bugs/\fP> for information how to report it.
2095 Unknown frame. See <\fI\%http://wammu.eu/support/bugs/\fP> for information how to report it.
2098 Unknown connection type string. Check config file.
2101 Unknown model type string. Check config file.
2104 Some functions not available for your system (disabled in config or not implemented).
2107 Function not supported by phone.
2113 Security error. Maybe no PIN?
2116 Invalid location. Maybe too high?
2119 Functionality not implemented. You are welcome to help authors with it.
2128 Can not open specified file.
2131 More memory required...
2134 Operation not allowed by phone.
2137 No SMSC number given. Provide it manually or use the one configured in phone.
2140 You\(aqre inside phone menu (maybe editing?). Leave it and try again.
2143 Phone is not connected.
2146 Function is currently being implemented. If you want to help, please contact authors.
2149 Phone is disabled and connected to charger.
2152 File format not supported by Gammu.
2155 Nobody is perfect, some bug appeared in protocol implementation. Please contact authors.
2158 Transfer was canceled by phone, maybe you pressed cancel on phone.
2161 Phone module need to send another answer frame.
2164 Current connection type doesn\(aqt support called function.
2170 Invalid date or time specified.
2173 Phone memory error, maybe it is read only.
2176 Invalid data given to phone.
2179 File with specified name already exists.
2182 File with specified name doesn\(aqt exist.
2185 You have to give folder name and not file name.
2188 You have to give file name and not folder name.
2191 Can not access SIM card.
2194 Wrong GNAPPLET version in phone. Use version from currently used Gammu.
2197 Only part of folder has been listed.
2200 Folder must be empty.
2203 Data were converted.
2206 Gammu is not configured.
2212 Internal phone error.
2215 Error writing file to disk.
2218 No such section exists.
2221 Using default values.
2224 Corrupted data returned by phone.
2227 Bad feature string in configuration.
2230 Desired functionality has been disabled on compile time.
2233 Bluetooth configuration requires channel option.
2236 Service is not running.
2239 Service configuration is missing.
2242 Command rejected because device was busy. Wait and restart.
2245 Could not connect to the server.
2248 Could not resolve the host name.
2251 Failed to get SMSC number from phone.
2257 Installation data not found, please consult debug log and/or documentation for more details.
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
2269 All messages bellow are sent to number 123456, replace it with proper destination.
2272 Send text message up to standard 160 chars:
2276 echo "All your base are belong to us" | gammu sendsms TEXT 123456
2284 gammu sendsms TEXT 123456 \-text "All your base are belong to us"
2288 Send long text message:
2292 echo "All your base are belong to us" | gammu sendsms TEXT 123456 \-len 400
2300 gammu sendsms TEXT 123456 \-len 400 \-text "All your base are belong to us"
2308 gammu sendsms EMS 123456 \-text "All your base are belong to us"
2312 Send some funky message with predefined sound and animation from 2 bitmaps:
2316 gammu sendsms EMS 123456 \-text "Greetings" \-defsound 1 \-text "from Gammu \-tone10 axelf.txt \-animation 2 file1.bmp file2.bmp
2320 Send protected message with ringtone:
2324 gammu sendsms EMS 123456 \-protected 2 \-variablebitmaplong ala.bmp \-toneSElong axelf.txt \-toneSE ring.txt
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):
2333 gammu nokiaaddfile APPLICATION Alien
2337 Add file.mid to ringtones folder:
2341 gammu nokiaaddfile TONES file.mid
2344 .SS Setting operator logo
2346 Set logo for network \fB230 03\fP (Vodafone CZ):
2350 gammu setbitmap OPERATOR ala.bmp "230 03"
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:
2362 gammu savefile CALENDAR output.vcs myCalendar.backup 260
2366 Convert first phonebook entry from \fIgammu\-backup\fP to vCard:
2370 gammu savefile VCARD21 output.vcf phone.backup ME 1
2374 Convert all contacts from backup to vCard:
2378 gammu convertbackup phone.backup output.vcf
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:
2392 YOUR CONNECTION SETTINGS
2393 logfile = /tmp/gammu.log
2398 Alternatively you can specify logging on command line:
2402 gammu \-d textall \-f /tmp/gammu.log ...
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.
2414 Michal Čihař <michal@cihar.com>
2416 2009-2011, Michal Čihař <michal@cihar.com>
2417 .\" Generated by docutils manpage writer.