A d i Day Academic D on M Mobile bil Solutions S l ti for f Sénégal 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 1
Academic Day on Mobile Solutions for Sénégal 2010 Training Faculty on: Java ME/Android, Web Mobile & SMS Gateway WARC/CROA. 7, 8 & 9 June 2010 Dr. Christelle Scharff cscharff@pace.eduedu Pace University Jean-Marie Preira preira@esmt.snsn ESMT James Tamgno tamgno@esmt.snsn ESMT 2
Objectifs Understanding Features of SMS Gateway; Implement A value added service base on SMS ; 3
Description de la technologie SMS Présentation de la passerelle kannel Plan Architecture et fonctionnement Intégration ti d un service à valeur ajoutée Test et Administration 4
Description de la technologie SMS Short Message Service (SMS). What is SMS? It is a telecommunication protocol that 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 Can be Sent and Read at Any Time, anywhere Can be Sent to an Offline Mobile Phone Are Less Disturbing While You can Still Stay in Touch Are Supported by 100% GSM Mobile Phones Can be Exchanged between Different Wireless Carriers r Are Suitable Technology for Wireless Applications to Build on 6
Description de la technologie SMS Example Applications of SMS Messaging Person-to-Person Text Messaging 7
Description de la technologie SMS Example Applications of SMS Messaging Provision of Information Downloadingl Alerts and Notifications Email, Fax and Voice Message Notifications E-commerce and Credit Card Transaction Alerts Stock Market Alerts Remote System Monitoring Two-way Interactive Text Messaging Applications SMS Marketing 8
The SMSC Description de la technologie SMS What is an SMS Center / SMSC? Is The post office that serves the SMS traffic on GSM network Acts as a platform for recording & transfer (store & forward) Main duty is to route SMS & regulate the process Supports different types of messages that increase the usage of SMS (bells, picture, icons, melodies, sounds, animations ) 9
The SMSC Description de la technologie SMS What is an SMS Center / SMSC? Can use many type of protocols to connect to various external entities To mobile network trough Signaling Interface Unit (SIU) Short Message Peer to Peer (SMPP) External Machine Interface (EMI/UCP) or CIMD of Nokia Open Interface Specification (OIS) Can use either TCP/IP protocol as a carrier 10
Description de la technologie SMS What is an SMS Gateway? The SMS Gateway Acts as a relay between the two SMSCs Translates l t one SMSC protocol to another one 11
Description de la technologie SMS What is an SMS Gateway? The SMS Gateway Can be set up to handle the connections to the SMSCs, to support many type of Protocols to connect to the external entity? 12
Description de la technologie SMS What is an SMS Gateway? The SMS Gateway Is capable of handling the connections to mobile phones and GSM/GPRS modems using AT commands. 13
Présentation de la passerelle kannel What is Kannel? An Open Source project to make SMS/WAP Gateway (http://www.kannel.org) Acts as a uniform Gateway Service between various types of SMSc(s) () for transporting SMS messages See also Ozeki, Gnokii, Gammu, 14
Architecture et fonctionnement How Kannel works? Architecture of kannel SMSC WAP phone SMS Protocols BearerBox WAP protocol stack Kannel TCP SMSBox WAPBox HTTP Requests 15
SMSBox Architecture et fonctionnement How Kannel works? Receives SMS messages from the BearerBoxB via its TCP connection; Parses each of them in order to extract keywords and parameters from it; And then executes a service according to which keyword the message contains; Listens to SMS messages via HTTP and converts them into true SMS format. 16
BearerBox Architecture et fonctionnement How Kannel works? Receives UDP messages from mobile phone via SMSC(s); Routes UDP packets (Send & receives) to SMSBox; Sends the UDP message back to mobile phone. 17
Architecture et fonctionnement How Kannel works? Gateway design HTTP request to forward SMS Text SMS Text USB/RS-232 AT Commands AT+CNMI=1,2,0,1,1 Modem GSM/GPRS 18
Hardware Intégration d un service à valeur ajoutée What Things do we need A computer GSM/GPRS modems using AT commands, with usb/serial Software Linux OS with Mysql-Server-5.0, php5, phpmyadmin Kannel (http://www.kannel.org) playsms l (http://playsms.sourceforge.net) l f )? 19
Intégration d un service à valeur ajoutée What are the steps to setup SMS Gateway? 1 2 3 4 Testing up 20
Intégration d un service à valeur ajoutée What are the steps to setup SMS Gateway? 1.Setting up GSM modem a. Put SIM card into the GSM modem b. Open terminal and do tail f /var/log/messages/l / c. Plug GSM modem into the usb/serial port, watch b. 21
Intégration d un service à valeur ajoutée What are the steps to setup SMS Gateway? 2.Install & setup kannel be sure that libxml2-dev & libxml are installed a. aptitude install kannel kannel-devel b. from source : gateway-1.4.3.tar.gz 143 (tar xzvf gateway-1.4.3.tar.gz g, cd gateway-1.4.3 ;./configure ; make ; make install) tll) 22
Intégration d un service à valeur ajoutée 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 releying Contents modem description TUTO N 1 23
Intégration d un service à valeur ajoutée What are the steps to setup SMS Gateway? 2. Install & setup kannel : /etc/kannel.conf 1 2 3 Higher-level SMS handling Interprets them as service requests Handle SMSC specific protocol and message releying Contents modem description TUTO N 1 24
Intégration d un service à valeur ajoutée What are the steps to setup SMS Gateway? 2.Install & setup PlaySMS TUTO N 2 25
Start kannel Test et Administration How to proceed? a. /etc/init.d/kannel/i i restart b. bearerbox -v 1 /etc/kannel/kannel.conf & c.smsbox -v 1 /etc/kannel/kannel.conf & 26
Test et Administration Open playsms website How to proceed? a. First, restart apache2: /etc/init.d/apache2 / /p restart b.http://localhost/~playsms c. Logon with username: admin & password: admin d. Send text message from the website to handset 27
Conclusion Enjoy Yourself! 28
29