SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
Платформа Intel для IoT
на примере Intel Galileo
06.06.2015 HackIoT @IT Global Meetup
http://fablab.spbstu.ru/
Intel Galileo GEN 2
Intel Edison
Arduino 1.6.4
http://www.arduino.cc/en/Main/Software
Firmware Update
https://downloadcenter.intel.com/download/24748
I2C BMP 085 Pressure and T sensor
https://github.com/adafruit/Adafruit-BMP085-Library
SD Card & Yocto Linux
https://software.intel.com/en-
us/iot/hardware/galileo/downloads
diskutil list
diskutil unmountDisk disk2
sudo dd bs=8m if=iotdk-galileo-image of=/dev/disk2
ctrl+t - show progress of dd
Setup SSH via Direct link LAN
ssh root@192.168.1.5
date -s "2015-06-04 01:03:00"
opkg update
opkg upgrade
Linux GPIO
echo "42" > /sys/class/gpio/export // Arduino io12
echo -n "strong" > /sys/class/gpio/gpio42/drive // (pullup|pulldown|strong|hiz)
echo "out" > /sys/class/gpio/gpio42/direction // (out|in)
echo "1" > /sys/class/gpio/gpio42/value
echo "0" > /sys/class/gpio/gpio42/value
echo "42" > /sys/class/gpio/unexport
Pin mapping:
http://www.emutexlabs.com/project/203-getting-started-with-intel-galileo-gen-2
Pins/python
import sys
import time
def pins_export():
try:
pin1export = open("/sys/class/gpio/export","w")
pin1export.write("42")
pin1export.close()
except IOError:
print "INFO: GPIO 3 already exists, skipping export"
fp1 = open( "/sys/class/gpio/gpio42/direction", "w" )
fp1.write( "out" )
fp1.close()
def write_led( value ):
fp2 = open( "/sys/class/gpio/gpio42/value", "w" )
fp2.write( str( value ) )
fp2.close()
pins_export()
while True:
print "on"
write_led( 1 )
time.sleep( 1 )
print "off"
write_led( 0 )
time.sleep( 1 )
Web Server
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.
py
python get-pip.py
pip install --upgrade setuptools
pip install virtualenv
mkdir ml && cd ml
virtualenv venv
source venv/bin/activate
pip install bottle
vi ws.py
python ws.py
…
deactivate
from bottle import route, run,
template
import sys
import os
@route('/')
def index():
lines = []
with open
('/sys/class/gpio/gpio42/value
') as f:
lines = f.readlines()
return lines[0]
run(host='localhost',
port=8080)
Sergei Silnov
IoT enthusiast
hackiot.ru
po@kumekay.com
fb.com/silnov

Más contenido relacionado

La actualidad más candente

2015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v1
2015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v12015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v1
2015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v1MAKERPRO.cc
 
Android Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT WorldAndroid Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT WorldLars Gregori
 
Windows 10 IoT Core on Raspberry Pi 2 Usine IO
Windows 10 IoT Core on Raspberry Pi 2 Usine IOWindows 10 IoT Core on Raspberry Pi 2 Usine IO
Windows 10 IoT Core on Raspberry Pi 2 Usine IOAlex Danvy
 
Motherboard manufacturers
Motherboard manufacturersMotherboard manufacturers
Motherboard manufacturersssuser1eca7d
 
Lund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & Weave
Lund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & WeaveLund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & Weave
Lund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & WeaveConstantin Musca
 
دورة الصيانة
دورة الصيانة دورة الصيانة
دورة الصيانة Moamen Ayyad
 
Ultimate Modded Commodore 64
Ultimate Modded Commodore 64Ultimate Modded Commodore 64
Ultimate Modded Commodore 64Leif Bloomquist
 
Intel galileo and x86 embedded computers
Intel galileo and x86 embedded computersIntel galileo and x86 embedded computers
Intel galileo and x86 embedded computersEvan Williams
 

La actualidad más candente (11)

2015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v1
2015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v12015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v1
2015 12-09-Lass移植LinkIt 7688 Duo 初步規劃與研究-v1
 
Tr15 1332
Tr15 1332Tr15 1332
Tr15 1332
 
Android Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT WorldAndroid Meets A BeagleBone In The IoT World
Android Meets A BeagleBone In The IoT World
 
Gnu linux on arm for $50 - $100
Gnu linux on arm for $50 - $100Gnu linux on arm for $50 - $100
Gnu linux on arm for $50 - $100
 
Windows 10 IoT Core on Raspberry Pi 2 Usine IO
Windows 10 IoT Core on Raspberry Pi 2 Usine IOWindows 10 IoT Core on Raspberry Pi 2 Usine IO
Windows 10 IoT Core on Raspberry Pi 2 Usine IO
 
Motherboard manufacturers
Motherboard manufacturersMotherboard manufacturers
Motherboard manufacturers
 
Lund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & Weave
Lund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & WeaveLund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & Weave
Lund Linux Conference 2016, Lund, Sweden - Introduction to Brillo OS & Weave
 
دورة الصيانة
دورة الصيانة دورة الصيانة
دورة الصيانة
 
Aula 1,2,3
Aula 1,2,3Aula 1,2,3
Aula 1,2,3
 
Ultimate Modded Commodore 64
Ultimate Modded Commodore 64Ultimate Modded Commodore 64
Ultimate Modded Commodore 64
 
Intel galileo and x86 embedded computers
Intel galileo and x86 embedded computersIntel galileo and x86 embedded computers
Intel galileo and x86 embedded computers
 

Similar a платформа intel для iot на примере intel galileo Hack iot 06.06.2015

Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Codemotion
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitSulamita Garcia
 
Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Dobrica Pavlinušić
 
Geek Pic-Nic Master Class
Geek Pic-Nic Master ClassGeek Pic-Nic Master Class
Geek Pic-Nic Master ClassMediaTek Labs
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2srknec
 
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hoodEmbedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hoodEmbeddedFest
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devicesMender.io
 
ChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadAndrewWright224
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instrumentsGraham NAYLOR
 
ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220AndrewWright224
 
CPE439FinalProjectReport
CPE439FinalProjectReportCPE439FinalProjectReport
CPE439FinalProjectReportJordan Read
 
Presentation fpgakit
Presentation fpgakitPresentation fpgakit
Presentation fpgakitaroosa khan
 
Denis Nagorny - Pumping Python Performance
Denis Nagorny - Pumping Python PerformanceDenis Nagorny - Pumping Python Performance
Denis Nagorny - Pumping Python PerformanceSergey Arkhipov
 
Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?GlobalLogic Ukraine
 
Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Pance Cavkovski
 

Similar a платформа intel для iot на примере intel galileo Hack iot 06.06.2015 (20)

Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
 
Начало работы с Intel IoT Dev Kit
Начало работы с Intel IoT Dev KitНачало работы с Intel IoT Dev Kit
Начало работы с Intel IoT Dev Kit
 
Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !Linux+sensor+device-tree+shell=IoT !
Linux+sensor+device-tree+shell=IoT !
 
Geek Pic-Nic Master Class
Geek Pic-Nic Master ClassGeek Pic-Nic Master Class
Geek Pic-Nic Master Class
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2
 
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hoodEmbedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devices
 
How to Hack Edison
How to Hack EdisonHow to Hack Edison
How to Hack Edison
 
ChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPad
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instruments
 
ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220
 
CPE439FinalProjectReport
CPE439FinalProjectReportCPE439FinalProjectReport
CPE439FinalProjectReport
 
SPDK benchmark memo
SPDK benchmark memoSPDK benchmark memo
SPDK benchmark memo
 
Microcontroller part 2
Microcontroller part 2Microcontroller part 2
Microcontroller part 2
 
Olo Cust Prez
Olo Cust Prez  Olo Cust Prez
Olo Cust Prez
 
Presentation fpgakit
Presentation fpgakitPresentation fpgakit
Presentation fpgakit
 
Denis Nagorny - Pumping Python Performance
Denis Nagorny - Pumping Python PerformanceDenis Nagorny - Pumping Python Performance
Denis Nagorny - Pumping Python Performance
 
Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?
 
Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101Connected hardware for Software Engineers 101
Connected hardware for Software Engineers 101
 

Más de Sergei Silnov

HTTP/2 for IoT @HackIoT
HTTP/2 for IoT @HackIoTHTTP/2 for IoT @HackIoT
HTTP/2 for IoT @HackIoTSergei Silnov
 
Интернет вещей: где найти место под солнцем TechTrendsExpo 2015
Интернет вещей: где найти место под солнцем TechTrendsExpo 2015Интернет вещей: где найти место под солнцем TechTrendsExpo 2015
Интернет вещей: где найти место под солнцем TechTrendsExpo 2015Sergei Silnov
 
2015/02/28 IoT: small sensors and big data @vrlf
2015/02/28 IoT: small sensors and big data @vrlf2015/02/28 IoT: small sensors and big data @vrlf
2015/02/28 IoT: small sensors and big data @vrlfSergei Silnov
 
HackIoT: wifi гаджет своими руками
HackIoT: wifi гаджет своими рукамиHackIoT: wifi гаджет своими руками
HackIoT: wifi гаджет своими рукамиSergei Silnov
 
Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2
Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2
Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2Sergei Silnov
 
getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2Sergei Silnov
 
Интернет всех вещей: когда ложки и носки будут в сети и зачем это нужно
Интернет всех вещей: когда ложки и носки будут в сети и зачем это нужноИнтернет всех вещей: когда ложки и носки будут в сети и зачем это нужно
Интернет всех вещей: когда ложки и носки будут в сети и зачем это нужноSergei Silnov
 
IoT protocols @hackIoT
IoT protocols @hackIoTIoT protocols @hackIoT
IoT protocols @hackIoTSergei Silnov
 
Google Physical web @hackIoT
Google Physical web  @hackIoTGoogle Physical web  @hackIoT
Google Physical web @hackIoTSergei Silnov
 

Más de Sergei Silnov (9)

HTTP/2 for IoT @HackIoT
HTTP/2 for IoT @HackIoTHTTP/2 for IoT @HackIoT
HTTP/2 for IoT @HackIoT
 
Интернет вещей: где найти место под солнцем TechTrendsExpo 2015
Интернет вещей: где найти место под солнцем TechTrendsExpo 2015Интернет вещей: где найти место под солнцем TechTrendsExpo 2015
Интернет вещей: где найти место под солнцем TechTrendsExpo 2015
 
2015/02/28 IoT: small sensors and big data @vrlf
2015/02/28 IoT: small sensors and big data @vrlf2015/02/28 IoT: small sensors and big data @vrlf
2015/02/28 IoT: small sensors and big data @vrlf
 
HackIoT: wifi гаджет своими руками
HackIoT: wifi гаджет своими рукамиHackIoT: wifi гаджет своими руками
HackIoT: wifi гаджет своими руками
 
Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2
Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2
Презентация компании НаноОптоТех NanoOptoTeh @ HackIoT#2
 
getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2
 
Интернет всех вещей: когда ложки и носки будут в сети и зачем это нужно
Интернет всех вещей: когда ложки и носки будут в сети и зачем это нужноИнтернет всех вещей: когда ложки и носки будут в сети и зачем это нужно
Интернет всех вещей: когда ложки и носки будут в сети и зачем это нужно
 
IoT protocols @hackIoT
IoT protocols @hackIoTIoT protocols @hackIoT
IoT protocols @hackIoT
 
Google Physical web @hackIoT
Google Physical web  @hackIoTGoogle Physical web  @hackIoT
Google Physical web @hackIoT
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Último (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

платформа intel для iot на примере intel galileo Hack iot 06.06.2015

  • 1. Платформа Intel для IoT на примере Intel Galileo 06.06.2015 HackIoT @IT Global Meetup
  • 7. I2C BMP 085 Pressure and T sensor https://github.com/adafruit/Adafruit-BMP085-Library
  • 8. SD Card & Yocto Linux https://software.intel.com/en- us/iot/hardware/galileo/downloads diskutil list diskutil unmountDisk disk2 sudo dd bs=8m if=iotdk-galileo-image of=/dev/disk2 ctrl+t - show progress of dd
  • 9. Setup SSH via Direct link LAN ssh root@192.168.1.5 date -s "2015-06-04 01:03:00" opkg update opkg upgrade
  • 10. Linux GPIO echo "42" > /sys/class/gpio/export // Arduino io12 echo -n "strong" > /sys/class/gpio/gpio42/drive // (pullup|pulldown|strong|hiz) echo "out" > /sys/class/gpio/gpio42/direction // (out|in) echo "1" > /sys/class/gpio/gpio42/value echo "0" > /sys/class/gpio/gpio42/value echo "42" > /sys/class/gpio/unexport Pin mapping: http://www.emutexlabs.com/project/203-getting-started-with-intel-galileo-gen-2
  • 11. Pins/python import sys import time def pins_export(): try: pin1export = open("/sys/class/gpio/export","w") pin1export.write("42") pin1export.close() except IOError: print "INFO: GPIO 3 already exists, skipping export" fp1 = open( "/sys/class/gpio/gpio42/direction", "w" ) fp1.write( "out" ) fp1.close() def write_led( value ): fp2 = open( "/sys/class/gpio/gpio42/value", "w" ) fp2.write( str( value ) ) fp2.close() pins_export() while True: print "on" write_led( 1 ) time.sleep( 1 ) print "off" write_led( 0 ) time.sleep( 1 )
  • 12. Web Server curl https://bootstrap.pypa.io/get-pip.py -o get-pip. py python get-pip.py pip install --upgrade setuptools pip install virtualenv mkdir ml && cd ml virtualenv venv source venv/bin/activate pip install bottle vi ws.py python ws.py … deactivate from bottle import route, run, template import sys import os @route('/') def index(): lines = [] with open ('/sys/class/gpio/gpio42/value ') as f: lines = f.readlines() return lines[0] run(host='localhost', port=8080)