首页 新闻 搜索 专区 学院

利用serialPort串口类发短信问题

0
悬赏园豆:10 [已关闭问题] 关闭于 2008-04-23 13:37
<P align=left>如果我直接用serialPort,按at命令发送短信是可以成功的</P> <P align=left>serialPort sp=new serialPort();</P> <P align=left>sp.WriteLine(<SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">PUD</SPAN>);//<SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">PUD</SPAN>是按<SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">PUD编码后的结果。</SPAN></P> <P align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">------------------------------------------------------------------</SPAN></P> <P align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">但是我用 <FONT color=#000000>serialPort控件方法</FONT>&nbsp;遇到问题</SPAN></P> <P align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">先说下发短信过程</SPAN></P> <P align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">向手机发送</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"> AT+CMGS=PUD</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">长度</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: Verdana; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><BR></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #4b4b4b; FONT-FAMILY: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">成功的话手机回送</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR:
mythzz的主页 mythzz | 初学一级 | 园豆:2
提问于:2008-04-23 00:28
< >
分享
所有回答(1)
0
这情况还没遇到过呢。不过你已经成功了。祝贺你。
Bēniaǒ | 园豆:692 (小虾三级) | 2008-04-23 01:23
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册