I would like to send multiple SMS via 3G modem to about ~ 500 GSM numbers/users...
Whereafter 20-30 SMS, it does not return any value (void) from serial port and modem is locking up... When I disconnect USB modem and connect again, the problem is solving temporarily.
How can I solve this problem permanently?
for (int i = 0; i < 500; i++)
{
serialPort.Write("AT+CMGF=1\r");
Thread.Sleep(1000);
serialPort.Write("AT+CMGS=\"" + "phonenumber" + "\"\r\n");
Thread.Sleep(1000);
serialPort.Write("Hi:"+i.ToString() + "\x1A");
Thread.Sleep(3000);
string t = serialPort.ReadExisting();
if(t.Length>0)
....
else
.....
}