Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 4 months ago

Just to "close-off" this thread (and after some PM correspondence), issue was in iEQ Pro drivers and could have affected all platforms but was only observed on RPi.

Source updated and issue appears fixed (unsure of release schedule for built releases)

Read More...

Ian replied to the topic 'Minor Issue: Mac Kstars/Ekos Often Crashes on Disconnect/Exit' in the forum. 4 months ago

Out of interest, I got a automated e-mail you'd fixed the bug but whenever I click on the commit link I get "Bad commit reference: 4442dc4f665978f073c00b5df32c1faa3f2f4c8b" response. But I don't fully understand how the system works or where the source code is held.

Just personal interest - thought I'd have a look at the change made; so not an important question.

Read More...

Ian replied to the topic 'SaySafari Problem "Internal Client Not Connected" Error' in the forum. 4 months ago

Sorted. Unsure of underlying cause and investigated at same time as another issue so cause/resolution uncertain. Possibly related to SkySafari Active Devices>Telescope setting - so if others have the sae issue make sure the SkySafari Active Devices>Telescope is set to match the telescope driver in use (and restart the driver if you need to change it).

Read More...

Ian replied to the topic 'Minor Issue: Mac Kstars/Ekos Often Crashes on Disconnect/Exit' in the forum. 4 months ago
Ian created a new topic ' Minor Issue: Mac Kstars/Ekos Often Crashes on Disconnect/Exit' in the forum. 4 months ago

Minor as it happens when you've already finished using it and closing things down but I'm seeing a lot of crashes of KStars/Ekos when I disconnect/stop the remote InidServer or when I exit Kstars.

They are generally a EXC_BAD_ACCESS (SIGSEGV). I have crash logs if they are useful to anybody who might know how to investigate. A bit long to post in the thread but let me know if somebody wants some.

But it's a minor issue as when you disconnect/Stop Indi/exit KStars you are normally closing things down anyway so it does not really affect you.

Read More...

Ian is friends with Jasem Mutlaq

Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 4 months ago

Had a thought though no time to test it and I'm a bit rusty on some C/C++ lib functions but, strncpy where source is longer than the max chars to copy will not add a null terminator (from my possibly flawed memory). So, at line 1900 & 1901 in ieqprodriver.cpp (in function bool get_ieqpro_coords(int fd, double *ra, double *dec) where the text response from the mount is decoded, for both

strncpy(dec_str, response, 9);
strncpy(ra_str, response+9, 8);

int ieqDEC = atoi(dec_str);
int ieqRA  = atoi(ra_str);

where the driver responds "+321587041187540#” (response) (fixed format starting +, ending #)

the destination strings will not be null terminated so what the then immediately following atoi(dec_str); and atoi(ra_str); return will depend on what happened to be in the memory (or on the stack) allocated to dec_str and ra_str.
e.g. suppose lying in the free stack was qwerty123456789\0 in the area that then happens to get used as dec_str; then the strncpy(dec_str, response, 9); copies char 0-8 from +321587041187540# (the string returned from the iEQ) which would make dec_str[]=“+32158704456789\0” which would not be the correct vale (it should be dec_str=“+32158704”; but the previous data lying around and without a null string terminator being added by strncpy …

But the above is based on my probably flawed memory, but it would explain the inconsistent behaviour with different builds and actually could also be an issue on any systems (though I didn’t see it on my Mac, a lot would depend on what the application startup does initialising memory/stack and what happens to be on the stack) and it has just happened to emerge on the RPi and might explain why I initially saw the issue on the Dec and after building 1.4.1 say it on the RA.

Quite busy at the moment but if you think this might be the issue let me know and I’ll test a.s.a.p.

Read More...

Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 5 months ago

Fine, only thing is my internet speed Down 7,645 Kbps, Up 1,103 Kbps (called UK ADSL!). Let me know if the speed will be practical and if you want me to install TeamViewer (I've no experience of TeamViewer).

Unsure of current status but I seem to remember RPi's were mostly 32 bit (64 bit capable but OS's only 32 bit) so, if that is the case might it be a 32/64 bit issue ?

I checked the messages from the iEQ (decoded the position manually) and that looks good. Looked through the iEQ source decoding the position and that looks good though tracing the code back through the processing of that position and I get a bit lost without knowing the architecture.

Tested iEQ5 Pro directly connected to my Mac (Mac KStars version) and it's fine - so something about the RPi.

Read More...

Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 5 months ago

Managed a re-build of the basic Indilib (i.e. I've had to remove the SkySafari middleware from my profile as I've not re-built that).

Results are different but not right.
(Sorry about the big pics but they explain better than my text would)
Start at Polaris



Using Kstars, right click on Kocab and select slew (to it) and Kstars moves telescope cursor almost exactly in the wrong direction


Details after slew to Kocab completed


So this time it's the RA that is wrong.

Interestingly I then slewed back to Polaris (right click on Polaris in Kstars and select iEQ45 Pro->Slew) and Kstars shows the telescope crosshairs in the correct position but again, RA wrong.


I'm confident it's the new version as I checked the indiserver in /usr/bin (date and time) before I started, then checked again after re-bulid and

as well as it took me some time to get it to start (because I eventually established I had not re-built the SaySafari middle ware/driver and so that was an old version yet was being started by my profile - until I removed it and then all started fine).

Testing profile is iEQ45, CCD Simulator.

I did get a couple of warnings in the build but they were not relevant
/home/phobos/libindi/tools/compiler.c: In function ‘execute’:
/home/phobos/libindi/tools/compiler.c:635:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
         (void) sprintf (err_msg, "Bug! stack has %ld items",
I thought not relevant - human readable message
and
/home/phobos/libindi/drivers/focuser/nfocus.cpp: In member function ‘int NFocus::SendCommand(char*)’:
/home/phobos/libindi/drivers/focuser/nfocus.cpp:269:58: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat=]
    fprintf(stderr, "strlen(rf_cmd) %ld\n", strlen(rf_cmd)) ;
not relevant to me as I'm not using any focuser

Read More...

Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 5 months ago

No idea if it's relevant but on checking something else briefly I noted an additional bad display in the Indi control Panel (related to the same figure)

I notice that this dialog has "Set" options for the RA and Dec. I'm not sure how these might affect things so I've not tried setting them (possibley confusing the issues)? Also if setting them might introduce other inaccuracies elsewhere. And I don't understand have a "set" value would be used by the system.



Read More...

Ian replied to the topic 'SaySafari Problem "Internal Client Not Connected" Error' in the forum. 5 months ago

Tried with iEQ45 Pro and not quite the same but still does not seem to work. With iEQ45 IndiServer reports

2017-07-10T16:22:22: Connected to SkySafari. 
2017-07-10T16:21:56: Device configuration applied. 
2017-07-10T16:21:56: Loading device configuration... 
2017-07-10T16:21:56: SkySafari Server is running. Connect the App now to this machine using SkySafari LX200 driver.
And then after a short time SkySafari reports


Read More...

Ian replied to the topic 'SaySafari Problem "Internal Client Not Connected" Error' in the forum. 5 months ago

I did try iEQ45 Pro when "fishing around" trying everything (as well as just iEQ). I'll try again (wont be until tomorrow).

Read More...

Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 5 months ago

That might be stretching my technical abilities. Done a lot of C/C++ but all Windows/Mac in relevant SDKs (not much command line stuff and none Linux beyond copying commands to load/install). Not even sure what tools are included (it's UbuntuMate RPi not Raspbian).

Was the issue you saw with an iEQ45 Pro mount ?

Read More...

Ian created a new topic ' Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 5 months ago

I'm getting some really daft figures and displays in my Kstars/Ekos:
Config: Mac Kstars/Ekos talking to IndiServer on RPI3 driving iEQ45 Pro mount.

Bsed in UK, used KStars to slew to Polaris and is sent the mount to point in the right direction and Indi Control Panel shows

2017-07-10T15:17:27: Slew complete, tracking... 
2017-07-10T15:17:18: Slewing to RA:  2:53:43 - DEC: 89:19:57

Yet Kstars shows the telescope pointing below the horizon (see attached screen capture), the Ekos panel shows a declination of 5965 deg and AL a bit wrong (see attached screen shot)

Sorry to be a nuisance with all there questions (guess I've just got to find the right button to press)

n.b. I've posted t this section as, if I try using Kstars/Ekon version on Ubuntu I get the same results)





Read More...

Ian created a new topic ' SaySafari Problem "Internal Client Not Connected" Error' in the forum. 5 months ago

Having a problem getting the SkySafari middleware to work when my IndiServer is connected to a real mount. Everything works well when running simulators (local IndiServer and Remote server on RPi). But when I run to real connected hardware I keep getting "Internal client is not connected! Restart driver and try again."

I've changed the "Active Devices" telescope from the default (to EQMod Mount and even tried iEQ45 Pro (the mount I have connected), saving config and restarting everything between tries but I always get this message.

Kstars will slew the mount fine so I know the RPi/Indi Server is talking to the mount ok

Config: Kstars/Ekos on Mac, InidServer on RPi3 under UbuntuMate, SkySafari on Mac & iPhone (same from both)


Full log (with all debugging enabled)
2017-07-10T14:34:45: Internal client is not connected! Restart driver and try again. 
2017-07-10T14:34:45: CMD <> 
2017-07-10T14:34:45: Internal client is not connected! Restart driver and try again. 
2017-07-10T14:34:45: CMD <GD> 
2017-07-10T14:34:45: Internal client is not connected! Restart driver and try again. 
2017-07-10T14:34:45: CMD <RS> 
2017-07-10T14:34:42: Internal client is not connected! Restart driver and try again. 
2017-07-10T14:34:42: CMD <> 
2017-07-10T14:34:42: Internal client is not connected! Restart driver and try again. 
2017-07-10T14:34:42: CMD <GR> 
2017-07-10T14:34:42: Connected to SkySafari. 
2017-07-10T14:34:38: Toggle Logging Level -- Driver Debug 
2017-07-10T14:34:34: Toggle Debug Level -- Driver Debug 
2017-07-10T14:34:28: Debug is enabled. 
2017-07-10T14:34:24: Device configuration applied. 
2017-07-10T14:34:24: Loading device configuration... 
2017-07-10T14:34:24: SkySafari Server is running. Connect the App now to this machine using SkySafari LX200 driver

I'm sure it's my finger trouble. Had a look through the source code and can see it the error and see it means it's not connected but don't understand enough about the design to get much further.

Many thanks

Read More...

Ian replied to the topic 'Daft Question re: Ekos & INDI Web Manager' in the forum. 5 months ago

Is starting a remote Indi Server now handled through Ekos rather than through a web browser (using Indi Web Manager on the remote) together with the driver profiles to be started ?

Read More...

Ian created a new topic ' Daft Question re: Ekos & INDI Web Manager' in the forum. 5 months ago

(And to make it worse I have this nagging feeling I've raised the same issue ages ago but had a dig around and can't find anything)

I'm returning to using Indi (as there is now a Mac version of Kstars/Ekos) with my headless RPi and all going well. Remote server startup was previously done with INDI Web Manager (from browser to <host>:8624). But now looking in Ekos it looks like Ekos uses Indi Web Manager to start remote Indi servers. I'm still at the point of using the simulators so thought easiest to check with those more knowledgable.

Read More...

Ian replied to the topic 'Astroberry Server' in the forum. 5 months ago

Excellent idea. Downloaded and tried and a few issues I found (meant I could not stick with it)

Seems to be some monitor issue. Using TV connected to HDMI port. The startup/console texts are assuming a wider display i.e. left part of text is off left edge of screen and once start-up complete the GUI display area is larger than the display screen (i.e. top of display is off top of screen and left truncated off left edge - like a need a bigger display screen). If I load a new Ubuntu Mate installation on the same hardware all is fine display wise (i.e. it's an Astroberry issue rather than an Ubuntu Mate issue); also same hardware works fine with Raspbian. If I struggle with the mouse off-screen I can see the bottom parts of the menu and can get into Preferences/Displays and see that it has an "unrecognised monitor" and I can't change any of the settings; detect displays does nothing.

Related to the display, quality is bad. Lots of ghosting. Something Ubuntu Mate new install does not seem to suffer from (I guess it's down to the monitor again)

Unable to get client Wi-Fi to work. WLAN configuration seems to have no option to enter a network name (just a square'ish blank box, no input control, and just asks for a network password and entering any of the passwords just rejects (i.e. astroberry - rejected, network password - rejected). Tried creating a client network on wlan0 and had to ifconfig wlan0 up to get anything but could not get a connection going (used wlan0 as it looked like hostapd was on wlan1).

If you need more details, do ask (though I've re-loaded Ubuntu Mate onto my SD card to progress with that one for the moment).

Read More...

Ian created a new topic ' SkySafari support - More General Than That' in the forum. 5 months ago

The SkiSafari support is fantastic, except I don't use SkySafari much. But it is broader broader than that. I configured the same (equivalent) configurations into TheSkyX (Software Bisque) (Serious) and it worked using the simulator configuration (Kstars on local Indi server). Obviously TheSkyX only works for telescope slewing (not all of it's imaging bits) and seems quite slow at connecting - TheSky continues to report "Connecting" for ages after Ekos SkySafari module logs show "connected" message). Ekos SkySafari module logs reported SkiSafari.

Astroplanner does not - or at least I can't get it to work. It gets as far as Ekos logs reporting "SkySafari connected" but then Astroplanner must be trying to do something more and the connection attempt fails.

Only been playing around with simulator and all on one machine (i.e. not updated my RPi yet)

Initial thought - create a list of planetarium/star chart packages it works with (people have tried) and, if enough different sky chart apps, rename the "module" to reflect its broader support ?

Read More...

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!