Difference between revisions of "What can I do with IGEP AQUILA EXPANSION"

From IGEP - ISEE Wiki

Jump to: navigation, search
m
m
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Message/Work in progress}}
 
 
 
{{Table/IGEP Technology Devices
 
{{Table/IGEP Technology Devices
 
|Tech_Family={{#lst:Template:Links|IGEP_AQUILA_EXPANSION_Tech_Family}}
 
|Tech_Family={{#lst:Template:Links|IGEP_AQUILA_EXPANSION_Tech_Family}}
Line 13: Line 11:
 
= Overview =
 
= Overview =
  
This is the 2/3 chapter of the Getting Started with IGEPv2 Tutorial Guide.
+
This is the 2/3 chapter of the Getting Started with IGEP AQUILA EXPANSION Tutorial Guide.
  
 
In this second chapter, we will learn some basics tasks. Upon completion, you will be ready to continue with chapter 3/3 that explains more advanced tasks.
 
In this second chapter, we will learn some basics tasks. Upon completion, you will be ready to continue with chapter 3/3 that explains more advanced tasks.
Line 19: Line 17:
  
 
__TOC__
 
__TOC__
 
  
 
= What can I do =
 
= What can I do =
Line 25: Line 22:
 
You must logged in the board.
 
You must logged in the board.
  
== How to use serial console ==
+
== Remote connection via Ethernet ==
  
Connect a serial (COM port) cable (known as the AT/Everex Cable) to the 10-pin header J960 on the board. Now you need a Null-Modem DB9 male-make serial cable. Connect the cable between the board and your PC. Open the serial on your PC using your preferred serial communications program (minicom) and configure the port as follows:
+
{{Message/Information Message|title=|message=If you aren't using a Linux operating system, use [http://labs.isee.biz/index.php/IGEP_SDK_Virtual_Machine IGEP SDK Virtual Machine] to connect to the board}}
  
* 115200
+
In your Host Machine, open a terminal sessions set up an Ethernet alias for your network interface,
* 8N1
 
* no flow control (either software or hardware)
 
  
Open the serial port and the debug shell prompt should appear.
+
$ sudo ifconfig eth0:0 192.168.5.10
  
A detailed guide on how to connect via serial debug port can be found by following this link: [[Using serial debug port to communicate]]
+
Connect to the board using the SSH protocol
  
== Handle the GPIO-LEDS ==
+
$ ssh root@192.168.5.1
  
The board has two user bicolor (green/red) leds available that can be controlled. In its simplest form, you can control of LEDs from
+
An empty password for root user should work to access to the shell prompt.
userspace. LEDs appear in /sys/class/leds/ and you can turn on and off with following commands:
+
 
 +
== How to use audio HDMI  ==
  
$ echo 0 > /sys/class/leds/d240\:green/brightness
+
IGEP COM AQUILA contains multiple I2S peripherals one of them is connected to HDMI transceiver. Then you can easily play a *.wav sound with the application Aplay, for example:
  
$ echo 1 > /sys/class/leds/d240\:red/brightness
+
<pre>aplay /opt/wav/test.wav</pre>
$ echo 0 > /sys/class/leds/d240\:red/brightness
 
  
  $ echo 1 > /sys/class/leds/d440\:green/brightness
+
== How to use LEDs ==
$ echo 1 > /sys/class/leds/d440\:red/brightness
+
The board has three user leds available that can be controlled. In its simplest form, you can control of LEDs from
 +
userspace. LEDs appear in /sys/class/leds/ and you can turn on and off with following commands:
  
 
A detailed guide on how use GPIO-LEDS can be found by following this link: [[How to handle the gpio-LED]]
 
A detailed guide on how use GPIO-LEDS can be found by following this link: [[How to handle the gpio-LED]]
 +
=== Control AQUILA COM Green LED ===
 +
 +
<pre>echo "1" > /sys/class/leds/com\:green\:user/brightness</pre>
  
== How to use UART1 (RS232) ==
+
You can turn them down using the same command and write '0' instead of '1'.  
 
 
The board has another UART available on J960 connector (UART1). This UART is 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 [[How_do_I_edit_my_kernel_command_line | adding following kernel cmdline parameter]]
 
 
 
board.ei485=no
 
 
 
Now, you can connect the serial AT/Everex Cable to the 10-pin header J960 on the board. In that case the first pin of the AT/Everex Cable (red) should be connected to the pin number 10 of the header J960. You also need a Null-Modem DB9 male-make serial cable. Connect the cable between the target board and your PC.
 
 
 
Open the serial port on your PC using your preferred serial communications program (minicom) and configure the port as follows:
 
 
 
* 115200
 
* 8N1
 
* no flow control (either software or hardware)
 
 
 
On the target board open a serial port as follows:
 
 
 
  $ microcom -s 115200 /dev/ttyS0
 
 
 
Now when you write a character in you PC serial port, the character should appear in the target board.
 
 
 
A detailed guide on how use UARTS can be found by following this link: [[How to use UARTs]]
 
 
 
== How to use RS-485  ==
 
 
 
{{#lst:How to use RS485|overview}}
 
A detailed guide on how use UARTS can be found by following this link: [[How to use RS485]]
 
 
 
== Get sound in (audio in) ==
 
 
 
External Audio input devices, such as a powered microphone or the audio output of a PC or MP3 player, can be connected to the via a 3.5mm jack (Audio IN).
 
 
 
Note that the board has been designed to use Line In for the audio input which means users need to add some type of pre-amp for a microphone to work or use a powered microphone. For a pre-amp for a microphone you can use MAX9812.
 
 
 
You can record audio in with the application arecord, for example:
 
 
 
$ arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav
 
 
 
Following output is expected on console:
 
 
 
Recording WAVE 'audio-in.wav'&nbsp;: Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0
 
Its setup is:
 
stream      &nbsp;: CAPTURE
 
access      &nbsp;: RW_INTERLEAVED
 
format      &nbsp;: S16_LE
 
subformat  &nbsp;: STD
 
channels    &nbsp;: 2
 
rate        &nbsp;: 44100
 
exact rate  &nbsp;: 44100 (44100/1)
 
msbits      &nbsp;: 16
 
buffer_size &nbsp;: 32768
 
period_size &nbsp;: 2048
 
period_time &nbsp;: 46439
 
tick_time  &nbsp;: 7812
 
tstamp_mode &nbsp;: NONE
 
period_step &nbsp;: 1
 
sleep_min  &nbsp;: 0
 
avail_min  &nbsp;: 2048
 
xfer_align  &nbsp;: 2048
 
start_threshold &nbsp;: 1
 
stop_threshold  &nbsp;: 32768
 
silence_threshold: 0
 
silence_size&nbsp;: 0
 
boundary    &nbsp;: 1073741824
 
 
 
When ever you think you want to stop recording just press CTRL+C
 
 
 
== Get sound out (audio out) ==
 
 
 
Connect an external output audio device to the 3.5mm jack Audio Out connector in the board, such as external stereo powered speakers.
 
 
 
The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with:
 
 
 
$ amixer set -D hw:0 'Headset' 0dB
 
$ amixer set -D hw:0 'HeadsetL Mixer AudioL2' on
 
$ amixer set -D hw:0 'HeadsetR Mixer AudioR2' on
 
 
 
Then you can easily play a *.wav sound with the application Aplay, for example:
 
 
 
$ aplay audio-in.wav
 
 
 
== How to use wifi ==
 
 
 
If you hve a wireless network adapter in your computer you can also connect to the board using the ad hoc network connection that the firmware configures byu default.
 
 
 
Use your wireless manager to connect toi the wireless network called in the form
 
 
 
IGEP_xx
 
 
 
After connecting, a DHCP IP address should be adquired. Now you can access, for example with ssh, to the target board connecting to the 192.168.7.1 address.
 
 
 
$ ssh root@192.168.6.1
 
 
 
A detailed guide on how use wifi can be found by following this link: [[Using IGEP WLAN to communicate]]
 
 
 
== How to use bluetooth ==
 
  
A detailed guide on how use wifi can be found by following this link: [[How to setup Marvell bluetooth]]
+
=== Control AQUILA EXPANSION Bicolor LED ===
 +
<pre>echo "1" > /sys/class/leds/base\:green\:user/brightness
 +
echo "1" > /sys/class/leds/base\:red\:user/brightness</pre>
  
== How to use the SD card ==
+
You can turn them down using the same command and write '0' instead of '1'.
  
You can connect a micro SD card for storage. After plugin the SD card the kernel should detect the card and automount in /media directory.
+
== How to use EEPROM  ==
  
== How to use the USB OTG ==
+
IGEP AQUILA EXPANSION contains a 32 Kb EEPROM. EEPROM can be read and write via /sys/devices/ocp.2/44e0b000.i2c/i2c-0/0-0050/eeprom:
 +
* Write EEPROM:
 +
<pre>echo "data" > /sys/devices/ocp.2/44e0b000.i2c/i2c-0/0-0050/eeprom </pre>
 +
* Read EEPROM:
 +
<pre>cat  /sys/devices/ocp.2/44e0b000.i2c/i2c-0/0-0050/eeprom</pre>
  
In order to act in host mode and add some peripherals like keyboard, mouse or pendrives you require a special cable that grounds the ID pin. Since the OTG port only provides 100mA of power a USB hub is recommended.
+
== How to use USB OTG ==
  
Though a common USB Standard-A to Mini-B type cable the port acts as a device. In this mode you can connect to the board using the USB Ethernet Gadget. Use this cable between your computer and the target board and connect with:
+
The base can be powered though USB OTG connector, but it's recommended use an external USB hub. Use an USB Standard-A to Mini-B type cable between the base and the USB hub and connect with:
  
$ ssh root@192.168.7.1
+
<pre>ssh root@192.168.7.1</pre>
  
A detailed guide on how use wifi can be found by following this link: [[Using USB ethernet gadget to communicate]]
+
A detailed guide on how use Ethernet Gadget can be found by following this link: [[Using USB ethernet gadget to communicate]]
  
 
{{Template:Navigation/IGEP Technology Guides/What can I do/Ending}}
 
{{Template:Navigation/IGEP Technology Guides/What can I do/Ending}}
  
 
[[Category:IGEP Technology Devices Guides]]
 
[[Category:IGEP Technology Devices Guides]]

Latest revision as of 12:26, 30 December 2013


Overview

This is the 2/3 chapter of the Getting Started with IGEP AQUILA EXPANSION Tutorial Guide.

In this second chapter, we will learn some basics tasks. Upon completion, you will be ready to continue with chapter 3/3 that explains more advanced tasks.


What can I do

You must logged in the board.

Remote connection via Ethernet

Information.jpg If you aren't using a Linux operating system, use IGEP SDK Virtual Machine to connect to the board

In your Host Machine, open a terminal sessions set up an Ethernet alias for your network interface,

$ sudo ifconfig eth0:0 192.168.5.10

Connect to the board using the SSH protocol

$ ssh root@192.168.5.1

An empty password for root user should work to access to the shell prompt.

How to use audio HDMI

IGEP COM AQUILA contains multiple I2S peripherals one of them is connected to HDMI transceiver. Then you can easily play a *.wav sound with the application Aplay, for example:

aplay /opt/wav/test.wav

How to use LEDs

The board has three user leds available that can be controlled. In its simplest form, you can control of LEDs from userspace. LEDs appear in /sys/class/leds/ and you can turn on and off with following commands:

A detailed guide on how use GPIO-LEDS can be found by following this link: How to handle the gpio-LED

Control AQUILA COM Green LED

echo "1" > /sys/class/leds/com\:green\:user/brightness

You can turn them down using the same command and write '0' instead of '1'.

Control AQUILA EXPANSION Bicolor LED

echo "1" > /sys/class/leds/base\:green\:user/brightness
echo "1" > /sys/class/leds/base\:red\:user/brightness

You can turn them down using the same command and write '0' instead of '1'.

How to use EEPROM

IGEP AQUILA EXPANSION contains a 32 Kb EEPROM. EEPROM can be read and write via /sys/devices/ocp.2/44e0b000.i2c/i2c-0/0-0050/eeprom:

  • Write EEPROM:
echo "data" > /sys/devices/ocp.2/44e0b000.i2c/i2c-0/0-0050/eeprom 
  • Read EEPROM:
cat  /sys/devices/ocp.2/44e0b000.i2c/i2c-0/0-0050/eeprom

How to use USB OTG

The base can be powered though USB OTG connector, but it's recommended use an external USB hub. Use an USB Standard-A to Mini-B type cable between the base and the USB hub and connect with:

ssh root@192.168.7.1

A detailed guide on how use Ethernet Gadget can be found by following this link: Using USB ethernet gadget to communicate



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