Questions tagged [pdu]

Protocol Data Unit. Also know as Concatenated SMS, it is a way to extend SMS messages beyond the usual 160 character data limit.

In the cellular phone industry, mobile phones and their networks sometimes support concatenated short message service (or concatenated SMS) to overcome the limitation on the number of characters that can be sent in a single SMS text message transmission (which is usually 160). Using this method, long messages are split into smaller messages by the sending device and recombined at the receiving end. Each message is then billed separately. When the feature works properly, it is nearly transparent to the user, appearing as a single long text message.

http://en.wikipedia.org/wiki/Concatenated_SMS

117 questions
12
votes
3 answers

Create PDU for Android that works with SmsMessage.createFromPdu() (GSM 3gpp)

Goal: (NOTE: The answer selected generates a GSM (3gpp) PDU) for CDMA (3gpp2) please refer here To create a PDU that can be passed into SmsMessage.createFromPdu(byte[] pdu). I'm "Broadcasting an Intent" to one of my BroadcastReciever that listens…
StrikeForceZero
  • 2,379
  • 1
  • 25
  • 36
9
votes
2 answers

How "deliveryIntent" works in Android SMS framework?

Android documentation for SMSManagers sendTextMessage function public void sendTextMessage (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent) deliveryIntent if not NULL this…
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
9
votes
2 answers

+CMS ERROR: 304, sending message using at command

Im new to GSM and AT command sets, based on the error +CMS ERROR: 304 its a Invalid PDU mode parameter according to activexperts Im trying to send message using AT command to GSM modem in PDU mode AT+CMGF=0 OK AT+CMGS=31 >…
kudarap
  • 631
  • 3
  • 6
  • 16
8
votes
2 answers

SMS raw pdu in Android

1) Is there any way that I can send a raw SMS PDU from an Android device? Or, 2) are there any classes available that can give me access to the PDU headers (for example TP-DCS) so that I can construct the PDU as I like? I have searched the net and…
zlinks
  • 1,037
  • 2
  • 16
  • 26
8
votes
2 answers

When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first?

While I can successfully encode and decode the user data part of an SMS message when a UDH is not present, I'm having trouble doing so when a UDH is present (in this case, for concatenated SMS). When I decode or encode the user data, do I need to…
Doug
  • 317
  • 2
  • 5
  • 12
6
votes
2 answers

How to concat long SMS in GSMComm Library?

Here is my code: According to this page the CreateConcatTextMessage method returns an array with type SmsSubmitPdu[] but, when I try to send it with SendMessages I get a MessageServiceError 500. What am I missing? SmsSubmitPdu[] pdu2; …
Dac
  • 210
  • 3
  • 19
6
votes
1 answer

How to get phone number of SMS recipient in Android

I have seen many questions asking how to get the SMS sender's phone number, but not the recipient's phone number. I have used the tool on this site to generate a PDU and can see the recipient's phone number in it: Useful PDU details and PDU…
gonzobrains
  • 7,856
  • 14
  • 81
  • 132
5
votes
0 answers

Unit Testing Android SMS Receiver

i try to write an unit test on an BroadcastReceiver that gets informed when an SMS was received. Its not meant to be the default Application. Instead i just need this for an two factor authentication. For this case i created an PDU with [1]. But…
Kitesurfer
  • 3,438
  • 2
  • 29
  • 47
5
votes
1 answer

SMS PDU format - how to extract message part

How can I extract a message from SMS PDU? I need to take a message from SMS PDU. When I use some online services, they work fine. For example, here - http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/online-sms-pdu-decoder/ - message from PDU…
another-programmer
  • 841
  • 13
  • 37
4
votes
1 answer

Is the BroadcastReceiver.onReceive called exactly once per sms?

I have a BroadcastReceiver listenting for android.provider.Telephony.SMS_RECEIVED. I am going to intercept some SMS, so I will abortBroadcast(), but not for all SMS. But when I extract the SMS from the intent, I guess I can get MORE than one…
Persimmonium
  • 15,593
  • 11
  • 47
  • 78
4
votes
0 answers

Libtins TCP stream missing packet?

First of all, thanks for your patience. This issue may only be due to my lack of understanding as I am a complete beginner in PDU, ... I am trying to do some TCP stream reassembling using libtins in order to measure some metrics. The issue is,…
Namoz
  • 540
  • 2
  • 14
4
votes
1 answer

Explanation of PDU size in Bluetooth Low Energy 4.2

In Bluetooth Low Energy 4.0 and 4.1, the max PDU of an OTA packet is 39 bytes (47 bytes with preamble, access address and CRC) and was increased to 257 bytes in version 4.2. The reason of short packet is stability of the radio, long packets heat up…
JJM
  • 178
  • 1
  • 2
  • 9
4
votes
1 answer

explain sms UDH header 08 07 01 03 00 03 08 02 02?

i have read udh details from concatenated-sms but those example are like 05 00 03 A6 02 01 And 06 08 04 F4 2E 02 01 but i have received sms with this header 08 07 01 03 00 03 08 02 02 i know first octet 08 is header length 2nd octet …
shabbir92
  • 59
  • 1
  • 7
4
votes
2 answers

Why does `SmsMessage.createFromPdu` return an array?

In Android, if I want to read an incoming SMS, I would use SmsMessage.createFromPdu, but this returns an array of SmsMessages. Why is that? Why not just a single SmsMessage? Is it because long messages could be divided into several? If so, does that…
AxiomaticNexus
  • 6,190
  • 3
  • 41
  • 61
3
votes
1 answer

Create PDU for Android

I am currently writing and application, that is sending/receiving SMS messages. For unit-testing purposes I need to create PDU programmatically. Decoding is quite easy: Bundle bundle = intent.getExtras(); if (bundle != null) { /* Get all…
maxk
  • 642
  • 1
  • 9
  • 21
1
2 3 4 5 6 7 8