Difference between revisions of "NBIOT"

From ElectroDragon
Jump to navigation Jump to search
(Basic)
(Basic)
 
(8 intermediate revisions by the same user not shown)
Line 69: Line 69:
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
! CMD !! Description !! Response
+
! CMD !! !! Description !! Response
 
|-
 
|-
 
| AT || - || OK
 
| AT || - || OK
 
|-
 
|-
| AT+CMEE=1 || /* Use AT+CMEE=1 to enable result code and use numeric values */ || OK
+
| AT+CMEE=1 ||  || /* Use AT+CMEE=1 to enable result code and use numeric values */ || OK
 
|-
 
|-
| AT+CGMI || /* Use AT+CGMI to get Manufacturer ID  of module information */ || Quectel
+
| AT+CGMI ||  || /* Use AT+CGMI to get Manufacturer ID  of module information */ || Quectel
 
|-
 
|-
| AT+CGMM || /* Use AT+CGMM to get Device module of module information */ || BC95HB-02-STD_850
+
| AT+CGMM ||  || /* Use AT+CGMM to get Device module of module information */ || BC95HB-02-STD_850
 
|-
 
|-
| AT+CGMR ||  /* Use AT+CGMR to get Firmware version of module information */ ||  
+
| AT+CGMR ||  ||  /* Use AT+CGMR to get Firmware version of module information */ ||  
 
*  SECURITY,V100R100C10B657SP2
 
*  SECURITY,V100R100C10B657SP2
 
*  PROTOCOL,V100R100C10B657SP2
 
*  PROTOCOL,V100R100C10B657SP2
Line 87: Line 87:
 
*  RADIO,BC95HB-02-STD_850
 
*  RADIO,BC95HB-02-STD_850
 
|-
 
|-
| AT+NBAND? ||  /* Query module support Bands */ || +NBAND:5
+
| AT+NBAND? ||  ||  /* Query module support Bands */ || +NBAND:5
 
+
|-
|}
+
| AT+QBAND? || BC26 ||  /* Query module support Bands */ || +QBAND: 1,3,5,8,20
 
+
|-
 
+
| AT+NCONFIG? ||  ||  /* Query the user configuration */ ||
* /* Query the user configuration */
 
AT+NCONFIG?
 
*
 
 
*  +NCONFIG:AUTOCONNECT,TRUE
 
*  +NCONFIG:AUTOCONNECT,TRUE
 
*  +NCONFIG:CR_0354_0338_SCRAMBLING,TRUE
 
*  +NCONFIG:CR_0354_0338_SCRAMBLING,TRUE
Line 101: Line 98:
 
*  +NCONFIG:CELL_RESELECTION,FALSE
 
*  +NCONFIG:CELL_RESELECTION,FALSE
 
*  +NCONFIG:ENABLE_BIP,FALSE
 
*  +NCONFIG:ENABLE_BIP,FALSE
+
|-
*  OK
+
| AT+CGSN=1 || ||  /* Use AT+CGSN=1 to query the IMEI of module */ || +CGSN:863703036601529
* /* Use AT+CGSN=1 to query the IMEI of module */
+
|-
*  AT+CGSN=1
+
| AT+CFUN=1 || || /* Use AT+CFUN=1 to open Full functionality*/ || OK
+
|-
+CGSN:863703036601529
+
| AT+CIMI || || /* Use AT+CIMI to query the IMSI */ || 460111176277368
+
|-
*  OK
+
| AT+CGATT=1; AT+CGATT? || ||  
* /* Use AT+CFUN=1 to open Full functionality*/
+
* /* User "AT+CGATT=1"to activate context profile */  
AT+CFUN=1
+
* /* Query the status of the context profile,You may have to wait for several seconds */
+
|| OK; +CGATT:1
*  OK
+
|-
* /* Use AT+CIMI to query the IMSI */
+
| AT+CSQ || || /* Use AT+CSQ to query current signal quality */ || +CSQ:26,99
AT+CIMI
+
|-
*  
+
| AT+COPS? || || /* Use AT+COPS? to query current Network Operator */ || +COPS:0,2,"46011"
* 460111176277368
+
|-
*
+
| AT+CEREG? || || /*Use AT+CEREG? to query current EPS Network Registration Status*/ || +CEREG:0,1
*  OK
+
|-
/* User "AT+CGATT=1"to activate context profile */
+
| AT+NUESTATS || BC95 || /*  Fetches the most recent operational statistics */ ||
* AT+CGATT=1
 
 
*  OK
 
/* Query the status of the context profile,You may have to wait for several seconds */
 
*  AT+CGATT?
 
 
+CGATT:1
 
 
*  OK
 
* /* Use AT+CSQ to query current signal quality */
 
*  AT+CSQ
 
 
+CSQ:26,99
 
 
* OK
 
* /* Use AT+COPS? to query current Network Operator */
 
*  AT+COPS?
 
 
+COPS:0,2,"46011"
 
 
* OK
 
* /*Use AT+CEREG? to query current EPS Network Registration Status*/
 
*  AT+CEREG?
 
 
+CEREG:0,1
 
 
*  OK
 
* /*  Fetches the most recent operational statistics */
 
*  AT+NUESTATS
 
 
 
*  Signal power:-708
 
*  Signal power:-708
 
*  Total power:-612
 
*  Total power:-612
Line 161: Line 128:
 
*  PCI:267
 
*  PCI:267
 
*  RSRQ:-112
 
*  RSRQ:-112
 +
|-
 +
| AT+CSCON? || ||  Query the signal connection status, 1 means “Connected”, 0 means “Idle". ||  +CSCON:0,1
 +
|-
 +
| AT+CPIN? || BC20 ||  Sim card check ||  +CPIN: READY
 +
|-
 +
| AT+QCCID || BC20 ||  USIM Card Identification  ||  +QCCID: 89860411101871144906
 +
|-
 +
| AT+CGPADDR=1 || BC26 || show PDN IP address || +CGPADDR: 1,10.5.29.27
 +
|-
 +
| AT+QSOC=1,1,1 || BC26 || Create a TCP/UDP Socket, 1_1st IPv4, 1_2nd = TCP/UDP, 1_3rd = IP || +QSOC=1
 +
|-
 +
| AT+QSOCON=1, 8100,"167.88.114.101" || BC26 || Create connection to socket ID=1, remote 8100 port,  IP address 167.88.114.101  || OK
 +
|-
 +
| AT+QSOSEND=1,5,1234562112 || BC26 || send connection, check at http://iot.electrodragon.com/tcp/ || OK
 +
|-
 +
|
 +
* AT+QSODIS=0
 +
* AT+QSOCL=0
 +
|| BC26 || close connection || OK
 +
|-
 +
| AT+QPING=167.88.114.101 || BC26 || ping remote IP address || NA
 +
|}
  
==== Network ====
+
==== Commands of GNSS BC20 ====
* AT+NBAND? //Query the band
 
* +NBAND:8
 
* OK
 
*
 
* AT+CFUN? //Value is 1.
 
* +CFUN:1
 
* OK
 
*
 
* AT+CIMI //Query the IMSI number.
 
* 460012345678969
 
* OK
 
*
 
* AT+CSQ //Query the signal strength.
 
* +CSQ:21,99
 
* OK
 
*
 
* AT+NUESTATS //Query the module status.
 
* Signal power:-663
 
* Total power:-632
 
* TX power:-35
 
* TX time:1572
 
* RX time:17847
 
* Cell ID:27447553
 
* DL MCS:0
 
* UL MCS:0
 
* DCI MCS:2
 
* ECL:0
 
* SNR:290
 
* EARFCN:3701
 
* PCI:37
 
* RSRQ:-108
 
* OK
 
*
 
* AT+CGATT? //Query whether network is activated, +CGATT:1 means activated successfully,
 
* sometimes customers need to wait for 30s.
 
* +CGATT:1
 
* OK
 
*
 
* AT+CEREG? //Query the network registration status, 1 means registered on network, 2 means
 
* searching the network.
 
* +CEREG:0,1
 
* OK
 
*
 
* AT+CSCON? //Query the signal connection status, 1 means “Connected”, 0 means “Idle”.
 
* +CSCON:0,1
 
* OK
 
=== BC20 ===
 
==== Basic test ====
 
AT
 
OK
 
+IP: 10.4.200.137
 
AT+CSQ=?
 
+CSQ: (0-31,99),(0-7,99)
 
OK
 
AT+CSQ
 
+CSQ: 15,0
 
OK
 
AT+CPIN?
 
+CPIN: READY
 
OK
 
AT+CEREG?
 
+CEREG: 0,1
 
OK
 
AT+QCCID
 
+QCCID: 89860411101871144906
 
OK
 
AT+CGSN=1
 
+CGSN: 862177040020839
 
OK
 
==== Commands of GNSS ====
 
 
AT+QGNSSRD=?  
 
AT+QGNSSRD=?  
 
  ERROR
 
  ERROR

Latest revision as of 04:15, 10 July 2019

Weak Points of BC95

  • BC95-B5, BC95-B8, BC95-20, etc are only working on specific brand as its suffix.
  • Complex package up to 95 pins but only 28 pins used, the rest are reserved. SIM7020E has simple package as SIM800C
  • So far netlight LED does not work (21th June 2018)

SCH

BC95

Quectel

BC35

BC95

SPECS

Header text Band LTE Area
BC95-B20 B20 Europe CE/GCF
BC95-B8 B8 China, Europe, Australia CCC/SRRC/NAL
BC95-B5 B5 China-Electrodragon, Korea CCC/SRRC/NAL
BC95-B28 B28 South America TBD
BC95-G B1/B3/B5/B8/B20/B28 @FDD-LTE (TBD) Global TBD

Other Features

  • Package Type LCC
  • Number of pins 94
  • Supply voltage 3.1V~4.2V, typical value: 3.8V
  • Working temperature -40°C ~ +85°C
  • Module size 19.9 × 23.6 × 2.2mm
  • Module weight 1.6g
  • AT Command Controls 3GPP Rel-13 and Enhanced AT Commands
  • Download Method UART, Over the Air*
  • SIM Application Toolkit
  • Data Transmission 100bps<bit rate<100kbps (TBC)
  • Protocol stack

  IPV4/IPV6*   UDP/COAP

  • SMS*

  Point to point messaging   Text/PDU mode

  • Output power 23dBm
  • Sensitivity -129dBm
  • Power consumption
Sleep: 5uA
Idle: 6mA
  • interface

  SIM/USIM card × 1   UART × 2   ADC* × 1   RESET × 1   Antenna × 1

AT Commands

  • Debug and upgrade baudrate of main uart port is 115200, at commands at 9600
  • Set up please see an image here.
Basic
CMD Description Response
AT - OK
AT+CMEE=1 /* Use AT+CMEE=1 to enable result code and use numeric values */ OK
AT+CGMI /* Use AT+CGMI to get Manufacturer ID of module information */ Quectel
AT+CGMM /* Use AT+CGMM to get Device module of module information */ BC95HB-02-STD_850
AT+CGMR /* Use AT+CGMR to get Firmware version of module information */
  • SECURITY,V100R100C10B657SP2
  • PROTOCOL,V100R100C10B657SP2
  • APPLICATION,V100R100C10B657SP2
  • SEC_UPDATER,V100R100C10B657SP2
  • APP_UPDATER,V100R100C10B657SP2
  • RADIO,BC95HB-02-STD_850
AT+NBAND? /* Query module support Bands */ +NBAND:5
AT+QBAND? BC26 /* Query module support Bands */ +QBAND: 1,3,5,8,20
AT+NCONFIG? /* Query the user configuration */
  • +NCONFIG:AUTOCONNECT,TRUE
  • +NCONFIG:CR_0354_0338_SCRAMBLING,TRUE
  • +NCONFIG:CR_0859_SI_AVOID,TRUE
  • +NCONFIG:COMBINE_ATTACH,FALSE
  • +NCONFIG:CELL_RESELECTION,FALSE
  • +NCONFIG:ENABLE_BIP,FALSE
AT+CGSN=1 /* Use AT+CGSN=1 to query the IMEI of module */ +CGSN:863703036601529
AT+CFUN=1 /* Use AT+CFUN=1 to open Full functionality*/ OK
AT+CIMI /* Use AT+CIMI to query the IMSI */ 460111176277368
AT+CGATT=1; AT+CGATT?
  • /* User "AT+CGATT=1"to activate context profile */
  • /* Query the status of the context profile,You may have to wait for several seconds */
OK; +CGATT:1
AT+CSQ /* Use AT+CSQ to query current signal quality */ +CSQ:26,99
AT+COPS? /* Use AT+COPS? to query current Network Operator */ +COPS:0,2,"46011"
AT+CEREG? /*Use AT+CEREG? to query current EPS Network Registration Status*/ +CEREG:0,1
AT+NUESTATS BC95 /* Fetches the most recent operational statistics */
  • Signal power:-708
  • Total power:-612
  • TX power:-30
  • TX time:1170
  • RX time:23583
  • Cell ID:126336593
  • ECL:1
  • SNR:81
  • EARFCN:2506
  • PCI:267
  • RSRQ:-112
AT+CSCON? Query the signal connection status, 1 means “Connected”, 0 means “Idle". +CSCON:0,1
AT+CPIN? BC20 Sim card check +CPIN: READY
AT+QCCID BC20 USIM Card Identification +QCCID: 89860411101871144906
AT+CGPADDR=1 BC26 show PDN IP address +CGPADDR: 1,10.5.29.27
AT+QSOC=1,1,1 BC26 Create a TCP/UDP Socket, 1_1st IPv4, 1_2nd = TCP/UDP, 1_3rd = IP +QSOC=1
AT+QSOCON=1, 8100,"167.88.114.101" BC26 Create connection to socket ID=1, remote 8100 port, IP address 167.88.114.101 OK
AT+QSOSEND=1,5,1234562112 BC26 send connection, check at http://iot.electrodragon.com/tcp/ OK
  • AT+QSODIS=0
  • AT+QSOCL=0
BC26 close connection OK
AT+QPING=167.88.114.101 BC26 ping remote IP address NA

Commands of GNSS BC20

AT+QGNSSRD=?

ERROR

AT+QGNSSRD=?

+QGNSSRD: "item list"
OK

AT+QGNSSRD?

+CME ERROR: 7103

AT+QGNSSRD=NMEA/GGA

+CME ERROR: 7103

AT+QGNSSRD="NMEA/GGA"

+CME ERROR: 7103

AT+QGNSSC=1

OK

AT+QGNSSRD?

ERROR

AT+QGNSSRD="NMEA/GGA"

+QGNSSRD: $GNGGA,,,,,,0,00,99.99,,,,,,*56
OK

AT+QGNSSRD="NMEA/GGA"

+QGNSSRD: $GNGGA,103757.97,,,,,0,00,99.99,,,,,,*71
OK

AT+QGNSSRD="NMEA/GGA"

+QGNSSRD: $GNGGA,103920.00,2234.2756,N,11353.2491,E,1,08,27.54,-4.3,M,,M,,*49
OK

SIM7020E

AT Commands

Testing Record for Reference

Basic

  • AT+CPIN? // check if sim card avaialble
  • AT+CSQ // +CSQ: 5,0 // correct in 0-98, incorrect 99
  • AT+CREG? //+CREG: 0,6 // 6 indicate the stats registered, please refer to datasheet
  • AT+COPS? // +COPS: 0,2,"46000",9 // last word 9 indicate nbiot network registered
<netact> 
0 User-specified GSM access technology
8 User-specified LTE M1 A GB access technology
9 User-specified LTE NB S1 access technology
  • AT+CGATT? // +CGATT: 1 // network attached status
Basic Test: e.g. AT+IPR=? Read, e.g. AT+IPR? Write, e.g. AT+IPR=9600
Baudrate - AT+IPR -
  • +IPR: 9600
  • OK
-
AT+CBAND
  • +CBAND: (1,3,5,8,20,28)
  • OK
- -
AT+CENG
  • +CENG: (0-1)
  • OK
  • +CENG: 3738,2,402,"0D1C1E41",-75,-5,-70,14,8,"1D26",0,
  • +CENG: 3738,2,146,-89
  • +CENG: 3738,2,1,-88
  • OK
-
AT+GSV
* SIMCOM_Ltd
*  SIM7020E
*  Revision:1752B03SIM7020E
*  OK

Ping, DNS

Commands Feedback
AT+CIPPING="192.168.1.1", 4, 32, 100
* OK
*  +CIPPING: 1,192.168.1.1,7,250
*  +CIPPING: 2,192.168.1.1,8,250
*  +CIPPING: 3,192.168.1.1,3,250
*  +CIPPING: 4,192.168.1.1,3,250
AT+CDNSGIP=www.baidu.com
  • +CDNSGIP: 111.13.100.92
  • OK
AT+CIPPING="111.13.100.92",4,32,100
  • OK
  • +CIPPING: 1,111.13.100.92,4,54
  • +CIPPING: 2,111.13.100.92,3,54
  • +CIPPING: 3,111.13.100.92,3,54
  • +CIPPING: 4,111.13.100.92,3,54

TCPIP

  • AT+CSOC=1,1,1
  • +CSOC: 0
  • OK
  • AT+CGACT?
+CGACT: 1,1
  • AT+CGACT=?
  • +CGACT: (0-1)
  • OK
  • AT+CGACT?
  • +CGACT: 1,1
  • +CGACT: 2,0
  • OK
  • AT+CSGACT=1,1,"3GNET"
  • OK
  • +CSGACT: 2,0



MQTT

Commands List Return Note
AT+CMQNEW?
  • +CMQNEW: 0,0,null
  • +CMQNEW: 1,0,null
  • +CMQNEW: 2,0,null
  • +CMQNEW: 3,0,null
  • +CMQNEW: 4,0,null
  • OK
Check connections
AT+CMQNEW="167.88.114.101","1883",6000,32,1
  • +CMQNEW: 0
  • OK
make connection, our server iot.electrodragon.com
AT+CMQCON=0,3,"client_id",10,0,0 OK connect to "client_id"?
AT+CMQSUB=0,"client_id",0 OK subscribe to "client_id"
AT+CMQPUB=0,"client_id",0,0,0,5,"HE" ERROR publish to "client_id" but 5 is error length for "HE" data buff
AT+CMQPUB=0,"client_id",0,0,0,2,"HE"
  • OK
  • +CMQPUB: 0, "client_id?�����鵋�� €
  • �滃��", 0, 0, 0, 0, ""
seems sent properly
AT+CMQNEW?
  • +CMQNEW: 0,1,167.88.114.101
  • +CMQNEW: 1,0,null
  • +CMQNEW: 2,0,null
  • +CMQNEW: 3,0,null
  • +CMQNEW: 4,0,null
  • OK
check connections

References

  • Tested working countries: Finland, Sweden

Other Options

  • BC28

Other reference

Documents

BC95

More documents, firmware update tools please see this page DL