26
1 Developing Mobile Applications 2G1722 – Johan Montelius Developing Mobile Applications Messaging – SMS, WAP Push and MMS

sms messaging /mms messgaing / gsm concept

Embed Size (px)

DESCRIPTION

one of the most authentic source to learn WAP , MMS , paging , smsuniversity project design , matlab codes , telecom world inpurt , etsi author writeen real time analysisfrom the step where the sms protocols will be started and where it will be ended ........

Citation preview

Page 1: sms messaging /mms messgaing / gsm concept

1Developing Mobile Applications 2G1722 – Johan Montelius

Developing Mobile Applications

Messaging – SMS, WAP Push and MMS

Page 2: sms messaging /mms messgaing / gsm concept

2Developing Mobile Applications 2G1722 – Johan Montelius

The SMS architecture

MSCSMSC

SGSN

service center: +46708000708

PI

A user can change SMSC.

A roaming user will use it home SMSC.

SMS over GPRS is more efficient (less setup time) but not always available.

Page 3: sms messaging /mms messgaing / gsm concept

3GSM Network and Services 2G1723 Johan Montelius

SMS services

• Mobile Terminating and Mobile Originating SMS is treated as two different services.

• Mobile has the address of a SMS service center (in the home PLMN) to which all messages are sent.

• The SMSC can be reached from external nodes (Short Message Entities) through a number of protocols.

Page 4: sms messaging /mms messgaing / gsm concept

4GSM Network and Services 2G1723 Johan Montelius

SMS signalingS MS C

submission

delivery

delivery report

sub. report

status report

Page 5: sms messaging /mms messgaing / gsm concept

5GSM Network and Services 2G1723 Johan Montelius

SMS-SUBMIT

RP DHI S RR RDVPF MTI

message reference

7 6 5 4 3 2 1 0

destination address (2 – 12 octets)

protocol identifier

coding scheme

validity period (0, 1 or 7 octets)

user data length

user data ( 0 – 140 octets)

• Message Type Indicator – 01 submit

• Reject Duplicate• Validity Period Format

– relative, enhanced, absolute, not available

• Status Report Request

• User Data Header Ind.

• Reply Path Request

Page 6: sms messaging /mms messgaing / gsm concept

6GSM Network and Services 2G1723 Johan Montelius

SMS Destination

• Length of address (one byte)• Format (one byte)

– Type of number: int, nat, local, .. – Numbering plan: E.164, ...

• The number – 46 70 91 23 45 6 is coded like– 64 07 19 32 54 F6 in hex

Page 7: sms messaging /mms messgaing / gsm concept

7GSM Network and Services 2G1723 Johan Montelius

Protocol Identifier

• regular: SME to SMSC• page: acknowledge but do not notify

user • mobile: handled by the terminal • SIM: handled by the card• telematic services: fax, telex, email• many more ......

Page 8: sms messaging /mms messgaing / gsm concept

8GSM Network and Services 2G1723 Johan Montelius

Coding scheme

• Coding group– general, message waiting, data

• Character coding– GSM 7-bit (3GPP 23.038) – Universal Character Set (ISO 10646)– 8-bit data– Text compression

• Message class– immediate display (message)– mobile, SIM, terminal equipment (computer)

Page 9: sms messaging /mms messgaing / gsm concept

9GSM Network and Services 2G1723 Johan Montelius

SMS Validity period

• Relative received by SMSC (1 octet):– 0-143 x 5min– 144-167 12h + x 30 min– 168-196 x days– 197-255 x weeks

• Absolute (7 octets)– year (00-99), month, day, time

• Enhanced– resending, relative, absolute time

Page 10: sms messaging /mms messgaing / gsm concept

10GSM Network and Services 2G1723 Johan Montelius

SMS user data

• Text SMS in 7bit GSM alphabet– one escape character that changes

character table

• Text SMS in USC2 16-bit for non-latin alphabets

• 8-bit user data– possibly containing user data headers

• In total – 140 bytes or– 160 7-bit characters

Page 11: sms messaging /mms messgaing / gsm concept

11GSM Network and Services 2G1723 Johan Montelius

Let's send a SMS

Page 12: sms messaging /mms messgaing / gsm concept

12GSM Network and Services 2G1723 Johan Montelius

SMS-DELIVER

RP UDHI S R I MM MTI

coding scheme

7 6 5 4 3 2 1 0

time stamp (7 octets)

user data length

user data ( 0 – 140 octets)

• Message Type Indicator (00)

• More messages• Status Report Ind.

– did the sender request a status report

• UDHI– user data header

indication

• RP– reply path set

protocol identifier

originator address (2 -12)

Page 13: sms messaging /mms messgaing / gsm concept

13GSM Network and Services 2G1723 Johan Montelius

User data headers

UDHL IE IE User Data

id lth data

user data header length

information element

Page 14: sms messaging /mms messgaing / gsm concept

14GSM Network and Services 2G1723 Johan Montelius

Information Elements

• Concatenating messages• Enhanced Message Service

– each IE is a icon, sound or formating instruction and a position where this should be visible

– a set of predefined icons– Nokia introduced their own version “smart

messaging” that allowed ring tones and backgrounds to be sent over SMS.

• Application addressing– this is important

• Much more

Page 15: sms messaging /mms messgaing / gsm concept

15GSM Network and Services 2G1723 Johan Montelius

SMS infrastructure

SMSCSME

You :-)

HTTP/XML

SMPP

AT+

content provider

serviceprovider

mobile operatorPOP/SMTP

Page 16: sms messaging /mms messgaing / gsm concept

16GSM Network and Services 2G1723 Johan Montelius

WAP Push over SMS

• What do we want to send– we don't want to surf the web!

• Network initiated– the message is a WSP Push– delivered over WDP/UDP to the terminal, to a

specified port– the WDP/UDP packet is sent over SMS– the terminal need to have a process listening

on the port

• WAP Push Application– listening on port 2948

Page 17: sms messaging /mms messgaing / gsm concept

17GSM Network and Services 2G1723 Johan Montelius

MMS

• Multimedia Message Service– MMS 1.0 uses WAP 1.x stack– MMS 1.1-2 uses either WAP 1.x or 2.0– read WAP 205 MMS Architecture Overview

• Messages submitted using WSP/HTTP.• Notification delivered using WAP Push (over

SMS). • Message retrieved by terminal using WSP/

HTTP

Page 18: sms messaging /mms messgaing / gsm concept

18GSM Network and Services 2G1723 Johan Montelius

MMS protocols

HTTP POSTMMSCWAPgw

WSP Push

HTTP GET

HTTP reply

ack

Page 19: sms messaging /mms messgaing / gsm concept

19GSM Network and Services 2G1723 Johan Montelius

MMS content

• A MMS message is coded using – RFC 2822, Internet message – RFC 2045,.. Multipart Internet Mail Extensions

(MIME)

• Content is often a SMIL message– Synchronised Multimedia Integration

Language

Page 20: sms messaging /mms messgaing / gsm concept

20GSM Network and Services 2G1723 Johan Montelius

MMS - submission

X-Mms-Message-Type: m-send-reqX-Mms-Tranaction-ID: 345 :To:+46709123456/TYPE=PLMNFrom: ????Subject: this is a testContent-type: application/vnd.wap.multipart.mixed; boundary=foo-bar

:Content-type: application/vnd-wap-mms-message :

Page 21: sms messaging /mms messgaing / gsm concept

21GSM Network and Services 2G1723 Johan Montelius

MMS - SMIL

<smil> <head> <layout> <root-layout/> <region id=”Image” top=”0” left=”0” ... /> <region id=”Text” top=”50%” left=”0”.. /> </layout> </head> <body> <par dur=”4000ms”> <text src=”foo.txt” region=”Text”/> <img src=”bar.gif” region=”Image”/> </par> </body></smil>

Page 22: sms messaging /mms messgaing / gsm concept

22GSM Network and Services 2G1723 Johan Montelius

MMS - notification

X-Mms-Message-Type: m-notification-indX-Mms-Tranaction-ID: 567 :From:+46709123456/TYPE=PLMNSubject: this is a testX-Mms-Content-Location: http://mmsc.operator.com/msg23

:Content-type: application/vnd-wap-mms-message :

Page 23: sms messaging /mms messgaing / gsm concept

23GSM Network and Services 2G1723 Johan Montelius

MMS notificationSMS to +46709123456

UDP to port 2948

WSP Pushx-wap-application: mms.uacontent-type: application./vnd.wap.mms-message

X-Mms-Message-Type: m-notification-indX-Mms-Tranaction-ID: 567 :From:+46709123456/TYPE=PLMNSubject: this is a testX-Mms-Content-Location: http://mmsc.op...

Page 24: sms messaging /mms messgaing / gsm concept

24GSM Network and Services 2G1723 Johan Montelius

Service Indication/Load

• Instead of pushing a MMS-notification we can push a other messages

• Service Indication – contains a URL that is opened by

the browser (if the user agrees)• Service Load

– The terminal will retrieve the settings automatically (depending on security settings)

Page 25: sms messaging /mms messgaing / gsm concept

25GSM Network and Services 2G1723 Johan Montelius

Service IndicationSMS to +46709123456

UDP to port 2948

WSP Pushx-wap-application: wml.uacontent-type: application./vnd.wap.sic <?xml version="1.0"?> <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd"> <si> <indication href="http://www.foo.com/test.wml" > This is a test. </indication> </si>

Page 26: sms messaging /mms messgaing / gsm concept

26GSM Network and Services 2G1723 Johan Montelius

J2ME

• Using J2ME and JSR-120 WMA you can register a midlet on a port.

• The messages can be sent using SMS port addressing.

• Cool– P2P games over SMS– initiate communication from the

network– wake up on SMS