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

From IGEP - ISEE Wiki

Jump to: navigation, search
m (Test received signal strength)
m (How to use CAN bus)
Line 96: Line 96:
 
== How to use CAN bus  ==
 
== How to use CAN bus  ==
  
{{#lst:How to use CAN bus|IGEPv2 EXPANSION}} {{Template:Navigation/IGEP Technology Guides/What can I do/Ending}} {{Table/IGEP Technology Devices
+
{{#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}}
 
|Tech_Family={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_Family}}
 
|Tech_ID={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_ID}}
 
|Tech_ID={{#lst:Template:Links|IGEPv2_EXPANSION_Tech_ID}}

Revision as of 12:39, 27 August 2012

Information.jpg 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.

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 and 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

Telit modem is not supported by default in IGEPv2 Expansion and IGEP Berlin.

Configure

Configure this adding following kernel cmdline parameter

buddy.modem=yes 

Power up

  • Power up the modem using the next commands:

IGEPv2 Expansion:

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 near SIM card reader , is blinking now), you can interact with it via UART 2.

IGEP BERLIN:

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.

Examples

If you successfully followed 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

Configure TVP5151

Use the following steps to configure analog video:

  • Connect a video composite input to J501 connector from IGEPv2 Expansion (near CAN Bus) or J402 connector from IGEP BERLIN (near HDMI output)
  • Connect a screen, for example HDMI monitor.
  • Refresh repositories and accept it.
zypper ref 
  • Install video4linux2 plugin
zypper in gst-plugins-good-video4linux2


Play with TVP5151

How to use EEPROM

Basic

The IGEP expansion boards (except IGEP New York) 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>

Know more

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


How to use CAN bus

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