Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEPv2 EXPANSION

1,003 bytes removed, 12:20, 29 January 2013
m
no edit summary
}}
__TOC__
 
{{Message/Information Message|title=|message= In this tutorial is used [[ IGEP firmware Yocto ]]}}
= 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.<br>   __TOC__  
= What can I do<br> =
== How to use Serial communication (DB9 connector) 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:
'''Basic''' 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=lcd-70</pre> *In Powertip screen add the following line:<pre>omapdss.def_disp=lcd-43</pre>
== How to use serial console ==[[Image:Igepv2expdb9connector.PNG|right|200px]] IGEPv2 Expansion integrates a DB9 RS232 link connector. This UART is shared with RS485 so it's incompatible use both interfaces at the same time. For that reason to use UART1 for UART 3 (/dev/ttyO2) can be obtained through J502 DB9 connectorRS232 comunications you should disable RS485 interface. You can use PuTTy to get a shell prompt to IGEP: do this [[How_do_I_edit_my_kernel_command_line | adding following kernel cmdline parameter]].
*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 board.ei485=no
<br> You need a Null-Modem DB9 male-make serial cable. Connect the cable between the target board and your PC.
{| cellspacing="1" cellpadding="1" border="1" width="200"|-| [[ImageOpen the serial port on your PC using your preferred serial communications program (minicom) and configure the port as follows:IGEPV2EXPCHMDB9.png|250px]] | [[Image:Remoteshellpromptdb9putty.jpg|250px]]|}
'''Know more''' * 115200* 8N1* no flow control (either software or hardware)
[[How to use UARTs|Read this tutorial]] to learn about UARTs. On the target board open a serial port as follows:
== How to use TFT and Touchscreen == $ microcom -s 115200 /dev/ttyS0
Seiko and Powertip touch screens are not supported by default Now when you write a character in IGEPv2you PC serial port, the character should appear in the target board. Use the following steps for it:
*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 A detailed guide on how use UARTS can be found by following commandsthis link:<pre>ssh root@192.168.5.1 mkdir /tmp/tempmount -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 [[How to finish it.<br>use 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
|}
'''Basic''' IGEPv2 Expansion integrates a GSM/GPRS&nbsp;modem to make 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]]
Telit buddy.modem is not supported by default in IGEPv2. Use the following steps for it: =yes
*Log into IGEPv2 (via SSH, [http://labs.isee.biz/index.php/Getting_started_with_IGEPv2#Log_into_IGEPv2_via_Ethernet_interface as shown in Power up the previous chapter]), and run modem using the following next commands:<pre>ssh root@192.168.5.1 mkdir $ echo 0 &gt; /sys/class/gpio/tmpgpio140/tempvaluemount -t jffs2 $ echo 1 &gt; /sys/devclass/mtdblock1 gpio/tmpgpio141/temp value$ sleep 1vi $ echo 0 &gt; /sys/class/tmpgpio/tempgpio141/igep.ini value</pre> *Add Once the following line modem is on (press i to insert contentled near power button is blinking now):, you can interact with it via UART 2.
buddy.modem=yes *Save changes (ESC -&gt;&nbsp;:wq -&gt; Enter) and reboot your IGEP Device *Power up the modem using the next commands:<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 (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/ttyO1</pre>
*To check the modem status use the command:<br>
<pre>at</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 TVP5151 Video Decoder = Examples =[[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 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:<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
If you successfully '''followed the previous instructions''', you are ready to test the GSM/GPRS modem{| cellspacing="1" cellpadding="1" border="1" width="200"|-| [[Image:Igepv2expgstreamercapture. Here are some examples: jpg|400px]]|}
You can check the complete list of AT commands at the Official manufacturer ''From [http://telit.com/module/infopool/download.php?id=522 Software User Guide[How to setup tvp5151 video decoder]]. ''
==== Test received signal strength<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.
Use The following example writes the instructionvalue 0x22 to register 0x10 of device 0x50 on i2c bus 2: <pre>at+csq$ i2cset -f -y 2 0x50 0x10 0x22$ i2cget -f -y 2 0x50 0x10</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 ''From [[How to use an antenna<br> EEPROM]]''
==== Making a phone call<br> How to use CAN bus ====
Use the instruction, replace number_to_call with your number[[Image: <pre>atd number_to_call</pre> Press Igepv2expcanconnector.PNG|right|200px]]IGEPv2 Expansion integrates a CAN peripheral. Connect any key CAN bus device or network to end call the CAN bus connector (J703).
'''NOTEYou have to connect the two boards like this:''' If "NO CARRIER" message appears, check your coverage or use an antenna. <br>
==== Sending a SMS<br> ====IGEPv2 Exp 1 IGEPv2 Exp 2 .--- .--- | 1 |-X X-| 1 | VDD_CAN: Supply Voltage (+5V DC) | 2 |------------------| 2 | CANL: CAN Low-Level Voltage I/O | 3 |------------------| 3 | GND : Ground | 4 |------------------| 4 | CANH : CAN High-Level Voltage I/O .--- .---
First of allIf this is your first time accessing CAN bus, 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> There are so many ways in check J702 jumper is not connected before follow this modem to send a messagetutorial. Here If you don't have a simple example. Use the instructionthis jumper, replace destination_number with your number: <pre>at+cmgs= destination_number&gt; insert here your text message</pre> When you are ready to send your message use Ctrl+Z to send itdon't worry because its function is only for testing.
If Now you want 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 cancel or restart the message press ESC.a CAN network simultaneously)</span></span>:<br>
'''NOTE:''' If "NO CARRIER" message appears, check your coverage or use an antenna. $ ip link set can0 up type can bitrate 125000
'''NOTEIf you want to receive CAN data, use:''' Don't use special characters in SMS text message like &lt;`ยด'"&gt;.<br>
'''Know more'''<br> $ candump can0
Here If you have the official manuals from the manufacturer's webpagewant to send CAN data, use:<br>
*[http://telit.com/module/infopool/download.php?id=1666 Telit GE865 $ cansend can0 -QUAD Hardware User Guide]<br> *[http://telit.com/module/infopool/download.php?id=522 Telit Modules Software User Guide]<br>i 0x123 0xaa 0xbb 0xcc 0xdd
== How to use TVP5151 Video Decoder <br> ==On the receiver side, you must see the following messages:
'''Basic''' can0 123 [4] aa bb cc dd
Use the following steps to capture analog video: Switch roles and try it again.
*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, [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> *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'From [1], "OMAP3 ISP CCDC":1-&gt;"OMAP3 ISP CCDC output":0[1How to use CAN bus]'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
== How to use VGA connector =={| cellspacing="1" cellpadding="1" width="363" border="1" widthalign="200right"
|-
| [[Image:Igepv2expgstreamercaptureIgepv2expconnecttovga.jpg|400px150px]] | [[Image:Igepv2expvgaconnector.PNG|200px]]
|}
IGEPv2 Expansion integrates a VGA connector, the output VGA signal is equal to HDMI connector. Plug a monitor with VGA&nbsp;input. <br><br><br>  '''Know more'''<br>  You can use other programs like [[How to setup tvp5151 video decoder|yavta]]<br>  == 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).<br>  Use i2c-tools to manage it: <prebr>i2cget &lt;bus&gt; &lt;chip&gt; &lt;register&gt;i2cset &lt;bus&gt; &lt;chip&gt; &lt;register&gt; &lt;value&gt;</prebr> For example, the following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2: <prebr>i2cset -f -y 2 0x50 0x10 0x22i2cget -f -y 2 0x50 0x10</prebr> '''Know more'''  See also: i2dump(8), i2cget(8) and i2cset(8) man page
== How to use CAN bus (under construction) =={{Template:Navigation/IGEP Technology Guides/What can I do/Ending}}
{{#lst[[Category:How to use CAN bus|IGEPv2 EXPANSION}} {{Template:Navigation/IGEP Technology Devices Guides/What can I do/Ending}} {{Table/IGEP Technology Devices|Tech_Family={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_Family}}|Tech_ID={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_ID}}|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}}}}]]
0
edits