ABSTRACT

NB-IoT is the Internet of Things (IoT) technology used for cellular communication. NB-IoT devices deliver much better capability and performance, such as: increased area coverage of up to one kilometer; a massive number of devices—up to 200,000—per a single base-station area; longer battery lifetime of ten years; and better indoor and outdoor coverage for areas with weak signal, such as underground garages.

The cellular NB-IoT technology is a challenging technology to use and understand. With more than 30 projects presented in this book, covering many use cases and scenarios, this book provides hands-on and practical experience of how to use the cellular NB-IoT for smart applications using Arduino™, Amazon Cloud, Google Maps, and charts.

The book starts by explaining AT commands used to configure the NB-IoT modem; data serialization and deserialization; how to set up the cloud for connecting NB-IoT devices; setting up rules, policy, security certificates, and a NoSQL database on the cloud; how to store and read data in the cloud; how to use Google Maps to visualize NB-IoT device geo-location; and how to use charts to visualize sensor datasets.

Projects for Arduino are presented in four parts. The first part explains how to connect the device to the mobile operator and cellular network; perform communication using different network protocols, such as TCP, HTTP, SSL, or MQTT; how to use GPS for geo-location applications; and how to upgrade NB-IoT modem firmware over the air. The second part explains the microcontroller unit and how to build and run projects, such as a 7-segment display or a real-time clock. The third part explains how NB-IoT can be used with sensor devices, such as ultrasonic and environmental sensors. Finally, the fourth part explains how NB-IoT can be used to control actuators, such as stepper motors and relays.

This book is a unique resource for understanding practical uses of the NB-IoT technology and serves as a handbook for technical and non-technical readers who are looking for practicing and exercising the cellular NB-IoT technology. The book can be used by engineers, students, researchers, system integrators, mobile operators’ technical staff, and electronics enthusiasts.

To download the software which can be used with the book, go to:

https://github.com/5ghub/NB-IoT

About the Author:

Hossam Fattah is a technology expert in 4G/5G wireless systems and networking. He received his Ph.D. in Electrical and Computer Engineering from University of British Columbia, Vancouver, Canada in 2003. He received his Master of Applied Science in Electrical and Computer Engineering from University of Victoria, Victoria, Canada in 2000. He completed his B.Sc. degree in Computers and Systems Engineering from Al-Azhar University, Cairo, Egypt in 1995. Between 2003 and 2011, he was in academia and industry, including Texas A&M University. Between 2011 and 2013, he was with Spirent Communications, NJ, USA. Since 2013, he has been with Microsoft, USA. He is also an affiliate associate professor at University of Washington, Tacoma, WA, USA, teaching graduate courses on IoT and distributed systems and collaborating on 5G research and innovations. He has had many patents and technical publications in conferences and journals. He is a registered professional Engineer with the Association of Professional Engineers, British Columbia, Canada. He is the author of the recent book 5G LTE Narrowband Internet of Things (NB-IoT). His research interest is in wireless communications and radio networks and protocols, cellular quality of service, radio resource management, traffic and packet scheduling, network analytics, and mobility.

chapter Chapter 1|6 pages

About This Book

chapter Chapter 2|16 pages

LTE Cellular Narrowband Internet of Things (NB-IoT)

chapter Chapter 3|8 pages

Installing and Setting up Hardware and Software

chapter Chapter 4|12 pages

Microcontroller and NB-IoT Modem Units

chapter Chapter 5|26 pages

AT Commands

chapter Chapter 6|18 pages

Data Serialization and Deserialization

chapter Chapter 7|32 pages

Amazon Web Services for IoT Devices (AWS IoT)

chapter Chapter 8|20 pages

Data Visualization

part I|48 pages

Networking

chapter Chapter 1409|8 pages

Turning on the Modem

chapter Chapter 10|6 pages

Transmission Control Protocol (TCP)

chapter Chapter 11|6 pages

Secure Socket Layer (SSL) Connection

chapter Chapter 12|6 pages

Message Queue Telemetry Transport (MQTT)

chapter Chapter 13|8 pages

Location and GPS Tracking

chapter Chapter 14|6 pages

Hypertext Transfer Protocol (HTTP)

chapter Chapter 15|6 pages

NB-IoT Modem Firmware Update

part II|72 pages

Microcontroller

chapter Chapter 18816|8 pages

RGB LED

chapter Chapter 17|4 pages

Making Sound Using Active Buzzer

chapter Chapter 18|4 pages

Making Sound Using Passive Buzzer

chapter Chapter 19|6 pages

Keypad Switch

chapter Chapter 20|6 pages

Push Button

chapter Chapter 21|6 pages

Analog Joystick

chapter Chapter 22|6 pages

Infra-Red (IR) Receiver

chapter Chapter 23|8 pages

Radio Frequency Identification

chapter Chapter 24|10 pages

Eight LED and Shift Register

chapter Chapter 25|6 pages

Seven-Segment Display

chapter Chapter 26|6 pages

Real-Time Clock

part III|58 pages

Sensors

chapter Chapter 26027|6 pages

Tilt Sensor Switch

chapter Chapter 28|6 pages

Photocell

chapter Chapter 29|8 pages

Ultrasonic Sensor

chapter Chapter 30|8 pages

Temperature and Humidity Sensor

chapter Chapter 31|6 pages

Water Level Detection Sensor

chapter Chapter 32|6 pages

Microphone Sound Sensor

chapter Chapter 33|8 pages

Thermometer

chapter Chapter 34|8 pages

Gyroscope Sensor

part IV|26 pages

Actuators

chapter 318Chapter 35|6 pages

Servo Motor

chapter Chapter 36|12 pages

Stepper Motor

chapter Chapter 37|6 pages

Relay

chapter Chapter 38|4 pages

Hardware Parts