Seeed-Studio / Wio_LTE_Arduino_Library

Wio Tracker LTE is boards combined with STM32F405RGT6 and EC21(4G/3G/GPS) module
MIT License
24 stars 12 forks source link

NO CARRIER with basic CallUp example #5

Closed karpawich closed 6 years ago

karpawich commented 6 years ago

I'm getting a "NO CARRIER" error when the following example code is executing on a Wio LTE Cat1 v1.1

#include "wio_tracker.h"

WioTracker wio = WioTracker();

void setup() {
  SerialUSB.println("Wait for power on...");
  wio.Power_On();  
  SerialUSB.println("Power On O.K!");

  while(!wio.init()){
    delay(1000);
    SerialUSB.println("Accessing network...");
  }
  SerialUSB.println("Initialize done...");

  bool ret = wio.waitForNetworkRegister();
  if(true == ret){
      SerialUSB.println("Network accessed!");
  }else {
      SerialUSB.println("Network failed!");
      return;
  }

  // Make a phone call
  wio.callUp("XXXXXXXXXXX");
  SerialUSB.println("Calling...");

}

void loop() {
  /* Debug */
  AT_bypass();
}

Note: the phone number follows the following pattern..

[Country code][Area code][3 digits][4 digits]

I read from StackOverflow that incorrect format can cause a NO CARRIER signal. Perhaps I just have the format wrong?