如何使用C#windowsApplication发送/接收短信? [英] How to send/receive SMS using C# windowsApplication?
本文介绍了如何使用C#windowsApplication发送/接收短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想将手机连接到我的程序,然后通过使用C#Windows窗口控制它(发送/接收短信)
申请。
我有诺基亚N70,如果不能正常工作请告诉我必须使用的电话名称和型号
请告诉我代码和手机类型(名称和型号)
谢谢!
Hi
I want to connect Cell Phone to my program, then control it (Send/Receive SMS)
all this by using C# Windows Form Application.
I have Nokia N70, If it does not work tell me what Phone Name and Model I must use
Please tell me the Code and Cell Phone type(Name and Model)
thank you!
推荐答案
使用 AT命令 [ ^ ]通过诺基亚N70发送和接收短信。请记住,它使用的是不同的编码( GSM默认字母表(GSM 03.38) [ ^ ])发送@char之类的内容编码为0x00。
使用AT + CSCS设置TE字符集以支持正确的编码。
AT + CSCS =?列出所有支持的编码。但请注意,并非所有GSM设备/调制解调器都支持所有类型的编码。
真正使它成为正确的方法。您必须通过AT + CMGF命令将SMS消息格式切换为PDU编码。
通过PDU格式,您可以选择正确的编码,制作长短信(超过160个字符),发送图片,铃声等..
通过GSM调制解调器发送和读取短信使用AT命令 [ ^ ]
Use AT commands[^] to send and receive SMS via your Nokia N70. Remember that it is using a diffent encoding (GSM default alphabet (GSM 03.38)[^]) where something like sending a "@" char is encoded as 0x00.
Use AT+CSCS to set TE character set to support the correct encoding.
AT+CSCS=? to list all supported encodings. But please note, that not all GSM units/modem support all types of encoding.
To really make it the correct way. You have to switch SMS message format to PDU encoding via AT+CMGF command.
Via PDU format, you can select the correct encoding, make long SMS ( over 160 char ), sending pictures, ring tone etc..
Send and Read SMS through a GSM Modem using AT Commands[^]
例如,请参阅使用.NET发送短信 [ ^ ]。
如果你不喜欢它,请搜索。话题太受欢迎了;你会发现很多方向和代码样本。
-SA
For example, see Sending SMS using .NET[^].
If you don't like it, search. To topic is too popular; you will find tons of directions and code samples.
—SA
试试
如何发送和接收短信使用GSM调制解调器 [ ^ ]
这篇关于如何使用C#windowsApplication发送/接收短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文