Quectel BC95系列模组调试小记 I

当哩个当,当哩个当,
当哩个当哩个当哩个当!
闲言碎语莫要讲,表一表模组运营商。

BC95-B5和BC95-B8是Quectel BC95系列模组中的两款,B5频段中心频率850MHz,运营商为中国电信,B8频段中心频率900MHz,运营商为中国移动和中国联通,这些我们之前在 三大主流NB-IoT模组拆解对比分析 中有所阐述,本文对两款模组进行初步的调试,为后续附网以及数据通信做准备。

1、Demo板及物联网卡


调试模组所用的Demo板PCB截图如下所示:

Demo板具体实物图如下所示,很明显左侧是BC95-B8,右侧为BC95-B5。

Demo板整体功能以BC95模组为主,两位共阴数码管配合模组显示具体参数,STM32控制相关时序,实现各部分功能并协调相互之间信息处理与显示。配合Demo调试使用的NB-IoT卡如下所示:

 

2、显示及串口通信


共阴极数码管由TM1650进行驱动,STM32则通过I2C总线与TM1650驱动芯片进行通信,调试结果如下:

数码管主要为了配合模组进行相关参数简单显示,方便后续信号强度以及距离测试等。

BC95模组相关的参数配置以及状态信息读取都是通过AT命令来实现的,故能否成功执行AT命令并返回正确结果至关重要。手动附网的相关AT命令如下所示:

配置好主串口参数后并选上加回车换行后,先用AT+NCONFIG=?查看是否开启扰码和自动连接。这个需要注意扰码的开关需要和基站一致,否则连不上。

①    AT+NCONFIG    Configure UE Behaviour

The command allows configuring certain aspects of UE behavior. It takes a function and a value that controls operation of that function.

AT+NCONFIG=AUTOCONNECT, FALSE 手动入网,TRUE自动连接。重启生效

②    AT+NRB    Reboot the Module

The command reboots the module.

③    AT+CFUN    Set Phone Functionality

The set command selects the level of functionality in the MT(Mobile Terminal). Level “full functionality” is where the highest level of power is drawn.”Minimum functionality” is where minimum power is drawn.

AT+CFUN=1    Full functionality. Enable MT to transmit and receive RF circuits for all supported radio access technologies.

④    AT+CIMI    Request International Mobile Subscriber Identity

The command returns International Mobile Subscriber Identity(string without double quotes).

AT+CIMI    查询 IMSI(International Mobile Equipment Identity)号,有即表示检测到USIM卡

⑤    AT+NBAND    Set Supported Bands

AT+NBAND?    查询Band BC95-B5的5对应的电信,8对应移动

The command sets the bands to be used.

⑥    AT+CGDCONT    Define a PDP Context

The set command specifies PDP(packet data protocol) context parameter values for a PDP context identified by <cid>, and the (local) context identification parameter.

AT+CGDCONT=1,”IP”,”ctnet”    1 指示特定的PDP上下文定义,IP代表 Internet Protocol,ctnet代表具体的APN

⑦    AT+CEREG    EPS(Evolved Packet System) Network Registration Status

The set command controls the presentation of an unsolicited result code.

AT+CEREG?    查询注网状态,1为注册上网络,2为正在找网

⑧    AT+CSCON    Signalling Connection Status

The command gives details of the terminal’s perceived radio connection status.

AT+CSCON?    查询连接状态,1为Connected,0为Idle

⑨    AT+COPS    PLMN(Public Land Mobile Network) Selection

The set command forces an attempt to select and register the GSM/UMTS/EPS network operator using the USIM card installed in the currently selected card slot.

AT+COPS=1,2,”46011″    1表示manual,2表示Numeric,”46011″ string type 460为MCC(Mobile Contrary Code)中国代号,11代表MNC(Mobile Net Code)移动网号,故46011表示中国电信(FDD-LTE)4G网络测试频道。46004表示空段以供测试用

⑩    AT+CGATT    PS(Packet Switch/Packet Service) Attach or Detach

The execution command is used to attach the MT to, or detach the MT from, the packet domain service.

AT+CGATT?    返回+CGATT:1表示附着成功,有时延时约30s

⑪    AT+CSQ    Get Signal Strength Indicator

The terminal will provide a current signal strength indicator of 0 to 255 where larger is generally better.

AT+CSQ 查询信号强度 +CSQ:22,99表示有基站信号

⑫    AT+NUESTATS    Query UE Statistics

The command fetches the most recent operational statistics.

AT+NUESTATS    查询模块状态、网络状态

2.1 BC95-B5 AT命令调试

由于电信卡尚未开通所以信号强度为99,其他相关信息如下所示:

开通网后有待进一步进行附着网络并进行数据通信

2.2 BC95-B8 AT命令调试

BC95-B8 Demo板上电后出现以下提示,如下图所示:

分析原因及解决方案验证:

1、开机时序异常?通过测量VBAT以及Reset引脚电压电压,上电后两者依次保持高电平,故满足模块开机时序。

2、串口选错?由于BC95模块存在主串口和Debug串口,AT命令相关的串口为主串口,没问题

3、模组串口上是否连接1K电阻?已连接1K电阻

4、可能的原因???

3、问题后记


后与模组技术支持联系,提供原理图分析,也不存在问题,考虑整体更换模块试试,但没有找到具体原因,心里总有个疙瘩,写完本文继续调试分析,共勉之!!

 

“Quectel BC95系列模组调试小记 I”的3个回复

  1. Can I simply say what a relief to uncover an individual who actually knows
    what they’re talking about on the internet. You actually understand
    how to bring an issue to light and make it important.
    More people really need to look at this and understand this
    side of the story. It’s surprising you aren’t more popular given that you surely possess
    the gift.

发表评论

电子邮件地址不会被公开。 必填项已用*标注