Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEPv2

2,439 bytes added, 12:36, 11 May 2016
no edit summary
|ISEE_Hardware={{#lst:Template:Links|IGEPv2_ISEE_Hardware}}
}}
 
 
= Overview =
 
This is the 2/3 chapter of the Getting Started with IGEPv2 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.
= Overview What can I do You must logged in the board. == How to use serial console == 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: * 115200* 8N1* no flow control (either software or hardware) Open the serial port and the debug shell prompt should appear. A detailed guide on how to connect via serial debug port can be found by following this link: [[Using serial debug port to communicate]] == Handle the GPIO-LEDS == The board has two user bicolor (green/red) leds available that can be controlled. In its simplest form, you can control of LEDs fromuserspace. LEDs appear in /sys/class/leds/ and you can turn on and off with following commands:
This is the 2 $ echo 0 > /3 chapter of IGEPv2 Tutorial Guide.sys/class/leds/d240\:green/brightness
We will learn some basic tasks such to send a file between IGEPv2 and your PC , handle the IGEPv2 Leds, update the pre-installed software to the latest release, etc. $ echo 1 > /sys/class/leds/d240\:red/brightness $ echo 0 > /sys/class/leds/d240\:red/brightness
$ echo 1 > /sys/class/leds/d440\:green/brightness
$ echo 1 > /sys/class/leds/d440\:red/brightness
= What A detailed guide on how use GPIO-LEDS can I do =be found by following this link: [[How to handle the gpio-LED]]
== Handle the gpio-LED's generic GPIO =={{#lstSee [[How_to_use_GPIOs|GPIOs HOWTO]] to know details about that.Quick example could be:How to handle the <pre>echo 156 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio156/directionecho 0 > /sys/class/gpio-LED|IGEPv2}}/gpio156/value</pre>
== Mount a MicroSD card ==<pre>echo 157 > /sys/class/gpio/export echo in > /sys/class/gpio/gpio157/directioncat /sys/class/gpio/gpio157/value</pre>
''' Basic '''== How to use UART1 (RS232) ==
Log into IGEPv2 and run any of 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 commands:kernel cmdline parameter]]
* Access to Generic FAT32 microSD: board.ei485=no
mount Now, you can connect the serial AT/Everex Cable to the 10-t vfat /dev/mmcblk0 /mnt/tmppin 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.
* Access to Generic USB Flash diskOpen the serial port on your PC using your preferred serial communications program (minicom) and configure the port as follows:
mount -t vfat /dev/sda1 /mnt/tmp/* 115200* 8N1* no flow control (either software or hardware)
* Safety Remove microSDOn the target board open a serial port as follows:
umount $ microcom -s 115200 /mntdev/tmpttyS0
* Access to IGEP demo microSD:Now when you write a character in you PC serial port, the character should appear in the target board.
mount -t jffs2 /dev/mmcblk0 /mnt/tmp/A detailed guide on how use UARTS can be found by following this link: [[How to use UARTs]]
== How to use RS-485 ==
Follow the {{#lst:How to use RS485|overview}}A detailed guide on how use UARTS can be found by following this link to the extensive article: [[How_to_use_RS485_on_IGEP0020_board|How to use RS-485 on IGEPv2 boardRS485]]
== Get sound in (audio in) ==
== Get sound 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 in) ==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.
''' Basic '''Enable capture:
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).<pre>amixer -c 0 sset 'Analog Right AUXR' capamixer -c 0 sset 'Analog Left AUXL' cap </pre>
You can record audio in with the application Arecordarecord, for example:
<pre>arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav</pre>
Following output is expected on console:
boundary &nbsp;: 1073741824
When ever you think you want to stop recording just press CTRL+C  
== Get sound out (audio out) ==
''' Basic ''' Connect an '''external output audio device''' to the 3.5mm jack Audio Out connector in IGEPv2the 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  == Connect to the Serial Debug interface ==
''' Basic '''== How to use wifi ==
[[Image:DSC 0177.JPG|thumb|550px|right|AT/Everex Cable connected If you have a wireless network adapter in your computer you can also connect to the 10-pin serial header on IGEPv2]]board using the ad hoc network connection that the firmware configures byu default.
In Use your wireless manager to connect to the preinstalled software, wireless network called in the serial port is configured as a '''Debug interface'''. form
Therefore, if you connect an external device to the serial port you will be able to see the '''Linux Kernel traces''', as the system boots. 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.
Follow these steps: $ ssh root@192.168.6.1
* Connect an '''AT/Everex Cable''' to the '''10-pin serial header''' A detailed guide on IGEPv2 and a '''how use wifi can be found by following this link: [[http://en.wikipedia.org/wiki/Null_modem null modemUsing IGEP WLAN to communicate]] DB9 male-male''' serial cable between the board and your host machine.
* Refer to the article: '''[[How_to_setup_the_IDC10_cable|== How to setup the IDC10 cable]]''' to setup the IDC10 cable.use bluetooth ==
* You A detailed guide on how use bluetooth can also use a Serial port in your host machine you might need a '''USB be found by following this link: [[How to Serial converter''' to communicate via this port.setup Marvell bluetooth]]
* Run a serial console, or any program that can interact with == How to use the serial port in your host machine, such Minicom, PuTTy (Linux, Windows), Terminal (Windows), etc.SD card ==
* Refer to this extended article about '''[[Using serial debug port to communicate]]''' to setup You can connect a micro SD card for storage. After plugin the right configuration of your serial consoleSD card the kernel should detect the card and automount in /media directory.
== How to use the USB OTG ==
Now, as you are connected In order to the '''serial debug port'''act in host mode and add some peripherals like keyboard, mouse or pendrives you will see require a special cable that grounds the system traces as ID pin. Since the board OTG port only provides 100mA of power a USB hub is starting uprecommended.
Finally Though a common USB Standard-A to Mini-B type cable the port acts as a device. In this mode you will see can connect to the board using the boot prompt asking for loginUSB Ethernet Gadget.Use this cable between your computer and the target board and connect with:
$ ssh root@192.168.7.1
A detailed guide on how use wifi can be found by following this link: [[Image:Poky-prompt-screenshot.png|thumb|550px|center|IGEPv2 Serial Debug interface promptUsing USB ethernet gadget to communicate]] 
{{Template:Navigation/IGEP Technology Guides/What can I do/Ending}}
 
{{Table/IGEP Technology Devices
|Tech_Family={{#lst:Template:Links|IGEPv2_Tech_Family}}
|Tech_ID={{#lst:Template:Links|IGEPv2_Tech_ID}}
|Name={{#lst:Template:Links|IGEPv2_Name}}
|Image={{#lst:Template:Links|IGEPv2_Image}}
|ISEE_MainPage={{#lst:Template:Links|IGEPv2_ISEE_MainPage}}
|ISEE_Hardware={{#lst:Template:Links|IGEPv2_ISEE_Hardware}}
}}
[[Category:IGEP Technology Devices Guides]]
0
edits