Shiratech - NB IoT Shield For Arduino User Manual v1.01
Shiratech - NB IoT Shield For Arduino User Manual v1.01
User Manual
NB- IoT Shield for Arduino v1.01
/n
INDEX
1. Introduction 2
3. Overview 4
6. Power Supply 10
9. Connectors 14
/n
1. Introduction
Shiratech Arduino IoT Shield is an Arduino format shield hosting Quectel BG96 LTE CAT-M1/NB1 modem
enabling low power cellular connectivity.
A built in GNSS device adds location and navigation to your application. The shield enables rapid
development and prototyping of industrial grade low power IoT applications requiring cellular network
connectivity.
Arduino format connectors allow using the shield with Arduino boards and other development platforms
that use Arduino connector format.
The shield is based on the Quectel BG96 LTE CAT-M1/NB1 – An ultra-low power consumption LTE CAT-
M1/Cat-NB1/EGPRS module delivering 375Kbps downlink and 375Kbps uplink data rates.
/n
• The shield is connected to a 5V and 3.3V power feed through the J20 connector. The LT1764AEQ-
ADJ Translates the 5V input to a 3.8V voltage to feed the BG96, and the LD1117S18TR translates
the 3.3V input to 1.8V voltage.
• Quectel BG96 CAT-M1/CAT-NB1/EGPRS Module:
o The module is powered by 3.8V.
o Connected to a (u)SIM connector.
o Connected to two RF antenna jacks: Main and GNSS.
o J21 connector GPIO pins are used for the BG96 Reset and power keys, after transformation
from 3.3V to 1.8V.
• UART 1-3 debug lines are not currently utilized.
• J8 connector UART provides the communication necessary to control the BG96. The signal goes
through a transformation from 3.3V to 1.8V.
• The SIM card interface is powered and managed by the BG96.
• The BG96 USB connector is not enabled on this shield.
/n
3. Overview
Main-MMCX GNSS-MMCX
Antenna Antenna
Connector Connector
Arduino
Arduino Digital I/O 1
Power
Connector
Arduino QUECTEL
Analog/Digital BG96
Connector
Arduino
Digital I/O 2
SIM Connector
/n
These instructions assume the use of Arduino Uno as a base board. The communication with the shield is
based on the UART protocol using a baud rate of 115200 baud. This short tutorial we take us through these
main steps:
• Download a test script used to verify the Shield functionality by sending an SMS message.
• Upload the test script to the Arduino base board.
• Connect the NB-IOT shield to the Arduino base board.
• Run the test script.
To start using the NB-IOT Shield, perform the following steps:
1. Make sure your base board is not connected to the power supply, and that the NB-IOT shield is
not connected to the base board.
2. Navigate to the Shiratech Arduino IoT Shield page and download the test script to your PC:
http://www.shiratech-solutions.com/products/nb-iot-shield-for-arduino/
3. Run the Arduino IDE (may be downloaded from: https://www.arduino.cc/en/Main/software).
4. Launch the Device Manager.
5. Connect the Arduino to your PC using the USB 2.0 cable.
6. Once the Arduino has been connected to the PC, a new COM Port should appear in the device
manager under “Ports (COM & LPT)”. Note the COM Port number, as it will be needed in the
following steps.
7. To open the test script in the Arduino IDE, extract the downloaded file, open the project folder
and double click on the .ino file located in the folder.
8. Scroll down to find this line:
- Serial.write("AT+CMGS=\"+972xxxxxxxxx\"\r\n");
9. Edit the phone number in the string to the phone number which should receive the SMS.
10. Save, then click on verify, to compile your code.
/n
11. Once verification (compilation) has succeeded, click on the ‘Upload’ button, to burn the script
onto the Arduino.
Note: In order for the script to be successfully burned onto the Arduino base board, the
NB-IOT shield must be disconnected. After burning is completed, shield may be connected.
12. Disconnect the Arduino from the PC. Make sure it is disconnected from any power supply.
13. Insert a SIM Card to the shield SIM Card connector.
14. Connect the shield to the base board. If you are using an Arduino Mega base board, refer to the
location of Tx and Rx pins to be sure that the shield is connected correctly.
Note: Do not connect the power supply if you are not sure that the shield is correctly
connected! This may result in irreversible damage to the shield and/or the base board.
15. Connect the Arduino to your PC using the USB 2.0 cable. The test script should start running.
Please refer to the next chapter, “Basic Modem Operation”, for further details on the specific
AT commands being sent to the BG96.
16. Launch the Serial Monitor tool to follow the AT commands being sent through the Serial port –
make sure you have picked the same COM Port which appeared in the device manager, and
that the baud rate is 115200 baud.
/n
Reset Sequence
BG96 Reset sequence has to be performed every time that the shield is powered up, in order for the BG96
to enter a known electrical state. Before executing this sequence, there is no guarantee that the BG96 is
properly functioning and ready to execute AT commands.
The BG96’s RESET and PWRKEY lines should be activated and disactivated (HIGH/LOW) in the following
manner (the set of instructions below is taken from the BG96’s test script).
/n
Basic AT Commands
• ATI - Display Product Identification Information
This command will return the BG96 module information. It is useful to start with this command, to
make sure that connection with the modem was established.
• AT+GSN Request International Mobile Equipment Identity (IMEI)
Returns the IMEI of the module.
• AT+QPOWD
The safe and recommended way to turn off the module, logging off from the network and
switching into a safe state, waiting for power supply to be switched off.
• AT+CIMI – Request International Mobile Subscriber Identity (IMSI)
Returns the SIM card’s unique ID. This command is useful to verify that the SIM card is recognized
by the module.
• AT+CREG? – Network Registration Status
Returns information regarding the module’s registration to the network. Helpful in verifying
connection establishment before attempting further steps.
Example – SMS
The following command sequence is intended to send an SMS message using the Quectel BG96 module.
Note: The expected command feedback appears under each command.
Send SMS to the phone number. After entering this command, a prompt will appear. Enter your message
text. When done entering text, press ctrl+z to send.
• AT+CMGS=”+972xxxxxxxxx”
> This is a test message
+CMGS: 230
/n
Configure the PDP context. Note that the APN settings are operator specific.
• AT+QICSGP=1,1,"sphone.pelephone.net.il","pcl@3g","rl",1
OK
Activate context 1
• AT+QIACT=1
/n
6. Power Supply
The shield accepts 3.3V and 5V power supply. These voltages are further transformed to 3.8V and 1.8V
respectively.
/n
With a cost-effective SMT form factor of 26.5mm × 22.5mm × 2.3mm and high integration level, BG96
enables integrators and developers to easily design their applications and take advantage from the
module’s low power consumption and mechanical intensity. Its advanced LGA package allows fully
automated manufacturing for high-volume applications.
/n
/n
/n
9. Connectors
10
9
8 AREF
7 GND
3.3V_KNX 1 6 13
3.3V IOREF 2 5 12
RESET 3 4 ~11
3.3V 3.3V 4 3 ~10
Supply 3.8V/1.8V 5V 5 2 ~9
GND GND 6 1 8
GND GND 7
VIN 8 8 7
7 ~6
A0 1 6 ~5
A1 2 5 4
A2 3 4 ~3
A3 4 3 2
BG96 Reset A4 5 2 TX>1 UART0_TX
BG96 Powerkey A5 6 1 RX<0 UART0_RX
/n