Difference between revisions of "Microduino-GPRS/GSM"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language | Microduino-GPRS/GSM}} {| style="width: 800px;" |- | 400px|thumb|right|Microduino-USBHOST Microduino GPRS/GSM module plug in the...")
 
(Development)
 
(16 intermediate revisions by 4 users not shown)
Line 5: Line 5:
 
[[File:Microduino-GPRS-rect.jpg|400px|thumb|right|Microduino-USBHOST]]
 
[[File:Microduino-GPRS-rect.jpg|400px|thumb|right|Microduino-USBHOST]]
  
Microduino GPRS/GSM module plug in the SIM card and use some simple instructions to make Microduino core board connected to the Internet, and then send, receive text messages.
+
Microduino-GPRS/GSM module can get Microduino core board connected to the internet and achieve the function of sending and receiving messages when it is just inserted with a SIM card and follows some simple instructions.  
  
 
==Features==
 
==Features==
*ESD protection;
+
*ESD protection;
*Uses USB powered or lithium battery solution;
+
*Capable of being charged by USB, li-ion or other power supply options;
*Supports automatic baud rate detection;
+
*Support automatic baud rate detection function;
*Sends AT command and date via serial;
+
*Capable of sending AT instructions and data through the serial port;
*Small, cheap, stackable, opened platfrom;
+
*Small, cheap, stackable and open;
*Open source hardware circuit design, compatible with the Arduino IDE development environment for programming;
+
*Open hardware circuit design and Arduino compatible programming development environment;
*Define unified interface Microduino specification and contain rich peripheral modules. Set up the quick connection with other Microduino modules and sensors easily and flexibly.
+
*Uniform Microduino interface standard and rich peripheral modules, capable of having a fast and flexible connection and extension with other modules and sensors in accord with Microduino interface standard;
*2.54 pitch row female connector for easy integration into breadboard.
+
*Easy to be integrated to pegboards with a 2.45-pitch female header connector interface.
  
 
==Specifications==
 
==Specifications==
  
Uses SIM800L module to support four bands GSM/GPRS, working band is:GSM850、EGSM900、DCS1800 and PCS1900MHz.
+
Adopt SIM800L module to support four-band GSM/GPRS, whose working band is:GSM850, EGSM900, DCS1800 and PCS1900MHz.
  
 
*Electrical characteristics
 
*Electrical characteristics
 
**Working voltage:3.4V ~4.4V;
 
**Working voltage:3.4V ~4.4V;
**Under Sleep mode, current consumption is 0.7 mA
+
**The current consumption is 0.7 mA under the Sleep Mode
  
 
*GPRS data
 
*GPRS data
**GPRS data transfer up to 85.6 kbps;;
+
**The maximum data transmission rate of GPRS is 85.6 kbps;;
 
**Build-in TCP/IP protocol;
 
**Build-in TCP/IP protocol;
 
**Encoding format:CS-1, CS-2, CS-3 and CS-4;
 
**Encoding format:CS-1, CS-2, CS-3 and CS-4;
 
**Support Unstructured Supplementary Service Data (USSD)
 
**Support Unstructured Supplementary Service Data (USSD)
  
*Serial debug
+
*Serial debugging
**Supports standard full-function serial, and transmission rate from 1200bps to 115200bps;
+
**Support standard full-function serial as well as the transmission rate with a range from 1200bps to 115200bps;
**Supports GSM 07.10 protocol serial multiplexing function;
+
**Support the serial port multiplexing function complying with GSM 07.10 protocol;
  
*Two Main Compoments:
+
*Two Main Components:
 
**SIM800L module
 
**SIM800L module
 
[[file:Microduino-SIM800L-Pinout1.jpg|800px|thumb|center|Microduino-SIM800L-Pinout]]
 
[[file:Microduino-SIM800L-Pinout1.jpg|800px|thumb|center|Microduino-SIM800L-Pinout]]
Line 45: Line 45:
 
==Document==
 
==Document==
 
*Eagle PCB: '''[[File:Microduino-GSM.zip]]'''
 
*Eagle PCB: '''[[File:Microduino-GSM.zip]]'''
* Microduino-GSM mudule SIM800L:'''[[File:SIM800L.pdf]]'''
+
* Microduino-GSM module SIM800L:'''[[File:SIM800L.pdf]]'''
*SIM card base plant:'''[[File:SIM800L.pdf]]'''
+
*Microduino-GSM Module TCPIP Protocol AT Instruction Manual:'''[[File:Microduino-GSM-AT.pdf]]'''
 +
*SIM card base:'''[[File:SIM800L.pdf]]'''
  
 
==Development==
 
==Development==
You can use GSM library to test, https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/GSM
+
You can use GSM library to test, https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_03_Microduino_GSM_SIM800L
  
'''Note:This library only supports Microduino-core.'''
+
==Application==
 +
Send short messages using the example program.
 +
===Preparation===
 +
*Hardware:Microduino FT232R, Microduino Core, Microduino GSM, USB cable or lithium battery;
 +
*Software: GSM library, Arduino IDE (version 1.0.3 and higher);
 +
*Uncompressed the zip folder to libraries of Arduino IDE;
 +
*Connect the Microduino FT232R and PC using USB cable to download program and monitor the serial port;
 +
*USB cable or li-ion battery to charge the Microduino GSM module and press the power button for a long time to activate Microduino GSM for about 4 seconds. That the power-on indicator goes on shows a successful start.
 +
 
 +
===Debugging===
 +
*Download the test program:'''[https://github.com/Microduino/Microduino_Tutorials/blob/25a821ba8894fb02d4b1560c9912450cc353b875/Microduino_Texting/Microduino_GPRS_GSM_text/Microduino_GPRS_GSM_text.ino Github Download]'''
 +
*Open the test program, and then you need double check the following parameter:
 +
**“#define NUM "13667928xxx"”:Need change to the number that receive message.
 +
**“#define SMS_CEN "13010720xxx"”:Your message center for you own mobile phone number, you can find it in your phone. It isn't the necessary. If hit an issue during send a message, you can try it.
 +
*Compile the program, select the board type "Microduino Core+ (Atmega644P@16M,5V)", download directly:
 +
*Open the serial monitor, set the baud rate is 9600:
 +
**Input "t", to send the message "wiki.microduino.cc";
 +
**Input "d", you can make a call, but can't finish a normal call, because no the speaker and microphone;
 +
**Input "h", you can submit a HTTP request to get some data from network;
 +
**Input "s", you can send the sensor data to network.
  
==Application==
+
*If using Microduino-Core to debug, you need the soft serial port(TX1, RX1)
Send the text message using library's example program.
+
*If you use the Microduino Core to debug, must use the Software Serail (TX1,RX1)
===Prepare Work===
+
**Use the Software Serial library
*Prepared hardware:Microduino FT232R, Microduino Core, Microduino GSM, USB cable or lithium battery;
+
<source lang="cpp">
*Prepared software: GSM library, Arduino IDE (1.0.3 release and upper)
+
#include <SoftwareSerial.h>
*Uncompress the zip folder to libraries of Arduino IDE;
 
*Connect the Microduino FT232R and PC using USB cable to download program and serial monitor;
 
*USB data cable or lithium battery to power Microduino GSM module and press the power button to make Microduino GSM boot, about maintaining 4S, turn on lights to indicate a successful boot.
 
  
 +
SoftwareSerial mySerial(2, 3); // RX, TX
 +
</source>
 +
**Change the Serial1 to mySerial, it should be ok。
  
===Debug===
+
*If you use the Microduino CoreUSB to debug, you only need to change the serial to serial 0 (TX0,RX0).
*Open the example program SendSMS from examples folder;
+
[[file:Microduino-SIM800L-Pinout2.jpg|800px|thumb|center|Microduino-SIM800L-Pinout]]
*After compiled, select the board "Microduino Core (Atmega328P@16M,5V)", download directly;
 
**Opne the serial monitor, set the baud rate, and set to the line and press enter, will print "SMS Messages Sender";
 
**Input is completed, press enter, it will prompt you to input the sent content,
 
**Input is completed, press enter, you can see the text message sending progress. After completed, displays "COMPLETE!".
 
  
 +
==FAQ==
 +
*Can this module be used to make a voice call? Is a pin available for voice?
 +
**This module can’t be used to make a voice call, because it doesn’t have the required pin.
 +
*Does this module work with Core+ module?
 +
**Yes.
 +
*Does this module use Arduino GSM library?
 +
**Yes.
 +
*Does this module work with 3G?
 +
**No, it only supports GPRS and GSM.
 +
*How is this module powered?
 +
**There are two methods:
 +
***Using the USB port attached to the module with a 5V, 1A power supply (Voltage 5V, Amperage 1A)
 +
***Using a 3.7V Li-ion battery attached to the module
 +
'''The BM module can power the Core module and other modules, such as the 10DOF. However, use of the BM module to power the GPRS/GSM module is not suggested due to its significant power consumption.''
  
==Bug==
+
==Purchase==
  
 
==History==
 
==History==

Latest revision as of 17:10, 5 January 2015

Language: English  • 中文
Microduino-USBHOST

Microduino-GPRS/GSM module can get Microduino core board connected to the internet and achieve the function of sending and receiving messages when it is just inserted with a SIM card and follows some simple instructions.

Features

  • ESD protection;
  • Capable of being charged by USB, li-ion or other power supply options;
  • Support automatic baud rate detection function;
  • Capable of sending AT instructions and data through the serial port;
  • Small, cheap, stackable and open;
  • Open hardware circuit design and Arduino compatible programming development environment;
  • Uniform Microduino interface standard and rich peripheral modules, capable of having a fast and flexible connection and extension with other modules and sensors in accord with Microduino interface standard;
  • Easy to be integrated to pegboards with a 2.45-pitch female header connector interface.

Specifications

Adopt SIM800L module to support four-band GSM/GPRS, whose working band is:GSM850, EGSM900, DCS1800 and PCS1900MHz.

  • Electrical characteristics
    • Working voltage:3.4V ~4.4V;
    • The current consumption is 0.7 mA under the Sleep Mode
  • GPRS data
    • The maximum data transmission rate of GPRS is 85.6 kbps;;
    • Build-in TCP/IP protocol;
    • Encoding format:CS-1, CS-2, CS-3 and CS-4;
    • Support Unstructured Supplementary Service Data (USSD)
  • Serial debugging
    • Support standard full-function serial as well as the transmission rate with a range from 1200bps to 115200bps;
    • Support the serial port multiplexing function complying with GSM 07.10 protocol;
  • Two Main Components:
    • SIM800L module
Microduino-SIM800L-Pinout
Microduino-SIM800L-Pinout
    • SIM card power and base plant
Microduino-SIM-Pinout
Microduino-SIM-Pinout

Document

Development

You can use GSM library to test, https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_03_Microduino_GSM_SIM800L

Application

Send short messages using the example program.

Preparation

  • Hardware:Microduino FT232R, Microduino Core, Microduino GSM, USB cable or lithium battery;
  • Software: GSM library, Arduino IDE (version 1.0.3 and higher);
  • Uncompressed the zip folder to libraries of Arduino IDE;
  • Connect the Microduino FT232R and PC using USB cable to download program and monitor the serial port;
  • USB cable or li-ion battery to charge the Microduino GSM module and press the power button for a long time to activate Microduino GSM for about 4 seconds. That the power-on indicator goes on shows a successful start.

Debugging

  • Download the test program:Github Download
  • Open the test program, and then you need double check the following parameter:
    • “#define NUM "13667928xxx"”:Need change to the number that receive message.
    • “#define SMS_CEN "13010720xxx"”:Your message center for you own mobile phone number, you can find it in your phone. It isn't the necessary. If hit an issue during send a message, you can try it.
  • Compile the program, select the board type "Microduino Core+ (Atmega644P@16M,5V)", download directly:
  • Open the serial monitor, set the baud rate is 9600:
    • Input "t", to send the message "wiki.microduino.cc";
    • Input "d", you can make a call, but can't finish a normal call, because no the speaker and microphone;
    • Input "h", you can submit a HTTP request to get some data from network;
    • Input "s", you can send the sensor data to network.
  • If using Microduino-Core to debug, you need the soft serial port(TX1, RX1)
  • If you use the Microduino Core to debug, must use the Software Serail (TX1,RX1)
    • Use the Software Serial library
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX
    • Change the Serial1 to mySerial, it should be ok。
  • If you use the Microduino CoreUSB to debug, you only need to change the serial to serial 0 (TX0,RX0).
Microduino-SIM800L-Pinout

FAQ

  • Can this module be used to make a voice call? Is a pin available for voice?
    • This module can’t be used to make a voice call, because it doesn’t have the required pin.
  • Does this module work with Core+ module?
    • Yes.
  • Does this module use Arduino GSM library?
    • Yes.
  • Does this module work with 3G?
    • No, it only supports GPRS and GSM.
  • How is this module powered?
    • There are two methods:
      • Using the USB port attached to the module with a 5V, 1A power supply (Voltage 5V, Amperage 1A)
      • Using a 3.7V Li-ion battery attached to the module

'The BM module can power the Core module and other modules, such as the 10DOF. However, use of the BM module to power the GPRS/GSM module is not suggested due to its significant power consumption.

Purchase

History

Picture

Microduino-GPRS/GSM Front
Microduino-GPRS/GSM Front
Microduino-GPRS/GSM Front
Microduino-GPRS/GSM Front

Video