2

SMSの送信にgammuを使いたいです。gammu ユーティリティから電話を識別したいときに問題があります

使用環境: - openSUSE 12.3 32 ビット - GCC 4.7 を使用して 2012 年 8 月 10 日 09:27 にビルドされた Gammu バージョン 1.32.0

> 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

/etc/gammurcに配置された gammu-config は次のとおりです。

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

ワムウ(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]

最初の部分ではすべてOKです

この部分の詳細を見ると、すべてが成功しています

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

この部分でエラーが発生しました。これは Motorola だと認識しているようですが、私は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 を使用しようとしましたが、問題なく動作します。Huawei E169の設定方法がまだわかりません

4

2 に答える 2

2

私もHuawei E169を使用していますが、3つのポート(ttyUSB0、ttyUSB1、ttyUSB2)しかありません。gammu 1.33.0 で Ubuntu 13.10 を使用して、ドイツで購入しました。

最上位のポート (ttyUSB2) を使用すると問題なく動作します。

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

デバイスがストレージ モードになっていて、「電話モード」に切り替える必要がある可能性もあります。

于 2014-03-11T10:02:18.670 に答える