Upload
dangdat
View
219
Download
0
Embed Size (px)
Citation preview
A d i D M bil S l ti fAcademic Day on Mobile Solutions for Sénégal 2010g
http://www.mobilesenegal.com
Dr. Christelle [email protected] University
Jean-Marie [email protected]
James [email protected] 1
Academic Day on Mobile Solutions for Sénégal 2010Sénégal 2010
Training Faculty on:Training Faculty on:Training Faculty on:◊ Java ME/Android, ◊ Web Mobile &
SMS Gateway
Training Faculty on:◊ Java ME/Android, ◊ Web Mobile &
SMS GatewaySMS GatewaySMS Gateway
WARC/CROA 7 8 & 9 J 2010WARC/CROA 7 8 & 9 J 2010WARC/CROA. 7, 8 & 9 June 2010WARC/CROA. 7, 8 & 9 June 2010
Dr. Christelle Scharffcscharff@pace edu
Jean-Marie Preirapreira@esmt sn
James Tamgnotamgno@esmt [email protected]
Pace [email protected]
2
Objectifsj
Understanding
F t f SMS G tFeatures of SMS Gateway;
Implement
A value added service base on SMS ;
3
Description de la technologie SMS
Présentation de la passerelle kannel
Architecture et fonctionnement
p
PlanI té ti d’ i à l j té
Architecture et fonctionnementPlanIntégration d’un service à valeur ajoutée
Test et Administration
4
Description de la technologie SMS
What is SMS ?Short Message Service (SMS).
?g
It is a telecommunication protocol that enables the sending and receiving of “short”enables the sending and receiving of 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
Can be Sent and Read at Any Time, anywhereCan be Sent to an Offline Mobile PhoneCan be Sent to an Offline Mobile PhoneAre Less Disturbing While You can Still Stay in TouchAre Supported by 100% GSM Mobile Phones Are Supported by 100% GSM Mobile Phones Can be Exchanged between Different Wireless
C rri rCarriersAre Suitable Technology for Wireless Applications to
B ild Build on6
Description de la technologie SMSExample Applications of SMS Messaging
Person-to-Person Text Messaging
7
Description de la technologie SMSExample Applications of SMS Messaging
Provision of InformationD l diDownloadingAlerts and Notifications
Email, Fax and Voice Message NotificationsE-commerce and Credit Card Transaction AlertsStock Market AlertsRemote System Monitoringy g
Two-way Interactive Text Messaging ApplicationsApplications
SMS Marketing 8
Description de la technologie SMSWhat is an SMS Center / SMSC?
The SMSC
?Is The “post office” that serves the SMS traffic on
GSM networkActs as a platform for recording & transfer (store &
forward) forward) Main duty is to route SMS & regulate the processS diff f h i Supports different types of messages that increase
the usage of SMS (bells, picture, icons, melodies, sounds, animations…)
9
Description de la technologie SMSWhat is an SMS Center / SMSC?
The SMSC
?Can use many type of protocols to connect to
various external entitiesTo mobile network trough Signaling Interface Unit (SIU)Short Message Peer to Peer (SMPP)g ( )External Machine Interface (EMI/UCP) or CIMD of
NokiaOpen Interface Specification (OIS)
Can use either TCP/IP protocol as a carrierCan use either TCP/IP protocol as a carrier10
Description de la technologie SMSWhat is an SMS Gateway?
The SMS Gateway?
Acts as a relay between the two SMSCsT l t SMSC t l t Translates one SMSC protocol to
another onea other o e
11
Description de la technologie SMSWhat is an SMS Gateway?
The SMS GatewayC b h dl h i
?Can be set up to handle the connections to
the SMSCs, to support many type of Protocols pp y ypto connect to the external entity
12
Description de la technologie SMSWhat is an SMS Gateway?
The SMS Gateway?
Is capable of handling the connections to mobile phones and GSM/GPRS modems using AT p / gcommands.
13
Présentation de la passerelle kannel
What is Kannel?An Open Source project to make SMS/WAP
?An Open Source project to make SMS/WAP
Gateway (http://www.kannel.org)A f G S b Acts as a uniform Gateway Service between
various types of SMSc(s) for transporting SMS yp ( ) p gmessages
S l O ki G kii G See also Ozeki, Gnokii, Gammu, …
14
Architecture et fonctionnement
How Kannel works?Architecture of kannel
?Architecture of kannel
SMSBoxSMSC
BearerBoxHTTP
Requests
SMS Protocols
TCP
WAPBox
BearerBox RequestsWAP protocol stack
15WAP
phone Kannel
Architecture et fonctionnement
How Kannel works?SMSBox
R SMS f h B B
?Receives SMS messages from the BearerBox via its
TCP connection;Parses each of them in order to extract keywords
and parameters from it;and parameters from it;And then executes a service according to which
keyword the message contains;keyword the message contains;Listens to SMS messages via HTTP and converts
h SMS fthem into true SMS format.16
Architecture et fonctionnement
How Kannel works?BearerBox
?BearerBox
Receives UDP messages from mobile phone via SMSC(s);
Routes UDP packets (Send & receives) Routes UDP packets (Send & receives) to SMSBox;;
Sends the UDP message back to mobile hphone.
17
Architecture et fonctionnement
How Kannel works?Gateway design
?
HTTP request to forward SMS Text
USB/RS 232USB/RS-232AT Commands
AT+CNMI=1,2,0,1,1SMS Text
18Modem GSM/GPRS
Intégration d’un service à valeur ajoutée
What Things do we needg j
?Hardware
?A computerGSM/GPRS modems using AT commands, with usb/serial
SoftwareLinux OS with Mysql-Server-5 0 php5 phpmyadminLinux OS with Mysql-Server-5.0, php5, phpmyadmin…Kannel (http://www.kannel.org)
l (h // l f )playSMS (http://playsms.sourceforge.net)
19
Intégration d’un service à valeur ajoutée
What are the steps to setup SMS Gatewayg j
??11
44
Testing upTesting up
44
g pg p
22
33
20
Intégration d’un service à valeur ajoutéeg j
What are the steps to setup SMS Gateway?1 Setting up GSM modem
?1.Setting up GSM modem
a Put SIM card into the GSM modema. Put SIM card into the GSM modem
b O i l d d il f / /l /b. Open terminal and do tail –f /var/log/messages
c. Plug GSM modem into the usb/serial port, “watch b.”
21
Intégration d’un service à valeur ajoutéeg j
What are the steps to setup SMS Gateway?2 Install & setup kannel
?2.Install & setup kannel
“be sure that libxml2-dev & libxml are installed”
a. aptitude install kannel kannel-develb f 1 4 3b. from source : gateway-1.4.3.tar.gz
• (tar xzvf gateway-1.4.3.tar.gz , cd( g y 4 g ,gateway-1.4.3 ; ./configure ; make ;
k i t ll)make install)22
Intégration d’un service à valeur ajoutéeg j
What are the steps to setup SMS Gateway?2. Install & setup kannel : /etc/kannel.conf
?1 2 3
Ports & logs files
Handle SMSC specific protocol
and message
Contents modem description
and message releying
23TUTO NTUTO N 11
Intégration d’un service à valeur ajoutéeg j
What are the steps to setup SMS Gateway??2. Install & setup kannel : /etc/kannel.conf
1Higher level
2 3
Higher-level SMS handling
Interprets them i
Handle SMSC specific protocol
and message
Contents modem description
as service requests
greleying
24TUTO NTUTO N 11
Intégration d’un service à valeur ajoutéeg j
What are the steps to setup SMS Gateway?2 Install & setup PlaySMS
?2.Install & setup PlaySMS
TUTO NTUTO N 22TUTO NTUTO N 22
25
Test et Administration
How to proceed?p
Start kannel
?Start kannel
/ /i i d/k l a. /etc/init.d/kannel restart
b. bearerbox -v 1 /etc/kannel/kannel.conf &
c. smsbox -v 1 /etc/kannel/kannel.conf &
26
Test et Administration
How to proceed?Open playSMS website
p ?a. First, restart apache2: /etc/init.d/apache2 restart , p / / / pb.http://localhost/~playsms c Logon with username: admin & password: adminc. Logon with username: admin & password: admind. Send text message from the website to handset
27