IOT NOTES BASED ON THE ENGINEERING ACADEMICS

sunejakatkar1 58 views 33 slides Jul 23, 2024
Slide 1
Slide 1 of 33
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33

About This Presentation

IOT NOTES


Slide Content

Module 1: Introduction to IoT
•IntroductiontoIoT
‐DefiningIoT,
‐CharacteristicsofIoT,
‐PhysicaldesignofIoT,
‐LogicaldesignofIoT,
‐FunctionalblocksofIoT,
‐BriefreviewofapplicationsofIoT.
•SmartObject
‐Definition,
‐CharacteristicsandTrends
•Self-learningTopics:Hardwareandsoftwaredevelopmenttoolsfor-Arduino,NodeMCU,
ESP32,RaspberryPi,forimplementinginternetofthings,SimulatorsCircuit.io,Eagle,Tinkercad
PMModak SSPMCOE 1

DefinitionofIoT
Adynamicglobalnetworkinfrastructurewithself-configuring
capabilitiesbasedonstandardandinteroperablecommunication
protocolswherephysicalandvirtual"things"haveidentities,physical
attributes,andvirtualpersonalitiesanduseintelligentinterfaces,and
areseamlesslyintegratedintotheinformationnetwork,often
communicatedataassociatedwithusersandtheirenvironments.
PMModak SSPMCOE 2

CharacteristicsofIoT
1.Dynamicandself-Adapting:IoTdevicesandsystemsmayhavethecapabilityto
dynamicallyadaptwiththechangingcontextsandtakeactionsbasedontheir
operatingcondition.Ex:Surveillancecamerascanadapttheirmodesbasedon
whetheritisdayornight.
2.Self–Configuring:IoTdevicesmayhaveself-Configuringcapabilityallowingalarge
numberofdevicestoworktogethertoprovidecertainfunctionality.
3.Interoperablecommunicationprotocols:IoTDevicesmaysupportanumberof
interoperablecommunicationprotocolsandcancommunicatewithotherdevicesand
alsowiththeinfrastructure.
4.UniqueIdentity:EachIoTdeviceshasauniqueidentityandauniqueidentifier.IP
address,URI).IoTsystemsmayhaveintelligentinterfaceswhichadaptbasedonthe
context,allowcommunicationwithusersandtheenvironmentcontexts.
5.Integratedintoinformationnetwork:IoTdevicesareusuallyintegratedintothe
informationnetworkthatallowsthemtocommunicateandexchangedatawithother
devicesandsystems.
PMModak SSPMCOE 3

PhysicalDesignofIoT
•The"Things"inIoTusuallyreferstoIoTdeviceswhichhaveuniqueidentitiesand
canperformremotesensing,actuatingandmonitoringcapabilities.
•IoTdevicescan:
‐Exchangedatawithotherconnecteddevicesandapplications(directly
orindirectly),or
‐Collectdatafromotherdevicesandprocessthedatalocallyor
‐Sendthedatatocentralizedserversorcloud-basedapplicationback-ends
forprocessingthedata,or
‐PerformsometaskslocallyandothertaskswithintheIoT
infrastructure,basedontemporalandspaceconstraints(s(i.e.
Memory,processingcalibrators,communicationlatenciesandspeed
anddeadlines).
PMModak SSPMCOE 4

Genericblock diagramofan IoTDevice
•An IoT device may consist of several interfaces for connections to
other devices, bothwiredandwireless.
•I/Ointerfacesfor sensors
•Interfaces for Internet connectivity
•Memoryandstorage interfaces
•Audio/videointerfaces.
PMModak SSPMCOE 5

PhysicalDesignofIoT: IoTProtocols
PMModak SSPMCOE 6

1.LinkLayer:
•LinkLayerprotocolsdeterminehowthedataisphysicallysentover
thenetworksphysicallayerormedium(examplecopperwire,
electricalcable,orradiowave).
•TheScopeofTheLinkLayeristheLastLocalNetworkconnectionsto
whichhostisattached.Hostonthesamelinkexchangedatapackets
overthelinklayerusingthelinklayerprotocol.
•Linklayerdetermineshowthepacketsarecodedandsignaledbythe
hardwaredeviceoverthemediumtowhichthehostisattached.
IoTProtocols: Link Layer
PMModak SSPMCOE 7

•802.3Ethernet:802.3isacollectionsofwiredEthernetstandardsforthelinklayer.Forexample802.3
10BASE5Ethernetthatusescoaxialcableasasharedmedium,802.3.iisstandardfor10BASETEthernetover
coppertwistedpairconnection,Standardsprovidedataratesfrom10Mb/sto40gigabitspersecondand
thehigher.ThesharedmediuminEthernetcanbeacoaxialcable,twistedpairwireorandOpticalfiber.
Sharedmediumcarriesthecommunicationforallthedevicesonthenetwork.
•802.1-WI-FI:IEEE802.3isacollectionsofwirelessLocalareanetwork.(WLAN)communicationstandards,
includingextensivedescriptionsofthelinklayer.Forexample802.11aoperateinthe5GHzband,802.11b
and802.11goperateinthe2.4GHzband.802.11acoperatesinthe5Ghertzband.
•802.16wiMAX:IEEE802.16isacollectionofwirlessbroadbandandStandards,includingextensive
descriptionsforthelinklayeralsocalledWiMAXwimaxstandardprovidesadataratesfromfrom1.5Mb/s
to1Gb/stherecentupdateprovidesdataratesofhundredmegabitspersecondformobilestation.
•802.15.4LR-WPAN:IEEE802.15.4isacollectionsofstandardforlowratewirelesspersonalarea
network(LRWPAN).ThesestandardformthebasisofspecificationsforhighlevelcommunicationZigbee.LR-
WPANstandardsprovidedataratesfrom40kb/s.Thesestandardsprovidelowcostandlowspeed
Communicationsforpowerconstraineddevices.
•2G/3G/4Gmobilecommunications:Thesearethedifferentgenerationsofmobilecommunication
standardsincludingsecondgeneration(2GincludingGSMandCDMA).3rdGeneration(3GincludingUMTS
andCDMA2000)and4thgeneration4GincludingLTE.
IoTProtocols: Link Layer
PMModak SSPMCOE 8

•ThenetworklayerareresponsibleforsendingofIPdatagramsfromthesourcenetworktothe
destinationnetwork.
•ThislayerPerformsthehostaddressingandpacketrouting.
•Thedatagramscontainsasourceanddestinationaddresswhichareusedtoroutethemfromthe
sourcetothedestinationacrossmultiplenetworks.
•HostIdentificationisdoneusingthehierarchyIPaddressingschemessuchasIPv4orIPv6.
‐IPv4:Internetprotocolversionsforopenparentsclose(IPv4)istheremostdeployedinternet
protocolthatisusedtoidentifythedeviceisonanetworkusingahierarchylatestschemes.
Ituses32bitaddressesschemethatallowstotalof2
32
address.Asmoreandmoredevices
gotconnectedtotheinternet.TheIPv4hassucceededbyIPv6.
‐IPv6:ItisthenewestversionsofinternetprotocolandsuccessortoIPv4.IPv6uses128bit
addressschemesthatarelosttotalof2
128
are3.4*10
38
address.
‐6LoWPAN:IPv6overlowpowerwirelesspersonalareanetworksbringsIPprotocoltothelow
powerdevicewhichhavelimitedprocessingcapabilityitoperateinthe2.4GHzfrequency
rangeandprovidethedatatransferrateoffto50kb/s.
IoTProtocols: Network/ internetlayer
PMModak SSPMCOE 9

IoTProtocols: Transport layer
•TheTransportlayerprotocolsprovidesend-to-endmessagetransfercapabilityindependentofthe
underlyingnetwork.
•Themessagetransfercapabilitycanbesetuponconnections,eitherusinghandshakeorwithout
handshakeacknowledgements.
•Providesfunctionssuchaserrorcontrol,segmentation,flowcontrolandcongestioncontrol.
•TCP:Transmissioncontrolprotocolisthemostwidelyusedtotransportlayerprotocolthatis
usedbythewebbrowsersalongwithHTTP,HTTPSapplicationlayerprotocolsemailprogram
(SMTPapplicationlayerprotocol)andfiletransferprotocol.TCPisaconnectionOrientedand
statefulprotocolwhileIPprotocoldealswithsendingpackets,TCPensuresreliabletransmissions
ofpacketsinorder.TCPalsoprovideerrordeductioncapabilitysothatduplicatepacketscanbe
discardedandlowpacketsareretransmitted.Theflowcontrolcapabilityensuresthattherateat
whichthesendersincethedataisnowtotootohighforthereceivertoprocess.
•UDP:UserDatagramProtocolunlikeTCP,whichrequirescarryingoutaninitialsetupprocedure,
UDPisaconnectionlessprotocol.UDPisusefulfortimesensitiveapplicationtheyhaveverysmall
dataunitstoexchangeanddonotwanttheoverheadofconnectionsetup.UDPisatransactions
orientedandstatelessprotocol.UDPdoesnotprovideguaranteeddelivery,orderingofmessages
andduplicateeliminations.
PMModak SSPMCOE 10

IoTProtocols: Applicationlayer
•Applicationlayerprotocoldefinehowtheapplicationinterfaceswith
thelowerlayerprotocolstosendthedataoverthenetwork.
•Dataaretypicallyinfiles,isencodedbytheapplicationlayerprotocol
andencapsulatedinthetransportlayerprotocol.
•Applicationlayerprotocolenableprocess-to-processconnectionusing
ports.
•Protocols:HTTP,COAP,Websocket,MQTT,XMPP,DDS,AMQP
PMModak SSPMCOE 11

IoTProtocols: Applicationlayer
HTTP:
•HyperTextTransferProtocolistheapplicationlayerprotocolthatformsthefoundationsofworld
widewebhttpincludes,,commandssuchasGET,PUT,POST,DELETE,HEAD,TRACE,OPTIONSetc.
•Theprotocolfollowsarequest-responsemodelwhereareclientsendsrequesttoserverusingthe
http,commands.
•HTTPisastatelessprotocolandeachhttprequestisindependentotherrequest
CoAP:
•ConstrainedApplicationProtocolisanapplicationlayerprotocolformachinetomachine
applicationM2Mmeantforconstrainedenvironmentwithconstraineddevicesandconstrained
networks.
•LikehttpCoAPisawebtransferprotocolandusesarequest-responsemodel,howeveritrunson
thetopoftheUDPinsteadofTCPCoAPusesaclient–serverarchitecturewhereclient
communicatewithserverusingconnectionlessdatagrams.
•ItisdesignedtoeasilyinterfacewithHTTP.LikeHTTP,CoAPsupportsmethodsuchasGET,PUT,
DELETE.
PMModak SSPMCOE 12

IoTProtocols: Applicationlayer
WebSocket:
•WebSocketprotocolallowsfullduplexcommunicationoverasinglesocketconnections
forsendingmessagebetweenclientandserver.
•WebSocketisbasedonTCPandAllowsstreamsofmessagestobesentbackandforth
betweentheclientandserverwhilekeepingtheTCPconnectionopen.
•Theclientcanbeabrowser,amobileapplicationandIoTdevice.
MQTT:
•MessageQueueTelemetryTransportitisalightweightmessageprotocolbasedon
public-subscribemodel.
•MQTTusesaclientserverArchitecturebytheclientssuchasanIoTdeviceconnectto
theserveralsocalledtheMQTTbrokerandpublishersmessagetotopicontheserver.
•ThebrokerforwardthemessagetotheclientssubscribedtotopicMQTTiswellsuitedfor
constrainedandenvironmentswheredeviceshavelimitedprocessingandmemory
resourcesandthenetworkbandwidthislow.
PMModak SSPMCOE 13

IoTProtocols: Applicationlayer
XMPP:ExtensibleMessagingandPresenceProtocolitisaprotocolforreal-time
communicationandstreamingXMLdatabetweennetworkentities.XMPPpowerswide
rangeofapplicationsincludingmessaging,presence,datasyndication,gamingmultiparty
chatandvoice/voicecalls.XMPPAllowssendingsmallchunksofXMLdatafromone
networkentitytoanotherinrealtime.XMPPsupportsbothclienttoserverandserver–
clientcommunicationpath.
DDS:Datadistributionserviceisthedatecentricmiddlewarestandardfordevice-to-
deviceormachinetomachinecommunicationDDSusesapublishsubscribemodelwhere
publisher(exampledevicethatgeneratedata)createtopicstowhichsubscriberspercan
subscribepublisherisanobjectresponsiblefordatadistributionsandthesubscriber
responsibleforreceivingpublisheddata.DDSprovidequalityofservice(QoS)controland
configurablereliability
AMQP:AdvancedMessageQueuingprotocols.itisanopenapplicationlayerprotocolfor
businessmessaging.AMQPsupportpointtopointandpublish-subscribemodelrouting
andqueuing.AMQPbrokerreceivemessagefrompublishersexampledevicesor
applicationsthatgeneratedataandaboutthemoverconnectionstoconsumerspublishers
publishthemessagetoexchangewhichthendistributemessagecopiestoqueues.
PMModak SSPMCOE 14

LogicalDesignofIoT
•LogicaldesignofanIoTsystem
referstoanabstract
representationoftheentities
andprocesseswithoutgoing
intothelow-levelspecificsof
theimplementation.
•AnIoTsystemcomprisesofa
numberoffunctionalblocks
thatprovidethesystemthe
capabilitiesforidentification,
sensing, actuation,
communication, and
management.
PMModak SSPMCOE 15

The functional blocks
•Devices:AnIoTsystemcomprisesofthedevicesthatprovidesensing,actuation,
monitoringandcontrolfunction.
•Communication:communicationblockhandlethecommunicationsystems.
•Services:AnIoTsystemusesvarioustypesofIoTservicessuchasservicesfor
devicemonitoring,devicecontrolservices,datapublishingservicesandservices
fordeviceDiscovery.
•Management:FunctionalblocksprovidevariousfunctionstogoverntheIoT
system.
•Security:SecurityfunctionalblocksecurityIoTsystemandbyprovidingfunctions
suchasapplicationauthorizationmessageandcontentintegrityanddata
security.
•Application:IoTapplicationprovidesandinterfacethattheusercanusedto
controlandmonitorvariousaspectsoftheIoTsystem.Applicationalsoallow
userstoviewthesystemstatusandvieworanalyzetheprocessedtodata.
PMModak SSPMCOE 16

Applications of IoT
1)Home
2)Cities
3)Environment
4)Energy
5)Retail
6)Logistics
7)Agriculture
8)Industry
9)Health & Life Style
PMModak SSPMCOE 17

IoT communication model
•Request Response Communications Model
•Publish –Subscribe Communication Model
•Push Pull Communication Model
•Exclusive Pair Communication Model
PMModak SSPMCOE 18

Request-Responsecommunicationmodel
•Request-Responseisacommunicationmodelinwhichtheclient
sendsrequeststotheserverandtheserverrespondstotherequests.
•Whentheserverreceivesarequest,itdecideshowtorespond,
fetchesthedata,retrievesresourcerepresentations,preparesthe
response,andthensendstheresponsetotheclient.
PMModak SSPMCOE 19

Publish-Subscribecommunicationmodel
•Publish-Subscribe is a communication model that involves publishers, brokers
and consumers.
•Publishers are the source of data. Publishers send the data to the topics which
are managed by the broker. Publishers are not aware oftheconsumers.
•Consumers subscribe to the topics whicharemanagedbythebroker.
•When the broker receives data for atopicfromthepublisher,it sends the data to
all the subscribedconsumers.
PMModak SSPMCOE 20

Push-Pullcommunicationmodel
•Push-Pullisacommunicationmodelinwhichthedataproducerspushthe
datatoqueuesandtheconsumerspullthedatafromthequeues.Producers
donotneedtobeawareoftheconsumers.
•Queueshelpindecouplingthemessagingbetweentheproducersand
consumers.
•Queuesalsoactasabufferwhichhelpsinsituationswhenthereisamismatch
betweentherateatwhichtheproducerspushdataandtheraterateatwhich
theconsumerspulldata.
PMModak SSPMCOE 21

Exclusive Paircommunicationmodel
•ExclusivePair isa
bidirectional, fully duplex
communication model that
uses a persistent connection
betweentheclient and
server.
•Once the connection is setup
itremains openuntil the
clientsends arequest to
close theconnection.
•Clientandserver cansend
messages to each other after
connectionsetup.
PMModak SSPMCOE 22

IoT communication APIs
•REST-based communication API:
•WebSocket based communication API:
PMModak SSPMCOE 23

REST-basedCommunicationAPIs
•Representational State Transfer
(REST) is a set of architectural
principles by which you can design
web services and web APIs that
focus on a system’s resources and
howresourcestatesare
addressedandtransferred.
•REST APIs follow the request-
responsecommunicationmodel.
•The REST architectural constraints
apply to the components,
connectors, and data elements,
within a distributed hypermedia
system.
PMModak SSPMCOE 24

WebSocket-basedCommunicationAPIs
•WebSocketAPIsallowbi-
directional, fullduplex
communication between
clientsandservers.
•WebSocket APIs follow the
exclusive pair
communicationmodel
PMModak SSPMCOE 25

Smart Objects: Introduction
•Smartobjectsare,quitesimply,thebuildingblocksofIoT.
•Theyarewhattransformeverydayobjectsintoanetworkofintelligentobjectsthatareabletolearn
fromandinteractwiththeirenvironmentinameaningfulway.
•TherealpowerofsmartobjectsinIoTcomesfrombeingnetworkedtogetherratherthanbeing
isolatedasstandaloneobjects.
•Thisabilitytocommunicateoveranetworkhasamultiplicativeeffectandallowsforverysophisticated
correlationandinteractionbetweendisparatesmartobjects.
•Example
‐Ifasensorisastandalonedevicethatsimplymeasuresthehumidityofthesoil,itisinterestingand
useful,butitisn’trevolutionary.Ifthatsamesensorisconnectedaspartofanintelligentnetworkthat
isabletocoordinateintelligentlywithactuatorstotriggerirrigationsystemsasneededbasedonthose
sensorreadings,wehavesomethingfarmorepowerful.
‐Extendingthatevenfurther,imaginethatthecoordinatedsensor/actuatorsetisintelligently
interconnectedwithothersensor/actuatorsetstofurthercoordinatefertilization,pestcontrol,andso
on—andevencommunicatewithanintelligentbackendtocalculatecropyieldpotential.
‐ThisnowstartstolooklikeacompletesystemthatbeginstounlockthepowerofIoTandprovidesthe
intelligentautomationwehavecometoexpectfromsucharevolutionarytechnology.
PMModak SSPMCOE 26

Smart Objects: A Definition
•ADefinitionHistorically,thedefinitionofasmartobjecthasbeena
bitnebulousbecauseofthedifferentinterpretationsoftheterm
byvaryingsources.
•Toaddtotheoverallconfusion,thetermsmartobject,despite
somesemanticdifferences,isoftenusedinterchangeablywith
termssuchassmartsensor,smartdevice,IoTdevice,intelligent
device,thing,smartthing,intelligentnode,intelligentthing,
ubiquitousthing,andintelligentproduct.
•Inordertoclarifysomeofthisconfusion,Asmartobject,isa
devicethathas,ataminimum,thefollowingfourdefining
characteristics.
PMModak SSPMCOE 27

Smart Objects: A Definition
•Definingcharacteristics
1.Processingunit:
-Asmartobjecthassometypeofprocessingunitforacquiringdata,processing
andanalyzingsensinginformationreceivedbythesensor(s),coordinating
controlsignalstoanyactuators,andcontrollingavarietyoffunctionsonthe
smartobject,includingthecommunicationandpowersystems.
-Thespecifictypeofprocessingunitthatisusedcanvarygreatly,dependingon
thespecificprocessingneedsofdifferentapplications.
-Themostcommonisamicrocontrollerbecauseofitssmallformfactor,
flexibility,programmingsimplicity,ubiquity,lowpowerconsumption,andlow
cost.
PMModak SSPMCOE 28

Smart Objects: A Definition
Definingcharacteristics
2.Sensor(s)and/oractuator(s):
-Asmartobjectiscapableofinteractingwiththephysicalworld
throughsensorsandactuators.
-Asensorlearnsandmeasuresitsenvironment,whereasan
actuatorisabletoproducesomechangeinthephysicalworld.
-Asmartobjectdoesnotneedtocontainbothsensorsand
actuators.Infact,asmartobjectcancontainoneormultiple
sensorsand/oractuators,dependingupontheapplication.
PMModak SSPMCOE 29

Smart Objects: A Definition
Definingcharacteristics
3.Communicationdevice:
-Thecommunicationunitisresponsibleforconnectingasmart
objectwithothersmartobjectsandtheoutsideworld(viathe
network).
-Communicationdevicesforsmartobjectscanbeeitherwiredor
wireless.
-InIoTnetworkssmartobjectsarewirelesslyinterconnectedfora
numberofreasons,includingcost,limitedinfrastructure
availability,andeaseofdeployment.
-Therearemyriaddifferentcommunicationprotocolsforsmart
objects.
PMModak SSPMCOE 30

Smart Objects: A Definition
Definingcharacteristics
4.Powersource:
-Smartobjectshavecomponentsthatneedtobepowered.
-Themostsignificantpowerconsumptionusuallycomesfromthecommunicationunitofasmart
object.Buttheotherthreesmartobjectbuildingblocks,thepowerrequirementsvarygreatlyfrom
applicationtoapplication.
-Typically,smartobjectsarelimitedinpower,aredeployedforaverylongtime,andarenoteasily
accessible.
-Thiscombination,especiallywhenthesmartobjectreliesonbatterypower,impliesthatpower
efficiency,judiciouspowermanagement,sleepmodes,ultra-lowpowerconsumptionhardware,
andsoonarecriticaldesignelements.
-Forlong-termdeploymentswheresmartobjectsare,forallpracticalpurposes,inaccessible,power
iscommonlyobtainedfromscavengersources(solar,piezoelectric,andsoon)orisobtainedina
hybridizedmanner,alsotappingintoinfrastructurepower.
PMModak SSPMCOE 31

Characteristics of a Smart Object
PMModak SSPMCOE 32

Trends in Smart Objects
•Sizeisdecreasing:Thereisacleartrendofever-decreasingsize.Somesmartobjectsaresosmall
theyarenotevenvisibletothenakedeye.Thisreducedsizemakessmartobjectseasiertoembed
ineverydayobjects.
•Powerconsumptionisdecreasing:Thedifferenthardwarecomponentsofasmartobject
continuallyconsumelesspower.Thisisespeciallytrueforsensors,manyofwhicharecompletely
passive.Somebatterypoweredsensorslast10ormoreyearswithoutbatteryreplacement.
•Processingpowerisincreasing:Processorsarecontinuallygettingmorepowerfulandsmaller.This
isakeyadvancementforsmartobjects,astheybecomeincreasinglycomplexandconnected.
•Communicationcapabilitiesareimproving:It’snobigsurprisethatwirelessspeedsarecontinually
increasing,buttheyarealsoincreasinginrange.IoTisdrivingthedevelopmentofmoreandmore
specializedcommunicationprotocolscoveringagreaterdiversityofusecasesandenvironments.
•Communicationisbeingincreasinglystandardized:Thereisastrongpushintheindustryto
developopenstandardsforIoTcommunicationprotocols.Inaddition,therearemoreandmore
opensourceeffortstoadvanceIoT.
PMModak SSPMCOE 33
Tags