专家
公告
财富商城
电子网
旗下网站
首页
问题库
专栏
标签库
话题
专家
NEW
门户
发布
提问题
发文章
STM32
基于STM32L4+BC28(全网通) NBIOT开发板原理图教程源码等开...
2020-02-29 10:46
发布
×
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
站内问答
/
STM32/STM8
3995
20
20
基于STM32L4+BC28(全网通) NBIOT开发板原理图教程源码等开源分享
FCORE_BC28L4 NB-iot原理图、教程和源码
资料下载见附件,电脑登入
源码 {MOD}链接:
https://pan.baidu.com/s/18gkI9U1sVvauu_VzuUjauA
提取码:6yd2
友情提示:
此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
20条回答
mmuuss586
2020-03-02 17:26
现在进行添加自己的代码,主要为板卡自动驻网等的检查函数;使用_BC28_CMD_()函数进行对BC28模块命令的发送,使用之前配置的LPUART1串口,驻网成功和数据的发送;在使用程序测试的时候建议发送ATE命令开启命令会回音模式,这样在测试过程中就能知道测试到那一步出问题了。首先在自己添加的xxx.h文件添加命令宏定义,如下:
******************************命令宏定义*****************************
#define CMD_AT_RESET "AT+NRB "
#define CMD_AT "AT "
#define CMD_ATI "ATI "
#define CMD_CUFN_RESET "AT+CFUN=0 "
#define CMD_CUFN_ASK "AT+CFUN? "
#define CMD_CUFN_SET "AT+CFUN=1 "
#define CMD_NTSETID "AT+NTSETID=1,863703030570134 "
#define CMD_NCDP "AT+NCDP=49.4.85.232,5683 "//"AT+NCDP=117.60.157.137,5683 "
#define CMD_NCDP_ASK "AT+NCDP? "
#define CMD_CGPADDR "AT+CGPADDR "
#define CMD_SINGNALASK "AT+NUESTATS "
#define CMD_ICID "AT+CIMI "
#define CMD_ECHO "ATE "
#define CMD_DUTONET "AT+NCONFIG=AUTOCONNECT,TRUE "
#define CMD_CGDCONT "AT+CGDCONT=1,"IP","psm0.edrx0.ctnb" "
#define CMD_CGDCONT_ASK "AT+CGDCONT? "
#define CMD_NNMI_SET "AT+NNMI=1 "
#define CMD_NSMI_SET "AT+NSMI=1 "
#define CMD_NNMI_ASK "AT+NNMI? "
#define CMD_NSMI_ASK "AT+NSMI? "
#define CMD_SEND_DAT "AT+NMGS=18,980012010001123456785A2608CE00A3E1FF "
#define CMD_NBAND_ASK "AT+NBAND? "
#define CMD_NBAND_SET "AT+NBAND=5 "
#define CMD_CIMI "AT+CIMI "
#define CMD_CGATT_SET "AT+CGATT=1 "
#define CMD_CGATT_RESET "AT+CGATT=0 "
#define CMD_CGATT_ASK "AT+CGATT? "
#define CMD_CSQ "AT+CSQ "
#define CMD_CEREG_ASK "AT+CEREG? "
#define CMD_CEREG_SET "AT+CEREG=1 "
#define CMD_CSCON_ASK "AT+CSCON? "
#define CMD_CSCON_SET "AT+CSCON=1 "
#define CMD_PSM_SET "AT+CPSMS=2 "
#define CMD_EDRX_SET "AT+CEDRXS=3 "
#define CMD_send_TexT "AT+NMGS=21,9800170100010000000100000001FFFF000100FF47 "
#define DCT_SIGNALASK "Signal power"
#define DCT_RCVE "+NNMI:18,"
#define DCT_RST "Neul"
#define DCT_OK "OK"
#define DCT_MNMI_1 "+NNMI:1"
#define DCT_NSMI_1 "+NSMI:1"
#define DCT_CUFN_ASK_1 "+CFUN:1"
#define DCT_CUFN_ASK_0 "+CFUN:0"
#define DCT_CGDCONT "+CONT:1"
#define DCT_BAND5 "+NBAND:5"
#define DCT_ADCGATT1 "+CGATT:1"
#define DCT_ADCGATT0 "+CGATT:0"
#define DCT_ADCSQ "+CSQ"
#define DCT_CSCON1 "+CSCON:0,1"
#define DCT_CSCON0 "+CSCON:0,0"
#define DCT_NSONMI "+NSONMI:"
#define DCT_CEREG1 "+CEREG:0,1"
#define DCT_CEREG0 "+CEREG:0,1"
#define DCT_SOCKET_OFF "AT+NSOCL=0 "
#define DATA_IP "AT+NSOST=0,120.24.184.124,8010,%c,%s ",'8',"727394ACB8221234"
#define DATA_SOCKET "AT+NSOCR=DGRAM,17,3568,1 "
#define DATA_IP "AT+NSOST=0,120.24.184.124,8010,%c,%s ",'8',"727394ACB8221234"
#define DATA_SD_IP "AT+NSOST=0,120.24.184.124,8010"
#define DATA_SD_APN "AT+CGDCONT=1, 42IP 42, 42HUAWEI.COM 42 "
加载中...
查看其它20个回答
一周热门
更多
>
相关问题
STM32F4上I2C(在PROTEUS中模拟)调试不通的问题
6 个回答
芯片供应紧张,准备换个MCU,MM32L系列替换STM32L系列的怎么样?
7 个回答
STM32同时使用两个串口进行数据收发时数据丢包的问题
5 个回答
STM32F103串口通信死机问题
4 个回答
STM32WLE5CC连接SX1268在LoRa模式下能与 SX1278互通吗?
2 个回答
相关文章
ST公司第一款无线低功耗单片机模块有效提高物联网设计生产效率
0个评论
如何实现对单片机寄存器的访问
0个评论
通过USB用STM32片内自带Bootloader下载程序及注意事项
0个评论
欲练此功必先自宫之STM32汇编启动,放慢是为了更好的前行
0个评论
×
关闭
采纳回答
向帮助了您的知道网友说句感谢的话吧!
非常感谢!
确 认
×
关闭
编辑标签
最多设置5个标签!
STM32
保存
关闭
×
关闭
举报内容
检举类型
检举内容
检举用户
检举原因
广告推广
恶意灌水
回答内容与提问无关
抄袭答案
其他
检举说明(必填)
提交
关闭
×
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
×
付费偷看金额在0.1-10元之间
确定
×
关闭
您已邀请
0
人回答
查看邀请
擅长该话题的人
回答过该话题的人
我关注的人
******************************命令宏定义*****************************
#define CMD_AT_RESET "AT+NRB "
#define CMD_AT "AT "
#define CMD_ATI "ATI "
#define CMD_CUFN_RESET "AT+CFUN=0 "
#define CMD_CUFN_ASK "AT+CFUN? "
#define CMD_CUFN_SET "AT+CFUN=1 "
#define CMD_NTSETID "AT+NTSETID=1,863703030570134 "
#define CMD_NCDP "AT+NCDP=49.4.85.232,5683 "//"AT+NCDP=117.60.157.137,5683 "
#define CMD_NCDP_ASK "AT+NCDP? "
#define CMD_CGPADDR "AT+CGPADDR "
#define CMD_SINGNALASK "AT+NUESTATS "
#define CMD_ICID "AT+CIMI "
#define CMD_ECHO "ATE "
#define CMD_DUTONET "AT+NCONFIG=AUTOCONNECT,TRUE "
#define CMD_CGDCONT "AT+CGDCONT=1,"IP","psm0.edrx0.ctnb" "
#define CMD_CGDCONT_ASK "AT+CGDCONT? "
#define CMD_NNMI_SET "AT+NNMI=1 "
#define CMD_NSMI_SET "AT+NSMI=1 "
#define CMD_NNMI_ASK "AT+NNMI? "
#define CMD_NSMI_ASK "AT+NSMI? "
#define CMD_SEND_DAT "AT+NMGS=18,980012010001123456785A2608CE00A3E1FF "
#define CMD_NBAND_ASK "AT+NBAND? "
#define CMD_NBAND_SET "AT+NBAND=5 "
#define CMD_CIMI "AT+CIMI "
#define CMD_CGATT_SET "AT+CGATT=1 "
#define CMD_CGATT_RESET "AT+CGATT=0 "
#define CMD_CGATT_ASK "AT+CGATT? "
#define CMD_CSQ "AT+CSQ "
#define CMD_CEREG_ASK "AT+CEREG? "
#define CMD_CEREG_SET "AT+CEREG=1 "
#define CMD_CSCON_ASK "AT+CSCON? "
#define CMD_CSCON_SET "AT+CSCON=1 "
#define CMD_PSM_SET "AT+CPSMS=2 "
#define CMD_EDRX_SET "AT+CEDRXS=3 "
#define CMD_send_TexT "AT+NMGS=21,9800170100010000000100000001FFFF000100FF47 "
#define DCT_SIGNALASK "Signal power"
#define DCT_RCVE "+NNMI:18,"
#define DCT_RST "Neul"
#define DCT_OK "OK"
#define DCT_MNMI_1 "+NNMI:1"
#define DCT_NSMI_1 "+NSMI:1"
#define DCT_CUFN_ASK_1 "+CFUN:1"
#define DCT_CUFN_ASK_0 "+CFUN:0"
#define DCT_CGDCONT "+CONT:1"
#define DCT_BAND5 "+NBAND:5"
#define DCT_ADCGATT1 "+CGATT:1"
#define DCT_ADCGATT0 "+CGATT:0"
#define DCT_ADCSQ "+CSQ"
#define DCT_CSCON1 "+CSCON:0,1"
#define DCT_CSCON0 "+CSCON:0,0"
#define DCT_NSONMI "+NSONMI:"
#define DCT_CEREG1 "+CEREG:0,1"
#define DCT_CEREG0 "+CEREG:0,1"
#define DCT_SOCKET_OFF "AT+NSOCL=0 "
#define DATA_IP "AT+NSOST=0,120.24.184.124,8010,%c,%s ",'8',"727394ACB8221234"
#define DATA_SOCKET "AT+NSOCR=DGRAM,17,3568,1 "
#define DATA_IP "AT+NSOST=0,120.24.184.124,8010,%c,%s ",'8',"727394ACB8221234"
#define DATA_SD_IP "AT+NSOST=0,120.24.184.124,8010"
#define DATA_SD_APN "AT+CGDCONT=1, 42IP 42, 42HUAWEI.COM 42 "
一周热门 更多>