fun with.net windows phone, lego mindstorms, and azure dan fernandez | twitter:@danielfe

12
Fun with .NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

Upload: remigio-sibila

Post on 29-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

Fun with .NET Windows Phone, LEGO Mindstorms, and Azure

Dan Fernandez | Twitter:@danielfe

Page 2: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

Session Goals

• Usa Windows Phone communicando por Bluetooth para manejar a LEGO Mindstorm EV3• LEGO Mindstorms Overview

• .NET API is open source: Eric Havir, Clint Rutkas, and Brian Peek• http://legoev3.codeplex.com

• Controle motores• Lee sensores

• Usa SignalR para a LEGO Mindstorm desde una pagina de web y deja ustedes manejar el Mindstorm• SignalR configuration• SignalR Cliente (Phone y browser) y Servicio

Page 3: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

LEGO Demo

Page 4: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

SignalR Demo

• Maneja using a web browser• Communicacion• Windows Phone .NET Cliente recibe comandos del SignalR servicio

y los manda al LEGO usando Bluetooth• JavaScript cliente para mandar y recibir comandos del browser• Supporta data types

• Usa mesanjes mandados en real tiempo• Reduce HTTP requests, Manda nuevo datos usando eventos

Page 5: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

SignalR decide como communicarWhen some lower-common denominator polling mechanism is needed

Web Servido

r

HTML Client

e

Tiene datos?Tiene datos?Tiene datos?Tiene datos?

Tiene datos?Tiene datos?Tiene datos?Tiene datos?

Aqui esta los datos

Page 6: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

SignalR on Modern Servers & ClientsWhen WebSockets or some other real-time layer is supported

Web Servid

or

HTML Client

e

Puedes communicar en tiempo real?

Si puedo!

Communicamos en tiempo real (Web sockets)

Page 7: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

SignalR BackplanesSin Backplanes, no puede comunicar con la segunda persona

Web Server B

Web Server A

Page 8: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

SignalR Backplane Usa ServiceBus, Redis, o SQL Server

Servidor A

Servidor B

Backplane

Page 9: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

SignalR Demo

Web &SignalR

Page 10: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

Vote DrivingInspired by Twitch plays Pokemon

SignalR

Page 11: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

Vote en vivo!

http://LegoBotWeb.azurewebsites.net/

Page 12: Fun with.NET Windows Phone, LEGO Mindstorms, and Azure Dan Fernandez | Twitter:@danielfe

Mas Informacion

• Controlando LEGO usando .NET es facil• http://legoev3.codeplex.com

• SignalR es fantastico para mandar mandar y recibir mensajes• www.asp.net/signalr/

• SignalR backplane• http://www.asp.net/signalr/overview/performance/scaleout-in-s

ignalr/