Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEPv2 EXPANSION

5 bytes added, 12:20, 29 January 2013
m
no edit summary
}}
__TOC__
= Overview =
We will learn some basic tasks.
 
 
__TOC__
 
= What can I do<br> =
*Power up the modem using the next commands:
<pre>$ echo 0 &gt; /sys/class/gpio/gpio140/value$ echo 1 &gt; /sys/class/gpio/gpio141/value$ sleep 1$ echo 0 &gt; /sys/class/gpio/gpio141/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>
[[Image:Igepv2expvideocompositeconnector.PNG|right|200px]]IGEPv2 Expansion integrates two composite video connectors to decode analog input signal.
=== Configure TVP5151 ===
*Plug some peripheral with video composite output in J501 rca RCA connector, see the image for more details.<br>
*Connect a screen, for example HDMI monitor.
*Refresh repositories and accept it.
<pre>$ zypper ref </pre>
*Install video4linux2 plugin
<pre>$ zypper in gst-plugins-good-video4linux2
</pre>
=== Play with TVP5151 ===
*Load OMAP ISP kernel module<br>
<pre>$ modprobe omap3-isp
</pre>
*Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480 for '''IGEPv2 Expansion''':<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
The following example writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:
<pre>$ i2cset -f -y 2 0x50 0x10 0x22$ i2cget -f -y 2 0x50 0x10</pre>
''From [[How to use EEPROM]]''
Now you can set up the interface (on all boards when using multiple IGEPv2 EXPANSION <span lang="en" id="result_box" class="short_text"><span title="Click for alternate translations" class="hps">connected to a CAN network simultaneously)</span></span>:<br>
/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:
Switch roles and try it again.
''From [[How to use CAN bus]]''
== How to use VGA connector ==
0
edits