You are on page 1of 29

A d i Day

Academic
D on M
Mobile
bil Solutions
S l ti
for
f
Sngal
g 2010

http://www.mobilesenegal.com

Dr. Christelle Scharff


cscharff@pace.edu
Pace University

Jean-Marie Preira
preira@esmt.sn
ESMT

James Tamgno
tamgno@esmt.sn
ESMT

Academic Day on Mobile Solutions for


Sngal 2010

Training Faculty on:


Java ME/Android, Web Mobile &
SMS Gateway
WARC/CROA 7
WARC/CROA.
7, 8 & 9 June
J
2010

Dr. Christelle Scharff


cscharff@pace edu
cscharff@pace.edu
Pace University

Jean-Marie Preira
preira@esmt sn
preira@esmt.sn
ESMT

James Tamgno
tamgno@esmt sn
tamgno@esmt.sn
ESMT

Objectifs
j
Understanding
F t
Features
off SMS Gateway;
G t

Implement
A value added service base on SMS ;

Description de la technologie SMS


Prsentation de la p
passerelle kannel

Plan

Architecture et fonctionnement
I t
Intgration
ti dun
d service
i valeur
l
ajoute
j t
Test et Administration
4

Description de la technologie SMS


What is SMS

Short Message
g Service (SMS).

9It is a telecommunication protocol that


enables the sending and receiving of short
short
(160 characters or less) text messages
between mobile phones
5

Description de la technologie SMS

What Makes SMS Messaging So Successful

SMS Messages
g

9Can be Sent and Read at Any Time, anywhere


9Can
Can be Sent to an Offline Mobile Phone
9Are Less Disturbing While You can Still Stay in Touch
9Are Supported by 100% GSM Mobile Phones
9Can be Exchanged between Different Wireless
C rri r
Carriers
9Are Suitable Technology for Wireless Applications to
B ild on
Build
6

Description de la technologie SMS

Example Applications of SMS Messaging


Person-to-Person Text Messaging

Description de la technologie SMS

Example Applications of SMS Messaging


Provision of Information
D
Downloading
l di
Alerts and Notifications
Email, Fax and Voice Message Notifications
E-commerce and Credit Card Transaction Alerts
Stock Market Alerts
Remote System
y
Monitoringg

Two-way Interactive Text Messaging


Applications
SMS Marketing

Description de la technologie SMS

What is an SMS Center / SMSC


The SMSC

9Is The post office that serves the SMS traffic on


GSM network
9Acts as a platform for recording & transfer (store &
forward)
9Main duty is to route SMS & regulate the process
9S
9Supports
diff
different types off messages that
h iincrease
the usage of SMS (bells, picture, icons, melodies,
sounds, animations)
9

Description de la technologie SMS

What is an SMS Center / SMSC


The SMSC
9Can use many type of protocols to connect to
various external entities

To mobile network trough Signaling Interface Unit (SIU)


Short Message
g Peer to Peer (SMPP)
(
)
External Machine Interface (EMI/UCP) or CIMD of
Nokia
Open Interface Specification (OIS)

9Can
Can use either TCP/IP protocol as a carrier
10

Description de la technologie SMS

What is an SMS Gateway


The SMS Gateway
9Acts as a relay between the two SMSCs
9T
9Translates
l t one SMSC protocol
t l tto
onee
aanother
other o

11

Description de la technologie SMS

What is an SMS Gateway


The SMS Gateway

9Can be
9C
b set up to handle
h dl the
h connections
i
to
pp manyy type
yp of Protocols
the SMSCs, to support
to connect to the external entity

12

Description de la technologie SMS

What is an SMS Gateway


The SMS Gateway
9Is capable of handling the connections to mobile
phones and GSM/GPRS
p
/
modems usingg AT
commands.

13

Prsentation de la passerelle kannel

What is Kannel

An Open Source project to make SMS/WAP


Gateway (http://www.kannel.org)
A as a uniform
Acts
f
G
Gateway Service
S
b
between
various types
yp of SMSc(s)
( ) for transporting
p
g SMS
messages
S also
See
l Ozeki,
O ki Gnokii,
G kii Gammu,
G

14

Architecture et fonctionnement

How Kannel works


Architecture of kannel
SMSC

SMSBox

SMS Protocols

BearerBox

TCP

WAP protocol stack

WAP
phone

HTTP
Requests

Kannel

WAPBox
15

Architecture et fonctionnement

How Kannel works


SMSBox

9Receives SMS messages from


9R
f
the
h BearerBox
B
B via its
TCP connection;
9Parses each of them in order to extract keywords
and parameters from it;
9And then executes a service according to which
keyword the message contains;
9Listens to SMS messages via HTTP and converts
them
h into true SMS format.
f
16

Architecture et fonctionnement

How Kannel works


BearerBox

9Receives UDP messages from mobile


phone via SMSC(s);
9Routes UDP packets (Send & receives)
to SMSBox;;
9Sends the UDP message back to mobile
phone.
h
17

Architecture et fonctionnement

How Kannel works


Gateway design

HTTP request to forward SMS Text

SMS Text

USB/RS-232
USB/RS 232
AT Commands
AT+CNMI=1,2,0,1,1
Modem GSM/GPRS

18

Intgration
g
dun service valeur ajoute
j

What Things do we need


Hardware

9A computer
9GSM/GPRS modems using AT commands, with usb/serial

Software
9Linux OS with Mysql-Server-5.0,
Mysql-Server-5 0 php5
php5, phpmyadmin
phpmyadmin
9Kannel (http://www.kannel.org)
9 l
9playSMS
(http://playsms.sourceforge.net
h // l
f
)
19

Intgration
g
dun service valeur ajoute
j

What are the steps to setup SMS Gateway

1
4
Testing
g up
p

2
3
20

Intgration
g
dun service valeur ajoute
j

What are the steps to setup SMS Gateway

1 Setting up GSM modem


1.
a Put SIM card into the GSM modem
a.
b Open
b.
O
terminal
i l and
dd
do tail
il ff /var/log/messages
/ /l /
c. Plug GSM modem into the usb/serial port, watch b.
21

Intgration
g
dun service valeur ajoute
j

What are the steps to setup SMS Gateway

2 Install & setup kannel


2.
be sure that libxml2-dev & libxml are installed

a. aptitude install kannel kannel-devel

b from
b.
f
source : gateway-1.4.3.tar.gz
143
((tar xzvf ggateway-1.4.3.tar.gz
y 4
g , cd
gateway-1.4.3 ; ./configure ; make ;
make
k install)
i t ll)
22

Intgration
g
dun service valeur ajoute
j

What are the steps to setup SMS Gateway


2. Install & setup kannel : /etc/kannel.conf
1

Ports & logs


files

Handle SMSC
specific protocol
and message
releying

Contents modem
description

TUTO N 1
23

Intgration
g
dun service valeur ajoute
j

What are the steps to setup SMS Gateway


2. Install & setup kannel : /etc/kannel.conf
1

Higher-level
Higher
level
SMS handling
Interprets them
as service
i
requests

Handle SMSC
specific protocol
and message
g
releying

Contents modem
description

TUTO N 1
24

Intgration
g
dun service valeur ajoute
j

What are the steps to setup SMS Gateway

2 Install & setup PlaySMS


2.Install
TUTO N 2

25

Test et Administration

How to p
proceed

Start kannel
a. /etc/init.d/kannel
/ /i i d/k
l restart
b. bearerbox -v 1 /etc/kannel/kannel.conf &
c. smsbox -v 1 /etc/kannel/kannel.conf &
26

Test et Administration

How to p
proceed
Open playSMS website

a. First,, restart apache2:


p
//etc/init.d/apache2
/
/ p
restart

b.http://localhost/~playsms
cc. Logon with username: admin & password: admin
d. Send text message from the website to handset

27

Conclusion

Enjoy Yourself!

28

29

You might also like