Ian created a new topic ' macOS/OS X Kstars/IndiLib Download' in the forum. 3 weeks ago

On the downloads page(s) for Mac, the links for the download seem not to be working. The download buttons seem to behave differently in different browsers. In Safari clicking on "Download" downloads a file called kstars-latest.dmg.html (zero bytes in size). In Firefox, same Download buttons download a zero sized kstars-latest.dmg.

Tried from < indilib.org/download/osx.html > as well as < indilib.org/download/osx/download/4-mac-osx/12-kstars.html >

Read More...

Thomas thanked Ian in topic Raspberry Pi 3 Setup Script 3 months ago
Ian replied to the topic 'Raspberry Pi 3 Setup Script' in the forum. 3 months ago

colgs3b wrote: starhopper,
there is a Utilities folder on the Desktop that contains scripts for changing the network settings.
"Start Ekos Field Wifi" will switch the Wifi into access point mode.

In the field, I am usually using my iPad Mini to control my RPi, so I don't have a laptop to make a direct connection and switch the RPi to adhoc. The usb key idea is interesting, so long as you have a free usb port.

Similar to my own reasons for wanting e.g. USB (or something other than direct connection) to switch to ad-hoc mode when no infrastructure available.

Been investigating further and whilst beyond my Linux knowledge, I did wonder if "Autorun" might be a way to do this. i.e. setup a USB drive with the "Switch to Field/ad-hoc mode" script configured as Autorun (and configure the Linux to autorun without requiring user confirmation).

So you'd fit the USB drive, startup the RPi, the USB would do it's stuff (swtich to ad-hoc mode), then remove the USB drive and connect your astro gear (so USB drive would only need to be fitted at startup.

Based my revised thoughts on
https://askubuntu.com/questions/642511/how-to-autorun-files-and-scripts-in-ubuntu-when-inserting-a-usb-stick-like-autor
and
https://askubuntu.com/questions/284224/autorun-a-script-after-i-plugged-or-unplugged-a-usb-device

But I must repeat, I'm beyond my very limited knowledge of Linux.

Read More...

Ian replied to the topic 'Raspberry Pi 3 Setup Script' in the forum. 3 months ago

rlancaste wrote: Psamathe,

Yes this is definitely a possible thing to do, but then you also run the risk of your system potentially deciding to start its own wifi up when you don't want it to do so. What I tend to do is I have the wifi networks saved from all the different places I usually image so that it automatically connects to them. But if I am at a new place or want to use an ad hoc network, I plug in my ethernet cord between the pi and the laptop and use VNC to either set up or change networks.

What about using a USB drive as a "key" - if the drive contains a specific file, specific location it starts on ad-hoc, otherwise starts normal client mode. That way a small cheap USB drive effectively becomes the switch meaning no cable, no keyboard, etc.just turn up (away from any Wi-Fi networks, plug in the USB drive and power on ...

Read More...

Ian replied to the topic 'Raspberry Pi 3 Setup Script' in the forum. 3 months ago

colgs3b wrote: I took my RPi out to my in-laws place, and then I realized I had no way of activating the AP script. Good thing it was cloudy. I have been considering making a Pi shield/Hat that has a button on it to run the AP script. Maybe a toggle. This would be a nice addition for the Stellarmate.

(Having been a software dev (C/C++) but knowing virtually nothing about Linux ...) Is there a means for a background process/script/app that could be running/run automatically on startup which sets the Wi-Fi to client mode, checked for a connection and if no connection after a time-out (e.g. 60 secs) automatically switched to ad-hoc mode (i.e. kicked-off the existing script). Maybe a bit of config or customisation to spec a timeout and whether 2.4 or 5 script for switching to ad-hoc mode.

But it would get rid of the need for a direct connection/display&keyboard when using the setup away from your existing configured Wi-Fi networks (or a custome h/w Hat).

Just a thought - but something beyond my own abilities to develop.

Read More...

Ian replied to the topic 'Daft RA/Dec/Position Info In Kstars/Ekos' in the forum. 9 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. 9 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. 9 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. 9 months ago
Ian created a new topic ' Minor Issue: Mac Kstars/Ekos Often Crashes on Disconnect/Exit' in the forum. 9 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. 9 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. 9 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. 9 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. 10 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. 10 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. 10 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. 10 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. 10 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...

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!