In the hyperterminal environment, On the other hand, everything goes fine and I receive سلام. GSMPort.Encoding = UnicodeEncoding.GetEncoding(1256) In below code I try to send سلام, and "0633064406270645" is the hexadecimal form of it. What is the difference between these AT commands in C# code and Hyperterminal code? I will appreciate if you help me to resolve this problem.Īs you know I have no problem for sending Unicode messages (such as Persian letters) by hyperterminal and using AT commands. GSMPort.Write("0633064406270645" "\x1A") īut unlike AT commands in Hyperterminal, destination does not receive correct letters. I have read this article and can send Unicode messages in Hyperterminal using AT commands: AT ĪT CSCS="UCS2" or AT CSCS="HEX" -> We have to convert our message to hex It works fine for English and ASCII letters. GSMPort.Write("AT CMGS=\"" destinationNumber "\"\r\n") GSMPort.Handshake = HandShake.RequestToSend ![]() ![]() Here it is the core of my program: SerialPort GSMPort = new SerialPort() I have a problem sending Unicode messages (Such as messages written in Persian or Arabic). I am developing an application for GSM Modems (D-Link DWM-156) in C#.Net using AT commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |