What does this mean?

I’m using the SIM808 module and i’m testing the examples that came with the library. It’s saying in the instructions “4. Download and dial the function switch to Arduino” and i have no idea what it means.

This is the code:

/*
### Make phone calls
1. This example is used to test DFRobot_SIM808 SIM808 GPS/GPRS/GSM Shield's callUp function.
2. Open the SIM808_CallUp example or copy these code to your project
3. Replace the phoneNumber:#define PHONE_NUMBER  "187******39"    
4. Download and dial the function switch to Arduino, and enjoy it

create on 2016/09/23, version: 1.0
by jason
*/

#include <DFRobot_sim808.h>
#include <SoftwareSerial.h>

//#define PIN_TX    10
//#define PIN_RX    11
//SoftwareSerial mySerial(PIN_TX,PIN_RX);
//DFRobot_SIM808 sim808(&mySerial);//Connect RX,TX,PWR,

//Mobile phone number,need to change
#define PHONE_NUMBER  ""   

DFRobot_SIM808 sim808(&Serial);

void setup() {
  //mySerial.begin(9600);
  Serial.begin(9600);
  //********Initialize sim808 module*************
  while(!sim808.init()) { 
      delay(1000);
      Serial.print("Sim808 init error\r\n");
  }
  Serial.println("Sim808 init success");
  Serial.println("Start to call ...");

  //*********Call specified number***************
  sim808.callUp(PHONE_NUMBER);
}
void loop() {
  //nothing to do
}

I keep getting the error saying “Sim808 init error”

Any help apprecieated :slight_smile:

It's not possible to use Serial for both serial and SIM808 communication at the same time.

If you have a Mega2560 could you use one of the other serial ports for the SIM808?

Blackfin:
If you have a Mega2560 could you use one of the other serial ports for the SIM808?

I'm using an UNO. What should I do?? It was working a while ago with different code but it's not with any of the SIM808 sketches...

Use software serial with an Uno, currently commented out in your source code.

//#define PIN_TX    10
//#define PIN_RX    11
//SoftwareSerial mySerial(PIN_TX,PIN_RX);