File: gammu.1

package info (click to toggle)
gammu 1.28.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 21,972 kB
  • ctags: 8,504
  • sloc: ansic: 104,965; pascal: 7,209; cpp: 4,023; python: 3,639; php: 1,622; sh: 1,534; sql: 450; cs: 260; makefile: 192; perl: 107; asm: 31
file content (3051 lines) | stat: -rw-r--r-- 94,861 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
.TH "GAMMU" "1" "Jul  1 2010" "Gammu 1.27.96" "Gammu Documentation"

.SH "NAME"

.P
Gammu - Does some neat things with your cellular phone or modem.

.SH "SYNOPSIS"
.P
Usage: gammu [\fIparameters\fP] <command> [\fIoptions\fP]


.SH "DESCRIPTION"
.P

.P
This program is a tool for mobile phones. Many vendors and phones
are supported, for actual listing see <http://wammu.eu/phones/>.


.SH "OPTIONS"
.P
Parameters before command configure gammu behaviour:
.br
\-c / \-\-config <filename> ... name of configuration file
.br
\-s / \-\-section <confign> ... section of config file to use, eg. 42
.br
\-d / \-\-debug <level> ... debug level (see gammurc(5) for possible values)
.br
\-f / \-\-debug\-file <filename> ... file for logging debug messages


.SS "Commands"
.P
Commands can be specified with or without leading \-\-.


.SS "Calls"
.TP
.BI "answercall" " [id]"
Answer incoming call.

.TP
.BI "cancelcall" " [id]"
Cancel incoming call

.TP
.BI "canceldiverts"
Cancel all existing call diverts.

.TP
.BI "conferencecall" " id"
Initiates a conference call.

.TP
.BI "dialvoice" " number [show|hide]"
Make voice call from SIM card line set in phone.

\fBshow|hide\fR - optional parameter whether to disable call number indication.

.TP
.BI "divert" " get|set all|busy|noans|outofreach all|voice|fax|data [number timeout]"
Manage or display call diverts.

\fBget|set\fR - whether to get divert information or to set it.

\fBall|busy|noans|outofreach\fR - condition when apply divert

\fBall|voice|fax|data\fR - call type when apply divert

number - number where to divert

timeout - timeout when the diversion will happen


.TP
.BI "getspeeddial" " start [stop]"
Gets speed dial choices.

.TP
.BI "getussd" " code"
Retrieves USSD information - dials a service number and reads response.

.TP
.BI "holdcall" " id"
Holds call.

.TP
.BI "maketerminatedcall" " number length [show|hide]"
Make voice call from SIM card line set in phone which will 
be terminated after \fBlength\fR seconds.

.TP
.BI "monitor" " [times]"
Get phone status and writes continuously to standard output. Press Ctrl+C
to break this state.

.TP
.BI "senddtmf" " sequence"
Plays DTMF sequence. In some phones available only during calls

.TP
.BI "splitcall" " id"
Splits call.

.TP
.BI "switchcall" " [id]"
Switches call.

.TP
.BI "transfercall" " [id]"
Transfers call.

.TP
.BI "unholdcall" " id"
Unholds call.


.SS "SMS and EMS"
.P

Sending messages might look a bit complicated on first attempt to use.
But be patient, the command line has been written in order to allow
almost every usage. See EXAMPLE section for some hints on usage.

There is also an option to use gammu-smsd(1) when you want to send or 
receive more messages and process them automatically.

.TP
\fBCommon parameters for sendsms and savesms\fR

\fB\-smscset number\fR - SMSC will be taken from set \fBnumber\fR. Default set: 1

\fB\-smscnumber number\fR - SMSC number

\fB\-reply\fR - reply SMSC is set

\fB\-maxnum number\fR - Limit maximal number of messages which will be
created. If there are more messages, Gammu will terminate with failure.

\fB\-folder number\fR - save to specified folder. 

Folders are numerated from 1.

The most often folder 1 = "Inbox", 2 = "Outbox",etc. Use \fBgetsmsfolders\fR to get folder list.

\fB\-unread\fR - makes message unread. In some phones (like 6210) you won't see 
unread sms envelope after saving such sms. In some phones with internal 
SMS memory (like 6210) after using it with folder 1 SIM SMS memory will be used

\fB\-read\fR - makes message read. In some phones with internal
SMS memory (like 6210) after using it with folder 1 SIM SMS memory will be used

\fB\-unsent\fR - makes message unsent

\fB\-sent\fR - makes message sent

\fB\-sender number\fR - set sender number

\fB\-smsname name\fR - set message name

\fB\-sender number\fR - set sender number (default: "Gammu")

\fB\-report\fR - request delivery report for message

\fB\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX\fR - sets how long will be the
message valid (SMSC will the discard the message after this time if it could
not deliver it).

\fB\-save\fR - will also save message which is being sent

.TP
\fBIntroduction to SMS formats\fR

Gammu has support for many SMS formats like:

\fBNokia Smart Messaging\fR (used for monochromatic picture images, downloadable profiles, monochromatic operator logos, monochromatic caller logos and monophonic ringtones)

\fBLinked SMS\fR (both with 8 and 16-bit identification numbers in headers)

\fBEMS\fR (this is SMS format used for saving monochromatic images, monophonic ringtones, animations, text formatting and others)

\fBMMS notifications\fR

\fBAlcatel logo messages\fR


You need to ensure that the target phone supports message type you want to
send. Otherwise the phone will not be able to display it or will even crash,
because firmware of phone did not expect this possibility.

.TP
\fBEncoding chars in SMS text\fR

Text in SMS can be coded using two ways:

with \fBGSM Default Alphabet\fR - in single SMS you can have maximally 160 chars (Gammu doesn't support compressing such texts according to GSM standards, but it isn't big limit, because there are no phones supporting them), but they're from limited set:

  * all Latin small and large

  * all digits

  * some Greek

  * some other national

  * some symbols like  @ ! " # & / ( ) % * + = - , . : ; < > ?

  * few others

with \fBUnicode\fR - in single SMS you can save at most 70 chars, but these can be
any chars including all national and special ones. Please note, that some
older phones might have problems displaying such message.

Gammu tries to do the best to handle non ASCII characters in your message.
Everything is internally handled in Unicode (the input is converted depending
on your locales configuration) and in case message uses Unicode the text will
be given as such to the message. 

Should the message be sent in GSM Default Alphabet, Gammu will try to convert
all characters to keep message readable. Gammu does support multi byte
encoding for some characters in GSM Default Alphabet (it is needed for ^ { }
\\ [ ] ~ |). The characters which are not present in GSM Default Alphabet
are transliterated to closest ASCII equivalent (accents are removed).
Remaining not known characters are replaced by question mark.

.TP
.BI "addsms" " folder file [\-yes]"
Adds SMSes from file (format like backupsms uses) to
selected folder in phone.
.TP
.BI "addsmsfolder" " name"

.TP
.BI "backupsms" " file [\-yes|\-all]"
Stores all SMSes from phone to file. 

Use \-yes for answering yes to all questions (backup all messages and 
delete them from phone), or \-all to just backup all folders while keeping
messages in phone.

.TP
.BI "deleteallsms" " folder"
Delete all SMS from specified SMS folder.

.TP
.BI "deletesms" " folder start [stop]"
Delete SMS from phone. See description for \fBgetsms\fR for info about
sms folders naming convention. 

Locations are numerated from 1.

.TP
.BI "displaysms" " ... (options like in sendsms)"

Displays PDU data of encoded SMS messages. It accepts same parameters and 
behaves same like sendsms.

.TP
.BI "getallsms" " \-pbk"
Get all SMS from phone. In some phones you will have also SMS templates
and info about locations used to save Picture Images. With each sms you
will see location. If you want to get such sms from phone alone, use
\fBgammu getsms 0 location\fR

.TP
.BI "geteachsms" " \-pbk"
Similiary to \fBgetallsms\fR. Difference is, that
links all concatenated sms

.TP
.BI "getsms" " folder start [stop]"
Get SMS. 

Locations are numerated from 1.

Folder 0 means that sms is being read from "flat" memory (all sms from all
folders have unique numbers). It's sometimes emulated by Gammu. You 
can use it with all phones.

Other folders like 1, 2, etc. match folders in phone such as Inbox, Outbox, etc.
and each sms has unique number in his folder. Name of folders can
depend on your phone (the most often 1="Inbox", 2="Outbox", etc.).
This method is not supported by all phones (for example, not supported
by Nokia 3310, 5110, 6110). If work with your phone, use
\fBgetsmsfolders\fR to get folders list.

.TP
.BI "getsmsc" " [start [stop]]"
Get SMSC settings from SIM card. 

Locations are numerated from 1.

.TP
.BI "getsmsfolders"
Get names for SMS folders in phone

.TP
.BI "nokiagett9"
This option should display T9 dictionary content from
DCT4 phones.

.TP
.BI "restoresms" " file [\-yes]"
Restores SMSes from file (format like backupsms uses) to
selected folder in phone. Please note that this overwrites existing
messages in phone (if it supports it).
.TP
.BI "savesms ANIMATION" " frames file1 file2... [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Save an animation as a SMS. You need to give
number of frames and picture for each frame. Each picture can be in any
picture format which Gammu supports (B/W bmp, gif, wbmp, nol, nlm...).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms BOOKMARK" " file location [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read WAP bookmark from file created by \fBbackup\fR option and saves in
Nokia format as SMS


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms CALENDAR" " file location [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read calendar note from file created by \fBbackup\fR option and saves in
VCALENDAR 1.0 format as SMS. The location identifies position of calendar item 
to be read in backup file (usually 1, but can be useful in case the backup contains 
more items).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms CALLER" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Save caller logo as sms in Nokia (Smart Messaging)
format - size 72x14, two colors.

Please note, that it isn't designed for colour logos available for example in
DCT4/TIKU - you need to put bitmap file there inside phone using filesystem
commands.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms EMS" " [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-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]"

Saves EMS sequence. All parameters after \fB\-unread\fR (like \fB\-defsound\fR) can be used few times.

\fB\-text\fR - adds text

\fB\-unicodefiletext\fR - adds text from Unicode file

\fB\-defanimation\fR - adds default animation with ID specified by user.ID for different phones are different.

\fB\-animation\fR - adds "frames" frames read from file1, file2, etc.

\fB\-defsound\fR - adds default sound with ID specified by user. ID for different phones are different.

\fB\-tone10\fR - adds IMelody version 1.0 read from RTTL or other compatible file

\fB\-tone10long\fR - IMelody version 1.0 saved in one of few SMS with UPI. Phones compatible with UPI (like SonyEricsson phones) will read such ringtone as one

\fB\-tone12\fR - adds IMelody version 1.2 read from RTTL or other compatible file

\fB\-tone12long\fR - IMelody version 1.2 saved in one of few SMS with UPI. Phones compatible with UPI (like SonyEricsson phones) will read such ringtone as one

\fB\-toneSE\fR - adds IMelody in "short" form supported by SonyEricsson phones

\fB\-toneSElong\fR - add SonyEricsson IMelody saved in one or few SMS with UPI

\fB\-variablebitmap\fR - bitmap in any size saved in one SMS

\fB\-variablebitmaplong\fR - bitmap with maximal size 96x128 saved in one or few sms

\fB\-fixedbitmap\fR - bitmap 16x16 or 32x32

\fB\-protected\fR - all ringtones and bitmaps after this parameter (excluding default ringtones and logos) will be "protected" (in phones compatible with ODI like SonyEricsson products it won't be possible to forward them from phone menu)

\fB\-16bit\fR - Gammu uses SMS headers with 16-bit numbers for saving linking info in SMS (it means less chars available for user in each SMS)

\fB\-format\fR lcrasbiut - last text will be formatted. You can use combinations of chars:
    l - left aligned
    c - centered
    r - right aligned
    a - large font
    s - small font
    b - bold font
    i - italic font
    u - underlined font
    t - strikethrough font

\fIExample:\fR gammu savesms EMS \-text "Greetings" \-defsound 1 \-text "from Gammu" \-tone10 axelf.txt \-animation 2 file1.bmp file2.bmp

will create EMS sequence with text "Greetings" and default sound 1 and text "from Gammu" and ringtone axelf.txt and 2 frame animation read from (1'st frame) file1.bmp and (2'nd frame) file2.bmp

\fIExample:\fR gammu savesms EMS \-protected 2 \-variablebitmaplong ala.bmp \-toneSElong axelf.txt \-toneSE ring.txt

ala.bmp and axelf.txt will be "protected"


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms MMSINDICATOR" " URL Title Sender [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"

Saves a message with MMS indication. The recipient phone will then download
MMS from given URL and display it.

Please note that you should provide valid smil data on that URL.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms MMSSETTINGS" " file location  [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Saves a message with MMS configuration. The
configuration will be read from Gammu backup file from given location.

For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms OPERATOR" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-netcode netcode] [\-biglogo]"
Save operator logo as sms in Nokia (Smart
Messaging) format - size 72x14 or 78x21 after using \fB\-biglogo\fR, all in
two colors.

Please note, that it isn't designed for colour logos available for example in
DCT4/TIKU - you need to put bitmap file there inside phone using filesystem
commands.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms PICTURE" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-text text] [\-unicode] [\-alcatelbmmi]"

Read bitmap from 2 colors file (bmp, nlm, nsl, ngg, nol, wbmp, etc.), format
into bitmap in Smart Messaging (72x28, 2 colors, called often Picture Image
and saved with text) or Alcatel format and send/save over SMS.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms PROFILE" " [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-name name] [\-bitmap bitmap] [\-ringtone ringtone]"

Read ringtone (RTTL) format, bitmap (Picture Image size) and name, format into
Smart Messaging profile and send/save as SMS. Please note, that this format is
abandomed by Nokia and supported by some (older) devices only like Nokia 3310.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms RINGTONE" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-long] [\-scale]"
Read RTTL ringtone from file and save as SMS
into SIM/phone memory. Ringtone is saved in Nokia (Smart Messaging) format.

\fB\-long\fR - ringtone is saved using Profile style. It can be longer (and saved
in 2 SMS), but decoded only by newer phones (like 33xx)

\fB\-scale\fR - ringtone will have Scale info for each note. It will allow to edit
it correctly later in phone composer (for example, in 33xx)


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms SMSTEMPLATE" " [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-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 ...]"
Saves a SMS template (for Alcatel phones).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms TEXT" " [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-inputunicode] [\-16bit] [\-flash] [\-len len] [\-autolen len] [\-unicode] [\-enablevoice] [\-disablevoice] [\-enablefax] [\-disablefax] [\-enableemail] [\-disableemail] [\-voidsms] [\-replacemessages ID] [\-replacefile file] [\-text msgtext] [\-textutf8 msgtext]"
Take text from stdin (or commandline if \-text 
specified) and save as text SMS into SIM/phone memory.

\fB\-flash\fR - Class 0 SMS (should be displayed after receiving on recipients' phone display after receiving without entering Inbox)

\fB\-len len\fR - specify, how many chars will be read. When use this
option and text will be longer than 1 SMS, will be split into more
linked SMS

\fB\-autolen len\fR - specify, how many chars will be read. When use this
option and text will be longer than 1 SMS, will be split into more
linked SMS.Coding type (SMS default alphabet/Unicode) is set according
to input text

\fB\-enablevoice\fR | \fB\-disablevoice\fR | \fB\-enablefax \fR |
\fB\-disablefax \fR | \fB\-enableemail \fR | \fB\-disableemail \fR -
sms will set such indicators. Text will be cut to 1 sms.

\fB\-voidsms\fR - many phones after receiving it won't display anything,
only beep, vibrate or turn on light. Text will be cut to 1 sms.

\fB\-unicode\fR - SMS will be saved in Unicode format

\fB\-inputunicode\fR - input text is in Unicode.

\fB\-text\fR - get text from command line instead of stdin.

\fB\-textutf8\fR - get text in UTF-8 from command line instead of stdin.

\fB\-16bit\fR - Gammu uses SMS headers with 16-bit numbers for saving linking info in SMS (it means less chars available for user in each SMS)

\fITIP:\fR
You can create Unicode file using WordPad in Windows (during saving select
"Unicode Text Document" format). In Unix can use for example YUdit.

\fB\-replacemessages ID\fR - \fBID\fR can be 1..7. When you will use option and
send more single SMS to one recipient with the same ID, each another SMS will
replace each previous with the same ID

\fB\-replacefile file\fR  - when you want, you can make file in such format:
\fBsrc_unicode_char1, dest_unicode_char1, src_unicode_char2, dest_unicode_char2\fR
(everything in one line). After reading text for SMS from stdin there will
be made translation and each src char will be converted to dest char. In docs
there is example file (\fIreplace.txt\fR), which will change all "a" chars to "1"

\fITIP:\fR when use ~ char in sms text and \fB\-unicode\fR option
(Unicode coding required), text of sms after ~ char will blink in some phones
(like N33xx)

\fIExample:\fR echo some_text | gammu savesms TEXT


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms TODO" " file location [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Saves a message with a todo entry. The content will
be read from any backup format which Gammu supports and from given location.

For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms VCARD10|VCARD21" " file SM|ME location [\-nokia] [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read phonebook entry from file created by \fBbackup\fR option and saves in
VCARD 1.0 (only name and default number) or VCARD 2.1 (all entry details with
all numbers, text and name) format as SMS. The location identifies position of contact item 
to be read in backup file (usually 1, but can be useful in case the backup contains 
more items).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms WAPINDICATOR" " URL Title [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Saves a SMS with a WAP indication for given
URL and title.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms WAPSETTINGS" " file location DATA|GPRS [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read WAP settings from file created by \fBbackup\fR option and saves in Nokia format as SMS


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms ANIMATION" " destination frames file1 file2... [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms ANIMATION\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms BOOKMARK" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms BOOKMARK\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms CALENDAR" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms CALENDAR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms CALLER" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms CALLER\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms EMS" " destination [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-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]"
Sends a message, for description of message specific parameters see \fBsavesms EMS\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms MMSINDICATOR" " destination URL Title Sender [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms MMSINDICATOR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms MMSSETTINGS" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms MMSSETTINGS\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms OPERATOR" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-netcode netcode] [\-biglogo]"
Sends a message, for description of message specific parameters see \fBsavesms OPERATOR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms PICTURE" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-text text] [\-unicode] [\-alcatelbmmi]"
Sends a message, for description of message specific parameters see \fBsavesms PICTURE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms PROFILE" " destination [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-name name] [\-bitmap bitmap] [\-ringtone ringtone]"
Sends a message, for description of message specific parameters see \fBsavesms PROFILE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms RINGTONE" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-long] [\-scale]"
Sends a message, for description of message specific parameters see \fBsavesms RINGTONE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms SMSTEMPLATE" " destination [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-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 ...]"
Sends a message, for description of message specific parameters see \fBsavesms SMSTEMPLATE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms TEXT" " destination [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-inputunicode] [\-16bit] [\-flash] [\-len len] [\-autolen len] [\-unicode] [\-enablevoice] [\-disablevoice] [\-enablefax] [\-disablefax] [\-enableemail] [\-disableemail] [\-voidsms] [\-replacemessages ID] [\-replacefile file] [\-text msgtext] [\-textutf8 msgtext]"
Sends a message, for description of message specific parameters see \fBsavesms TEXT\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms TODO" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms TODO\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms VCARD10|VCARD21" " destination file SM|ME location [\-nokia] [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms VCARD10|VCARD21\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms WAPINDICATOR" " destination URL Title [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms WAPINDICATOR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms WAPSETTINGS" " destination file location DATA|GPRS [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms WAPSETTINGS\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "setsmsc" " location number"
Set SMSC settings on SIM card. This keeps all SMSC configuration
intact, it just changes the SMSC number.

Locations are numerated from 1.


.SS "Memory (phonebooks and calls)"
.TP
.BI "addcategory TODO|PHONEBOOK" " text"

.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "deleteallmemory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL"
Deletes all entries from specified memory type.
.TP
.BI "deletememory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL" " start [stop]"
Deletes entries in specified range from specified memory type.
.TP
.BI "getallcategory TODO|PHONEBOOK"

.TP
.BI "getallmemory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL"
Get all memory locations from phone. For memory
types see \fBgetmemory\fR.
.TP
.BI "getcategory TODO|PHONEBOOK" " start [stop]"

.TP
.BI "getmemory DC|MC|RC|ON|VM|SM|ME|MT|FD|SL" " start [stop [\-nonempty]]"
Get memory location from phone. 

Locations are numerated from 1.

\fBDC\fR = Dialled calls
.br
\fBMC\fR = Missed calls
.br
\fBRC\fR = Received calls
.br
\fBON\fR = Own numbers
.br
\fBVM\fR = voice mailbox
.br
\fBSM\fR = SIM phonebook
.br
\fBME\fR = phone internal phonebook
.br
\fBFD\fR = fixed dialling
.br
\fBSL\fR = sent SMS log

.TP
.BI "getspeeddial" " start [stop]"
Gets speed dial choices.

.TP
.BI "listmemorycategory" " text|number"

.TP
.BI "nokiagetpbkfeatures" " memorytype"

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.

.TP
.BI "savefile VCARD10|VCARD21" " target.vcf file SM|ME location"
Allows to convert between various backup formats which gammu
supports for phonebook events. The file type is guessed (for input file
guess is based on extension and file content, for output solely on 
extension).

For example if you want to convert single entry from gammu native 
backup to vCard, you need following command:

    gammu savefile CALENDAR output.vcf myPhonebook.backup ME 42

.TP
.BI "savesms VCARD10|VCARD21" " file SM|ME location [\-nokia] [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read phonebook entry from file created by \fBbackup\fR option and saves in
VCARD 1.0 (only name and default number) or VCARD 2.1 (all entry details with
all numbers, text and name) format as SMS. The location identifies position of contact item 
to be read in backup file (usually 1, but can be useful in case the backup contains 
more items).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "searchmemory" " text"
Scans all memory entries for given text. It performs
case insensitive substring lookup. You can interrupt searching by pressing
Ctrl+C.
.TP
.BI "sendsms VCARD10|VCARD21" " destination file SM|ME location [\-nokia] [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms VCARD10|VCARD21\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.



.SS "Filesystem"
.P

Gammu allows to access phones using native protocol (Nokias) or OBEX. Your
phone can also support usb storage, which is handled on the operating system
level and Gammu does not use that.

.TP
.BI "addfile" " folderID name [\-type JAR|BMP|PNG|GIF|JPG|MIDI|WBMP|AMR|3GP|NRT] [\-readonly] [\-protected] [\-system] [\-hidden] [\-newtime]"
Add file with specified name to folder with specified folder ID.

.B \-type 
- file type was required for filesystem 1 in Nokia phones (current filesystem 2 doesn't need this)

.B \-readonly, \-protected, \-system, \-hidden
- you can set readonly, protected (file can't be for example forwarded from phone menu), system and hidden (file is hidden from phone menu) file attributes

.B \-newtime 
- after using it date/time of file modification will be set to moment of uploading 


.TP
.BI "addfolder" " parentfolderID name"
Create a folder in phone with specified name in a
folder with specified folder ID.
.TP
.BI "deletefiles" " fileID"
Delete files with given IDs.
.TP
.BI "deletefolder" " name"
Delete folder with given ID.
.TP
.BI "getfilefolder" " fileID, fileID, ..."
Retrieve files or all files from folder with given IDs from a phone filesytem.
.TP
.BI "getfiles" " fileID, fileID, ..."
Retrieve files with given IDs from a phone filesytem.
.TP
.BI "getfilesystem" " [\-flatall|\-flat]"
Display info about all folders and files in phone memory/memory card. By default there is tree displayed, you can change it:

.B \-flatall
there are displayed full file/folder details like ID (first parameter in line)

.B \-flat

Please note, that 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.

.TP
.BI "getfilesystemstatus"
Display info filesystem status - number of
bytes available, used or used by some specific content.
.TP
.BI "getfolderlisting" " folderID"

Display files and folders available in folder with given folder ID. You can get ID's using getfilesystem \-flatall.

Please note, that 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.

.TP
.BI "getrootfolders"

Display info about drives available in phone/memory card.

.TP
.BI "nokiaaddfile APPLICATION|GAME" " file [\-readonly] [\-overwrite] [\-overwriteall]"
Install the *.jar/*.jad file pair of a midlet in the application or game menu of the phone. You need to specify filename without the jar/jad suffix, both will be added automatically.

The option
.I \-overwrite
deletes the application's .jad and .jar files bevor installing, but doesn't delete the application data. Option
.I \-overwriteall
will also delete all data. Both these options work only for Application or Game upload.

\fIExample:\fR gammu nokiaaddfile Application Alien will read Alien.JAD and Alien.JAR and add to Applications

\fIExample:\fR gammu nokiaaddfile Tones file.mid will read file.mid and add to Tones folder

You can use jadmaker(1) to generate a .jad file from a .jar file.

.TP
.BI "nokiaaddfile GALLERY|GALLERY2|CAMERA|TONES|TONES2|RECORDS|VIDEO|PLAYLIST|MEMORYCARD" " file [\-name name] [\-protected] [\-readonly] [\-system] [\-hidden] [\-newtime]"

.TP
.BI "nokiaaddplaylists"

Goes through phone memory and generated playlist for all music files found.

To manually manage playlists:

    gammu addfile a:\\predefplaylist filename.m3u

Will add playlist filename.m3u

    gammu getfilesystem

Will get list of all files (including names of files with playlists)

    gammu deletefiles a:\\predefplaylist\\filename.m3u

Will delete playlist filename.m3u

Format of m3u playlist is easy (standard mp3 playlist):

First line is #EXTM3U, next lines contain  names of files (b:\\file1.mp3,
b:\\folder1\\file2.mp3, etc.). File needs t have '\\r\\n' terminated lines. So
just run unix2dos on the resulting file before uploading it your your phone.

.TP
.BI "sendfile" " name"
Sends file to a phone. It's up to phone to decide where
to store this file and how to handle it (for example when you send vCard or
vCalendar, most of phones will offer you to import it.

.TP
.BI "setfileattrib" " folderID [\-system] [\-readonly] [\-hidden] [\-protected]"


.SS "Logo and pictures"
.P

These options are mainly (there are few expections) for monochromatic logos and
images available in older phones. Recognized file formats: xpm (only saving),
2-colors bmp, nlm, nsl, ngg, nol, wbmp, gif (for Samsung).

In new models all bitmaps are saved in filesystem and should go into filesystem section

.TP
.BI "copybitmap" " inputfile [outputfile [OPERATOR|PICTURE|STARTUP|CALLER]]"
Allow to convert logos files to another. When give ONLY inputfile, output will
be written to stdout using ASCII art. When give output file and format, in
some file formats (like NLM) will be set indicator informing about logo type
to given.

.TP
.BI "getbitmap CALLER" " location [file]"
Get caller group logo from phone. Locations 1-5.

.TP
.BI "getbitmap DEALER"
In some models it's possible to save dealer welcome note - text displayed
during enabling phone, which can't be edited from phone menu.  Here you can
get it.

.TP
.BI "getbitmap OPERATOR" " [file]"
Get operator logo (picture displayed instead of operator name) from phone.

.TP
.BI "getbitmap PICTURE" " location [file]"
Get Picture Image from phone.

.TP
.BI "getbitmap STARTUP" " [file]"
Get static startup logo from phone. Allow to save it in file.

.TP
.BI "getbitmap TEXT"
Get startup text from phone.

.TP
.BI "savesms ANIMATION" " frames file1 file2... [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Save an animation as a SMS. You need to give
number of frames and picture for each frame. Each picture can be in any
picture format which Gammu supports (B/W bmp, gif, wbmp, nol, nlm...).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms CALLER" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Save caller logo as sms in Nokia (Smart Messaging)
format - size 72x14, two colors.

Please note, that it isn't designed for colour logos available for example in
DCT4/TIKU - you need to put bitmap file there inside phone using filesystem
commands.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms OPERATOR" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-netcode netcode] [\-biglogo]"
Save operator logo as sms in Nokia (Smart
Messaging) format - size 72x14 or 78x21 after using \fB\-biglogo\fR, all in
two colors.

Please note, that it isn't designed for colour logos available for example in
DCT4/TIKU - you need to put bitmap file there inside phone using filesystem
commands.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms PICTURE" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-text text] [\-unicode] [\-alcatelbmmi]"

Read bitmap from 2 colors file (bmp, nlm, nsl, ngg, nol, wbmp, etc.), format
into bitmap in Smart Messaging (72x28, 2 colors, called often Picture Image
and saved with text) or Alcatel format and send/save over SMS.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms ANIMATION" " destination frames file1 file2... [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms ANIMATION\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms CALLER" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms CALLER\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms OPERATOR" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-netcode netcode] [\-biglogo]"
Sends a message, for description of message specific parameters see \fBsavesms OPERATOR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms PICTURE" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-text text] [\-unicode] [\-alcatelbmmi]"
Sends a message, for description of message specific parameters see \fBsavesms PICTURE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "setbitmap CALLER" " location [file]"
Set caller logo.
.TP
.BI "setbitmap COLOUROPERATOR" " [fileID [netcode]]"
Sets color operator logo in phone.
.TP
.BI "setbitmap COLOURSTARTUP" " [fileID]"

.TP
.BI "setbitmap DEALER" " text"
Sets welcome message configured by dealer, which usually can not be changed in phone menus.
.TP
.BI "setbitmap OPERATOR" " [file [netcode]]"
Set operator logo in phone. When won't give file and netcode, operator logo
will be removed from phone. When will give only filename, operator logo will
be displayed for your current GSM operator. When give additionally network
code, it will be displayed for this operator: \fBgammu setbitmap OPERATOR file "260 02"\fR

.TP
.BI "setbitmap PICTURE" " file location [text]"
Sets picture image in phone.
.TP
.BI "setbitmap STARTUP" " file|1|2|3"
Set startup logo in phone. It can be static (then you will have to give file
name) or one of predefined animated (only some phones like Nokia 3310 or 3330
supports it, use location 1, 2 or 3 for these).

.TP
.BI "setbitmap TEXT" " text"
Sets startup text in phone.
.TP
.BI "setbitmap WALLPAPER" " fileID"
Sets wallpaper in phone.

.SS "Ringtones"
.P

Ringtones are mostly supported only for older phones. For recent phones you
usually just upload them to some folder in phone filesystem.

There are recognized various file formats by options described below: rttl,
binary format created for Gammu, mid (saving), re (reading), ott, communicator,
ringtones format found in fkn.pl, wav (saving), ime/imy (saving), rng, mmf (for
Samsung).


.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "copyringtone" " source destination [RTTL|BINARY]"
Copy source ringtone to destination.

.TP
.BI "getphoneringtone" " location [file]"

Get one of "default" ringtones and saves into file

.TP
.BI "getringtone" " location [file]"
Get ringtone from phone in RTTL or BINARY format. 

Locations are numerated from 1.

.TP
.BI "getringtoneslist"

.TP
.BI "nokiacomposer" " file"
Show, how to enter RTTL ringtone in composer existing in many Nokia phones
(and how should it look like).

.TP
.BI "playringtone" " file"
Play aproximation of ringtone over phone buzzer. File can be in RTTL or BINARY (Nokia DCT3) format.

.TP
.BI "playsavedringtone" " number"

Play one of "built" ringtones. This option is available for DCT4 phones. For getting ringtones list use getringtoneslist.

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.

.TP
.BI "savesms RINGTONE" " file [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-long] [\-scale]"
Read RTTL ringtone from file and save as SMS
into SIM/phone memory. Ringtone is saved in Nokia (Smart Messaging) format.

\fB\-long\fR - ringtone is saved using Profile style. It can be longer (and saved
in 2 SMS), but decoded only by newer phones (like 33xx)

\fB\-scale\fR - ringtone will have Scale info for each note. It will allow to edit
it correctly later in phone composer (for example, in 33xx)


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms RINGTONE" " destination file [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-long] [\-scale]"
Sends a message, for description of message specific parameters see \fBsavesms RINGTONE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "setringtone" " file [\-location location] [\-scale] [\-name name]"
Set ringtone in phone. When don't give location, it will be written
"with preview" (in phones supporting this feature like 61xx or 6210).
When use RTTL ringtones, give location and use \fB\-scale\fR, there will be written
scale info with each note. It will avoid scale problems available during
editing ringtone in composer from phone menu (for example, in N33xx).

\fITIP:\fR when use ~ char in ringtone name, in some phones (like 
33xx) name will blink later in phone menus


.SS "Calendar notes"
.P

In Nokia 3310, 3315 and 3330 these are named "Reminders" and have some limitations (depending on phone firmware version).

.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "deletecalendar" " start [stop]"
Deletes selected calendar entries in phone. 
.TP
.BI "getallcalendar"
Retrieves all calendar entries from phone.
.TP
.BI "getcalendar" " start [stop]"
Retrieves selected calendar entries from phone.
.TP
.BI "getcalendarsettings"
Displays calendar settings like first day of
week or automatic deleting of old entries.

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.

.TP
.BI "savefile CALENDAR" " target.vcs file location"
Allows to convert between various backup formats which gammu
supports for calendar events. The file type is guessed (for input file
guess is based on extension and file content, for output solely on 
extension).

For example if you want to convert single entry from gammu native 
backup to vCalendar, you need following command:

    gammu savefile CALENDAR output.vcs myCalendar.backup 260

.TP
.BI "savesms CALENDAR" " file location [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read calendar note from file created by \fBbackup\fR option and saves in
VCALENDAR 1.0 format as SMS. The location identifies position of calendar item 
to be read in backup file (usually 1, but can be useful in case the backup contains 
more items).


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms CALENDAR" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms CALENDAR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.



.SS "To do lists"
.TP
.BI "addcategory TODO|PHONEBOOK" " text"

.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "deletetodo" " start [stop]"
Deletes selected todo entries in phone. 
.TP
.BI "getallcategory TODO|PHONEBOOK"

.TP
.BI "getalltodo"
Retrieves all todo entries from phone.
.TP
.BI "getcategory TODO|PHONEBOOK" " start [stop]"

.TP
.BI "gettodo" " start [stop]"
Retrieves selected todo entries from phone.
.TP
.BI "listtodocategory" " text|number"

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.

.TP
.BI "savefile TODO" " target.vcs file location"
Allows to convert between various backup formats which gammu
supports for todo events. The file type is guessed (for input file
guess is based on extension and file content, for output solely on 
extension).

For example if you want to convert single entry from gammu native 
backup to vCalendar, you need following command:

    gammu savefile CALENDAR output.vcs myCalendar.backup 260

.TP
.BI "savesms TODO" " file location [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Saves a message with a todo entry. The content will
be read from any backup format which Gammu supports and from given location.

For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms TODO" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms TODO\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.



.SS "Notes"
.TP
.BI "getallnotes"
Reads all notes from the phone.

Note: Not all phones supports this function, especially most Sony Ericsson 
phones even if they have notes inside phone.


.SS "Date, time and alarms"
.TP
.BI "getalarm" " [start]"
Get alarm from phone, if no location is specified,
1 is used.

.TP
.BI "getdatetime"
Get date and time from phone

.TP
.BI "setalarm" " hour minute"
Sets repeating alarm in phone on selected time.
.TP
.BI "setdatetime" " [HH:MM[:SS]] [YYYY/MM/DD]"
Set date and time in phone to date and time set in computer. Please 
note, that this option doesn't show clock on phone screen. It only set
date and time.

\fITIP:\fR you can make such synchronization each time, when will connect
your phone and use Gammu. See gammurc(5) for details.


.SS "Categories"
.TP
.BI "addcategory TODO|PHONEBOOK" " text"

.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "getallcategory TODO|PHONEBOOK"

.TP
.BI "getcategory TODO|PHONEBOOK" " start [stop]"

.TP
.BI "listmemorycategory" " text|number"

.TP
.BI "listtodocategory" " text|number"

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.


.SS "Backing up and restoring"
.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "addsms" " folder file [\-yes]"
Adds SMSes from file (format like backupsms uses) to
selected folder in phone.
.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "backupsms" " file [\-yes|\-all]"
Stores all SMSes from phone to file. 

Use \-yes for answering yes to all questions (backup all messages and 
delete them from phone), or \-all to just backup all folders while keeping
messages in phone.

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.

.TP
.BI "restoresms" " file [\-yes]"
Restores SMSes from file (format like backupsms uses) to
selected folder in phone. Please note that this overwrites existing
messages in phone (if it supports it).
.TP
.BI "savefile BOOKMARK" " target.url file location"
Converts backup format supported by
Gammu to vBookmark file.
.TP
.BI "savefile CALENDAR" " target.vcs file location"
Allows to convert between various backup formats which gammu
supports for calendar events. The file type is guessed (for input file
guess is based on extension and file content, for output solely on 
extension).

For example if you want to convert single entry from gammu native 
backup to vCalendar, you need following command:

    gammu savefile CALENDAR output.vcs myCalendar.backup 260

.TP
.BI "savefile TODO" " target.vcs file location"
Allows to convert between various backup formats which gammu
supports for todo events. The file type is guessed (for input file
guess is based on extension and file content, for output solely on 
extension).

For example if you want to convert single entry from gammu native 
backup to vCalendar, you need following command:

    gammu savefile CALENDAR output.vcs myCalendar.backup 260

.TP
.BI "savefile VCARD10|VCARD21" " target.vcf file SM|ME location"
Allows to convert between various backup formats which gammu
supports for phonebook events. The file type is guessed (for input file
guess is based on extension and file content, for output solely on 
extension).

For example if you want to convert single entry from gammu native 
backup to vCard, you need following command:

    gammu savefile CALENDAR output.vcf myPhonebook.backup ME 42


.SS "Nokia specific"
.TP
.BI "nokiaaddfile APPLICATION|GAME" " file [\-readonly] [\-overwrite] [\-overwriteall]"
Install the *.jar/*.jad file pair of a midlet in the application or game menu of the phone. You need to specify filename without the jar/jad suffix, both will be added automatically.

The option
.I \-overwrite
deletes the application's .jad and .jar files bevor installing, but doesn't delete the application data. Option
.I \-overwriteall
will also delete all data. Both these options work only for Application or Game upload.

\fIExample:\fR gammu nokiaaddfile Application Alien will read Alien.JAD and Alien.JAR and add to Applications

\fIExample:\fR gammu nokiaaddfile Tones file.mid will read file.mid and add to Tones folder

You can use jadmaker(1) to generate a .jad file from a .jar file.

.TP
.BI "nokiaaddfile GALLERY|GALLERY2|CAMERA|TONES|TONES2|RECORDS|VIDEO|PLAYLIST|MEMORYCARD" " file [\-name name] [\-protected] [\-readonly] [\-system] [\-hidden] [\-newtime]"

.TP
.BI "nokiaaddplaylists"

Goes through phone memory and generated playlist for all music files found.

To manually manage playlists:

    gammu addfile a:\\predefplaylist filename.m3u

Will add playlist filename.m3u

    gammu getfilesystem

Will get list of all files (including names of files with playlists)

    gammu deletefiles a:\\predefplaylist\\filename.m3u

Will delete playlist filename.m3u

Format of m3u playlist is easy (standard mp3 playlist):

First line is #EXTM3U, next lines contain  names of files (b:\\file1.mp3,
b:\\folder1\\file2.mp3, etc.). File needs t have '\\r\\n' terminated lines. So
just run unix2dos on the resulting file before uploading it your your phone.

.TP
.BI "nokiacomposer" " file"
Show, how to enter RTTL ringtone in composer existing in many Nokia phones
(and how should it look like).

.TP
.BI "nokiadebug" " filename [[v11\-22] [,v33\-44]...]"

.TP
.BI "nokiadisplayoutput"

.TP
.BI "nokiadisplaytest" " number"

.TP
.BI "nokiagetadc"

.TP
.BI "nokiagetoperatorname"
6110.c phones have place for name for one GSM network (of course, with flashing it's
possible to change all names, but Gammu is not flasher ;\-)). You can get this
name using this option.

.TP
.BI "nokiagetpbkfeatures" " memorytype"

.TP
.BI "nokiagetscreendump"

.TP
.BI "nokiagett9"
This option should display T9 dictionary content from
DCT4 phones.

.TP
.BI "nokiagetvoicerecord" " location"

Get voice record from location and save to WAV file. File is
coded using GSM 6.10 codec (available for example in win32). Name
of file is like name of voice record in phone.

Created WAV files require GSM 6.10 codec to be played. In Win XP it's included
by Microsoft. If you deleted it by accident in this operating system, make such
steps:

1. Control Panel
.br
2. Add hardware
.br
3. click Next
.br
4. select "Yes. I have already connected the hardware"
.br
5. select "Add a new hardware device"
.br
6. select "Install the hardware that I manually select from a list"
.br
7. select "Sound, video and game controllers"
.br
8. select "Audio codecs"
.br
9.  select "windows\\system32" directory and file "mmdriver.inf"
.br
10. if You will be asked for file msgsm32.acm, it should unpacked from Windows CD
.br
11. 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)

.TP
.BI "nokiamakecamerashoot"

.TP
.BI "nokianetmonitor" " test"
Takes output or set netmonitor for Nokia DCT3 phones.

\fITIP:\fR For more info about this option, please visit
\fIhttp://www.mwiacek.com\fR and read netmonitor manual.

\fITIP:\fR test \fB243\fR enables all tests (after using command
\fBgammu nokianetmonitor 243\fR in some phones like 6210 or 9210 have to
reboot them to see netmonitor menu)

.TP
.BI "nokianetmonitor36"
Reset counters from netmonitor test 36 in Nokia DCT3 phones.

\fITIP:\fR For more info about this option, please visit
\fIhttp://www.mwiacek.com\fR and read netmonitor manual.

.TP
.BI "nokiasecuritycode"
Get/reset to "12345" security code

.TP
.BI "nokiaselftests"

Perform tests for Nokia DCT3 phones.

Note: EEPROM test can show an error when your phone has an EEPROM in 
flash (like 82xx/7110/62xx/33xx). The clock test will show an error 
when the phone doesn?t have an internal battery for the clock (like
3xxx).

.TP
.BI "nokiasetlights" " keypad|display|torch on|off"

.TP
.BI "nokiasetoperatorname" " [networkcode name]"

.TP
.BI "nokiasetphonemenus"
Enable all (?) possible menus for DCT3 Nokia phones:

1. ALS (Alternative Line Service) option menu
.br
2. vibra menu for 3210
.br
3. 3315 features in 3310 5.45 and higher
.br
4. two additional games (React and Logic) for 3210 5\.31 and higher
.br
5. WellMate menu for 6150
.br
6. NetMonitor

and for DCT4:

1. ALS (Alternative Line Service) option menu
.br
2. Bluetooth, WAP bookmarks and settings menu, ... (6310i)
.br
3. GPRS Always Online
.br
 ...

.TP
.BI "nokiasetvibralevel" " level"
Set vibra power to "level" (given in percent)

.TP
.BI "nokiatuneradio"

.TP
.BI "nokiavibratest"


.SS "Siemens specific"
.TP
.BI "siemensnetmonact" " netmon_type"

Enables network monitor in Siemens phone. Currently known values for type
are 1 for full and 2 for simple mode.
.TP
.BI "siemensnetmonitor" " test"

.TP
.BI "siemenssatnetmon"


.SS "Network"
.TP
.BI "getgprspoint" " start [stop]"

.TP
.BI "listnetworks" " [country]"
Show names/codes of GSM networks known for Gammu

.TP
.BI "monitor" " [times]"
Get phone status and writes continuously to standard output. Press Ctrl+C
to break this state.

.TP
.BI "networkinfo"
Show information about network status from the phone.

.TP
.BI "nokiadebug" " filename [[v11\-22] [,v33\-44]...]"

.TP
.BI "nokiagetoperatorname"
6110.c phones have place for name for one GSM network (of course, with flashing it's
possible to change all names, but Gammu is not flasher ;\-)). You can get this
name using this option.

.TP
.BI "nokianetmonitor" " test"
Takes output or set netmonitor for Nokia DCT3 phones.

\fITIP:\fR For more info about this option, please visit
\fIhttp://www.mwiacek.com\fR and read netmonitor manual.

\fITIP:\fR test \fB243\fR enables all tests (after using command
\fBgammu nokianetmonitor 243\fR in some phones like 6210 or 9210 have to
reboot them to see netmonitor menu)

.TP
.BI "nokiasetoperatorname" " [networkcode name]"

.TP
.BI "setautonetworklogin"

.TP
.BI "siemensnetmonact" " netmon_type"

Enables network monitor in Siemens phone. Currently known values for type
are 1 for full and 2 for simple mode.
.TP
.BI "siemensnetmonitor" " test"

.TP
.BI "siemenssatnetmon"


.SS "WAP settings and bookmarks"
.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "deletewapbookmark" " start [stop]"
Delete WAP bookmarks from phone. 

Locations are numerated from 1.

.TP
.BI "getchatsettings" " start [stop]"

.TP
.BI "getsyncmlsettings" " start [stop]"

.TP
.BI "getwapbookmark" " start [stop]"
Get WAP bookmarks from phone. 

Locations are numerated from 1.

.TP
.BI "getwapsettings" " start [stop]"
Get WAP settings from phone. 

Locations are numerated from 1.

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.

.TP
.BI "savefile BOOKMARK" " target.url file location"
Converts backup format supported by
Gammu to vBookmark file.
.TP
.BI "savesms BOOKMARK" " file location [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read WAP bookmark from file created by \fBbackup\fR option and saves in
Nokia format as SMS


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms WAPINDICATOR" " URL Title [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Saves a SMS with a WAP indication for given
URL and title.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms WAPSETTINGS" " file location DATA|GPRS [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Read WAP settings from file created by \fBbackup\fR option and saves in Nokia format as SMS


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms BOOKMARK" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms BOOKMARK\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms WAPINDICATOR" " destination URL Title [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms WAPINDICATOR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms WAPSETTINGS" " destination file location DATA|GPRS [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms WAPSETTINGS\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.



.SS "MMS and MMS settings"
.TP
.BI "getallmms" " [\-save]"

.TP
.BI "geteachmms" " [\-save]"

.TP
.BI "getmmsfolders"

.TP
.BI "getmmssettings" " start [stop]"

.TP
.BI "readmmsfile" " file [\-save]"

.TP
.BI "savesms MMSINDICATOR" " URL Title Sender [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"

Saves a message with MMS indication. The recipient phone will then download
MMS from given URL and display it.

Please note that you should provide valid smil data on that URL.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "savesms MMSSETTINGS" " file location  [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Saves a message with MMS configuration. The
configuration will be read from Gammu backup file from given location.

For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms MMSINDICATOR" " destination URL Title Sender [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms MMSINDICATOR\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms MMSSETTINGS" " destination file location [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num]"
Sends a message, for description of message specific parameters see \fBsavesms MMSSETTINGS\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.



.SS "Phone tests"
.TP
.BI "nokiadisplaytest" " number"

.TP
.BI "nokiagetadc"

.TP
.BI "nokiaselftests"

Perform tests for Nokia DCT3 phones.

Note: EEPROM test can show an error when your phone has an EEPROM in 
flash (like 82xx/7110/62xx/33xx). The clock test will show an error 
when the phone doesn?t have an internal battery for the clock (like
3xxx).

.TP
.BI "nokiasetlights" " keypad|display|torch on|off"

.TP
.BI "nokiavibratest"


.SS "FM radio"
.TP
.BI "addnew" " file [\-yes] [\-memory ME|SM|..]"
Adds data written in file created using \fBbackup option\fR. All things
backup'ed by \fBbackup\fR can be restored (when made backup to Gammu text
file).

Please note that this adds all content of backup file to phone and
does not care about current data in the phone (no duplicates are 
detected).

Use \-yes parameter to answer yes to all questions (you want to automatically 
restore all data).

Use \-memory parameter to force usage of defined memory type for storing entries 
regardless what backu format says.

.TP
.BI "backup" " file [\-yes]"
Backup your phone to file. It's possible to backup (depends on phone and backup format):

* phonebook from SIM and phone memory
.br
* calendar notes
.br
* SMSC settings
.br
* operator logo
.br
* startup (static) logo or startup text
.br
* WAP bookmarks
.br
* WAP settings
.br
* caller logos and groups
.br
* user ringtones
.br

There are various backup formats supported and the backup format is guessed
based on file extension:

* .lmb - Nokia backup, supports contacts, caller logos and startup logo.
.br
* .vcs - vCalendar, supports calendar and todo.
.br
* .vcf - vCard, supports contacts.
.br
* .ldif - LDAP import, supports contacts.
.br
* .ics - iCalendar, supports calendar and todo.
.br
* Any other extension is Gammu backup file and it supports all data mentioned above.

See \fBEXAMPLE\fR section for some hints on manipulating Gammu backup format.


.TP
.BI "clearall"
Deletes all private data from the phone.

.TP
.BI "getfmstation" " start [stop]"
Show info about FM stations in phone

.TP
.BI "nokiatuneradio"

.TP
.BI "restore" " file [\-yes]"
Restore settings written in file created using \fBbackup\fR option. 

Please note that restoring deletes all current content in phone. If you
want only to add entries to phone, use addnew.

In some phones restoring calendar notes will not show error, but won't
be done, when phone doesn't have set clock inside.


.SS "Phone information"
.TP
.BI "getdisplaystatus"

.TP
.BI "getlocation"
Gets network information from phone (same as networkinfo)
and prints location (latitude and longitude) based on information from 
OpenCellID <http://opencellid.org>.

.TP
.BI "getsecuritystatus"
Show, if phone wait for security code (like PIN, PUK, etc.) or not

.TP
.BI "identify"
Show the most important phone data.

.TP
.BI "monitor" " [times]"
Get phone status and writes continuously to standard output. Press Ctrl+C
to break this state.

.TP
.BI "nokiasecuritycode"
Get/reset to "12345" security code


.SS "Phone settings"
.TP
.BI "getcalendarsettings"
Displays calendar settings like first day of
week or automatic deleting of old entries.

.TP
.BI "getprofile" " start [stop]"

.TP
.BI "resetphonesettings PHONE|DEV|UIF|ALL|FACTORY"
Reset phone settings. \fIBE CAREFULL !!!!\fR

\fBPHONE:\fR
.br

\fBDEV:\fR
.br

\fBALL:\fR 

Clear user settings
.br
* removes or set logos to default
.br
* set default phonebook and other menu settings
.br
* clear T9 words,
.br
* clear call register info
.br
* set default profiles settings 
.br
* clear user ringtones

\fBUIF:\fR
.br
* changes like after \fBALL\fR
.br
* disables netmon and PPS (all "hidden" menus)

\fBFACTORY:\fR
.br
* changes like after \fBUIF\fR
.br
* clear date/time

.TP
.BI "savesms PROFILE" " [\-folder id] [\-unread] [\-read] [\-unsent] [\-sent] [\-sender number] [\-smsname name] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-name name] [\-bitmap bitmap] [\-ringtone ringtone]"

Read ringtone (RTTL) format, bitmap (Picture Image size) and name, format into
Smart Messaging profile and send/save as SMS. Please note, that this format is
abandomed by Nokia and supported by some (older) devices only like Nokia 3310.


For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.


.TP
.BI "sendsms PROFILE" " destination [\-report] [\-validity HOUR|6HOURS|DAY|3DAYS|WEEK|MAX] [\-save [\-folder number]] [\-smscset number] [\-smscnumber number] [\-reply] [\-maxsms num] [\-name name] [\-bitmap bitmap] [\-ringtone ringtone]"
Sends a message, for description of message specific parameters see \fBsavesms PROFILE\fR.



For description of shared parameters see \fBCommon parameters for sendsms and savesms\fR.



.SS "Dumps decoding"
.TP
.BI "decodebinarydump" " file [phonemodel]"
Decodes a dump made by Gammu with 
\fBlogformat\fR se to \fBbinary\fR (see \fIREADME\fR for
info about this method of reporting bugs).

This option is available only if Gammu was compiled with debuging options.


.TP
.BI "decodesniff MBUS2|IRDA" " file [phonemodel]"
Option available only, if Gammu was compiled with debug. Allows to decode
sniffs. See \fI/docs/develop/develop.txt\fR for more details.


.SS "Functions that don't fit elsewhere"
.TP
.BI "batch" " [file]"
Starts Gammu in a batch mode. In this mode you can issue
several commands each on one line. Lines starting with # are treated as a
comments.

By default, commands are read from standard input, but you can optionally
specify a file from where they would be read (special case - means standard
input).

.TP
.BI "entersecuritycode PIN|PUK|PIN2|PUK2|PHONE|NETWORK" " code|\-"
Allow to enter security code from PC. When code is \-, it is read from stdin.

.TP
.BI "nokiagetscreendump"

.TP
.BI "nokiagetvoicerecord" " location"

Get voice record from location and save to WAV file. File is
coded using GSM 6.10 codec (available for example in win32). Name
of file is like name of voice record in phone.

Created WAV files require GSM 6.10 codec to be played. In Win XP it's included
by Microsoft. If you deleted it by accident in this operating system, make such
steps:

1. Control Panel
.br
2. Add hardware
.br
3. click Next
.br
4. select "Yes. I have already connected the hardware"
.br
5. select "Add a new hardware device"
.br
6. select "Install the hardware that I manually select from a list"
.br
7. select "Sound, video and game controllers"
.br
8. select "Audio codecs"
.br
9.  select "windows\\system32" directory and file "mmdriver.inf"
.br
10. if You will be asked for file msgsm32.acm, it should unpacked from Windows CD
.br
11. 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)

.TP
.BI "nokiamakecamerashoot"

.TP
.BI "nokiasetphonemenus"
Enable all (?) possible menus for DCT3 Nokia phones:

1. ALS (Alternative Line Service) option menu
.br
2. vibra menu for 3210
.br
3. 3315 features in 3310 5.45 and higher
.br
4. two additional games (React and Logic) for 3210 5\.31 and higher
.br
5. WellMate menu for 6150
.br
6. NetMonitor

and for DCT4:

1. ALS (Alternative Line Service) option menu
.br
2. Bluetooth, WAP bookmarks and settings menu, ... (6310i)
.br
3. GPRS Always Online
.br
 ...

.TP
.BI "nokiasetvibralevel" " level"
Set vibra power to "level" (given in percent)

.TP
.BI "presskeysequence" " mMnNpPuUdD+\-123456789*0#gGrR<>[]hHcCjJfFoOmMdD@"
Press specified key sequence on phone keyboard

\fBmM\fR - Menu
.br
\fBnN\fR - Names key
.br
\fBpP\fR - Power
.br
\fBuU\fR - Up
.br
\fBdD\fR - Down
.br
\fB+\-\fR - +\-
.br
\fBgG\fR - Green
.br
\fBrR\fR - Red
.br
\fB123456789*0#\fR is numeric keyboard

.TP
.BI "reset SOFT|HARD"
Make phone reset: soft (without asking for PIN) or hard (with PIN).

\fINote:\fR some phones will make hard reset even with \fBSOFT\fR option.

.TP
.BI "searchphone" " [\-debug]"
Attempts to search for a connected phone. Please note
that this can take a very long time, but in case you have no clue how to
configure phone connection, this is a convenient way to find working setup for
Gammu.

.SS "Gammu information"
.TP
.BI "checkversion" " [STABLE]"
Checks whether there is newer Gammu version
available online (if Gammu has been compiled with CURL). If you pass
additional parameter \fBSTABLE\fR, only stable versions will be checked.

.TP
.BI "features"
Print information about compiled in features.

.TP
.BI "help" " [topic]"
Print help. By default general help is printed, but you can
also specify a help category to get more detailed help on some topic.

.TP
.BI "version"
Print version information and license.


.SH "FILES"

.P 
\fI~/.gammurc\fP
.br
\fI/usr/share/doc/gammu/*\fP
.br
\fI/dev/ircomm?\fP
.br
\fI/dev/ttyS?\fP
.br
\fI/dev/ttyACM?\fP

.SH "RETURN VALUES"

.P 
gammu returns 0 on success. In case of failure non zero code is 
returned. 

.SS 1
Out of memory or other critical error.

.SS 2
Invalid command line parameters.

.SS 3
Failed to open file specified on command line.

.SS 4
Program was interrupted.

.SS 98
Gammu library version mismatch.

.SS 99
Functionality has been moved. For example to gammu-smsd(1).

Errors codes greater than 100 map to the GSM_Error 
values increased by 100:

.SS 101
No error.
.SS 102
Error opening device. Unknown, busy or no permissions.
.SS 103
Error opening device, it is locked.
.SS 104
Error opening device, it doesn't exist.
.SS 105
Error opening device, it is already opened by other application.
.SS 106
Error opening device, you don't have permissions.
.SS 107
Error opening device. No required driver in operating system.
.SS 108
Error opening device. Some hardware not connected/wrongly configured.
.SS 109
Error setting device DTR or RTS.
.SS 110
Error setting device speed. Maybe speed not supported.
.SS 111
Error writing to the device.
.SS 112
Error during reading from the device.
.SS 113
Can't set parity on the device.
.SS 114
No response in specified timeout. Probably phone not connected.
.SS 115
Frame not requested right now. See <http://wammu.eu/support/bugs/> for information how to report it.
.SS 116
Unknown response from phone. See <http://wammu.eu/support/bugs/> for information how to report it.
.SS 117
Unknown frame. See <http://wammu.eu/support/bugs/> for information how to report it.
.SS 118
Unknown connection type string. Check config file.
.SS 119
Unknown model type string. Check config file.
.SS 120
Some functions not available for your system (disabled in config or not implemented).
.SS 121
Function not supported by phone.
.SS 122
Entry is empty.
.SS 123
Security error. Maybe no PIN?
.SS 124
Invalid location. Maybe too high?
.SS 125
Functionality not implemented. You are welcome to help authors with it.
.SS 126
Memory full.
.SS 127
Unknown error.
.SS 128
Can not open specified file.
.SS 129
More memory required...
.SS 130
Operation not allowed by phone.
.SS 131
No SMSC number given. Provide it manually or use the one configured in phone.
.SS 132
You're inside phone menu (maybe editing?). Leave it and try again.
.SS 133
Phone is not connected.
.SS 134
Function is currently being implemented. If you want to help, please contact authors.
.SS 135
Phone is disabled and connected to charger.
.SS 136
File format not supported by Gammu.
.SS 137
Nobody is perfect, some bug appeared in protocol implementation. Please contact authors.
.SS 138
Transfer was canceled by phone, maybe you pressed cancel on phone.
.SS 139
Phone module need to send another answer frame.
.SS 140
Current connection type doesn't support called function.
.SS 141
CRC error.
.SS 142
Invalid date or time specified.
.SS 143
Phone memory error, maybe it is read only.
.SS 144
Invalid data given to phone.
.SS 145
File with specified name already exists.
.SS 146
File with specified name doesn't exist.
.SS 147
You have to give folder name and not file name.
.SS 148
You have to give file name and not folder name.
.SS 149
Can not access SIM card.
.SS 150
Wrong GNAPPLET version in phone. Use version from currently used Gammu.
.SS 151
Only part of folder has been listed.
.SS 152
Folder must be empty.
.SS 153
Data were converted.
.SS 154
Gammu is not configured.
.SS 155
Wrong folder used.
.SS 156
Internal phone error.
.SS 157
Error writing file to disk.
.SS 158
No such section exists.
.SS 159
Using default values.
.SS 160
Corrupted data returned by phone.
.SS 161
Bad feature string in configuration.
.SS 162
Desired functionality has been disabled on compile time.
.SS 163
Bluetooth configuration requires channel option.
.SS 164
Service is not runnig.
.SS 165
Service configuration is missing.
.SS 166
Command rejected because device was busy. Wait and restart.
.SS 167
Could not connect to the server.
.SS 168
Could not resolve the host name.
.SS 169
Failed to get SMSC number from phone.

.SH "EXAMPLE"


.SS Configuration

.P 
To check it out, you need to have configuration file for gammu, see 
gammurc(5) for more details about it.

.SS Sending messages

.TP
Save text message up to standard 160 chars:

.RS
.sp
.nf
.ne 7
echo "All your base are belong to us" | gammu savesms TEXT
.fi
.sp
.RE
.PP

or 

.RS
.sp
.nf
.ne 7
gammu savesms TEXT \-text "All your base are belong to us"
.fi
.sp
.RE
.PP

.TP
Save long text message:

.RS
.sp
.nf
.ne 7
echo "All your base are belong to us" | gammu savesms TEXT \-len 400
.fi
.sp
.RE
.PP

or 

.RS
.sp
.nf
.ne 7
gammu savesms TEXT \-len 400 \-text "All your base are belong to us"
.fi
.sp
.RE
.PP

or

.RS
.sp
.nf
.ne 7
gammu savesms EMS \-text "All your base are belong to us"
.fi
.sp
.RE
.PP

.TP
Save some funky message with predefined sound and animation from 2 bitmaps:

.RS
.sp
.nf
.ne 7
gammu savesms EMS \-text "Greetings" \-defsound 1 \-text "from Gammu"
\-tone10 axelf.txt \-animation 2 file1.bmp file2.bmp
.fi
.sp
.RE
.PP

.TP
Save protected message with ringtone:

.RS
.sp
.nf
.ne 7
gammu savesms EMS \-protected 2 \-variablebitmaplong ala.bmp
\-toneSElong axelf.txt \-toneSE ring.txt
.fi
.sp
.RE
.PP

.SS Backups

If you will backup settings to Gammu text file, it will be possible to edit
it. It's easy: many things in this file will be written double - once in Unicode,
once in ASCII. When you will remove Unicode version Gammu will use ASCII
on \fBrestore\fR (and you can easy edit ASCII text) and will convert it
according to your OS locale. When will be available Unicode version of text,
it will be used instead of ASCII (useful with Unicode phones - it isn't important,
what locale is set in computer and no conversion Unicode \-> ASCII and ASCII \->
Unicode is done).

You can use any editor with regular expressions function to edit backup text
file. Examples of such editors can be vim <http://www.vim.org/> or TextPad
<http://www.textpad.com/> which both do support regular expressions.

.TP
Remove info about voice tags

Find: ^Entry\\([0\-9][0\-9]\\)VoiceTag = \\(.*\\)\\n

Replace:

.TP
Change all numbers starting from +3620, +3630, +3660, +3670 to +3620

Find: Type = NumberGeneral\\nEntry\\([0\-9][0\-9]\\)Text = "\\+36\\(20\\|30\\|60\\|70\\)\\n

Replace: Type = NumberMobile\\nEntry\\1Text = "\\+3620

.TP
Change phone numbers type to mobile for numbers starting from +3620, +3630,... and removing the corresponding TextUnicode line

Find: Type = NumberGeneral\\nEntry\\([0\-9][0\-9]\\)Text = "\\+36\\([2367]0\\)\\([^\\"]*\\)"\\nEntry\\([0\-9][0\-9]\\)TextUnicode = \\([^\\n]*\\)\\n

Replace: Type = NumberMobile\\nEntry\\1Text = "\\+36\\2\\3"\\n


.SH "COPYRIGHT"

Copyright \(co 2003 - 2010 Marcin Wiacek, Michal Cihar and other authors.
License GPLv2: GNU GPL version 2 <http://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html>
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

.SH "REPORTING BUGS"

There are definitely many bugs, reporting to author is welcome. Please include
some useful information when sending bug reports (especially debug logs,
operating system, it's version and phone information are needed).

.P
To generate debug log, enable it in gammurc (alternatively you can
do it on command line using \-d textall \-f /tmp/gammu.log):

.RS
.sp
.nf
.ne 7
[gammu]
YOUR CONNECTION SETTINGS
logfile = /tmp/gammu.log
logformat = textall
.fi
.sp
.RE
.PP

With this settings, Gammu generates /tmp/gammu.log on each connection to
phone and stores dump of communication there. You can also find some
hints for improving support for your phone in this log.

See <http://wammu.eu/support/bugs/> for more information on reporting bugs.

Please report bugs to <http://bugs.cihar.com>.

.SH "AUTHOR"

.P 
You can contact authors on <gammu-users@lists.sourceforge.net>.

.P 
\fIMichal Cihar\fR
<michal@cihar.com>
is current project maintainer and contributor of most of AT and OBEX
code.

.P 
\fIMarcin Wiacek\fR
<marcin@mwiacek.com>
is project iniciator and contributor of most Nokia code.

.P
As this project grew from Gnokii, we would like to thanks all Gnokii
developers, especially \fIPavel Janik\fR, \fIPawel Kot\fR
and \fIManfred Jonsson\fR (see CREDITS from Gnokii for all their
contributor).

.P
Many other people have helped with various features, check ChangeLog for
more details.

.SH "SEE ALSO"

.P
gammu\-smsd(1), gammu\-smsd\-inject(1), gammurc(5), jadmaker(1)

Some more hints can be found in README file or on wiki <http://www.gammu.org/>.

Related programs which can be used with GSM modem:

cu(1), gnokii(1), minicom(1)

Graphical interfaces for Gammu:

wammu(1), gmobilemedia(1)