windows - SMS send error from C# application using GSM modem -


I (text mode) develop C # applications with SMS communication capabilities. Usually this works fine, but occasionally it becomes wrong to send SMS. This happens sometime:

AT + CMGS = "+ 3630xxxxxxx"

& gt; CTRL + Z

Generally answer should be: + CMGS: SMS ID \ r \ n OK \ r \ n

Occasionally, after sending this CTRL + Z Not even answer after 30 seconds, CMGS: Answer does not come from modem, sometimes the answer is SMS text only after trying to send me another SMS, this answer + CMS error: 515. It means That modem is busy. I think this is busy because there is an SMS in the outbox. Note, other AT commands still work perfectly.

So, what to do in this situation? ... when + CMGS: SMS ID \ r \ n OK \ r \ n do not come when sending SMS?

I use .NET Framework 2 and its serial communication features. Modem is a Simôme 300D.

Pls help me, thanks in advance!

send byte ctrlZ = 26; To end SMS for .

i.e. [026 (00011010) 0x1A] [] byte with your text [decimal (binary) hex] [ASCI representation] ASSI can not be seen here.

Comments