Pages

Showing posts with label SMS Gateway. Show all posts
Showing posts with label SMS Gateway. Show all posts

Friday, May 27, 2011

Practical Use Note of Gammu

# Installing Gammu
apt-get install gammu

# Connecting The Modem
after the modem is plugged in,
find that the modem is detected with: dmesg | grep tty
ussually if the interface is USB, it'll shows ttyUSB0 and ttyS0 for serial, you'll need this for configuring gammu next..

# Configure Gammu
vi /etc/gammu-smsdrc

# Check It
please make sure that gammu service is not active.
root@pcsimv:~# gammu --identify
Device : /dev/ttyS0
Manufacturer : Wavecom
Model : unknown (MULTIBAND 900E 1800)
Firmware : 657e09gg.Q24PL002 1961548 103107 17:56
IMEI : 353044020053022
SIM IMSI : 510104242000009

# Starting the Service
root@pcsimv:~# /etc/init.d/gammu-smsd0 start
* Starting Gammu SMS Daemon gammu-smsd0 Log filename is "/var/log/smsdlog"
[ OK ]
# Checking log
vi /var/log/smsdlog

Wednesday, November 24, 2010

Installing Gammu from source on Linux

In this example, i use gammu-1.28.0.tar.gz on Ubuntu.
  1. Install 3rd party services module. For mysql, install libmysqlclient15-dev.
  2. extract gammu.tar.gz to /opt/src/gammu and goto this folder
  3. mkdir build, and cd build
  4. cmake .. -DWITH_NOKIA_SUPPORT=OFF -DWITH_BLUETOOTH=OFF -DWITH_IRDA=OFF 
  5. make
  6. make install
note:
gammu is here