我将此PDU发送到GSM调制解调器并且调制解调器返回
ERROR
at+cmgs=70
0051000C918909414095640008A77E050003C8010106A9062F002006280627063206CC0627062806CC002006AF0630063106480627069806470020062D06A906450020062206460644062706CC0646000D000A064606270645002006A9062706310628063106CC003A0020006500780070006C006F00730069006F006E000D000A003900380035003300300030
我的调制解调器是DWM-156(D-Link)。此命令适用于其他调制解调器,但不适用于DWM-156
我使用此类生成PDU字符串:
SMSPDULib.SMS sms = new SMSPDULib.SMS();
sms.MessageEncoding = SMSPDULib.SMS.SMSEncoding.UCS2;
sms.PhoneNumber = "+98" + to;
sms.Direction = SMSPDULib.SMSDirection.Submited;
sms.Message = text;
sms.ValidityPeriod = new TimeSpan(1, 0, 0, 0);
string[] pdus = sms.ComposeLongSMS();
WriteLintToModem("AT+CMGS=" + pdus[0].Length / 4 + Environment.NewLine);