SerialPort port = new SerialPort();            port.DiscardInBuffer();
            port.Write("AT + CMGS =" + String.Format("{0:000}", pdu.lenPDU) + (char)13);
            Thread.Sleep(100);
            port.Write(pdu.strPDU);
            port.Write(((char)26).ToString());
            Thread.Sleep(100);
            Console.ReadLine();
这个往短信猫怎么也发不出去?在缓冲区的数据为AT + CMGS =019\r\r\n> 0011000D91683192072630F70008FF044F60597D->

解决方案 »

  1.   

    发不出去是什么意思?你的pdu对象中对短信服务中心号码进行设置了吗?
      

  2.   

    那张卡Text方式都发不出短信,有没有是卡的原因
      

  3.   

    我去年搞过,这方面资料奇缺,我k,搞了好几个月才搞出来,长短信也能发送合并,但是smartmessage搞不掂
      

  4.   

    检查发送到命令是否完善
    http://topic.csdn.net/u/20080226/15/6460b61e-4299-4710-b0ef-ead9d41e7af9.html
      

  5.   

    只有Thread.Sleep(time)去等待缓冲区输出吗?有没有别的办法去等待并判断这个命令是否执行完毕并返回,因为有时候time不够读取短信都没读完就返回了