gpt4 book ai didi

ubuntu - 如何在 Ubuntu 12.04 上使用带有 smstools3 的电话调制解调器

转载 作者:行者123 更新时间:2023-12-04 18:34:45 35 4
gpt4 key购买 nike

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

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

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

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

以下是 lsusb 和 mount 命令的输出。
/var/spool/sms/outgoing$ lsusb
总线 001 设备 001:ID 1d6b:0002 Linux Foundation 2.0 根集线器
总线 002 设备 001:ID 1d6b:0002 Linux Foundation 2.0 根集线器
总线 001 设备 002:ID 8087:0024 Intel Corp. 集成速率匹配集线器
总线 002 设备 002:ID 8087:0024 Intel Corp. 集成速率匹配集线器
Bus 002 Device 016: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
总线 001 设备 004:ID 05ca:181c Ricoh Co., Ltd
总线 002 设备 003:ID 0a5c:5800 Broadcom Corp. BCM5880 安全应用处理器
总线 002 设备 018:ID 0fce:d144 索尼爱立信移动通信 AB
eguamak@CTM2WS1:/var/spool/sms/outgoing$

---------------------------------
eguamak@CTM2WS1:/var/spool/sms/outgoing$ 安装
/dev/mapper/my_vg-root on/type ext4 (rw,errors=remount-ro)
proc on/proc type proc (rw,noexec,nosuid,nodev)
/sys 上的 sysfs 类型 sysfs (rw,noexec,nosuid,nodev)
/sys/fs/fuse/connections 类型 fusectl (rw) 上没有
/sys/kernel/debug 类型 debugfs (rw) 上没有
/sys/kernel/security 类型 securityfs (rw) 上没有
udev on/dev type devtmpfs (rw,mode=0755)
/dev/pts 上的 devpts 类型 devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on/run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
在/run/lock 类型 tmpfs 上没有 (rw,noexec,nosuid,nodev,size=5242880)
/run/shm 类型 tmpfs (rw,nosuid,nodev) 上没有
/dev/sda1 on/boot type ext2 (rw)
/proc/sys/fs/binfmt_misc 上的 binfmt_misc 类型 binfmt_misc (rw,noexec,nosuid,nodev)
/home/eguamak/.gvfs 上的 gvfs-fuse-daemon 类型 fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=eguamak)
/root/.gvfs 上的 gvfs-fuse-daemon 类型 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

但是,对于 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 时,您必须选择“电话模式”选项或任何名称(不是大容量存储,不是媒体传输或打印)。

关于ubuntu - 如何在 Ubuntu 12.04 上使用带有 smstools3 的电话调制解调器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16253033/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com