FF_gammu_smsd_v1
-
Upload
michael-vincent-montero -
Category
Documents
-
view
214 -
download
2
description
Transcript of FF_gammu_smsd_v1
-
SMSoutgoinggatewayforHuaweiE173andMobigater
GammuactsastheSMSbackendengine.GammucanbeinstalledasastandalonedaemonorinterfacingaMySQLdatabase.
IfGammuisusedwithoutadatabasebackend.SMSscanbesendinvokinggammufromthecommandline.TheFreedomFoneSMSVendorClassforGammu,placesSMSsendingrequestsintoGammuMySQLbackend.
InstallingGammuandGammuSMSDaemon
InUbuntu12.04,thepackageisversion1.31#sudoaptgetinstallgammugammusmsd#sudo cp /usr/share/doc/gammu/examples/config/gammurc /etc/gammurc
DetectyourGSMmodemBoththeHuaweiandtheMobigaterusetheATcommandsinterface.Runthecommand
#gammudetectd|grepv\;>/etc/gammurc
Andchecktheresultsof/etc/gammurc
Verifythatyourmodemisdetectedusing
#gammuidentify
Mobigater
Device:/dev/ttyACM0Manufacturer:SIMCOM_LtdModel:unknown(SIMCOM_SIM300)Firmware:Revision:1008B10SIM300M32_SPANSIONIMEI:12345678901SIMIMSI :1234345785487483
-
HuaweiE173
Device:/dev/ttyUSB0Manufacturer:HuaweiModel:E173(E173)Firmware:11.126.83.00.00IMEI:3323256778867412SIMIMSI :1234345785487483
Ingeneralthedefaultdevicesidentifiersare/dev/ttyACM0forMobigaterand/dev/ttyUSB0forHuaweiE173
ConfiguringGammuSMSDaemon#sudoaptgetinstallmysqlserver
#mysqladminurootcreatesmsdp#cd/tmp;gunzip/usr/share/doc/gammu/examples/sql/mysql.sql.gz#mysqlurootpsmsdCREATEUSER'smsd'@'localhost'IDENTIFIEDBY'PASSHERE';
#mysql>GRANTSELECT,INSERT,UPDATE,DELETEONsmsd.*TO'smsd'@'localhost';
Edit/etc/gammusmsdrc
[gammu]port=/dev/ttyACM0;port=/dev/ttyUSB0connection=at
[smsd]RunOnReceive=service=sqldriver=native_mysqlLogFile=sysloguser=smsdpassword=PASSHEREpc=localhostMaxRetries=5
-
database=smsd