top of page

The easiest way to test the GPRSbee on an Arduino compatible board is by using the below sketch.
Just connect your serial UART (like the UARTsbee) to pin 7 and 8 and whatever you type in your terminal window will be sent to the GPRSbee.
This is an ideal way to test your AT commands interactively similar to any other GPRS Shield.

To use the software switch, connect pin 6 to the DTR pin of the bee connector.

 

#include <SoftwareSerial.h>
#define RX  7
#define TX  8
#define PWR 6
SoftwareSerial softSerial(RX, TX);
void GPRS_software_on_off(){
  digitalWrite(PWR,HIGH);
  delay(2500);
  digitalWrite(PWR,LOW);
}

void setup () 
{
   Serial.begin(19200);
   softSerial.begin(19200);
   softSerial.println("INIT");
   softSerial.println("GPRS on/off");
   GPRS_software_on_off();

}

void loop()
{
    if (softSerial.available())
            Serial.write(softSerial.read());
                if (Serial.available())
                    softSerial.write(Serial.read());
}

Test sketch for Arduino and Compatibles

bottom of page