IAstroHub

From Blue-IT.org Wiki

iAstroHub on Raspberry Pi 3

iAstroHub is a client/server based astronomy software-suite for the raspberry pi 3 to control a telescope mount and other tools via indi. Also read the main thread at cloudynights.com.

Currently I am using iAstroHub 3.0.7 EqMod version. Download on first link above - in france: "telécharger" means "download".

Copy to SD-Card

  1. Download the image from the website above or from the link in the thread above and unpack the file.
  2. Open a terminal !!!
  3. Insert an empty 16GB SD-card into your sd-card reader
  4. In the terminal enter
dmesg | grep sd
> [177813.817311] sd 0:0:0:0: [sdx] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
> [177813.818599] sd 0:0:0:0: [sdx] Write Protect is on
> [177813.818602] sd 0:0:0:0: [sdx] Mode Sense: 03 00 80 00
> [177813.829475]  sdx: sdx1

After this you know that /dev/sdx is your sd-card! In reality this will be something like sdb, sdc, sdd or sde depending how many other disk you system has. Our partition has also one partition named sdx1 which is normal because all sdcard come preconfigured with on big partition. But is of no interest because we will erase the complete content of the disk.

  1. Control everything with cfdisk (terminal program) or gparted (graphical program).
  2. Now we will copy the image of iAstroHub onto the scdard. The given device will be overwritten completely! So be sure and check twice you entered the devicename correct! Consider also: this process takes time.
cd /path/to/unzipped/image
dd bs=1M if=iAH3_EQmod_XXXXXX.img of=/dev/sdx # TAKES TIME !!!

Problems detecting modem

Test :

sudo ln -s /dev/ttyACM0 /dev/ttyUSB0
sudo ln -s /dev/ttyACM1 /dev/ttyUSB1
sudo ln -s /dev/ttyACM2 /dev/ttyUSB2
sudo ln -s /dev/ttyACM3 /dev/ttyUSB3
sudo ln -s /dev/ttyACM4 /dev/ttyUSB4
ls -la /dev/ttyU*

Make permanent:

vim /etc/rc.local
ln -s /dev/ttyACM0 /dev/ttyUSB0
ln -s /dev/ttyACM1 /dev/ttyUSB1
ln -s /dev/ttyACM2 /dev/ttyUSB2
ln -s /dev/ttyACM3 /dev/ttyUSB3
ln -s /dev/ttyACM4 /dev/ttyUSB4

Another approach:

vim 10-astroEQ.rules
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="000a", ENV{ID_MM_DEVICE_IGNORE}="1"

sudo service udev restart


That's it. Place the sdcard into the rspberry and boot. Enjoy.