问题
I am sending sms to recipients using following code
private void button1_Click(object sender, EventArgs e)
{
var com5 = new SerialPort("COM5");
if (!com5.IsOpen) com5.Open();
com5.WriteLine("AT" + Environment.NewLine);
com5.WriteLine("AT+CMGF=1" + Environment.NewLine);
com5.WriteLine("AT+CMGS=\"" + 03132449297 + "\"" + Environment.NewLine);
com5.WriteLine("Kashif bhai aap mujhsay kiya kehna chah rahay hen?" + (char)26);
com5.Close();
}
my problem is: If i use a single sim mobile usb modem to send sms using above mentioned coding it works fine. but when i use a dual sim mobile usb modem I am not able to send sms using above mentioned coding. I have tried nokia 200 and samsung gt-c3312
回答1:
did you try AT+CSIMSEL=1 ?
see 11.4 AT+CSIMSEL Switch between two SIM card in this document:
http://www.scribd.com/doc/63648056/186/AT-CSIMSEL-Switch-between-two-SIM-card
The command is used to select external or embedded SIM card. NOTE
Embedded SIM card supported by customization. Customer should provide informationwritten into USIM chipset.
The command is disabled if the embedded SIM card isn’t exist, i.e. standard hardwareversion.
Defined values
1 – external SIM card
2 – embedded SIM card
回答2:
try this if this works http://wenku.baidu.com/view/f740bd000740be1e650e9a41.html?from=related else there is no such command to send sms using a dual sim mobile..
来源:https://stackoverflow.com/questions/10106283/how-to-send-sms-via-a-dual-sim-mobile-using-serial-port