使用我的gammu配置,在华为E220调制解调器上,我可以收到短信,但我无法拨打电话。
这是我的gammu配置文件(由gammu-smsd和gammu使用):
# Configuration file for Gammu SMS Daemon
# Gammu library configuration, see gammurc(5)
[gammu]
port = /dev/ttyUSB0
model =
connection = at19200
synchronizetime = yes
logfile = /var/log/gammulog
logformat = textall
use_locking =
gammuloc =
# SMSD configuration, see gammu-smsdrc(5)
[smsd]
service = files
PIN = 0000
logfile = /tmp/smsd.log
# Increase for debugging information
debuglevel = 0
RunOnReceive = /opt/SMS/onreceive.sh
# Paths where messages are stored
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
拨打电话的命令:
这是日志:
[Gammu - 1.31.90 built 08:54:06 May 23 2012 using GCC 4.6]
[Connection - "at19200"]
[Connection index - 0]
[Model type - ""]
[Device - "/dev/ttyUSB0"]
[Running on - Linux, kernel 3.18.11+ (#781 PREEMPT Tue Apr 21 18:02:18 BST 2015)]
Serial device: DTR is up, RTS is up, CAR is up, CTS is up
Setting speed to 19200
[Module - "auto"]
Escaping SMS mode
SENDING frametype 0x00/length 0x02/2
1B |0D ..
Sending simple AT command to wake up some devices
SENDING frametype 0x00/length 0x03/3
41A|54T|0D AT.
Enabling echo
SENDING frametype 0x00/length 0x05/5
41A|54T|45E|311|0D ATE1.
Phone does not support enabled echo, it can not work with Gammu!
Init:GSM_TryGetModel failed with error TIMEOUT[14]: Aucune réponse dans le temps d'attente spécifié: Le téléphone n'est peut-être pas connecté.
[Terminating]
[Closing]
答案 0 :(得分:1)
你在调用gammu时是否停止了短信?这些不能在同一设备上同时执行。