如何在c#中使用短信应用程序将调制解调器插入计算机时自动检测COM端口

如何在c#中使用短信应用程序将调制解调器插入计算机时自动检测COM端口

问题描述:

你好先生..我正在c#中创建一个应用程序(使用AT COMMAND的c#中的SMS应用程序),同时将我的usb调制解调器连接到我的电脑,它无法连接我应该做什么先生?请求有人帮助我吗?

hello sir.. i am making an application in c# that is(SMS application in c# using AT COMMAND) while connecting my usb modem into my pc it is unable to connect what should i do sir?? pleas anyone help me?

你的想法很棒,但你的问题不明确。您是否尝试从C#应用程序检测到USB调制解调器已连接到PC,或者您的PC无法读取调制解调器。



如果您想要C#应用程序检测到调制解调器已连接到您的PC并自动检测PORT,PARITY,BAUDRATE等。然后我想我必须使用.net中的串口组件或语法编写代码。

这个响亮的帮助
Your idea is brilliant but your question is not clear. Are you trying to detect that a usb modem is connected to your PC from your C# application or your PC can not read your modem.

If you want your C# app to detect that a modem has been connected to your PC and automatically detect the PORT, PARITY, BAUDRATE etc. then with my little idea i think you have to use the serial port component in .net or grammatically write your code.
This shoud help


如果您在我的电脑上看到调制解调器的任何标志或徽标。然后,您应该安装它以使用调制解调器进一步使用。
If you see any sign or logo of the modem on your My Computer. Then, you should install it to use the modem for further use.