Zoltán Belső replied to the topic 'Cannot Connect to Astroberry VAP' in the forum. 2 weeks ago

That's why I've said that no easy solution.
Note, that Astroberry is just a package over the Raspbian distribution, and wpa supplicant is part of Raspbian, not Astroberry.
The best we can hope that Raspbian will be upgraded soon.

Read More...

Zoltán Belső replied to the topic 'Cannot Connect to Astroberry VAP' in the forum. 2 weeks ago

In the last answer it says compiling wpa suplicant V2.9 from source helped.
So I'm afraid no easy solution here.

Read More...

Zoltán Belső replied to the topic 'Cannot Connect to Astroberry VAP' in the forum. 2 weeks ago

I've found this:
raspberrypi.stackexchange.com/questions/...o-raspi-access-point

According to that it is a problem in the WPA Supplicant code on the RPI.

Read More...

Zoltán Belső replied to the topic 'Cannot Connect to Astroberry VAP' in the forum. 3 weeks ago

I run into the same problem. I cannot join the WiFi from my Samsung Note 8. My windows PC and an old Asus Android tablet can connect, but that Asus tablet have such an old Android version that I cannot install Kstars Lite on it.

Read More...

Zoltán Belső replied to the topic 'indi_skywatcherAltAzMount shown in wrong position' in the forum. 3 weeks ago

Since I'm new to indi I have no previous config files, I have a fresh installation both on the PC and the Raspberry. I don't really understand how the different components are related, I just try to put the peaces together now, so I have not fiddled with the settings of the Alingment subsystem, at least not intentionally. Telling the truth I thought the alignment subsystem is off initially and it will turn on automatically when I do some sync on stars.

Anyway, I've checked, on the PC the <oneSwitch name="ALIGNMENT SUBSYSTEM ACTIVE"> is On both in .indi/Skywatcher\ Alt-Az_config.xml.default and .indi/Skywatcher\ Alt-Az_config.xml, but it is Off in .indi/Skywatcher\ Alt-Az_config.xml on the RPI.

Maybe there is or is not something in the config file that causes the crash on my PC but prevents on the RPI. That may explain why the AltAz driver does crash for Kecsap too, but the AltAzWedge does not: He use the Wedge driver routinely so He has a working config to it. But He does not use the orig AltAz driver so He tried it now with the default config.

QtCreator is a good idea. I use eclipse for C/C++ development, so I tried that here too, but I did not managed to have a working installation on the RPI, and even on the PC it did not work for me for debugging the forked process. So I did all the debugging using command line gdb.

Read More...

Zoltán Belső replied to the topic 'indi_skywatcherAltAzMount shown in wrong position' in the forum. 3 weeks ago

After quite a lot of debugging I've found some solutions.

I've found that the crash of both the AltAzMount and the AltAzWedge driver is due to null pointer dereference in indidriver.c:IUUpdateSwitch() called from the driver's ISNewSwitch() method.
I did not find the root cause of the problem, and I have no clue why does happen on the PC but does not happen on the Raspberry, but I was able to mitigate it by adding some null pointer check to the code.
I have made a report in the issue tracker of the indi github about my finding.

After that both the AltAzMount and the AltAz Wedge driver able to connect to the mount using serial cable.
The next surprise was that on the PC the AltAzMount driver did not show the problem this topic is about: namely that in Kstars the mount position is shown 12H off RA coordinate.

After a lot of debugging I have found that in SkywatcherAPIMount::ReadScopeStatus() method the "if (TransformTelescopeToCelestial())" goes on the True branch on the PC and report the correct RA/DEC coordinates, but goes on the False branch on the Raspberry, and reports bad RA coordinate.
Examinig the MathPluginManagement::TransformTelescopeToCelestial() method I have fount that on the Raspberry AlignmentSubsystemActive was OFF and that's why the method returned False.

So finally I have found that I have to click on the "Alignment Subsystem Active" button on the INDI control panel Alignment tab to turn it on. This way the mount is shown in the correct position.
I still have no clue why was it ON by default on the PC and OFF by default on the Raspberry. I also don't know why alignment-off code branch does not work, and what is the purpose of this failing code branch in the first place.

Read More...

Zoltán Belső replied to the topic 'indi_skywatcherAltAzMount shown in wrong position' in the forum. 1 month ago

Ma végre valami működik ;)

So what is failing:

On PC, Ubuntu 18.04, INDI Library: 1.8.4:
- Both indi_skywatcherAltAzMount and indi_skywatcherAltAzSimple crashes (or better to say: exits) on serial connect. Which is causes Kstars to freeze :(((
- Both indi_skywatcherAltAzMount and indi_skywatcherAltAzSimple fails to connect to the Skywatcher wireless adapter. Does not crash, just 'connection failed'. Wireshark trace shows that there is an attemp to communicate, but the driver does not like the answer of the mount :(

On the Raspberry PI, both with INDI Library: 1.8.3 from the package manager and INDI Library: 1.8.4 from github:
- Both indi_skywatcherAltAzMount and indi_skywatcherAltAzSimple fails to connect to the Skywatcher wireless adapter. Does not crash, just 'connection failed'. Wireshark trace shows that there is an attemp to communicate, but the driver does not like the answer of the mount :(

What is working at least partially:

On the Raspberry PI, both with INDI Library: 1.8.3 from the package manager and INDI Library: 1.8.4 from github:
- Serial cable connects.
- The Wedge driver seems to be shown in the correct position and seems to goto to the correct position. But this was only tested indoors.
- The indi_skywatcherAltAzMount shown 12H off position on the RA coordinate (that is: mirrored to Polaris), but the goto command slews the mount to the correct position. Plate solving does not works due to the solver looks for the solution in a totally wrong place.

- The synscan driver works with both the handcontroller+serial cable and Android synscan app+wireless connection, but the coordinates in Ekos off by about 2°. Sync does not help.
- The eqmod driver works with the WiFi module, fail to connect with the serial cable. Even plate solving works. But it is not really a viable solution with the Virtuoso mount, and totally impossible with the big Dobson mount

By the way, today I got back my Dobson 250 mount from repair, and I'm happy to report that the Wedge driver seems to be working the same way with it as with the Virtuoso mount.

Read More...

Zoltán Belső replied to the topic 'indi_skywatcherAltAzMount shown in wrong position' in the forum. 1 month ago

I have made a gdb trace and a driver debug log for the indi_skywatcherAltAzSimple driver.
On my PC it is crashing on serial connect. That is what in this log files.

On the Raspberry PI I managed to get some success: the indi_skywatcherAltAzSimple is connecting through serial cable, and the scope position seems to be shown in the right position in Kstars. I was only able to test indoors - it is cloudy tonight, but it seems to slew in the correct direction.
The wireless connect fails exactly the same way as the AltAzMount driver. So it seems the two driver behaves exactly the same connectionwise, but the Wedge driver does not have the positioning problem.

File Attachment:

File Name: indi_skywatcherAltAzSimple_222335.log
File Size: 1 KB

File Attachment:

File Name: skywatcherAltAzSimple.gdbout.log
File Size: 5 KB


Read More...

Zoltán Belső replied to the topic 'indi_skywatcherAltAzMount shown in wrong position' in the forum. 1 month ago

I have included the trace for the indi_skywatcherAltAzMount here: indilib.org/forum/mounts/6457-indi-skywa...-fails-to-start.html
Although it is not much help, since the driver does not crash with an exception gdb can catch, but exits silently instead. Then indiserver tries to restart it futilely.

As far as I remember yesterday evening, indi_skywatcherAltAzSimple does the same, but I will try make a traceback for that too later.

Read More...

Zoltán Belső replied to the topic 'indi_skywatcherAltAzMount shown in wrong position' in the forum. 1 month ago

Hello,
Thanks for answering me!

On my laptop linux the indi_skywatcherAltAzMount driver crashes immediately when the serial connection is established at my side too. It has INDI Library: 1.8.4. I have opened a topic about it first here: indilib.org/forum/mounts/6457-indi-skywa...-fails-to-start.html
I also have a Raspberry PI, on that I have INDI Library: 1.8.3 which does not crash on serial connection, but has this strange "mirrored position" problem.
I have also tried to connect to my mount through WiFi using the SkyWatcher WiFi dongle, but that fails to connect. I have opened a topic about that too: indilib.org/forum/mounts/6467-indi-skywa...andshake-failed.html
It seems to me that the driver tries to handle the wireless connection since I see a good attempt to handshake, but somehow it does not go well.

I have also cloned out and compiled the github indi code on the PI, I got the same result.

I have also tried the indi_skywatcherAltAzSimple but it also crashes on serial connect, this time it does also on the PI, and the fresh github version too. Trying to connect the indi_skywatcherAltAzSimple wireless I got the same handshake failure.

It is rather hard for a newcomer to decide which driver to use. Since the indi_skywatcherAltAzMount has at least a documentation page with basic setup instruction, and I had at least partial success with it, it sounded reasonable for me to suppose that this is the up-to-date one.
I have found nothing about the indi_skywatcherAltAzSimple driver and I got nothing but crash.

I have found a one and a half year old thread about successfully using the AZ GTi mount with the eqmod driver, so I have tried that too. It is kinda works, but only wireless. The eqmod driver does not handle the connected RX-TX line on the Alt-Az mounts, and goes panic hearing back its own chatter....
But it requires to setup the mount in equatorial position which does not work so well with the Virtuoso mount.

I also have a 250 mm Dobsonian mount, my real goal is to use that with INDI. For that it is absolutely impossible to use it in equatorial position, so I need an AltAz solution.

I have also tried the synscan driver, which again, kinda works, but it has some pointing inaccuracy problem. I can see the mount's coordinates on the INDI control panel and also on the EKOS control panel. Strangely enough the two are differing. Not much but about 2 degrees. From here nothing is really works. KStars shows the mount position in the correct place, but when I try to center on the mount position it centers somewhat offset. When I ask to goto to a position, it goes near but again the same offset. It is not the inaccuracy of the mount or some kind of poor alignment, the mount position marker in Kstars is quite accurately shows the mount's actual position. I have also opened a thread about that: indilib.org/forum/mounts/6444-az-synscan...-explain-please.html
I still do not understand what is the difference between the INDI Control panel and the EKOS control panel and how can they show different coordinates? I would think that EKOS gets the coordinates from INDI so it should copy that precisely. Maybe it is some numerical error during calculating back ad force between RA/DEC and ALT/AZ coordiantes?

Zoltán

Read More...

Zoltán Belső created a new topic ' indi_skywatcherAltAzMount shown in wrong position' in the forum. 2 months ago

I'm trying to make a setup using a Raspberry PI and a Skywatcher Virtuoso mount connected through a serial cable using indi_skywatcherAltAzMount.
I set the scope pointing to Polaris and the driver connects to the mount successfully. I can unpark the mount and move it through Ekos Mount Control panel.
When I try to do a Goto to a star in KStars I see the mount indicator moving in a totally wrong direction.
Most interestingly the mount itself moves in the right direction and settles more or less pointing to the requested star, but in Kstars it is indicated on the opposite side of Polaris, exactly in the centrally symmetric position to Polaris.
Checking the coordinates on the Ekos Control panel and Indi control panel as well I found that:
- Declination coordinate is correct
- Right ascension coordinate is off by 12 hours

What can cause this?
Thanks!

INDI Library: 1.8.3
Code v1.8.3-1-geb98b659. Protocol 1.7.

Read More...

Zoltán Belső created a new topic ' indi_skywatcherAltAzMount wireless handshake failed' in the forum. 2 months ago

I try to make a wireless connection between a Raspberry PI and a Skywatcher Virtuoso mount through a WiFi dongle on the mount.
I connect the RP to the dongle WiFi, it gets an IP address 192.168.4.3 as expected.
I'm using indi_skywatcherAltAzMount and set it up as:
- Connection mode: Ethernet
- Server address: 192.168.4.1
- Server Port: 11880
- Connection type: UDP
When I click Connect, I got this in the log:

INFO 907.548098 sec : Connecting to 192.168.4.1@11880 ...
DEBUG 907.548444 sec : Connection successful, attempting handshake...
DEBUG 927.592244 sec : Handshake failed.

I've traced the WiFi communication with Wireshark, and see 3 packets:
- 1. RP -> mount, 1 byte len: ":", no answer
- 2. RP -> mount, 4 byte len: ":e1^D"
- 3. mount -> RP, 8 byte len: "=0210A1^D"

This communication seems to be pretty normal to me, similar happens when the Synscan app communicates with the mount. Still the driver says after a relative long timeout: Handshake failed.
Any idea?
Thanks.

Read More...