Intel Do-It-Yourself Challenge WiFi

Slides:



Advertisements
Similar presentations
Intel Do-It-Yourself Challenge Networking
Advertisements

Configuring APACS & AAN Controllers
Intel Do-It-Yourself Challenge Lab 5: Controlling Galileo from a webpage Nicolas Vailliet
Win8 on Intel Programming Course Win8 for developers, in detail Cédric Andreolli Intel.
Win8 on Intel Programming Course Desktop : Introduction Cédric Andreolli Intel Software.
Quick Installation Guide for Hurricane8800P
Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software
CY-SWR1100 Dual Band Wireless N Router
Intel Do-It-Yourself Challenge Arduino Motor Shield Nicolas Vailliet Intel Software.
Intel Do-It-Yourself Challenge node.js
Win8 on Intel Programming Course Desktop : Sensors Cédric Andreolli Intel Software
Intel Do-It-Yourself Challenge Intel Galileo and Edison Paul Guermonprez Intel Software.
Internet of Things with Intel Edison Getting started with your board Pierre Collet Intel.
DSL-2730B, DSL-2740B, DSL-2750B.
Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
Lab7: Introduction to Arduino
Internet of Things with Intel Edison Web controller
Intel Do-It-Yourself Challenge Lab 3: A demo with LED and sensor
Internet of Things with Intel Edison GPIO on Edison
Win8 on Intel Programming Course Win8 and Intel Paul Guermonprez Intel Software
Intel Do-It-Yourself Challenge Sensors Nicolas Vailliet Intel Software
Intel Do-It-Yourself Challenge Pololu USB Controller Nicolas Vailliet Intel Software.
Intel Do-It-Yourself Challenge : Let’s build an autonomous drone Paul Guermonprez Intel.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 11 Windows on a Network.
Intel Do-It-Yourself Challenge Arduino sketches and full SD image Nicolas Vailliet Intel.
Internet of Things with Intel Edison Presentation Paul Guermonprez Intel Software
Internet of Things with Intel Edison Led sensor lab
1 Configuring Linksys Wireless Router Prof. Valencia Community College.
hotEx RADIUS Manager Installation
Intel Do-It-Yourself Challenge Hello World with the Arduino IDE Nicolas Vailliet Intel.
Intel Do-It-Yourself Challenge Lab 1: Intel Galileo’s Arduino side Nicolas Vailliet
Cisco Confidential 1 © 2011 Cisco and/or its affiliates. All rights reserved.
Welcome to Networking! 1. Connect your computer to the network with a cable 2. Copy the Networking folder from the flash drive to the computer or your.
TAX-AIDE Network Router Setup Network Printer Setups July SMT/TCS Training - Dallas1.
Intel Do-It-Yourself Challenge Lab 2: Intel Galileo’s Linux side Nicolas Vailliet Intel.
Collecting Images & Clippings Chapter 2.3 in Sketching User Experiences: The Workbook.
Win8 on Intel Programming Course Modern UI : Sensors Cédric Andreolli Intel Software.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
Intel Do-It-Yourself Challenge OpenCV
Win8 on Intel Programming Course The challenge Paul Guermonprez Intel Software
Win8 on Intel Programming Course Modern UI HelloWorld in HTML5/JS Cédric Andreolli Intel.
Internet of Things with Intel Edison Compiling and running Pierre Collet Intel Software.
DSL-2544N Dual Band Wireless N600 Gigabit ADSL2+ Modem Router
1. Insert the Resource CD into your CD-ROM drive, click Start and choose Run. In the field that appears, enter F:\XXX\Setup.exe (if “F” is the letter of.
The Animated Sequence Chapter 5.1 in Sketching User Experiences: The Workbook.
Intel Do-It-Yourself Challenge Wi-Fi Nicolas Vailliet Intel Software
Internet of Things with Intel Edison CylonJS Pierre Collet Intel Software
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.
7200 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. 1/16 OfficeServ 7200 Enterprise IP Solutions Data Server S/W Upgrade.
Win8 on Intel Programming Course Paul Guermonprez Intel Software
DHP Agenda: How to Access Web Interface of the DHP-1320 on Access Point Mode How to Access Web Interface of the DHP-1320 on Router Mode How to Change.
Design of Everyday Things Part 2: Useful Designs? Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Images from:
7200 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. 1/7 OfficeServ 7200 Enterprise IP Solutions Data Server S/W Upgrade.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
How To Set Up A Wireless Network. What is a wireless network  A wireless network is a computer network that allows computers and other electronic devices.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com The GRUB bootloader Michael.
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
Computer System Laboratory
Agenda Video pre-presentations Digital sketches & photo traces
Data Server S/W Upgrade Samsung Electronics Co., Ltd.
Raspberry Pi in Headless Operation
BBBK – WiFi, Ad-hoc network and Wireless access point
Introduction to Computers
مقدمة في الاردنيو د فضل الاكوع.
Hardware Appliance Installation and Configuration
Building an Internet of Things Device
Configuration Of A Pull Network.
Lecture9: Embedded Network Operating System: cisco IOS
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

Intel Do-It-Yourself Challenge WiFi Nicolas Vailliet www.Intel-Software-Academic-Program.com paul.guermonprez@intel.com Intel Software 2014-02-01

WiFi Network There’s an Ethernet port on the board, that’s a 29euro optional shield you won’t have to buy. But there’s also a mini PCIe slot ! You can plug a small laptop-style WiFi card. That’s cheap (7.5 euros for a Intel 135BN) compared to an official WiFi shield (69 euros + VAT). And a lot smaller too. Galileo has the good sides of Arduino … and PCs !

We’ll use … Hardware Galileo board, Intel WiFi card, antenna. You can get an Intel 135BN online for 7.5e, or borrow one from a laptop (most laptops use this format). Software By default, the small linux image provided only contains the drivers for N-135 and N-6205. But it’s easy to add drivers for other intel supported cards. Setup The board is booted from a SD card, and we are connected over Ethernet with ssh.

Get the drivers Do I need additionnal drivers ? If you took the small linux image, there’s 2 drivers. If you took the large linux image, there’s a lot more. In any case, all the supported drivers are on kernel.org Download drivers From kernel.org : http://wireless.kernel.org/en/users/Drivers/iwlwifi Unpack and copy to SD card Unpack with “tar –xvzf iwlwifi-XXX.tgz”, copy files from your PC to the SD card.

Install card and drivers Hardware Plug the card and connect the antenna. Boot the board and ssh. Copy files After you copied the files from your PC to the SD card, or downloaded the file directly on the galileo, copy them : “cp /where-I-copied-the-files/*ucode /lib/firmware”

WPA protection WPA Get you SSID and WPA password, then type (replacing the SSID with the right value) : “wpa_passphrase SSID << EOF > /etc/wpa_supplicant.conf” press enter, type your password, type “EOF”, press enter.

Automatic Wireless Edit network interfaces config file Edit with your favorite command line editor the file “/etc/network/interfaces”. We’ll use vi : “vi /etc/network/interfaces” Press “i” to enter in edition mode. Type “auto wlan0”, press enter, press escape. Type “:wq” to save and exit vi. Your Wireless card will be enabled by default.

Automatic WPA Edit network interfaces config file Edit with your favorite command line editor the file “/etc/network/interfaces”. The file should look like : “auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant.conf” Restart the networking service : “/etc/init.d/networking restart”

Preparing and booting the SD card

SD card Format the micro SD Card Connect the micro SD card to your PC, format as fat32. Adapters To connect the microSD to your PC, you can use : > a SD-microSD adapter if you have a SD slot in your PC > a USB-microSD adapter

Boot Boot loader The Galileo board is using grub, a common tool. How to boot Plug the SD card in the slot of the Galileo board. Plug the power supply, wait for the green LED, plug via USB. What’s working ? You can still send sketches from the Arduino IDE, but you now have a linux running with included services and libraries like SSHd, bluez, nodejs, OpenCV.

Enable networking

Ethernet Procedure We’ll need to run a sketch from the Arduino IDE to : > use the “Ethernet” package to enable the Ethernet port > launch a ifup linux command with “system” to enable the interface. Then your board will receive an IP address from your local DHCP server (usually your home router), or will use the fixed IP you provided if DHCP doesn’t work. Then you’ll be able to connect with ssh and get rid of the IDE.

Ethernet Procedure > Plug the Ethernet cable > Copy/Paste the sketch on next slide to your IDE window > Edit the MAC (sticker on your board) and IP values > Validate and upload. > Determine your IP address. > ssh to you Galileo IP as root.

Sketch to copy/paste #include <SPI.h> #include <Ethernet.h> // MAC address for the Galileo (there’s a sticker on the Ethernet connector) byte mac[] = { 0x??, 0x??, 0x??, 0x??, 0x??, 0x?? }; //the IP address for the Galileo: (will be used if there’s no DHCP server on your network) byte ip[] = { ???, ???, ???, ??? }; void setup() { delay(5000); //let the time time to open the serial monitor Serial.println("Attempting to configure Ethernet using DHCP"); if (Ethernet.begin(mac) == 0) { Serial.begin(9600); Serial.println("Failed to configure Ethernet using DHCP"); Serial.println("Attempting to configure Ethernet using Static IP"); Ethernet.begin(mac, ip); Serial.println(" Please check ifconfig"); } system("ifup eth0"); // load Ethernet interface! else Serial.println("Sounds good"); } } void loop () {}

What’s my IP ?

What’s my IP address ? Fixed IP If you have no DHCP router and entered an IP, you have it. Router info page If you have a home router, you can consult the DHCP log. Display ifconfig output Run sketch from the following slide, it will : > run the ifconfig linux command > output the result in a file > display the file content

Sketch to copy/paste char output[500]; void setup(){ Serial.begin(9600); } void loop(){ system(“ifconfig > log.txt”); FILE *fp; fp = fopen(“log.txt”,”r”); while(fgets(output,500,fp) != NULL) Serial.println(output); fclose(fp); delay(5000);

ssh

ssh Serial log After running the sketch, your board should be connected to your LAN network. ssh ssh root@192.168.1.100 # replace with your IP You should see : root@clanton:~# Reboot ? If you reboot your card, you should be able to reconnect automatically. Wait at least 45 seconds for the OS to load the network and ssh service.

Tips and links

If you have WiFi problems … Card and antenna If you have WiFi problems, check your card and antenna. SSID list Launch the command : “iwlist wlan0 scan” to list networks. Reload the WiFi interface Launch the command : “ifup wlan0”

Links http://wireless.kernel.org/en/users/Drivers/iwlwifi http://www.malinov.com/Home/sergey-s-blog/intelgalileo-addingwifi http://help.ubuntu.com/community/WifiDocs/WiFiHowTo

License Creative Commons – By 3.0 You are free: to Share — to copy, distribute and transmit the work to Remix — to adapt the work to make commercial use of the work Under the following conditions: Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). With the understanding that: Waiver — Any of the above conditions can be waived if you get permission from the copyright holder. Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license. Other Rights — In no way are any of the following rights affected by the license: Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; The author's moral rights; Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights. Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page. http://creativecommons.org/licenses/by/3.0/