×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    How to send concatenated SMS?

    Hello all.

    I am using a GSM Moded to send Sms.
    My application calls AT commands to do so.
    I use AT+CMGF=1 (For Text Mode).
    And in order to send the Sms i use AT+CMGS Command.

    How can i concatenat few sms messages?

    Your early reply is appriciated.
    Thanks a lot in advanced.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2004
    Posts
    147

    Re: How to send concatenated SMS?

    See Smart Messaging FAQ in Messaging Technology section question 18:

    The User Data part of an SMS is limited to 140 octets. With some Smart Messaging formats there are more than 140 octets of User Data, so these must be sent using a series of messages. The User Data parts of these messages are then concatenated (after stripping off the User Data Headers) to form a full message.

    The octets that specify the concatenation are defined in the User Data Header of each SMS in the series. There are five (5) octets required as follows:

    Table 11: Description of extra octets needed for concatenated messages
    Octet Number Value Description
    1 00 Information Element Identifier (IEI; concatenated short message, 8-bit reference number)
    2 03 Information Element Data Length (IEDL)
    3 01 Information Element Data (concatenated short message reference number)
    4 05 Information Element Data (total number of concatenated messages (0-255))
    5 01 Information Element Data (sequence number of current short message)

    The reference number can be anything, as long as it is unique for each series of messages sent. As an example, in a five-part series with the reference number=10 decimal (A hex) these octets would be:

    Table 12: Example of "Concatenation octets" for a five-message series (reference number 10 -> hex A)
    SMS Number "Concatenation octets"
    1 00 03 0A 05 01
    2 00 03 0A 05 02
    3 00 03 0A 05 03
    4 00 03 0A 05 04
    5 00 03 0A 05 05

    Note that this set of octets is only one part of the User Data Header. For a full example, please see Section 8.

    Br,
    M Forum Nokia Technology Support

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    1

    Re: How to send concatenated SMS?

    Are you sure there are five octets required?
    According to GSM 03.40 Version 5.3.0: July 1996 Length of User Data Header is also required which would be in this case 0x05. So the headers could look like this:
    05 00 03 0A 05 01
    05 00 03 0A 05 02
    05 00 03 0A 05 03
    05 00 03 0A 05 04
    05 00 03 0A 05 05

    Correct me if I'm wrong.

    I've got a question by the way:
    Almost all a bit older Nokia phones can split up to 459-character message:
    140 octets of user data minus 6 octets for headers,
    so there are 134 octets left for SM data, what gives 153.14... of 7-bit characters.
    153 * 3 = 459.

    But some new phones (in my case, 6280) are able to send up to 913 7-bit characters (6-part messages, evidently). If they use 6-octet headers, there would be also 134 octets for every part of message, what gives 918 characters for message itself. What about these 5 characters?
    Do they use 16-bit reference number ?!
    Even if, there will be only 133 octets for each message what gives 152 characters. 152*6 = 912 characters. That's a bit less than 913...

    How is this possible?

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    90

    Re: How to send concatenated SMS?

    Quote Originally Posted by aviadm
    Hello all.

    I am using a GSM Moded to send Sms.
    My application calls AT commands to do so.
    I use AT+CMGF=1 (For Text Mode).
    And in order to send the Sms i use AT+CMGS Command.

    How can i concatenat few sms messages?

    Your early reply is appriciated.
    Thanks a lot in advanced.
    You may use kannel (www.kannel.org) or API for doing this
    so you will say goodbye to PDU hacking and concentrate on your application

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Re: How to send concatenated SMS?

    It seems i am doing something wrong.

    This is the list of the commands i Use.

    AT+CMGF=1 (Set it to TextMode)
    AT+CSMP=81,167,0,0 (Default is 17 but we set the UDHI to true)

    FirstMessage:
    DataHeader is: 05 00 03 0A 02 01
    AT+CMGS="[Phone Number]
    [DataHeader]";Hello ^z

    SecondMessage:
    DataHeader is: 05 00 03 0A 02 02
    AT+CMGS="[Phone Number]
    [DataHeader]";World ^z

    I get two messages to my phone with a small question mark before each one.
    It seems like the mobile phone cannot understand my header.

    Please help me...
    What am i doing wrong???
    Last edited by aviadm; 2006-09-18 at 14:15.

Similar Threads

  1. Replies: 0
    Last Post: 2004-10-11, 10:09
  2. how to send sms immediately
    By siemensc55 in forum Symbian
    Replies: 3
    Last Post: 2004-07-15, 12:54
  3. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53
  4. Track if a sms is a response to a sms I send
    By tuender in forum General Messaging
    Replies: 1
    Last Post: 2002-07-19, 07:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×