SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu Apr 25, 2024 10:41
SMSTools3 Community » Help and support Bottom

[answered] CME ERROR: 4

  This topic is locked

Page:  1

Author Post
Member
Registered:
Sep 2010
Location: Germany
Operating system name and version: Debian Lenny 64Bit
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Sony Ericson
Interface: USB

Hello

I have Updatet smstools and see some errors

Pre-initializing modem
GSM1: -> ATE0+CMEE=1;+CREG=2
Command is sent, waiting for the answer
<- +CME ERROR: 4 (operation not supported)
Modem did not accept the pre-init string


SMS sending and receiving works perfect!
Is this Error awful?

Merry X-Mas ;)


« Last edit by cyres on Fri Dec 24, 2010 14:11, 162 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
It looks like the device does not support displaying of Location Area Code and Cell ID. You can get rid of this error message with a modem setting loglevel_lac_ci = 8. Perhaps I should change this feature in the next version (auto-disable if error is returned).

...and Happy New Year ;)

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Here is the change if you want to apply it. File modeminit.c:

  if (DEVICE.pre_init > 0)
  {
    writelogfile(LOG_INFO, 0, "Pre-initializing modem");

    // 3.1.14:
    //put_command((DEVICE.phonecalls == 2)? pre_initstring_clip : pre_initstring, answer, sizeof(answer), 2, EXPECT_OK_ERROR);
    snprintf(command, sizeof(command), "%s", (DEVICE.phonecalls == 2)? pre_initstring_clip : pre_initstring);
    if (get_loglevel() >= DEVICE.loglevel_lac_ci)
      if (sizeof(command) > strlen(command) +8)
        strcpy(command +strlen(command) -1, ";+CREG=2\r");

    put_command(command, answer, sizeof(answer), 2, EXPECT_OK_ERROR);

    // 3.1.15:
    if (!strstr(answer,"OK") && get_loglevel() >= DEVICE.loglevel_lac_ci)
    {
      DEVICE.loglevel_lac_ci = get_loglevel() + 1;
      snprintf(command, sizeof(command), "%s", (DEVICE.phonecalls == 2)? pre_initstring_clip : pre_initstring);
      put_command(command, answer, sizeof(answer), 2, EXPECT_OK_ERROR);
    }

    if (!strstr(answer,"OK"))
      writelogfile(LOG_ERR, 1, "Modem did not accept the pre-init string");
  }
 
'c' Syntax Highlight powered by GeSHi


Member
Registered:
Sep 2010
Location: Germany
Topic owner
I have apply this patch and it works!
Thank you very much ;).

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.