Hi, I am having a problem with my modem. When I try to send an sms to it, an error is displayed: "could not decode PDU to a message.". Is this a problem with my init string? The modem is a Huawei E220.
Here is my modems.conf # Modems configuration # # Example and default values # # group = modems # id = "my-id" # name = "my-name" # detect-string = "MODEM" # detect-string2 = "" [Default] # init-string = "AT+CNMI=1,2,0,0,0" [Default] # speed = 9600 [Default] # enable-hwhs = "AT+IFC=2,2" [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = "AT" [Default] # broken = false [Default] # message-storage = "SM" # enable-mms = false [Default] # If modemtype=auto, try everyone and defaults to this one group = modems id = generic name = "Generic Modem" group = modems id = keegan name = Keegan detect-string = "KEEGAN" speed = 115200 no-pin = true no-smsc = true #message-storage = "SM" enable-hwhs = "AT+IFC=2,2" enable-mms = true reset-string = "ATZ" #init-string = "AT+CNMI=0,0,0,0,0" #init-string = "AT+CMGF=1" group = modems id = wavecom name = Wavecom detect-string = "WAVECOM" group = modems id = premicell name = Premicell detect-string = "PREMICEL" no-pin = true no-smsc = true group = modems id = siemens_tc35 name = "Siemens TC35" detect-string = "SIEMENS" detect-string2 = "TC35" init-string = "AT+CNMI=1,2,0,1,1" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true group = modems id = siemens_m20 name = "Siemens M20" detect-string = "SIEMENS" detect-string2 = "M20" speed = 19200 enable-hwhs = "AT\\Q3" keepalive-cmd = "AT+CBC;+CSQ" need-sleep = true group = modems id = siemens_sl45 name = "Siemens SL45" detect-string = "SIEMENS" detect-string2 = "SL45" init-string = "AT+CNMI=1,2,2,2,1" keepalive-cmd = "AT+CBC;+CSQ" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true message-storage = "SM" group = modems id = nokiaphone name = "Nokia Phone" detect-string = "Nokia Mobile Phone" need-sleep = true keepalive-cmd = "AT+CBC;+CSQ" enable-mms = true group = modems id = falcom name = "Falcom" detect-string = "Falcom" #no-smsc = true group = modems id = ericsson_r520m name = "Ericsson R520m" detect-string = "R520m" init-string = "AT+CNMI=3,2,0,0" group = modems id = ericsson_t68 name = "Ericsson T68" detect-string = "T68" init-string = "AT+CNMI=3,3" keepalive-cmd = "AT+CBC;+CSQ" broken = true group = modems id = sonyericsson_gr47 name = "Sony Ericsson GR47" detect-string = "GR47" message-storage = "ME" # use this init-string for non sim-buffering init-string = "AT+CNMI=3,2,0,0" # use this init-string for sim-buffering #init-string = "AT+CNMI=3,1,0,0" reset-string = "ATZ" broken = true group = modems id = alcatel name = "Alcatel" detect-string = "Alcatel" init-string = "AT+CNMI=3,2,0,0" group = modems id = sonyericsson_T630-T628 name = "Sony Ericsson T630-T628? init-string = "AT+CNMI=2,3,2,0,0;+CMGF=0? keepalive-cmd = "AT+CBC;+CSQ;+CMGF=0? broken = true *************************************************************************** -and my kannel.conf # # THIS IS A SAMPLE CONFIGURATION FOR KANNEL # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to [email protected] # include = "/etc/kannel/modems.conf" group = core admin-port = 13000 admin-password = crower smsbox-port = 13001 #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel.log" #log-level = 0 #access-log = "access.log" #http-proxy-host = "127.0.0.1" #http-proxy-port = 8080 #http-proxy-exceptions = "127.0.0.1" #http-proxy-username = "user" #http-proxy-password = "password" #ssl-certkey-file = "mycertandprivkeyfile.pem " #Smsbox related #box-deny-ip = "*.*.*.*" #box-allow-ip = "127.0.0.1" #unified-prefix = "00358,0" #white-list = " http://127.0.0.1/white-list.txt" #black-list = "http://127.0.0.1/black-list.txt" #store-file = "kannel.store" # Wapbox related #wapbox-port = 13002 #udp-deny-ip = "*.*.*.*" #udp-allow-ip = "127.0.0.1" #wdp-interface-name = "*" # SMSC CONNECTIONS - GLOBAL FIELDS #group = smsc #smsc = #smsc-id = ID #denied-smsc-id = "X;Y" #allowed-smsc-id = "Z" #preferred-smsc-id = "W" #allowed-prefix = "040;050" #denied-prefix = "060;070" #alt-charset = # SMSC Nokia CIMD2 #group = smsc #smsc = cimd2 #host = #port = #smsc-username = #smsc-password = #keepalive = #sender-prefix = # SMSC EMI #group = smsc #smsc = emi2 #smsc = emi_ip to use the old implementation #host = #port = #smsc-username = #smsc-password = #device = /dev/ #phone = #our-port = #receive-port = #connect-allow-ip = #keepalive = #flow-control = # SMSC SMPP #group = smsc #smsc = smpp #host = #port = #receive-port = #smsc-username = #smsc-password = #system-type = #address-range = # SMSC SEMA #group = smsc #smsc = sema #device = /dev/tty0 #smsc_nua = (X121 smsc address) #home_nua = (x121 radio pad address) #wait_report = 0/1 (0 means false, 1 means true) # SMSC OIS #group = smsc #smsc = ois #host = 103.102.101.100 #port = 10000 #receive-port = 10000 #ois-debug-level = 0 # SMSC GSM group = smsc smsc = at smsc-id = AT #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom | nokiaphone | ericsson modemtype = keegan #device = /dev/ttyS0 device = /dev/ttyUSB1 pin = 2345 validityperiod = 167 connect-allow-ip = 127.0.0.1 # SMSC Fake #group = smsc #smsc = fake #host = #port = #connect-allow-ip = # SMSC HTTP #group = smsc #smsc = http #system-type = kannel #send-url = #port = #connect-allow-ip = #username = #password = # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 #sendsms-chars = "0123456789 +-" #global-sender = 12345 global-sender = +353879482350 log-file = "/tmp/smsbox.log" log-level = 0 #access-log = "access.log" #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # SEND-SMS USERS group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" #name = service_kannel #forced-smsc = ID #default-smsc = ID #faked-sended = #max-messages = 1 #concatenation = 1 #split-chars = #split-suffix = #omit-empty = #header = #footer = #allowed-prefix = #denied-prefix = #white-list = #black-list = # SMS SERVICES group = sms-service name = nothing #keyword = nop keyword = #aliases = "noppy;niente" text = "You asked nothing and I did it!" #get-url = "http://" get-url = "http://localhost/sms.php?phone=%p&text=%a<http://localhost/sms.php?phone=%25p&text=%25a> " #post-url = "http://" #post-url = " http://localhost/sms.php?phone=%p&text=%a<http://localhost/sms.php?phone=%25p&text=%25a> " #file = "/tmp/" #accepted-smsc = AT #allowed-prefix = #denied-prefix = catch-all = true #send-sender = false #strip-keyword = false #faked-sender = #max-messages = 1 max-messages = 0 #accept-x-kannel-headers = false #assume-plain-text = false #concatenation = false #split-chars = #split-suffix = "+" #omit-empty = true #header = #footer = #prefix = #suffix = #white-list = #black-list = # SMS SERVICE GET-URL EXAMPLE #group = sms-service #keyword = relay #get-url = "http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t<http://localhost/service?phone=%25p&text=%25r&binary=%25b&smsc=$i&time=%25t> # SMS SERVICE black-list #group = sms-service #keyword = black-list #text = "You are not alowed to use this service, Go away!" # SMS SERVICE Default # there should be default always group = sms-service keyword = default text = "No service specified" *************************************************************************** and the bearer box output 2007-06-27 21:30:36 [29928] [0] INFO: ---------------------------------------- 2007-06-27 21:30:36 [29928] [0] INFO: Kannel bearerbox II version 1.4.1starting 2007-06-27 21:30:36 [29928] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 29928. 2007-06-27 21:30:36 [29928] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 29928. 2007-06-27 21:30:36 [29928] [6] INFO: AT2[AT]: trying to use speed <115200> from modem definition 2007-06-27 21:30:36 [29928] [6] INFO: AT2[AT]: opening device 2007-06-27 21:30:36 [29928] [0] INFO: MAIN: Start-up done, entering mainloop 2007-06-27 21:30:36 [29928] [0] DEBUG: AT2[AT]: start called 2007-06-27 21:30:36 [29928] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 29928. 2007-06-27 21:30:36 [29928] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2007-06-27 21:30:36 [29928] [7] DEBUG: sms_router: gwlist_len = 0 2007-06-27 21:30:36 [29928] [6] DEBUG: AT2[AT]: device opened 2007-06-27 21:30:36 [29928] [6] DEBUG: AT2[AT]: device opened 2007-06-27 21:30:36 [29928] [6] INFO: AT2[AT]: speed set to 115200 2007-06-27 21:30:36 [29928] [6] DEBUG: AT2[AT]: --> ^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] INFO: AT2[AT]: closing device 2007-06-27 21:30:38 [29928] [6] INFO: AT2[AT]: speed is 115200 2007-06-27 21:30:38 [29928] [6] INFO: AT2[AT]: opening device 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: device opened 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: device opened 2007-06-27 21:30:38 [29928] [6] INFO: AT2[AT]: init device 2007-06-27 21:30:38 [29928] [6] INFO: AT2[AT]: speed set to 115200 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> ATZ^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- AT 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT&F^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- AT&F 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> ATE0^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- ATE0 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT+IFC=2,2^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGF=0^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT+CSMS=?^M 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- +CSMS: (0-1) 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:38 [29928] [6] DEBUG: AT2[AT]: --> AT+CNMI=1,2,0,1,0^M 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:39 [29928] [6] INFO: AT2[AT]: AT SMSC successfully opened. 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: <-- +CMTI: "SM",10 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: +CMTI incoming SMS indication: +CMTI: "SM",10 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: <-- +CMTI: "SM",11 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: +CMTI incoming SMS indication: +CMTI: "SM",11 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: <-- +CMTI: "SM",12 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: +CMTI incoming SMS indication: +CMTI: "SM",12 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: <-- +CMTI: "SM",13 2007-06-27 21:30:39 [29928] [6] DEBUG: AT2[AT]: +CMTI incoming SMS indication: +CMTI: "SM",13 2007-06-27 21:30:39 [29928] [5] INFO: Client connected from < 127.0.0.1> 2007-06-27 21:30:39 [29928] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2007-06-27 21:30:39 [29928] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 29928. 2007-06-27 21:30:39 [29928] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2007-06-27 21:30:39 [29928] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 29928. 2007-06-27 21:30:41 [29928] [6] INFO: AT2[AT]: CMTI received, but no message-storage is set in confiuration.setting now to <SM> 2007-06-27 21:30:41 [29928] [6] INFO: System error 2: No such file or directory 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CPMS="SM"^M 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- +CPMS: 14,25,14,25,14,25 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGR=10^M 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- +CMGR: 0,,21 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- 0791538375000055000C9153833687337200007060721252344002D437 2007-06-27 21:30:41 [29928] [6] ERROR: AT2[AT]: could not decode PDU to a message. 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGD=10^M 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGR=11^M 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- +CMGR: 0,,22 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- 0791538375000055000AA1803687337200007060721212414004E2B0380F 2007-06-27 21:30:41 [29928] [6] ERROR: AT2[AT]: could not decode PDU to a message. 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGD=11^M 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGR=12^M 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- +CMGR: 0,,21 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- 0791538375000055040AA180368733720000706072129220400368341A 2007-06-27 21:30:41 [29928] [6] ERROR: AT2[AT]: could not decode PDU to a message. 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:41 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGD=12^M 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGR=13^M 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: <-- +CMGR: 0,,21 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: <-- 0791538375000065040C9153833687337200007060721292234002D437 2007-06-27 21:30:42 [29928] [6] ERROR: AT2[AT]: could not decode PDU to a message. 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: --> AT+CMGD=13^M 2007-06-27 21:30:42 [29928] [6] DEBUG: AT2[AT]: <-- OK 2007-06-27 21:41:23 [29928] [6] DEBUG: AT2[AT]: <-- +CMT: ,22 2007-06-27 21:41:23 [29928] [6] DEBUG: AT2[AT]: <-- 0791538375000055040AA18036873372000070607212142240046376F80E 2007-06-27 21:41:23 [29928] [6] ERROR: AT2[AT]: could not decode PDU to a message.
