Thank you very much for your reply.. And the code is working in GSM modem its generating ERROR 765, I dont know these error is comming but i searched in the net ,I did what they suggested in google. but no luck to me its getting same error....
I am using GSM MODEM 81GC model its sending english sms but not sending hindi/non english sms... Next what to do can any one help to me on this sending hindi sms through winform(c#.net). On Wednesday, August 28, 2013 1:02:44 PM UTC+5:30, muhammad usman wrote: > > 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/ee6f9b77-9f4b-42da-bccd-b7d17f02c920%40googlegroups.com.
