简体   繁体   English

查找连接了GSM调制解调器/加密狗的USB端口的端口号

[英]find port number of USB port where GSM modem/Dongle is connected

I am working on Java EE application where I want to send/receive messages to and from mobile number. 我正在Java EE应用程序上工作,在该应用程序中我想与手机号码收发消息。

For this purpose I have used GSM Modem/Dongle.In which I have inserted SIM card from which I will transfer my messages to and from other mobiles. 为此,我使用了GSM调制解调器/加密狗。在其中插入了SIM卡,从中我可以与其他手机进行短信收发。

So, to establish connection with GSM Modem I have to find USB port number where my GSM modem is connected. 因此,要与GSM调制解调器建立连接,我必须找到连接GSM调制解调器的USB端口号。

So my question is how to find port number where my GSM modem is connected. 所以我的问题是如何找到我的GSM调制解调器连接的端口号。

Use ModemManager : 使用ModemManager

mmcli -L # list modems
mmcli -m <modem> # show modem

If you want to get the ports see here . 如果要获取端口,请参见此处

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

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