Saturday, September 19, 2015

Raspberry Pi 2 official touchscreen display

Installed the official touchscreen on one of my Raspberry Pi 2 devices.

It was a easy, I followed the guide Raspberry Pi Official DSI Display Assembly to install the hardware. After the hardware setup of the display I connected a USB cable for powering the Raspberry pi according to the guide in The eagerly awaited Raspberry pi display



Starting up the the device the display was working, but no touchscreen was enabled. To get the touchscreen to work I did the upgrade explained in the guide:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo reboot
After the update the display worked as expected.

Raspberry Pi 2 WiFi with WEP Open System

Tried to get the wifi going with the GUI in Raspbian but it would not start working.

Ended up googeling and found this forum post on the Raspberrypi forum. that explained how to correctly setup the file for WEP with open system:
network={
    ssid="myssid"
    key_mgmt=NONE
    wep_key0=mywepkey
    wep_tx_keyidx=0
}
Found an blogpost explaining how to edit the file:
$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf 
changed myssid to the my wifi network ssid and changed the mywebkey to the correct key.

did a reboot
$ sudo reboot
and now it works!


Monday, August 31, 2015

Solution to sound problem on HDMI TV after upgrade to Windows 10 on Surface Pro 3

Were having problem getting the sound from the Surface Pro 3 to my TV through HDMI. It worked before upgrading so Windows 10 had a different behavior. Found this http://answers.microsoft.com/en-us/surface/forum/surfpro3-surfusingwin10/no-hdmi-sound-after-upgrade-to-windows-10/45c740da-5326-48a1-9be5-1e84dca50ae8 on the internet, though it might be good to write down so I'll remember next time.

Right click on the speaker icon, on the task bar.
Choose Playback Devices.
Right Click the TV item in the list

Choose Properties
Click the "Advanced" tab in the dialog
change the default format for audio playback to a lower value.
 



Thursday, August 27, 2015

Hello World with Windows 10 Core IoT and Visual Studio 2015

Start by creating an Universal Application project in Visual Studio 2015:

Change the platform to ARM:

Change the target to Remote Machine (You have to set up your Raspberry Pi 2 unit with Windows 10 Core IoT before doing this):

Click on the minwinpc:

Choose to select:

It's possible to change size of  the mainPage.xaml:

Added a Hello world text block and run the application, On the TV connected to the Raspberry Pi 2. Tha application is started and shows "Hello World":

Wednesday, August 26, 2015

Solved: Error: this template attempted to load component assembly 'Microsoft.VisualStudio.Universal.TemplateWizards...

I got this error message:


when trying to create a Background Application (IoT) project in Visual Studio 2015:



When reading through the setup guide http://ms-iot.github.io/content/en-US/win10/SetupPCRPI.htm an extra time I found out that I've missed installing this when installing Visual Studio 2015:

The required version of Visual Studio Tools for Universal Windows Apps is 14.0.23121.00 D14OOB.

I click on the Templates | Visual C# | Windows | Universal
and from there I installed the templates and after that the error message when creating a background application disappeared.

Tuesday, August 25, 2015

Raspberry PI 2 and Windows 10 IoT Core

Have been playing around with an Raspberry Pi 2 and Windows 10 IoT Core.


There is a great guide on how to prepare your PC and Raspberry Pi 2 with windows 10 IoT Core here https://ms-iot.github.io/content/en-US/win10/SetupRPI.htm following the guide is easy. But I don't get the requirement for Windows 10 to be able to flash the image to the memory card. But off course to be able to develop you need Windows 10 and Visual Studio 2015.

Installed Visual Studio 2015 Community and the IoT Templates. Described here https://ms-iot.github.io/content/en-US/win10/SetupPCRPI.htm

I tried to get the wifi up and running but windows 10 IoT Core seems to only support some USB wifi dongles https://ms-iot.github.io/content/en-US/win10/SetupWiFi.htm So ended up using ethernet cable.

A good advice is to change the default password. So I did that in the a first Powershell session following the setup guide:
net user Administrator [new password]

By starting the Windows IoT Core Watcher on a desktop PC that are on the same network. It's possible to see all Raspberry Pi 2 devices running on the network

By right clicking the item it's possible to open the website on the Raspberry Pi 2 <ip-adress>:8080.

Monday, August 24, 2015

Visual Studio Online

Microsoft Visual Studio Online makes it possible to have an online ALM. Each Project can have 5 basic users and unlimited amount of stakeholder users.

I made an presentation for our user group a few month ago. Posted on Slideshare.net: http://www.slideshare.net/MathiasWestin/knowit-study-group-rnskldsvik-introduction-to-visual-studio-online

Friday, March 06, 2015

Installing NAPA Office 365 Development Tools

There is a great instruction on how to install the NAPA Development Tools here:
https://msdn.microsoft.com/en-us/library/office/fp179924%28v=office.15%29.aspx

After installing it's possible to create Apps in NAPA that can be published in the Sharepoint App Store.
 
It's possible to create several different app types:

NAPA has a editor where the code can be edited online:

Introduction to Microsoft Azure websites

Have been watching a lot of online courses last month on Microsoft Virtual Academy on the cloud track on Know It Prove It.

The fundamentals courses by Bob Tabor:
http://www.microsoftvirtualacademy.com/training-courses/microsoft-azure-fundamentals
http://www.microsoftvirtualacademy.com/training-courses/microsoft-azure-fundamentals-websites
showed how easy it is to set up and configure a Microsoft Azure website.

Made a short introduction presentation for our Study group to inspire other developers to start using Azure when doing web development. For those who are interested it's published the presentation on:
http://www.slideshare.net/MathiasWestin/knowit-study-group-rnskldsvik-introduction-to-microsoft-azure-websites

Thursday, February 26, 2015

How to make web site running IIS Express accessible from a Raspberry Pi 2

I wanted to build a web site that is used by a Raspberry Pi 2 from Visual Studio without hosting the site in an IIS.

Was following the following this guide:
http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx

Got some errors, though it could be great for my own memory to write down the steps nessessary:

First step: Edititing the applicationhost.config:



Change "localhost" to the ip-number of the machine running the IIS Express (can be found by using command netconfig in the command prompt) ip-number is for example 192.168.1.2:


Second step: Tell HTTP.SYS that everybody has access to the url:

netsh http add urlacl url=http://myhostname:58763/ user=everybody


If Everything works you get:
URL reservation successfully added


"everybody" needs to be "alla" in a swedish machine otherwise you get the following error message:

Create SDDL failed, Error: 1332 Felaktig parameter.


If you like me forget the / in the url that is write http://myhostname:58763 without trailing / you get the following error message:

Url reservation add failed, Error: 87 Felaktig parameter.


Third step: add an exception in the firewall:

netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=58763 profile=private remoteip=localsubnet action=allow


If Everything works you get:

Ok.


If running the IIS Express from Visual studio you need to run as administrator, otherwise you get an error message that say you need to run as an administrator.

Check that you can access the machine running the IIS Express by entering ping 192.168.1.2 in the command prompt in Raspberry pi. If you can access the machine, start the web browser and enter http://192.168.1.2:58763 in the adress.

Now its possible to access the site.

Sunday, February 01, 2015

Testing f.lux that adjust color temperature of the display

Trying out a tool called f.lux that adjust the color on the computer screen so that the eyes don't get tired so fast when working late evening/night. I found the tool in Scott Hanselman:s ultimate tool list so thanks for sharing. Worth trying out when working late during the winter month. I must admit that I've started adjusting the brightness on the phone and surface after using f.lux a while, because I felt the brightness was too bright for my eyes.