Difference between revisions of "GPS Shield"

From MakerFabsWiki
Jump to: navigation, search
(创建页面,内容为“== Introduction == This GPRS/GSM Shield based on the SIMcomm SIM800F Quad-band 850/900/1800/1900MHz module that delivers GSM/GPRS 850/900/1800/1900MHz performance fo...”)
 
(Introduction)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
This GPRS/GSM Shield based on the SIMcomm SIM800F Quad-band 850/900/1800/1900MHz module that delivers GSM/GPRS 850/900/1800/1900MHz performance for voice, SMS, Data, and Fax in a small form factor and with low power consumption, it is the absolutely substitute/upgrade version of the SIM900 module,  with the same AT Commands for controlling and upgrade signal performance.
+
The GPS Shield based on the SIM28 GPS module. It is a cost-efficient and field-programmable gadget. It features 22 tracking / 66 acquisition channel GPS receiver. The sensitivity of tracking and acquisition both reach up to -160dBm, making it a great choice for personal navigation projects and location services, as well as an outstanding one among products of the same price class.
  
'''Model: [https://makerfabs.com/index.php?route=product/product&path=90_91_115&product_id=134 OAS800FSM]'''<br>
+
'''Model: [https://makerfabs.com/index.php?route=product/product&path=90_91_115&product_id=1334 OAS028SIM]'''<br>
[[File:GPRS GSM Shield (SIMCOM- SIM800F).jpg|500px]]
+
[[File:GPS Shield.jpg|500px]]
  
 
== Features ==
 
== Features ==

Revision as of 08:19, 2 November 2017

Introduction

The GPS Shield based on the SIM28 GPS module. It is a cost-efficient and field-programmable gadget. It features 22 tracking / 66 acquisition channel GPS receiver. The sensitivity of tracking and acquisition both reach up to -160dBm, making it a great choice for personal navigation projects and location services, as well as an outstanding one among products of the same price class.

Model: OAS028SIM
GPS Shield.jpg

Features

  • Quad-band 850/900/1800/1900MHz - connect onto any global GSM network with any 2G SIM (in the USA, T-Mobile is suggested)
  • Make and receive voice calls using a headset OR an external 8Ω speaker + electret microphone
  • Send and receive SMS messages
  • Send and receive GPRS data (TCP/IP, HTTP, etc.)
  • AT command interface with "auto baud" detection
  • uFL connection for external antenna
  • Indicator LEDs for power and network connectivity
  • Any standard 2G SIM slides into a secure connector
  • Dimensions:68mm*53mm*23mm

Interface Function

GPRS GSM Shield (SIMCOM- SIM800F) 2.JPG GPRS GSM Shield (SIMCOM- SIM800F) 3.JPG

Connectors:

  • Headset jack-This is a 'standard' TRRS 3.5mm phone headset jack with stereo earphone and mono microphone. Any 'iPhone' or 'Android' compatible (but not iPhone original) should work.
  • uFL GSM connector-This is the GSM Antenna connector, an antenna is required to use the SIM800F shield!
  • SIM Connector:A 2G Mini SIM card is required to use the module. You can buy it in any cell phone shop. It must be a 2G GSM card.
  • VRTC Battery holder:Power supply for RTC.

LEDs

  • PWR –Power light
  • Status – Power on status. Lit when the Cell module is booted and running
  • NetLight – Network status. You can use this for checking the current state without sending an AT command
  • 64ms on, 800ms off - the module is running but hasn't made connection to the cellular network yet
  • 64ms on, 3 seconds off - the module has made contact with the cellular network and can send/receive voice and SMS
  • 64ms on, 300ms off - the GPRS data connection you requested is active

By watching the blinks you can get a visual feedback on whats going on. POWER_KEY

  • Power on or power off the SIM800F.

Pins usage on Arduino

  • D0 - Used if you select hardware serial port to communicate with SIM800F
  • D1 - Used if you select hardware serial port to communicate with SIM800F
  • D7 - Used if you select software serial port to communicate with SIM800F
  • D8 - Used if you select software serial port to communicate with SIM800F
  • D9 - Used for software control the Power ON or Power OFF of the SIM800F

Usage

On its own, this shield can't do anything. It requires a microcontroller like an Arduino to drive it! You will also need some required accessories to make SIM800Fshield work.
SIM Card! A 2G Mini SIM card is required to do anything on the cellular network. US AT&T no longer sells 2G SIMs and will shut off their 2G network, so for American customers we recommend any T-Mobile or reseller (TING, SIMPLE mobile, etc) that uses the T-Mobile network.

Assembly

Attaching Antennas: GSM antenna is required to use the Cellular module.
GPRS GSM Shield (SIMCOM- SIM800F) ANT.jpg
SIM Card:
Insert a mini SIM card(GPS does work without a SIM)
GPRS GSM Shield (SIMCOM- SIM800F) SIM.jpg
GPRS GSM Shield (SIMCOM- SIM800F) SIM1.jpg
Connect the headset to the headset jack.(when you make a call you may need to use it)
GPRS GSM Shield (SIMCOM- SIM800F) HEA.jpg
Plug to Arduino or Maduino, connect the USB to the PC.
GPRS GSM Shield (SIMCOM- SIM800F) USB.jpg
Power on the SIM800F shield by the POWER_KEY ( sometime you can control it by the software control ( Arduino D9 PIN))

Load Demo

SIM800F TCP Test

Open up File: SIM800F TCP Test.ino and upload to your Arduino wired up to the module.

#include <SoftwareSerial.h>

SoftwareSerial mySerial(7, 8);
#include<stdio.h>
#include<string.h>
#define DEBUG true
int pon=9;
void setup()
{
  Serial.begin(9600);
  mySerial.begin(9600);
  delay(1000);
  pinMode(pon, OUTPUT);
  digitalWrite(pon, HIGH);
  delay(3000);
  digitalWrite(pon, LOW);
  delay(1000); 
  Serial.println("After 3s, test begin!!");
  delay(3000);  
}

void loop()
{
     sendData("AT+CCID",3000,DEBUG); 
     sendData("AT+CREG?",3000,DEBUG);     
     sendData("AT+CGATT=1",1000,DEBUG);
     sendData("AT+CGACT=1,1",1000,DEBUG);
     sendData("AT+CSTT=CMNET",3000,DEBUG);
     sendData("AT+CIICR",1000,DEBUG);
     sendData("AT+CIFSR",1000,DEBUG);
      sendData("AT+CDNSGIP=\"www.sim.com\"",1000,DEBUG);
      sendData("AT+CDNSGIP=\"a b c d e f\"",1000,DEBUG);
      sendData("AT+CIPSTART=\"TCP\",\"WWW.SIM.COM\",80",5000,DEBUG);
      delay(10000);
      sendData("AT+CIPSEND=6",1000,DEBUG);
      sendData("123456",1000,DEBUG);
     delay(2000);
     sendData("AT+CIPCLOSE",1000,DEBUG);
}

String sendData(String command, const int timeout, boolean debug)
{
    String response = "";    
    mySerial.println(command); 
    long int time = millis();   
    while( (time+timeout) > millis())
    {
      while(mySerial.available())
      {       
        char c = mySerial.read(); 
        response+=c;
      }  
    }    
    if(debug)
    {
      Serial.print(response);
    }    
    return response;
}

GPRS GSM Shield (SIMCOM- SIM800F) CODE.jpg

Once uploaded to your Arduino, open up the serial console at 9600 baud speed to show the test result:
GPRS GSM Shield (SIMCOM- SIM800F) RESULT.jpg

FAQ

You can list you question here or contact with support@makerfabs.com for technology support.

Resources