Difference between revisions of "What can I do with IGEPv2 EXPANSION"

From IGEP - ISEE Wiki

Jump to: navigation, search
m
Line 1: Line 1:
__NOTOC__
+
= What can i do with igepv2 expansion  =
  
{| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"
+
{{Table/IGEP Technology Devices
|-
+
|Tech_Family={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_Family}}
| bgcolor="#cccccc" |'''What can I do with IGEP BERLIN'''
+
|Tech_ID={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_ID}}
|-
 
| If you have '''successfully completed the [[{{#lst:Template:Links|IGEPv2_EXPANSION_Community_Guides_1}}|first chapter of this guide]]''', you can continue with this tutorial guide about IGEPv2 EXPANSION.
 
|}
 
 
 
 
 
{{Navigation/IGEP Technology Guides
 
 
|Name={{#lst:Template:Links|IGEPv2_EXPANSION_Name}}
 
|Name={{#lst:Template:Links|IGEPv2_EXPANSION_Name}}
 
|Image={{#lst:Template:Links|IGEPv2_EXPANSION_Image}}
 
|Image={{#lst:Template:Links|IGEPv2_EXPANSION_Image}}
 
|ISEE_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_MainPage}}
 
|ISEE_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_MainPage}}
 
|ISEE_Hardware={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_Hardware}}
 
|ISEE_Hardware={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_Hardware}}
|Community_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_Community_MainPage}}
+
}}  
|Community_Guides_1={{#lst:Template:Links|IGEPv2_EXPANSION_Community_Guides_1}}
 
|Community_Guides_2={{#lst:Template:Links|IGEPv2_EXPANSION_Community_Guides_2}}
 
}}
 
  
 +
<br> __TOC__
  
{| cellspacing="0" cellpadding="5" border="1" align="center" style="text-align: left;"
+
<br>
|-
 
| bgcolor="#cccccc" colspan="3" | '''Overview'''
 
|-
 
| [[Image:{{#lst:Template:Links|IGEPv2_EXPANSION_Image}}|250px|center|link={{#lst:Template:Links|IGEPv2_EXPANSION_Community_MainPage}}]]
 
|-
 
|'''Work in progress article. Coming soon!'''
 
|}
 
  
 +
= Overview  =
  
{{Message/Work in progress}}
+
This is the 2/3 chapter of IGEPv2 Expansion Tutorial Guide.
  
 +
We will learn some basic tasks such add support to IGEPv2 Expansion, control some peripherals, etc.<br>
  
= Add support for IGEPv2 EXPANSION =
+
= What can I do<br> =
  
The required [[Linux Kernel 2.6.37.y#Scenarios|kernel command line]] option here is:
+
== How to use Serial communication (DB9 connector)  ==
  
buddy=igep0022
+
'''Basic'''
  
 +
RS232 link for UART 3 (/dev/ttyO2) can be obtained through J502 DB9 connector. You can use PuTTy to get a shell prompt to IGEP:
  
= How to use Serial communication  =
+
*Power up IGEPv2
 +
*Open PuTTy.
 +
*Choose Serial line. If you are running PuTTy on Windows, the Serial line will be like (COM1 or COM2 or COM3, etc.). If you are running PuTTy on Ubuntu, the Serial line will be like&nbsp;(/dev/ttyS0 or /dev/ttyS1 or /dev/ttyS3, etc.). Note that if you are using a USB-&gt;Serial converter, the Serial line will be like /dev/ttyUSB0
 +
*Configure Speed to 115200
 +
*Select Serial Connection type
 +
*Press on Open button
 +
*You will successfully started the console.
  
* [[Peripherals Summary#UART|UART]]
+
<br>
* [[How to use UARTs| Use UART's]]
 
* [[:Category:UART]]
 
  
 +
{| cellspacing="1" cellpadding="1" width="200" border="1"
 +
|-
 +
| [[Image:IGEPV2EXPCHMDB9.png|250px]]
 +
| [[Image:Remoteshellpromptdb9putty.jpg|250px]]
 +
|}
  
= How to get VGA output  =
+
'''Know more'''
 
 
The required [[How do I edit my kernel command line|kernel command line]] option here is omapfb.mode followed by the desired resolution, make sure to select a video mode compatible with your monitor
 
 
 
For example:
 
 
 
omapdss.def_disp=dvi omapfb.mode=dvi:1024x768-16@60
 
 
 
Note that you could connect both a VGA monitor and a DVI-D monitor and see the same image, as long as the video mode is compatible with both monitors.
 
 
 
= How to use TFT and Touchscreen  =
 
 
 
Seiko 7.0 inch WVGA (800 x RGB x 480) TFT:
 
 
 
Add the following line to igep.ini
 
 
 
omapdss.def_disp=lcd-70
 
 
 
Powertip 4.3 inch (480 x RGB x 272) TFT:
 
 
 
Add the following line to igep.ini
 
 
 
omapdss.def_disp=lcd-43
 
 
 
 
 
You should reboot your IGEP Device to enable a new resolution configuration.
 
 
 
 
 
 
 
To configure the touchscreen, add "Configured Touchscreen" in "ServerLayout" section and remove "Configured Mouse" in /etc/X11/xorg.conf
 
 
 
Section "ServerLayout"
 
Identifier    "Default Layout"
 
Screen        "Default Screen"
 
InputDevice    "Generic Keyboard"
 
#  InputDevice    "Configured Mouse"
 
InputDevice    "Configured Touchscreen"
 
Option        "AllowEmptyInput" "no"
 
EndSection
 
 
 
calibrate it yourself until you are happy with the result, for example:
 
 
 
/etc/init.d/xserver-nodm stop
 
TSLIB_CALIBFILE=/etc/pointercal TSLIB_TSDEVICE=/dev/input/touchscreen0 TSLIB_CONSOLEDEVICE=none ts_calibrate
 
/etc/init.d/xserver-nodm start
 
 
 
= How to use Telit Modem  =
 
 
 
The IGEP0022 expansion board provides a Telit [http://telit.com/en/products/gsm-gprs.php?p_ac=show&p=47 GE865] GSM/GPRS modem which is connected to the OMAP via some GPIO pins and UART 2.<br>
 
 
 
Here you have the official manuals from the manufacturer's webpage:<br>
 
 
 
*[http://telit.com/module/infopool/download.php?id=1666 Telit GE865-QUAD Hardware User Guide]<br>
 
*[http://telit.com/module/infopool/download.php?id=522 Telit Modules Software User Guide]<br>
 
  
<br>
+
[[How to use UARTs|Read this tutorial]] to learn about UARTs.
  
Here there are a few instructions in order to introduce the Telit modem.<br>
+
== How to use TFT and Touchscreen  ==
  
If this is your first time accessing Telit Modem, check J402 and J403 jumpers are not connected before follow this tutorial. If you don't have these jumpers, don't worry because their functions are only for testing.
+
Seiko a Powertip touch screens are not supported by default in IGEPv2. Use the following steps for it:
  
Insert a valid SIM card to the SIM card reader of your IGEP0022.  
+
*Log into IGEPv2 (via SSH, [http://labs.isee.biz/index.php/Getting_started_with_IGEPv2#Log_into_IGEPv2_via_Ethernet_interface as shown in the previous chapter]), and run the following commands:
 +
<pre>ssh root@192.168.5.1
 +
mkdir /tmp/temp
 +
mount -t jffs2 /dev/mtdblock1 /tmp/temp
 +
vi /tmp/temp/igep.ini </pre>
 +
*In Seiko screen add the following line:
 +
<pre>omapdss.def_disp=lcd-70</pre>
 +
*In Powertip screen add the following line:
 +
<pre>omapdss.def_disp=lcd-43</pre>
 +
*Save changes and reboot your IGEP Device to finish it.<br>
  
Now, you must add the following line at the kernel file (igep.ini) in order to enable GE865 support:
+
== How to use Telit Modem  ==
<pre>buddy.modem=yes</pre>
 
<br>
 
  
Now its time to power up your modem. You may read the Official manufacturer [http://telit.com/module/infopool/download.php?id=1666 Hardware User Guide], where there is a complete explanation about the sequence.<br>
+
'''Basic'''
  
In IGEP0022, the modem is connected to 3 GPIO pins from the OMAP, which are: &lt;omap_pin_name (modem_function)&gt;
+
Telit modem is not supported by default in IGEPv2. Use the following steps for it:  
  
*GPIO_140 (Reset)  
+
*Log into IGEPv2 (via SSH, [http://labs.isee.biz/index.php/Getting_started_with_IGEPv2#Log_into_IGEPv2_via_Ethernet_interface as shown in the previous chapter]), and run the following commands:
*GPIO_141 (On_Off)
+
<pre>ssh root@192.168.5.1
*GPIO_156 (PWRMON)<br>
+
mkdir /tmp/temp
 +
mount -t jffs2 /dev/mtdblock1 /tmp/temp
 +
vi /tmp/temp/igep.ini </pre>
 +
*Add the following line (press i to insert content):
  
You can power up your modem using the following sequence:
+
buddy.modem=yes
  
(Note: the following instructions are correctly 'toggled' do to pull-up resistors. Refer to schematics at the Official [http://igep.es/index.php?option=com_content&view=article&id=99&Itemid=129&dir=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2_EXPANSION%2FHW_Schematics&download_file=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2_EXPANSION%2FHW_Schematics%2FIGEP.0022-EXP_BOARD_SCH_rev_b3.pdf IGEP0022 Hardware Manual] from ISEE)
+
*Save changes (ESC -&gt;&nbsp;:wq -&gt; Enter) and reboot your IGEP Device
 +
*Power up the modem. You can power off using again these commands:
 
<pre>echo 0 &gt; /sys/class/gpio/gpio140/value
 
<pre>echo 0 &gt; /sys/class/gpio/gpio140/value
 
echo 1 &gt; /sys/class/gpio/gpio141/value
 
echo 1 &gt; /sys/class/gpio/gpio141/value
Line 130: Line 85:
 
echo 0 &gt; /sys/class/gpio/gpio141/value
 
echo 0 &gt; /sys/class/gpio/gpio141/value
 
</pre>  
 
</pre>  
Once the modem is on, you can interact with it via UART 2. You can use Microcom to comunicate with it from the serial debug console:  
+
*Once the modem is on (led D401, near SIM card reader, 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/ttyS1</pre>  
+
<pre>microcom -s 115200 /dev/ttyO1</pre>  
(Note: GE865 has auto baud rate detection, so you can use a different speed)<br>
+
*To check the modem status use the command:<br>
 
 
To check the modem status use the command:<br>  
 
 
<pre>at</pre>  
 
<pre>at</pre>  
Answer should be OK.<br>  
+
*Answer should be OK.<br>  
 
+
*Now unlock it by inserting your SIM card PIN number. Use the command:
'''Note: correcting syntax with 'backspace' may cause error in a serial command if you are not writing the command at first take. Don't type <> when use the following commands'''
 
 
 
In order to use your GSM/GPRS you should connect the antenna as it is explained in the [[Getting Started with IGEP0022 board#GSM/GPRS antenna |Getting Started with IGEP0022]] article.
 
 
 
Now unlock it by inserting your SIM card PIN number. Use the command:<br>
 
 
<pre>at+cpin=&lt;PIN&gt;</pre>  
 
<pre>at+cpin=&lt;PIN&gt;</pre>  
If you correctly inserted the PIN number, the answer should be OK.  
+
*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>
  
(Note: If you fail more than 3 times, your SIM card will lock and you will have to insert PUK number.)
+
=== Examples  ===
  
Now you are ready to use the GSM/GPS modem.
+
If you successfully '''followed the the previous instructions''', you are ready to test the GSM/GPRS modem. Here are some examples:  
 
 
== Examples  ==
 
 
 
If you successfully '''followed the the previous instructions''', you are ready to test the GSM/GPRS modem. Here are some examples of simple commands:  
 
  
 
You can check the complete list of AT commands at the Official manufacturer [http://telit.com/module/infopool/download.php?id=522 Software User Guide].  
 
You can check the complete list of AT commands at the Official manufacturer [http://telit.com/module/infopool/download.php?id=522 Software User Guide].  
  
=== Test received signal strength<br>  ===
+
==== Test received signal strength<br>  ====
  
 
Use the instruction:  
 
Use the instruction:  
 
<pre>at+csq</pre>  
 
<pre>at+csq</pre>  
 +
The answer should be: +CSQ: X,0, where X is the signal strenght. For example 12 is poor and 18 is good. If the answer is +CSQ:99,99 you should check your coverage or use an antenna<br>
  
The answer should be: +CSQ: X,0, where X is the signal strenght. For example 6 is poor and 15 is good. If the answer is +CSQ:99,99 you should check the antenna.
+
==== Making a phone call<br>  ====
  
=== Making a phone call<br> ===
+
Use the instruction, replace number_to_call with your number:
 +
<pre>atd number_to_call
 +
</pre>  
 +
Press any key to end call
  
Use the instruction:  
+
'''NOTE:''' If "NO CARRIER" message appears, check your coverage or use an antenna.
<pre>atd &lt;number_to_call&gt;
 
</pre>
 
  
Press any key to end call
+
==== Sending a SMS<br>  ====
  
=== Sending a SMS<br>  ===
+
First of all, you need to configure the SMS format type. Telit GE865 GSM/GPRS supports PDU format and Text format. We use Text format. Type the following command:  
 
+
<pre>AT+CMGF=1</pre>  
First of all, you need to configure the SMS format type. Telit [http://telit.com/en/products/gsm-gprs.php?p_ac=show&p=47 GE865] GSM/GPRS supports PDU format and Text format. We use Text format. Type the following command:
+
There are so many ways in this modem to send a message. Here you have a simple example. Use the instruction, replace destination_number with your number:  
 
+
<pre>at+cmgs= destination_number
<pre>AT+CMGF=1</pre>
+
&gt; insert here your text message
 
 
There are so many ways in this modem to send a message. Here you have a simple example. Use the instruction:  
 
<pre>at+cmgs="&lt;destination_number&gt;"
 
&gt; &lt;insert_here_your_text_message&gt;
 
 
</pre>  
 
</pre>  
 
When you are ready to send your message use Ctrl+Z to send it.  
 
When you are ready to send your message use Ctrl+Z to send it.  
  
If you want to cancel or restart the message press ESC.<br>
+
If you want to cancel or restart the message press ESC.<br>  
  
= How to use TVP5151 Video Decoder<br> =
+
'''NOTE:''' If "NO CARRIER" message appears, check your coverage or use an antenna.
  
=== Requirements<br> ===
+
'''NOTE:''' Don't use special characters in SMS text message like &lt;`´'"&gt;.<br>  
  
*Have successfully connected the TFT Screen as explained at the [[Getting Started with IGEP0022 board#TFT_and_Touchscreen|Getting Started Guide]] or at the [http://igep.es/index.php?option=com_content&view=article&id=99&Itemid=129&dir=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2_EXPANSION%2FHW_User_Manuals&download_file=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2_EXPANSION%2FHW_User_Manuals%2FMAN-PR-IGEP.0022-001.01.HW_USER_MANUAL.pdf Official Hardware Reference Manual]<br>
+
'''Know more'''<br>  
*A camera or any device with PAL output video to RCA connector.<br>
 
  
<br>  
+
Here you have the official manuals from the manufacturer's webpage:<br>
 +
 
 +
*[http://telit.com/module/infopool/download.php?id=1666 Telit GE865-QUAD Hardware User Guide]<br>
 +
*[http://telit.com/module/infopool/download.php?id=522 Telit Modules Software User Guide]<br>
  
----
+
== How to use TVP5151 Video Decoder <br>  ==
  
<br>
+
'''Basic'''
  
There are two modules that you will use that are not inserted into the kernel: iommu2 (tvp5151) and isp.
+
Use the following steps to capture analog video:  
  
You have to load these kernel modules before start:<br>
+
*Connect a video composite input to J501 connector from IGEPv2 Expansion (near CAN Bus)
<pre>modprobe iommu2
+
*Connect a screen, for example HDMI monitor.
modprobe omap3-isp
+
*Log into IGEPv2 (via SSH, [http://labs.isee.biz/index.php/Getting_started_with_IGEPv2#Log_into_IGEPv2_via_Ethernet_interface as shown in the previous chapter]), and run the following commands:
 +
<pre>ssh root@192.168.5.1
 
</pre>  
 
</pre>  
(Note: The first load order must be the iommu2 and then the omap3-isp)<br>  
+
*Now you have a remote igep terminal<br>
 +
*Refresh repositories and accept it.
 +
<pre>zypper ref </pre>
 +
*Install video4linux2 plugin
 +
<pre>zypper in gst-plugins-good-video4linux2
 +
</pre>
 +
*Load OMAP ISP kernel module<br>
 +
<pre>modprobe omap3-isp
 +
</pre>
 +
*Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480:<br>
 +
<pre>media-ctl -r -l '"tvp5150 2-005c":0-&gt;"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1-&gt;"OMAP3 ISP CCDC output":0[1]'
 +
media-ctl -v --set-format '"tvp5150 2-005c":0 [UYVY 720x480]'
 +
media-ctl -v --set-format '"OMAP3 ISP CCDC":0 [UYVY 720x480]'
 +
media-ctl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' </pre>
 +
*Export display
 +
<pre>export DISPLAY=:0.0 </pre>
 +
*Launch gstreamer
 +
<pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=8&nbsp;! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=480&nbsp;! ffmpegcolorspace&nbsp;! autovideosink</pre>  
 +
*Now you can see in your IGEP screen a result similar like this
  
----
+
{| cellspacing="1" cellpadding="1" width="200" border="1"
 +
|-
 +
| [[Image:Igepv2expgstreamercapture.jpg|400px]]
 +
|}
  
 
<br>  
 
<br>  
  
Now, use the program media-ctl. This program is useful to configure the ISP. You can download it from [http://downloads.igep.es/files/media-ctl here]. Then you have to transfer it to your IGEP0022 (for example via SCP command).<br>  
+
'''Know more'''<br>  
  
Now you have to configure the ISP and TVP5151:<br>
+
You can use other programs like [[How to setup tvp5151 video decoder|yavta]]<br>  
<pre>./media-ctl -r -l '"tvp5150 2-005c":0-&gt;"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1-&gt;"OMAP3 ISP CCDC output":0[1]'</pre>
 
Configure the video capture setup:<br>  
 
<pre>./media-ctl --set-format '"tvp5150 2-005c":0 [UYVY 720x628]'
 
</pre>
 
Connect a video camera or any device with PAL output to the Composite Video RCA input connector of the IGEP0022.
 
  
Use gstreamer as live stream to capture video from your video source.<br>
+
== How to use EEPROM  ==
  
Now setup the gstreamer pipeline:<br>
+
'''Basic'''
<pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=1 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=628 ! omapfbsink</pre>
 
If everything was fine you will see the live video at the screen.
 
  
[[Image:TVP5151 video decoder.jpg|frame|center|514x346px]]See also: [[How to setup tvp5151 video decoder]]<br>
+
The IGEP0022 expansion board provides an AT24C01B serial EEPROM memory which is connected to the OMAP via I2C (register 50).<br>  
 
 
= How to use EEPROM  =
 
 
 
The IGEP0022 expansion board provides an [http://www.atmel.com/dyn/resources/prod_documents/doc5156.pdf AT24C01B] serial EEPROM memory which is connected to the OMAP via I2C.<br>  
 
 
 
You can use easily simple reads/writes to access to the eeprom:
 
 
 
echo "hello world!" &gt; /sys/devices/platform/i2c_omap.2/i2c-2/2-0050/eeprom
 
cat /sys/devices/platform/i2c_omap.2/i2c-2/2-0050/eeprom
 
 
 
Or read/write from userspace using i2c-tools:
 
 
 
i2cget &lt;bus&gt; &lt;chip&gt; &lt;register&gt;
 
i2cset &lt;bus&gt; &lt;chip&gt; &lt;register&gt; &lt;value&gt;
 
  
 +
Use i2c-tools to manage it:
 +
<pre>i2cget &lt;bus&gt; &lt;chip&gt; &lt;register&gt;
 +
i2cset &lt;bus&gt; &lt;chip&gt; &lt;register&gt; &lt;value&gt;</pre>
 
For example, the following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:  
 
For example, the following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:  
 
+
<pre>i2cset -f -y 2 0x50 0x10 0x22
i2cset -f -y 2 0x50 0x10 0x22
+
i2cget -f -y 2 0x50 0x10</pre>
i2cget -f -y 2 0x50 0x10
+
'''Know more'''
  
 
See also: i2dump(8), i2cget(8) and i2cset(8) man page  
 
See also: i2dump(8), i2cget(8) and i2cset(8) man page  
  
= How to use CAN bus  =
+
== How to use CAN bus (under construction) ==
  
{{#lst:How to use CAN bus|IGEPv2 EXPANSION}}
+
{{#lst:How to use CAN bus|IGEPv2 EXPANSION}} {{Template:Navigation/IGEP Technology Guides/What can I do/Ending}} {{Table/IGEP Technology Devices
 
+
|Tech_Family={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_Family}}
{{Navigation/IGEP Technology Devices Guides/Next Step
+
|Tech_ID={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_ID}}
 
|Name={{#lst:Template:Links|IGEPv2_EXPANSION_Name}}
 
|Name={{#lst:Template:Links|IGEPv2_EXPANSION_Name}}
|Community_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_Community_MainPage}}
+
|Image={{#lst:Template:Links|IGEPv2_EXPANSION_Image}}
|Next_Step=Start developing under IGEP Technology
+
|ISEE_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_MainPage}}
 +
|ISEE_Hardware={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_Hardware}}
 
}}
 
}}
 
[[Category:IGEP Technology Devices Guides]]
 

Revision as of 10:16, 27 August 2012

What can i do with igepv2 expansion



Overview

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

We will learn some basic tasks such add support to IGEPv2 Expansion, control some peripherals, etc.

What can I do

How to use Serial communication (DB9 connector)

Basic

RS232 link for UART 3 (/dev/ttyO2) can be obtained through J502 DB9 connector. You can use PuTTy to get a shell prompt to IGEP:

  • Power up IGEPv2
  • Open PuTTy.
  • Choose Serial line. If you are running PuTTy on Windows, the Serial line will be like (COM1 or COM2 or COM3, etc.). If you are running PuTTy on Ubuntu, the Serial line will be like (/dev/ttyS0 or /dev/ttyS1 or /dev/ttyS3, etc.). Note that if you are using a USB->Serial converter, the Serial line will be like /dev/ttyUSB0
  • Configure Speed to 115200
  • Select Serial Connection type
  • Press on Open button
  • You will successfully started the console.


IGEPV2EXPCHMDB9.png Remoteshellpromptdb9putty.jpg

Know more

Read this tutorial to learn about UARTs.

How to use TFT and Touchscreen

Seiko a Powertip touch screens are not supported by default in IGEPv2. Use the following steps for it:

ssh root@192.168.5.1 
mkdir /tmp/temp
mount -t jffs2 /dev/mtdblock1 /tmp/temp 
vi /tmp/temp/igep.ini 
  • In Seiko screen add the following line:
omapdss.def_disp=lcd-70
  • In Powertip screen add the following line:
omapdss.def_disp=lcd-43
  • Save changes and reboot your IGEP Device to finish it.

How to use Telit Modem

Basic

Telit modem is not supported by default in IGEPv2. Use the following steps for it:

ssh root@192.168.5.1 
mkdir /tmp/temp
mount -t jffs2 /dev/mtdblock1 /tmp/temp 
vi /tmp/temp/igep.ini 
  • Add the following line (press i to insert content):
buddy.modem=yes
  • Save changes (ESC -> :wq -> Enter) and reboot your IGEP Device
  • Power up the modem. You can power off using again these commands:
echo 0 > /sys/class/gpio/gpio140/value
echo 1 > /sys/class/gpio/gpio141/value
sleep 1
echo 0 > /sys/class/gpio/gpio141/value
  • Once the modem is on (led D401, near SIM card reader, 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.

Examples

If you successfully followed the the previous instructions, you are ready to test the GSM/GPRS modem. Here are some examples:

You can check the complete list of AT commands at the Official manufacturer Software User Guide.

Test received signal strength

Use the instruction:

at+csq

The answer should be: +CSQ: X,0, where X is the signal strenght. For example 12 is poor and 18 is good. If the answer is +CSQ:99,99 you should check your coverage or use an antenna

Making a phone call

Use the instruction, replace number_to_call with your number:

atd number_to_call

Press any key to end call

NOTE: If "NO CARRIER" message appears, check your coverage or use an antenna.

Sending a SMS

First of all, you need to configure the SMS format type. Telit GE865 GSM/GPRS supports PDU format and Text format. We use Text format. Type the following command:

AT+CMGF=1

There are so many ways in this modem to send a message. Here you have a simple example. Use the instruction, replace destination_number with your number:

at+cmgs= destination_number
> insert here your text message

When you are ready to send your message use Ctrl+Z to send it.

If you want to cancel or restart the message press ESC.

NOTE: If "NO CARRIER" message appears, check your coverage or use an antenna.

NOTE: Don't use special characters in SMS text message like <`´'">.

Know more

Here you have the official manuals from the manufacturer's webpage:

How to use TVP5151 Video Decoder

Basic

Use the following steps to capture analog video:

  • Connect a video composite input to J501 connector from IGEPv2 Expansion (near CAN Bus)
  • Connect a screen, for example HDMI monitor.
  • Log into IGEPv2 (via SSH, as shown in the previous chapter), and run the following commands:
ssh root@192.168.5.1 
  • Now you have a remote igep terminal
  • Refresh repositories and accept it.
zypper ref 
  • Install video4linux2 plugin
zypper in gst-plugins-good-video4linux2
  • Load OMAP ISP kernel module
modprobe omap3-isp
  • Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480:
media-ctl -r -l '"tvp5150 2-005c":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
media-ctl -v --set-format '"tvp5150 2-005c":0 [UYVY 720x480]'
media-ctl -v --set-format '"OMAP3 ISP CCDC":0 [UYVY 720x480]'
media-ctl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' 
  • Export display
export DISPLAY=:0.0 
  • Launch gstreamer
gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=8 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=480 ! ffmpegcolorspace ! autovideosink
  • Now you can see in your IGEP screen a result similar like this
Igepv2expgstreamercapture.jpg


Know more

You can use other programs like yavta

How to use EEPROM

Basic

The IGEP0022 expansion board provides an AT24C01B serial EEPROM memory which is connected to the OMAP via I2C (register 50).

Use i2c-tools to manage it:

i2cget <bus> <chip> <register>
i2cset <bus> <chip> <register> <value>

For example, the following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:

i2cset -f -y 2 0x50 0x10 0x22
i2cget -f -y 2 0x50 0x10

Know more

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

How to use CAN bus (under construction)

You have to connect the two boards like this:

IGEPv2 1             IGEPv2 2
.---                 .---
| 1 |-X            X-| 1 |
| 2 |------------------| 2 | 
| 3 |------------------| 3 |
| 4 |------------------| 4 |
.---                 .---

If this is your first time accessing CAN bus, check J702 jumper is not connected before follow this tutorial. If you don't have this jumper, don't worry because its function is only for testing.

Now you can set up the interface (on all boards when using multiple IGEPv2 EXPANSION connected to a CAN network simultaneously):

/bin/ip link set can0 up type can bitrate 125000

If you want to receive CAN data, use:

candump can0

If you want to send CAN data, use:

cansend can0 -i 0x123 0xaa 0xbb 0xcc 0xdd

On the receiver side, you must see the following messages:

can0  123  [4] aa bb cc dd

Switch roles and try it again

----


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