×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

DIY motorised roll-off observatory roof - what INDI driver?

  • Posts: 311
  • Thank you received: 42
It might well have to do with building on a system that does not have KStars installed. The last part is the install which includes making the driver available in the Ekos profile.

I went through the INSTALL directions on a somewhat clean machine, but it was a odroid rather than a Rpi. I did encounter a problem since last used.
At the start referring to the external indi howto web page. It is missing the clone of the 3rdparty drivers. So now
there should be a line "Section 4. Work down to and including the clone of the 3rdparty drivers. No need to do the build." After that it worked through okay.

If you got down to the `sudo make install` which is where you encountered the error. Then instead of that command try simply `make -j4` which will omit the actual install and leave the executable in the local directory.


 
Last edit: 2 years 4 months ago by wotalota. Reason: added info
2 years 4 months ago #77194

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
Thanks Tom
I am not home for a few days.
I will try again when I get back home.
I plan on starting with a new Stellarmate on the RPi.
 
2 years 4 months ago #77206

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
Hello Tom
I have started fresh.
I think I have done a bit better this time.
However I am getting a different error, that seems to be pointing to the CMakeLists.txt file.
I have attached the terminal details and the CMakeOutput.log files.
Thanks 
Edit: I have also added the CMakeLists.txt file
Last edit: 2 years 4 months ago by Krish.
2 years 4 months ago #77284
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 311
  • Thank you received: 42
Krish,We might not have the directory files placed and the defaults set to the expected place.

Before running the cmake command. Check that the following things are true.

libindi-dev is in fact installed.

In the ~/Projects there are 2 directories  that have been populated "indi" and "indi_3rdparty".

In ~Project/indi_3rdparty/indi-rolloffino/ are the files from wotalota github.

Your default directory is ~Project/indi_3rdparty/indi-rolloffino/build

I made some edits to the INSTALL file, not checked in yet, to try and be more explicit. Take a look and see if it helps.

I'm replacing the readme file with one with examples and more detail about the Arduino sketch. Will attach after getting through a first pass. Any suggestions to improve and additions that would help getting started are appreciated.  
Last edit: 2 years 4 months ago by wotalota.
2 years 4 months ago #77309
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
Thanks Tom
I do not see an "indi" directory in the project directory
I may have missed something in the initial indi steps.
Thanks again for your help.
2 years 4 months ago #77311

Please Log in or Create an account to join the conversation.

  • Posts: 311
  • Thank you received: 42
I think in the external directions there is a git clone of indi development files. Check
INSTALL.txt it might have been missing from the original.
2 years 4 months ago #77312

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
Hello Tom & Jasem
I have managed to get there. I can now see RollOffino in Ekos on Stellarmate on my RPi.
@ Tom
I found that a "build" directory was created in the "Projects" when building the Indi portion of the process. I had to use that "build" directory for the cmake of the Indi-rolloffino.
The command had to be: $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rolloffino
Now to get the Arduino and Ekos to play. I think I have a connection but not quite the relay control and sensor inputs yet.
Thanks again for all the help you guys have provided.
2 years 4 months ago #77324

Please Log in or Create an account to join the conversation.

  • Posts: 311
  • Thank you received: 42
That is the same directory that the ../ was supposed to point to. So your tree and default working directory is something different than expected. But make a note of how you got it working for the next time.

Look at the INDI window for the roof driver main tab. It will indicate if it is connected or not. The buttons and status lights will show what switches it has detected as closed. Using the park unpark buttons will try to activate relays.

What code are you running on the Arduino and what kind of roof control do you have or intend to get. Are you presently working using a bench breadboard kind of setup?
Last edit: 2 years 4 months ago by wotalota.
2 years 4 months ago #77332

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
Hello Tom
I do have a connection. I see it in Indi Control panel.
I am using the Arduino with a relay board and sensors connected testing on the bench. 
One relay for open another for close and 2 sensors for open and close.
I am using the rolloffino.standard file for the Arduino. That seems the closes match for what I have for testing.
I did manage to see some action on the Arduino today. I set the sensors as expected and Indi sees it as well.
If I hit the open or closed buttons in Indi I see the corresponding relay come on but then the Indi driver Rolloffino crashes and a few seconds later Kstars crashes.
I have attached a zipped folder with log files.

@ Jasem
You indicated that I should be able to use the same process from the HOWTO: Building latest libindi and Ekos on a macOS.
I tried that and get a message: "sudo: apt-get: command not found".
Do you perhaps know what I may be  doing wrong.

I have tried 
 
2 years 4 months ago #77377
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 311
  • Thank you received: 42
Krish,
On the MacOS. There is a good chance that the driver code will work on the Mac, but it will need to be built and installed according to Mac procedures. The present directions in the INSTALL file did not include any thought given to how that is done. For example the apt-get is a Ubuntu specific command. I did get a Mac but since you said it was the RPI4 you were going to use I have not done anything with it. If you intend to run a Mac in the observatory I can spend more time learning how to use it.

The files you posted appear to be the rolloff debug logs or fragments of, just showing the commands and results, most ending in timeouts. Was one of them in particular associated with the crash?
Do you have the KStars log associated with the crash? Did Kstars put up a message indicating the driver had crashed?
The only time I have had the driver crash was when the version of indi / Kstars it was built against was different from the one installed. Although that always happened when starting. If the version you built against in the ~/Projects tree was the one that was cloned into ~/Projects/indi then it would have been the nightly build.
The Kstars and indi versions running for the testing should be from a nightly or the current stable release since I have been using the driver on those and perhaps the previous release without a rebuild.

[ Edit ] Working with a breadboard you might be using the command buttons and receiving response with much different patterns and frequency than the normal open or close roof  while waiting without requesting other actions going on. So if you encounter a particular button or sequence of steps that can cause the crash it will be helpful in looking for the weakness in the drivers handling of them that results in a crash.
 
/Tom
Last edit: 2 years 4 months ago by wotalota.
2 years 4 months ago #77383

Please Log in or Create an account to join the conversation.

  • Posts: 311
  • Thank you received: 42
Krish,
Attached is a first pass to capture some of this for Jasem's suggestion for a HOWTO. Any suggestions that would make it easier to get started.

Should add, the Arduino section describes some edits no yet made.
 
The following user(s) said Thank You: Jasem Mutlaq
Last edit: 2 years 4 months ago by wotalota.
2 years 4 months ago #77387
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
Tom
A quick read of the HOWTO and I can say it will be very helpful.
I will work with it and come back with any ideas that may make it easier.
I have attached the log indi log files that show the crashes.
I am using Stellarmate 1.6 and KStars 3.5.5 Stable.build 2021-09-30T19:39:54Z.
I followed this for this link, from the iNSTALL, for the driver building process: indilib.org/forum/general/210-howto-buil...st-libindi-ekos.html
Then followed the INSTALL for the building the indi-rolloffino driver and associated files.
My Ekos Obs and Iindi Control panels are the same as your images.
Thanks

 
2 years 4 months ago #77401
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.802 seconds