Modem Response (2): +CMS ERROR: 500

Modem Response (2): +CMS ERROR: 500 SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through August 22, 2012 » Modem Response (2): +CMS ERROR: 500 « Previous || Next »
Author Message
Noway
New member
Username: Noway

Post Number: 1
Registered: 04-2012
Posted on Wednesday, April 25, 2012 - 08:41 pm:   

Hello,

I'm trying to use SE J108i phone as GSM modem, everything is setup well, and when I'm trying to send few messages (let's say 10 SMSs) the first 2-3 messsages are going thru, and then all other messages are getting error "Modem Response (2): +CMS ERROR: 500" and after several retries, another 2-3 messages are going thru the modem, and the reset are getting same error again. The same issue keep repetaed till all messages are being sent after several number of retries.

Please note I tried Huwaei modem and it was working perfectly, but what could be the reason behind this failure with Soney Ericson device?!

Thanks in advance.

BR.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3929
Registered: 08-2008
Posted on Thursday, April 26, 2012 - 09:01 pm:   

Hi,

My experience is that using a phone as a modem is not as reliable as using a dedicated modem device. The issue is that phone software is complicated, and modem functionality is often not fully tested by the manufacturer as it is not considered to be core functionality.

That said, +CMS ERROR: 500 is often a result of low/marginal signal strength. So make sure you have a strong signal.

Another issue that we have encountered in the past is some phone modems working more reliably if we force an idle wait period after sending attempts to give the phone software a chance to perform other tasks.

There are advanced configuration parameters for setting this delay, but they must be set by manually editing the SMSGW.INI file. Under the [Modem - driver name] section header, add:

DelayAfterSend=####

and/or

DelayAfterError=####


In both cases, #### is a millisecond (1/1000 of a second, example 1000 = 1 second) delay after a successful send, or after a send attempt that results in an error.

I remember one family of devices that we tested years ago that actually worked best with a delay of 7500! Normally, I'd suggest more moderate delays like in the 500 to 2000 range.

--
Des
NowSMS Support
Noway
New member
Username: Noway

Post Number: 2
Registered: 04-2012
Posted on Friday, April 27, 2012 - 12:38 am:   

Hi,

Thanks for your reply.

First, I confirm that it's not a signal issue with my case, the signal is full.

And regarding your suggested solution, won't this slow down the the throughput speed?!

Also what is the DelayAfterError parameter value unit? Is it in Milliseconds?

Please advise. Thanks.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3932
Registered: 08-2008
Posted on Friday, April 27, 2012 - 07:12 pm:   

Hi,


quote:

And regarding your suggested solution, won't this slow down the the throughput speed?!




In theory, yes.

However, if in practice you are seeing a large number of errors that result in retries, and a forced delay reduces the number of such errors and retries, throughput is increased.

As I said above, this is an issue that we have observed with some phone modem implementations. If the modem implementation is buggy, we have found that some phone modems working more reliably if we force an idle wait period after sending attempts to give the phone software a chance to perform other tasks.


quote:

Also what is the DelayAfterError parameter value unit? Is it in Milliseconds?




Yes.

Please note that in the scenarios that we have observed, inserting a DelayAfterSend delay was more important for keeping modems from dropping into error states.

Also, I want to re-emphasize the following point from my previous reply:

My experience is that using a phone as a modem is not as reliable as using a dedicated modem device.

You say that you had previously tried a Huawei device and it was working perfectly. Since "phone as a modem" implementations can be notoriously buggy, your best solution would be to go back to that device.


--
Des
NowSMS Support
Noway
New member
Username: Noway

Post Number: 3
Registered: 04-2012
Posted on Friday, April 27, 2012 - 07:22 pm:   

Hi,

Thanks for your reply.

Personally, I would like to use Huawei modems, but as you know, and as it's mentioned in the article http://www.nowsms.com/sms-and-mms-with-the-huawei-e160-usb-modem that Huawei devices require it's software Mobile Partner to be always running, and this cause limitation on number of modems which we can use, as Mobile Partner software is single instance and not allowing running it more than once, and if we didn't use Mobile Partner with every device then it will hung.

Any suggestion?

Thanks again.

BR,
Noway
New member
Username: Noway

Post Number: 4
Registered: 04-2012
Posted on Sunday, April 29, 2012 - 06:37 pm:   

Hi again,

Also, if I have multiple modems of the same type, shall the DelayAfterSend parameter being set for each modem? Or there is away to configure it in a global scope?

BR,
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3936
Registered: 08-2008
Posted on Monday, April 30, 2012 - 03:25 pm:   

Hi,

As these settings are in the modem specific sections (example [Modem - driver name]) of SMSGW.INI, they are specific to each modem.

There is not a global setting that applies to all modems.

--
Des
NowSMS Support

Login Login / Register Logout Logout Search Last 30 Days Topics Topics