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

From IGEP - ISEE Wiki

Jump to: navigation, search
m
Line 1: Line 1:
__NOTOC__
+
{{Table/IGEP Technology Devices
 
+
|Tech_Family={{#lst:Template:Links|IGEP_BERLIN_Tech_Family}}
{| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"
+
|Tech_ID={{#lst:Template:Links|IGEP_BERLIN_Tech_ID}}
|-
 
| bgcolor="#cccccc" |'''What can I do with IGEP BERLIN'''
 
|-
 
| If you have '''successfully completed the [[{{#lst:Template:Links|IGEP_BERLIN_Community_Guides_1}}|first chapter of this guide]]''', you can continue with this tutorial guide about IGEP BERLIN.
 
|}
 
 
 
 
 
{{Navigation/IGEP Technology Guides
 
 
|Name={{#lst:Template:Links|IGEP_BERLIN_Name}}
 
|Name={{#lst:Template:Links|IGEP_BERLIN_Name}}
 
|Image={{#lst:Template:Links|IGEP_BERLIN_Image}}
 
|Image={{#lst:Template:Links|IGEP_BERLIN_Image}}
 
|ISEE_MainPage={{#lst:Template:Links|IGEP_BERLIN_ISEE_MainPage}}
 
|ISEE_MainPage={{#lst:Template:Links|IGEP_BERLIN_ISEE_MainPage}}
 
|ISEE_Hardware={{#lst:Template:Links|IGEP_BERLIN_ISEE_Hardware}}
 
|ISEE_Hardware={{#lst:Template:Links|IGEP_BERLIN_ISEE_Hardware}}
|Community_MainPage={{#lst:Template:Links|IGEP_BERLIN_Community_MainPage}}
+
}}
|Community_Guides_1={{#lst:Template:Links|IGEP_BERLIN_Community_Guides_1}}
+
 
|Community_Guides_2={{#lst:Template:Links|IGEP_BERLIN_Community_Guides_2}}
+
__TOC__
}}
+
= Overview  =
 +
 
 +
This is the 2/3 chapter of IGEP BERLIN Expansion Tutorial Guide.
 +
 
 +
We will learn some basic tasks.
 +
 
 +
= What can I do =
 +
== How to use DVI ==
 +
 
 +
IGEP Firmware configures video output with touch screen resolution. For that reason, you should change this configuration parameter to adapt resolution for HDMI output, you can [[How_do_I_edit_my_kernel_command_line | edit following kernel cmdline parameter]].
 +
 
 +
;omapdss.def_disp=lcd-70
 +
omapfb.mode=dvi:1280x720MR-16@60
 +
 
 +
== How to Telit Modem ==
 +
Telit modem is not supported by default in IGEPv2 Expansion and IGEP Berlin.
 +
Configure this [[How_do_I_edit_my_kernel_command_line | adding following kernel cmdline parameter]]
 +
 
 +
buddy.modem=yes
 +
 
 +
*Power up the modem using the next commands:
 +
<pre>echo 0 &gt; /sys/class/gpio/gpio145/value
 +
echo 1 &gt; /sys/class/gpio/gpio163/value
 +
sleep 1
 +
echo 0 &gt; /sys/class/gpio/gpio163/value</pre>
 +
*Once the modem is on (led near power button is blinking now), you can interact with it via UART 2.
 +
 
 +
You can use Microcom to comunicate with it from the serial debug console:
 +
<pre>microcom -s 115200 /dev/ttyO1</pre>
 +
*To check the modem status use the command:<br>
 +
<pre>at</pre>
 +
*Answer should be OK.<br>
 +
*Now unlock it by inserting your SIM card PIN number. Use the command:
 +
<pre>at+cpin=&lt;PIN&gt;</pre>
 +
*If you correctly inserted the PIN number, the answer should be OK.&nbsp;If you fail more than 3 times, your SIM card will lock and you will have to insert PUK number.
 +
*Now you are ready to use the GSM/GPS modem.<br>
 +
 
 +
''From [[How to use Telit Modem]]''
 +
 
 +
== How to use to use TVP5151 Video Decoder ==
 +
'''under construction'''
 +
 
 +
== How to use EEPROM ==
 +
'''Basic'''
 +
{{#lst:How to use EEPROM|berlin}}
 +
'''Know more'''
 +
{{#lst:How to use EEPROM|know_more}}
 +
''From [[How to use EEPROM]]''
 +
 
 +
== How to use CAN Bus ==
 +
'''under construction'''
 +
 
 +
== How to use serial console ==
 +
Once you connect DV9 cable between IGEP BERLIN 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.
 +
 
 +
== How to use RS-485 ==
 +
'''under construction'''
 +
 
 +
== Get sound in (audio in) ==
 +
External Audio input devices, such as a powered microphone or the audio output of a PC or MP3 player, can be connected to the via a 3.5mm jack (Audio IN).
  
 +
You can record audio in with the application arecord, for example:
  
{{Message/Work in progress}}
+
$ arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav
  
 +
Following output is expected on console:
  
{| cellspacing="0" cellpadding="5" border="1" align="center" style="text-align: left;"
+
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
| bgcolor="#cccccc" colspan="3" | '''Overview'''
+
Its setup is:
|-
+
stream      &nbsp;: CAPTURE
| [[Image:{{#lst:Template:Links|IGEP_BERLIN_Image}}|250px|center|link={{#lst:Template:Links|IGEP_BERLIN_Community_MainPage}}]]
+
access      &nbsp;: RW_INTERLEAVED
|-
+
format      &nbsp;: S16_LE
|'''Work in progress article. Coming soon!'''
+
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 recording just press CTRL+C
  
{{Navigation/IGEP Technology Devices Guides/Next Step
+
== Get sound out (audio out) ==
 +
Connect an external output audio device to the 3.5mm jack Audio Out connector in the board, such as external stereo powered speakers.
 +
 
 +
The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with:
 +
 
 +
$ amixer set -D hw:0 'Headset' 0dB
 +
$ 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 with the application Aplay, for example:
 +
 
 +
$ aplay audio-in.wav
 +
 
 +
{{Template:Navigation/IGEP Technology Guides/What can I do/Ending}} {{Table/IGEP Technology Devices
 +
|Tech_Family={{#lst:Template:Links|IGEP_BERLIN_Tech_Family}}
 +
|Tech_ID={{#lst:Template:Links|IGEP_BERLIN_Tech_ID}}
 
|Name={{#lst:Template:Links|IGEP_BERLIN_Name}}
 
|Name={{#lst:Template:Links|IGEP_BERLIN_Name}}
|Community_MainPage={{#lst:Template:Links|IGEP_BERLIN_Community_MainPage}}
+
|Image={{#lst:Template:Links|IGEP_BERLIN_Image}}
|Next_Step=Start developing under IGEP Technology
+
|ISEE_MainPage={{#lst:Template:Links|IGEP_BERLIN_ISEE_MainPage}}
 +
|ISEE_Hardware={{#lst:Template:Links|IGEP_BERLIN_ISEE_Hardware}}
 
}}
 
}}
  
 
[[Category:IGEP Technology Devices Guides]]
 
[[Category:IGEP Technology Devices Guides]]

Revision as of 19:50, 5 September 2012

Overview

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

We will learn some basic tasks.

What can I do

How to use DVI

IGEP Firmware configures video output with touch screen resolution. For that reason, you should change this configuration parameter to adapt resolution for HDMI output, you can edit following kernel cmdline parameter.

;omapdss.def_disp=lcd-70
omapfb.mode=dvi:1280x720MR-16@60

How to Telit Modem

Telit modem is not supported by default in IGEPv2 Expansion and IGEP Berlin. Configure this adding following kernel cmdline parameter

buddy.modem=yes 
  • Power up the modem using the next commands:
echo 0 > /sys/class/gpio/gpio145/value
echo 1 > /sys/class/gpio/gpio163/value
sleep 1
echo 0 > /sys/class/gpio/gpio163/value
  • Once the modem is on (led near power button is blinking now), you can interact with it via UART 2.

You can use Microcom to comunicate with it from the serial debug console:

microcom -s 115200 /dev/ttyO1
  • To check the modem status use the command:
at
  • Answer should be OK.
  • Now unlock it by inserting your SIM card PIN number. Use the command:
at+cpin=<PIN>
  • If you correctly inserted the PIN number, the answer should be OK. If you fail more than 3 times, your SIM card will lock and you will have to insert PUK number.
  • Now you are ready to use the GSM/GPS modem.

From How to use Telit Modem

How to use to use TVP5151 Video Decoder

under construction

How to use EEPROM

Basic

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

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

Know more

See also: i2dump(8), i2cget(8) and i2cset(8) man page

From How to use EEPROM

How to use CAN Bus

under construction

How to use serial console

Once you connect DV9 cable between IGEP BERLIN 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.

How to use RS-485

under construction

Get sound in (audio in)

External Audio input devices, such as a powered microphone or the audio output of a PC or MP3 player, can be connected to the via a 3.5mm jack (Audio IN).

You can record audio in with the application arecord, for example:

$ arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav

Following output is expected on console:

Recording WAVE 'audio-in.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0
Its setup is:
stream       : CAPTURE
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 2
rate         : 44100
exact rate   : 44100 (44100/1)
msbits       : 16
buffer_size  : 32768
period_size  : 2048
period_time  : 46439
tick_time    : 7812
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 2048
xfer_align   : 2048
start_threshold  : 1
stop_threshold   : 32768
silence_threshold: 0
silence_size : 0
boundary     : 1073741824

When ever you think you want to stop recording just press CTRL+C

Get sound out (audio out)

Connect an external output audio device to the 3.5mm jack Audio Out connector in the board, such as external stereo powered speakers.

The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with:

$ amixer set -D hw:0 'Headset' 0dB
$ 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 with the application Aplay, for example:

$ aplay audio-in.wav


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