STM32f103+SIM900A-GSM模块通讯程序
该文件为基于STM32f103和SIM900A的GSM模块通讯程序,该程序内容主要功能为实现短信收发以及GPRS网络连接等,适合SIM900A初次开发。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序CORE
文件 109142 2014-07-17 21:52 STM32f103-SIM900A GSM模块测试程序COREcore_cm4.h
文件 22735 2014-07-17 21:52 STM32f103-SIM900A GSM模块测试程序COREcore_cm4_simd.h
文件 17427 2014-08-28 17:13 STM32f103-SIM900A GSM模块测试程序COREcore_cmFunc.h
文件 26854 2014-08-28 17:13 STM32f103-SIM900A GSM模块测试程序COREcore_cmInstr.h
文件 22948 2014-08-26 15:06 STM32f103-SIM900A GSM模块测试程序COREcore_cmSimd.h
文件 29605 2014-08-02 00:12 STM32f103-SIM900A GSM模块测试程序COREstartup_stm32f40_41xxx.s
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFS
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFSdoc
文件 3248 2014-01-15 00:31 STM32f103-SIM900A GSM模块测试程序FATFSdoccss_e.css
文件 3661 2014-01-15 00:31 STM32f103-SIM900A GSM模块测试程序FATFSdoccss_j.css
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFSdocen
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFSdocimg
文件 1063 2013-09-18 21:47 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp1.c
文件 1597 2013-10-18 21:41 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp2.c
文件 3811 2014-01-13 20:56 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp3.c
文件 10365 2014-01-07 15:10 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp4.c
文件 1414 2011-09-02 22:10 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf1.png
文件 1458 2007-02-10 03:12 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf2.png
文件 1039 2007-02-10 03:12 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf3.png
文件 2335 2008-01-05 20:27 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf4.png
文件 2479 2008-01-05 20:27 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf5.png
文件 1436 2010-08-21 10:13 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf6.png
文件 11388 2013-05-12 12:31 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf7.png
文件 11421 2014-02-19 22:38 STM32f103-SIM900A GSM模块测试程序FATFSdocimgfuncs.png
文件 2401 2009-03-20 21:57 STM32f103-SIM900A GSM模块测试程序FATFSdocimglayers.png
文件 2379 2009-06-13 21:48 STM32f103-SIM900A GSM模块测试程序FATFSdocimglayers3.png
文件 7932 2013-12-27 12:20 STM32f103-SIM900A GSM模块测试程序FATFSdocimgmodules.png
文件 19068 2008-10-18 19:31 STM32f103-SIM900A GSM模块测试程序FATFSdocimg
wtest.png
文件 8153 2010-09-13 10:55 STM32f103-SIM900A GSM模块测试程序FATFSdocimg
wtest2.png
............此处省略195个文件信息
/*------------------------------------------------------------/
/ Open or create a file in append mode
/------------------------------------------------------------*/
FRESULT open_append (
FIL* fp /* [OUT] File object to create */
const char* path /* [IN] File name to be opened */
)
{
FRESULT fr;
/* Opens an existing file. If not exist creates a new file. */
fr = f_open(fp path FA_WRITE | FA_OPEN_ALWAYS);
if (fr == FR_OK) {
/* Seek to end of the file to append data */
fr = f_lseek(fp f_size(fp));
if (fr != FR_OK)
f_close(fp);
}
return fr;
}
int main (void)
{
FRESULT fr;
FATFS fs;
FIL fil;
/* Open or create a log file and ready to append */
f_mount(&fs ““ 0);
fr = open_append(&fil “logfile.txt“);
if (fr != FR_OK) return 1;
/* Append a line */
f_printf(&fil “%02u/%02u/%u %2u:%02u
“ Mday Mon Year Hour Min);
/* Close the file */
f_close(&fil);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序CORE
文件 109142 2014-07-17 21:52 STM32f103-SIM900A GSM模块测试程序COREcore_cm4.h
文件 22735 2014-07-17 21:52 STM32f103-SIM900A GSM模块测试程序COREcore_cm4_simd.h
文件 17427 2014-08-28 17:13 STM32f103-SIM900A GSM模块测试程序COREcore_cmFunc.h
文件 26854 2014-08-28 17:13 STM32f103-SIM900A GSM模块测试程序COREcore_cmInstr.h
文件 22948 2014-08-26 15:06 STM32f103-SIM900A GSM模块测试程序COREcore_cmSimd.h
文件 29605 2014-08-02 00:12 STM32f103-SIM900A GSM模块测试程序COREstartup_stm32f40_41xxx.s
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFS
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFSdoc
文件 3248 2014-01-15 00:31 STM32f103-SIM900A GSM模块测试程序FATFSdoccss_e.css
文件 3661 2014-01-15 00:31 STM32f103-SIM900A GSM模块测试程序FATFSdoccss_j.css
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFSdocen
目录 0 2018-03-06 16:15 STM32f103-SIM900A GSM模块测试程序FATFSdocimg
文件 1063 2013-09-18 21:47 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp1.c
文件 1597 2013-10-18 21:41 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp2.c
文件 3811 2014-01-13 20:56 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp3.c
文件 10365 2014-01-07 15:10 STM32f103-SIM900A GSM模块测试程序FATFSdocimgapp4.c
文件 1414 2011-09-02 22:10 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf1.png
文件 1458 2007-02-10 03:12 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf2.png
文件 1039 2007-02-10 03:12 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf3.png
文件 2335 2008-01-05 20:27 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf4.png
文件 2479 2008-01-05 20:27 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf5.png
文件 1436 2010-08-21 10:13 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf6.png
文件 11388 2013-05-12 12:31 STM32f103-SIM900A GSM模块测试程序FATFSdocimgf7.png
文件 11421 2014-02-19 22:38 STM32f103-SIM900A GSM模块测试程序FATFSdocimgfuncs.png
文件 2401 2009-03-20 21:57 STM32f103-SIM900A GSM模块测试程序FATFSdocimgla
文件 2379 2009-06-13 21:48 STM32f103-SIM900A GSM模块测试程序FATFSdocimgla
文件 7932 2013-12-27 12:20 STM32f103-SIM900A GSM模块测试程序FATFSdocimgmodules.png
文件 19068 2008-10-18 19:31 STM32f103-SIM900A GSM模块测试程序FATFSdocimg
wtest.png
文件 8153 2010-09-13 10:55 STM32f103-SIM900A GSM模块测试程序FATFSdocimg
wtest2.png
............此处省略195个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)