Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I make a software for sending SMS for GSM Modem. It works fine. But my problem is now that it couldn't send more than 160 character.

The error is given below:
" Text is two long. A maximum of 160 resulting septets is allowed. The current input result in 288 septets(given by me)."


My code is given below when I click on my send button:
C#
// port connected successfully
pdu = new SmsSubmitPdu(message, cell, "");
comm.SendMessage(pdu);


Please help me to find the solution immediate in a short way. Because I have tried it for last two days. But got no solution.

Thanks in advance.
Posted
Comments
NewPast 26-May-14 11:14am    
please have a look at:
http://www.codeproject.com/Articles/676431/Machine-Controller
[no name] 26-May-14 11:35am    
http://www.nowsms.com/long-sms-text-messages-and-the-160-character-limit
Member 8454009 26-May-14 11:42am    
I couldn't find any C# code there.

1 solution

It is nothing with your code. SMS has max length of 160 chars. It is built-in value for the GSM network and you can't do anything about it. there may be some configuration on SMSC to split a long SMS into smaller parts (with max length of 160) then send to the recipient as multiple SMSs, but again you can't do anything about it.
see here: http://en.wikipedia.org/wiki/Short_Message_Service[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900