Android SMS Encoding

My problem is that I want to send an SMS message of a certain class and with a certain encoding. (Class 0 and 7-bit encoding).

When checking Android.Telephony.SmsManager and SmsMessage not much can be done. SmsManager offers two functions SendTextMessage and SendDataMessage. The first one works fine if you just want to send a normal SMS message to someone. Therefore, I assume that SendDataMessage is a function that I need to use for some reason. However, I cannot figure out how to use it. And there seems to be no examples on the Internet (that I can find) of anyone who uses this feature.

Does anyone know something that will help me? :-) Either how to send 7-bit encoded sms of class0, or how to use the SendDataMessage function correctly.

+3
source share
1 answer

The function sendDataMessageadds its own custom data header ,,UDH information consisting of the port number of the application and the encoding scheme of TP-data without a class, 8-bit data 0x04(found in the SmsMessage code base)

the function SendTextMessagewill send a message encoded with GSM7 encoding and a TP-data encoding scheme 0x00- uncompressed, by default (7 bits) encoded, without a class. According to GSM specification 03.38

0, 7 , 0x10 TP-Data. PDU. API. , ( ) API-.

SMS raw pdu Android

+6

Source: https://habr.com/ru/post/1742348/


All Articles