Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEPv2 EXPANSION

3,271 bytes removed, 12:20, 29 January 2013
m
no edit summary
__NOTOC__{{Table/IGEP Technology Devices {| cellspacingTech_Family="0" cellpadding="5" border="1" align="center" width="100%" style="text-align{{#lst:Template: left;"Links|-IGEPv2_EXPANSION_Tech_Family}}| bgcolorTech_ID="#cccccc" |'''What can I do with IGEP BERLIN'''|-| If you have '''successfully completed the [[{{#lst:Template:Links|IGEPv2_EXPANSION_Community_Guides_1IGEPv2_EXPANSION_Tech_ID}}|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}}
|Image={{#lst:Template:Links|IGEPv2_EXPANSION_Image}}
|ISEE_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_ISEE_MainPage}}
|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}}}}
{| cellspacing="0" cellpadding="5" border="1" align="center" style="text-align: left;"|-| 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!'''|}
This is the 2/3 chapter of IGEPv2 Expansion Tutorial Guide.
{{Message/Work in progress}}We will learn some basic tasks.
= Add support for IGEPv2 EXPANSION =__TOC__
The required [[Linux Kernel 2.6.37.y#Scenarios|kernel command line]] option here is:
= What can I do<br> buddy=igep0022
== How to use TFT and Touchscreen ==
[[Image:IGEP0022 PROTO RA DSC 0142.JPG|right|200px]] IGEPv2 Expansion supports SEIKO 7” or POWERTIP 4.3” LCD screen. Use J301 connector for POWERTRIP 4.3" or use J302, J303 and J304 connector for SEIKO 7".<br>
Seiko and Powertip touch screens are not supported by default in IGEPv2. Use the following steps for it:
Edit igep.ini file to configure your touch screen, you can do this [[How_do_I_edit_my_kernel_command_line | adding following kernel cmdline parameter]]*In Seiko screen add the following line:<pre>omapdss.def_disp= How to use Serial communication lcd-70</pre> *In Powertip screen add the following line:<pre>omapdss.def_disp=lcd-43</pre>
* == How to use serial console ==[[Peripherals Summary#UARTImage:Igepv2expdb9connector.PNG|right|UART200px]]* [[How to use UARTs| Use IGEPv2 Expansion integrates a DB9 RS232 connector. This UARTis shared with RS485 so it's]]* incompatible use both interfaces at the same time. For that reason to use UART1 for RS232 comunications you should disable RS485 interface. You can do this [[:Category:UARTHow_do_I_edit_my_kernel_command_line | adding following kernel cmdline parameter]].
board.ei485=no
= How to get VGA output =You need a Null-Modem DB9 male-make serial cable. Connect the cable between the target board and your PC.
The required [[How do I edit my kernel command line|kernel command line]] option here is omapfb.mode followed by Open the desired resolution, make sure to select a video mode compatible with serial port on your monitor PC using your preferred serial communications program (minicom) and configure the port as follows:
For example: * 115200* 8N1* no flow control (either software or hardware)
omapdss.def_disp=dvi omapfb.mode=dviOn the target board open a serial port as follows:1024x768-16@60
Note that you could connect both a VGA monitor and a DVI $ microcom -D monitor and see the same image, as long as the video mode is compatible with both monitors. s 115200 /dev/ttyS0
= How to use TFT and Touchscreen =Now when you write a character in you PC serial port, the character should appear in the target board.
Seiko 7.0 inch WVGA (800 x RGB x 480) TFT:  Add the A detailed guide on how use UARTS can be found by following line to igep.ini  omapdss.def_disp=lcd-70 Powertip 4.3 inch (480 x RGB x 272) TFTthis link:  Add the following line [[How to igep.ini  omapdss.def_disp=lcd-43use UARTs]]
== How to use Telit Modem ==
{| align="right" cellspacing="1" cellpadding="1" border="1" width="200"
|-
| [[Image:IGEP0022 Modem with antenna.png|200px]]
| [[Image:Igepv2expcardreader.PNG|right|200px]]
|-
| GSM-GPRS antenna (highly recommended)
| SIM card reader
|}
You should reboot your IGEP Device IGEPv2 Expansion integrates a GSM/GPRS&nbsp;modem to enable a new resolution configurationmake phone calls or to send SMS or to write and read data from it, etc. Telit modem is not supported by default in IGEPv2 Expansion.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/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.
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>  Here there are a few instructions in order to introduce the Telit modem.<br>  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. Insert a valid SIM card to the SIM card reader of your IGEP0022.  Now, you must add the following line at the kernel file (igep.ini) in order to enable GE865 support: <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>  In IGEP0022, the modem is connected to 3 GPIO pins from the OMAP, which are: &lt;omap_pin_name (modem_function)&gt;  *GPIO_140 (Reset) *GPIO_141 (On_Off) *GPIO_156 (PWRMON)<br> You can power up your modem using the following sequence:  (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) <pre>echo 0 &gt; /sys/class/gpio/gpio140/valueecho 1 &gt; /sys/class/gpio/gpio141/valuesleep 1echo 0 &gt; /sys/class/gpio/gpio141/value</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: <pre>$ microcom -s 115200 /dev/ttyS1ttyO1</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>
<pre>at</pre>
*Answer should be OK.<br>  '''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>
*If you correctly inserted the PIN number, the answer should be OK.  (Note: &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]]''
== Examples How to use TVP5151 Video Decoder == 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[Image://telitIgepv2expvideocompositeconnector.com/module/infopool/download.php?id=522 Software User GuidePNG|right|200px]]IGEPv2 Expansion integrates two composite video connectors to decode analog input signal.  === Test received signal strength<br> Configure TVP5151 === Use *Plug some peripheral with video composite output in J501 RCA connector, see the instruction: image for more details.<pre>at+csq</prebr>  The answer should be: +CSQ: X*Connect a screen,0, where X is the signal strenghtfor example HDMI monitor. For example 6 is poor *Refresh repositories and 15 is good. If the answer is +CSQ:99,99 you should check the antennaaccept it=== Making a phone call<brpre>$ zypper ref </pre> === Use the instruction: *Install video4linux2 plugin<pre>atd &lt;number_to_call&gt;$ zypper in gst-plugins-good-video4linux2
</pre>
 Press any key to end call === Sending a SMS<br> Play with TVP5151 === 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: *Load OMAP ISP kernel module<pre>AT+CMGF=1</prebrThere 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;$ modprobe omap3-isp
</pre>
When *Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480:<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 are ready to send can see in your message use Ctrl+Z to send it. IGEP screen a result similar like this
If you want to cancel or restart the message press ESC{| cellspacing="1" cellpadding="1" border="1" width="200"|-| [[Image:Igepv2expgstreamercapture.<br>jpg|400px]]|}
= ''From [[How to use TVP5151 Video Decoder<br> =setup tvp5151 video decoder]]''
=== Requirements<br> How to use EEPROM ===IGEPv2 Expansion includes a serial EEPROM, provides 1KB of user data storage. EEPROM is connected through I2C2 of OMAP3 processor at address 0x50.
*Have successfully connected The following example writes the TFT Screen as explained at the [[Getting Started with IGEP0022 board#TFT_and_Touchscreen|Getting Started Guide]] or at the [httpvalue 0x22 to register 0x10 of device 0x50 on i2c bus 2://igep.es/index.php?option=com_content&view=article&id=99&Itemid=129&dir=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01<pre>$ i2cset -ISEE_Products%2FIGEPv2_EXPANSION%2FHW_User_Manuals&download_file=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01f -ISEE_Products%2FIGEPv2_EXPANSION%2FHW_User_Manuals%2FMANy 2 0x50 0x10 0x22$ i2cget -PRf -IGEP.0022-001.01.HW_USER_MANUAL.pdf Official Hardware Reference Manual]y 2 0x50 0x10<br/pre> *A camera or any device with PAL output video ''From [[How to RCA connector.<br>use EEPROM]]''
<br> == How to use CAN bus ==
----[[Image:Igepv2expcanconnector.PNG|right|200px]]IGEPv2 Expansion integrates a CAN peripheral. Connect any CAN bus device or network to the CAN bus connector (J703).
You have to connect the two boards like this:<br>
There are two modules that you will use that are not inserted into the kernel IGEPv2 Exp 1 IGEPv2 Exp 2 .--- .--- | 1 |-X X-| 1 | VDD_CAN: iommu2 Supply Voltage (tvp5151+5V DC) and isp | 2 |------------------| 2 | CANL: CAN Low-Level Voltage I/O | 3 |------------------| 3 | GND : Ground | 4 |------------------| 4 | CANH : CAN High-Level Voltage I/O .--- . ---
You If this is your first time accessing CAN bus, check J702 jumper is not connected before follow this tutorial. If you don't have to load these kernel modules before start:<br> <pre>modprobe iommu2modprobe omap3-isp</pre> (Note: The first load order must be the iommu2 and then the omap3-isp)<br> 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 <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>
<br> $ ip link set can0 up type can bitrate 125000
NowIf you want to receive CAN data, 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>
Now you have to configure the ISP and TVP5151:<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. $ candump can0
Use gstreamer as live stream If you want to capture video from your video source.<br> send CAN data, use:
Now setup the gstreamer pipeline:<br> <pre>gst $ cansend can0 -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. i 0x123 0xaa 0xbb 0xcc 0xdd
[[ImageOn the receiver side, you must see the following messages:TVP5151 video decoder.jpg|frame|center|514x346px]]See also: [[How to setup tvp5151 video decoder]]<br>
= How to use EEPROM =can0 123 [4] aa bb cc dd
The IGEP0022 expansion board provides an [http://wwwSwitch roles and try it again.atmel.com/dyn/resources/prod_documents/doc5156.pdf AT24C01B] serial EEPROM memory which is connected to the OMAP via I2C.<br>
You can ''From [[How to use easily simple reads/writes to access to the eeprom: CAN bus]]''
== How to use VGA connector echo =={| cellspacing="1" cellpadding="hello world!1" width="363" border="1" align="right" &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| [[Image: Igepv2expconnecttovga.jpg|150px]]   i2cget &lt;bus&gt; &lt;chip&gt; &lt;register&gt; i2cset &lt;bus&gt; &lt;chip&gt; &lt;register&gt; &lt;value&gt; For example, the following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2| [[Image: Igepv2expvgaconnector.PNG|200px]]  i2cset -f -y 2 0x50 0x10 0x22 i2cget -f -y 2 0x50 0x10 See also: i2dump(8), i2cget(8) and i2cset(8) man page  = How to use CAN bus =|}
{{#lst:How IGEPv2 Expansion integrates a VGA connector, the output VGA signal is equal to use CAN bus|IGEPv2 EXPANSION}}HDMI connector. Plug a monitor with VGA&nbsp;input. <br><br><br><br><br><br><br><br><br><br>
{{Template:Navigation/IGEP Technology Devices Guides/Next Step|Name={{#lst:Template:Links|IGEPv2_EXPANSION_Name}}|Community_MainPage={{#lst:Template:Links|IGEPv2_EXPANSION_Community_MainPage}}|Next_Step=Start developing under IGEP TechnologyWhat can I do/Ending}}
[[Category:IGEP Technology Devices Guides]]
0
edits