×

INDI Library v1.9.3 Released (11 Nov 2021)

Bimonthly Stable INDI Library release introduces new drivers and fixes for existing ones. Some highlights:

Newbie writing a simple client for a CCD

  • Posts: 5
  • Thank you received: 1
I am OK on C and C++ but I am an absolute and complete newbie in this environment. 
I want to write a simple client to control a CCD camera on the 'scope.
I am more than happy to base it on the tutorial examples given.
I want to run the client on a Raspberry Pi.
I can successfully compile and run the tutorial examples, on the RPi, but I am struggling at the (rather elementary) point of trying to compile my edited versions of those example cpp files.
Two specific questions.
1. I am currently using the (most helpful) steps described in the web site to compile the whole tutorial set on the RPi in one go, but I am not confident of how to compile just the edited code I have written. It offends me to take the easy way out and do them all every time.
2. Very specifically, to make the tutorials work with my camera (QHY8L) rather than the simulated CCD, where do I look for the right word/name/description to put into the tutorial to make it work with the real camera.  I feel there must be a list of possible names but I have not stumbled up on it. I have tried substituting "QHY CCD" for "Simulated CCD" but that doesn't seem to result in code that works.

Thanks in advance for any help to get this newbie off the starting blocks..
Bev
COAA

 
The following user(s) said Thank You: Jasem Mutlaq
4 months 3 weeks ago #73403

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

Welcome to INDI forum.

To get the <strong>existing</strong> properties, simply run indi_getprop and you'll get the device.property.element for whatever is currently connected now to INDI server.

Regarding the client code, I should probably create one standalone example outside of INDI to illustrate how this is done. I'll try to work on it soon.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
Last edit: 4 months 3 weeks ago by Jasem Mutlaq.
4 months 3 weeks ago #73414

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

  • Posts: 5
  • Thank you received: 1
Hi Jasem

Many thanks fo r the quick reply. Unfortunately, "indi_prop" is not found anywhere on the RPi. I have installed KStars and all the indi development suite but a search for "indi_prop" finds nothing.

Sorry I am so far back!

Regards
Bev
COAA
4 months 3 weeks ago #73449

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

Sorry my bad it was a typo, it's indi_getprop
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
4 months 3 weeks ago #73450

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

  • Posts: 5
  • Thank you received: 1
Thanks Jasem,

That gets me a little further but "indi_getprop" returns "Connection refused" whatever I try.
:-(

Regards
Bev
4 months 3 weeks ago #73452

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

is INDI server already running? if yes, at port 7624? You can test, run indiserver

indiserver -v indi_simulator_telescope

then from another terminal, indi_getprop
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
4 months 3 weeks ago #73453

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

  • Posts: 5
  • Thank you received: 1
Many thanks for that clarification.
However, if I start the server with that command, indi_getprop only shows me the telescope simulator proprties.
Similarly, if I start the server with, say, tutorial_three, I see the properties of that simulated device.

I had expected, wrongly it would seem, that when the QHY8L was connected, physically, that an appropriate driver would be loaded automatically and would appear in indi_getprop.
Clearly that doesn't happen so it seems that I need to invoke the QHY8L driver by some means that I do not understand.

Sorry to be so helpless!

Regards
Bev
4 months 3 weeks ago #73455

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

No, indiserver needs to be started. People usually do this from a client (e.g. Ekos), or you can do it from the console indiserver -v indi_qhy_ccd
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
4 months 3 weeks ago #73456

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

  • Posts: 5
  • Thank you received: 1
Thanks Jasem,

You help is very much appreciated. I am making some progress now.

Regards
Bev
COAA
4 months 3 weeks ago #73486

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

Time to create page: 0.954 seconds