SlideShare uma empresa Scribd logo
1 de 43
Baixar para ler offline
IoT Implementation of Sensor
Data Acquisition in
Surveillance Applications
Presented by
ARUN JOE JOSEPH
Roll No: 8
S3 M.Tech VLSI & ES
3February2016
1
Introduction
• Surveillance is an important aspect of both military and
civilian security, anywhere in the world.
• It is essential to gather data or intelligence in different forms,
to add an extra layer of security in either one of the cases.
• In this project, we implement an IoT powered surveillance
equipment.
3February2016
2
Introduction
3February2016
3
Objective
• Our aim in this project is to implement Internet of Things (IoT)
model for surveillance which:
• Acquires data using sensors.
• Pushes the collected data into the Cloud / Server.
• Monitor this data using a remote terminal in the network.
3February2016
4
Methodology
• Raspberry Pi is used as a gateway device for the sensors that
are used to collect data.
• Sensor tag consisting of different sensors, is used to measure
different environment variables.
• MQTT protocol is used to publish and subscribe the sensor
data into and from the cloud.
• Visual data is also collected using a camera. The collected data
is streamed to a server/ cloud platform, where it can be
monitored.
3February2016
5
Literature Review
3February2016
6
Internet of Things - IoT
• The Internet of Things (IoT) is an environment in which
objects, animals or people are provided with unique
identifiers and the ability to transfer data over a network
without requiring human-to-human or human-to-computer
interaction. IoT has evolved from the convergence of wireless
technologies, micro-electromechanical systems (MEMS) and
the Internet. The concept may also be referred to as the
Internet of Everything.
3February2016
7
Internet of Things – IoT (contd.)
3February2016
8
Internet of Things – IoT (contd.)
3February2016
9
Internet of Things – IoT (contd.)
3February2016
10
Raspberry Pi
3February2016
11
Raspberry Pi - Technical
Specifications
• Broadcom BCM2836 Arm7 Quad Core Processor powered
Single Board Computer running at 900MHz
• 1GB RAM
• 40pin extended GPIO
• 4 x USB 2 ports
• 4 pole Stereo output and Composite video port
• Full size HDMI
• CSI camera port for connecting the Raspberry Pi camera
• DSI display port for connecting the Raspberry Pi touch screen
display
• Micro SD port for loading your operating system and storing
data
• Micro USB power source
3February2016
12
No – IR Camera
3February2016
13
No – IR Camera Features
• 5 megapixel native resolution sensor-capable of 2592 x 1944
pixel static images
• Supports 1080p30, 720p60 and 640x480p60/90 video
• Camera is capable of 2592 x 1944 pixel static images
• No Infrared filter making it perfect for taking Infrared
photographs or photographing objects in low light (twilight)
conditions
• 1.4 µm X 1.4 µm pixel with OmniBSI technology for high
performance (high sensitivity, low crosstalk, low noise)
• Optical size of 1/4"
3February2016
14
Sensor Tag CC2650
3February2016
15
Sensor Tag Features
• Supports 10 Low-Power Sensors
• Ambient Light
• Infrared Temperature
• Ambient Temperature
• Accelerometer
• Gyroscope
• Magnetometer
• Pressure
• Humidity
• Microphone
• Magnetic Sensor
3February2016
16
Sensor Tag – Block Diagram
3February2016
17
Design and
Implementation
3February2016
18
Block Diagram
3February2016
19
Raspberry Pi – Camera
Interfacing
• Simple approach to streaming video using a buffer and a raw
byte stream.
• Leads to small delays (<100ms) and a high frame rate (~30fps)
of the streamed video, making it perfect for live video
streaming and feedback.
• Raspberry Pi used a utility called netcat to send data from the
Pi to the computer.
3February2016
20
Raspberry Pi – Camera
Interfacing (contd.)
• On the receiving computer, we streamed the video through
the open source video player mplayer and used netcat to
capture the video bits that were sent from the Pi.
• Computer we use is made ready to accept the data that the
Raspberry Pi sends by running the following command in a
terminal.
• nc.traditional -l -p 5000 | mplayer -fps 60 -cache 1024 -
•
3February2016
21
Raspberry Pi – Camera
Interfacing (contd.)
• We use netcat to open up a connection on port 5000 of your
computer for receiving bytes from a connection, which is then
send (pipe) to the mplayer application used to play the video.
• The additional flags set the desired frame rate of the video to
60 frames per second and sets the video cache size to 1024
bytes.
3February2016
22
Raspberry Pi – Camera
Interfacing (contd.)
• At transmitting end, video bytes are captured from the camera
and saved into the fifo.500 pipe.
• The pipe essentially acts as a FIFO (first-in first-out) buffer that
stores the video bytes as they arrive and allows the bytes to
be read from the buffer by other utilities.
• We then use the netcat utility to read bytes from the
pipe and send them off to the receiving terminal that we’ve
already set up to wait for transmitted data.
•
3February2016
23
Raspberry Pi – Camera
Interfacing (contd.)
• mkfifo fifo.500
• Pipe fifo.500 ready to receive and send bytes.
• cat fifo.500 | nc.traditional <your ip> 5000 &
• We use the netcat utility to send any bytes that may be
written into the pipe off to port 5000 on the computer that
we’ve set up.
• /opt/vc/bin/raspivid -o fifo.500 -t 0 -b 10000000
• We use the built-in video capture script raspivid on the
Raspberry Pi to write data into the pipe created above.
• The -t parameter - time for which the video capture script
should capture video. Setting the -t parameter to 0 makes the
video stream with no timeout. The -b tag indicates the bitrate
of the video stream.
3February2016
24
Raspberry Pi – Sensor tag
CC2650 interfacing
• Raspberry Pi is interfaced to the TI Sensor tag using a
Bluetooth Low Energy (BTLE) BT 4.0 adapter connected to the
Raspberry Pi.
• CC2650 SensorTag is a BLE peripheral slave device.
• Python code is written to scan for the nearby Bluetooth
devices advertising its MAC ID.
• During the scan, the sensor tag must be turned on, for it to be
discovered.
3February2016
25
Raspberry Pi – Sensor tag
CC2650 interfacing (contd.)
• On start-up, the SensorTag advertises with a 100 millisecond
interval indicated by the green LED blinking at a 1 Hz rate.
Advertising can be stopped/started by pressing the power
button. The SensorTag MUST be advertising for the device to
be discoverable by the gateway device.
• The central device can only connect to a SensorTag that is
advertising.
• In the advertising state the central device can:
• Scan and discover the Sensor Tag. (Scan response contain name
“CC2650 SensorTag”).
• Establish connection based on user defined Connection
Parameters.
3February2016
26
Raspberry Pi – Sensor tag
CC2650 interfacing (contd.)
• The connection is established by the Central Device and the
sensors can then be configured to provide measurement data.
• When connected the central device can:
• Discover Characteristic by UUID.
• Write to and read from Characteristic Value (configure sensors
and read data).
• Disconnect the device and return it to an advertising state.
• To obtain the data, the corresponding sensor must first be
activated, which is done via a Characteristic Value write to
appropriate service.
3February2016
27
Raspberry Pi – Sensor tag
CC2650 interfacing (contd.)
• The most power efficient way to obtain measurements for a
sensor is to:
• 1. Enable notification
• 2. Enable Sensor
• 3. When notification with data is obtained at the Master side,
disable the sensor (notification still on).
3February2016
28
Raspberry Pi – Sensor tag
CC2650 interfacing (contd.)
• The sensors are enabled by writing 0x01 to the
corresponding configuration characteristic and then disabled
by writing 0x00.
• Since the SensorTag reference platform supplies the raw,
uncalibrated sensor outputs to the IoT enabled Raspberry Pi,
necessary calibration for the operating environment is to be
performed.
3February2016
29
Raspberry Pi – Sensor tag
CC2650 interfacing (contd.)
• When an enable command (0x01) is written to
the configuration characteristic, the sensor starts to perform
measurements each second (average over four
measurements) and the data is stored in
the data characteristic.
• When the disable command (0x00) is issued, the sensor is put
in stand-by mode and no data are cleared and no longer
reported.
3February2016
30
MQTT Publish & Subscribe
• Data obtained from the sensor tag is converted into a format
known as JSON (Java Script Object Notation) format.
• Why JSON?
• JSON is a valid subset of JavaScript, Python, and YAML.
• JSON parsing is generally faster than XML parsing.
• JSON is a more compact format, meaning it weighs far less on the
wire than the more verbose XML.
• JSON is easier to work with in some languages (such as javascript,
python, and php).
• Formatted JSON is generally easier to read than formatted XML.
• JSON specifies how to represent complex datatypes, there is no
single best way to represent a data structure in XML.
3February2016
31
MQTT Publish & Subscribe (contd.)
• This JSON data is published to the cloud using MQTT (Message
Queue Telemetry Transport) protocol.
• Why MQTT?
• Easy, Binary, Minimal overhead.
• Data agnostic.
• Publish / Subscribe.
• Push instead of Pull.
• Reliable even when used with unreliable networks, constrained
devices.
• Low bandwidth, high latency use case.
3February2016
32
MQTT Publish & Subscribe (contd.)
• mosquitto_sub -t “CC2650”
• The client can subscribe to multiple topics, downgrade topic
subscriptions to a lower QoS, provide an ID for persistent
sessions, define a will message, and many other options.
(mosquitto_sub -h will list them.)
• mosquitto_pub -t “CC2650" -m "message payload" -q 1 –r
• This will publish a message to a given topic at QoS 1, retained.
Many options will be listed by mosquitto_pub -h.
3February2016
33
MQTT Publish & Subscribe (contd.)
3February2016
34
MQTT Publish & Subscribe (contd.)
3February2016
35
MQTT Publish & Subscribe (contd.)
• Last known good value
• Broker saves last message for a topic.
• Client decides if the message is retained.
• Client receives the retained message after subscribing.
• Client defines Last Will and Testament.
• Broker sends message on behalf of the client after the client
‘died’.
• Real push.
• Useful for implementing on/off topic publishes.
• Mosquitto is an open source message broker that implements
the MQTT protocol.
3February2016
36
Boot time execution of scripts
• The python and shell scripts are run at boot time using a
crontab utility, using which scripts can be scheduled to be
executed after booting.
• The crontab is a list of commands that you want to run on a
regular schedule, and also the name of the command used to
manage that list.
• The below commands are appended to the crontab.
• @reboot sh /home/pi/launcher.sh >/home/pi/logs/cronlog 2>&1
• @reboot sleep 60 && sh /home/pi/livestream.sh
• Here, launcher.sh is executed at boot time and creates a
cronlog, while livestream.sh is executed 60 seconds after the
boot.
3February2016
37
Boot time execution of scripts
(contd.)
3February2016
38
Boot time execution of scripts
(contd.)
3February2016
39
Conclusion
3February2016
40
Conclusion (contd.)
• The objectives of the project have been accomplished.
• Published sensor data into the cloud using MQTT protocol via
Raspberry Pi as the gateway device.
• Subscribed to the sensor data in the cloud using MQTT via a
remote terminal.
• Implemented Live streaming of Low light visual data for
surveillance application.
3February2016
41
References
1. http://zacharybears.com/
2. https://www.raspberrypi.org
3. http://processors.wiki.ti.com/
4. http://mqtt.org/
5. https://github.com/
6. http://hackaday.com/
7. http://spin.atomicobject.com/
8. https://en.wikipedia.org
3February2016
42
THANK YOU
3February2016
43

Mais conteúdo relacionado

Destaque

テキサスインスツルメンツ Cc2650、cc2650 rcを使ってみた
テキサスインスツルメンツ Cc2650、cc2650 rcを使ってみたテキサスインスツルメンツ Cc2650、cc2650 rcを使ってみた
テキサスインスツルメンツ Cc2650、cc2650 rcを使ってみたYoshiaki Ito
 
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...Arun Joseph
 
Smart Irrigation System: Hardware Architecture for WaRM project
Smart Irrigation System: Hardware Architecture for WaRM projectSmart Irrigation System: Hardware Architecture for WaRM project
Smart Irrigation System: Hardware Architecture for WaRM projectMuhammad Yaseen Aftab
 
Developing TI RTOS Applications and BLE Profiles
Developing TI RTOS Applications and BLE ProfilesDeveloping TI RTOS Applications and BLE Profiles
Developing TI RTOS Applications and BLE ProfilesSumit Sapra
 
IoTで5days学生インターン
IoTで5days学生インターンIoTで5days学生インターン
IoTで5days学生インターンKazuya Fukumoto
 
2016 1011 io tlt勉強会_発表用
2016 1011 io tlt勉強会_発表用2016 1011 io tlt勉強会_発表用
2016 1011 io tlt勉強会_発表用yasuyuki_suzuki
 
La Vigilancia sin Datos no sirve de Nada
La Vigilancia sin Datos no sirve de NadaLa Vigilancia sin Datos no sirve de Nada
La Vigilancia sin Datos no sirve de NadaJusto Hidalgo
 
IoT Protocols by Nagasai Panchakarla | CuTech Talks
IoT Protocols by Nagasai Panchakarla | CuTech TalksIoT Protocols by Nagasai Panchakarla | CuTech Talks
IoT Protocols by Nagasai Panchakarla | CuTech TalksCumulations Technologies
 
2017 0217 io tlt勉強会_発表用
2017 0217 io tlt勉強会_発表用2017 0217 io tlt勉強会_発表用
2017 0217 io tlt勉強会_発表用yasuyuki_suzuki
 
IoT縛りの勉強会! IoTLT vol.18
IoT縛りの勉強会! IoTLT vol.18IoT縛りの勉強会! IoTLT vol.18
IoT縛りの勉強会! IoTLT vol.18Seigo Tanaka
 
Contiki os timer tutorial
Contiki os timer tutorialContiki os timer tutorial
Contiki os timer tutorialSalah Amean
 
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016José Camacho
 
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache ApexHadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache ApexApache Apex
 
Getting started with MQTT - Virtual IoT Meetup presentation
Getting started with MQTT - Virtual IoT Meetup presentationGetting started with MQTT - Virtual IoT Meetup presentation
Getting started with MQTT - Virtual IoT Meetup presentationChristian Götz
 
AWS歴2週間で IoT に挑戦してみた。
AWS歴2週間で IoT に挑戦してみた。AWS歴2週間で IoT に挑戦してみた。
AWS歴2週間で IoT に挑戦してみた。Shogo Matsuda
 

Destaque (20)

テキサスインスツルメンツ Cc2650、cc2650 rcを使ってみた
テキサスインスツルメンツ Cc2650、cc2650 rcを使ってみたテキサスインスツルメンツ Cc2650、cc2650 rcを使ってみた
テキサスインスツルメンツ Cc2650、cc2650 rcを使ってみた
 
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
 
µIP (micro IP)
µIP (micro IP)µIP (micro IP)
µIP (micro IP)
 
CTIA startup stage
CTIA startup stageCTIA startup stage
CTIA startup stage
 
Cc 2650 la tradicion de la oración en la Iglesia
Cc 2650  la tradicion de la oración en la IglesiaCc 2650  la tradicion de la oración en la Iglesia
Cc 2650 la tradicion de la oración en la Iglesia
 
Ok httpの紹介
Ok httpの紹介Ok httpの紹介
Ok httpの紹介
 
Smart Irrigation System: Hardware Architecture for WaRM project
Smart Irrigation System: Hardware Architecture for WaRM projectSmart Irrigation System: Hardware Architecture for WaRM project
Smart Irrigation System: Hardware Architecture for WaRM project
 
Developing TI RTOS Applications and BLE Profiles
Developing TI RTOS Applications and BLE ProfilesDeveloping TI RTOS Applications and BLE Profiles
Developing TI RTOS Applications and BLE Profiles
 
Open Data for GHA@live
Open Data for GHA@liveOpen Data for GHA@live
Open Data for GHA@live
 
IoTで5days学生インターン
IoTで5days学生インターンIoTで5days学生インターン
IoTで5days学生インターン
 
2016 1011 io tlt勉強会_発表用
2016 1011 io tlt勉強会_発表用2016 1011 io tlt勉強会_発表用
2016 1011 io tlt勉強会_発表用
 
La Vigilancia sin Datos no sirve de Nada
La Vigilancia sin Datos no sirve de NadaLa Vigilancia sin Datos no sirve de Nada
La Vigilancia sin Datos no sirve de Nada
 
IoT Protocols by Nagasai Panchakarla | CuTech Talks
IoT Protocols by Nagasai Panchakarla | CuTech TalksIoT Protocols by Nagasai Panchakarla | CuTech Talks
IoT Protocols by Nagasai Panchakarla | CuTech Talks
 
2017 0217 io tlt勉強会_発表用
2017 0217 io tlt勉強会_発表用2017 0217 io tlt勉強会_発表用
2017 0217 io tlt勉強会_発表用
 
IoT縛りの勉強会! IoTLT vol.18
IoT縛りの勉強会! IoTLT vol.18IoT縛りの勉強会! IoTLT vol.18
IoT縛りの勉強会! IoTLT vol.18
 
Contiki os timer tutorial
Contiki os timer tutorialContiki os timer tutorial
Contiki os timer tutorial
 
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
 
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache ApexHadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
 
Getting started with MQTT - Virtual IoT Meetup presentation
Getting started with MQTT - Virtual IoT Meetup presentationGetting started with MQTT - Virtual IoT Meetup presentation
Getting started with MQTT - Virtual IoT Meetup presentation
 
AWS歴2週間で IoT に挑戦してみた。
AWS歴2週間で IoT に挑戦してみた。AWS歴2週間で IoT に挑戦してみた。
AWS歴2週間で IoT に挑戦してみた。
 

Semelhante a IoT Implementation of Sensor Data Acquisition in Surveillance Applications - redacted

SDARPiBot - VLES'16
SDARPiBot - VLES'16SDARPiBot - VLES'16
SDARPiBot - VLES'16Arun Joseph
 
Botprobe - Reducing network threat intelligence big data
Botprobe - Reducing network threat intelligence big data Botprobe - Reducing network threat intelligence big data
Botprobe - Reducing network threat intelligence big data DATA SECURITY SOLUTIONS
 
Defcon 22-cesar-cerrudo-hacking-traffic-control-systems
Defcon 22-cesar-cerrudo-hacking-traffic-control-systemsDefcon 22-cesar-cerrudo-hacking-traffic-control-systems
Defcon 22-cesar-cerrudo-hacking-traffic-control-systemsPriyanka Aash
 
Design of A Home Surveillance System Based on the Android Platform
Design of A Home Surveillance System Based on the Android PlatformDesign of A Home Surveillance System Based on the Android Platform
Design of A Home Surveillance System Based on the Android PlatformIRJET Journal
 
S.W.A.T – Motion Based Intrusion Detection System
S.W.A.T – Motion Based Intrusion Detection SystemS.W.A.T – Motion Based Intrusion Detection System
S.W.A.T – Motion Based Intrusion Detection SystemIRJET Journal
 
Designing and Implementing your IOT Solutions with Open Source
Designing and Implementing your IOT Solutions with Open SourceDesigning and Implementing your IOT Solutions with Open Source
Designing and Implementing your IOT Solutions with Open SourceDataWorks Summit/Hadoop Summit
 
A smart front end real-time detection and tracking
A smart front end real-time detection and trackingA smart front end real-time detection and tracking
A smart front end real-time detection and trackingLihguong Jang
 
Wireless security camera
Wireless security cameraWireless security camera
Wireless security cameraAasheesh Tandon
 
Challenges and experiences with IPTV from a network point of view
Challenges and experiences with IPTV from a network point of viewChallenges and experiences with IPTV from a network point of view
Challenges and experiences with IPTV from a network point of viewbrouer
 
Banking and ATM networking reports
Banking and ATM networking reportsBanking and ATM networking reports
Banking and ATM networking reportsShakib Ansaar
 
Internet of things
Internet of thingsInternet of things
Internet of thingsAlok Ranjan
 
Running head network design 1 netwo
Running head network design                             1 netwoRunning head network design                             1 netwo
Running head network design 1 netwoAKHIL969626
 
[old] Network Performance Monitoring for DevOps and IT
[old] Network Performance Monitoring for DevOps and IT[old] Network Performance Monitoring for DevOps and IT
[old] Network Performance Monitoring for DevOps and ITSite24x7
 
NXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 Workshop
NXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 WorkshopNXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 Workshop
NXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 WorkshopOpen Mobile Alliance
 

Semelhante a IoT Implementation of Sensor Data Acquisition in Surveillance Applications - redacted (20)

SDARPiBot - VLES'16
SDARPiBot - VLES'16SDARPiBot - VLES'16
SDARPiBot - VLES'16
 
Botprobe - Reducing network threat intelligence big data
Botprobe - Reducing network threat intelligence big data Botprobe - Reducing network threat intelligence big data
Botprobe - Reducing network threat intelligence big data
 
Defcon 22-cesar-cerrudo-hacking-traffic-control-systems
Defcon 22-cesar-cerrudo-hacking-traffic-control-systemsDefcon 22-cesar-cerrudo-hacking-traffic-control-systems
Defcon 22-cesar-cerrudo-hacking-traffic-control-systems
 
Design of A Home Surveillance System Based on the Android Platform
Design of A Home Surveillance System Based on the Android PlatformDesign of A Home Surveillance System Based on the Android Platform
Design of A Home Surveillance System Based on the Android Platform
 
Raspbeery PI IoT
Raspbeery PI IoTRaspbeery PI IoT
Raspbeery PI IoT
 
S.W.A.T – Motion Based Intrusion Detection System
S.W.A.T – Motion Based Intrusion Detection SystemS.W.A.T – Motion Based Intrusion Detection System
S.W.A.T – Motion Based Intrusion Detection System
 
Designing and Implementing your IOT Solutions with Open Source
Designing and Implementing your IOT Solutions with Open SourceDesigning and Implementing your IOT Solutions with Open Source
Designing and Implementing your IOT Solutions with Open Source
 
A smart front end real-time detection and tracking
A smart front end real-time detection and trackingA smart front end real-time detection and tracking
A smart front end real-time detection and tracking
 
A new perspective on Network Visibility - RISK 2015
A new perspective on Network Visibility - RISK 2015A new perspective on Network Visibility - RISK 2015
A new perspective on Network Visibility - RISK 2015
 
Wireless security camera
Wireless security cameraWireless security camera
Wireless security camera
 
Challenges and experiences with IPTV from a network point of view
Challenges and experiences with IPTV from a network point of viewChallenges and experiences with IPTV from a network point of view
Challenges and experiences with IPTV from a network point of view
 
The Computing Continuum.pdf
The Computing Continuum.pdfThe Computing Continuum.pdf
The Computing Continuum.pdf
 
Banking and ATM networking reports
Banking and ATM networking reportsBanking and ATM networking reports
Banking and ATM networking reports
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Running head network design 1 netwo
Running head network design                             1 netwoRunning head network design                             1 netwo
Running head network design 1 netwo
 
[old] Network Performance Monitoring for DevOps and IT
[old] Network Performance Monitoring for DevOps and IT[old] Network Performance Monitoring for DevOps and IT
[old] Network Performance Monitoring for DevOps and IT
 
Capstone_Project.ppt
Capstone_Project.pptCapstone_Project.ppt
Capstone_Project.ppt
 
Workshop slides
Workshop slidesWorkshop slides
Workshop slides
 
Video conferincing
Video conferincingVideo conferincing
Video conferincing
 
NXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 Workshop
NXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 WorkshopNXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 Workshop
NXP FRDM-K64F Platform with ARM mbed Demo - Edinburgh 2016 Workshop
 

Último

Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...limedy534
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxUnduhUnggah1
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 

Último (20)

Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docx
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 

IoT Implementation of Sensor Data Acquisition in Surveillance Applications - redacted

  • 1. IoT Implementation of Sensor Data Acquisition in Surveillance Applications Presented by ARUN JOE JOSEPH Roll No: 8 S3 M.Tech VLSI & ES 3February2016 1
  • 2. Introduction • Surveillance is an important aspect of both military and civilian security, anywhere in the world. • It is essential to gather data or intelligence in different forms, to add an extra layer of security in either one of the cases. • In this project, we implement an IoT powered surveillance equipment. 3February2016 2
  • 4. Objective • Our aim in this project is to implement Internet of Things (IoT) model for surveillance which: • Acquires data using sensors. • Pushes the collected data into the Cloud / Server. • Monitor this data using a remote terminal in the network. 3February2016 4
  • 5. Methodology • Raspberry Pi is used as a gateway device for the sensors that are used to collect data. • Sensor tag consisting of different sensors, is used to measure different environment variables. • MQTT protocol is used to publish and subscribe the sensor data into and from the cloud. • Visual data is also collected using a camera. The collected data is streamed to a server/ cloud platform, where it can be monitored. 3February2016 5
  • 7. Internet of Things - IoT • The Internet of Things (IoT) is an environment in which objects, animals or people are provided with unique identifiers and the ability to transfer data over a network without requiring human-to-human or human-to-computer interaction. IoT has evolved from the convergence of wireless technologies, micro-electromechanical systems (MEMS) and the Internet. The concept may also be referred to as the Internet of Everything. 3February2016 7
  • 8. Internet of Things – IoT (contd.) 3February2016 8
  • 9. Internet of Things – IoT (contd.) 3February2016 9
  • 10. Internet of Things – IoT (contd.) 3February2016 10
  • 12. Raspberry Pi - Technical Specifications • Broadcom BCM2836 Arm7 Quad Core Processor powered Single Board Computer running at 900MHz • 1GB RAM • 40pin extended GPIO • 4 x USB 2 ports • 4 pole Stereo output and Composite video port • Full size HDMI • CSI camera port for connecting the Raspberry Pi camera • DSI display port for connecting the Raspberry Pi touch screen display • Micro SD port for loading your operating system and storing data • Micro USB power source 3February2016 12
  • 13. No – IR Camera 3February2016 13
  • 14. No – IR Camera Features • 5 megapixel native resolution sensor-capable of 2592 x 1944 pixel static images • Supports 1080p30, 720p60 and 640x480p60/90 video • Camera is capable of 2592 x 1944 pixel static images • No Infrared filter making it perfect for taking Infrared photographs or photographing objects in low light (twilight) conditions • 1.4 µm X 1.4 µm pixel with OmniBSI technology for high performance (high sensitivity, low crosstalk, low noise) • Optical size of 1/4" 3February2016 14
  • 16. Sensor Tag Features • Supports 10 Low-Power Sensors • Ambient Light • Infrared Temperature • Ambient Temperature • Accelerometer • Gyroscope • Magnetometer • Pressure • Humidity • Microphone • Magnetic Sensor 3February2016 16
  • 17. Sensor Tag – Block Diagram 3February2016 17
  • 20. Raspberry Pi – Camera Interfacing • Simple approach to streaming video using a buffer and a raw byte stream. • Leads to small delays (<100ms) and a high frame rate (~30fps) of the streamed video, making it perfect for live video streaming and feedback. • Raspberry Pi used a utility called netcat to send data from the Pi to the computer. 3February2016 20
  • 21. Raspberry Pi – Camera Interfacing (contd.) • On the receiving computer, we streamed the video through the open source video player mplayer and used netcat to capture the video bits that were sent from the Pi. • Computer we use is made ready to accept the data that the Raspberry Pi sends by running the following command in a terminal. • nc.traditional -l -p 5000 | mplayer -fps 60 -cache 1024 - • 3February2016 21
  • 22. Raspberry Pi – Camera Interfacing (contd.) • We use netcat to open up a connection on port 5000 of your computer for receiving bytes from a connection, which is then send (pipe) to the mplayer application used to play the video. • The additional flags set the desired frame rate of the video to 60 frames per second and sets the video cache size to 1024 bytes. 3February2016 22
  • 23. Raspberry Pi – Camera Interfacing (contd.) • At transmitting end, video bytes are captured from the camera and saved into the fifo.500 pipe. • The pipe essentially acts as a FIFO (first-in first-out) buffer that stores the video bytes as they arrive and allows the bytes to be read from the buffer by other utilities. • We then use the netcat utility to read bytes from the pipe and send them off to the receiving terminal that we’ve already set up to wait for transmitted data. • 3February2016 23
  • 24. Raspberry Pi – Camera Interfacing (contd.) • mkfifo fifo.500 • Pipe fifo.500 ready to receive and send bytes. • cat fifo.500 | nc.traditional <your ip> 5000 & • We use the netcat utility to send any bytes that may be written into the pipe off to port 5000 on the computer that we’ve set up. • /opt/vc/bin/raspivid -o fifo.500 -t 0 -b 10000000 • We use the built-in video capture script raspivid on the Raspberry Pi to write data into the pipe created above. • The -t parameter - time for which the video capture script should capture video. Setting the -t parameter to 0 makes the video stream with no timeout. The -b tag indicates the bitrate of the video stream. 3February2016 24
  • 25. Raspberry Pi – Sensor tag CC2650 interfacing • Raspberry Pi is interfaced to the TI Sensor tag using a Bluetooth Low Energy (BTLE) BT 4.0 adapter connected to the Raspberry Pi. • CC2650 SensorTag is a BLE peripheral slave device. • Python code is written to scan for the nearby Bluetooth devices advertising its MAC ID. • During the scan, the sensor tag must be turned on, for it to be discovered. 3February2016 25
  • 26. Raspberry Pi – Sensor tag CC2650 interfacing (contd.) • On start-up, the SensorTag advertises with a 100 millisecond interval indicated by the green LED blinking at a 1 Hz rate. Advertising can be stopped/started by pressing the power button. The SensorTag MUST be advertising for the device to be discoverable by the gateway device. • The central device can only connect to a SensorTag that is advertising. • In the advertising state the central device can: • Scan and discover the Sensor Tag. (Scan response contain name “CC2650 SensorTag”). • Establish connection based on user defined Connection Parameters. 3February2016 26
  • 27. Raspberry Pi – Sensor tag CC2650 interfacing (contd.) • The connection is established by the Central Device and the sensors can then be configured to provide measurement data. • When connected the central device can: • Discover Characteristic by UUID. • Write to and read from Characteristic Value (configure sensors and read data). • Disconnect the device and return it to an advertising state. • To obtain the data, the corresponding sensor must first be activated, which is done via a Characteristic Value write to appropriate service. 3February2016 27
  • 28. Raspberry Pi – Sensor tag CC2650 interfacing (contd.) • The most power efficient way to obtain measurements for a sensor is to: • 1. Enable notification • 2. Enable Sensor • 3. When notification with data is obtained at the Master side, disable the sensor (notification still on). 3February2016 28
  • 29. Raspberry Pi – Sensor tag CC2650 interfacing (contd.) • The sensors are enabled by writing 0x01 to the corresponding configuration characteristic and then disabled by writing 0x00. • Since the SensorTag reference platform supplies the raw, uncalibrated sensor outputs to the IoT enabled Raspberry Pi, necessary calibration for the operating environment is to be performed. 3February2016 29
  • 30. Raspberry Pi – Sensor tag CC2650 interfacing (contd.) • When an enable command (0x01) is written to the configuration characteristic, the sensor starts to perform measurements each second (average over four measurements) and the data is stored in the data characteristic. • When the disable command (0x00) is issued, the sensor is put in stand-by mode and no data are cleared and no longer reported. 3February2016 30
  • 31. MQTT Publish & Subscribe • Data obtained from the sensor tag is converted into a format known as JSON (Java Script Object Notation) format. • Why JSON? • JSON is a valid subset of JavaScript, Python, and YAML. • JSON parsing is generally faster than XML parsing. • JSON is a more compact format, meaning it weighs far less on the wire than the more verbose XML. • JSON is easier to work with in some languages (such as javascript, python, and php). • Formatted JSON is generally easier to read than formatted XML. • JSON specifies how to represent complex datatypes, there is no single best way to represent a data structure in XML. 3February2016 31
  • 32. MQTT Publish & Subscribe (contd.) • This JSON data is published to the cloud using MQTT (Message Queue Telemetry Transport) protocol. • Why MQTT? • Easy, Binary, Minimal overhead. • Data agnostic. • Publish / Subscribe. • Push instead of Pull. • Reliable even when used with unreliable networks, constrained devices. • Low bandwidth, high latency use case. 3February2016 32
  • 33. MQTT Publish & Subscribe (contd.) • mosquitto_sub -t “CC2650” • The client can subscribe to multiple topics, downgrade topic subscriptions to a lower QoS, provide an ID for persistent sessions, define a will message, and many other options. (mosquitto_sub -h will list them.) • mosquitto_pub -t “CC2650" -m "message payload" -q 1 –r • This will publish a message to a given topic at QoS 1, retained. Many options will be listed by mosquitto_pub -h. 3February2016 33
  • 34. MQTT Publish & Subscribe (contd.) 3February2016 34
  • 35. MQTT Publish & Subscribe (contd.) 3February2016 35
  • 36. MQTT Publish & Subscribe (contd.) • Last known good value • Broker saves last message for a topic. • Client decides if the message is retained. • Client receives the retained message after subscribing. • Client defines Last Will and Testament. • Broker sends message on behalf of the client after the client ‘died’. • Real push. • Useful for implementing on/off topic publishes. • Mosquitto is an open source message broker that implements the MQTT protocol. 3February2016 36
  • 37. Boot time execution of scripts • The python and shell scripts are run at boot time using a crontab utility, using which scripts can be scheduled to be executed after booting. • The crontab is a list of commands that you want to run on a regular schedule, and also the name of the command used to manage that list. • The below commands are appended to the crontab. • @reboot sh /home/pi/launcher.sh >/home/pi/logs/cronlog 2>&1 • @reboot sleep 60 && sh /home/pi/livestream.sh • Here, launcher.sh is executed at boot time and creates a cronlog, while livestream.sh is executed 60 seconds after the boot. 3February2016 37
  • 38. Boot time execution of scripts (contd.) 3February2016 38
  • 39. Boot time execution of scripts (contd.) 3February2016 39
  • 41. Conclusion (contd.) • The objectives of the project have been accomplished. • Published sensor data into the cloud using MQTT protocol via Raspberry Pi as the gateway device. • Subscribed to the sensor data in the cloud using MQTT via a remote terminal. • Implemented Live streaming of Low light visual data for surveillance application. 3February2016 41
  • 42. References 1. http://zacharybears.com/ 2. https://www.raspberrypi.org 3. http://processors.wiki.ti.com/ 4. http://mqtt.org/ 5. https://github.com/ 6. http://hackaday.com/ 7. http://spin.atomicobject.com/ 8. https://en.wikipedia.org 3February2016 42