Pages: [1]   Go Down
Author Topic: AT+CLCC No Carrier Error  (Read 2641 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

During calling sequence i m getting NO CARRIER ERROR for AT+CLCC command.
I am using QuectelM95 with arduino Uno, with TxD RxD and Gnd.

The code is as below:

Quote
String GSM_string = "\r\n\n\nTest Protocol: GSM-easy!\r\n------------------------\r\n";


void setup(){
  Serial.begin(9600);
}
void loop(){

  WaitAndRead(1000);
      GSM_string += "Query register state of GSM network (20 seconds later!):\r\n";
      Serial.print("AT\r");                                           // Query register state of GSM network
      WaitAndRead(100);
     
      GSM_string += "Disable Echo:\r\n";
      Serial.print("ATE0\r");                                           // Query register state of GSM network
      WaitAndRead(100);

  GSM_string += "CPIN:\r\n";
  Serial.print("AT+CPIN?\r");                                           // Query register state of GSM network
  WaitAndRead(100);

  GSM_string += "Auto baud rate:\r\n";
  Serial.print("AT+IPR=9600\r");                                           // Query register state of GSM network
  WaitAndRead(100);

  GSM_string += "Disable URC:\r\n";
  Serial.print("AT+QIURC=0\r");                                           // Query register state of GSM network
  WaitAndRead(200);

  GSM_string += "Network registration:\r\n";
  Serial.print("AT+CREG?\r");                                           // Query register state of GSM network
  WaitAndRead(300);


  GSM_string += "Call sequence:\r\n";
  Serial.print("AT+COLP=\r");                                           // Query register state of GSM network
  WaitAndRead(100);

  GSM_string += "ATD command:\r\n";
  Serial.print("ATD+918971627172\r");                                           // Query register state of GSM network
  WaitAndRead(100);

  GSM_string += "CLCC:\r\n";
  Serial.print("AT+CLCC\r");                                           // Query register state of GSM network
  WaitAndRead(100);

  GSM_string += "VTS:\r\n";
  Serial.print("AT+VTS=1\r");                                           // Query register state of GSM network
  WaitAndRead(100);

  GSM_string += "ATH:\r\n";
  Serial.print("ATH\r");                                           // Query register state of GSM network
  WaitAndRead(100);


  Serial.print(GSM_string);
  Serial.println("\n--- E N D ---");
  while(1);
}


void WaitAndRead(int timeout)
{
  for (int i = 0; i < timeout; i++)
  {
    delay(10);
    while (Serial.available() > 0)
    {
      char inChar = Serial.read();
      GSM_string += inChar;
    }
  }

  GSM_string += "----------\r\n";
}





And the response from serial monitor is as below (Response of M95 for the commands):

Quote
AT
ATE0
AT+CPIN?
AT+IPR=9600
AT+QIURC=0
AT+CREG?
AT+COLP=1
ATD+918971627172
AT+CLCC
AT+VTS=1
ATH



Test Protocol: GSM!
------------------------
----------
Query register state of GSM network (20 seconds later!):

OK
----------
Disable Echo:

OK
----------
CPIN:

+CPIN: READY

OK
----------
Auto baud rate:

OK
----------
Disable URC:

OK
----------
Network registration:

+CREG: 0,1

OK
----------
Call sequence:

OK
----------
ATD command:
----------
CLCC:

NO CARRIER
----------
VTS:

+CME ERROR: unknown
----------
ATH:

OK
----------

--- E N D ---



* GVOICE.ino (3.35 KB - downloaded 7 times.)
Logged

Pages: [1]   Go Up
Jump to: