资源简介

SIM800C模块,SIM800模块,gsm模块资料,手册,原理,论文,例程,stc51,stc12,stc15,stm32,Arduino。内容:1.模块使用说明,2.sim800c AT指令,3.原理图,4.参考例程(stc89,stc12,stc15,stm32,Arduino),5.调试工具,6.调试教程,7.常用资料(15篇),8.参考论文(9篇),9.设计参考库文件,10.USB转串口驱动,11.配套软件,12.动态域名申请教程,13.模块尺寸大小pcb.等。。。

资源截图

代码片段和文件信息

/*
 GSM.cpp - library for the GSM Playground - GSM Shield for Arduino
 Released under the Creative Commons Attribution-Share Alike 3.0 License
 http://www.creativecommons.org/licenses/by-sa/3.0/
 www.hwkitchen.com
*/  
#include “WProgram.h“
#include “NewSoftSerial.h“
#include “GSM_Shield.h“

extern “C“ {
  #include 
}


NewSoftSerial mySerial(4 5);  //rx tx



#ifdef DEBUG_LED_ENABLED
  int DEBUG_LED = 25;                // LED connected to digital pin 25

void  GSM::blinkDebugLED (byte num_of_blink)
  {
    byte i;

    pinMode(DEBUG_LED OUTPUT);      // sets the digital pin as output
    for (i = 0; i < num_of_blink; i++) {
      digitalWrite(DEBUG_LED HIGH);   // sets the LED on
      delay(50);
      digitalWrite(DEBUG_LED LOW);   // sets the LED off
      delay(500);
    }
  }
#endif

#ifdef DEBUG_PRINT
/**********************************************************
Two methods print out debug information to the standard output
- it means to the serial line.
First method prints string.
Second method prints integer numbers.

Note:
=====
The serial line is connected to the GSM module and is 
used for sending AT commands. There is used “trick“ that GSM
module accepts not valid AT command strings because it doesn‘t
understand them and still waits for some valid AT command.
So after all debug strings are sent we send just AT as
a valid AT command and GSM module responds by OK. So previous 
debug strings are overwritten and GSM module is not influenced
by these debug texts 


string_to_print:  pointer to the string to be print out
last_debug_print: 0 - this is not last debug info we will
                      continue with sending... so don‘t send
                      AT(see explanation above)
                  1 - we are finished with sending debug info 
                      for this time and finished AT 
                      will be sent(see explanation above)

**********************************************************/
void GSM::DebugPrint(const char *string_to_print byte last_debug_print)
{
  if (last_debug_print) {
    Serial.println(string_to_print);
    SendATCmdWaitResp(“AT“ 500 50 “OK“ 1);
  }
  else Serial.print(string_to_print);
}

void GSM::DebugPrint(int number_to_print byte last_debug_print)
{
  Serial.println(number_to_print);
  if (last_debug_print) {
    SendATCmdWaitResp(“AT“ 500 50 “OK“ 1);
  }
}
#endif

/**********************************************************
Method returns GSM library version

return val: 100 means library version 1.00
            101 means library version 1.01
**********************************************************/
int GSM::LibVer(void)
{
  return (GSM_LIB_VERSION);
}

/**********************************************************
  Constructor definition
***********************************************************/

GSM::GSM(void)
{
  // set some GSM pins as inputs some 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-07-14 23:23  1 模块使用说明\
     文件         104  2016-10-31 21:16  1 模块使用说明\使用说明.txt
     文件         588  2016-11-08 10:12  1 模块使用说明\引脚说明.txt
     目录           0  2017-07-14 23:23  10  USB转串口驱动\
     目录           0  2017-07-14 23:23  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\
     文件        6712  2005-07-30 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\CH341PT.DLL
     文件       58368  2011-11-05 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\CH341S64.SYS
     文件       19680  2007-06-12 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\CH341S98.SYS
     文件        9822  2011-11-25 07:22  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\ch341SER.CAT
     文件        5895  2011-11-04 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\CH341SER.INF
     文件       39696  2011-11-05 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\CH341SER.SYS
     文件       20089  2008-12-18 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\CH341SER.VXD
     目录           0  2017-07-14 23:23  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\DRVSETUP64\
     文件       42328  2012-02-15 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\DRVSETUP64\DRVSETUP64.exe
     文件         282  2012-10-09 17:51  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\readme.txt
     文件       83800  2012-02-15 00:00  10  USB转串口驱动\CH340驱动(USB串口驱动)_XP_WIN7共用\SETUP.EXE
     目录           0  2017-07-14 23:23  10  USB转串口驱动\HL-2303\
     文件     1669134  2005-11-26 20:25  10  USB转串口驱动\HL-2303\HL-2303.exe
     文件      135168  2005-11-26 20:25  10  USB转串口驱动\HL-2303\Remove_old_driver.exe
     文件       43136  2005-11-26 20:25  10  USB转串口驱动\HL-2303\ser2pl.sys
     文件       34332  2005-11-26 20:25  10  USB转串口驱动\HL-2303\SER9PL.sys
     文件        2280  2005-11-26 20:25  10  USB转串口驱动\HL-2303\SERSPL.INF
     文件       26719  2005-11-26 20:25  10  USB转串口驱动\HL-2303\SERSPL.VXD
     文件        8644  2005-11-26 20:25  10  USB转串口驱动\HL-2303\SERWPL.INF
     目录           0  2017-07-14 23:23  11  配套软件\
     目录           0  2017-07-14 23:23  11  配套软件\中英文字符编码查询_V1.1\
     文件       53248  2005-05-21 18:18  11  配套软件\中英文字符编码查询_V1.1\ASCII.exe
     文件         410  2005-05-21 18:36  11  配套软件\中英文字符编码查询_V1.1\ReadMe.txt
     目录           0  2017-07-14 23:23  11  配套软件\串口调试助手\
     文件        1041  2015-08-06 23:22  11  配套软件\串口调试助手\sscom.ini
     文件      772096  2010-07-28 15:21  11  配套软件\串口调试助手\sscom33.exe
............此处省略2801个文件信息

评论

共有 条评论