Send OTA bookmarks of SMS format

xiaoxiao2021-03-06  99

Send OTA bookmarks of SMS format

First, you need to write a Bookmark's XML file, this format can go to the NOKIA website to download. Here is an example:

Try to make Name and URL short, you can put it in a short message after encoding, and you don't need to split a setting into multiple short cancellations. A generally package is to transfer XML files to WBXML, then encapsulate the WSP layer outside, and the outermost is the WDP layer.

The general format of WDP is "0B0504C34FC002000304xxyy", where XX is the total number of pieces of the entire packet, and yy indicates the first segment of the first few pieces. For example, a simple bookmark is all in one SMS such XX = 01, yy = 01. Below is the meaning of every Byte:

# 0b | User-data-header (udhl) length = 11 bytes # 05 | udh ie ide # 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 | DataGram Ref No. ## Two Variable Bytes, Intensionally Missing from WDP Header, User Must # Calculate and add at send time. ## xx | Total Number of Segments in DataGram # yy | segment count

The format of the Bookmark WSP layer is generally "01062d1f2a6170706c69636174696f6e2f782d7761702d70726f76222726f77,7365722d626f6f6b61722d626f6f6b61726b730081" Each Byte's specific meaning:

# 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 is WBXML, first must have an XML head "01016A00" # 01 | version | WBXML 1.1 # 01 | Unknown Public Identifier | # 6A | Charset | UTF-8 # 00 | String Table Length |

As for other specific codes, you can go to http://www.forum.nokia.com to view OTA_SETTINGS_GENERAL_7_0.PDF, which is very detailed to describe the hexadecimal corresponding to each XML element. Finally, pay attention to the transmission of the 8bit format when sending, not 7bit.

转载请注明原文地址:https://www.9cbs.com/read-98814.html

New Post(0)