This article gives you hints on what binary SMS is and how to send binary SMS successfully from PC to mobile phones. For this purpose, you will need a powerful SMS gateway software that can do the heavy work for you. For demonstration, I used a real example of Ozeki NG SMS Gateway software.
Binary SMS is an SMS message type that can include rich content for being sent to mobile phones or devices through SMS. Binary SMS is used to send more complex data than standard text messages. The maximum message length is 140 octets.
Binary SMS can also have direct access to the PID, DCS and UDH fields in the SMS PDU (this SMS type is SMS:BINARY:XML). This message type allows you to send all types of binary messages. So in order to send a binary SMS message, it is recommended to use the SMS:BINARY:XML message format in the Ozeki NG SMS Gateway. This message format allows you to define the DCS, PID, UDH and UD values of the message.
Binary SMS XML can be sent with a thorough knowledge of the structure of an SMS message. You need to be familiar with the following: Data Coding Scheme (TP-DCS), Protocol Identifier (TP-PID), User Data Header (UDH) and User Data (UD).
Also, you need to be able to encode different message types into WBXML format. This is usually different with each message type.
The values mentioned above need to be specified as hexadecimal numbers in the SMS message to be sent.
Binary SMS has a maximum amount of 140 bytes of data that can be used. This amount of bytes can be split into two components; the data header, and the actual content data. The data header is used generally to notify mobile phones about this particular message type. The SMS message can be used to deliver multimedia content, like ringtones, operator logos, WAP push messages, phonebook contacts, and telephone settings.
Usually newer standard mobile phones are capable of not only receiving but also composing binary SMS messages, if the device allows to insert sound, photo, or video into a standard SMS message. This allows DCS, PID, UDH (User Data Header) and UD (User Data) values to be defined within the message.
A Binary SMS message consists of the follows:
PID in hexadecimal format (1 byte)
DCS in hexadecimal format (1 byte)
UDH in hexadecimal format
UD in hexadecimal format
In this code PID means Data Coding Scheme, DC is a Protocol Identifier.
This structure can be implemented as it is shown in the following example:
Interpretation of the string of characters between the UDH tags:
06: User Data Header length (6 bytes follow)
05: UDH IE Identifier: Port numbers
04: UDH Port number IE length (4 bytes follow: 2 for Destination port, 2 for Originating port)
0B84: Destination port
23F0: Originating port
Interpretation of the string of characters between the UD tags:
EA: Transaction ID
06: PDU type (push)
01: Length of header (1 byte follows)
AE: Content-type: application/vnd.wap.sic
These are followed by the XML of the WAP Push message type encoded into WBXML format, following the respective encoding rules. This is the Wap Push message:
Binary SMS messages are XML-formatted textual SMS messages that have been formatted with WBXML (WAP Binary Extensible Markup Language). WBXMLs are “tag transformers”, which means that for individual XML tags, a binary byte is associated. The outcome of the WBXML transformation will be small regarding the number of generated bytes. For example, even URL content can be shortened by WBXML, where 0D stands for http://www., which will result the following content:
Source: www.ozekisms.com (The official website of Ozeki NG SMS Gateway)
By Capri23auto from Pixabay