![Kannel 1.4.3 华为 e220 初始化错误 Ubuntu 14.04 LTS](https://linux22.com/image/1427119/Kannel%201.4.3%20%E5%8D%8E%E4%B8%BA%20e220%20%E5%88%9D%E5%A7%8B%E5%8C%96%E9%94%99%E8%AF%AF%20Ubuntu%2014.04%20LTS.png)
我是 Kannel 新手。尝试使用 Kannel 1.4.3 和华为 e220 调制解调器设置短信发送/接收。操作系统:Ubuntu 14.04 lts。
我在 bearerbox 中收到此错误:
2014-10-15 20:55:50 [3425] [6] DEBUG: AT2[Huawei-E220-00]: --> AT+CSCA="my number"
2014-10-15 20:55:51 [3425] [6] DEBUG: AT2[Huawei-E220-00]: <-- ERROR
2014-10-15 20:55:51 [3425] [6] ERROR: AT2[Huawei-E220-00]: Generic error: ERROR
2014-10-15 20:55:51 [3425] [6] ERROR: AT2[Huawei-E220-00]: Initialization of device failed.
2014-10-15 20:55:51 [3425] [6] INFO: AT2[Huawei-E220-00]: Closing device
2014-10-15 20:55:51 [3425] [6] ERROR: AT2[Huawei-E220-00]: Couldn't connect (retrying in 10 seconds).
无法通过 minicom AT 命令重置 CSCA,它会给出错误。
这是我的 smskannel.conf 设置:
#---------------------------------------------
# CORE
#
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#---------------------------------------------
# SMSC CONNECTIONS
#
group = smsc
smsc = at
smsc-id = Huawei-E220-00
port = 10000
modemtype = huawei_e220_00
device = /dev/ttyUSB0
sms-center = "my number"
my-number = "my number"
connect-allow-ip = 127.0.0.1
sim-buffering = true
keepalive = 5
log-level = 0
#---------------------------------------------
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = "my number"
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
log-level = 0
#access-log = "/tmp/access.log"
#---------------------------------------------
# SEND-SMS USERS
#
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
concatenation= true
max-messages = 10
#---------------------------------------------
# SERVICES
#
group = sms-service
keyword = default
catch-all = yes
max-messages = 0
#get-url = "http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar& to=number&text=Hello"
get-url = http://localhost/sms?phone=%p&text=%a
#---------------------------------------------
# MODEMS
#
group = modems
id = huawei_e220_00
name = "Huawei E220"
detect-string = "huawei"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
message-storage = "SM"
need-sleep = true
speed = 9600
答案1
Kannel 存在许多问题。您在尝试启动 Kannel 时是否使用 USB 调制解调器连接互联网?如果是,请断开互联网连接并重试。
USB 端口工作正常?有时,某些 USB 调制解调器与 Kannel 发生问题。因此,请尝试使用其他型号。我为 Kannel 使用华为 E173。它工作正常。