Monday, October 18, 2010

Scubapro/UWATEC aladin 2g e Linux

L'unico modo per trasferire i dati delle immersioni dall'aladin 2g al computer di casa è utilizzando la porta infrarossi di cui è dotato il computer subacqueo.
Su Linux, per prima cosa, occorre acquistare un'adattatore USB/Irda (qui la lista dei device irda compatibiliIrDA and Infrared Devices working with Linux) e configurarlo correttamente.
Io ho acquistato un Belkin F5U235, qui la procedura di installazione: Howto setup an infrared-connection with Belkin F5U235 and Linux, che riporto di seguito con qualche dettaglio in più:

Setting up the Infrared USB Dongle
I assume you have the USB-subsystem up and running.


Step 1: Kernel-Config
The Belkin F5U235 works with a vanilla-kernel at least since kernel 2.6.12 


You need the stir4200.c module, ver. 0.4 works for the SigmaTel STIr4200 chip.
If you are using an older version of the kernel where the module is not included you can download a patch from http://developer.osdl.org/shemminger/stir4200/.


Compile (recommended: as a module)
irda.ko
irda-usb.ko
stir4200.ko


The necessary Parameters in the kernel-.config-file are
CONFIG_IRDA=m
CONFIG_USB_IRDA=m
CONFIG_SIGMATEL_FIR=m


Step 2: Install Necessary Software
Install the following software packages:


for debian users:
install the necessary packages:
apt-get install irda-utils


for non-debian users:
Go to irda.sourceforge.net
Download and compile/install irda-utils.


Step 3: Configure USB-Subsystem
The loading of the module works out-of-the-box.
You only have to bring the interface up
ifconfig irda0 up
and start detection of other infra-red devices
echo -n "1" > /proc/sys/net/irda/discovery


JFTR:
In former versions of irda-utils for this purpose the program irattach had to be used.


Step 4: Infrared Setup
You have to enter the appropriate parameters when installing the irda-utils package.
This is the contents of the file /etc/default/irda-utils (this is Debian, the location of such a config-file depends on your distribution).


ENABLE="true"
DISCOVERY="true"
DEVICE="irda0"
DONGLE="none"
SETSERIAL=""


Now you can connect to another device via infrared and the device /dev/ircomm0. Fire up any terminal program like minicom to test and play.


SieFS doesn't work with this IR-adapter (altough it does on the same machine with my serial IR adapter). I can mount the phone but it cannot display any directory contents (after some time I get an Input/output error). Obexftp works.


I cannot tell if FIR-mode works, too, since I don't have a FIR-device to test it. If you can try FIR please send me an e-mail whether it works.


Have fun!


Nel mio caso (utilizzo Linux Mint Isadora) è stato necessario caricare il modulo irda-usb manualmente: modprobe irda-usb
Se tutto è stato configurato correttamente, è sufficiente lanciare ifconfig irda0  per controllare il numero di pacchetti trasmessi oppure con irdadump (da root o con sudo) per un dump dei pacchetti stessi.
Come si vede, avvicinando l'aladin (il computer subacqueo dev'essere molto vicino all'adattatore irda, la presenza di collegamento viene comunque segnalata da una spia che si accende sull'aladin), irdadump lo segnala...

17:26:37.753900 xid:cmd 75755f6b > ffffffff S=6 s=4 (14)
17:26:37.853901 xid:cmd 75755f6b > ffffffff S=6 s=5 (14)
17:26:37.935708 xid:rsp 75755f6b < 0ff79303 S=6 s=5 Uwatec Aladin hint=8000 [ ] (31)
17:26:37.953869 xid:cmd 75755f6b > ffffffff S=6 s=* nadine hint=0400 [ Computer ] (22)
17:26:40.354893 xid:cmd 75755f6b > ffffffff S=6 s=0 (14)
17:26:40.453900 xid:cmd 75755f6b > ffffffff S=6 s=1 (14)
17:26:40.535604 xid:rsp 75755f6b < 0ff79303 S=6 s=1 Uwatec Aladin hint=8000 [ ] (31)
17:26:40.553955 xid:cmd 75755f6b > ffffffff S=6 s=2 (14)
17:26:40.653901 xid:cmd 75755f6b > ffffffff S=6 s=3 (14)
17:26:40.762028 xid:cmd 75755f6b > ffffffff S=6 s=4 (14)

Adesso che la configurazione su Linux è Ok, ho preferito utilizzare il software proprietario SmartTrack fornito con l'aladin (che rilasciano solo per Windows o Mac/OS) installandolo su una macchina virtuale su cui gira Windows7.


Note: al posto di SmartTrack è comunque possibile utilizzare altri software per Linux come JDiveLog, open source logbook scritto in java...                                                             ....Have sub-fun!!

No comments:

Post a Comment