How to connect to Raspberry Pi 2 with Windows 10 IoT

To connect from your local PC to your Raspberry Pi 2 follow the next steps:

  • Check your Pi IP and/or computer name. (Default computer name is MINWINPC.)
  • Search for PowerShell in Windows and run it with administrative privileges.
  • Type: net start WinRM
  • Type: Set-Item WSMan:\localhost\Client\TrustedHosts -Value MINWINPC
    • You may need to click “Y” to allow this change.
  • Type: Enter-PsSession -ComputerName MINWINPC -Credential MINWINPC\Administrator
  • Enter the password which is: p@ssw0rd

You’re now connected.

For more complete and detailed instructions follow: http://ms-iot.github.io/content/en-US/win10/samples/PowerShell.htm

How to install Windows 10 IoT on Raspberry Pi 2 without Windows 10

For those who want to install Windows 10 IoT but don’t want to install Windows 10 follow the steps below:

  • Insert the SD card where you want to install Windows 10 IoT
  • Format it to FAT32 if needed.
  • Download Windows 10 IoT https://ms-iot.github.io/content/en-US/Downloads.htm
  • Unzip the downloaded ISO and you should see a file called Flash.ffu
  • Download the Windows 10 ADK at the end of this page: https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx
  • Search for Windows Imaging and Configuration Designer in your installed programs and run it.
  • Where it says deploy (top left corner right under the title bar) click on the down arrow and select the device where you want to install Windows 10 IoT (either a USB drive where your SD card is or a removable drive if you have one in your computer.)
  • Click on deploy.
  • Select the Flash.ffu file you downloaded before and click open.
  • Click next.
  • Make sure the target disk is correct and click next.
  • Click Flash.

After a few minutes you should have Windows 10 IoT installed in your SD card and you can now try it on your Raspberry Pi 2.

Raspberry Pi Wifi dropping connection

Started playing with my Raspberry Pi this weekend and noticed that the wifi connection would not stay up for long when connected through SSH. After some digging online I found that the wifi was getting put in sleep mode. Here’s how to fix it:

  • Create a new file named 8192cu.conf at the following location /etc/modprobe.d/8192cu.conf
    sudo nano /etc/modprobe.d/8192cu.conf
  • Write the following command
    options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

    (This makes sure that the power management is turned off thus preventing the dongle from going to sleep mode.)

  • You can go further and ensure that the connection remains up and stable by sending a ping request from your Pi to the router using crontab:
    crontab -e

    (Adds a new entry to crontab.)

  • Enter the following at the end of the file:
    */1 * * * * ping -c 1 192.168.1.2

    (Change the 192.168.1.2 to the IP of your router. The IP of the router can be found by opening a command prompt in Windows and running the ipconfig command and checking the number besides “default gateway“.)

If you don’t have a Edimax wifi dongle you may have to find how to disable the power management for your device.

Source: http://www.xbmchub.com/forums/raspberry-pi-discussion/8037-your-wifi-dongle-dropping-connection-mainly-edimax-ew-7811un.html