Support forum

Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

Error CMS ERROR: 321 (invalid memory index) after the AT+CMGD=2 command
sp_NewPost Add Reply sp_NewTopic Add Topic
April 28, 2015
10:03 am
Henk Helmantel
Forum Posts: 1502
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Paulo,

CMS ERROR 321 means that Diafaan SMS Server tries to remove a received SMS message from the modem but that the remove command fails. Sometimes this problem happens because the modem uses the wrong memory location for the remove command. If this is the case you can try to set the 'ModemInitializationBeginning' property in the advanced settings of the GSM Modem Gateway to


(the best settings for other modem types may be different).

If that does not help, I would like to have a look at the communication log of the modem ( You can send the log to

The disconnect and the long time to reconnect is the result of a reboot of the modem by Diafaan SMS Server. The reboot does a full restart of the modem and it generally solves all kind of network connection problems but it can also slow down the message throughput considerably. You can disable this reboot if you set the 'RebootBeforeInitialization' property in the advanced settings of the GSM Modem Gateway to 'False'.

Regards, Henk

April 27, 2015
9:43 pm

I have a q2403 wavecom chipeira with modules and searching the internet I found your management software, which is apparently very powerful, I have the trial version of the software more the same is giving this error when receiving messages The GSM Modem returned + CMS ERROR: 321 (invalid memory index) after the AT + CMGD = 2 command.

This shipping normally, without any problems, more to enable receiving messages it presents this problem impeding shipments because desconcta door and takes too long to reconnect again.

Waiting for contact because I am very interested in the tool.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
8 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 677

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1149

Posts: 3928

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1502