#EVENT- Materials used in #Coding4Fun event at Tenerife #Tlp2015 #TlpInnova

Hola!

The day before the event I upgraded my laptop to the RTM version of Windows 10, so the demo time during the session was a stressful one. Besides this, I have an amazing time, and the people at the room seems to enjoy my presentation also. I also had the chance to spend some quality family time in Tenerife, playing with Windows 10, drones, beach, running, Loro Parque and water attractions at Siam Park. So far I’m more tired than usual !!!! And of course, I must share a BIG THANKS to the TLP Innova team, to the attendes, the colleagues and friends, I really really love Tenerife.

I get a couple of questions in Twitter about the materials, so I share an evolution/copy/paste of the stuff I already share in Andorra a couple of weeks ago.

Slides

Source Code: https://github.com/elbruno/events/tree/master/2015%2007%2017%20TLP%20C4F

Some house cleaning

– The Simple HID Write tool, can be downloaded from here (thanks Jan Axelsons!)

– The USB MAIL device I used, is similar to this one (link), you can find this cheaper if you search online

– The Heart Rate sensor I used in the Bluetooth LE demo is this one (link)

– The “Drone” connected with BLE with Windows 10 (build 10240 it should fly!!!) is a Parrot Rolling Spider (link)

Saludos @ Tenerife

/El Bruno

References

– USB Email, http://es.aliexpress.com/store/product/USB-Webmail-Notifer-USB-Webmail-Web-Mail-E-mail-Notifier-Light-for-PC-Laptop-Computer/1292922_32273404408.html

– Parrot Rolling Spider, www.parrot.com/products/rolling-spider/

– Polar Heart Rate Sensor H7, http://www.polar.com/us-en/products/accessories/H7_heart_rate_sensor

Advertisements

#EVENT- Materiales del evento #Coding4Fun en Tenerife #Tlp2015 #TlpInnova

Hola!

El día anterior actualicé a la version RTM de Windows 10 y claro, nada major que eso para jugar con fuego durante un evento. Eso sí, yo me lo pasé genial y parece que la gente también. Tuve la suerte de tener una gran excusa para pasar unos días en Tenerife con Pao, Valentino y Martina, y entre tanto Windows 10, drone, playita, Loro Parque y Siam Park, la verdad que me voy exhausto; no sin antes agradecer muchísimo a toda la gente que participó / coordinó las sesiones de la TLP Innova.

Como alguno ya me ha hecho alguna pregunta en twitter sobre los materiales, pues dejo un evolution/copy/paste de lo que compartí en Andorra hace un tiempo.

Ahora es comento de compartir las slides y también el código fuente de las demos

Source Code: https://github.com/elbruno/events/tree/master/2015%2007%2017%20TLP%20C4F

Y un par de detalles

– La app Simple HID Writer se puede descargar desde aquí (link), gracias Jan Axelson !!!

– El USB MAIL que uso es uno parecido a este (link), seguro que buscando encuentras uno más barato

– El Heart Rate sensor que he utilizado para la demo de Bluetooth LE de polar es este (link)

– El drone que “sigue sin volar” con Windows 10 RTM (build 10240) es el Parrot Rolling Spider (link)

Saludos @ Tenerife

/El Bruno

References

– USB Email, http://es.aliexpress.com/store/product/USB-Webmail-Notifer-USB-Webmail-Web-Mail-E-mail-Notifier-Light-for-PC-Laptop-Computer/1292922_32273404408.html

– Parrot Rolling Spider, www.parrot.com/products/rolling-spider/

– Polar Heart Rate Sensor H7, http://www.polar.com/us-en/products/accessories/H7_heart_rate_sensor

#EVENT- Materials used in Windows 10 Developer Readiness by MVPs #IoT #MVPbuzz #webcast

Hola!

I’ve just updated to Windows 10 RTM today, so there is no better time to share the source code, video and slides I used a couple of weeks ago in the webcast for Channel 9 “Windows 10 for developers”. I was talking about Internet of Things and Windows 10.

You can access the webcast in Channel 9 https://channel9.msdn.com/Events/MVP-Virtual-Conference/Windows-10-Developer-Readiness-Powered-by-MVPs/Spain; my IoT speech starts at 01:55:00 aprox.

You can also take a look at my slides in

Finally, the source code of the demos is available in GitHub https://github.com/elbruno/events/tree/master/2015%2006%2011%20Windows%2010%20Developer%20Readiness%20by%20MVPs/WuaRpi01

Tomorrow some more Windows 10 with TLP-Innova friends 😉

Saludos @ Tenerife

/El Bruno

#EVENT- Materiales del #webcast Windows 10 Developer Readiness by MVPs #IoT #MVPbuzz

Hola!

Hoy he actualizado a la version RTM de Windows 10 y que mejor momento que este para compartir los materiales que usamos en el webcast de presentacion de capacidades de Windows 10 para desarrolladores. En mi caso, me hice cargo de la sección de Internet of Things.

El webcast se puede ver en este link https://channel9.msdn.com/Events/MVP-Virtual-Conference/Windows-10-Developer-Readiness-Powered-by-MVPs/Spain; la parte de IoT comienza a partir de 01:55:00.

Se pueden ver mis slides en

Y el código Fuente de las demos de la session está disponible en GitHub en https://github.com/elbruno/events/tree/master/2015%2006%2011%20Windows%2010%20Developer%20Readiness%20by%20MVPs/WuaRpi01

Mañana un poco más de Windows 10 con los amigos de TLP-Innova 😉

Saludos @ Tenerife

/El Bruno

EVENT- #Coding4Fun 2.5 at #TLP2015 #TLPInnova (Required Update)

Hola!

Next week I’ll be hosting a Coding4Session on Tenerife in TLP. The event

2000 new technologies fans, 6 days 24 hours with increased connection of the country. More than 40,000 visitors will immerse in the world of comics, film, and Manga among others.

And in TLP Innova will enjoy more than 100 hours of training workshops and conferences of the best speakers.

And a cool one, every related to TLP Innova is Free. So you only need to Review the agenda and Start choosing some sessions.

On Friday July 17th, from 16:00 to 17:00 I’ll be doing a new version of Coding4Fun 2.5, with some contents from Internet of Things, Windows 10, Visual Studio 2015, Drones, etc.

There are some other very cool sessions about Azure, Project Oxford, Web Development, Minecraft and Azure, Windows 10, etc. No sun during this day for sure 😉

Important: This one is a required update because Visual Studio 2015 and Windows 10 are in almost RTM mode. So, there are plenty of updates and some demos are broken. In example>

Date Event Demo Status
Tuesday 30 June Windows 10 IoT for Channel9 100%
Wednesday 1 July Upgrade a Windows 10 Build 10162 75%
Thursday 2 July Family trip to Andorra 75%
Saturday 4 July Coding4Fun Andorra 75%
Today Upgrade to latest versions on SO and VS ¿?

References

– TLP Innova, http://tlp-tenerife.com/tlpinnova/

– TLP Agenda, http://tlp-tenerife.com/tlpinnova/agenda/mes/?tribe-bar-date=2015-07-13

– TLP Entradas, http://tlp-tenerife.com/entradas/

Saludos @ Madrid

/El Bruno

ENG [#IOT] WindowsIoTCoreWatcher.exe does not start and how fix it

Hello!

New post for Windows 10 and Raspberry Pi 2 series

  1. Hardware and software (1 on N)
  2. Boot from SD card in the device (2 of N)
  3. Hello World mode! (3 of N)
  4. Visual Studio deployment process and Web Management app (4 on N)
  5. Hello Blinky !!! (5 on N)
  6. Some admin tasks, like change password and change name (6 on N)
  7. List of connected devices in the Raspberry Pi 2 (7 on N)
  8. Deploy an app using the deploy package (8 on N)
  9. Different behaviors for an App based on the app architecture
  10. WindowsIoTCoreWatcher.exe does not start and how fix it

Sometimes after you install the Windows IoT core Raspberry Pi 2 SDK, you may find that the monitoring tool “Windows IoT Watcher” cannot be launched. If you start to research you’ll find the following error

Could not load file or assembly ‘ WindowsIoTCoreWatcher, Version = 10. 0. 0. 0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35′ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

And of course, working with a Preview OS, with an SDK also in Preview, the most advisable to do is go to the forums to find some help.

I I found several people in the same situation and with a not so elegant solution (but it works) “remove the app certificate“.

To do this, we use SNRemove.exe, an interesting tool created 10 years ago! with the following command

snremove.exe – r WindowsIoTCoreWatcher.exe

And ready, now we can launch without a problem the app. Here is the curious Friday tip.

Greetings @ Home

/El Bruno

Foro: https://social.msdn.microsoft.com/Forums/en-US/c9fd7f9d-694e-4543-ad78-19c43430ea9c/iot-core-watcher-user-interface-not-starting?forum=WindowsIoT

SNRemove http://www.nirsoft.net/dot_net_tools/strong_name_remove.html

[#IOT] WindowsIoTCoreWatcher.exe does not start y como solucionarlo

Hola !

Nuevo post para la serie de Windows 10 y Raspberry Pi 2

  1. Hardware y software (1 de N)
  2. Montando la SD en el device (2 de N)
  3. Ahora si el Hello World ! (3 de N)
  4. Sobre el proceso de despliegue desde VS y Web Management app (4 de N)
  5. Hello Blinky !!! (5 de N)
  6. Acciones de administrador, cambiar password, cambiar nombre, etc (6 de N)
  7. Accediendo a los devices conectados (7 de N)
  8. Desplegando una app desde un paquete (8 de N)
  9. Diferentes comportamientos en base arquitectura de la app
  10. Solucionar el problema de arranque de WindowsIoTCoreWatcher.exe

Si en determinadas ocasiones, después de instalar el SDK para Raspberry Pi 2 de Windows IoT Core, te encuentras que la aplicación de monitorización “Windows IoT Watcher” no se puede lanzar. Si te pones a investigar un poco verás que el error que da es el siguiente

Could not load file or assembly ‘WindowsIoTCoreWatcher, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

Y claro, en un SO en modo Preview, con un SDK también en modo Preview, lo más recomendable para hacer es ir a ver si en los foros alguien te puede dar una mano.

Yo me he encontrado con varias personas en la misma situación y con una solución poco elegante, pero que funciona: “eliminar el certificado de la app“.

Para esto utilizan SNRemove.exe, una herramienta de esas interesantes que alguien creó hace 10 años! con el siguiente comando

“snremove.exe -r WindowsIoTCoreWatcher.exe”

Y listo, ya podemos lanzar sin problema la app. Aquí queda el tip curioso de viernes.

Saludos @ Home

/El Bruno

Foro: https://social.msdn.microsoft.com/Forums/en-US/c9fd7f9d-694e-4543-ad78-19c43430ea9c/iot-core-watcher-user-interface-not-starting?forum=WindowsIoT

SNRemove http://www.nirsoft.net/dot_net_tools/strong_name_remove.html

ENG [#IOT] Different behaviors for an App based on the app architecture (9 on N) #RaspberryPi2 #Windows10

Hello!

New post for Windows 10 and Raspberry Pi 2 series

  1. Hardware and software (1 on N)
  2. Boot from SD card in the device (2 of N)
  3. Hello World mode! (3 of N)
  4. Visual Studio deployment process and Web Management app (4 on N)
  5. Hello Blinky !!! (5 on N)
  6. Some admin tasks, like change password and change name (6 on N)
  7. List of connected devices in the Raspberry Pi 2 (7 on N)
  8. Deploy an app using the deploy package (8 on N)
  9. Different behaviors for an App based on the app architecture

If you’re an old school developer when you find a change one of the oldest APIs, for sure you’ll suffer a heart attack. That’s what happened with the classical System.Environment. The following image shows the difference that we have between a classic WPF app with .net 4.5 and a Universal App for Windows 10.

Clipboard07

Now a Universal App will execute in a controlled environment (Sandbox), whether on a laptop, a smartphone or a device. This implies that the app capabilities are tied to this Sandbox. For example, what formerly used to get from the Environment, now perhaps we must look for it in the Package of the application. The architecture of the processor is an example, and the following code shows an example to validate if the app is running on an ARM processor.

Clipboard10

While the idea behind Universal Apps is to have the maximum code unified for all platforms, should take into account the capabilities of each platform. For example, in ARM we don’t have the possibility to use MessageDialogs so if we want to show a message we have to do a bit of defensive programming .

Clipboard12

This allows us to display a message in the mode dialog on a laptop or tablet

Clipboard14

And for the case of ARM, the message in a TextBlock as part of the app.

Clipboard01

The sample code on github

https://github.com/elbruno/W10Rpi2/tree/master/SystemInfoV02

Saludos @ Madrid

/El Bruno

References

Environment.Is64BitProcess, https://msdn.microsoft.com/en-us/library/system.environment.is64bitprocess(VS.100).aspx

MessageDialog, https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx

[#IOT] Diferentes comportamientos en base arquitectura de la app (9 de N) #RaspberryPi2 y #Windows10

Hola !

Nuevo post para la serie de Windows 10 y Raspberry Pi 2

  1. Hardware y software (1 de N)
  2. Montando la SD en el device (2 de N)
  3. Ahora si el Hello World ! (3 de N)
  4. Sobre el proceso de despliegue desde VS y Web Management app (4 de N)
  5. Hello Blinky !!! (5 de N)
  6. Acciones de administrador, cambiar password, cambiar nombre, etc (6 de N)
  7. Accediendo a los devices conectados (7 de N)
  8. Desplegando una app desde un paquete (8 de N)
  9. Diferentes comportamientos en base arquitectura de la app

Si eres un developer de vieja escuela, cuando te cambian una de las APIs más antiguas te puede dar un infarto. Eso es lo que ha pasado con la clásica System.Environment. La siguiente imagen muestra la diferencia que tenemos entre una app clásica WPF con .Net 4.5 y una Universal App para Windows 10.

Clipboard07

Ahora bien, una Universal App se ejecuta en un entorno controlado (sandbox), ya sea en un laptop, un smartphone o un device. Esto implica que las capacidades de la app están atadas a este Sandbox. Por ejemplo, lo que antes solíamos obtener desde el Environment, ahora tal vez debemos buscarlo en el Package de la Aplicación. La arquitectura del procesador es un ejemplo, y el siguiente código muestra un ejemplo para validar si la app se está ejecutando en un procesador ARM.

Clipboard10

Si bien la idea detrás de las Universal Apps es tener el máximo código unificado para todas las plataformas, hay que tener en cuenta las capacidades de cada plataforma. Por ejemplo, en ARM no tenemos la posibilidad de mostrar MessageDialogs así que si queremos mostrar información tenemos que hacer un poco de programación defensiva.

Clipboard12

Esto nos permite mostrar un mensaje en modo diálogo en una laptop o tablet

Clipboard14

Y para el caso de ARM, el mensaje en un TextBlock como parte de la app.

Clipboard01

El código de ejemplo en github

https://github.com/elbruno/W10Rpi2/tree/master/SystemInfoV02

Saludos @ Madrid

/El Bruno

References

Environment.Is64BitProcess, https://msdn.microsoft.com/en-us/library/system.environment.is64bitprocess(VS.100).aspx

MessageDialog, https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx

[#IOT] #RaspberryPi2 and #Windows10, Deploy an app using the deploy package (8 on N)

Hello!

New post for Windows 10 and Raspberry Pi 2 series

  1. Hardware and software (1 on N)
  2. Boot from SD card in the device (2 of N)
  3. Hello World mode! (3 of N)
  4. Visual Studio deployment process and Web Management app (4 on N)
  5. Hello Blinky !!! (5 on N)
  6. Some admin tasks, like change password and change name (6 on N)
  7. List of connected devices in the Raspberry Pi 2 (7 on N)
  8. Deploy an app using the deploy package (8 on N)

In the 3rd post, I wrote about how we could launch an app on the device directly from Visual Studio in DEBUG mode. To deploy an app, there are other options like using PowerShell or the web administration console.

Once created our project, we have to go to the option “Store / / Create App packages…” to create the deploy packages for the app. When the creation process is complete you will see the following.

Clipboard01

Once we have the *.appx and *.cer file, we can now access our device web administration console. In it we will see that in the option [Apps] can view a list of installed apps and upload a new one.

Clipboard05

From the directory where we have created the deploy package, select the file appx, certificate and select the DEPLOY option

Clipboard07

Once the deployment process, we should see the application in the combo of applications. From this combo you can perform the following actions

-launch the app

-remove the app from the list

-configure the app to be the default app

Clipboard09

Important: All the apps that you’ve using in debug mode with Visual Studio to also appear here.The app name is not usually very friendly since it is a GUID with the Identity.name defined in the project manifest. Be careful deleting this ones.

Greetings @ Madrid

/El Bruno