Blog about development IOT applications on Windows

Menu

Intel Galileo – getting started with IOT Windows development

This is my first blog entry about IOT (Internet Of Things). In this first post I’ll put some guidelines, how to setup windows on your Galileo (Gen1 and Gen2) and how to prepare your environment in Visual Studio for developing your first IOT application for things (in this case for Intel Galileo). Before the step-by-step instruction just a few words about Intel Galileo

About Galileo

Galileo is a microcontroller board based on the Intel® Quark SoC X1000 Application Processor, a 32-bit Intel Pentium-class system on a chip (datasheet). It’s the first board based on Intel® architecture designed to be hardware and software pin-compatible with Arduino shields. This means it’s a microcontroller and a real small computer in one device.

This means you can write apps using Arduino Wiring APIs and regular Windows code. There is also a project template for Visual Studio for Galileo Apps on Windows. Microsoft also provides image for Windows (at this moment 8.1, in the future Win 10) for installation on Galileo. If you intend to start with IOT development on Windows platform, using Microsoft development tools, Intel Galileo should be your first choice. On the website https://dev.windows.com/en-us/featured/Windows-Developer-Program-for-IoT you can find all information about Windows Developer Program for IoT, including setup instructions. Because there are some lacks in this instructions, in this blog post I put my own comprehensive guidelines. This steps are exactly what I have been done to prepare my Galileo for IOT development. I’ll describe both Gen1 (what I’m using) and Gen2 (the newer one) setup steps. The differences are minimal.

Step-by-step installation

Power on and test your Galileo

With nothing else connected to your Galileo board, plug power cable into the wall and then connect it to the Galileo DC jack. You should see a couple of LEDs light up.

In Device Manager locate Gadget Serial v2.4 device, under the Other devices tree. Right-click that and select Update Driver Software

On the first window that pops up, click Browse my computer for driver software. And on the next page navigate to the Arduino-1.5.3\hardware\arduino\x86\tools folder within your Arduino Galileo software installation.

Once the driver is successfully installed, Device Manager will show a Galileo (COMx) device under Ports (COM & LPT). Note the COMx port number as it will be needed in the IDE later.

Update Frimware

In Galileo Arduino IDE, go to Tools, select Board, and make sure “Intel Galileo” or “Intel Galileo Gen2″ is selected, depending on which board you are using.

In Galileo Arduino IDE, go to Tools -> Serial Port in the menu. Select the serial port that looks like this: COMx, where “x” is the number referenced in the previous step.Go to Help -> Firmware Update check to see if your board has the latest version.If your firmware is up to date, you do not need to complete this step. If your firmware is not up to date, proceed with firmware update

Test Galileo With Arduino IDE

In IDE select an example (File -> Examples -> 01.Basics –> Blink)

Click the Upload button in the toolbar.

When it is done, you will see the text “Transfer Complete” & “Done Uploading” at the bottom of the sketch window and you should see a blinking light on the board

Add Extension to you Visual Studio – Windows Developer Program for IoT

This extension Includes also a small application named “Galileo Watcher” that shows the board it detects inside your local network. After you start your Galileo (step 10) you should see your board in this application

Enable Telnet Client on your PC

On your desktop machine, go to Programs and Features and turn on Telnet Client feature

Connect one end of the network cable to the ethernet port on your Galileo

Connect the other end of the network cable to your computer using a built in Ethernet port or a USB Ethernet adapter.

Plug the power cord in

You should see activity on the microSD light at the board

Telnet to Galileo

Run telnet from the command line or by right click in the Galileo Watcher application

When prompted by telnet, use the following username and password:

Username: Administrator
Password: admin

Shutting down Windows

Enter the following command to shutdown: shutdown /s /t 0 After the microSD activity LED stops blinking, you may unplug the Galileo.NOTE If you do not shut the Galileo down, the next boot will take much longer. During this time, Windows will run a check disk on the SD card to verify the integrity of the file system. Please allow this to finish.

Create new Visual Studio Project

Start your Galileo again and you can create a new Visual Studio project Galileo Wiring App