SlideShare una empresa de Scribd logo
1 de 21
ARQUITECTURA DE COMPUTADORES
LINUX YOCTO Y GPIO
Mag. FERNANDO APARICIO URBANO MOLANO
2
DIRECCIÓN IP FIJA
• Asignar una IP Fija y hacer conexión PC a Galileo
void setup() {
Serial.begin(115200);
system("telnetd -l /bin/sh");
system("ifconfig eth0 169.254.1.2 netmask
255.255.0.0 up");
}
void loop() {
system("ifconfig eth0 > /dev/ttyGS0");
delay(2000);
}
3
DIRECCIÓN DHCP
• Intel Galileo se conecta mediante IP Dinámica
void setup() {
system("telnetd -l /bin/sh");
system("/etc/init.d/networking restart");
delay(1000);
}
void loop() {
system("ifconfig eth0 > /dev/ttyGS0");
delay(5000);
}
• Router asigna IP automáticamente. Galileo
transmite la dirección al computador.
4
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Conectar mediante Telnet, a la dirección
asignada a Galileo. Verificar la dirección IP
enviada al computador.
5
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Ejecutar Telnet o PuTTy. En PuTTy seleccionar
“Telnet” y Puerto 23.
6
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Una vez establecida la comunicación, debe
mostrarse lo siguiente:
7
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Ingresar como “root”: #login root
8
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Una vez se haya ingresado, verificamos el
contenido del directorio digitando el comando
“ls” y luego acceder a GPIO.
9
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Se pueden ver todos los GPIO disponibles
usando “ls” e ingresamos a uno de ellos
mediante el comando “CD gpio#”.
10
CONEXIÓN A LA RED DESDE EL COMPUTADOR
• Interactuamos con el GPIO seleccionado:
11
GPIO DE INTEL GALILEO
Pin Digital
Arduino
Pin en Linux
0 50
1 51
2 14
3 15
4 28
5 17
6 24
7 27
8 26
9 19
10 16
11 25
12 38
13 39
12
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• Para aprovechar las potencialidades de Python,
se debe correr Yocto desde una imagen instalada
en una SD Card, preferiblemente la distribución
IoT: https://software.intel.com/en-us/programming-blank-sd-card-with-yocto-linux-
image-windows
• Python: lenguaje de programación interpretado
(multiplataforma) – multiparadigma.
• Librería MRAA para soportar los GPIO de Intel
Galileo con Python.
13
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• Realizar la conexión via Ethernet, asegurarse de
conocer la IP que la Intel Galileo posee en la
Red.
14
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• Ingresar como usuario “root”:
15
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• Escribir “python”, para conocer la versión de
Python instalada.
16
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• Para escribir el código de Python, utilizar el
editor Vi:
17
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• En Vi, presionar la tecla “I” para editar el código:
18
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• En Vi, presionar la tecla “ESC” para salir de la
edición de código, digitar “:wq” (Salir y
guardar):
19
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• En Vi, presionar la tecla “ESC” para salir de la
edición de código, digitar “:wq” (Salir y
guardar):
20
PYTHON EN LINUX YOCTO DE INTEL GALILEO
• Para ejecutar el código: #python nombre.py
21
PYTHON EN LINUX YOCTO DE INTEL GALILEO
import mraa #API para acceder a los periféricos
import time
LED_GPIO = 5
LedIntermintente = mraa.Gpio(LED_GPIO)
LedIntermitente.dir(mraa.DIR_OUT)
ledEstado = False
LedIntermitente.write(0)
while True:
if ledEstado== False:
LedIntermitente.write(1)
ledState = True
else:
LedIntermitente.write(0)
ledEstado = False
print "LED está encendido? nAns: %s" %(ledEstado)
time.sleep(1)

Más contenido relacionado

La actualidad más candente

Tips on High Performance Server Programming
Tips on High Performance Server ProgrammingTips on High Performance Server Programming
Tips on High Performance Server ProgrammingJoshua Zhu
 
OS X Drivers Reverse Engineering
OS X Drivers Reverse EngineeringOS X Drivers Reverse Engineering
OS X Drivers Reverse EngineeringPositive Hack Days
 
DOSBox for beginners はじめてのDOSBox
DOSBox for beginners はじめてのDOSBoxDOSBox for beginners はじめてのDOSBox
DOSBox for beginners はじめてのDOSBoxNetwalker lab kapper
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlKentaro Ebisawa
 
Get Hands-On with NGINX and QUIC+HTTP/3
Get Hands-On with NGINX and QUIC+HTTP/3Get Hands-On with NGINX and QUIC+HTTP/3
Get Hands-On with NGINX and QUIC+HTTP/3NGINX, Inc.
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKMarian Marinov
 
SR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementSR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementLF Events
 
Cilium - Container Networking with BPF & XDP
Cilium - Container Networking with BPF & XDPCilium - Container Networking with BPF & XDP
Cilium - Container Networking with BPF & XDPThomas Graf
 
Hacking Cisco Networks and Countermeasures
Hacking Cisco Networks and CountermeasuresHacking Cisco Networks and Countermeasures
Hacking Cisco Networks and Countermeasuresdkaya
 
Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...
Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...
Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...Philip Polstra
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking ExplainedThomas Graf
 
Virtualized network with openvswitch
Virtualized network with openvswitchVirtualized network with openvswitch
Virtualized network with openvswitchSim Janghoon
 
Module 2 Foot Printing
Module 2   Foot PrintingModule 2   Foot Printing
Module 2 Foot Printingleminhvuong
 
Hotspot on Mikrotik Router
Hotspot on Mikrotik RouterHotspot on Mikrotik Router
Hotspot on Mikrotik RouterKHNOG
 

La actualidad más candente (20)

Apostila metasploit
Apostila metasploitApostila metasploit
Apostila metasploit
 
Hacking
HackingHacking
Hacking
 
Tips on High Performance Server Programming
Tips on High Performance Server ProgrammingTips on High Performance Server Programming
Tips on High Performance Server Programming
 
OS X Drivers Reverse Engineering
OS X Drivers Reverse EngineeringOS X Drivers Reverse Engineering
OS X Drivers Reverse Engineering
 
DOSBox for beginners はじめてのDOSBox
DOSBox for beginners はじめてのDOSBoxDOSBox for beginners はじめてのDOSBox
DOSBox for beginners はじめてのDOSBox
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnl
 
Get Hands-On with NGINX and QUIC+HTTP/3
Get Hands-On with NGINX and QUIC+HTTP/3Get Hands-On with NGINX and QUIC+HTTP/3
Get Hands-On with NGINX and QUIC+HTTP/3
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDK
 
SR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementSR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and Improvement
 
Cilium - Container Networking with BPF & XDP
Cilium - Container Networking with BPF & XDPCilium - Container Networking with BPF & XDP
Cilium - Container Networking with BPF & XDP
 
Hacking Cisco Networks and Countermeasures
Hacking Cisco Networks and CountermeasuresHacking Cisco Networks and Countermeasures
Hacking Cisco Networks and Countermeasures
 
Network Security Best Practice (BCP38 & 140)
Network Security Best Practice (BCP38 & 140) Network Security Best Practice (BCP38 & 140)
Network Security Best Practice (BCP38 & 140)
 
Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...
Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...
Am I being spied on: Low-tech ways of detecting high-tech surveillance (DEFCO...
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
Virtualized network with openvswitch
Virtualized network with openvswitchVirtualized network with openvswitch
Virtualized network with openvswitch
 
Module 2 Foot Printing
Module 2   Foot PrintingModule 2   Foot Printing
Module 2 Foot Printing
 
Hotspot on Mikrotik Router
Hotspot on Mikrotik RouterHotspot on Mikrotik Router
Hotspot on Mikrotik Router
 
IPFS: The Permanent Web
IPFS: The Permanent WebIPFS: The Permanent Web
IPFS: The Permanent Web
 
Bash production guide
Bash production guideBash production guide
Bash production guide
 
Sniffing via dsniff
Sniffing via dsniffSniffing via dsniff
Sniffing via dsniff
 

Destacado

Multivibradores, Temporizadores y aplicaciones de los Flip-Flops
Multivibradores, Temporizadores y aplicaciones de los Flip-FlopsMultivibradores, Temporizadores y aplicaciones de los Flip-Flops
Multivibradores, Temporizadores y aplicaciones de los Flip-FlopsFernando Aparicio Urbano Molano
 

Destacado (20)

Arquitectura Computacional - Intel Galileo
Arquitectura Computacional - Intel GalileoArquitectura Computacional - Intel Galileo
Arquitectura Computacional - Intel Galileo
 
Máquinas de Estado Finito en VHDL
Máquinas de Estado Finito en VHDLMáquinas de Estado Finito en VHDL
Máquinas de Estado Finito en VHDL
 
Multivibradores, Temporizadores y aplicaciones de los Flip-Flops
Multivibradores, Temporizadores y aplicaciones de los Flip-FlopsMultivibradores, Temporizadores y aplicaciones de los Flip-Flops
Multivibradores, Temporizadores y aplicaciones de los Flip-Flops
 
Clase Latch y FFs
Clase Latch y FFsClase Latch y FFs
Clase Latch y FFs
 
Latch y Flip-Flops
Latch y Flip-FlopsLatch y Flip-Flops
Latch y Flip-Flops
 
Introducción al PIC16 f887
Introducción al PIC16 f887Introducción al PIC16 f887
Introducción al PIC16 f887
 
Clase USART
Clase USARTClase USART
Clase USART
 
Conexiones del PIC16F887
Conexiones del PIC16F887Conexiones del PIC16F887
Conexiones del PIC16F887
 
Módulo EUSART del PIC16F887
Módulo EUSART del PIC16F887Módulo EUSART del PIC16F887
Módulo EUSART del PIC16F887
 
Estados Indiferentes - Diagramas de Karnaugh
Estados Indiferentes - Diagramas de KarnaughEstados Indiferentes - Diagramas de Karnaugh
Estados Indiferentes - Diagramas de Karnaugh
 
Node.JS para Intel Galileo
Node.JS para Intel GalileoNode.JS para Intel Galileo
Node.JS para Intel Galileo
 
Modulo Timer 0 del PIC16F887
Modulo Timer 0 del PIC16F887Modulo Timer 0 del PIC16F887
Modulo Timer 0 del PIC16F887
 
Módulo ADC del PIC16F887
Módulo ADC del PIC16F887Módulo ADC del PIC16F887
Módulo ADC del PIC16F887
 
Módulo Timer 1 del PIC16F887
Módulo Timer 1 del PIC16F887Módulo Timer 1 del PIC16F887
Módulo Timer 1 del PIC16F887
 
Memorias
MemoriasMemorias
Memorias
 
Clase instrucciones PIC16F877A
Clase instrucciones PIC16F877AClase instrucciones PIC16F877A
Clase instrucciones PIC16F877A
 
Máquinas de Estado
Máquinas de EstadoMáquinas de Estado
Máquinas de Estado
 
Arquitectura Microcontrolador PIC16F887
Arquitectura Microcontrolador PIC16F887Arquitectura Microcontrolador PIC16F887
Arquitectura Microcontrolador PIC16F887
 
Flip-Flops y aplicaciones de los Latch
Flip-Flops y aplicaciones de los LatchFlip-Flops y aplicaciones de los Latch
Flip-Flops y aplicaciones de los Latch
 
Clase Sistemas Numéricos
Clase Sistemas NuméricosClase Sistemas Numéricos
Clase Sistemas Numéricos
 

Similar a Arquitectura de computadores Linux Yocto y GPIO

Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...
Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...
Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...IoT Colombia
 
Taller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboards
Taller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboardsTaller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboards
Taller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboardsSofia2 Smart Platform
 
8.3.3.3 lab collecting 6 taller
8.3.3.3 lab   collecting  6 taller8.3.3.3 lab   collecting  6 taller
8.3.3.3 lab collecting 6 tallermanchegow
 
Manual netis wf2710 qig multilaser re085 11 ac 750mbps
Manual netis wf2710 qig   multilaser re085 11 ac 750mbpsManual netis wf2710 qig   multilaser re085 11 ac 750mbps
Manual netis wf2710 qig multilaser re085 11 ac 750mbpsNome Sobrenome
 
2. Sistema Operativo de Red.pdf
2. Sistema Operativo de Red.pdf2. Sistema Operativo de Red.pdf
2. Sistema Operativo de Red.pdfDavid Narváez
 
Manual de router y acl
Manual de router y aclManual de router y acl
Manual de router y aclUTRNG
 
Solid Day - Cloudino
Solid Day - CloudinoSolid Day - Cloudino
Solid Day - CloudinoSoftware Guru
 
Arquitectura de redes de ordenadores tic
Arquitectura de redes de ordenadores ticArquitectura de redes de ordenadores tic
Arquitectura de redes de ordenadores ticKoldo Parra
 
MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2 MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2 marcoita
 
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]RootedCON
 
2.1 DIRECCIONAMIENTO IP
2.1 DIRECCIONAMIENTO IP2.1 DIRECCIONAMIENTO IP
2.1 DIRECCIONAMIENTO IPDavid Narváez
 
Mensajes de control y Error del conjunto TCP/IP - ICMP
Mensajes de control y Error del conjunto TCP/IP - ICMPMensajes de control y Error del conjunto TCP/IP - ICMP
Mensajes de control y Error del conjunto TCP/IP - ICMPMarco Antonio Arenas Porcel
 
T3ch fest leganes_final
T3ch fest leganes_finalT3ch fest leganes_final
T3ch fest leganes_finalRober Garamo
 
Actividad 2 irdt convertido
Actividad 2 irdt convertidoActividad 2 irdt convertido
Actividad 2 irdt convertidoROLO36
 
TECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNET
TECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNETTECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNET
TECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNETjocelynesnicolaldes
 

Similar a Arquitectura de computadores Linux Yocto y GPIO (20)

Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...
Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...
Arduino Day 2017 - IoT Colombia. Internet de las Cosas: Lleva tu realidad a l...
 
Taller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboards
Taller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboardsTaller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboards
Taller IoT: desarrollo visual en Sofia2 con Raspberry Pi, Node-RED y dashboards
 
8.3.3.3 lab collecting 6 taller
8.3.3.3 lab   collecting  6 taller8.3.3.3 lab   collecting  6 taller
8.3.3.3 lab collecting 6 taller
 
Manual netis wf2710 qig multilaser re085 11 ac 750mbps
Manual netis wf2710 qig   multilaser re085 11 ac 750mbpsManual netis wf2710 qig   multilaser re085 11 ac 750mbps
Manual netis wf2710 qig multilaser re085 11 ac 750mbps
 
2. Sistema Operativo de Red.pdf
2. Sistema Operativo de Red.pdf2. Sistema Operativo de Red.pdf
2. Sistema Operativo de Red.pdf
 
Manual de router y acl
Manual de router y aclManual de router y acl
Manual de router y acl
 
Solid Day - Cloudino
Solid Day - CloudinoSolid Day - Cloudino
Solid Day - Cloudino
 
Micropython el sílice y la serpiente
Micropython el sílice y la serpienteMicropython el sílice y la serpiente
Micropython el sílice y la serpiente
 
Arquitectura de redes de ordenadores tic
Arquitectura de redes de ordenadores ticArquitectura de redes de ordenadores tic
Arquitectura de redes de ordenadores tic
 
MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2 MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2
 
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
 
Pix (1)
Pix (1)Pix (1)
Pix (1)
 
firewall.pptx
firewall.pptxfirewall.pptx
firewall.pptx
 
Firewall hw
Firewall hwFirewall hw
Firewall hw
 
2.1 DIRECCIONAMIENTO IP
2.1 DIRECCIONAMIENTO IP2.1 DIRECCIONAMIENTO IP
2.1 DIRECCIONAMIENTO IP
 
Mensajes de control y Error del conjunto TCP/IP - ICMP
Mensajes de control y Error del conjunto TCP/IP - ICMPMensajes de control y Error del conjunto TCP/IP - ICMP
Mensajes de control y Error del conjunto TCP/IP - ICMP
 
T3ch fest leganes_final
T3ch fest leganes_finalT3ch fest leganes_final
T3ch fest leganes_final
 
Actividad 2 irdt convertido
Actividad 2 irdt convertidoActividad 2 irdt convertido
Actividad 2 irdt convertido
 
Seminari
SeminariSeminari
Seminari
 
TECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNET
TECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNETTECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNET
TECNOLOGÍA ESTUDIO REDES INALÁMBRICAS INTERNET
 

Más de Fernando Aparicio Urbano Molano (11)

Ciclos de Control en Shell
Ciclos de Control en ShellCiclos de Control en Shell
Ciclos de Control en Shell
 
Introducción al Shell Linux
Introducción al Shell LinuxIntroducción al Shell Linux
Introducción al Shell Linux
 
Introducción al Linux Embebido
Introducción al Linux EmbebidoIntroducción al Linux Embebido
Introducción al Linux Embebido
 
Lenguaje C para Microcontroladores PIC - Declaraciones de Decisión
Lenguaje C para Microcontroladores PIC - Declaraciones de DecisiónLenguaje C para Microcontroladores PIC - Declaraciones de Decisión
Lenguaje C para Microcontroladores PIC - Declaraciones de Decisión
 
Introducción al Lenguaje C para microcontroladores PIC
Introducción al Lenguaje C para microcontroladores PICIntroducción al Lenguaje C para microcontroladores PIC
Introducción al Lenguaje C para microcontroladores PIC
 
Clase Timer 1
Clase Timer 1Clase Timer 1
Clase Timer 1
 
Conversor ADC
Conversor ADCConversor ADC
Conversor ADC
 
Timer 0 - Pic16F877A
Timer 0 - Pic16F877ATimer 0 - Pic16F877A
Timer 0 - Pic16F877A
 
Introducción al VHDL
Introducción al VHDLIntroducción al VHDL
Introducción al VHDL
 
Clase arquitectura
Clase arquitecturaClase arquitectura
Clase arquitectura
 
Clase historia
Clase historiaClase historia
Clase historia
 

Último

PARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdfPARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdfSergioMendoza354770
 
El uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFELEl uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFELmaryfer27m
 
tics en la vida cotidiana prepa en linea modulo 1.pptx
tics en la vida cotidiana prepa en linea modulo 1.pptxtics en la vida cotidiana prepa en linea modulo 1.pptx
tics en la vida cotidiana prepa en linea modulo 1.pptxazmysanros90
 
Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024GiovanniJavierHidalg
 
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6    CREAR UN RECURSO MULTIMEDIAActividad integradora 6    CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA241531640
 
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...FacuMeza2
 
trabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdftrabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdfIsabellaMontaomurill
 
ejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sofejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sofJuancarlosHuertasNio1
 
El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.241514949
 
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptxMedidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptxaylincamaho
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfsoporteupcology
 
SalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 TestcontainersSalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 TestcontainersIván López Martín
 
R1600G CAT Variables de cargadores en mina
R1600G CAT Variables de cargadores en minaR1600G CAT Variables de cargadores en mina
R1600G CAT Variables de cargadores en minaarkananubis
 
Hernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxHernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxJOSEMANUELHERNANDEZH11
 
Presentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadPresentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadMiguelAngelVillanuev48
 
La era de la educación digital y sus desafios
La era de la educación digital y sus desafiosLa era de la educación digital y sus desafios
La era de la educación digital y sus desafiosFundación YOD YOD
 
definicion segun autores de matemáticas educativa
definicion segun autores de matemáticas  educativadefinicion segun autores de matemáticas  educativa
definicion segun autores de matemáticas educativaAdrianaMartnez618894
 
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...JaquelineJuarez15
 
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxCrear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxNombre Apellidos
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)GDGSucre
 

Último (20)

PARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdfPARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
PARTES DE UN OSCILOSCOPIO ANALOGICO .pdf
 
El uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFELEl uso delas tic en la vida cotidiana MFEL
El uso delas tic en la vida cotidiana MFEL
 
tics en la vida cotidiana prepa en linea modulo 1.pptx
tics en la vida cotidiana prepa en linea modulo 1.pptxtics en la vida cotidiana prepa en linea modulo 1.pptx
tics en la vida cotidiana prepa en linea modulo 1.pptx
 
Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024
 
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6    CREAR UN RECURSO MULTIMEDIAActividad integradora 6    CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
 
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
ATAJOS DE WINDOWS. Los diferentes atajos para utilizar en windows y ser más e...
 
trabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdftrabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdf
 
ejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sofejercicios pseint para aprogramacion sof
ejercicios pseint para aprogramacion sof
 
El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.El uso de las TIC's en la vida cotidiana.
El uso de las TIC's en la vida cotidiana.
 
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptxMedidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdf
 
SalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 TestcontainersSalmorejoTech 2024 - Spring Boot <3 Testcontainers
SalmorejoTech 2024 - Spring Boot <3 Testcontainers
 
R1600G CAT Variables de cargadores en mina
R1600G CAT Variables de cargadores en minaR1600G CAT Variables de cargadores en mina
R1600G CAT Variables de cargadores en mina
 
Hernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxHernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptx
 
Presentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidadPresentación inteligencia artificial en la actualidad
Presentación inteligencia artificial en la actualidad
 
La era de la educación digital y sus desafios
La era de la educación digital y sus desafiosLa era de la educación digital y sus desafios
La era de la educación digital y sus desafios
 
definicion segun autores de matemáticas educativa
definicion segun autores de matemáticas  educativadefinicion segun autores de matemáticas  educativa
definicion segun autores de matemáticas educativa
 
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
El gusano informático Morris (1988) - Julio Ardita (1995) - Citizenfour (2014...
 
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxCrear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)
 

Arquitectura de computadores Linux Yocto y GPIO

  • 1. ARQUITECTURA DE COMPUTADORES LINUX YOCTO Y GPIO Mag. FERNANDO APARICIO URBANO MOLANO
  • 2. 2 DIRECCIÓN IP FIJA • Asignar una IP Fija y hacer conexión PC a Galileo void setup() { Serial.begin(115200); system("telnetd -l /bin/sh"); system("ifconfig eth0 169.254.1.2 netmask 255.255.0.0 up"); } void loop() { system("ifconfig eth0 > /dev/ttyGS0"); delay(2000); }
  • 3. 3 DIRECCIÓN DHCP • Intel Galileo se conecta mediante IP Dinámica void setup() { system("telnetd -l /bin/sh"); system("/etc/init.d/networking restart"); delay(1000); } void loop() { system("ifconfig eth0 > /dev/ttyGS0"); delay(5000); } • Router asigna IP automáticamente. Galileo transmite la dirección al computador.
  • 4. 4 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Conectar mediante Telnet, a la dirección asignada a Galileo. Verificar la dirección IP enviada al computador.
  • 5. 5 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Ejecutar Telnet o PuTTy. En PuTTy seleccionar “Telnet” y Puerto 23.
  • 6. 6 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Una vez establecida la comunicación, debe mostrarse lo siguiente:
  • 7. 7 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Ingresar como “root”: #login root
  • 8. 8 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Una vez se haya ingresado, verificamos el contenido del directorio digitando el comando “ls” y luego acceder a GPIO.
  • 9. 9 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Se pueden ver todos los GPIO disponibles usando “ls” e ingresamos a uno de ellos mediante el comando “CD gpio#”.
  • 10. 10 CONEXIÓN A LA RED DESDE EL COMPUTADOR • Interactuamos con el GPIO seleccionado:
  • 11. 11 GPIO DE INTEL GALILEO Pin Digital Arduino Pin en Linux 0 50 1 51 2 14 3 15 4 28 5 17 6 24 7 27 8 26 9 19 10 16 11 25 12 38 13 39
  • 12. 12 PYTHON EN LINUX YOCTO DE INTEL GALILEO • Para aprovechar las potencialidades de Python, se debe correr Yocto desde una imagen instalada en una SD Card, preferiblemente la distribución IoT: https://software.intel.com/en-us/programming-blank-sd-card-with-yocto-linux- image-windows • Python: lenguaje de programación interpretado (multiplataforma) – multiparadigma. • Librería MRAA para soportar los GPIO de Intel Galileo con Python.
  • 13. 13 PYTHON EN LINUX YOCTO DE INTEL GALILEO • Realizar la conexión via Ethernet, asegurarse de conocer la IP que la Intel Galileo posee en la Red.
  • 14. 14 PYTHON EN LINUX YOCTO DE INTEL GALILEO • Ingresar como usuario “root”:
  • 15. 15 PYTHON EN LINUX YOCTO DE INTEL GALILEO • Escribir “python”, para conocer la versión de Python instalada.
  • 16. 16 PYTHON EN LINUX YOCTO DE INTEL GALILEO • Para escribir el código de Python, utilizar el editor Vi:
  • 17. 17 PYTHON EN LINUX YOCTO DE INTEL GALILEO • En Vi, presionar la tecla “I” para editar el código:
  • 18. 18 PYTHON EN LINUX YOCTO DE INTEL GALILEO • En Vi, presionar la tecla “ESC” para salir de la edición de código, digitar “:wq” (Salir y guardar):
  • 19. 19 PYTHON EN LINUX YOCTO DE INTEL GALILEO • En Vi, presionar la tecla “ESC” para salir de la edición de código, digitar “:wq” (Salir y guardar):
  • 20. 20 PYTHON EN LINUX YOCTO DE INTEL GALILEO • Para ejecutar el código: #python nombre.py
  • 21. 21 PYTHON EN LINUX YOCTO DE INTEL GALILEO import mraa #API para acceder a los periféricos import time LED_GPIO = 5 LedIntermintente = mraa.Gpio(LED_GPIO) LedIntermitente.dir(mraa.DIR_OUT) ledEstado = False LedIntermitente.write(0) while True: if ledEstado== False: LedIntermitente.write(1) ledState = True else: LedIntermitente.write(0) ledEstado = False print "LED está encendido? nAns: %s" %(ledEstado) time.sleep(1)