TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137033 times)
  2. FAT32 Library (70166 times)
  3. Network Ethernet Library (56037 times)
  4. USB Device Library (46360 times)
  5. Network WiFi Library (41973 times)
  6. FT800 Library (41304 times)
  7. GSM click (29079 times)
  8. mikroSDK (26519 times)
  9. PID Library (26452 times)
  10. microSD click (25449 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

NB IoT click

Rating:

6

Author: MIKROE

Last Updated: 2018-12-19

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: LTE IoT

Downloaded: 3870 times

Not followed.

License: MIT license  

NB IoT click is a Click board that allows LTE Cat NB1 connectivity by utilizing Quectel BC95, a specialized multi-band IoT module with very low power requirements and compact form factor, making it perfectly suited for various IoT-based applications.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "NB IoT click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "NB IoT click" changes.

Do you want to report abuse regarding "NB IoT click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

NB IoT click

NB IoT click

Native view of the NB IoT click board.

View full image
NB IoT click

NB IoT click

Front and back view of the NB IoT click board.

View full image

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 provied command
  • nbiot_modulePower - Turn on module

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes all necessary GPIO pins, UART used for the communcation with NB IoT module and UART used for infromation logging
  • Application Initialization - Initializes driver, power on module and sends few command for the default module configuration
  • Application Task - Running in 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 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 operator
  • Command: AT+NSOCR, create an UDP socket
  • Command: AT+NSOST, send UDP message
  • Command: AT+NSOCL, close socket
// 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.

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 clickUSB 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.

ALSO FROM THIS AUTHOR

MIC33153 click

5

MIC33153 click is a DC-DC adjustable step-down (buck) converter that is designed to deliver a substantial amount of current to very demanding loads, with the voltage output up to 3.5V.

[Learn More]

4G LTE 2 Voice-NA click

0

4G LTE 2 Click - Voice (for North America) is a compact add-on board representing a secure-cloud multi-band solution offering universal connectivity and reliable performance. This board features the LARA-R6401, an ideal LTE Cat 1 solution for North America from u-blox, supporting all relevant LTE bands for use on AT&T, FirstNet, Verizon, or T-Mobile mobile networks in single SKU for the North American market. Equipped with familiar AT commands set over the UART interface, USB interface, and Network and Status indicators, the LARA-R6401 also has a comprehensive certification scheme and multi-band/multi-mode capabilities providing excellent flexibility alongside the support of voice/audio application.

[Learn More]

Accel click

0

This is a simple project which demonstrates the use of Accel click board. It features small ultralow power, 3-axis accelerometer ADXL345.

[Learn More]