Installation of Gammu Gsm-utils in Centos 6.4 32bit
Download required packages
gammu installation
Wget http://sourceforge.net/projects/gammu/files/gammu/1.31.0/gammu-1.31.0.tar.gz
Tar-xzvf gammu-1.31.0.tar.gz
Cd gammu-1.31.0
. / Configure
Make install
Install other required packages
# yum install eject
# yum install comget ( if you are not able to install comget from yum command
follow follow the process mentioned below.
wget http://kaz.dl.sourceforge.net/project/comgt/comgt/0.32/comgt.0.32.tgz
make
make install
process to configure gsm modem
# insert gsm modem in usb port
# check usb port for gsm modem
# dmesg | grep tty
# ls -l /dev | grep '\->' ( command to check the modem port connected to.)
# note gsm modem are detected as cd - rom in linux because the modem contains memory card slot ....
# eject /dev/sr0 or sr1 ( use this command to eject the cd-rom sr0 & sr1 as per your condition)
# comgt -x -d /dev/ttyUSB2 ( command to connect gsm modem to usb port, USB2 in my case)
# when modem is connected you will get the message with service provider name)
# ln -s /dev/ttyUSB2 /dev/modem ( create symbolic link to /dev/modem)
# Gammu configuration
gammu-config
Download required packages
gammu installation
Wget http://sourceforge.net/projects/gammu/files/gammu/1.31.0/gammu-1.31.0.tar.gz
Tar-xzvf gammu-1.31.0.tar.gz
Cd gammu-1.31.0
. / Configure
Make install
Install other required packages
# yum install eject
# yum install comget ( if you are not able to install comget from yum command
follow follow the process mentioned below.
wget http://kaz.dl.sourceforge.net/project/comgt/comgt/0.32/comgt.0.32.tgz
make
make install
process to configure gsm modem
# insert gsm modem in usb port
# check usb port for gsm modem
# dmesg | grep tty
# ls -l /dev | grep '\->' ( command to check the modem port connected to.)
# note gsm modem are detected as cd - rom in linux because the modem contains memory card slot ....
# eject /dev/sr0 or sr1 ( use this command to eject the cd-rom sr0 & sr1 as per your condition)
# comgt -x -d /dev/ttyUSB2 ( command to connect gsm modem to usb port, USB2 in my case)
# when modem is connected you will get the message with service provider name)
# ln -s /dev/ttyUSB2 /dev/modem ( create symbolic link to /dev/modem)
# Gammu configuration
gammu-config
port /dev/ttyUSB2
connection at
# gammu --identify ( if your connection is successful you will get the message as below)
Device : /dev/ttyUSB2
Manufacturer : PROLiNK CORPORATION
Model : unknown (PHS101)
Firmware : BD_P679M1V1.0.1B18
IMEI : 353907041******
SIM IMSI : 42902001*****
# Test your device by sending sms with command line
echo " Test Gsm Modem by nerazan" | gammu --sendsms TEXT +9779855022***
Nerazan Adhikary
Thanks for your useful post. You save a lot of my time.
ReplyDeleteHi Thanks for this tuto.
ReplyDeleteI tried your tuto, your configuration work well but i want to use gammu-ussd when i type this command : gammu --getussd "#123#" i get this:
Presser Ctrl+C pour arrêter...