Difference between revisions of "What can I do with IGEP PARIS"

From IGEP - ISEE Wiki

Jump to: navigation, search
m
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{Table/IGEP Technology Devices
 +
|Tech_Family={{#lst:Template:Links|IGEP_PARIS_Tech_Family}}
 +
|Tech_ID={{#lst:Template:Links|IGEP_PARIS_Tech_ID}}
 +
|Name={{#lst:Template:Links|IGEP_PARIS_Name}}
 +
|Image={{#lst:Template:Links|IGEP_PARIS_Image}}
 +
|ISEE_MainPage={{#lst:Template:Links|IGEP_PARIS_ISEE_MainPage}}
 +
|ISEE_Hardware={{#lst:Template:Links|IGEP_PARIS_ISEE_Hardware}}
 +
}}
  
If you have '''successfully completed the [[Getting_Started_with_BASE0010_board|getting started guide]]''' for BASE0010, you can follow this first introduction about what can you do with this board:
 
  
 +
= Overview  =
  
= How to get DVI output  =
+
This is the 2/3 chapter of IGEP PARIS Expansion Tutorial Guide.
  
By default the DVI is outputs 1024 x 768 @ 60Hz, so if your monitor support this resolution you'll see the desktop when board is up.  
+
We will learn some basic tasks.
  
Unfortunately the capability to automatically set the display resolution to match your monitor isn't yet available. The simplest method to customize the display resolution is to set it using [[How do I edit my kernel command line | kernel command line]
 
  
The required arguments use the following pattern: omapfb.mode=<display>:<resolutionMR-bpp@refresh> omapdss.def_disp=<display> where:
+
__TOC__
  
For example:
 
  
  omapdss.def_disp=dvi omapfb.mode=1024x768MR-16@60
+
= What can I do =
omapdss.def_disp=dvi omapfb.mode=hd720-16@60
+
You must logged in the board.
 +
== How to use TFT and Touchscreen  ==
 +
[[Image:berlin_paris_screen_connectors.JPG|right|200px]] IGEP PARIS Expansion supports SEIKO 7” LCD screen. Use J200, J203 and J204 connectors to attach screen. See image for more details.
 +
By default, Seiko screen is supported in IGEP PARIS. However open igep.ini, you can do this [[How_do_I_edit_my_kernel_command_line | checking following kernel cmdline parameter]]:
 +
<pre>omapdss.def_disp=lcd-70</pre><br><br>
  
See also: [[How do I edit my kernel command line]].  
+
== How to use EEPROM ==
 +
IGEP PARIS Expansion includes a serial EEPROM, provides 1KB of user data storage. EEPROM is connected through I2C2 of OMAP3 processor at address 0x50.
  
= How to configure ethernet  =
+
The following example writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 3:
  
There are two Ethernets on the BASE0010 board which can be used, for example if your access to the internet is via a route you can configure one of them with following command:
+
$ i2cset -f -y 3 0x51 0x10 0x22
 +
$ i2cget -f -y 3 0x51 0x10
  
ifconfig eth0 up
+
''From [[How to use EEPROM]]''
udhcpc -i eth0
 
  
For second interface just change the eth0 device for eth1
+
== How to use serial console ==
  
= How to get sound out (audio out) =
+
[[Image:Paris db9.jpg|right|200px]]Connect a DB9 cable between IGEP PARIS and Host PC. Open the serial on your PC using your preferred serial communications program (minicom) and configure the port as follows:
  
The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with
+
* 115200
 +
* 8N1
 +
* no flow control (either software or hardware)
  
amixer set -D hw:0 'Headset' 0dB
+
Open the serial port and the debug shell prompt should appear.
amixer set -D hw:0 'HeadsetL Mixer AudioL2' on
 
amixer set -D hw:0 'HeadsetR Mixer AudioR2' on
 
  
Then you can easily play a wav sound, for example
+
A detailed guide on how to connect via serial debug port can be found by following this link: [[Using serial debug port to communicate]]
  
aplay sample.wav
+
== How to use SW101 button ==
 +
IGEP PARIS has a button configured like GPIO. You can test it using the following program:
  
= How to get sound in (audio in) =
+
  $ evtest /dev/input/event0
  
You can record audio in with
+
Now press the button and see program traces.
 
+
{{Template:Navigation/IGEP Technology Guides/What can I do/Ending}}  
arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav
+
[[Category:IGEP Technology Devices Guides]]
 
 
Following output is expected on console
 
 
 
Recording WAVE 'audio-in.wav'&nbsp;: Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0
 
Its setup is:
 
stream      &nbsp;: CAPTURE
 
access      &nbsp;: RW_INTERLEAVED
 
format      &nbsp;: S16_LE
 
subformat  &nbsp;: STD
 
channels    &nbsp;: 2
 
rate        &nbsp;: 44100
 
exact rate  &nbsp;: 44100 (44100/1)
 
msbits      &nbsp;: 16
 
buffer_size &nbsp;: 32768
 
period_size &nbsp;: 2048
 
period_time &nbsp;: 46439
 
tick_time  &nbsp;: 7812
 
tstamp_mode &nbsp;: NONE
 
period_step &nbsp;: 1
 
sleep_min  &nbsp;: 0
 
avail_min  &nbsp;: 2048
 
xfer_align  &nbsp;: 2048
 
start_threshold &nbsp;: 1
 
stop_threshold  &nbsp;: 32768
 
silence_threshold: 0
 
silence_size&nbsp;: 0
 
boundary    &nbsp;: 1073741824
 
 
 
When ever you think you want to stop just press CONTRL+C
 
 
 
= How to get user button  =
 
 
 
There is one button on the BASE0010 board which can be used by the software for user interaction.
 
 
 
The kernel driver creates a device in /dev/input directory. To access to the button you will use the Linux Input Device subsystem. In Particular evdev, which is a generic input event interface. It passes the events generated in the kernel straight to the program, with timestamps. The event codes are the same on all architectures and are hardware independent.
 
 
 
For example, the test program evtest ([http://beagleboard.googlecode.com/files/evtest.c evtest.c]) listens on the /dev/input/event0 file descriptor, trying to read any events
 
 
 
evtest /dev/input/event0
 
 
 
Input driver version is 1.0.0
 
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
 
Input device name: "gpio-keys"
 
Supported events:
 
  Event type 0 (Sync)
 
  Event type 1 (Key)
 
    Event code 276 (ExtraBtn)
 
Testing ... (interrupt to exit)
 
 
 
If you'll press the button you'll see
 
 
 
Event: time 8354.388305, type 1 (Key), code 276 (ExtraBtn), value 0
 
Event: time 8354.388335, -------------- Report Sync ------------
 
Event: time 8354.573364, type 1 (Key), code 276 (ExtraBtn), value 1
 
Event: time 8354.573364, -------------- Report Sync ------------
 
 
 
For more information please read:
 
 
 
#linux-2.6/Documentation/input/input.txt
 
#linux-2.6/Documentation/input/input-programming.txt
 
 
 
 
 
{{Navigation/IGEP Technology Guides/What can I do/Ending|device=BASE0010}}
 
 
 
[[Category:BASE0010]]
 
[[Category:Tutorials]]
 

Latest revision as of 12:19, 29 January 2013


Overview

This is the 2/3 chapter of IGEP PARIS Expansion Tutorial Guide.

We will learn some basic tasks.



What can I do

You must logged in the board.

How to use TFT and Touchscreen

IGEP PARIS Expansion supports SEIKO 7” LCD screen. Use J200, J203 and J204 connectors to attach screen. See image for more details.

By default, Seiko screen is supported in IGEP PARIS. However open igep.ini, you can do this checking following kernel cmdline parameter:

omapdss.def_disp=lcd-70


How to use EEPROM

IGEP PARIS Expansion includes a serial EEPROM, provides 1KB of user data storage. EEPROM is connected through I2C2 of OMAP3 processor at address 0x50.

The following example writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 3:

$ i2cset -f -y 3 0x51 0x10 0x22
$ i2cget -f -y 3 0x51 0x10

From How to use EEPROM

How to use serial console

Paris db9.jpg
Connect a DB9 cable between IGEP PARIS and Host PC. Open the serial on your PC using your preferred serial communications program (minicom) and configure the port as follows:
  • 115200
  • 8N1
  • no flow control (either software or hardware)

Open the serial port and the debug shell prompt should appear.

A detailed guide on how to connect via serial debug port can be found by following this link: Using serial debug port to communicate

How to use SW101 button

IGEP PARIS has a button configured like GPIO. You can test it using the following program:

$ evtest /dev/input/event0

Now press the button and see program traces.



You have successfully completed this chapter of the guide.


Continue this tutorial guide: 3/3 - Start developing under IGEP Technology
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