Go Down

Topic: Using SIM908-c by UNV with AT commands (Read 525 times) previous topic - next topic

aleksejs94

Hello!
I am using SIM908-C EVB V1.0 by UNV to setup GSM + GPS. I have used GSM library and it works fine, however it seems it is not possible to incorporate GPS with the GSM library, so decided to write my own code with AT commands for both GSM and GPS.

First I tried to use direct online connection with the following code:

Code: [Select]
//Serial Relay - Arduino will patch a serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1 Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
 
#include <SoftwareSerial.h>
 
SoftwareSerial mySerial(2,3); // change these paramters depending on your Arduino GSM Shield
 
void setup()
{
  Serial.begin(115200);
  Serial.println("Begin");
  mySerial.begin(115200);
 
}
 
void loop()
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}


But when I type AT in the command window, nothing appears, but if I change .write to .println it just gives zeros.

Any suggestion how to use this board and how to set it up to use without libraries with AT commands. Thank you in advance!

Go Up