BG95全部是LGA封装。我用的是BG95-M2。以下皆以此为例。顺带一说,BC39也带GPS,是华为海思的,已停产20220825。
因为BG95-M2没有自动控制GNSS的电源引脚,所以要有一路IO口控制。
BG95-M2的PWRKEY和RESET_N是内部连接在一起的。所以只需要一路控制就行。
默认1.5V,拉低500–1000 ms唤醒模块
BG95-M2的串口是1.8V,所以要做电平转换。
输出提示RI,和睡眠唤醒96脚。有做,但不一定用得上。
低功耗睡眠PSM模式。唤醒可以通过96脚,也可以通过POWERKEY。
RDY
APP RDY
AT+CGMM
BG95-M2
OK
AT+IPR=9600;&W
OK
AT
OK
AT+QCCID
+QCCID: 12345678912345678912
OK
AT+CGSN
123456789123456
OK
AT+QCFG="iotopmode",1
OK
ATE0;&W
OK
AT+QCCID
+QCCID: 12345678912345678912
OK
AT+CFUN?
+CFUN: 1
OK
AT+CSQ
+CSQ: 22,99
OK
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,"000.111.222.333"
OK
AT+CGSN
123456789123456
OK
AT+QISDE=0
OK
AT+QIOPEN=1,2,"UDP","111.222.333.44",3107,0,0
OK
+QIOPEN: 2,0
AT+CSQ
+CSQ: 22,99
OK
AT+QISTATE?
+QISTATE: 2,"UDP","111.222.333.44",3107,0,2,1,2,0,"uart1"
OK
AT+QISEND=2,93
> 獤 "\0\0\0\0\0\0I\0\0\0\0\0\0\0\0\0=\0\0\0gg!86062306200525989860422151940017930\0\0\0\0\0\0\0\0\0\0\06\0+DUi
SEND OK
+QIURC: "recv",2
AT+QIRD=2,1500
+QIRD: 22
獤 "\0\0\0\0\0\0\0\0夰Ui
OK
AT+CPSMS=1
OK
+QIURC: "pdpdeact",1
PSM POWER DOWN
AT+QGPS=1
OK
AT+QGPSLOC?
+CME ERROR: 516
AT+QGPSLOC?
+QGPSLOC: 091914.000,1234.5678N,12345.6789E,1.3,72.0,3,0.00,0.0,0.0,240822,02
OK
AT+QGPSEND
OK
我用的卡是移动NB,APN是CMNBIOT2,下面这个时间是60s。是卡商配错了。
移动NB的APN知识汇总(及时补充)
AT+CEREG=4
OK
AT+CEREG?
+CEREG: 4,1,"1D3F","A979A05",9,,,"00011110","10111110"
OK
锁NB
AT+QCFG=“nwscanmode”,3
AT+QCFG=“iotopmode”,1
锁CATM
AT+QCFG=“nwscanmode”,3
AT+QCFG=“iotopmode”,0
锁gsm
AT+QCFG=“nwscanmode”,1
自动模式
AT+QCFG=“nwscanmode”,0