Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a474e70ca98abfe6bb4b8782531be579 > files > 51

gammu-1.26.1-2mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"
 lang="en">
<head>
  <link rel="alternate" title="Gammu news"
 href="http://www.mwiacek.com/gsm/soft/gammu.rss"
 type="application/rss+xml" />
  <link rel="alternate" title="Python-Gammu news"
 href="http://blog.cihar.com/archives/python-gammu/index.xml"
 type="application/rss+xml" />
  <link rel="alternate" title="Wammu news"
 href="http://blog.cihar.com/archives/wammu/index.xml"
 type="application/rss+xml" />
  <link rel="alternate" title="Gammu+ news"
 href="http://www.mwiacek.com/gsm/soft/gplus.rss"
 type="application/rss+xml" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="keywords"
 content="Gammu:Readme,Connecting to phone,Setting configuration file,Gammu localisation,Main Page,Port parameters,SMSD,Wammu,Mirrors,Download,Main Page" />
  <title>Gammu:Readme - Gammu.org wiki</title>
</head>
<body class="ns-100 ltr" leftmargin="0" bottommargin="0" rightmargin="0"
 topmargin="0" marginheight="0" marginwidth="0">
<br />
<div style="position: relative; left: 0pt; top: 0pt; width: 100%;">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<h1 class="firstHeading">Gammu:Readme</h1>
<div id="bodyContent">
<h3 id="siteSub">From Gammu.org wiki</h3>
<div id="contentSub"></div>
<ul>
  <li class="toclevel-1"><span class="tocnumber">1</span> <span
 class="toctext">Compiling under Borland C++ 3.1 for MS-DOS</span></li>
  <li class="toclevel-1"><span class="tocnumber">2</span> <span
 class="toctext">Compiling under DJGPP for MS-DOS</span></li>
  <li class="toclevel-1"><span class="tocnumber">3</span> <span
 class="toctext">Using source tarballs in Linux</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">3.1</span> <span
 class="toctext">Compiling and installing from source tarballs</span></li>
      <li class="toclevel-2"><span class="tocnumber">3.2</span> <span
 class="toctext">Creating Debian packages</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">4</span> <span
 class="toctext">Using ready packages in Linux</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">4.1</span> <span
 class="toctext">RPM based distributions</span></li>
      <li class="toclevel-2"><span class="tocnumber">4.2</span> <span
 class="toctext">Debian</span></li>
      <li class="toclevel-2"><span class="tocnumber">4.3</span> <span
 class="toctext">Ubuntu</span></li>
      <li class="toclevel-2"><span class="tocnumber">4.4</span> <span
 class="toctext">Gentoo</span></li>
      <li class="toclevel-2"><span class="tocnumber">4.5</span> <span
 class="toctext">Arch Linux</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">5</span> <span
 class="toctext">Installing binary version in Windows</span></li>
  <li class="toclevel-1"><span class="tocnumber">6</span> <span
 class="toctext">Compiling using MS Visual C++</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">6.1</span> <span
 class="toctext">commercial version 6.0</span></li>
      <li class="toclevel-2"><span class="tocnumber">6.2</span> <span
 class="toctext">commercial version 7.0, 7.1 (.NET)</span></li>
      <li class="toclevel-2"><span class="tocnumber">6.3</span> <span
 class="toctext">free Visual C++ Express 2005</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">7</span> <span
 class="toctext">Compiling using Borland C++</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">7.1</span> <span
 class="toctext">free (for non commercial use) Borland C++ Builder 5/6
Personal</span></li>
      <li class="toclevel-2"><span class="tocnumber">7.2</span> <span
 class="toctext">free Borland C++ 5.5 command line tools</span></li>
      <li class="toclevel-2"><span class="tocnumber">7.3</span> <span
 class="toctext">Borland C++ X</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">8</span> <span
 class="toctext">Compiling using CygWin for Windows</span></li>
  <li class="toclevel-1"><span class="tocnumber">9</span> <span
 class="toctext">Connecting to Symbian (Nokia and probably other)</span></li>
  <li class="toclevel-1"><span class="tocnumber">10</span> <span
 class="toctext">Connecting to Nokia without Symbian</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">10.1</span> <span
 class="toctext">Cable</span>
        <ul>
          <li class="toclevel-3"><span class="tocnumber">10.1.1</span> <span
 class="toctext">DKU2 cable</span></li>
          <li class="toclevel-3"><span class="tocnumber">10.1.2</span> <span
 class="toctext">DKU5 cable</span></li>
          <li class="toclevel-3"><span class="tocnumber">10.1.3</span> <span
 class="toctext">ark3116 cable</span></li>
        </ul>
      </li>
      <li class="toclevel-2"><span class="tocnumber">10.2</span> <span
 class="toctext">Infrared</span></li>
      <li class="toclevel-2"><span class="tocnumber">10.3</span> <span
 class="toctext">Bluetooth</span></li>
      <li class="toclevel-2"><span class="tocnumber">10.4</span> <span
 class="toctext">Flasher Cables</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">11</span> <span
 class="toctext">Connecting to Ericsson / Siemens / Samsung / Alcatel</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">11.1</span> <span
 class="toctext">Cable</span></li>
      <li class="toclevel-2"><span class="tocnumber">11.2</span> <span
 class="toctext">Infrared</span></li>
      <li class="toclevel-2"><span class="tocnumber">11.3</span> <span
 class="toctext">Bluetooth</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">12</span> <span
 class="toctext">General connection notes</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">12.1</span> <span
 class="toctext">Cables</span></li>
      <li class="toclevel-2"><span class="tocnumber">12.2</span> <span
 class="toctext">Infrared</span></li>
      <li class="toclevel-2"><span class="tocnumber">12.3</span> <span
 class="toctext">Bluetooth</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">13</span> <span
 class="toctext">Configuration file options</span>
    <ul>
      <li class="toclevel-2"><span class="tocnumber">13.1</span> <span
 class="toctext">port</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.2</span> <span
 class="toctext">model</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.3</span> <span
 class="toctext">connection</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.4</span> <span
 class="toctext">synchronizetime</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.5</span> <span
 class="toctext">logfile</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.6</span> <span
 class="toctext">logformat</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.7</span> <span
 class="toctext">use_locking</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.8</span> <span
 class="toctext">gammuloc</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.9</span> <span
 class="toctext">startinfo</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.10</span> <span
 class="toctext">gammucoding</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.11</span> <span
 class="toctext">rsslevel</span></li>
      <li class="toclevel-2"><span class="tocnumber">13.12</span> <span
 class="toctext">UsePhoneDB</span></li>
    </ul>
  </li>
  <li class="toclevel-1"><span class="tocnumber">14</span> <span
 class="toctext">Working with
multiple phones</span></li>
</ul>
<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<p align="right">Return to <a
 href="http://www.gammu.org/wiki/index.php?title=Main_Page"
 title="Main Page">Main page</a>|<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Main_Page"
 title="Gammu:Main Page">Gammu main page</a></p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_DOS&amp;action=edit&amp;section=1"
 title="Gammu:Compiling/installing in DOS">edit</a>]</div>
<h2> Compiling under Borland C++ 3.1 for MS-DOS </h2>
<p>Non successfull
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_DOS&amp;action=edit&amp;section=2"
 title="Gammu:Compiling/installing in DOS">edit</a>]</div>
<h2> Compiling under DJGPP for MS-DOS </h2>
<p>To get and install DJGPP you can try such steps:
</p>
<ul>
  <li> see <a href="http://www.midpec.com/djgpp/" class="external free"
 title="http://www.midpec.com/djgpp/" rel="nofollow">http://www.midpec.com/djgpp/</a>
(you have many informations there) </li>
</ul>
<p>OR
</p>
<ul>
  <li> go directly into <a href="http://www.simtel.net/"
 class="external free" title="http://www.simtel.net" rel="nofollow">http://www.simtel.net</a>
  </li>
  <li> find section for getting DJGPP </li>
  <li> download packages (or newer):
    <ul>
      <li> v2/readme.1st - Instructions for DJGPP setup </li>
      <li> v2/faq230b.zip - The DJGPP Frequently Asked Questions </li>
      <li> v2/djdev203.zip - The DJGPP Development kit </li>
      <li> v2misc/csdpmi4b.zip - The DPMI Server </li>
      <li> v2gnu/bnu210b.zip - The GNU Binary Utilities </li>
      <li> v2gnu/gcc2952b.zip - The GNU C Compiler </li>
      <li> v2gnu/mak279b.zip - The GNU Make Utility </li>
    </ul>
  </li>
  <li> unzip to one directory (let's say C:\DJGPP) </li>
  <li> add to autoexec.bat these lines: </li>
</ul>
<pre>PATH C:\DJGPP\BIN;%PATH%<br />SET DJGPP=C:\DJGPP\DJGPP.ENV<br /></pre>
<p>If you have it, compiling is easy:
</p>
<ul>
  <li> set CFLAGS and LDLIBS in cfg/Makefile.glo </li>
  <li> simply use "make djgpp" </li>
</ul>
<p>Please note, that DJGPP support gives serial cable connection and
nothing more.
</p>
<p align="right">Return to <a
 href="http://www.gammu.org/wiki/index.php?title=Main_Page"
 title="Main Page">Main page</a>|<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Main_Page"
 title="Gammu:Main Page">Gammu main page</a></p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=1"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h2> Using source tarballs in Linux</h2>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=2"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> Compiling and installing from source tarballs </h3>
<p>First you will need some tools available with developer libraries,
if you want some functionality:
</p>
<ol>
  <li> <a href="http://www.mysql.org/" class="external text"
 title="http://www.mysql.org" rel="nofollow">MySQL</a> - database
functions </li>
  <li> <a href="http://www.bluez.org/" class="external text"
 title="http://www.bluez.org" rel="nofollow">BlueZ</a> - BlueTooth </li>
</ol>
<p>If you have everything, simply do such steps:
</p>
<p>1. Download gammu from one of the <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Mirrors&amp;action=edit"
 class="new" title="Gammu:Mirrors">mirrors</a>
</p>
<p>2. Uncompress the downloaded file&nbsp;:
</p>
<pre>$ tar xjvf gammu.tar.bz2<br /></pre>
<p>3. Enter the gammu directory:
</p>
<pre>$ cd gammu-*<br /></pre>
<p>4. Run the configure script:
</p>
<pre>$ ./configure<br /></pre>
<p>5. Compile the programm:
</p>
<pre>$ make<br /></pre>
<p>6. Install it as root:
</p>
<pre>$ su<br /># make install<br /></pre>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=3"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> Creating <a href="http://www.debian.org/" class="external text"
 title="http://www.debian.org" rel="nofollow">Debian</a> packages </h3>
<p>1. Download and unpack gammu tarball.
</p>
<p>2. Get required build dependencies:
</p>
<pre>aptitude install debhelper libc6-dev libbluetooth1 libbluetooth1-dev autoconf fakeroot<br /></pre>
<p>3. Build it:
</p>
<pre>fakeroot debian/rules binary<br /></pre>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=4"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h2> Using ready packages in Linux </h2>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=5"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> RPM based distributions </h3>
<p>Some vendors already included Gammu, so you can use version they
ship. At least <a href="http://www.novell.com/linux/suse"
 class="external text" title="http://www.novell.com/linux/suse"
 rel="nofollow">SUSE</a> and <a href="http://www.mandrivalinux.com/"
 class="external text" title="http://www.mandrivalinux.com"
 rel="nofollow">Mandriva</a> have Gammu inside their distribution. If
this does not apply, you can try luck with third party sources:
</p>
<p>1. Download the RPM file (see <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Mirrors&amp;action=edit"
 class="new" title="Gammu:Mirrors">mirrors</a>)
</p>
<p>2. Switch to root user:
</p>
<pre>$ su<br /></pre>
<p>3. Install the file
</p>
<pre>$ rpm -ivh gammu-*.rpm<br /></pre>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=6"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> <a href="http://www.debian.org/" class="external text"
 title="http://www.debian.org" rel="nofollow">Debian</a> </h3>
<p>Gammu and related are now officialy inside Debian: <a
 href="http://packages.debian.org/unstable/comm/gammu"
 class="external autonumber"
 title="http://packages.debian.org/unstable/comm/gammu" rel="nofollow">[1]</a>
</p>
<p>You can use packages built for Sid (Debian Unstable) too (you
might have luck using them on other). Those are mostly in queue waiting
for upload to official archives.
</p>
<p>1. Add apt repository for Gammu:
</p>
<pre>$ echo deb http://debian.cihar.com/ unstable main | sudo tee -a /etc/apt/sources.list<br /></pre>
<p>2. Install it (you might also want to install <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Wammu"
 title="Gammu:Wammu">Wammu</a> from that repository):
</p>
<pre>$ sudo aptitude install gammu<br /></pre>
<p>If it all fails, try <a href="#Building_Debian_packages" title="">building
from sources</a>.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=7"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> <a href="http://www.ubuntu.com/" class="external text"
 title="http://www.ubuntu.com" rel="nofollow">Ubuntu</a> </h3>
<p>You can try packages for <a href="#Debian" title="">Debian</a>.
However they will most likely not work so you will have to <a
 href="#Building_Debian_packages" title="">build from sources</a>.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=8"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> <a href="http://www.gentoo.org/" class="external text"
 title="http://www.gentoo.org" rel="nofollow">Gentoo</a> </h3>
<p><a href="http://www.gentoo.org/" class="external text"
 title="http://www.gentoo.org" rel="nofollow">Gentoo</a> contains
ebuild for gammu, so you can just
</p>
<pre>$ emerge gammu<br /></pre>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Linux&amp;action=edit&amp;section=9"
 title="Gammu:Compiling/installing in Linux">edit</a>]</div>
<h3> <a href="http://archlinux.org/" class="external text"
 title="http://archlinux.org/" rel="nofollow">Arch Linux</a> </h3>
<p>Arch Linux contains pkgbuild in unsupported section, install as
usual.
</p>
<hr />
<p>When you have program installed, you need to configure it, see <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file"
 title="Gammu:Setting configuration file">documentation</a>.
</p>
<p align="right">Return to <a
 href="http://www.gammu.org/wiki/index.php?title=Main_Page"
 title="Main Page">Main page</a>|<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Main_Page"
 title="Gammu:Main Page">Gammu main page</a></p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=1"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h2> Installing binary version in Windows </h2>
<ul>
  <li> Download the binary file from one of the <a
 href="http://www.gammu.org/wiki/index.php?title=Download"
 title="Download">mirrors</a> </li>
  <li> Uncompress the downloaded file gammu_win32.zip (using commercial
    <a href="http://www.winzip.com/" class="external text"
 title="http://www.winzip.com" rel="nofollow">WinZIP</a>, commercial <a
 href="http://http//www.rarlab.com%29" class="external text"
 title="http://http://www.rarlab.com)" rel="nofollow">WinRAR</a>, free <a
 href="http://www.7-zip.org/" class="external text"
 title="http://www.7-zip.org" rel="nofollow">7ZIP</a> or other tool) </li>
  <li> Edit the <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file"
 title="Gammu:Setting configuration file">configuration file</a> </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=2"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h2> Compiling using MS Visual C++ </h2>
<p>You will probably need additional SDKs:
</p>
<ul>
  <li> Microsoft <b>Windows Platform SDK</b> (required especially for
Bluetooth). It's given for free. Below are links to different releases
(if you have problems with latest one, use older). They work for
various Windows versions, even though Microsoft named them Windows
Server 2003 Platform SDK.
    <ul>
      <li>current (March 2006) - <a
 href="http://www.microsoft.com/downloads/details.aspx?FamilyID=484269e2-3b89-47e3-8eb7-1f2be6d7123a&amp;DisplayLang=en"
 class="external text"
 title="http://www.microsoft.com/downloads/details.aspx?FamilyID=484269e2-3b89-47e3-8eb7-1f2be6d7123a&amp;DisplayLang=en"
 rel="nofollow">Windows Server 2003 R2 Platform SDK</a></li>
      <li>outdated (April 2005) - <a
 href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&amp;displaylang=en"
 class="external text"
 title="http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&amp;displaylang=en"
 rel="nofollow">Windows Server 2003 SP1 Platform SDK</a></li>
      <li>outdated (February 2003) - <a
 href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm"
 class="external text"
 title="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm"
 rel="nofollow">Windows Server 2003 Platform SDK</a>. Please note, that
will need probably <a href="http://www.microsoft.com/ie"
 class="external text" title="http://www.microsoft.com/ie"
 rel="nofollow">MS Internet Explorer</a> with enabled ActiveX to
download it</li>
    </ul>
  </li>
</ul>
<ul>
  <li> <a href="http://www.mysql.org/" class="external text"
 title="http://www.mysql.org" rel="nofollow">MySQL</a> include/library
files from <a href="http://www.mysql.org/" class="external text"
 title="http://www.mysql.org" rel="nofollow">MySQL</a> install package
(for <a href="http://www.mysql.org/" class="external text"
 title="http://www.mysql.org" rel="nofollow">MySQL</a> support in <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:SMSD"
 title="Gammu:SMSD">SMSD</a>) </li>
</ul>
<p>After downloading and installing them into your system:
</p>
<ul>
  <li> add include/library files to directories used by your compiler
(add them AFTER compiler default directories). </li>
  <li> enable options in Gammu<b>/cfg/config.h</b> (HAVE_MYSQL_MYSQL_H
and BLUETOOTH_RF_SEARCHING) </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=3"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h3> commercial version 6.0 </h3>
<ul>
  <li> change parameters in /cfg/config.h </li>
  <li> enter into /gammu/msvc6.mak directory </li>
  <li> run gammu.dsw </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=4"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h3> commercial version 7.0, 7.1 (.NET) </h3>
<ul>
  <li> change parameters in /cfg/config.h </li>
  <li> enter into /gammu/msvc2003.mak directory </li>
  <li> run gammu.vcproj </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=5"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h3> free <a href="http://lab.msdn.microsoft.com/express/"
 class="external text" title="http://lab.msdn.microsoft.com/express/"
 rel="nofollow">Visual C++ Express 2005</a> </h3>
<ul>
  <li> set compiler to work with Platform SDK (see <a
 href="http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/"
 class="external text"
 title="http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/"
 rel="nofollow">description</a>) </li>
  <li> change parameters in /cfg/config.h </li>
  <li> enter into /gammu/msvc2005.mak directory </li>
  <li> run gammu.vcproj </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=6"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h2> Compiling using Borland C++ </h2>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=7"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h3> free (for non commercial use) <a
 href="http://www.borland.com/downloads/download_cbuilder.html"
 class="external text"
 title="http://www.borland.com/downloads/download_cbuilder.html"
 rel="nofollow">Borland C++ Builder 5/6 Personal</a> </h3>
<ul>
  <li> go into gammu/bcc.mak </li>
  <li> check if there is subdirectory "output" (if not, create it) </li>
  <li> run gammu.bpr </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=8"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h3> free <a
 href="http://www.borland.com/downloads/download_cbuilder.html"
 class="external text"
 title="http://www.borland.com/downloads/download_cbuilder.html"
 rel="nofollow">Borland C++ 5.5 command line tools</a> </h3>
<ul>
  <li> go into gammu/bcc </li>
  <li> check if there is subdirectory "output" (if not, create it) </li>
  <li> execute "make -fgammu.mak" from command line </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=9"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h3> <a
 href="http://www.borland.com/downloads/registered/download_cbuilderx.html"
 class="external text"
 title="http://www.borland.com/downloads/registered/download_cbuilderx.html"
 rel="nofollow">Borland C++ X</a> </h3>
<ul>
  <li> you need to create new makefile. It was added from box to some
older Gammu versions too. </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Compiling/installing_in_Windows&amp;action=edit&amp;section=10"
 title="Gammu:Compiling/installing in Windows">edit</a>]</div>
<h2> Compiling using CygWin for Windows </h2>
<p>Not checked.
</p>
<p align="right">Return to <a
 href="http://www.gammu.org/wiki/index.php?title=Main_Page"
 title="Main Page">Main page</a>|<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Main_Page"
 title="Gammu:Main Page">Gammu main page</a></p>
<table align="right">
  <tbody>
    <tr>
      <td valign="top"></td>
    </tr>
  </tbody>
</table>
<p>This page should generally explain, how you can connect your phone
to PC.
</p>
<p>If you know, what should be selected, you need to write it into the <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file"
 title="Gammu:Setting configuration file">config file</a>.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=1"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h2> Connecting to Symbian (Nokia and probably other) </h2>
<p>Before you will try connect to Gammu, you have to install gnapplet
application in phone first.
</p>
<p>Later steps depends on connection type. For example for
Bluetooth use "bluerfgnapbus" connection and model "gnap" and device
addresss as "port". You can read notes described below for infrared and
Bluetooth too. Cables connections (DKE-2, DKU-2, etc.) are not
supported by gnapplet now.
</p>
<p>When you want to communicate with phone, enable medium (bluetooth,
irda, etc.), run gnapplet in phone and use Gammu then.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=2"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h2> Connecting to Nokia without Symbian </h2>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=3"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Cable </h3>
<p>There are three main protocols used in cable connections:
</p>
<ul>
  <li> MBUS (sometimes called M2BUS) - old, not recommended </li>
  <li> FBUS - recommended </li>
  <li> <a
 href="http://www.gammu.org/wiki/index.php?title=Phones:AT_command"
 title="Phones:AT command">AT commands</a> - limited, recommended for
data calls </li>
</ul>
<p>All phones have a connector under the battery (the exception is the
Nokia 3210 - it's on right side of battery) - it's for FBUS and MBUS. <b><u>This
connector is only way for connecting to phone functions on Nokia 5510
(DKE-2 gives access to MP3 side only)</u></b>
</p>
<p>To use Gammu with it you will only need a simple converter and the
pins description from Internet.
</p>
<p>The alternative to cable working with one phone is kit - plug
for phone from flasher (RJ45 or PS2) + compatible with it converter for
serial port. There are many offers - it's enough to write for example
"ps2 and cable and <i>phone_model</i>" in <a
 href="http://www.google.com/" class="external text"
 title="http://www.google.com" rel="nofollow">Google</a>
</p>
<p>Many phones have connector on bottom of phone. It's for FBUS
(always), sometimes for AT commands and sometimes for MBUS:
</p>
<ul>
  <li> Older phones had connector like in Nokia 6110. You can use
FBUS and MBUS cable there. Original Nokia cables for these phones were
called DAU9P. With Nokia 7110/6210/6310/6310i you can additionaly use
DLR3/DLR3P cables too (they will not work with older models like Nokia
5110 or 6110) - you will have FBUS and AT commands. All of them don't
need special drivers, because are designed to use with serial ports. </li>
  <li> Nokia 9210 have connector working in FBUS and MBUS...but if
you want to use FBUS with original and non-modified DLR-2L, you have to
enable FBUS mode from netmonitor menu 31...but for enabling netmonitor
you have to use MBUS cable (and MBUS is not supported by DLR-2L) </li>
  <li> New phones have PopPort. It's for FBUS, MBUS the most often is
not connected (see <a
 href="http://www.nokiaport.de/index.php?mid=5&amp;pid=popportmbus"
 class="external text"
 title="http://www.nokiaport.de/index.php?mid=5&amp;pid=popportmbus"
 rel="nofollow">article from NokiaPort.de</a>). You have AT commands in
more expensive phones too. </li>
</ul>
<p>For PopPort you have to connect cable with USB converter inside or
not (it depends on phone model - new/more expensive models have USB
converter on main board and cable is simple cable extension only).</p>
<ul>
  <li> cables for for phones without USB converter on phone main board
    <ul>
      <li> original DKU5 - Supported by Gammu in windows but
unsupported in Linux (nobody wanted to make the kernel driver for it) </li>
      <li> original CA42 - no info (probably very similiar to DKU5) </li>
      <li> cloned DKU5 with PL2303 and other - The most often suported
in Windows, sometimes in Linux (depends on quality of manufacturer
driver) </li>
    </ul>
  </li>
</ul>
<ul>
  <li> for phones with USB converter on phone main board.
    <ul>
      <li> original DKU2 - Supported by Gammu in windows.<br />
There is
easy driver in Gammu distribution for Linux too - it works quite enough
with the most popular phones, adding support for more models need to
add their ID only (because all USB processing is done by phone, you add
phone product ID). It doesn't work with Nokia 6230 with firmware 5.xx.<br />
        <b><u>NOTE: this cable will not give access to phone functions
in Nokia 3300</u></b><br />
        <b>For more info (both for Linux and Windows) see notes below.</b>
      </li>
      <li> original CA53 - no info (probably very similiar to DKU2) </li>
      <li> ark3116 cable - see below </li>
    </ul>
  </li>
</ul>
<p>A little more about cables compatibility for Nokia phones: <a
 href="http://europe.nokia.com/nokia/0,,79898,00.html"
 class="external free"
 title="http://europe.nokia.com/nokia/0,,79898,00.html" rel="nofollow">http://europe.nokia.com/nokia/0,,79898,00.html</a>
(probably all CA42 phones can be used with DKU5 cable and probably all
CA53 phones can be used with DKU2)
</p>
<p>Generally - Gammu doesn't have problems with serial port cables.
Just enable read/write access to the serial port being used, set it as
"port" in gammurc and set "connection" to right protocol.
</p>
<p>There are notes in Net, that some 3rd party serial cables for
8210/8250 doesn't work with 5210, some from 8210 doesn't work with
2100. It can happen, if signals are in different places in both models.
So, be carefull here. Please note, that during connection using serial
cable you can have incorrect chars too:
</p>
<ul>
  <li> (Linux) if you have wrong kernel options for serial port - for
FBUS there should be support enabled for the best possible UART (16550
or something similiar, which is required to have 115200 and 16 bytes
UART queue) </li>
  <li> if port can't be set correctly to required speed (the most often
115200) </li>
  <li> if you have something wrong with hardware (cable, phone) </li>
</ul>
<p>A little more about USB support in Linux: <a
 href="http://www.linux-usb.org/" class="external free"
 title="http://www.linux-usb.org/" rel="nofollow">http://www.linux-usb.org/</a>
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=4"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h4> DKU2 cable </h4>
<p><i>for Linux:</i>
</p>
<ul>
  <li> build and install the kernel module -- this is for 2.6 *only*,
it will not work on a 2.4 kernel. The Makefile uses the standard
convention of /usr/src/linux-2.6 as the kernel source home; if you
already have that, simply type "make; make install" and you're done. </li>
</ul>
<p>NOTE: if you're on Fedora Core 3 and have no clue how to prepare
your kernel source for building external modules, follow step #1 in my
HowTo for the rt2x00 project on Sourceforge: <a
 href="http://sourceforge.net/forum/message.php?msg_id=2959689"
 class="external free"
 title="http://sourceforge.net/forum/message.php?msg_id=2959689"
 rel="nofollow">http://sourceforge.net/forum/message.php?msg_id=2959689</a>
</p>
<ul>
  <li> Compile gammu as normal (./configure; make) </li>
</ul>
<ul>
  <li> Plug in your phone, and look in /var/log/messages for the device
that was registered as "FBUS". It should look like this: </li>
</ul>
<pre>  kernel: Nokia FBUS Port:<br />  kernel: Nokia DKU2 1-2:1.10: Nokia 7600/6230 DKU2 driver converter detected<br />  kernel: usb 1-2: Nokia 7600/6230 DKU2 driver converter now attached  to ttyUSB0<br /></pre>
<p>NOTE: there are two drivers that fight for the AT side of your Nokia
-- the stock "cdc_acm" driver and the "nokia_dku2" module. So, if
cdc_acm got there first and created ttyACM0, then most likely your
phone will be ttyUSB0. If the nokia_dku2 got there first, then most
likely your AT will be ttyUSB0, and the FBUS port ttyUSB1. I've had it
happen both ways.
</p>
<p>This can make sometimes problems (report from other user):
</p>
<p><i>Problem: My Nokia 6230 phone does weird things - when I run
smsd and receive new message, phone just hangs, restarts and message
isn't saved in mysql, but ofcoure is saved next time I run smsd, but
the same happens again if I receive message. Actually noticed the same
when phone said - battery is full (or any other action is done with
phone), connection with smsd droped.</i><br />
<i>Solution: Ok, problem
seems to be solved, seems that linux acm module tries to make serial
connection to phone and try to do something and when connection through
fbus and serial is done at the same time, everything hangs. - just
removed acm module and now serial and fbus connection is made through
nokia_dku2 module.</i>
</p>
<ul>
  <li> make sure /dev/ttyUSB* is owned by the user running gammu!
chown/chmod it as needed. On my FC3 machine I added the proper
configurations to /etc/security/console.perms to chown it to the logged
in user for me: </li>
</ul>
<pre>  Under this line: &lt;raw1394&gt;=/dev/raw1394<br />  Add this line:   &lt;usbdev&gt;=/dev/ttyACM* /dev/ttyUSB*<br /></pre>
<pre>  Under this line: &lt;console&gt;  0600 &lt;raw1394&gt;    0600 root<br />  Add this line:   &lt;console&gt;  0600 &lt;usbdev&gt;     0600 root<br /></pre>
<p>Log out and log back in and it will work properly for you forever.
</p>
<ul>
  <li> Configure your .gammurc: </li>
</ul>
<pre>[gammu]<br />port = /dev/ttyUSB0<br />connection = dku2<br /></pre>
<ul>
  <li> run gammu --identify! At this point is should be working. </li>
</ul>
<p><i>for Windows:</i>
</p>
<ol>
  <li> Download driver from nokia.com (<a
 href="http://europe.nokia.com/nokia/0,,81914,00.html"
 class="external free"
 title="http://europe.nokia.com/nokia/0,,81914,00.html" rel="nofollow">http://europe.nokia.com/nokia/0,,81914,00.html</a>
or other) </li>
  <li> Install driver </li>
  <li> (for some phones like N6111) Unlock phone keypad - it must be
unlocked all time </li>
  <li> Connect phone to cable, cable to pc </li>
  <li> (for some phones like N6111) Select <i>default mode</i> in
phone </li>
  <li> Phone will be installed </li>
  <li> Gammurc: </li>
</ol>
<pre>[gammu]<br />Connection = dku2<br /></pre>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=5"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h4> DKU5 cable </h4>
<p><i>for Windows:</i>
</p>
<ul>
  <li> install driver from Nokia (latest 1.24 version). It's for
Atmel based cables. Other drivers and cables with other chipsets sold
as original DKU5 were not tested. </li>
  <li> enter Control Panel and properties to created "Port 1 on Nokia
adapter" device </li>
  <li> set "bits per second" to 115200 </li>
  <li> set connection "dku5" without device (for FBUS) or "at..." with
Port 1 device name (for AT) in Gammu config file </li>
  <li> connect cable to phone </li>
</ul>
<p>Sometimes it happen, that first connection try isn't successfull.
Without disconnecting cable and phone try again. It should work then.
</p>
<p>When cable will switch from AT to FBUS and you will want to use
AT again, you have to reconnect phone and cable (switching from FBUS to
AT is not possible).
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=6"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h4> ark3116 cable </h4>
<p>The <a href="http://avr.auctionant.de/ark3116_linux_driver/"
 class="external text"
 title="http://avr.auctionant.de/ark3116_linux_driver/" rel="nofollow">ark3116
driver</a> for 2nd-source cable (original does not exist) is included
in the Linux-kernel since 2.6.17rc5.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=7"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Infrared </h3>
<p>There are two methods: direct communication with the phone, or using
operating system functions to communicate with it.
</p>
<p>The first method ("infrared" in gammurc) is obsolete, but
required with 6110/6130/6150 and compatible. Also Nokia 8210 uses it,
when entering infrared using the 2 player mode.
</p>
<p>In Linux disable infrared in kernel, connect your infrared
device to serial port (other irda dongles than conenected to serial
port won't be supported in this mode) and try Gammu with "infrared"
connection. If doesn't work, there will be required some modifications
of sources. Please contact authors.
</p>
<p>In Windows ANY infrared device can be assigned to serial port with
driver written by Jan Kiszka. </p>
<p>The second method ("irda" in gammurc) is much better. It's
compatible with <b>all</b> modern operating systems (under Linux,
infrared must be enabled in the kernel). This is called <i>socket</i>
infrared and is used in all new phones.
</p>
<p><b><font color="red">Note:</font></b> in many new models (like
Nokia 6230 or 6230i) you have to have keypad unlocked during all
connection time. Simply activate Bluetooth, infrared (or whatever you
use) and enter phone menu before you will try to connect with Gammu.
</p>
<p><b><font color="red">Note:</font></b> some infrared modules for
PC require setting non standard parameters (for example, lowering max.
speed to 115200) for communicating with phones. This is not Gammu issue
then&nbsp;! <b>Example:</b> for Stir 4200 based dongle you have to set
in Control Panel
</p>
<pre>Infrared transceiver type - vishay 6101E<br />Min. Turn-around time - 0.5 ms (instead of default 1 ms)<br />Speed enable - 115200 (instead of default 4Mbps)<br /></pre>
<p><b>Example</b> of using socket infrared under Linux (based on USB
dongle):
</p>
<ol>
  <li> compile the kernel with USB and infrared protocols (<i>this is
already done in most modern distributions</i>). </li>
  <li> if necessary, insert USB module (e.g. <b>modprobe irda-usb</b>)
(<i>in most modern distributions, this shouldn't be necessary</i>). </li>
  <li> use <b>irattach irda0 -s</b> or similiar, to set up the
infrared port. </li>
  <li> enable read/write access to the infrared port (/dev/ircomm0, or
whatever) with the following command:<br />
    <b>chmod ugo+rw /dev/ircomm0</b><br />
(<i>This step may or may not be necessary, depending on the way the
distribution's configured.</i>) </li>
  <li> set "connection" in gammurc to "irda", "port" to "/dev/ircomm0"
(or the relevant infrared port) </li>
</ol>
<p>A little more about infrared in Linux is here: <a
 href="http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrDA.html"
 class="external free"
 title="http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrDA.html"
 rel="nofollow">http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrDA.html</a>
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=8"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Bluetooth </h3>
<p>Works OK in all situations.
</p>
<p><b><font color="red">Note:</font></b> in many new models (like
Nokia 6230 or 6230i) you have to have keypad unlocked during all
connection time. Simply activate Bluetooth, infrared (or whatever you
use) and enter phone menu before you will try to connect with Gammu
</p>
<p><b><font color="red">Note:</font></b> some old Nokias (6310i
with old firmware and so on) need to use special connections (for
example "bluerfphonet" instead of "bluephonet").
</p>
<p>Example of using USB dongle for Linux (<a
 href="http://bluez.sourceforge.net/" class="external text"
 title="http://bluez.sourceforge.net" rel="nofollow">BlueZ stack</a>):
(<b>Note:</b> <i>most of this needs to be done as the superuser -
i.e., root</i>)
</p>
<ol>
  <li> compile the kernel with USB and Bluetooth - don't use the
bluetooth setting in the USB section! (<i>this is already done in most
modern distributions</i>) </li>
  <li> if necessary, load the kernel driver (<b>modprobe hci_usb</b>) (<i>in
most modern distributions, you shouldn't need to do this</i>) </li>
  <li> use <b>hciconfig hci0 up</b> to enable the dongle </li>
  <li> create a text file /etc/bluetooth/givepin with the following
contents:<br />
#!/bin/sh<br />
echo "PIN:5432" </li>
  <li> change the file permissions to make it executable:<br />
    <b>chmod a+x /etc/bluetooth/givepin</b> </li>
  <li> in /etc/bluetooth/hcid.conf set "pin_helper" to
"/etc/bluetooth/givepin;" </li>
  <li> execute <b>hcid</b> to send options from hcid.conf to bluetooth
device </li>
  <li> do <b>hcitool scan</b> to get the phone address and enter
this as the "device" parameter in gammurc. Set protocol to "bluephonet"
or whatever is relevant for your setup (see the <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file#connection"
 title="Gammu:Setting configuration file">Connection section of the
config file</a> for details on this) </li>
  <li> during first connection give PIN 5432 in phone </li>
  <li> use "bluephonet" or "bluerfphonet" or "blueat" connections (with
or without device address in "device") </li>
</ol>
<p>A little more about Bluez is here:
</p>
<ul>
  <li> <a href="http://www.bluez.org/faq.html" class="external free"
 title="http://www.bluez.org/faq.html" rel="nofollow">http://www.bluez.org/faq.html</a>
  </li>
  <li> <a href="http://www.gentoo.org/doc/en/bluetooth-guide.xml"
 class="external free"
 title="http://www.gentoo.org/doc/en/bluetooth-guide.xml" rel="nofollow">http://www.gentoo.org/doc/en/bluetooth-guide.xml</a>
  </li>
</ul>
<p>In Windows there are two ways:
</p>
<ol>
  <li> using emulated serial ports for connecting to concrete phone
services. It was used by old Bluetooth stacks (like WidComm) or can be
set with Microsoft stack (Windows XP SP2, Windows 2003 and later). Not
recommended. To use it you need to pair phone with PC, assign some
phone service to serial port, give it as "device" and use correct
"*blue" (like "phonetblue") connection </li>
  <li> using Microsoft stack (Windows XP SP2, Windows 2003 and later)
to direct connection. Recommended.
    <ol>
      <li> pair phone with computer using "Bluetooth devices" in
Windows Control Panel </li>
      <li> use "bluephonet" (for older phones there could
"bluerfphonet"
instead of "bluephonet" required) or "blueat" connections (with or
without device address in "device") </li>
    </ol>
  </li>
</ol>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=9"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Flasher Cables </h3>
<p><i>Flasher cables</i> are different from standard data cables. They
connect to the parallel (LPT) port and allow you to read from and write
to the phone's internal <i>flash</i> memory. Using the correct
software (called a flasher) and a flasher cable, you can upgrade the
phone's firmware to a more recent version. Gammu, as user software,
doesn't support flashing.
</p>
<p>There's plenty of information about flashing and flasher equipment
on the web - using a search engine, with terms like <i>flasher</i>, <i>mobile</i>,
<i>firmware</i>, etc should turn some up.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=10"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h2> Connecting to Ericsson / Siemens / Samsung / Alcatel </h2>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=11"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Cable </h3>
<p>Get serial cable for the appropriate model, plug it
into the phone and in a free serial port of the PC. In gammu, set the
correct port ("COM1:" .. "COM9:" in Windows, "/dev/ttyS*" in Linux).
Set "connection=at115200" (or lower) and "model=at". You can also try
"model=obex".
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=12"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Infrared </h3>
<p>You can map your infrared connection to a virtual COM port in Win9x
and XP. Then give "port=COM4:" (or check the correct port in Control
Panels/Infrared transfer) and the connection will look like normal
serial connection. Continue as above.
</p>
<p>If you wish to use true infrared connection, follow the steps in the
Nokia answer above.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=13"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Bluetooth </h3>
<p>See <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone#Bluetooth"
 title="Gammu:Connecting to phone">Nokia answer</a> above.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=14"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h2> General connection notes </h2>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=15"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Cables </h3>
<ul>
  <li> New Nokia protocol for FBUS/DAU9P<br />
    <b>Connection "fbus"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
  <li> New Nokia protocol for DLR3/DLR3P<br />
    <b>Connection "fbusdlr3"/"dlr3"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
  <li> New Nokia protocol for DKU2 (and phone without USB chip like 6230<br />
    <b>Connection "dku2phonet"/"dku2"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#dku2"
 title="Gammu:Port parameters">dku2</a> </li>
  <li> New Nokia protocol for DKU5 (and phone with USB chip like 5100<br />
    <b>Connection "dku5fbus"/"dku5"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#dku5"
 title="Gammu:Port parameters">dku5</a> </li>
  <li> New Nokia protocol for PL2303 USB cable (and phone with USB chip
like 5100)<br />
    <b>Connection "fbuspl2303"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#usb"
 title="Gammu:Port parameters">usb</a> </li>
  <li> Old Nokia protocol for MBUS/DAU9P<br />
    <b>Connection "mbus"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
  <li> AT commands for DLR3, DKU2, DKU5 or other AT compatible cable
(8 bits, None parity, no flow control, 1 stop bit). Used with Nokia,
Alcatel, Siemens, etc.<br />
    <b>Connection "at", optionally followed by desired speed, such as
"at19200" or "at115200"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=16"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Infrared </h3>
<ul>
  <li> Nokia protocol for infrared with Nokia 6110/6130/6150<br />
    <b>Connection "fbusirda"/"infrared"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
  <li> Nokia protocol for infrared with other Nokia models<br />
    <b>Connection "irdaphonet"/"irda"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#irda"
 title="Gammu:Port parameters">irda</a> </li>
  <li> AT commands for infrared. Used with Nokia, Alcatel, Siemens, etc.<br />
    <b>Connection "irdaat" (under Windows) or "at" (under Linux)</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#irda"
 title="Gammu:Port parameters">irda</a> </li>
  <li> OBEX for infrared<br />
    <b>Connection "irdaobex"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#irda"
 title="Gammu:Port parameters">irda</a><br />
Model "obex" </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone&amp;action=edit&amp;section=17"
 title="Gammu:Connecting to phone">edit</a>]</div>
<h3> Bluetooth </h3>
<ul>
  <li> Nokia protocol with serial port set in BT stack (WidComm, other)
from adequate service and Nokia 6210<br />
    <b>Connection "fbusblue"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
  <li> Nokia protocol with serial port set in BT stack (WidComm, other)
from adequate service and other Nokia models<br />
    <b>Connection "phonetblue"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#serial"
 title="Gammu:Port parameters">serial</a> </li>
  <li> Nokia protocol for Bluetooth stack with Nokia 6210<br />
    <b>Connection "bluerffbus"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a> </li>
  <li> Nokia protocol for Bluetooth stack with DCT4 Nokia models,
which don't inform about services correctly (6310, 6310i with firmware
lower than 5.50, 8910,..)<br />
    <b>Connection "bluerfphonet"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a> </li>
  <li> Nokia protocol for Bluetooth stack with other DCT4 Nokia models<br />
    <b>Connection "bluephonet"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a> </li>
  <li> AT commands for Bluetooth stack and 6210 / DCT4 Nokia models,
which don't inform about BT services correctly (6310, 6310i with
firmware lower than 5.50, 8910,..)<br />
    <b>Connection "bluerfat"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a> </li>
  <li>AT commands for Bluetooth stack with other phones (Siemens, other
Nokia,etc.)<br />
    <b>Connection "blueat"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a> </li>
  <li>OBEX for Bluetooth stack with DCT4 Nokia models, which don't
inform about BT services correctly (6310, 6310i with firmware lower
than 5.50, 8910,...)<br />
    <b>Connection "bluerfobex"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a> </li>
  <li>OBEX for Bluetooth stack with other phones (Siemens, other Nokia,
etc.)<br />
    <b>Connection "blueobex"</b><br />
Port type <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Port_parameters#BT"
 title="Gammu:Port parameters">BT</a><br />
    <b>Model "obex"</b> </li>
</ul>
<p align="right">Return to <a
 href="http://www.gammu.org/wiki/index.php?title=Main_Page"
 title="Main Page">Main Page</a> - <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Main_Page"
 title="Gammu:Main Page">Gammu:Main Page</a></p>
<table align="right">
  <tbody>
    <tr>
      <td></td>
    </tr>
  </tbody>
</table>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=1"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h2> Configuration file options </h2>
<p>If you know, <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone"
 title="Gammu:Connecting to phone">how to generally connect your phone
to PC</a>, it's time to write it into configuration file. For start
here is a sample configuration file:
</p>
<pre>[gammu]<br />port = com8:<br />model = 6110<br />connection = fbusblue<br />synchronizetime = yes<br />logfile = gammulog<br />logformat = textall<br />use_locking = yes<br />gammuloc = locfile<br />startinfo = yes<br />gammucoding = utf8<br />rsslevel = teststable<br />usephonedb = yes<br /></pre>
<p>Configuration file can be located either in your home directory
(this location is prefered) or can be configured for whole system. The
location of the global configuration file depends on which system you
use.
</p>
<p>Location of the Global Configuration File for Windows: </p>
<ul>
  <li> Located in the directory where the gammu.exe file located. This
is normally in the gammu installation directory. </li>
  <li> The filename of the configuration file is gammurc. Note: there
is <i>no</i> extension on the filename (i.e *.ini, *.cfg, and so on). </li>
  <li> Make a backup of the gammurc file (e.g. gammurc-bak) before
making experimental changes. </li>
</ul>
<p>Location of the Global Configuration File for Linux:
</p>
<ul>
  <li> Located in /etc/gammurc or ~/.gammurc </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=2"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> port </h3>
<p>The value of this parameter can be:
</p>
<ul>
  <li> it can be empty - for irda, dku2, dku5 connection in Windows </li>
  <li> 'COM*:' - for serial connection in Windows (eg. 'COM1:') </li>
  <li> '/dev/ttyS*' (or '/dev/tts/**' with DevFS) - for serial
connection in Linux (eg. '/dev/ttyS0') </li>
  <li> '/dev/ircomm*' - for infrared connection in Linux (eg.
'/dev/ircomm0') </li>
  <li> '/dev/ttyUSB*' or '/dev/ttyACM*' - for dku2 connection in Linux </li>
  <li> 'XX:XX:XX:XX:XX:XX' (bluetooth address) for bluetooth connection
(eg. '00:0A:D9:15:AA:81') </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=3"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> model </h3>
<p>Use only when Gammu doesn't recognize your phone model. Example
values: "6110", "6150", "6210", "8210".
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=4"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> connection </h3>
<p><i>For information on which connection parameter to use, see the <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Connecting_to_phone"
 title="Gammu:Connecting to phone">Methods of connecting to phone</a>
page</i>
</p>
<p><b>Valid parameters are:</b><br />
mbus, fbus, fbuspl2303, dlr3,
fbusdlr3, dku5, dku5fbus, dku2,dku2phonet, fbusblue, phonetblue,
mrouterblue, blueobex, bluephonet, blueat, bluerfobex, bluerffbus,
bluerfphonet, bluerfat, infrared, fbusirda, irda, irdaphonet, irdaat,
irdaobex, at*
</p>
<p>You can find and exchange working configurations in <a
 href="http://www.gammu.org/wiki/index.php?title=Phones:Support"
 title="Phones:Support">our phone databases</a>
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=5"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> synchronizetime </h3>
<p>Use this if you want to set the phone's time from the computer's
time when gammu first connects to the phone. Do not use this option
when you want to reset the phone during the connection (some phones
need the time set again after a restart)
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=6"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> logfile </h3>
<p>Use this when you want gammu to keep a record of communication in a
log file.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=7"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> logformat </h3>
<p>What debug info and format should be used:
</p>
<ul>
  <li> "nothing" - no debug level (default) </li>
  <li> "text" - transmission dump in text format </li>
  <li> "textall" - all possible info in text format </li>
  <li> "errors" - errors in text format </li>
  <li> "binary" - transmission dump in binary format </li>
</ul>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=8"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> use_locking </h3>
<p>Under Unix/Linux set this to "yes" if you want to lock the device
being used, to prevent other applications trying to use it. (<i>This
is probably not important on a single-user system, unless you use the
same serial port for a modem and some other program could try and dial
out while you're using gammu.</i>) Under win32 this option is ignored.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=9"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> gammuloc </h3>
<p>Name of localisation file. Localisation is chosen automatically if
you have set locales and properly installed Gammu.
</p>
<p>See <a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Gammu_localisation"
 title="Gammu:Gammu localisation">How to make national version of Gammu</a>
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=10"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> startinfo </h3>
<p>This option allows you to set whether you want to see a message on
the phone screen or if the phone's backlight should come on for a
moment when gammu connects to it. Set this to "yes" to see a message on
the phone. With this option set, the phone <i>won't</i> beep when the
connection is initiated.
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=11"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> gammucoding </h3>
<p>Forces use of a specified codepage (in win32 - for example
"1250" will force CP1250) or UTF8 (in Linux - "utf8")
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=12"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> rsslevel </h3>
<p>Should Gammu connect to www.mwiacek.com and check for new
versions&nbsp;?
</p>
<p>if yes, there will be taken <a
 href="http://www.gammu.org/wiki/index.php?title=Image:Rss.png"
 class="image" title="Image:rss.png"><img src="index.php_files/Rss.png"
 alt="Image:rss.png" longdesc="/wiki/index.php?title=Image:Rss.png"
 height="16" width="16" /></a> <a
 href="http://www.mwiacek.com/gsm/soft/gammu.rss" class="external free"
 title="http://www.mwiacek.com/gsm/soft/gammu.rss" rel="nofollow">http://www.mwiacek.com/gsm/soft/gammu.rss</a>
file, read latest version numbers and (if any exist) displayed info to
user on each application startup.
</p>
<p>parameter value:
</p>
<ol>
  <li> "teststable" - check for latest stable and test versions </li>
  <li> "stable" - check for latest stable versions </li>
</ol>
<p>No private data are sent to server, Internet connection to <a
 href="http://www.mwiacek.com/" class="external free"
 title="http://www.mwiacek.com" rel="nofollow">http://www.mwiacek.com</a>
on port 80 required. By default option not active
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=13"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h3> UsePhoneDB </h3>
<p>Should Gammu connect to <a href="http://www.gammu.org/"
 class="external free" title="http://www.gammu.org" rel="nofollow">http://www.gammu.org</a>
and check for latest firmware versions for device&nbsp;?
</p>
<p>if yes (value "yes"), there will be taken <a
 href="http://www.gammu.org/support/phones/phonedbxml.php?model=x"
 class="external free"
 title="http://www.gammu.org/support/phones/phonedbxml.php?model=x"
 rel="nofollow">http://www.gammu.org/support/phones/phonedbxml.php?model=x</a>
file, read all phone details from it and (if any higher firmware exist)
displayed info to user on each application startup. No private data are
sent to server, Internet connection to <a href="http://www.gammu.org/"
 class="external free" title="http://www.gammu.org" rel="nofollow">http://www.gammu.org</a>
on port 80 required. By default option not active
</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file&amp;action=edit&amp;section=14"
 title="Gammu:Setting configuration file">edit</a>]</div>
<h2> Working with multiple phones </h2>
<p>You can create several section in configuration file:
</p>
<pre>[gammu]<br />port = /dev/ttyS0<br /><br />[gammmu1]<br />port = /dev/ttyS1<br /><br />[gammmu2]<br />port = /dev/ttyS2<br /><br />...<br /></pre>
<p>And then just call
</p>
<pre>gammu N --any-command<br /></pre>
<p>Where N is section number you want to use.
</p>
<!-- Saved in parser cache with key gammu_wiki17:pcache:idhash:1852-0!1!0!!!en!2 and timestamp 20060725151756 -->
<div class="printfooter">
<hr />Retrieved from "<a
 href="http://www.gammu.org/wiki/index.php?title=Gammu:Readme">http://www.gammu.org/wiki/index.php?title=Gammu:Readme</a>"</div>
<div id="catlinks">
<p class="catlinks"><span dir="ltr" /></p>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>