summaryrefslogtreecommitdiff
path: root/docs/manual/faq/general.rst
blob: de8e74f8573a19e2ae7208973d3d3e832fb6c674 (plain)
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
General Gammu FAQ
=================

Will Gammu work on my system?
-----------------------------

Gammu is known to run on wide range of systems. It can be compiled natively on
Linux, Mac OS X, FreeBSD, OpenBSD and Microsoft Windows. It can be probably
compiled also elsewhere, but nobody has yet tried. On some platforms however
you might lack support for some specific kind of devices (eg. Bluetooth or
USB).

.. seealso:: :ref:`installing`

How to set sender number in message?
------------------------------------

You can quite often see messages sent from textual address or with some other
nice looking sender number. However this needs to be done in the GSM network
and it is not possible to influence this from the terminal device (phone).
Usually it is set by SMSC and some network providers allow you to set this
based on some contract. Alternatively you can use their SMS gateways, which
also allow this functionality.

.. seealso:: :ref:`gammu-sms`

Can I use Gammu to send MMS?
----------------------------

MMS contains of two parts - the actual MMS data in SMIL format and the SMS
containing notification about the data. Gammu can create the notification SMS,
where you just need to put URL of the data (use :option:`gammu sendsms`
MMSINDICATOR for that). However you need to encode MMS data yourself or use
other program to do that.

.. _faq-devname:

Device name always changes on Linux, how to solve that?
-------------------------------------------------------

You can use udev to assign persistent device name (used as
:config:option:`Device`). You can either use standard persistent names based on
serial number (located in :file:`/dev/serial/by-id/`) or define own rules::

    ACTION=="add", SUBSYSTEMS=="usb", ATTRS{manufacturer}=="Nokia", KERNEL=="ttyUSB*", SYMLINK+="phone"

Better is to use vendor and product IDs (you can get them for example using :command:`lsusb`)::

    ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="yyyy", SYMLINK+="phone"

If you're using 3G modem, it's quite likely that it exposes multiple interfaces
and only one of them is good for Gammu usage. In this case you should match
against interface number as well::

    ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="yyyy", ATTRS{bInterfaceNumber}=="00", SYMLINK+="phone"

You can match by various attributes, you can figure them using udevadm command:

.. code-block:: sh

    udevadm info --name=/dev/ttyUSB1 --attribute-walk

.. seealso::

    Various documentation on creating persistent device names using udev is
    available online, for example on the `Debian wiki`_ or in
    `Writing udev rules`_ document.

.. _echo:

Mutliple programs using same device cause various errors, how to fix that?
--------------------------------------------------------------------------

Gammu needs to be the only program using the device, otherwise you will get
strange errors from both programs as they will read answer to command sent by
something else.

In gammu, it can happen quite early with error message "Phone does not support
enabled echo, it can not work with Gammu!", but it can be spotted later as
well, depending on various conditions.

In case you see such behavior, check what other programs are using given device.
This can be done using :program:`fuser` tool:

.. code-block:: sh

    fuser -va /dev/ttyACM0

The usual programs involve:

* NetworkManager with ModemManager, you need to disable mobile networking to
  stop it using the device, disabling the modem connection does not seem to be
  enough.
* Other Gammu instance, in case you want to interact with modem while SMSD is 
  running see :ref:`gammu-smsd-suspend`.


What are free alternatives to Gammu?
------------------------------------

It depends on your phone. For Nokia or AT based phones, you can try `Gnokii`_,
but Gammu should be superior in most cases. For Symbian phone you can try using
`Series60-Remote`_, which works pretty well with S60 phones, though Gammu 
brings various fixes to their applet.

If you are looking for synchronisation, try using something what supports
SyncML to retrieve contacts or calendar from your phone, for example
`OpenSync`_ or `syncEvolution`_.

.. _Debian wiki: http://wiki.debian.org/udev#persistent-name
.. _Writing udev rules: http://reactivated.net/writing_udev_rules.html
.. _Series60-Remote: http://series60-remote.sourceforge.net/
.. _OpenSync: http://www.opensync.org/
.. _syncEvolution: http://syncevolution.org/
.. _Gnokii: http://gnokii.org/