2

我在 ubuntu 上安装了 smstools3,我的 smsd.conf 有以下设置。

设备 = GSM1 日志
级别 = 7
传出 = /var/spool/sms/传出
失败 = /var/spool/sms/
传入失败 = /var/spool/sms/传入
发送 = /var/spool/sms/sent
日志文件 = /var /log/smsd.log
延迟时间 = 1错误睡眠时间
= 2
阻塞时间 = 3600

[GSM1]
设备 = /dev/sdb
传入 = 是
模式 = 新
波特率 = 19200
cs_convert = 是
报告 = 否

问题是我无法找到我的电话调制解调器连接到哪个端口“/dev/ttyUSB*”,以便我可以将它填充到设备的对面并使用它。

以下是 lsusb 和 mount 命令的输出。
/var/spool/sms/outgoing$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp.集成速率匹配集线器
总线 002 设备 002:ID 8087:0024 Intel Corp. 集成速率匹配集线器
总线 002 设备 016:ID 12d1:140b 华为技术有限公司 EC1260 无线数据调制解调器 HSD USB 卡
总线 001 设备 004:ID 05ca :181c Ricoh Co., Ltd
Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 018: ID 0fce:d144 Sony Ericsson Mobile Communications AB
eguamak@CTM2WS1:/var/spool/sms/outgoing$

---------------------------------
eguamak@CTM2WS1:/var/spool/sms/outgoing$ mount
/dev/ mapper/my_vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode= 0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /运行/锁定类型 tmpfs (rw,noexec,nosuid,nodev,size=5242880)
无 /run/shm 类型 tmpfs (rw,nosuid,nodev)
/dev/sda1 on /boot type ext2 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/eguamak/.gvfs type fuse.gvfs -fuse-daemon
(rw,nosuid,nodev,user=eguamak)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

我正在尝试将索尼爱立信手机用作调制解调器。
请建议如何正确安装我的手机,以便我可以将其用作带有 smstools3 的 GSM 调制解调器。

4

1 回答 1

0

我认为您在这里混淆了几个问题。当手机连接到 PC 时,它可以在几种不同的 (USB) 模式下运行,因此它会询问用户应该使用哪种类型的操作。有几种模式,但让我们关注USB 大容量存储USB ACM CDC

对于大容量存储,手机会导出其内部闪存,如果有的话,还可能导出其存储卡,这就是手机在此模式下所做的一切,例如,没有串行端口访问。在这种情况下,您将获得新设备,/dev/sdb并使用 mount 命令访问手机上的文件系统。/var/log/messages 的内容应该类似于以下内容:

Apr 29 23:35:52 localhost kernel: [2338445.838575] usb 3-1: new high-speed USB device number 3 using xhci_hcd
Apr 29 23:35:52 localhost kernel: [2338446.232227] usb 3-1: New USB device found, idVendor=0fce, idProduct=e0d9
Apr 29 23:35:52 localhost kernel: [2338446.232235] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 29 23:35:52 localhost kernel: [2338446.232239] usb 3-1: Product: Memory Stick
Apr 29 23:35:52 localhost kernel: [2338446.232242] usb 3-1: Manufacturer: Sony Ericsson
Apr 29 23:35:52 localhost kernel: [2338446.232245] usb 3-1: SerialNumber: 3577870222208500
Apr 29 23:35:52 localhost mtp-probe: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/usb3/3-1"
Apr 29 23:35:52 localhost mtp-probe: bus: 3, device: 3 was not an MTP device
Apr 29 23:35:53 localhost kernel: [2338446.707832] Initializing USB Mass Storage driver...
Apr 29 23:35:53 localhost kernel: [2338446.707948] scsi5 : usb-storage 3-1:2.0
Apr 29 23:35:53 localhost kernel: [2338446.708029] usbcore: registered new interface driver usb-storage
Apr 29 23:35:53 localhost kernel: [2338446.708030] USB Mass Storage support registered.
Apr 29 23:35:54 localhost kernel: [2338447.709323] scsi 5:0:0:0: Direct-Access     Sony Eri Memory Stick        0 PQ: 0 ANSI: 0
Apr 29 23:35:54 localhost kernel: [2338447.709745] scsi 5:0:0:1: Direct-Access     Sony Eri Memory Stick        0 PQ: 0 ANSI: 0
Apr 29 23:35:54 localhost kernel: [2338447.712336] sd 5:0:0:0: Attached scsi generic sg2 type 0
Apr 29 23:35:54 localhost kernel: [2338447.712626] sd 5:0:0:0: [sdb] Attached SCSI removable disk
Apr 29 23:35:54 localhost kernel: [2338447.715373] sd 5:0:0:1: Attached scsi generic sg3 type 0
Apr 29 23:35:54 localhost kernel: [2338447.716468] sd 5:0:0:1: [sdc] Attached SCSI removable disk
Apr 29 23:36:02 localhost kernel: [2338456.100623] sd 5:0:0:1: [sdc] 31252482 512-byte logical blocks: (16.0 GB/14.9 GiB)
Apr 29 23:36:02 localhost kernel: [2338456.101044] sd 5:0:0:0: [sdb] 368494 512-byte logical blocks: (188 MB/179 MiB)
Apr 29 23:36:02 localhost kernel: [2338456.102609] sd 5:0:0:1: [sdc] Test WP failed, assume Write Enabled
Apr 29 23:36:02 localhost kernel: [2338456.103824] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled
Apr 29 23:36:02 localhost kernel: [2338456.105068] sd 5:0:0:1: [sdc] Asking for cache data failed
Apr 29 23:36:02 localhost kernel: [2338456.105071] sd 5:0:0:1: [sdc] Assuming drive cache: write through
Apr 29 23:36:02 localhost kernel: [2338456.106083] sd 5:0:0:0: [sdb] Asking for cache data failed
Apr 29 23:36:02 localhost kernel: [2338456.106087] sd 5:0:0:0: [sdb] Assuming drive cache: write through
Apr 29 23:36:02 localhost kernel: [2338456.108251] sd 5:0:0:1: [sdc] Test WP failed, assume Write Enabled
Apr 29 23:36:02 localhost kernel: [2338456.109471] sd 5:0:0:1: [sdc] Asking for cache data failed
Apr 29 23:36:02 localhost kernel: [2338456.109475] sd 5:0:0:1: [sdc] Assuming drive cache: write through
Apr 29 23:36:02 localhost kernel: [2338456.110339] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled
Apr 29 23:36:02 localhost kernel: [2338456.114310] sd 5:0:0:0: [sdb] Asking for cache data failed
Apr 29 23:36:02 localhost kernel: [2338456.114320] sd 5:0:0:0: [sdb] Assuming drive cache: write through
Apr 29 23:36:02 localhost kernel: [2338456.117898]  sdc: sdc1
Apr 29 23:36:02 localhost kernel: [2338456.126606]  sdb: sdb1

但是,对于 smstools 使用,您对称为 CDC 的模式感兴趣,然后您将获得设备/dev/ttyACM0以及/dev/ttyACM1该工具将作为串行设备访问的设备(并且根本不使用 mount 命令)。/var/log/messages 的内容应该类似于以下内容:

Apr 29 23:34:48 localhost kernel: [2338381.833163] usb 3-1: new high-speed USB device number 2 using xhci_hcd
Apr 29 23:34:48 localhost kernel: [2338381.864341] usb 3-1: New USB device found, idVendor=0fce, idProduct=d0d9
Apr 29 23:34:48 localhost kernel: [2338381.864350] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 29 23:34:48 localhost kernel: [2338381.864355] usb 3-1: Product: Sony Ericsson C702
Apr 29 23:34:48 localhost kernel: [2338381.864359] usb 3-1: Manufacturer: Sony Ericsson
Apr 29 23:34:48 localhost kernel: [2338381.864362] usb 3-1: SerialNumber: 3577870222208500
Apr 29 23:34:48 localhost kernel: [2338381.871215] cdc_acm 3-1:3.1: ttyACM0: USB ACM device
Apr 29 23:34:48 localhost kernel: [2338381.874835] cdc_acm 3-1:3.3: ttyACM1: USB ACM device
Apr 29 23:34:48 localhost kernel: [2338381.879449] cdc_wdm 3-1:3.7: cdc-wdm0: USB WDM device
Apr 29 23:34:48 localhost kernel: [2338381.882332] cdc_ether 3-1:3.8 usb0: register 'cdc_ether' at usb-0000:02:00.0-1, CDC Ethernet Device, 02:80:37:0a:03:00

因此,当您将 USB 电缆连接到 PC 时,您必须选择“电话模式”选项或任何名称(不是大容量存储,不是媒体传输或打印)。

于 2013-04-29T22:08:21.240 回答