Difference between revisions of "Getting started with IGEP COM PROTON"

From IGEP - ISEE Wiki

Jump to: navigation, search
m
Line 1: Line 1:
__NOTOC__
 
 
 
{{Table/IGEP Technology Devices
 
{{Table/IGEP Technology Devices
 
|Tech_Family={{#lst:Template:Links|IGEP_COM_PROTON_Tech_Family}}
 
|Tech_Family={{#lst:Template:Links|IGEP_COM_PROTON_Tech_Family}}
Line 11: Line 9:
  
  
{| cellspacing="0" cellpadding="5" border="1" align="center" style="text-align: left;"
+
__TOC__
|-
 
| bgcolor="#cccccc" colspan="3" | '''Overview'''
 
|-
 
|1) '''Connect USB OTG cable to a PC'''
 
|-
 
|2) '''Log into IGEP COM PROTON via USB Ethernet Gadget'''
 
|}
 
  
 +
= Overview =
  
This first chapter describes '''how to boot IGEP COM PROTON''' and also gives some '''basic instructions''' about how to connect some peripherals.
+
This is the 1/3 chapter of IGEP COM PROTON Tutorial Guide.
  
 +
In this first chapter, we will learn '''how to connect IGEP COM PROTON''' and '''how to log into IGEP COM PROTON via USB'''.
  
=== Setting up ===
+
= Requirements =
----
 
  
In the first chapter of this tutorial we are going to use:
+
In this tutorial we are going to use the following peripherals:
  
* an USB A type plug to mini B type plug
+
* IGEP COM PROTON
* a computer with Windows or Linux installed on it
+
* An USB Cable mini-B
 +
* USB Hub with external power supply
 +
* A PC
  
Do NOT power up your board yet.
+
= Getting started =
 +
== Power up IGEP COM PROTON  ==
  
 +
[[Image:IGEP_COM_PROTON_with_HUB.JPG|right|200px]]IGEP COM PROTON for standalone operation (without expansion boards) can be supplied using a 5V DC through USB 2.0 OTG connector. Use an USB Hub with external power supply.<br><br><br><br><br><br><br><br>
  
{| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"
+
== Log into IGEP COM PROTON via USB Ethernet Gadget interface ==
|-
+
{{Message/Information Message|title=|message=In non-Linux operating system, use [http://labs.isee.biz/index.php/IGEP_SDK_Virtual_Machine IGEP SDK Virtual Machine] to connect to IGEP COM PROTON via USB}}
| bgcolor="#cccccc" |'''Power up via USB OTG connector'''
+
{{#lst:Using USB ethernet gadget to communicate|USB_linux}}
|-
+
{{Navigation/IGEP Technology Guides/Getting Started/Ending
|'''Connect IGEP COM PROTON to a computer via USB OTG'''
+
|Next_Step={{#lst:Template:Links|IGEP_COM_PROTON_Community_Guides_2}}
|-
+
}}
|}
 
  
The on-board '''HS USB OTG port''' is used as the default '''power input for IGEP COM PROTON standalone''' operating mode.
+
{{Table/IGEP Technology Devices
 
+
|Tech_Family={{#lst:Template:Links|IGEP_COM_PROTON_Tech_Family}}
First of all, connect IGEP COM PROTON to your machine via the on-board USB OTG port with '''a USB cable''' (USB A type plug to mini B type plug).
+
|Tech_ID={{#lst:Template:Links|IGEP_COM_PROTON_Tech_ID}}
 
 
Connect IGEP COM PROTON to your machine. It will power up.
 
 
 
 
 
=== Connect to IGEP COM PROTON via USB OTG connector ===
 
----
 
 
 
{| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"
 
|-
 
| bgcolor="#cccccc" |'''Overview'''
 
|-
 
| 1) '''Install a SSH client such PuTTy'''
 
 
 
2) '''Connect via USB Ethernet Gadget/RNDIS driver''', SSH: root@192.168.7.2
 
|}
 
 
 
You can log into IGEP COM PROTON via many '''interfaces with network connectivity''', such usb-ethernet gadget.. and many others (when connected to an IGEP Expansion Board).
 
 
 
In this section of this tutorial we are going to '''connect via USB Ethernet gadget'''. This feature allows you to have an IP connection over USB.
 
 
 
IGEP COM PROTON uses this functionality to allow users to log via SSH.
 
 
 
You can use this feature to interact with the IGEP Processor operating system [host] by typing commands in a client machine (your PC, for example) to perform specific tasks in IGEP COM PROTON. You can communicate and open a debug session via many other interfaces such Serial port, Ethernet, Wifi, USB Ethernet Gadget, etc. (if available in an IGEP Expansion Board, for example).
 
 
 
Therefore, you will be able to access IGEP COM PROTON  from your client device (for example, a PC with Linux, Windows, etc.)
 
 
 
 
 
The pre-installed software in IGEP0030 configures the USB interface with a static IP: 192.168.7.2
 
''Note: You will be able to change it later''
 
 
 
Now, pick the right section, depending on the Operating System you are using:
 
 
 
 
 
==== Linux Configuration ====
 
 
 
You should have the usbnet module available for your Linux kernel. On most distributions, this is the case by default. If this is not the case for your distribution, you will need to enable USB networking support in the kernel. If you build your own kernel then you want 'CDC Ethernet support' in USB Network adaptors.
 
 
 
*'''Ubuntu 10.04 LTS Lucid Lynx'''
 
 
 
In the file /etc/network/interfaces, you should add a section which looks like this:
 
 
 
auto usb0
 
iface usb0 inet static
 
  address 192.168.7.1
 
  network 192.168.7.0
 
  netmask 255.255.255.0
 
  broadcast 192.168.7.255
 
  gateway 192.168.7.1
 
 
 
Connect to the board using ssh
 
 
 
ssh -l root 192.168.7.2
 
 
 
 
 
==== Windows configuration ====
 
 
 
 
 
*'''Windows 7'''
 
 
 
Follow this tutorial: http://robosavvy.com/forum/viewtopic.php?p=28788
 
 
 
 
 
*'''Windows XP'''
 
 
 
1. During the first seconds the module is recognized as OMAP3430. Avoid the installation of this device and wait until ''RNDIS/Ethernet gadget'' is detected by the operating system.
 
 
 
2. The following driver INF file from the Gumstix Project works under Windows XP. [http://www.davehylands.com/linux/gumstix/usbnet/linux.inf <span class="s1">http://www.davehylands.com/linux/gumstix/usbnet/linux.inf</span>]
 
 
 
3. In ''Control Panel/Network Connections'' and after driver installation set up the TCP/IP properties of the ''Local Network Connection'' (''Linux USB Ethernet/RNDIS Gadget'') as follow:<br>
 
<pre>IP address 192.168.7.1
 
 
 
Netmask 255.255.255.0
 
 
 
Gateway 192.168.7.1 </pre>
 
 
 
'''''Thanks to Iñigo Lazkanotegi from Tecnalia (Donostia - San Sebastián) for this contribution.'''''
 
 
 
Now you must run any serial console that allows SSH such PuTTy (Linux, Windows).
 
 
 
You can download it from its official page at: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
 
 
 
Then, run the '''SSH client''' and start a SSH session to connect to the host (IGEP COM PROTON) from the client (your PC):
 
 
 
[[Image:Putty ssh.png|center]]
 
 
 
 
 
# Select the '''SSH''' at connection type.
 
# Next insert the '''IP address of the target'''. In this case, the IGEP0030 default IP (192.168.7.2).
 
# Ensure that the port is set to '''22''', the default for SSH communications.
 
# Finally, push the '''Open button''' to start the SSH session.
 
 
 
 
 
If everything goes right, you will be able to access to IGEP COM PROTON console from your PC via USB Ethernet gadget.
 
 
 
{{Navigation/IGEP Technology Devices Guides/Next Step
 
 
|Name={{#lst:Template:Links|IGEP_COM_PROTON_Name}}
 
|Name={{#lst:Template:Links|IGEP_COM_PROTON_Name}}
|Community_MainPage={{#lst:Template:Links|IGEP_COM_PROTON_Community_MainPage}}
+
|Image={{#lst:Template:Links|IGEP_COM_PROTON_Image}}
|Next_Step={{#lst:Template:Links|IGEP_COM_PROTON_Community_Guides_2}}
+
|ISEE_MainPage={{#lst:Template:Links|IGEP_COM_PROTON_ISEE_MainPage}}
 +
|ISEE_Hardware={{#lst:Template:Links|IGEP_COM_PROTON_ISEE_Hardware}}
 
}}
 
}}
  
 
[[Category:IGEP Technology Devices Guides]]
 
[[Category:IGEP Technology Devices Guides]]
[[Category:Work in progress]]
 

Revision as of 17:07, 28 August 2012


Overview

This is the 1/3 chapter of IGEP COM PROTON Tutorial Guide.

In this first chapter, we will learn how to connect IGEP COM PROTON and how to log into IGEP COM PROTON via USB.

Requirements

In this tutorial we are going to use the following peripherals:

  • IGEP COM PROTON
  • An USB Cable mini-B
  • USB Hub with external power supply
  • A PC

Getting started

Power up IGEP COM PROTON

IGEP COM PROTON with HUB.JPG
IGEP COM PROTON for standalone operation (without expansion boards) can be supplied using a 5V DC through USB 2.0 OTG connector. Use an USB Hub with external power supply.







Log into IGEP COM PROTON via USB Ethernet Gadget interface

Information.jpg In non-Linux operating system, use IGEP SDK Virtual Machine to connect to IGEP COM PROTON via USB
  • In the file /etc/network/interfaces, you should add:
iface usb0 inet dhcp
  • Plug an USB Type-A to USB Type-A mini cable between your host PC and the USB OTG from IGEP device. Use a powered USB Hub if you use IGEP COM MODULE or PROTON Board.
  • If you use IGEP SDK VM you need to attach the removable device RNDIS driver.
  • Type in a terminal:
sudo ifup usb0
  • Revise that:
jdoe@ubuntu ~ $ ifconfig
...
usb0      Link encap:Ethernet  HWaddr 66:cc:f2:be:51:b6  
          inet addr:192.168.7.10  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::64cc:f2ff:febe:51b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2496 (2.4 KB)  TX bytes:8794 (8.7 KB)
...
  • Connect to IGEP device
jdoe@ubuntu ~ $ ssh root@192.168.7.1
The authenticity of host '192.168.7.1 (192.168.7.1)' can't be established.
ECDSA key fingerprint is 80:be:2d:b6:fe:b1:09:c3:3b:ac:0f:1d:f2:43:f2:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.7.1' (ECDSA) to the list of known hosts.
root@igep00x0:~# uname -a
Linux igep00x0 2.6.37 #1 Thu Jul 19 09:07:47 CEST 2012 armv7l GNU/Linux
root@igep00x0:~# 


You have successfully completed this chapter of the guide.


Igep forum.png If you have any question, don't ask to ask at the IGEP Community Forum or the IGEP Community Chat Irc.png