如何在Ubuntu12.04上使用带有smstools3的电话调制解调器 我已经在ubuntu上安装了smstools3,我的smsd.conf有以下设置。

如何在Ubuntu12.04上使用带有smstools3的电话调制解调器 我已经在ubuntu上安装了smstools3,我的smsd.conf有以下设置。,ubuntu,mount,telephony,modem,sms-gateway,Ubuntu,Mount,Telephony,Modem,Sms Gateway,设备=GSM1 日志级别=7 传出=/var/spool/sms/outgoing 失败=/var/spool/sms/failed 传入=/var/spool/sms/incoming 发送=/var/spool/sms/sent logfile=/var/log/smsd.log 延迟时间=1 errorsleeptime=2 阻塞时间=3600 [GSM1] 设备=/dev/sdb 传入=是 模式=新模式 波特率=19200 cs\u convert=是 报告=否 问题是,我无法找到我的手

设备=GSM1
日志级别=7
传出=/var/spool/sms/outgoing
失败=/var/spool/sms/failed
传入=/var/spool/sms/incoming
发送=/var/spool/sms/sent
logfile=/var/log/smsd.log
延迟时间=1
errorsleeptime=2
阻塞时间=3600

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

问题是,我无法找到我的手机调制解调器连接到了哪个端口“/dev/ttyUSB*”,以便我可以在设备的对面填充并使用它。
以下是lsusb和mount命令的输出。
/var/spool/sms/outing$lsusb
总线001设备001:ID1D6B:0002 Linux基金会2根Hub BR> 总线002设备001:ID1D6B:0002 Linux基金会2根Hub BR> 总线001设备002:ID 8087:0024英特尔公司集成速率匹配集线器
总线002设备002:ID 8087:0024英特尔公司集成速率匹配集线器
总线002设备016:ID 12d1:140b华为技术有限公司EC1260无线数据调制解调器HSD USB卡
总线001设备004:ID 05ca:181c理光股份有限公司
总线002设备003:ID 0a5c:5800 Broadcom公司BCM5880安全应用程序处理器
总线002设备018:ID 0fce:d144索尼爱立信移动通信AB
eguamak@CTM2WS1:/var/spool/sms/outing$

---------------------------------
eguamak@CTM2WS1:/var/spool/sms/outgoing$挂载
/dev/mapper/my_vg-root on/type ext4(rw,errors=remount ro)
进程开启/进程类型进程(rw、noexec、nosuid、nodev)
sysfs on/sys类型sysfs(rw、noexec、nosuid、nodev)
在/sys/fs/fuse/connections type fusectl(rw)上无开关
/sys/kernel/debug-type-debugfs(rw)上无 /sys/kernel/securityfs(rw)上无 udev on/dev型devtmpfs(rw,模式=0755)
/dev/pts类型devpts上的devpts(rw、noexec、nosuid、gid=5、mode=0620)
tmpfs开启/运行类型tmpfs(rw,noexec,nosuid,大小=10%,模式=0755)
无开启/运行/锁定型tmpfs(rw、noexec、nosuid、nodev、大小=5242880)
无开启/运行/shm型tmpfs(rw、nosuid、nodev)
/dev/sda1打开/启动类型ext2(rw)
binfmt_misc on/proc/sys/fs/binfmt_misc类型binfmt_misc(rw、noexec、nosuid、nodev)
gvfs-fuse-daemon/home/eguamak/.gvfs-type-fuse.gvfs-fuse-daemon
(rw,nosuid,nodev,user=eguamak)
gvfs-fuse-daemon/root/.gvfs-type-fuse.gvfs-fuse-daemon(rw、nosuid、nodev)

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


我认为您在这里混淆了几个问题。当手机连接到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
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
但是,对于SMS工具,您对称为CDC的模式感兴趣,然后您将获得工具将作为串行设备访问的设备
/dev/ttyACM0
/dev/ttyACM1
(而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
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电缆连接到电脑时,您必须选择“手机模式”或其他名称(不是大容量存储,不是媒体传输或打印内容)。

感谢上述建议,但是我通过蓝牙连接了手机,它工作正常