Try the below mentioned code which i use for my WaveComm Modem and this is
working fine for me.
int responseTime = 5000;
string recievedData = ExecCommand(port, "AT", responseTime,
"No phone connected");
recievedData = ExecCommand(port, "AT+CSCS=\"HEX\"",
responseTime, "Code Page Not Set");
recievedData = ExecCommand(port, "AT+CMGF=1", responseTime,
"Failed to set message format.");
recievedData = ExecCommand(port, "AT+CSMP=1,167,0,8",
responseTime, "Formt not Set");
recievedData = ExecCommand(port, "AT+CMGS=\"" + PhoneNo +
"\"", responseTime, "Failed to accept phoneNo");
port.Write(str + "\x1A");
Hope this will help you.,
On Wednesday, August 21, 2013 6:21:50 PM UTC+5, Yellaswami Gurrala wrote:
>
> Hello,
>
> I am trying to send a hindi(Unicode) sms through GSM modem with AT command
> in C#.Net, I was tried so many time with all AT command link AT,AT+CMGF=0
> or 1,AT+CSCS="HEX/UCS2" and AT+CMGS="Phone Number" in hyper-terminal and
> also in .net application but not luck,the sms is coming like
> ??????????????? and some time empty and some time error,
> my GSM modem is supporting to send Unicode sms.
>
> Can any one help/discus on this topic its a great things.
>
> here I am pasting which i used code in C#.net............Please help to
> me to solve this problems.
>
> string recievedData = ExecCommand(port, "AT", 300, "No
> phone connected");
> recievedData = ExecCommand(port, "AT+CMGF=1", 300, "Failed
> to set message format.");
> String command = "AT+CMGS=\"" + PhoneNo + "\"";
> recievedData = ExecCommand(port, command, 300, "Failed to
> accept phoneNo");
> command = Message + char.ConvertFromUtf32(26) + "\r ";
> recievedData = ExecCommand(port, command, 3000, "Failed to
> send message"); //3 seconds
>
>
>
> Thanks and Regards.
>
> Yellaswami.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/smslib/3a7eb8c4-a320-4f1f-9f2a-8ebd2513a918%40googlegroups.com.