wiki:AliXboard
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
Last modified 4 years ago Last modified on 03.07.2013 16:39:34

Alix6E1 board

We use a Alix6 boardAlix6e1 for data transport via 3G (UMTS). It is a whole family of boards with base name Alix that are manufactured by pcengines in Switzerland. The ALix6 board comes with 2xRS-232, 2xUSB, mini-PCI, mini_PCIe. We attach a UMTS Modem to the miniPCI express port: GTM382W (EOL)

http://www.roundsolutions.com/shop/products/en/OEM-GSM-GPS-Solutions/HSPA-Modem/Option-GTM382-E-HSUPA-HSDPA-UMTS-Mini-PCI-Express-Card.html

One of the main advantages is the x86 architecture that enables easy software development as it doesn't require cross-compilation of data acquisition softwares or other standard tools we use for from the embedded Linux OS running on this device (may be OpenWRT, but can be also other Linux systems).

alix6

We use a stable version backfire, not the trunk. See here: https://dev.openwrt.org/wiki/GetSource

Download

svn co svn://svn.openwrt.org/openwrt/branches/backfire

Compile the strip down single package slacquisition:[here??] Compile dependency libxml zlib

make packages/slacquisition/compile
make packages/slacquisition/install

The packet slacquisition must be selected via make menuconfig, also X86, generic

Load the operating system openwrt to a compact flash card.

wget downloads.openwrt.org/backfire/10.03.1/x86_generic/openwrt-x86-generic-combined-ext2.img.gz   
gunzip openwrt-x86-generic-combined-ext2.img.gz
dd if=openwrt-x86-generic-combined-ext2.img.gz of=/dev/sdb

Install the network for ethernet: vi /etc/config/network remove bridge, eth0 dhcp

Install kernel modules, software:

opkg update

opkg install kmod-usb-serial-option kmod-usb-serial-oti6858 kmod-usb-storage usbutils comgt kmod-usb-net-hso ddns-scripts kmod-usb-ser
ial-pl2303 usb-modeswitch usb-modeswitch-data  kmod-usb2 kmod-usb-ohci kmod-usb-uhci

For the chat scripts and management of the option card install: https://forum.openwrt.org/viewtopic.php?id=23746&p=2:

opkg install http://eko.one.pl/openwrt/hso_1-1_all.ipk

For configuration of the GTM382W card at the PCIexpress slot use: http://wiki.openwrt.org/doc/recipes/3gdongle

vi /etc/config/network


config 'interface' 'hso'
        option 'ifname' 'hso0'
#       option '_orig_bridge' 'false'
        option 'proto' 'hso'
        option 'service' 'umts'
#        option 'apn' 'internet.t-mobile'
        option 'apn' 'internet.t-d1.de'
        option 'pincode' '1234'
        option 'username' 't-mobile'
        option 'password' 'tm'
        option 'device' '/dev/ttyHS2'

Better use apn internet.t-d1.de because of the open ports.

ifup hso

For restart of the connection use following cron job regularly, otherwise connection the hangs up.

/bin/tester.sh

#!/bin/sh

if ! ping -q -c 1 -W 10 -I hso0 8.8.8.8 > /dev/null; then
        (ifdown hso; sleep 5;ifup hso ) &
fi

We use a dynamic domain name system, from dyndns:

vi /etc/config/ddns

config service "myddns"                                        
        option enabled          "1"                                
        option interface        "hso"                             
                                                                 
        option service_name     "dyndns.org"               
        option domain           "danielvollmer.dyndns.org"     
        option username         "daniel05"                        
        option password         "********"                        
                                                                 
        option ip_source        "network"                         
        option ip_network       "hso"                                  
                                                                   
                                                                  
        option force_interval   "72"                            
        option force_unit       "hours"                       
        option check_interval   "10"                          
        option check_unit       "minutes"                        

There are more dynamic dns services: http://dnslookup.me/dynamic-dns/

start demon sh . /usr/lib/ddns/dynamic_dns_functions.sh # note the leading period start_daemon_for_all_ddns_sections exit

Start dyndns by typing:

/usr/lib/ddns/dynamic_dns_updater.sh myddns

Install the seedlink system:

opkg update
opkg install zlib libxml2 bash libstdcpp
mkdir /home/waran/
#USB STick
mount /dev/sdb1 /home/waran
chmod u+x  /home/waran/operator/acq_ctrl start
mkdir /home/waran/logs
opkg slacqusition

For testing the UMTS connection we use comgt: http://wiki.openwrt.org/doc/recipes/3gdongle

gcom -d /dev/ttyHS2
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network: " ",0
Signal Quality: 11,99

This needs about 4.9W @12V, not perfect for solar installations.