Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.08/5 (4 votes)
See more:
how to send and recieve more than 160 characters or multipart sms using gsmcomm library
Posted
Updated 22-Jan-18 11:42am

First, some basics,
There are two modes for sending and receiving SMS namely Text mode and PDU mode.
Text mode is simple and easy to understand but has a disadvantage that you cannot send more than 160 characters at a time. For sending SMS having more than 160 characters:
Use PDU mode. You can change the SMS format using AT+CMGF=0. But in this case you need to PDU converters to change the SMS to PDU format.

Now coming back to your question,
slilence_prg wrote:
multipart sms using gsmcomm library

GSMComm Library supports PDU Mode as well. I haven't used it though.
Check this article: How To Send and Receive SMS using GSM Modem[^]. Check the send SMS part, it talks about the PDU mode.
There must be some way you can change the mode to PDU mode. You may need to check GSMComm Library documentation on how to use PDU mode to send messages.
Hope this helps! :thumbsup:
 
Share this answer
 
I TRY IT MY SELF IT WORKING FINE....
mY CODE IS
messageToSend = "lONG MESSAGE >160";
mobileNo = "";
SmsSubmitPdu[] pdu2;
pdu2 = GsmComm.PduConverter.SmartMessaging.SmartMessageFactory.CreateConcatTextMessage(messageToSend, mobileNo);
//comm.SendMessage(pdu1);
comm.SendMessages(pdu2);
 
Share this answer
 
Comments
CHill60 28-May-16 6:33am    
The question is 6 years old! If you want to respond to Ankur's solution then use the "Add a Comment or Question" link next to it
Pradeep Prasanna Ekanayaka 10-Dec-16 8:17am    
thank you for help

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