NB IoT Click Board
NB IoT Click Board
The NB IoT Click Board™ allows LTE Cat NB1 connectivity by utilizing Quectel BC95-G, a specialised multi-band IoT module with very low power requirements and compact form factor, making it perfectly suited for various IoT-based applications. This module is an embedded IoT communication solution which supports several NB frequency bands, offering an alternative to similar Low Power Wide Area Network (LPWAN) solutions, such as those offered by Sigfox and LoRa. Its most important advantage is the ability to use already widely established cellular network infrastructures. These features make the NB IoT Click Board™ a perfect choice for a wide range of IoT applications such as smart metering, bike sharing, smart parking, smart city, security and asset tracking, home appliances, agricultural and environmental monitoring, and more.
Note: To ensure the best performance, please use an antenna that supports frequency bands used by the Quectel BC95-G module.
It comes in the package which also includes the mikroSDK software and a library with all the functions. The NB IoT Click Board™ comes as a fully tested and approved prototype, making it a reliable device ready to use on the development board.
Software Support
We provide a library for the NB IoT Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The Library carries generic command parser adopted for AT command based modules.
Key Functions
nbiot_cmdSingle
- Sends provided command to the module
nbiot_setHandler
- Handler assignation to the provided command
nbiot_modulePower
- Turn on module
Example Description
The application is composed of the three sections :
- System Initialization - Initializes all necessary GPIO pins, UART used for the communication with NB IoT module and UART used for information logging
- Application Initialization - Initializes driver, power on the module and sends a few commands for the default module configuration
- Application Task - Running in the parallel core state machine.
Commands :
- Command: AT, Basic command
- Command: ATE, Set Command Echo Mode
- Command: ATI, product information
- Command: AT+CFUN, Set UE Functionality
- Command: AT+CIMI, Request International Mobile Subscriber Identity
- Command: AT+CGDCONT, Define a PDP Context
- Command: AT+NCONFIG, Enable scrambling function
- Command: AT+NBAND, set band 8=900 MHz, 20=800 MHz provided by the operator
- Command: AT+CGDCONT, Set mobile operator APN for PDP context
- Command: AT+CEREG, Enable network registration URCs
- Command: AT+COPS, set MCC and MNC values provided by the operator
- Command: AT+NSOCR, create a UDP socket
- Command: AT+NSOST, send UDP message
- Command: AT+NSOCL, close socket
void applicationInit() { // MODULE POWER ON nbiot_hfcEnable( 1 ); nbiot_modulePower( 0 ); // MODULE INIT //Generic AT command nbiot_cmdSingle( &AT[0] ); nbiot_cmdSingle( &ATE[0] ); nbiot_cmdSingle( &ATI[0] ); nbiot_cmdSingle( &AT_CFUN[0] ); nbiot_cmdSingle( &AT_CIMI[0] ); nbiot_cmdSingle( &AT_CGDCONT[0] ); // UDP server - AT command nbiot_cmdSingle( &AT_NCONFIG[0] ); nbiot_cmdSingle( &AT_NCONFIG1[0] ); nbiot_cmdSingle( &AT_NCONFIG2[0] ); nbiot_cmdSingle( &AT_NBAND[0] ); nbiot_cmdSingle( &AT_CGDCONT1[0] ); nbiot_cmdSingle( &AT_CEREG[0] ); nbiot_cmdSingle( &AT_COPS[0] ); nbiot_cmdSingle( &AT_NSOCR[0] ); nbiot_cmdSingle( &AT_NSOST[0] ); nbiot_cmdSingle( &AT_NSOCL[0] ); }
Additional Functions :
All additional functions such as timer initialization and default handler.
Notes :
- UART polling works much better with HFC enabled.
- In case of usage of other MCUs Timer initialization must be adjusted according to your MCU.
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
String
Conversion
Additional Notes and Information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The NB IoT Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
NB IoT Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.