Maxis NB-IoT Challenge Workshop - GitHub Pages

2y ago
6 Views
2 Downloads
1.63 MB
56 Pages
Last View : 1y ago
Last Download : 3m ago
Upload by : Tripp Mcmullen
Transcription

Maxis NB-IoT Challenge WorkshopIn the end of the workshop, you will learn how to:1. Interface, control and acquire data from various kinds of sensors usingRaspberry Pi with Grove Pi.2. Establish connection between Raspberry Pi and Maxis NB-IoT network.3. Send sensor telemetry from Raspberry Pi to Microsoft Azure Cloud via NBIoT network.4. Create simple server and web application to view and monitor the activity ofthe sensors connected to Raspberry Pi.CoursesMicrosoft Azure Basic SetupRasbperry Pi Azure IntegrationRaspberry Pi Grove Pi SetupRaspberry Pi NB-IoT SetupBuild Sensors Monitoring Web Application hosted at Azure CloudDownloads Related materials are at ackathon. You can either git clone this repo or simply download it.

Create Iot Hub and Devices In AzureStepsSign up for Free Microsoft Azure AccountTo create and use Azure services, you will eventually need an account.Remember, the account is free - you will not be charged for any services until youconvert the account to a pay-as-you-go account. NoteYou will need a valid credit card to create the account. This is used for age and identityvalidation only. Your card will not be charged until you decide to upgrade the free/trial accountto a full subscription.1. In a web browser, navigate to azure.microsoft.com, and click Free Account.2. On the Create your Azure free account today page, click Start free button.3. Scroll down through the page - it lists the products you can access for free,as well as the free products available for the first year.4. Click the Start free button. You'll be prompted to sign in with yourMicrosoft account. Sign in with your Microsoft credentials or create a newfree Microsoft account.5. On the About you page, select your correct country or region, and then enteryour first and last names, along with your email address and phone number.Depending on your country, you may see additional fields, such as a VATnumber. Click Next to continue.6. On the Identity verification by phone screen, select your country code, andtype the number of a telephone to which you have immediate access.7. You have the option of text or callback to obtain a verification code. Click therelevant button, type the code in the Verification code box, and click Verifycode.

8. If the verification code is correct, you will now be asked to enter details of avalid credit card. Enter the card number, the expiration date, the CVV number,your name, and address, and click Next.9. Finally, check the box to accept the subscription agreement, privacystatement, and communications policy. The second checkbox is optional.Now click Sign up. ReferenceFor reference, please visit Microsoft Documentation - Create an Azure accountInstall Azure Command-Line Interface (CLI)The Azure command-line interface (CLI) is Microsoft's cross-platform commandline experience for managing Azure resources. The Azure CLI is easy to learn andthe perfect tool for building custom automation that works with Azure resources.Windows 10Azure Cloud ShellUbuntu 16.04 macOSDownload theUbuntu installmacOS installRun in your browserMSI installerinstructionsinstructionson Azure Cloud ShellSee all of the supported installation platforms. ReferenceFor more references, please visit Microsoft Documentations - Overview of Azure CLI

Create IoT HubThis section describes how to create an IoT hub using the Azure portal.1. Log in to the Azure portal.2. Choose Create a resource, then Search the Marketplace for the IoT Hub.3. Select IoT Hub and click the Create button. You see the first screen forcreating an IoT hub.4. Fill in the fields. Subscription: Select the subscription to use for your IoT hub. Resource Group: You can create a new resource group or use anexisting one. To create a new one, click Create new and fill in the nameyou want to use. To use an existing resource group, click Use existingand select the resource group from the dropdown list. For moreinformation, see Manage Azure Resource Manager resource groups. Region: This is the region in which you want your hub to be located.Select the location closest to you from the dropdown list. IoT Hub Name: Put in the name for your IoT Hub. This name must beglobally unique. If the name you enter is available, a green check markappears.

Important!!Because the IoT hub will be publicly discoverable as a DNS endpoint, be sure to avoidentering any sensitive or personally identifiable information when you name it.5. Click Next: Size and scale to continue creating your IoT hub. On this screen,you can take the defaults and just click Review create at the bottom. Pricing and scale tier: You can choose from several tiers depending onhow many features you want and how many messages you sendthrough your solution per day. The free tier is intended for testing andevaluation. It allows 500 devices to be connected to the IoT hub and upto 8,000 messages per day. Each Azure subscription can create one IoTHub in the free tier. IoT Hub units: The number of messages allowed per unit per daydepends on your hub's pricing tier. For example, if you want the IoT hubto support ingress of 700,000 messages, you choose two S1 tier units.

For details about the other tier options, see Choosing the right IoT Hubtier. Advanced / Device-to-cloud partitions: This property relates the deviceto-cloud messages to the number of simultaneous readers of themessages. Most IoT hubs only need four partitions.6. Click Review create to review your choices. You see something similar tothis screen.7. Click Create to create your new IoT hub. Creating the hub takes a fewminutes. ReferenceFor more references, please visit Microsoft Documentations - Create an IoT hub using the Azureportal.

Register Iot DevicesA device must be registered with your IoT hub before it can connect. In thisquickstart, you can use local terminal or Azure Cloud Shell to register asimulated device.1. Login to your Azure Account with command below.az login2. Run the following command to create the device identity.az iot hub device-identity create --hub-name YourIoTHubName --device-id NameOfYourDevice YourIoTHubName: Replace this placeholder below with the name youchoose for your IoT hub.NameOfYourDevice: The name of the device you're registering. You canchoose any name for your device. In following workshop, you will need touse the same device name throughout this article. You will also need toupdate the device name in the sample applications before you run them.3. Run the following commands in local terminal or Azure Cloud Shell to getthe device connection string for the device you just registered:az iot hub device-identity show-connection-string --hub-name YourIoTHubName --device-id NameOfYourDevice --output tableYourIoTHubName: Replace this placeholder below with the name youchoose for your IoT hub. NoteMake a note of the device connection string, which looks likeHostName YourIoTHubName .azuredevices.net;DeviceId NameOfYourDevice ;SharedAccessKey {YourSharedAccessKey} .You use this value later in the quickstart.

4. You also need a service connection string to enable the back-end applicationto connect to your IoT hub and retrieve the messages. The followingcommand retrieves the service connection string for your IoT hub:az iot hub show-connection-string --name YourIoTHubName -policy-name service --output tableYourIoTHubName: Replace this placeholder below with the name youchoose for your IoT hub. NoteMake a note of the service connection string, which looks likeHostName YourIoTHubName .azuredevices.net;SharedAccessKeyName service;SharedAccessKey {YourSharedAccessKey} .You use this value later in the quickstart. Important!!The service connection string is different from the device connection string.Send simulated telemetryThe simulated device application connects to a device-specific endpoint on yourIoT hub and sends simulated temperature and humidity telemetry.In this workshop, we will be using Python as main language.1. Check if Python is installed.You can verify the current version of Python on your development machineusing one of the following commands:Python2python --versionPython3

python3 --versionYou can download Python from Python.org.2. Run the following command to add the Microsoft Azure IoT Extension forAzure CLI to your Cloud Shell instance. The IOT Extension adds IoT Hub, IoTEdge, and IoT Device Provisioning Service (DPS) specific commands toAzure CLI.az extension add --name azure-cli-iot-extDownload the sample Python project from python/archive/master.zip and extract the ZIParchive.3. Under Linux or MacOS system, make sure Boost Library is installed. Skip thisstep if Windows system is used.Linuxapt-get install libboost-python-devMacOSbrew install boostPython2:brew install boost-pythonPython3:brew install boost-python34. Navigate to the root folder of the downloaded sample Python project. Thennavigate to the iot-hub\Quickstarts\simulated-device folder.5. Open the SimulatedDevice.py file in a text editor of your choice.

Replace the value of the CONNECTION STRING variable with the deviceconnection string you made a note of previously. Then save your changes toSimulatedDevice.py file. NoteMake a note of the device connection string, which looks likeHostName YourIoTHubName .azuredevices.net;DeviceId NameOfYourDevice ;SharedAccessKey {YourSharedAccessKey} .6. In the local terminal window, run the following commands to install therequired libraries for the simulated device application:Python2:pip install azure-iothub-device-clientPython3:pip3 install azure-iothub-device-client7. In the local terminal window, run the following commands to run thesimulated device application:Python2:python SimulatedDevice.pyPython3:python3 SimulatedDevice.pyThe following screenshot shows the output as the simulated deviceapplication sends telemetry to your IoT hub:

TroubleshootTo avoid the import iothub client errorThe current version of the Azure IoT SDK for Python is a wrapper over our C SDK. It isgenerated using the Boost library. Because of that, it comes with several significantlimitations. See more details herea. Check that you have the right version of Python. Be aware that only certain versionsworks fine for this sample.b. Check that you have the right version of C runtime Microsoft Visual C Redistributable for Visual Studio 2019. (We recommend the latest).c. Verify that you have installed the iothub client: pip install azure-iothub-deviceclient .Read telemetry from CloudThe IoT Hub CLI extension can connect to the service-side Events endpoint onyour IoT Hub. The extension receives the device-to-cloud messages sent fromyour simulated device. An IoT Hub back-end application typically runs in thecloud to receive and process device-to-cloud messages.1. Run the following commands in local terminal or Azure Cloud Shell,replacing YourIoTHubName with the name of your IoT hub:az iot hub monitor-events --hub-name YourIoTHubName --deviceid NameOfYourDevice

2. The following screenshot shows the output as the extension receivestelemetry sent by the simulated device to the hub:ReferencesFor more info, please visit ments

Install Azure CLI with aptIf you are running a distribution that comes with apt , such as Ubuntu or Debian,there's an x86 64 package available for the Azure CLI. This package has beentested with and is supported for: Ubuntu trusty, xenial, artful, bionic, and disco Debian wheezy, jessie, and stretch NoteThe package for Azure CLI installs its own Python interpreter, and does not use the systemPython.InstallWe offer two ways to install the Azure CLI with distributions that support apt :As an all-in-one script that runs the install commands for you, and instructionsthat you can run as a step-by-step process on your own.Install with one commandWe offer and maintain a script which runs all of the installation commands inone step. Run it by using curl and pipe directly to bash , or download the scriptto a file and inspect it before running.curl -sL https://aka.ms/InstallAzureCLIDeb sudo bash NoteThis script is only verified for Ubuntu 16.04 and Debian 8 . It may not work on otherdistributions. If you're using a derived distribution such as Linux Mint, follow the manual installinstructions and perform any necessary troubleshooting.

Manual install instructionsIf you don't want to run a script as superuser, follow these manual steps to installthe Azure CLI.1. Get packages needed for the install process:sudo apt-get updatesudo apt-get install curl apt-transport-https lsb-release gnupg2. Download and install the Microsoft signing key:curl -sL https://packages.microsoft.com/keys/microsoft.asc \gpg --dearmor \sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg /dev/null3. Add the Azure CLI software repository:AZ REPO (lsb release -cs)echo "deb [arch amd64] https://packages.microsoft.com/repos/azure-cli/ AZ REPO main" \sudo tee /etc/apt/sources.list.d/azure-cli.list4. Update repository information and install the azure-cli package:sudo apt-get updatesudo apt-get install azure-cliRun the Azure CLI with the az command. To sign in, use the az logincommand.To learn more about different authentication methods, see Sign in with AzureCLI.TroubleshootingHere are some common problems seen when installing with apt . If youexperience a problem not covered here, file an issue on github.

lsb release does not return the correct base distribution versionSome Ubuntu- or Debian-derived distributions such as Linux Mint may not returnthe correct version name from lsb release . This value is used in the installprocess to determine the package to install. If you know the code name of theUbuntu or Debian version your distribution is derived from, you can set theAZ REPO value manually when adding the repository. Otherwise, look upinformation for your distribution on how to determine the base distribution codename and set AZ REPO to the correct value.No package for your distributionSometimes it may be a while after a distribution is released before there's anAzure CLI package available for it. The Azure CLI designed to be resilient withregards to future versions of dependencies and rely on as few of them aspossible. If there's no package available for your base distribution, try a packagefor an earlier distribution.To do this, set the value of AZ REPO manually when adding the repository. ForUbuntu distributions use the bionic repository, and for Debian distributions usestretch . Distributions released before Ubuntu Trusty and Debian Wheezy arenot supported.Proxy blocks connectionIf you're unable to connect to an external resource due to a proxy, make sure thatyou've correctly set the HTTP PROXY and HTTPS PROXY variables in your shell.You will need to contact your system administrator to know what host(s) andport(s) to use for these proxies.These values are respected by many Linux programs, including those which areused in the install process. To set these values:No authexport HTTP PROXY http://[proxy]:[port]export HTTPS PROXY https://[proxy]:[port]

Basic authexport HTTP PROXY http://[username]:[password]@[proxy]:[port]export HTTPS PROXY https://[username]:[password]@[proxy]:[port] NoteIf you are behind a proxy, these shell variables must be set to connect to Azure services with theCLI. If you are not using basic auth, it's recommended to export these variables in your .bashrcfile. Always follow your business' security policies and the requirements of your systemadministrator.You may also want to explicitly configure apt to use this proxy at all times.Make sure that the following lines appear in an apt configuration file in /etc/apt/apt.conf.d/ . We recommend using either your existing globalconfiguration file, an existing proxy configuration file, 40proxies , or 99local ,but follow your system administration requirements.Acquire {http::proxy s::proxy "https://[username]:[password]@[proxy]:[port]";}If your proxy does not use basic auth, remove the [username]:[password]@portion of the proxy URI. If you require more information for proxy configuration,see the official Ubuntu documentation: apt.conf manpage Ubuntu wiki - apt-get howtoIn order to get the Microsoft signing key and get the package from our repository,your proxy needs to allow HTTPS connections to the following address:https://packages.microsoft.com

CLI fails to install or run on Windows Subsystem for LinuxSince Windows Subsystem for Linux (WSL) is a system call translation layer ontop of the Windows platform, you might experience an error when trying to installor run the Azure CLI. The CLI relies on some features that may have a bug inWSL. If you experience an error no matter how you install the CLI, there's a goodchance it's an issue with WSL and not with the CLI install process.To troubleshoot your WSL installation and possibly resolve issues: If you can, run an identical install process on a Linux machine or VM to see ifit succeeds. If it does, your issue is almost certainly related to WSL. To starta Linux VM in Azure, see the create a Linux VM in the Azure Portaldocumentation. Make sure that you're running the latest version of WSL. To get the latestversion, update your Windows 10 installation. Check for any open issues with WSL which might address your problem.Often there will be suggestions on how to work around the problem, orinformation about a release where the issue will be fixed. If there are no existing issues for your problem, file a new issue with WSLand make sure that you include as much information as possible.If you continue to have issues installing or running on WSL, consider installingthe CLI for Windows.UpdateUse apt-get upgrade to update the CLI package.sudo apt-get update && sudo apt-get upgrade

NoteThis command upgrades all of the installed packages on your system that have not had adependency change. To upgrade the CLI only, use apt-get install .sudo apt-get update && sudo apt-get install --only-upgrade -y azure-cliUninstall1. Uninstall with apt-get remove :sudo apt-get remove -y azure-cli2. If you don't plan to reinstall the CLI, remove the Azure CLI repositoryinformation:sudo rm /etc/apt/sources.list.d/azure-cli.list3. Remove the signing key:sudo rm /etc/apt/trusted.gpg.d/microsoft.asc.gpg4. Remove any unneeded packages:sudo apt autoremove ReferencesFor more references, please refer to Microsoft Documentation - Install Azure CLI with aptComments

Install Azure CLI on macOSFor the macOS platform, you can install the Azure CLI with homebrew packagemanager. Homebrew makes it easy to keep your installation of the CLI update todate. The CLI package has been tested on macOS versions 10.9 and later.InstallHomebrew is the easiest way to manage your CLI install. It provides convenientways to install, update, and uninstall. If you don't have homebrew available onyour system, install homebrew before continuing.You can install the CLI by updating your brew repository information, and thenrunning the install command:brew update && brew install azure-cliThe Azure CLI has a dependency on the python3 package in Homebrew, andwill install it on your system, even if Python 2 is available. The Azure CLI isguaranteed to be compatible with the latest version of python3 published onHomebrew.You can then run the Azure CLI with the az command. To sign in, use az logincommand.To learn more about different authentication methods, see Sign in with AzureCLI.TroubleshootingIf you encounter a problem when installing the CLI through Homebrew, here aresome common errors. If you experience a problem not covered here, file an issueon github.

Unable to find Python or installed packagesThere may be a minor version mismatch or other issue during homebrewinstallation. The CLI doesn't use a Python virtual environment, so it relies onfinding the installed Python version. A possible fix is to install and relink thepython3 dependency from Homebrew.brew update && brew install python3 && brew upgrade python3brew link --overwrite python3CLI version 1.x is installedIf an out-of-date version was installed, it could be because of a stale homebrewcache. Follow the update instructions.Proxy blocks connectionYou may be unable to get resources from Homebrew unless you have correctlyconfigured it to use your proxy. Follow the Homebrew proxy configurationinstructions.If you are behind a proxy, HTTP PROXY and HTTPS PROXY must be set toconnect to Azure services with the CLI. If you are not using basic auth, it'srecommended to export these variables in your .bashrc file. Always followyour business' security policies and the requirements of your systemadministrator.In order to get the bottle resources from Homebrew, your proxy needs to allowHTTPS connections to the following addresses: https://formulae.brew.sh https://homebrew.bintray.com

UpdateThe CLI is regularly updated with bug fixes, improvements, new features, andpreview functionality. A new release is available roughly every two weeks. Updateyour local repository information and then upgrade the azure-cli package.brew update && brew upgrade azure-cliUninstallUse homebrew to uninstall the azure-cli package.brew uninstall azure-cliOther installation methodsIf you can't use homebrew to install the Azure CLI in your environment, it'spossible to use the manual instructions for Linux. Note that this process is notofficially maintained to be compatible with macOS. Using a package managersuch as Homebrew is always recommended. Only use the manual installationmethod if you have no other option available.For the manual installation instructions, see Install Azure CLI on Linux manually.Comments

Getting Started with Raspberry PiIn this course, we will be using Raspberry Pi in headless mode (a.k.a nokeyboard, mouse or monitor attached to Raspberry Pi). We will use our personalcomputer to remote access to Raspberry Pi instead. The Raspberry Pi in thisworkshop has prebuild image which has VNC and SSH capability.Getting IP addressFirst of all, we will need IP address of Raspberry Pi. Power up your Raspberry Piwith NB-IoT Hat attached. Then access to website https://maxischallenge.firebaseapp.com/ to obtain your Raspberry Pi Information by referringIMEI from NB-IoT HAT.VNC1. Download VNC Viewer from here. Choose appropriate installer for your PCwhich will remote access to Raspberry Pi.

2. Open VNC Viewer.3. Enter Raspberry Pi IP Address and Press Enter Button.

4. Enter username and password for Raspberry Pi. By default, username is piand password is raspberry .5. Viola! Now you can access to Rasberry Pi remotely.SSH Windowsa. Download Putty software from here.b. Open downloaded Putty.exe.

c. Select SSH and enter your Raspberry Pi IP Address.d. Press Open button to open SSH Terminal.e. When login as appears, enter pi , we are going to login as pi.f. By default the password is raspberry . Mac OS, Linux Run command ssh pi@ youripaddress in local terminal. Enter password raspberry .Comments

Grove Pi with Raspberry PiThis course explains how to use Grove Pi HAT with Rasbperry Pi to interface,control and get data from sensors.The GrovePi can be programmed in Python, C, C#, Go, and NodeJS on theRaspberry Pi. We will be using Python as main language for the course.Install Grove Pi Python (Important) sudo curl -kL dexterindustries.com/update grovepi bash sudo rebootFirmware Update (Important) cd Dexter/GrovePi/Firmware sudo chmod x firmware update.sh sudo bash firmware update.shGetting started with Example DHT Temperature &Humidity SensorSounds familiar? Temperature and humidity are the values that are being sent toAzure Cloud if you are following previous course. Right now we can send thosevalues from actual hardware DHT11 Temperature & Humidity Sensor.

Steps1. Plug the Grove Pi HAT onto Raspberry Pi.2. Plug the DHT11 Sensor (Blue color) to port D4 on GrovePi.3. Create a python script called dht.py.4. Copy the following content into dht.py.#!/usr/bin/env pythonimport grovepi

import mathfrom time import sleep# Connect the Grove Temperature & Humidity Sensor Pro todigital port D4# This example uses the blue colored sensor.# SIG,NC,VCC,GNDsensor 4 # The Sensor goes on digital port 4.# temp humidity sensor type# Grove Base Kit comes with the blue sensor.blue 0# The Blue colored sensor.white 1# The White colored sensor.try:while True:try:# This example uses the blue colored sensor.# The first parameter is the port, the secondparameter is the type of sensor.[temp,humidity] grovepi.dht(sensor,blue)if math.isnan(temp) False andmath.isnan(humidity) False:print("temp %.02f C humidity %.02f%%"%(temp,humidity))sleep(1)except IOError:print ("Error")except KeyboardInterrupt:print ("Pressed Ctrl C. Exiting now.")5. Run command sudo python dht.py to run the program.6. If the setup is correct, we will see temperature and humidity values areshowing up. ImportantWe have discovered that to make the script to run properly, step Install Grove Pi Pythonand Firmware Update must be completed at least once to install proper GrovePi Library.Install GrovePi Library using pip install or pip3 install will cause the script not torun properly.

AlternativeIf the script above does not run nicely as expected, you can consider followingsteps.1. Plug the Grove Pi HAT onto Raspberry Pi.2. Plug the DHT11 Sensor (Blue color) to port D4 on GrovePi.3. Run the command below to run example DHT11 sensor script. cd /home/pi/Dexter/GrovePi/Software/Python sudo python grove dht pro.py ImportantFor this alternative, every time you created a new script, the file grovepi.py must be alongsidewith your created script. The file can be found at the same folder as the file grove dht pro.py .References1. For more examples, you can visit oftware/Python2. For other programming language, you can refer to here oftwareComments

Testing Raspberry Pi SIM7000E NB-IoTHat Maxis NB-IoTNB-IoT AT command testingAT command test is basic step to check if NB-IoT is working in good condition.Prerequisite Raspberry Pi SIM7000E NB-IoT HAT MicroUSB Type B CableSteps1. Insert and lock the NB-IoT SIM card onto NB-IoT HAT (Back). Connect theNB-IoT HAT to Raspberry Pi Board via USB cable.2. Run the command below on Raspberry Pi to check availability of HAT. It willshow /dev/ttyUSB2 if it exists.ls /dev/ttyUSB2

3. Run the command below to install screen utility on Raspberry Pi, whichallows us to communicate to HAT via UART.sudo apt-get install screen4. Run below command to start.screen /dev/ttyUSB2 1152005. Type and enter AT command repeatedly until you see OK in return.6. Run AT commands below to test connection with Internet.- : User input# test using AT- ATOK# check firmware version, make sure it contains SIM7000E- AT GSVSIMCOM LtdSIMCOM SIM7000ERevision:1351B06SIM7000E# check service, result might be different- AT CPSI? CPSI: GSM,Online,502-12,0x1054,62168,512 DCS 1800,-71,0,32-32- AT CPSI? CPSI: NO SERVICE,Online# check signal quality- AT CSQ CSQ: 23,99# configure to use NB-IoT- AT CMNB 2OK- AT CNMP 38OK- AT CBANDCFG "NB-IOT",8OK

- AT CSTT "M2MXNBIOT"OK- AT CPSI? CPSI: LTE 8,3702,0,0,-10,-82,-72,15# check establish connection- AT CIPSTATUSOKSTATE: IP START# start establish connection- AT CIICROK- AT CIPSTATUSOKSTATE: IP GPRSACT# get IP address- AT CIFSR10.247.96.227# ping www.google.com- AT CIPPING "www.google.com" CIPPING: 1,"172.217.166.132",111,52 CIPPING: 2,"172.217.166.132",170,52 CIPPING: 3,"172.217.166.132",110,52 CIPPING: 4,"172.217.166.132",128,527. Run Ctrl-a then Ctrl-d to minimise the screen. To Resume the screenrun screen -r .8. Run Ctrl-a then type :quit to quit the screen.PPP Installation on Raspberry PiNB-IoT HAT offers PPP (Point-to-Point Protocol) for us to connect Raspberry Pito Internet easily. The following steps show how to establish Internet connectionwith Raspberry Pi.

Prerequisite Raspberry Pi SIM7000E NB-IoT HAT MicroUSB Type B CableSteps1. Plug the NB-IoT HAT into Raspberry Pi Board using USB. Ensure the MaxisSIM card is inserted and secured on the HAT.2. Run the command below on Raspberry Pi to check availability of HAT. It willshow /dev/ttyUSB2 if it exists.ls /dev/ttyUSB23. Go to directory where you have downloaded the GIT respository. E.g. /home/pi/maxis-nbiot-hackathoncd /home/pi/maxis-nbiot-hackathon4. Run the commands below to install PPP on Raspberry Pi.

cd "Raspberry Pi/PPP Installer" sudo chmod x install.sh sudo ./install.sh5. Run command below to start the connection.sudo systemctl start nbiot.service6. Run command below to check if interface ppp0 exists.ifconfig7. If it is successful, you should see IP exists in interface ppp0 from ifconfigcommand.8. Run command below to stop the connection.sudo systemctl stop nbiot.service9. To automate the connection during Raspberry Pi boot-up, run commandsudo systemctl enable nbiot.service . To see the effect, run sudoreboot to restart Raspberry Pi.ReferencesFor more references, please visit https://www.rhydolabz.com/wiki/?p 16325Comments

Send simulated telemetry using RaspberryPiWe will be using Raspberry Pi to send simulated temperature and humiditytelemetry for testing purpose. In this workshop, we will be using Python as mainlanguage.Steps1. Check if Python is installed. You can verify the current version of Python onyour development machine using one of the following commands:Python2:python --versionPython3:python3 --version2. You can download Python by running below commands.Python2:sudo apt-get install pythonsudo apt-get install python-devPython3:sudo apt-get install python3sudo apt-get install pyt

Create simple server and web application to view and monitor the activity of the sensors connected to Raspberry Pi. . Ubuntu 16.04 macOS Azure Cloud Shell Download the MSI installer Ubuntu install instructions macOS install . Ubuntu trusty, xenial, artfu

Related Documents:

SAP Cloud Platform Internet of Things Device Management Your Gateway System Environment Cloud Platform PaaSeg., HANA, Kafka, PostgreSQL App User Admin IoT Core Service IoT Message Management Service Your IoT Data IoT service IoT Gateway Edge Devices Device 1 Device 2 Device 3 IoT Gateway Cloud IoT Service Cockpit Send and receive

MINOR DEGREE IN INTERNET OF THINGS (IoT) (DRAFT SYLLABUS) Course Structure Sr. No. Semester Temp. Course Code Course Title L T P Credits 1. 3 IoT-1 Introduction to Internet of Things 3 0 2 4 2. 4 IoT-2 IoT Protocols 3 0 2 4 3. 5 IoT-3 IoT System Design 3 0 2 4 4. 6 IoT-4 Industry 4.0 and IIoT 3 0 2 4 5.

Open Data Application Programming Interface (API) for IoT Data in Smart Cities and Communities Y.FW.IC.MDSC Framework of identification and connectivity of Moving Devices in Smart City Y.IoT-DA-Counterfeit Information Management Digital Architecture to combat counterfeiting in IoT Y.IoT-Interop An architecture for IoT interoperability Y.IoT-IoD-PT

Preface Overview The Maxis Highway Override (abbreviated MHO ), sometimes called Project Symphony (abbreviated PS), is an attempt to join the Maxis Highways (abbreviated as MHW) with the Real Highway Mod (RHW) by the total conversion of the MHW. The new MHW will have the

4 MAXIS GBN Global Perspectives This report is based on the views of senior employee benefits professionals around the world and looks at key drivers behind the changing global employee benefits sector. We spoke to over 200 people about critical industry issues at both a global and local level to understand how the market is truly changing.

Essentials WS IoT 2019 Datacenter WS IoT 2019 Storage Standard WS IoT 2019 Storage Workgroup WS IoT 2019 . product key like Windows 10 IoT Enterprise? No. It does have Product Key Entry Activation (PKEA) but all Windows Server editions since 2008 use OEM Activ

Oracle IoT Cloud Service . IoT Cloud Service delivers solid foundation to quickly build IoT solutions . that integrates with your enterprise applications . and extend the reach of the IoT and business applications to your physical devices . and sensors . Devices . Business Applications . IoT Cloud Service Platform . Connect . Analyze .

IoT, discuss how IoT operations can be governed and what is needed, including the roles and responsibilities involved in IoT governance, and describe a proposed governance framework implementation as well as the future challenges facing IoT governance. This paper is intended to showcase how IoT governance can be implemented.