如何在c#中使用短信应用程序将调制解调器插入计算机时自动检测COM端口 [英] How to make an automatically detect com port while plugging modem into the computer whenever making sms application in c#

查看:121
本文介绍了如何在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.


这篇关于如何在c#中使用短信应用程序将调制解调器插入计算机时自动检测COM端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆