如何通过使用串口的双SIM卡手机发送短信 [英] how to send sms via a dual sim mobile using serial port
问题描述
我正在使用以下代码向收件人发送短信
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();
}
我的问题是:如果我使用单个sim移动usb调制解调器使用上述编码发送短信,则效果很好.但是,当我使用双SIM卡移动USB调制解调器时,无法使用上述编码发送短信.我已经尝试过诺基亚200和三星gt-c3312
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
推荐答案
您尝试过AT + CSIMSEL = 1吗?
did you try AT+CSIMSEL=1 ?
请参阅本文档中的11.4 AT + CSIMSEL在两个SIM卡之间切换:
see 11.4 AT+CSIMSEL Switch between two SIM card in this document:
http://www. scribd.com/doc/63648056/186/AT-CSIMSEL-在两个SIM卡之间切换
该命令用于选择外部或嵌入式SIM卡.注意
The command is used to select external or embedded SIM card. NOTE
-
定制支持的嵌入式SIM卡.客户应提供写入USIM芯片组的信息.
Embedded SIM card supported by customization. Customer should provide informationwritten into USIM chipset.
如果不存在嵌入式SIM卡(即标准硬件版本),该命令将被禁用.
The command is disabled if the embedded SIM card isn’t exist, i.e. standard hardwareversion.
定义的值
1 –外部SIM卡
2 –嵌入式SIM卡
2 – embedded SIM card
这篇关于如何通过使用串口的双SIM卡手机发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!