WAP-PUSH SMS Encoding
SMS
00
41 A SMS-SUBMIT message with a User
Header
00 This is the message reference but
here we let the phone set it.
0B Length of the address, change this
if you change the receiver number
91 The
address type used, in this case international starting with country code
6437021446F4 This
is the phone number, check the SMS tutorial.
00 Protocol
identifier.
04 Data
coding scheme, in this case 8-bit bytes.
6A This
is the length of the User Data ( 106 Bytes ).
WDP
0B User Data Header length (not
including this byte)
05 identifer elements, port addressing
04 length of element
0B84 push dest port (2948)
23F0 push originator port (9200)
00 concatenated
short message
03 length
of element
01 ref
number
01 max
number of segments
01 current
segmenet number
WSP
01 Push transaction id
06 WSP type is Push
06 header length
01 content type length
AE content type: application/vnd.wap.sic
AF header.x-wap-application-id
82 2 - the WML User Agent
B4 header:push-flag
85 101 - last-push, URI
authenticated
Service Indicator
02 <Version number -
WBXML version 1.2>
05 <SI
1.0 Public Identifier>
04 <Charset
ISO-8859-1 = 04> (UTF-8 = 6A)
00 <String
table length>
45 <SI
element start, with content 0x05 | 0x40>
C6 <indication
element start, with content and
attributes 0x06 | 0x40| 0x80>
0C http://
03 (next is an ASCII string 00
terminated)
70 65 6F 70 6C 65 2E 64 73 76 people.dsv
2E 73 75 2E 73 65 2F 7E 72 62 62
6F .su.se/~rbbo
2F 70 72 6F 6A 2F 69 6E 64 78 /proj/index
2E 70 68 70 .php
00
08 <action=signal-high>
01 <indication
element attributes end>
03 (next is an ASCII string
00 terminated, the SI content)
57 68 61 74 27 73 20 79 6F 75 4A
6F 69 6E 6F 75 72 Join our
72 20 6F 70 69 6E 69 6F 6E 3F 73
75 72 76 65 79 survey
00
01 <indication
element end>
01 <SI
element end>
Final Code-
AT+CMGS=119
0041000B916437021446F400046A0B05040B8423F0000301010101060601AEAF82B4850205040045C60C03706
56F706C652E6473762E73752E73652F7E7262626F2F70726F6A2F696E64782E706870000801034A6F696E6F757
2737572766579000101