SMS format for sending OTA bookmarks

Source: Internet
Author: User

SMS format for sending OTA bookmarks

First, you need to write a bookmark XML file, which can be downloaded from the Nokia website. The following is an example:
<? XML version = "1.0"?>
<! Doctype characteristic-list public "characteristic_list.dtd">
<Characteristic-List>
<Characteristic type = "bookmark">
<Parm name = "name" value = "bookmark name"/>
<Parm name = "url" value = "http://www.bookmark.com"/>
</Characteristic>
</Characteristic-List>

Try to make the name and URL short points. After encoding, you can put them in a short message without splitting one setting into multiple short message bodies. A general encapsulation is to convert the XML file into wbxml, and then encapsulate the WSP layer on the outside. The outermost layer is the WDP layer.

The general format of WDP is "0b0504c34fc002000304xxyy", where XX indicates the total number of parts of the entire data packet, while YY indicates that the current segment is the first segment. For example, put all a simple bookmark in an SMS so that xx = 01, YY = 01.
The meaning of each byte is as follows:

# 0b | user-data-header (udhl) Length = 11 bytes
#05 | UDH ie identifier: port numbers
#04 | UDH port number ie Length
# C3 | destination port (high)
# 4f | destination port (low)
# C0 | originating port (high)
#02 | originating port (low)
#00 | UDH ie identifier: SAR
#03 | udh sar ie Length
#04 | datemediref No.
#
# Two variable bytes, intentionally missing from WDP header, user must
# Calculate and add at send time.
#
# XX | Total number of segments in datatives
# YY | segment count

The WSP layer format of bookmark is generally "Uniform"
The specific meaning of each byte is:

#01 | transaction ID/
#06 | PDU type (push)
# XX | header length (content type headers)
# 1f | value length quote length greater than 30
# 2a | value length (Value Name not used)
# XX | mimetype encoded, variable bytes | application/x-wap-prov.browser-{bookmarks | settings}
#00 | null termination of content type string |
#81 | charset | well known parm. (short integer)
# EA | UTF-8 (using short integer)
The innermost layer is wbxml. First, you must have an xml header "01016a00"

#01 | version | wbxml 1.1
#01 | unknown public identifier |
# 6a | charset | UTF-8
#00 | string table length |

As for the other specific encoding can go to the http://www.forum.nokia.com ota_settings_general_7_0.pdf this document, which describes in detail each XML element corresponding to the hexadecimal. Note that 8-bit instead of 7-bit must be used for sending.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.