Don't know why this is occurs or how to solve it. But a workaround might be using "me" memory instead of "sm"?
It may speed up things a little bit as well and probably you will have more memory indices. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Emmanuel CHANSON Sent: donderdag 8 juli 2010 0:07 To: users Subject: Huawei E220 / +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) A little question about Huawei E220 and this issue: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) The only solution I have is to connect using minicom to the modem and delete the message. Do you know why does this happen on this modem ? 2010-07-08 09:01:01 [7101] [18] DEBUG: AT2[huawei_e220]: <-- ^BOOT:92407792,0,0,0,6 2010-07-08 09:01:31 [7101] [18] DEBUG: AT2[huawei_e220]: <-- ^BOOT:92407792,0,0,0,6 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: --> AT+CPMS?^M 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: <-- +CPMS: "SM",1,60,"SM",1,60,"SM",1,60 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: <-- OK 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: 1 messages waiting in memory 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: --> AT+CMGR=1^M 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: <-- OK 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: --> AT+CMGR=2^M ... ... 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: --> AT+CMGR=59^M 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: <-- OK 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: --> AT+CMGR=60^M 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: <-- +CMS ERROR: 321 2010-07-08 09:01:53 [7101] [18] ERROR: AT2[huawei_e220]: +CMS ERROR: +CMS ERROR: 321 2010-07-08 09:01:53 [7101] [18] ERROR: AT2[huawei_e220]: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: failed to get message 60. My modems config: group = modems id = huawei_e220 name = "Huawei E220" detect-string = "huawei" init-string = "AT+CNMI=2,1,2,2,0" message-storage = sm speed = 460800 kannel.conf: ... # SMSC GSM group = smsc smsc = at #SMSC: HUAWEI E220 device = /dev/ttyUSB1 smsc-id = "huawei_e220" modemtype = huawei_e220 allowed-smsc-id = "huawei_e220" sms-center = "+687xxxxxx" #mynumber = 687xxxxxx pin = 0000 validityperiod = 167 sim-buffering = true log-file = "/var/log/kannel/smsc.log" log-level = 0 include = /etc/kannel/modems.conf ... Regards, -- Emmanuel