{"id":31,"date":"2021-01-08T18:19:49","date_gmt":"2021-01-08T23:19:49","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/vahidnia\/?post_type=chapter&#038;p=31"},"modified":"2021-04-06T15:46:30","modified_gmt":"2021-04-06T19:46:30","slug":"chapter-2","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/chapter\/chapter-2\/","title":{"raw":"Chapter 2: LTE-M Modem and AT Commands","rendered":"Chapter 2: LTE-M Modem and AT Commands"},"content":{"raw":"<h1>2.1 Introduction<\/h1>\r\nIn the previous chapter, we briefly discussed different building blocks (layers) of an IoT solution from the core functional perspective. In this chapter and the next few chapters, we will discuss how to practically work with an LTE-M module to establish a CIoT connectivity scheme to transfer the data to the Internet. The high level architecture of the IoT project that we want to complete in this book is described in Figure2.1.\r\n\r\n[caption id=\"attachment_60\" align=\"aligncenter\" width=\"861\"]<img class=\"wp-image-60 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project.jpg\" alt=\"\" width=\"861\" height=\"204\" \/> Figure2.1. High level architectural design of the IoT project[\/caption]\r\n\r\nIn this project, we will be using a Quectel BG96 LTE-M modem to exchange the data with the Internet through the cellular tower. The transmitted data is then stored and analyzed in the software backend (cloud platform) that gives full accessibility to the user to monitor, control and manage the device and network.\r\n\r\nFollowing the step-by-step instructions in this chapter, you will become familiar with the TELUS IoT Starter Kit and Avnet Quectel BG96 LTE Cat-M1\/NB-1 Shield. Also, you will be able to configure the Quectel BG96 modem using AT commands (instructions used to control a modem). Moreover, you will learn how to enable the GPS and acquire the location information using the AT commands.\r\n\r\nIn these lab series, you will learn how to create, prototype and develop an IoT product using the <a href=\"http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit\">TELUS LTE-M IoT Starter Kit<\/a>[footnote]http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit[\/footnote]. You will practice how to connect to the LTE-M network (The modem supports both LTE-M and NB-IoT. However, in this book, you will only work with LTE-M). Then, you will use Microsoft Azure cloud services to manage, store and analyze the data. The starter kit integrates three stacked boards as shown in Figure 2.2. A brief introduction of each board is given here. Note that in this book you will only work with the BG96 module (top board) in the standalone mode.\r\n\r\n[caption id=\"attachment_61\" align=\"aligncenter\" width=\"306\"]<img class=\"wp-image-61 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit.jpg\" alt=\"\" width=\"306\" height=\"245\" \/> Figure2.2. TELUS IoT starter kit[\/caption]\r\n<h1>2.2\u00a0 Practical Tasks<\/h1>\r\n<h2>A.\u00a0 BG96 Module<\/h2>\r\n<a href=\"https:\/\/www.quectel.com\/product\/bg96.htm\">BG96<\/a>[footnote]https:\/\/www.quectel.com\/product\/bg96.htm[\/footnote] is a series of ultra low-power (approximately 10 \u00b5A in PSM mode) dual-mode LTE Cat-M1\/Cat-NB1\/EGPRS module manufactured by Quectel Wireless Solutions. The maximum uplink (UL) and downlink (DL) data rates for this module are 375kbps and 300kbps, respectively. This module is certified by the major mobile network operators in the world (TELUS, Bell and Rogers in Canada) and has wide range of IoT use cases such as asset tracking, smart cattle, etc.\r\n\r\nThe module includes the BG96 modem and is equipped with some additional features such as SIM holder, Arduino shield interface (connectors compatible with Arduino extension boards such as WiFi), LTE and GPS antenna SMA connectors, USB port and configuration switches.\r\n\r\n[caption id=\"attachment_62\" align=\"aligncenter\" width=\"391\"]<img class=\"wp-image-62 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module.jpg\" alt=\"\" width=\"391\" height=\"228\" \/> Figure2.3. Quectel BG96 module[\/caption]\r\n<h2>B.\u00a0 Sensor Board<\/h2>\r\nThe <a href=\"https:\/\/os.mbed.com\/components\/X-NUCLEO-IKS01A2\/\">IKS01A2 Sensor Board<\/a>[footnote]https:\/\/os.mbed.com\/components\/X-NUCLEO-IKS01A2\/[\/footnote] contains the following sensors:\r\n<ul>\r\n \t<li><a href=\"https:\/\/www.st.com\/en\/mems-and-sensors\/lsm6dsl.html\">LSM6DSL<\/a>[footnote]https:\/\/www.st.com\/en\/mems-and-sensors\/lsm6dsl.html[\/footnote] 3D Accelerometer and 3D Gyro Sensor<\/li>\r\n \t<li>LSM303AGR[footnote]https:\/\/www.st.com\/en\/mems-and-sensors\/lsm303agr.html[\/footnote] 3D Accelerometer and 3D Magnetometer<\/li>\r\n \t<li>LPS22HB[footnote]https:\/\/www.st.com\/content\/st_com\/en\/products\/mems-and-sensors\/pressure-sensors\/lps22hb.html[\/footnote] Barometric Pressure Sensor<\/li>\r\n \t<li>HTS221[footnote]https:\/\/www.st.com\/content\/st_com\/en\/products\/mems-and-sensors\/pressure-sensors\/lps22hb.html[\/footnote] Relative Humidity &amp; Temperature Sensor<\/li>\r\n<\/ul>\r\nThe communication between this sensor board the MCU board (NUCLEO-L496ZG) is through I\u00b2C interface.\r\n\r\n[caption id=\"attachment_63\" align=\"aligncenter\" width=\"203\"]<img class=\"wp-image-63 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board.jpg\" alt=\"\" width=\"203\" height=\"189\" \/> Figure2.4. Sensor board[\/caption]\r\n<h2>C.\u00a0 MCU Board<\/h2>\r\nFigure2.5 shows the NUCLEO-L496ZG Microcontroller Board[footnote]https:\/\/os.mbed.com\/platforms\/ST-Nucleo-L496ZG\/[\/footnote] with Arduino connectors. You can consider connecting the BG96 module to this MCU board for future IoT products.\r\n\r\n[caption id=\"attachment_64\" align=\"aligncenter\" width=\"487\"]<img class=\"wp-image-64 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board.jpg\" alt=\"\" width=\"487\" height=\"205\" \/> Figure2.5. STMicro NUCLEO-L496ZG MCU board[\/caption]\r\n\r\nNote that in this book our focus is only on the BG96 module and we will not connect the sensor and the microcontroller boards to build the stack. If you are interested, you can build the full stack and try to send the AT commands to the BG96 module through the microcontroller board.\r\n<h2>D.\u00a0 SIM card activation<\/h2>\r\nIn this sub-section, we discuss how to activate the SIM card for TELUS network operator. Different mobile network operators have different procedures to activate their SIM cards. If you already have an activated SIM card, skip this sub-section.\r\n\r\nBefore activating the TELUS SIM card, you need to have two codes handy:\r\n<ul>\r\n \t<li>ICCID: Integrated Circuit Card Identifier (ICCID) is a 19-digit number located at the bottom of the SIM card.<\/li>\r\n \t<li>Starter Kit activation referral code. The referral code is provided for you at the back of the \u201cQuick Starter Guide\u201d page that came with TELUS LTE-M IoT Starter Kit[footnote]http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit[\/footnote] (e.g., <strong>TELU8284<\/strong>). If you do not have one, you can request a referral code at telus.m2m.com.<\/li>\r\n<\/ul>\r\n<ol>\r\n \t<li>Go to telus.m2m.com -&gt; Click \u201cEnter Referral Code\u201d -&gt; Click \u201cOrder Kit\u201d to create your account.<\/li>\r\n \t<li>Create a username\/password and enter your contact information and SIM card number (ICCID) and click continue. It may take a few days before TELUS can activate your SIM card and provide you with an Access Point Name (APN) through email. The provided TELUS APN could be \u201cm2m-west.telus.iot\u201d or \u201cm2m-east.telus.iot\u201d depending on your region in Canada. You will need this APN later when you want to connect to TELUS LTE-M network in the next chapters. An APN defines where a device will connect to the Internet. In order for a device to connect successfully to the Internet, the device application must use an APN that is allowed by the device's communication plan.<\/li>\r\n \t<li>You can log in to TELUS Control Center[footnote]https:\/\/telus.jasperwireless.com\/provision\/jsp\/login.jsp[\/footnote] using your username\/password to manage your device (view cycle-to-date usage, modify rate plan or SIM status), access your invoices, or modify your profile.<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_65\" align=\"aligncenter\" width=\"869\"]<img class=\"wp-image-65 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center.jpg\" alt=\"\" width=\"869\" height=\"160\" \/> Figure2.6. Snapshot of TELUS Control Center[\/caption]\r\n<h2>E.\u00a0 Standalone modem setup<\/h2>\r\nIn this part of the lab you will work with the BG96 board on its own and when it is not stacked to the MCU board.\r\n<ol>\r\n \t<li>You may detach the BG96 board from the Sensor Board and MCU Board. You can still use the BG96 board in standalone mode when it is stacked on the MCU board. However, make sure Switch S2 and S3 are positioned properly and the USB cable is connected to the USB port of the BG96 board and NOT that of the MCU.<\/li>\r\n \t<li>Slide Switch S2,S3 towards the standalone position (to the left side as shown in Figure2.7)<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_66\" align=\"aligncenter\" width=\"429\"]<img class=\"wp-image-66 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation.jpg\" alt=\"\" width=\"429\" height=\"231\" \/> Figure2.7. Configuration of switches for standalone operation[\/caption]\r\n<ol start=\"3\">\r\n \t<li>Slide the metal retaining clip of the SIM holder, in direction of the SMA connectors (Left direction of Figure2.7), and then lift it up. Insert the activated SIM card with notched corner facing outwards. Press on the SIM holder and slide the metal retaining clip back in the direction of Pmod connector (Right direction of Figure2.7).<\/li>\r\n \t<li>Set the sliding Switch SW4 to choose the SIM card.<\/li>\r\n \t<li>Attach the LTE and GPS antennas to the SMA connectors.<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_67\" align=\"aligncenter\" width=\"263\"]<img class=\"wp-image-67 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom.jpg\" alt=\"\" width=\"263\" height=\"178\" \/> Figure2.8. GPS and LTE antennas[\/caption]\r\n<ol start=\"6\">\r\n \t<li>Connect your PC to the BG96 board\u2019s micro USB connector.<\/li>\r\n \t<li>Press and hold Switch S1 (power key) for two seconds to wake up the modem. When the modem is awake, LED3 (modem status) should be off.<\/li>\r\n \t<li>Download and install \u201cQuectel_LTE_Windows_USB_Driver_V1.0[footnote]https:\/\/github.com\/pengphei\/quectel-ec20\/tree\/master\/drv\/Quectel_LTE_Windows_USB_Driver_V1.0[\/footnote]\u201d or the latest version.<\/li>\r\n \t<li>Go to \u201cDevice Manager\u201d -&gt; Ports (COM &amp; LPT). You should see three Quectel USB ports:<\/li>\r\n<\/ol>\r\n<ul>\r\n \t<li>Quectel USB AT port,<\/li>\r\n \t<li>Quectel USB DM port,<\/li>\r\n \t<li>Quectel USB NMEA port<\/li>\r\n<\/ul>\r\n[caption id=\"attachment_68\" align=\"aligncenter\" width=\"388\"]<img class=\"wp-image-68 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports.jpg\" alt=\"\" width=\"388\" height=\"285\" \/> Figure2.9. Quectel USB ports[\/caption]\r\n<h2>F.\u00a0 Quectel BG96 modem configuration using AT commands<\/h2>\r\nAT commands (AT is the abbreviation of ATtention) are instructions used to control a modem and start with \u201cAT\u201d. Quectel_BG96_AT_Commands_Manual[footnote]https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_AT_Commands_Manual_V2.1.pdf[\/footnote] contains a full set of BG96 modem AT commands.\r\n<ol start=\"10\">\r\n \t<li>On your PC, open a terminal communications program such as <strong>Tera Term<\/strong> to emulate different types of\u00a0computer terminals. If you do not have <strong>Tera Term<\/strong> installed on your PC, you can download the latest version at: <a href=\"https:\/\/osdn.net\/projects\/ttssh2\/releases\/\">https:\/\/osdn.net\/projects\/ttssh2\/releases\/<\/a><\/li>\r\n<\/ol>\r\n<ol start=\"11\">\r\n \t<li>Configure the settings of the serial console application of <strong>Tera Term<\/strong> and create a new serial connection using Quectel USB AT Port.<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_69\" align=\"aligncenter\" width=\"342\"]<img class=\"wp-image-69 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection.jpg\" alt=\"\" width=\"342\" height=\"199\" \/> Figure2.10. Tera Term new connection[\/caption]\r\n<ol start=\"12\">\r\n \t<li>Go to \u201cSetup\u201d -&gt; Click on \u201cSerial port\u2026\u201d and set the Speed=115200, Data=8 bits, Parity=none, Stop bits=1 bit. Press \u201cNew Setting\u201d to save these changes.<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_70\" align=\"aligncenter\" width=\"342\"]<img class=\"wp-image-70 \" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup.jpg\" alt=\"\" width=\"342\" height=\"216\" \/> Figure2.11. Tera Term serial port setup[\/caption]\r\n<ol start=\"13\">\r\n \t<li>Go to \u201cSetup\u201d -&gt; Click on \u201cTerminal\u2026\u201d and make sure \u201cLocal Echo\u201d is checked so that you can see the commands you will be typing.<\/li>\r\n<\/ol>\r\n<ol start=\"14\">\r\n \t<li>Enter the following AT commands shown in <strong>bold <\/strong>letters. Below you can also see a brief description and the response of each AT command. The following configurations are based on TELUS as the current carrier. If your carrier requires a different configuration, modify the AT commands accordingly. For full description of AT commands, see Quectel_BG96_AT_Commands_Manual[footnote]https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_AT_Commands_Manual_V2.1.pdf[\/footnote].<\/li>\r\n<\/ol>\r\n<strong>ATI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Display Product Identification Information<\/em>\r\n\r\nQuectel\r\n\r\nBG96\r\n\r\nRevision: BG96MAR02A07M1G\r\n\r\n&nbsp;\r\n\r\nOK\r\n\r\n<strong>AT GSN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Request International Mobile Equipment Identity (IMEI). Note that IMEI is a unique 15-digit identification or serial number of the module.<\/em><em>\u00a0\u00a0 <\/em>\r\n\r\n&nbsp;\r\n\r\n866425033446404\r\n\r\n&nbsp;\r\n\r\nOK\r\n\r\n<strong>AT CFUN=1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Set Phone Functionality as Full<\/em>\r\n\r\nOK\r\n\r\n<strong>AT QCCID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Show the SIM card\u2019s Integrated Circuit Card Identifier (ICCID) number<\/em>\r\n\r\nQCCID: 8912230100074759513F\r\n\r\n&nbsp;\r\n\r\nOK\r\n\r\n<strong>AT COPS=0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Automatic Operator selection<\/em>\r\n\r\nOK\r\n\r\n<strong>AT QCFG=\"NWSCANSEQ\",020301\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Configure Radio Access Technologies (RAT) searching sequence <\/em>\r\n\r\n<em>02: LTE-M <\/em>\r\n\r\n<em>03: NB-IoT<\/em>\r\n\r\n<em>01: GSM<\/em>\r\n\r\n&nbsp;\r\n\r\nOK\r\n\r\n<strong>AT QCFG=\"IOTOPMODE\",0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Configure network category to be searched under LTE RAT. <\/em>\r\n\r\n<em>0: LTE Cat M1 <\/em>\r\n\r\n<em>1: LTE Cat NB1 <\/em>\r\n\r\n<em>2: LTE Cat M1 and Cat NB1<\/em>\r\n\r\n<strong>\u00a0<\/strong>\r\n\r\nOK\r\n\r\n<strong>AT QCFG=\"BAND\",0,80A,80A\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Band configuration. Specify the frequency bands allowed to be searched of User Equipment (UE). The hex number represent the GSM, LTE-M and NB-IoT band values, respectively. <\/em>\r\n\r\n<em>0: not to change frequency band. <\/em>\r\n\r\n<em>80A : LTE B2 LTE B4 LTE B12<\/em>\r\n\r\n<em>\u00a0<\/em>\r\n\r\nOK\r\n\r\n<strong>AT CSQ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Signal quality report. Indicate the received signal strength indicator (RSSI) and the channel bit error rate (BER). For example the first received number (23) means the RSSI is -67 dBm and the second number (99) shows the channel bit error rate in percent. <\/em>\r\n\r\n<em>0: Less than or equal to -113dBm\u00a0 <\/em>\r\n\r\n<em>1: -111dBm <\/em>\r\n\r\n<em>2...30: -109... -53dBm <\/em>\r\n\r\n<em>31: Greater than or equal to -51dBm<\/em>\r\n\r\n<em>99: Not known <\/em>\r\n\r\n<strong>\u00a0<\/strong>\r\n\r\nCSQ: 23,99\r\n\r\n&nbsp;\r\n\r\nOK\r\n\r\n<strong>AT COPS=?\u00a0\u00a0 <\/strong><em>\u00a0\/\/ Operator Status. <\/em>\r\n\r\n<em>0: Unknown <\/em>\r\n\r\n<em>1: Available <\/em>\r\n\r\n<em>2: Current operator <\/em>\r\n\r\n<em>3: Forbidden <\/em>\r\n\r\n<em>As you see in the response from the module the status for TELUS is 2 which means it is the current operator.<\/em>\r\n\r\n<em>\u00a0\u00a0<\/em>\r\n\r\nCOPS: (1,\"Bell\",\"Bell\",\"302610\",8),(1,\"Rogers Wireless\",\"ROGERS\",\"302720\",8),(1,\"Rogers Wireless\",\"ROGERS\",\"302720\",0),(2,\"TELUS\",\"TELUS\",\"302220\",8),,(0,1,2,3,4),(0,1,2)\r\n\r\nOK\r\n<h2>G.\u00a0 GPS test using AT commands<\/h2>\r\n<ol start=\"15\">\r\n \t<li>Enter the following simple AT commands to enable the GPS and acquire location information. For a complete set of Global Navigation Satellite System (GNSS) commands see BG96 GNSS AT Commands Manual[footnote]https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_GNSS_AT_Commands_Manual_V1.1.pdf[\/footnote].<\/li>\r\n<\/ol>\r\n&nbsp;\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>AT QGPS=1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Turn on GNSS<\/em>\r\n\r\nOK\r\n\r\n<strong>AT QGPSLOC?\u00a0\u00a0 <\/strong><em>\/\/ Acquire positioning information<\/em>\r\n\r\nQGPSLOC: 012102.0,4919.1986N,12305.5925W,3.2,-19.0,2,177.06,0.0,0.0,230220,08\r\n\r\nOK\r\n\r\n<strong>AT QGPSEND\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Turn off GNSS<\/em>\r\n\r\nOK<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<strong>Note:<\/strong> If you are running the lab in a building, after you enter <strong>AT QGPSLOC?<\/strong>, you may get \u201c CME ERROR:\u00a0516\u201d. This error means the modem has not received a GPS fix yet. You can wait for a few more minutes or move the GPS antenna near a window or outside. Note that a\u00a0GPS fix\u00a0is the locational information that the\u00a0<strong>GPS<\/strong>\u00a0system provides for a specific point.\r\n<ol start=\"16\">\r\n \t<li>In order to test the GNSS commands using NMEA USB port, download VisualGPS[footnote]http:\/\/www.visualgps.net\/#visualgps-content[\/footnote]. Note that NMEA is a standard data format that is supported by GPS manufacturers. Run the VisualGPS application and go to \u201cConnect to GPS\u201d -&gt; Click on \u201cConnect using serial port\u201d to graphically display the location.<\/li>\r\n \t<li>Choose \u201cQuectel USB NMEA Port\u201d, set the baud rate=115200 and press \u201cOk\u201d. As it is shown in Figure2.12, you will see the GPS data such as latitude, longitude, attitude, signal quality and etc.<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_72\" align=\"aligncenter\" width=\"550\"]<img class=\"wp-image-72\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589.jpg\" alt=\"\" width=\"550\" height=\"297\" \/> Figure2.12. VisualGSP[\/caption]\r\n<h2>H.\u00a0 SMS text messaging<\/h2>\r\nIf your carrier connectivity subscription includes SMS text messaging you will be able to send a text message using AT commands.\r\n<ol start=\"18\">\r\n \t<li>Enter the following commands:<\/li>\r\n<\/ol>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>AT CMGF=1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ SMS message format is set as text<\/em>\r\n\r\nOK\r\n\r\n<strong>AT CSCS=\u201cGSM\u201d<\/strong>\u00a0\u00a0\u00a0 <em>\/\/ Character set is GSM<\/em>\r\n\r\nOK\r\n\r\n<strong>AT CMGS=\u201c12369912020\u201d\u00a0 <\/strong><em>\/\/ Destination phone number<\/em><strong>\u00a0 \u00a0<\/strong>\r\n\r\n<strong>&gt; Hello, this is a test.\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/strong><em>\/\/ Enter your message and then press CTR-Z to send<\/em>\r\n\r\nCMGS: 5 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<em>\/\/ Message reference upon successful delivery<\/em>\r\n\r\nOK<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n&nbsp;","rendered":"<h1>2.1 Introduction<\/h1>\n<p>In the previous chapter, we briefly discussed different building blocks (layers) of an IoT solution from the core functional perspective. In this chapter and the next few chapters, we will discuss how to practically work with an LTE-M module to establish a CIoT connectivity scheme to transfer the data to the Internet. The high level architecture of the IoT project that we want to complete in this book is described in Figure2.1.<\/p>\n<figure id=\"attachment_60\" aria-describedby=\"caption-attachment-60\" style=\"width: 861px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-60\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project.jpg\" alt=\"\" width=\"861\" height=\"204\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project.jpg 1136w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project-300x71.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project-1024x242.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project-768x182.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project-65x15.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project-225x53.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/3.-High-level-architectural-design-of-the-ioT-project-350x83.jpg 350w\" sizes=\"auto, (max-width: 861px) 100vw, 861px\" \/><figcaption id=\"caption-attachment-60\" class=\"wp-caption-text\">Figure2.1. High level architectural design of the IoT project<\/figcaption><\/figure>\n<p>In this project, we will be using a Quectel BG96 LTE-M modem to exchange the data with the Internet through the cellular tower. The transmitted data is then stored and analyzed in the software backend (cloud platform) that gives full accessibility to the user to monitor, control and manage the device and network.<\/p>\n<p>Following the step-by-step instructions in this chapter, you will become familiar with the TELUS IoT Starter Kit and Avnet Quectel BG96 LTE Cat-M1\/NB-1 Shield. Also, you will be able to configure the Quectel BG96 modem using AT commands (instructions used to control a modem). Moreover, you will learn how to enable the GPS and acquire the location information using the AT commands.<\/p>\n<p>In these lab series, you will learn how to create, prototype and develop an IoT product using the <a href=\"http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit\">TELUS LTE-M IoT Starter Kit<\/a><a class=\"footnote\" title=\"http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit\" id=\"return-footnote-31-1\" href=\"#footnote-31-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a>. You will practice how to connect to the LTE-M network (The modem supports both LTE-M and NB-IoT. However, in this book, you will only work with LTE-M). Then, you will use Microsoft Azure cloud services to manage, store and analyze the data. The starter kit integrates three stacked boards as shown in Figure 2.2. A brief introduction of each board is given here. Note that in this book you will only work with the BG96 module (top board) in the standalone mode.<\/p>\n<figure id=\"attachment_61\" aria-describedby=\"caption-attachment-61\" style=\"width: 306px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit.jpg\" alt=\"\" width=\"306\" height=\"245\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit.jpg 775w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit-300x240.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit-768x615.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit-65x52.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit-225x180.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/4.-TELUS-IoT-starter-kit-350x280.jpg 350w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><figcaption id=\"caption-attachment-61\" class=\"wp-caption-text\">Figure2.2. TELUS IoT starter kit<\/figcaption><\/figure>\n<h1>2.2\u00a0 Practical Tasks<\/h1>\n<h2>A.\u00a0 BG96 Module<\/h2>\n<p><a href=\"https:\/\/www.quectel.com\/product\/bg96.htm\">BG96<\/a><a class=\"footnote\" title=\"https:\/\/www.quectel.com\/product\/bg96.htm\" id=\"return-footnote-31-2\" href=\"#footnote-31-2\" aria-label=\"Footnote 2\"><sup class=\"footnote\">[2]<\/sup><\/a> is a series of ultra low-power (approximately 10 \u00b5A in PSM mode) dual-mode LTE Cat-M1\/Cat-NB1\/EGPRS module manufactured by Quectel Wireless Solutions. The maximum uplink (UL) and downlink (DL) data rates for this module are 375kbps and 300kbps, respectively. This module is certified by the major mobile network operators in the world (TELUS, Bell and Rogers in Canada) and has wide range of IoT use cases such as asset tracking, smart cattle, etc.<\/p>\n<p>The module includes the BG96 modem and is equipped with some additional features such as SIM holder, Arduino shield interface (connectors compatible with Arduino extension boards such as WiFi), LTE and GPS antenna SMA connectors, USB port and configuration switches.<\/p>\n<figure id=\"attachment_62\" aria-describedby=\"caption-attachment-62\" style=\"width: 391px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-62\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module.jpg\" alt=\"\" width=\"391\" height=\"228\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module.jpg 1079w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module-300x175.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module-1024x598.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module-768x448.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module-65x38.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module-225x131.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/5.-Quectel-BG96-module-350x204.jpg 350w\" sizes=\"auto, (max-width: 391px) 100vw, 391px\" \/><figcaption id=\"caption-attachment-62\" class=\"wp-caption-text\">Figure2.3. Quectel BG96 module<\/figcaption><\/figure>\n<h2>B.\u00a0 Sensor Board<\/h2>\n<p>The <a href=\"https:\/\/os.mbed.com\/components\/X-NUCLEO-IKS01A2\/\">IKS01A2 Sensor Board<\/a><a class=\"footnote\" title=\"https:\/\/os.mbed.com\/components\/X-NUCLEO-IKS01A2\/\" id=\"return-footnote-31-3\" href=\"#footnote-31-3\" aria-label=\"Footnote 3\"><sup class=\"footnote\">[3]<\/sup><\/a> contains the following sensors:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.st.com\/en\/mems-and-sensors\/lsm6dsl.html\">LSM6DSL<\/a><a class=\"footnote\" title=\"https:\/\/www.st.com\/en\/mems-and-sensors\/lsm6dsl.html\" id=\"return-footnote-31-4\" href=\"#footnote-31-4\" aria-label=\"Footnote 4\"><sup class=\"footnote\">[4]<\/sup><\/a> 3D Accelerometer and 3D Gyro Sensor<\/li>\n<li>LSM303AGR<a class=\"footnote\" title=\"https:\/\/www.st.com\/en\/mems-and-sensors\/lsm303agr.html\" id=\"return-footnote-31-5\" href=\"#footnote-31-5\" aria-label=\"Footnote 5\"><sup class=\"footnote\">[5]<\/sup><\/a> 3D Accelerometer and 3D Magnetometer<\/li>\n<li>LPS22HB<a class=\"footnote\" title=\"https:\/\/www.st.com\/content\/st_com\/en\/products\/mems-and-sensors\/pressure-sensors\/lps22hb.html\" id=\"return-footnote-31-6\" href=\"#footnote-31-6\" aria-label=\"Footnote 6\"><sup class=\"footnote\">[6]<\/sup><\/a> Barometric Pressure Sensor<\/li>\n<li>HTS221<a class=\"footnote\" title=\"https:\/\/www.st.com\/content\/st_com\/en\/products\/mems-and-sensors\/pressure-sensors\/lps22hb.html\" id=\"return-footnote-31-7\" href=\"#footnote-31-7\" aria-label=\"Footnote 7\"><sup class=\"footnote\">[7]<\/sup><\/a> Relative Humidity &amp; Temperature Sensor<\/li>\n<\/ul>\n<p>The communication between this sensor board the MCU board (NUCLEO-L496ZG) is through I\u00b2C interface.<\/p>\n<figure id=\"attachment_63\" aria-describedby=\"caption-attachment-63\" style=\"width: 203px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-63\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board.jpg\" alt=\"\" width=\"203\" height=\"189\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board.jpg 480w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board-300x279.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board-65x61.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board-225x210.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/6.-Sensor-board-350x326.jpg 350w\" sizes=\"auto, (max-width: 203px) 100vw, 203px\" \/><figcaption id=\"caption-attachment-63\" class=\"wp-caption-text\">Figure2.4. Sensor board<\/figcaption><\/figure>\n<h2>C.\u00a0 MCU Board<\/h2>\n<p>Figure2.5 shows the NUCLEO-L496ZG Microcontroller Board<a class=\"footnote\" title=\"https:\/\/os.mbed.com\/platforms\/ST-Nucleo-L496ZG\/\" id=\"return-footnote-31-8\" href=\"#footnote-31-8\" aria-label=\"Footnote 8\"><sup class=\"footnote\">[8]<\/sup><\/a> with Arduino connectors. You can consider connecting the BG96 module to this MCU board for future IoT products.<\/p>\n<figure id=\"attachment_64\" aria-describedby=\"caption-attachment-64\" style=\"width: 487px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-64\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board.jpg\" alt=\"\" width=\"487\" height=\"205\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board.jpg 1283w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board-300x127.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board-1024x432.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board-768x324.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board-65x27.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board-225x95.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/7.-STMicro-NUCLEO-L496ZG-MCU-board-350x148.jpg 350w\" sizes=\"auto, (max-width: 487px) 100vw, 487px\" \/><figcaption id=\"caption-attachment-64\" class=\"wp-caption-text\">Figure2.5. STMicro NUCLEO-L496ZG MCU board<\/figcaption><\/figure>\n<p>Note that in this book our focus is only on the BG96 module and we will not connect the sensor and the microcontroller boards to build the stack. If you are interested, you can build the full stack and try to send the AT commands to the BG96 module through the microcontroller board.<\/p>\n<h2>D.\u00a0 SIM card activation<\/h2>\n<p>In this sub-section, we discuss how to activate the SIM card for TELUS network operator. Different mobile network operators have different procedures to activate their SIM cards. If you already have an activated SIM card, skip this sub-section.<\/p>\n<p>Before activating the TELUS SIM card, you need to have two codes handy:<\/p>\n<ul>\n<li>ICCID: Integrated Circuit Card Identifier (ICCID) is a 19-digit number located at the bottom of the SIM card.<\/li>\n<li>Starter Kit activation referral code. The referral code is provided for you at the back of the \u201cQuick Starter Guide\u201d page that came with TELUS LTE-M IoT Starter Kit<a class=\"footnote\" title=\"http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit\" id=\"return-footnote-31-9\" href=\"#footnote-31-9\" aria-label=\"Footnote 9\"><sup class=\"footnote\">[9]<\/sup><\/a> (e.g., <strong>TELU8284<\/strong>). If you do not have one, you can request a referral code at telus.m2m.com.<\/li>\n<\/ul>\n<ol>\n<li>Go to telus.m2m.com -&gt; Click \u201cEnter Referral Code\u201d -&gt; Click \u201cOrder Kit\u201d to create your account.<\/li>\n<li>Create a username\/password and enter your contact information and SIM card number (ICCID) and click continue. It may take a few days before TELUS can activate your SIM card and provide you with an Access Point Name (APN) through email. The provided TELUS APN could be \u201cm2m-west.telus.iot\u201d or \u201cm2m-east.telus.iot\u201d depending on your region in Canada. You will need this APN later when you want to connect to TELUS LTE-M network in the next chapters. An APN defines where a device will connect to the Internet. In order for a device to connect successfully to the Internet, the device application must use an APN that is allowed by the device&#8217;s communication plan.<\/li>\n<li>You can log in to TELUS Control Center<a class=\"footnote\" title=\"https:\/\/telus.jasperwireless.com\/provision\/jsp\/login.jsp\" id=\"return-footnote-31-10\" href=\"#footnote-31-10\" aria-label=\"Footnote 10\"><sup class=\"footnote\">[10]<\/sup><\/a> using your username\/password to manage your device (view cycle-to-date usage, modify rate plan or SIM status), access your invoices, or modify your profile.<\/li>\n<\/ol>\n<figure id=\"attachment_65\" aria-describedby=\"caption-attachment-65\" style=\"width: 869px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-65\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center.jpg\" alt=\"\" width=\"869\" height=\"160\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center.jpg 1764w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-300x55.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-1024x189.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-768x141.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-1536x283.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-65x12.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-225x41.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/8.-Snapshot-of-TELUS-Control-Center-350x64.jpg 350w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><figcaption id=\"caption-attachment-65\" class=\"wp-caption-text\">Figure2.6. Snapshot of TELUS Control Center<\/figcaption><\/figure>\n<h2>E.\u00a0 Standalone modem setup<\/h2>\n<p>In this part of the lab you will work with the BG96 board on its own and when it is not stacked to the MCU board.<\/p>\n<ol>\n<li>You may detach the BG96 board from the Sensor Board and MCU Board. You can still use the BG96 board in standalone mode when it is stacked on the MCU board. However, make sure Switch S2 and S3 are positioned properly and the USB cable is connected to the USB port of the BG96 board and NOT that of the MCU.<\/li>\n<li>Slide Switch S2,S3 towards the standalone position (to the left side as shown in Figure2.7)<\/li>\n<\/ol>\n<figure id=\"attachment_66\" aria-describedby=\"caption-attachment-66\" style=\"width: 429px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-66\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation.jpg\" alt=\"\" width=\"429\" height=\"231\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation.jpg 1271w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation-300x161.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation-1024x551.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation-768x413.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation-65x35.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation-225x121.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/9.-Configuration-of-switches-for-standalone-operation-350x188.jpg 350w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><figcaption id=\"caption-attachment-66\" class=\"wp-caption-text\">Figure2.7. Configuration of switches for standalone operation<\/figcaption><\/figure>\n<ol start=\"3\">\n<li>Slide the metal retaining clip of the SIM holder, in direction of the SMA connectors (Left direction of Figure2.7), and then lift it up. Insert the activated SIM card with notched corner facing outwards. Press on the SIM holder and slide the metal retaining clip back in the direction of Pmod connector (Right direction of Figure2.7).<\/li>\n<li>Set the sliding Switch SW4 to choose the SIM card.<\/li>\n<li>Attach the LTE and GPS antennas to the SMA connectors.<\/li>\n<\/ol>\n<figure id=\"attachment_67\" aria-describedby=\"caption-attachment-67\" style=\"width: 263px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-67\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom.jpg\" alt=\"\" width=\"263\" height=\"178\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom.jpg 642w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom-300x202.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom-65x44.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom-225x152.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/10.-GPS-antenna-top-LTE-antenna-bottom-350x236.jpg 350w\" sizes=\"auto, (max-width: 263px) 100vw, 263px\" \/><figcaption id=\"caption-attachment-67\" class=\"wp-caption-text\">Figure2.8. GPS and LTE antennas<\/figcaption><\/figure>\n<ol start=\"6\">\n<li>Connect your PC to the BG96 board\u2019s micro USB connector.<\/li>\n<li>Press and hold Switch S1 (power key) for two seconds to wake up the modem. When the modem is awake, LED3 (modem status) should be off.<\/li>\n<li>Download and install \u201cQuectel_LTE_Windows_USB_Driver_V1.0<a class=\"footnote\" title=\"https:\/\/github.com\/pengphei\/quectel-ec20\/tree\/master\/drv\/Quectel_LTE_Windows_USB_Driver_V1.0\" id=\"return-footnote-31-11\" href=\"#footnote-31-11\" aria-label=\"Footnote 11\"><sup class=\"footnote\">[11]<\/sup><\/a>\u201d or the latest version.<\/li>\n<li>Go to \u201cDevice Manager\u201d -&gt; Ports (COM &amp; LPT). You should see three Quectel USB ports:<\/li>\n<\/ol>\n<ul>\n<li>Quectel USB AT port,<\/li>\n<li>Quectel USB DM port,<\/li>\n<li>Quectel USB NMEA port<\/li>\n<\/ul>\n<figure id=\"attachment_68\" aria-describedby=\"caption-attachment-68\" style=\"width: 388px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-68\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports.jpg\" alt=\"\" width=\"388\" height=\"285\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports.jpg 777w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports-300x220.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports-768x563.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports-65x48.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports-225x165.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/11.-Quectel-USB-ports-350x257.jpg 350w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><figcaption id=\"caption-attachment-68\" class=\"wp-caption-text\">Figure2.9. Quectel USB ports<\/figcaption><\/figure>\n<h2>F.\u00a0 Quectel BG96 modem configuration using AT commands<\/h2>\n<p>AT commands (AT is the abbreviation of ATtention) are instructions used to control a modem and start with \u201cAT\u201d. Quectel_BG96_AT_Commands_Manual<a class=\"footnote\" title=\"https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_AT_Commands_Manual_V2.1.pdf\" id=\"return-footnote-31-12\" href=\"#footnote-31-12\" aria-label=\"Footnote 12\"><sup class=\"footnote\">[12]<\/sup><\/a> contains a full set of BG96 modem AT commands.<\/p>\n<ol start=\"10\">\n<li>On your PC, open a terminal communications program such as <strong>Tera Term<\/strong> to emulate different types of\u00a0computer terminals. If you do not have <strong>Tera Term<\/strong> installed on your PC, you can download the latest version at: <a href=\"https:\/\/osdn.net\/projects\/ttssh2\/releases\/\">https:\/\/osdn.net\/projects\/ttssh2\/releases\/<\/a><\/li>\n<\/ol>\n<ol start=\"11\">\n<li>Configure the settings of the serial console application of <strong>Tera Term<\/strong> and create a new serial connection using Quectel USB AT Port.<\/li>\n<\/ol>\n<figure id=\"attachment_69\" aria-describedby=\"caption-attachment-69\" style=\"width: 342px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-69\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection.jpg\" alt=\"\" width=\"342\" height=\"199\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection.jpg 596w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection-300x175.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection-65x38.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection-225x131.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/12.-Tera-Term-new-connection-350x204.jpg 350w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><figcaption id=\"caption-attachment-69\" class=\"wp-caption-text\">Figure2.10. Tera Term new connection<\/figcaption><\/figure>\n<ol start=\"12\">\n<li>Go to \u201cSetup\u201d -&gt; Click on \u201cSerial port\u2026\u201d and set the Speed=115200, Data=8 bits, Parity=none, Stop bits=1 bit. Press \u201cNew Setting\u201d to save these changes.<\/li>\n<\/ol>\n<figure id=\"attachment_70\" aria-describedby=\"caption-attachment-70\" style=\"width: 342px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-70\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup.jpg\" alt=\"\" width=\"342\" height=\"216\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup.jpg 585w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup-300x190.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup-65x41.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup-225x142.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/13.-Tera-Term-serial-port-setup-350x221.jpg 350w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><figcaption id=\"caption-attachment-70\" class=\"wp-caption-text\">Figure2.11. Tera Term serial port setup<\/figcaption><\/figure>\n<ol start=\"13\">\n<li>Go to \u201cSetup\u201d -&gt; Click on \u201cTerminal\u2026\u201d and make sure \u201cLocal Echo\u201d is checked so that you can see the commands you will be typing.<\/li>\n<\/ol>\n<ol start=\"14\">\n<li>Enter the following AT commands shown in <strong>bold <\/strong>letters. Below you can also see a brief description and the response of each AT command. The following configurations are based on TELUS as the current carrier. If your carrier requires a different configuration, modify the AT commands accordingly. For full description of AT commands, see Quectel_BG96_AT_Commands_Manual<a class=\"footnote\" title=\"https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_AT_Commands_Manual_V2.1.pdf\" id=\"return-footnote-31-13\" href=\"#footnote-31-13\" aria-label=\"Footnote 13\"><sup class=\"footnote\">[13]<\/sup><\/a>.<\/li>\n<\/ol>\n<p><strong>ATI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Display Product Identification Information<\/em><\/p>\n<p>Quectel<\/p>\n<p>BG96<\/p>\n<p>Revision: BG96MAR02A07M1G<\/p>\n<p>&nbsp;<\/p>\n<p>OK<\/p>\n<p><strong>AT GSN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Request International Mobile Equipment Identity (IMEI). Note that IMEI is a unique 15-digit identification or serial number of the module.<\/em><em>\u00a0\u00a0 <\/em><\/p>\n<p>&nbsp;<\/p>\n<p>866425033446404<\/p>\n<p>&nbsp;<\/p>\n<p>OK<\/p>\n<p><strong>AT CFUN=1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Set Phone Functionality as Full<\/em><\/p>\n<p>OK<\/p>\n<p><strong>AT QCCID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Show the SIM card\u2019s Integrated Circuit Card Identifier (ICCID) number<\/em><\/p>\n<p>QCCID: 8912230100074759513F<\/p>\n<p>&nbsp;<\/p>\n<p>OK<\/p>\n<p><strong>AT COPS=0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Automatic Operator selection<\/em><\/p>\n<p>OK<\/p>\n<p><strong>AT QCFG=&#8221;NWSCANSEQ&#8221;,020301\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Configure Radio Access Technologies (RAT) searching sequence <\/em><\/p>\n<p><em>02: LTE-M <\/em><\/p>\n<p><em>03: NB-IoT<\/em><\/p>\n<p><em>01: GSM<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>OK<\/p>\n<p><strong>AT QCFG=&#8221;IOTOPMODE&#8221;,0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Configure network category to be searched under LTE RAT. <\/em><\/p>\n<p><em>0: LTE Cat M1 <\/em><\/p>\n<p><em>1: LTE Cat NB1 <\/em><\/p>\n<p><em>2: LTE Cat M1 and Cat NB1<\/em><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p>OK<\/p>\n<p><strong>AT QCFG=&#8221;BAND&#8221;,0,80A,80A\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Band configuration. Specify the frequency bands allowed to be searched of User Equipment (UE). The hex number represent the GSM, LTE-M and NB-IoT band values, respectively. <\/em><\/p>\n<p><em>0: not to change frequency band. <\/em><\/p>\n<p><em>80A : LTE B2 LTE B4 LTE B12<\/em><\/p>\n<p><em>\u00a0<\/em><\/p>\n<p>OK<\/p>\n<p><strong>AT CSQ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Signal quality report. Indicate the received signal strength indicator (RSSI) and the channel bit error rate (BER). For example the first received number (23) means the RSSI is -67 dBm and the second number (99) shows the channel bit error rate in percent. <\/em><\/p>\n<p><em>0: Less than or equal to -113dBm\u00a0 <\/em><\/p>\n<p><em>1: -111dBm <\/em><\/p>\n<p><em>2&#8230;30: -109&#8230; -53dBm <\/em><\/p>\n<p><em>31: Greater than or equal to -51dBm<\/em><\/p>\n<p><em>99: Not known <\/em><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p>CSQ: 23,99<\/p>\n<p>&nbsp;<\/p>\n<p>OK<\/p>\n<p><strong>AT COPS=?\u00a0\u00a0 <\/strong><em>\u00a0\/\/ Operator Status. <\/em><\/p>\n<p><em>0: Unknown <\/em><\/p>\n<p><em>1: Available <\/em><\/p>\n<p><em>2: Current operator <\/em><\/p>\n<p><em>3: Forbidden <\/em><\/p>\n<p><em>As you see in the response from the module the status for TELUS is 2 which means it is the current operator.<\/em><\/p>\n<p><em>\u00a0\u00a0<\/em><\/p>\n<p>COPS: (1,&#8221;Bell&#8221;,&#8221;Bell&#8221;,&#8221;302610&#8243;,8),(1,&#8221;Rogers Wireless&#8221;,&#8221;ROGERS&#8221;,&#8221;302720&#8243;,8),(1,&#8221;Rogers Wireless&#8221;,&#8221;ROGERS&#8221;,&#8221;302720&#8243;,0),(2,&#8221;TELUS&#8221;,&#8221;TELUS&#8221;,&#8221;302220&#8243;,8),,(0,1,2,3,4),(0,1,2)<\/p>\n<p>OK<\/p>\n<h2>G.\u00a0 GPS test using AT commands<\/h2>\n<ol start=\"15\">\n<li>Enter the following simple AT commands to enable the GPS and acquire location information. For a complete set of Global Navigation Satellite System (GNSS) commands see BG96 GNSS AT Commands Manual<a class=\"footnote\" title=\"https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_GNSS_AT_Commands_Manual_V1.1.pdf\" id=\"return-footnote-31-14\" href=\"#footnote-31-14\" aria-label=\"Footnote 14\"><sup class=\"footnote\">[14]<\/sup><\/a>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>AT QGPS=1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Turn on GNSS<\/em><\/p>\n<p>OK<\/p>\n<p><strong>AT QGPSLOC?\u00a0\u00a0 <\/strong><em>\/\/ Acquire positioning information<\/em><\/p>\n<p>QGPSLOC: 012102.0,4919.1986N,12305.5925W,3.2,-19.0,2,177.06,0.0,0.0,230220,08<\/p>\n<p>OK<\/p>\n<p><strong>AT QGPSEND\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ Turn off GNSS<\/em><\/p>\n<p>OK<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Note:<\/strong> If you are running the lab in a building, after you enter <strong>AT QGPSLOC?<\/strong>, you may get \u201c CME ERROR:\u00a0516\u201d. This error means the modem has not received a GPS fix yet. You can wait for a few more minutes or move the GPS antenna near a window or outside. Note that a\u00a0GPS fix\u00a0is the locational information that the\u00a0<strong>GPS<\/strong>\u00a0system provides for a specific point.<\/p>\n<ol start=\"16\">\n<li>In order to test the GNSS commands using NMEA USB port, download VisualGPS<a class=\"footnote\" title=\"http:\/\/www.visualgps.net\/#visualgps-content\" id=\"return-footnote-31-15\" href=\"#footnote-31-15\" aria-label=\"Footnote 15\"><sup class=\"footnote\">[15]<\/sup><\/a>. Note that NMEA is a standard data format that is supported by GPS manufacturers. Run the VisualGPS application and go to \u201cConnect to GPS\u201d -&gt; Click on \u201cConnect using serial port\u201d to graphically display the location.<\/li>\n<li>Choose \u201cQuectel USB NMEA Port\u201d, set the baud rate=115200 and press \u201cOk\u201d. As it is shown in Figure2.12, you will see the GPS data such as latitude, longitude, attitude, signal quality and etc.<\/li>\n<\/ol>\n<figure id=\"attachment_72\" aria-describedby=\"caption-attachment-72\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-72\" src=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589.jpg\" alt=\"\" width=\"550\" height=\"297\" srcset=\"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589.jpg 1920w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-300x162.jpg 300w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-1024x553.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-768x414.jpg 768w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-1536x829.jpg 1536w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-65x35.jpg 65w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-225x121.jpg 225w, https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-content\/uploads\/sites\/1097\/2021\/01\/15.-VisualGSP-e1610413780589-350x189.jpg 350w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><figcaption id=\"caption-attachment-72\" class=\"wp-caption-text\">Figure2.12. VisualGSP<\/figcaption><\/figure>\n<h2>H.\u00a0 SMS text messaging<\/h2>\n<p>If your carrier connectivity subscription includes SMS text messaging you will be able to send a text message using AT commands.<\/p>\n<ol start=\"18\">\n<li>Enter the following commands:<\/li>\n<\/ol>\n<table>\n<tbody>\n<tr>\n<td><strong>AT CMGF=1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><em>\/\/ SMS message format is set as text<\/em><\/p>\n<p>OK<\/p>\n<p><strong>AT CSCS=\u201cGSM\u201d<\/strong>\u00a0\u00a0\u00a0 <em>\/\/ Character set is GSM<\/em><\/p>\n<p>OK<\/p>\n<p><strong>AT CMGS=\u201c12369912020\u201d\u00a0 <\/strong><em>\/\/ Destination phone number<\/em><strong>\u00a0 \u00a0<\/strong><\/p>\n<p><strong>&gt; Hello, this is a test.\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/strong><em>\/\/ Enter your message and then press CTR-Z to send<\/em><\/p>\n<p>CMGS: 5 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<em>\/\/ Message reference upon successful delivery<\/em><\/p>\n<p>OK<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-31-1\">http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit <a href=\"#return-footnote-31-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><li id=\"footnote-31-2\">https:\/\/www.quectel.com\/product\/bg96.htm <a href=\"#return-footnote-31-2\" class=\"return-footnote\" aria-label=\"Return to footnote 2\">&crarr;<\/a><\/li><li id=\"footnote-31-3\">https:\/\/os.mbed.com\/components\/X-NUCLEO-IKS01A2\/ <a href=\"#return-footnote-31-3\" class=\"return-footnote\" aria-label=\"Return to footnote 3\">&crarr;<\/a><\/li><li id=\"footnote-31-4\">https:\/\/www.st.com\/en\/mems-and-sensors\/lsm6dsl.html <a href=\"#return-footnote-31-4\" class=\"return-footnote\" aria-label=\"Return to footnote 4\">&crarr;<\/a><\/li><li id=\"footnote-31-5\">https:\/\/www.st.com\/en\/mems-and-sensors\/lsm303agr.html <a href=\"#return-footnote-31-5\" class=\"return-footnote\" aria-label=\"Return to footnote 5\">&crarr;<\/a><\/li><li id=\"footnote-31-6\">https:\/\/www.st.com\/content\/st_com\/en\/products\/mems-and-sensors\/pressure-sensors\/lps22hb.html <a href=\"#return-footnote-31-6\" class=\"return-footnote\" aria-label=\"Return to footnote 6\">&crarr;<\/a><\/li><li id=\"footnote-31-7\">https:\/\/www.st.com\/content\/st_com\/en\/products\/mems-and-sensors\/pressure-sensors\/lps22hb.html <a href=\"#return-footnote-31-7\" class=\"return-footnote\" aria-label=\"Return to footnote 7\">&crarr;<\/a><\/li><li id=\"footnote-31-8\">https:\/\/os.mbed.com\/platforms\/ST-Nucleo-L496ZG\/ <a href=\"#return-footnote-31-8\" class=\"return-footnote\" aria-label=\"Return to footnote 8\">&crarr;<\/a><\/li><li id=\"footnote-31-9\">http:\/\/cloudconnectkits.org\/product\/telus-lte-m-iot-starter-kit <a href=\"#return-footnote-31-9\" class=\"return-footnote\" aria-label=\"Return to footnote 9\">&crarr;<\/a><\/li><li id=\"footnote-31-10\">https:\/\/telus.jasperwireless.com\/provision\/jsp\/login.jsp <a href=\"#return-footnote-31-10\" class=\"return-footnote\" aria-label=\"Return to footnote 10\">&crarr;<\/a><\/li><li id=\"footnote-31-11\">https:\/\/github.com\/pengphei\/quectel-ec20\/tree\/master\/drv\/Quectel_LTE_Windows_USB_Driver_V1.0 <a href=\"#return-footnote-31-11\" class=\"return-footnote\" aria-label=\"Return to footnote 11\">&crarr;<\/a><\/li><li id=\"footnote-31-12\">https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_AT_Commands_Manual_V2.1.pdf <a href=\"#return-footnote-31-12\" class=\"return-footnote\" aria-label=\"Return to footnote 12\">&crarr;<\/a><\/li><li id=\"footnote-31-13\">https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_AT_Commands_Manual_V2.1.pdf <a href=\"#return-footnote-31-13\" class=\"return-footnote\" aria-label=\"Return to footnote 13\">&crarr;<\/a><\/li><li id=\"footnote-31-14\">https:\/\/www.quectel.com\/UploadImage\/Downlad\/Quectel_BG96_GNSS_AT_Commands_Manual_V1.1.pdf <a href=\"#return-footnote-31-14\" class=\"return-footnote\" aria-label=\"Return to footnote 14\">&crarr;<\/a><\/li><li id=\"footnote-31-15\">http:\/\/www.visualgps.net\/#visualgps-content <a href=\"#return-footnote-31-15\" class=\"return-footnote\" aria-label=\"Return to footnote 15\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":197,"menu_order":2,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-31","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/chapters\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/wp\/v2\/users\/197"}],"version-history":[{"count":24,"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/chapters\/31\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/chapters\/31\/revisions\/300"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/chapters\/31\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/pressbooks\/v2\/chapter-type?post=31"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/wp\/v2\/contributor?post=31"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/cellulariot\/wp-json\/wp\/v2\/license?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}