Jump to content


Photo

iAstroHub: Tablet astrophotography comes true!

  • Please log in to reply
336 replies to this topic

#326 fphg

fphg

    Lift Off

  • -----
  • Posts: 2
  • Joined: 14 Oct 2014

Posted 14 October 2014 - 03:23 PM

Hi

I just joined cloudy nights to answer ggkids.

 

On iAstrohub's side you can disable router and dns advertising , commenting out options 3 and 6 in /etc/dnsmasq.conf. Here's mine :

...
interface=eth0
dhcp-range=10.0.0.2,10.0.0.2,255.255.255.0,12h
#option-dhcp=3
#option-dhcp=6

This way you can establish wifi connection from your laptop to iah without losing your (wired) internet connection. option 3 and 6 aren't particulary useful on the device.

 

Furthermore, you can run an http proxy on your laptop and perform web queries from iah. With squid running on my laptop connected to both LAN and iah :

export http_proxy=http://10.0.0.2:3128/
root@rk3066dev:/etc# export http_proxy=http://10.0.0.2:3128/
root@rk3066dev:/etc# wget http://www.google.fr/
--2014-04-22 00:14:47--  http://www.google.fr/
Connecting to 10.0.0.2:3128... connected
....
2014-04-22 00:14:48 (464 KB/s) - `index.html' saved [19182]
root@rk3066dev:/etc#

Edited by fphg, 14 October 2014 - 03:36 PM.


#327 ggkids

ggkids

    Lift Off

  • -----
  • Posts: 7
  • Joined: 11 Mar 2014
  • Loc: Italy, Perugia

Posted 15 October 2014 - 05:18 AM

Hello fphg,

 thanks for your reply but I am still not sure I explained my scenario very well or maybe I did not undestand your reply at all.

What I should want to reach is iah to work both wifi and ethernet connection plugging a usb-ethernet adapter to mk808B. In case of eth connection the IP address should be assigned from the LAN DHCP server to iah.

 

Is your reply compliant with this?

 

Thanks in advance,

 G.



#328 fphg

fphg

    Lift Off

  • -----
  • Posts: 2
  • Joined: 14 Oct 2014

Posted 15 October 2014 - 11:12 AM

ggkids,

Sorry if I misunderstood your scenario. Depends on the goal. Mine was :

 

- administer iah from my laptop through ssh

- & keep internet connection usable on the laptop

- & being able to download files from iah

 

It doesn't address remote connections from the LAN to iah.

 

If the kernel supports your ethernet device and /etc/network/interfaces allows hotplug and dhcp for this iface, both interfaces should work simultaneously and you have a nice access point for free. You'll also have to make the daemons listen on all interfaces. Sorry can't test, I do not own such a device.



#329 anat

anat

    Viking 1

  • -----
  • Posts: 699
  • Joined: 03 Jun 2004

Posted 15 October 2014 - 08:29 PM

fphg, 

 

Thanks for your tips :)

 

 

ggkids,

 

Please follow these steps:

1) Remove or comment this line

echo " " > /etc/udev/rules.d/70-persistent-net.rules

in /etc/rc.local

 

2) Reboot your device. 

 

3) Then connect an Asix-AX88772-based usb-ethernet adapter to a usb port. 

 

4) Run this command to check

cat /etc/udev/rules.d/70-persistent-net.rules

It should show that eth0 is assigned to the wifi chip and eth1 is assigned to the ethernet adapter.

 

# net device ()
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:22:f4:66:79:90", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# USB device 0x0b95:0x772a (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:c6:f0:10:47", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 

5) run

ifconfig

you should see the ip address is assigned to eth1. 

 

Now you can connect to MK808b via wifi and LAN. Let me know the result.

 

Best regards,

Anat


Edited by anat, 15 October 2014 - 08:32 PM.


#330 tklemmer

tklemmer

    Lift Off

  • -----
  • Posts: 2
  • Joined: 09 Sep 2014

Posted 16 October 2014 - 02:36 AM

Hi Anat,

 

first of, thank you very much for your great work and the continous support with iAstrohub.

Its an amazing piece of software and I'm looking forward to using it.

 

I have an SW EQ 6 and I want to guide with a webcam (a modded SPC 9000) and (since the webcam doesn't have a guideport)

a direkt connection from the MK80 to the mount.

Is this possible with the current version? Could you point me into a direction where to start?

 

kind regards

Thoms.



#331 Mischel68

Mischel68

    Lift Off

  • -----
  • Posts: 1
  • Joined: 18 Aug 2014

Posted 16 October 2014 - 02:55 AM

Hi Anat

 

Great Job. The iAstrohub works fine.

 

I like to connect my cx919 as wifi client to my home Network.

 

Can i cange the IP Adress of the Hub ?

 

regards

Mischel

 



#332 colgs3b

colgs3b

    Lift Off

  • -----
  • Posts: 9
  • Joined: 13 Dec 2013
  • Loc: Zionsville, IN

Posted 17 October 2014 - 05:43 AM

tklemmer,

to use a webcam for tracking, you will either need a GPUSB or get a ARM device that has exposed GPIO.  For the latter, I have a Beaglebone Black working. It takes some Linux and electronics skills.



#333 tklemmer

tklemmer

    Lift Off

  • -----
  • Posts: 2
  • Joined: 09 Sep 2014

Posted 17 October 2014 - 07:09 AM

colgs3b,

 

I saw a tutorial about a bbb and iAstrohub on my preliminary research... I have a RasPi but which has GPIOS and UART but I'm getting a GPUSB adapter for now... 

One issue though is that I don't get an image in linguider from my webcam. Do I need to install any additional drivers for the SPC 900 with the standard image of iAstrohub?

 

thanks for the help,

Thomas



#334 anat

anat

    Viking 1

  • -----
  • Posts: 699
  • Joined: 03 Jun 2004

Posted 17 October 2014 - 12:00 PM

Hi Thomas.

 

The UVC driver seems to have a problem in the device. From my test, GPUSB is supported but not stable on the device. So, the combination is not recommended at the moment.  If you can find a used Orion starshoot autoguider or QHY5, it would be great.

 

Best regards,

Anat



#335 anat

anat

    Viking 1

  • -----
  • Posts: 699
  • Joined: 03 Jun 2004

Posted 17 October 2014 - 12:11 PM

Hi Anat

 

Great Job. The iAstrohub works fine.

 

I like to connect my cx919 as wifi client to my home Network.

 

Can i cange the IP Adress of the Hub ?

 

regards

Mischel

 

 

Please comment these line in /etc/rc.local

sudo ifconfig eth0 down
sudo ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up
sudo service hostapd restart
sudo service dnsmasq restart

 

 

sudo nano /etc/default/hostapd
******* COMMENT THIS LINE *******
DAEMON_CONF="/etc/hostapd/hostapd.conf"

 

sudo nano /etc/dnsmasq.conf
******* COMMENT THESE LINES *******
interface=eth0
dhcp-range=10.0.0.2,10.0.0.5,255.255.255.0,12h

 

 

 

Then there are various ways to connect to your home router. This is one example:  (iAstroHub is SSID, and 1234512345123 is the password)

 

wpa_passphrase iAstroHub 1234512345123

 

 

nano /etc/network/interfaces
*************************************
auto eth0
iface eth0 inet dhcp
    wpa-ssid iAstroHub
    wpa-psk b4efa463fa061a9de685119b47c7a51afc4b7761fecb7bcc81d4907027c1889f



#336 DetlefL

DetlefL

    Lift Off

  • -----
  • Posts: 2
  • Joined: 21 Feb 2014

Posted 19 October 2014 - 02:01 PM

Hi Anat,

 

below my first test shot (2h exposure time in sum) with iAstroHub, guiding is not yet perfect (I have to play with the parameters of LinGuider) but was acceptable for the first try. Guiding commands from LinGuider went thru ftdi interface, shutter control thru a pl2303. Connection to SkySafari4 is actually not stable, neither with pl2303 nor ftdi (MK808 needs reboot after connection breakdown). Will need some cloudy nights to figure out the problem ...

 

Thanks again for your work so far!

 

Regards,

Detlef

 

 

Attached Files



#337 craigg

craigg

    Lift Off

  • -----
  • Posts: 7
  • Joined: 30 Jan 2013

Posted Today, 09:52 AM

Something to be wary of for those using FTDI chips:

 

http://www.theregist...ps_into_bricks/

 

 








Cloudy Nights LLC
Cloudy Nights Sponsor: Astronomics