如何使用 USB Sim 适配器在 Linux Debian 上发送短信?

如何使用 USB Sim 适配器在 Linux Debian 上发送短信?

我有一个这个USB USDPA 7.2Mbps Wireless Data Card带有 SIM 卡。

我想在 Linux Debian 上使用它来发送短信。

当我这样做时lsusb,这是我的设备:

Bus 001 Device 005: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device

我曾尝试使用 modswitch 的帮助文章

sudo usb_modeswitch -W -v 05c6 -p 1000 -K
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x05c6
DefaultProduct= 0x1000

StandardEject=1

Look for default devices ...
  found USB ID 1d6b:0003
  found USB ID 04b4:0510
  found USB ID 1af3:0001
  found USB ID 05c6:1000
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 002 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Qualcomm, Incorporated
     Product: Qualcomm CDMA Technologies MSM
  Serial No.: 351602000025260
-------------------------
Sending standard EJECT sequence
Looking for active drivers ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 2 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 2 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 3 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 3 (CSW) ...
 Response successfully read (13 bytes), status 1
Trying to send message 4 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 4 (CSW) ...
 Response successfully read (13 bytes), status 1
Reset response endpoint 0x81
Reset message endpoint 0x01
 Could not reset endpoint (probably harmless): -4
 Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

)

This is the result of the command `sudo usb_modeswitch -W -v 05c6 -p 1000 -K`:

```bash
sudo usb_modeswitch -W -v 05c6 -p 1000 -K
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x05c6
DefaultProduct= 0x1000

StandardEject=1

Look for default devices ...
  found USB ID 1d6b:0003
  found USB ID 04b4:0510
  found USB ID 1af3:0001
  found USB ID 05c6:1000
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 002 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Qualcomm, Incorporated
     Product: Qualcomm CDMA Technologies MSM
  Serial No.: 351602000025260
-------------------------
Sending standard EJECT sequence
Looking for active drivers ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 2 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 2 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 3 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 3 (CSW) ...
 Response successfully read (13 bytes), status 1
Trying to send message 4 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 4 (CSW) ...
 Response successfully read (13 bytes), status 1
Reset response endpoint 0x81
Reset message endpoint 0x01
 Could not reset endpoint (probably harmless): -4
 Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

现在,lsusb显示该设备:

Bus 001 Device 005: ID 05c6:6000 Qualcomm, Inc. Siemens SG75

有用吗?持久吗?

$ ls /dev/ | grep USB
ttyUSB0
ttyUSB1
ttyUSB2
ttyUSB3
  • 请问我应该从哪里开始呢?

该卡是否有适用于 Linux 的特定驱动程序?

相关内容