×

Discussion Board

Results 1 to 5 of 5

Thread: SMS Max Length

  1. #1
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    60

    SMS Max Length

    Who can tell the max lenth of SMS? Is it defined in some head file? Thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: SMS Max Length

    max data in a single SMS is 140 bytes, which means 160 7-bits/character encoded characters, or 140 8-bits/character encoded characters or 70 unicode characters.

  3. #3
    Super Contributor
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190

    Re: SMS Max Length

    Quote Originally Posted by computerxt View Post
    Who can tell the max lenth of SMS? Is it defined in some head file? Thanks.
    note that, though the max length is 140(160 7bit) byte, this includes some header of the sms. In fact, the content of the sms seems to be less than 140 bytes
    [I][COLOR="Orange"]xhsoldier[/COLOR][/I]
    [email]xhsoldier@gmail.com[/email]/[email]xhsoldier@163.com[/email]

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: SMS Max Length

    Quote Originally Posted by xhsoldier View Post
    note that, though the max length is 140(160 7bit) byte, this includes some header of the sms. In fact, the content of the sms seems to be less than 140 bytes
    Interesting information indeed, how come I can then actually send 70 Unicode characters or 160 SMS7 encoded characters with a single SMS ?
    I would really think that the actual payload is 140 bytes, if you really have a valid information source that specifies something else, please add link to here.

  5. #5
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: SMS Max Length

    Hi,

    A SMS message's max "user data" (the payload) is 140 bytes, in you code you can either define your own constant or refer to the one defined in gsmuelem.h

    Code:
    // gsmuelem.h
    ...
    class CSmsUserData : public CBase
    	{
    public:
    	enum {KSmsMaxUserDataSize=140};
    ...
    Regards

    Ziteng Chen

Similar Threads

  1. Distinguish between SMS
    By edcruise in forum Symbian
    Replies: 2
    Last Post: 2007-12-03, 14:34
  2. Nokia 6280 Sms Length
    By tightrope in forum General Messaging
    Replies: 0
    Last Post: 2006-12-09, 11:58
  3. Replies: 11
    Last Post: 2003-05-07, 07:48
  4. Unicode Song Title In NSM Ringtone
    By mcai7db3 in forum Smart Messaging
    Replies: 3
    Last Post: 2002-08-28, 06:58
  5. Virtual Com Ports from Digianswer software.
    By mareksuski in forum Bluetooth Technology
    Replies: 3
    Last Post: 2002-06-27, 09:49

Posting Permissions

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