简体   繁体   English

串行端口还是USB端口?

[英]serialport or USB port?

i am using this code:: 我正在使用此代码::

c# serialport question C#串口问题

to check what port my USB phone is connected to. 检查我的USB电话连接到哪个端口。

supposedly USB would be a virtual com, but this seems to be incorrect 据说USB将是一个虚拟com,但这似乎是不正确的

i used the above code to detect where my phone is and the output is just garbage. 我使用上面的代码来检测我的手机在哪里,输出只是垃圾。

is there a way for me to get c# to speak to my usb port so that i can speak to the gsm phone connected to it? 有没有办法让C#与USB端口通话,以便我可以与与其连接的GSM电话通话?

Virtual COM doesn't mean it's supposed to answer to "ATI". 虚拟COM并不意味着它应该回答“ ATI”。 ATI is hayes modem command, not supported by every device. ATI是hayes modem命令,并非所有设备都支持。

Use code in How to open a serial port by friendly name? 使用如何通过友好名称打开串行端口中的代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM