【问题标题】:Gammu cannot detect my modemGammu 无法检测到我的调制解调器
【发布时间】:2013-10-31 04:31:48
【问题描述】:

我想使用 gammu 发送短信。 我想从 gammu 实用程序中识别手机时遇到问题

使用环境: - openSUSE 12.3 32 位 - Gammu 版本 1.32.0 于 2012 年 8 月 10 日 09:27 使用 GCC 4.7 构建

> gammu -f /var/log/gammulog identify

在指定的超时时间内没有响应。可能是手机没有连接。

我确保我的调制解调器已连接到我的笔记本电脑

> lsusb

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 019: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 003 Device 002: ID 04f2:b3bb Chicony Electronics Co., Ltd 
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 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 005: ID 0cf3:3004 Atheros Communications, Inc. 
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller

然后我使用此命令检查以确保检测到调制解调器

> ls /dev/serial/by-id -l
lrwxrwxrwx 1 root root 13 Oct 31 11:16 usb-HSDPA_USB_Modem_HSDPA_USB_Modem-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Oct 31 11:16 usb-HSDPA_USB_Modem_HSDPA_USB_Modem-if01-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Oct 31 11:16 usb-HSDPA_USB_Modem_HSDPA_USB_Modem-if02-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13 Oct 31 11:16 usb-HSDPA_USB_Modem_HSDPA_USB_Modem-if03-port0 -> ../../ttyUSB3

当调用 gammu-detect

[gammu]
device = /dev/ttyUSB0
name = Phone on USB serial port HSDPA_USB_Modem HSDPA_USB_Modem
connection = at

[gammu1]
device = /dev/ttyUSB1
name = Phone on USB serial port HSDPA_USB_Modem HSDPA_USB_Modem
connection = at

[gammu2]
device = /dev/ttyUSB2
name = Phone on USB serial port HSDPA_USB_Modem HSDPA_USB_Modem
connection = at

[gammu3]
device = /dev/ttyUSB3
name = Phone on USB serial port HSDPA_USB_Modem HSDPA_USB_Modem
connection = at

[gammu4]
device = /dev/ttyS0
name = Phone on serial port 0
connection = at

[gammu5]
device = /dev/ttyS1
name = Phone on serial port 1
connection = at

[gammu6]
device = /dev/ttyS2
name = Phone on serial port 2
connection = at

[gammu7]
device = /dev/ttyS3
name = Phone on serial port 3
connection = at

[gammu8]
device = /dev/ttyS4
name = Phone on serial port 4
connection = at

[gammu9]
device = /dev/ttyS5
name = Phone on serial port 5
connection = at

[gammu10]
device = /dev/ttyS6
name = Phone on serial port 6
connection = at

[gammu11]
device = /dev/ttyS7
name = Phone on serial port 7
connection = at

opening socket: No such device

这里是 gammu-config,放在 /etc/gammurc

[gammu]
port = /dev/ttyUSB0
connection = at115200
logformat = textall

我真的卡住了,不知道怎么回事 即使使用wammu(GUI版),也能检测手机

Wammu is now searching for phone:
Checking /dev/ttyUSB0 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Checking /dev/ttyUSB1 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Checking /dev/ttyUSB2 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Checking /dev/ttyUSB3 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Finished /dev/ttyUSB2 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Finished /dev/ttyUSB0 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Finished /dev/ttyUSB3 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
Finished /dev/ttyUSB1 - ['at19200', 'at115200', 'fbusdlr3', 'fbus', 'mbus', 'fbuspl2303']
All finished, found 0 phones
No phone has been found!

谢谢

更新

这里是添加一些当我指定日志文件时发生的日志

> tail -f gammu.log 
Thu 2013/10/31 11:55:14: [Gammu            - 1.32.0 built 09:27 Aug 10 2012 using GCC 4.7]
Thu 2013/10/31 11:55:14: [Connection       - "at"]
Thu 2013/10/31 11:55:14: [Connection index - 0]
Thu 2013/10/31 11:55:14: [Model type       - ""]
Thu 2013/10/31 11:55:14: [Device           - "/dev/ttyUSB0"]
Thu 2013/10/31 11:55:14: [Running on       - Linux, kernel 3.7.10-1.16-desktop (#1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba))]
Thu 2013/10/31 11:55:14: Serial device: DTR is up, RTS is up, CAR is up, CTS is up
Thu 2013/10/31 11:55:14: Setting speed to 19200
Thu 2013/10/31 11:55:14: [Module           - "auto"]
Thu 2013/10/31 11:55:14: Escaping SMS mode
Thu 2013/10/31 11:55:14: Sending simple AT command to wake up some devices
Thu 2013/10/31 11:55:14: 1 "OK"
Thu 2013/10/31 11:55:14: Checking line: OK
Thu 2013/10/31 11:55:14: AT reply state: 1
Thu 2013/10/31 11:55:14: Enabling echo
Thu 2013/10/31 11:55:15: 1 "OK"
Thu 2013/10/31 11:55:15: Checking line: OK
Thu 2013/10/31 11:55:15: AT reply state: 1
Thu 2013/10/31 11:55:15: Trying Motorola mode switch
Thu 2013/10/31 11:55:15: 1 "ERROR"
Thu 2013/10/31 11:55:15: Checking line: ERROR
Thu 2013/10/31 11:55:15: AT reply state: 3
Thu 2013/10/31 11:55:15: 
Thu 2013/10/31 11:55:15: Frame not request now. If you can, please report it (see <http://wammu.eu/support/bugs/>). Thank you
Thu 2013/10/31 11:55:15: LAST SENT frame type 0x00/length 10
Thu 2013/10/31 11:55:15: 41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D                          AT+MODE=2.      
Thu 2013/10/31 11:55:15: RECEIVED frame type 0x00/length 0x7/7
Thu 2013/10/31 11:55:15: 45E|52R|52R|4FO|52R|0D |0A                                      ERROR..         
Thu 2013/10/31 11:55:15: 
Thu 2013/10/31 11:55:17: Seems not to be supported
Thu 2013/10/31 11:55:17: Enabling CME errors
Thu 2013/10/31 11:55:17: 1 "OK"
Thu 2013/10/31 11:55:17: Checking line: OK
Thu 2013/10/31 11:55:17: AT reply state: 1
Thu 2013/10/31 11:55:17: 
Thu 2013/10/31 11:55:17: Frame not request now. If you can, please report it (see <http://wammu.eu/support/bugs/>). Thank you
Thu 2013/10/31 11:55:17: LAST SENT frame type 0x00/length 10
Thu 2013/10/31 11:55:17: 41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D                          AT+CMEE=1.      
Thu 2013/10/31 11:55:17: RECEIVED frame type 0x00/length 0x4/4
Thu 2013/10/31 11:55:17: 4FO|4BK|0D |0A                                                  OK..            
Thu 2013/10/31 11:55:17: 
Thu 2013/10/31 11:55:19: 1 "OK"
Thu 2013/10/31 11:55:19: Checking line: OK
Thu 2013/10/31 11:55:19: AT reply state: 1
Thu 2013/10/31 11:55:19: 
Thu 2013/10/31 11:55:19: Frame not request now. If you can, please report it (see <http://wammu.eu/support/bugs/>). Thank you
Thu 2013/10/31 11:55:19: LAST SENT frame type 0x00/length 10
Thu 2013/10/31 11:55:19: 41A|54T|2B+|43C|4DM|45E|45E|3D=|322|0D                          AT+CMEE=2.      
Thu 2013/10/31 11:55:19: RECEIVED frame type 0x00/length 0x4/4
Thu 2013/10/31 11:55:19: 4FO|4BK|0D |0A                                                  OK..            
Thu 2013/10/31 11:55:19: 
Thu 2013/10/31 11:55:21: CME errors could not be enabled, some error types won't be detected.
Thu 2013/10/31 11:55:21: 1 "+CSCS: "IRA""
Thu 2013/10/31 11:55:21: 2 "OK"
Thu 2013/10/31 11:55:21: Checking line: OK
Thu 2013/10/31 11:55:21: AT reply state: 1
Thu 2013/10/31 11:55:21: 
Thu 2013/10/31 11:55:21: UNKNOWN frame. If you can, please report it (see <http://wammu.eu/support/bugs/>). Thank you
Thu 2013/10/31 11:55:21: LAST SENT frame type 0x00/length 9
Thu 2013/10/31 11:55:21: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
Thu 2013/10/31 11:55:21: RECEIVED frame type 0x00/length 0x14/20
Thu 2013/10/31 11:55:21: 2B+|43C|53S|43C|53S|3A:|20 |22"|49I|52R|41A|22"|0D |0A |0D |0A  +CSCS: "IRA"....
Thu 2013/10/31 11:55:21: 4FO|4BK|0D |0A                                                  OK..            
Thu 2013/10/31 11:55:21: 
Thu 2013/10/31 11:55:23: Init:GSM_TryGetModel failed with error TIMEOUT[14]: No response in specified timeout. Probably phone not connected.
Thu 2013/10/31 11:55:23: [Terminating]
Thu 2013/10/31 11:55:23: [Closing]

在开始部分一切正常

我们在这部分看更多细节,一切都是成功的

Thu 2013/10/31 11:55:14: Sending simple AT command to wake up     some devices
Thu 2013/10/31 11:55:14: 1 "OK"
Thu 2013/10/31 11:55:14: Checking line: OK
Thu 2013/10/31 11:55:14: AT reply state: 1
Thu 2013/10/31 11:55:14: Enabling echo
Thu 2013/10/31 11:55:15: 1 "OK"
Thu 2013/10/31 11:55:15: Checking line: OK
Thu 2013/10/31 11:55:15: AT reply state: 1

此部分发生错误。这就像检测到这是摩托罗拉,但我使用的是 Huawei E169

Thu 2013/10/31 14:13:16: Trying Motorola mode switch
Thu 2013/10/31 14:13:16: SENDING frametype 0x00/length 0x0A/10
Thu 2013/10/31 14:13:16: 41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D                          AT+MODE=2.      
Thu 2013/10/31 14:13:16: 1 "ERROR"
Thu 2013/10/31 14:13:16: Checking line: ERROR

更新

我尝试使用其他调制解调器 ZTE MF288,它工作得很好。 还是不知道怎么配置华为E169

【问题讨论】:

    标签: sms gammu


    【解决方案1】:

    我也在使用华为 E169,但我只有 3 个端口(ttyUSB0、ttyUSB1、ttyUSB2)。 在德国买的,使用 Ubuntu 13.10 和 gammu 1.33.0。

    当我使用最高端口 (ttyUSB2) 时,对我来说效果很好。

     -> gammu identify
    Gerät               : /dev/ttyUSB2
    Hersteller           : Huawei
    Modell               : E169 (E169)
    Firmware             : 11.314.13.00.264
    

    也有可能设备处于存储模式,您需要将其切换到“手机模式”。

    【讨论】:

    • 您使用的是什么操作系统?我过去从未被发现,但我尝试了 Ubuntu 11.10 而不是最新的 Debian Wheezy。并且从未改变过它。它与一些内核问题有关。
    • 如何从存储模式切换到电话模式?
    【解决方案2】:

    输出中有很多信息,但关键输出似乎是。 “好像不支持” 即使 gammu 连接到您的手机,它也可能无法连接到 SMS 命令。

    在此处查看支持的手机列表。 http://wammu.eu/phones 您的手机似乎已列出。 您可能需要在 .gammurc 文件中设置模型。喜欢这个型号 = E169

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-11
      • 1970-01-01
      • 1970-01-01
      • 2023-04-06
      相关资源
      最近更新 更多