×

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

Bi-monthly release with minor bug fixes and improvements

[SOLVED] Question about message frequency

  • Posts: 124
  • Thank you received: 28
Hi all,

as I started to program a little bit on INDI, I wonder if it is possible to increase the repeat rate of subscribed messages like 'CCD_EXPOSURE', 'CCD_EXPOSURE_VALUE' to get it more often. Actually I see the message come in over IP at every 1-3 second. I would like to show the Exposure timer count down to know how long the exposure will take.

Second question: Is there any chance to get the status of the camera (IDLE, EXPOSING, DOWNLOADING etc.) like it is possible with most ASCOM drivers ?

Any help appreciated.

Michel
6 years 2 months ago #22330

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

CCD_EXPOSURE value frequency depends primarily on the driver and to a second degree to network speed and congestion, so you cannot change that from the client side.

Regarding the 2nd question, not directly, but you can infer it from CCD_EXPOSURE state:

IPS_IDLE: Idle
IPS_OK: Download completed successfully and camera is now idle.
IPS_BUSY: If CCD_EXPOSURE value = 0, then it is DOWNLOADING, otherwise, it is exposing.
IPS_ALERT: Exposure failed.
6 years 2 months ago #22339

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

  • Posts: 124
  • Thank you received: 28
Hi Jasem,

still have some troubles I only see CCD_EXPOSURE in the received XML, no IPS_IDLE or the other states. Is this related to the CCD Simulator only. Where should I look for this states. Sorry I might be a little bit stupid.

But in any case: Even if it's a setup for the driver, it's really hard not to get the states of a device as a must.

Thanks in Advance

Michel
6 years 1 month ago #22833

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

Can you post the XML you are receiving??
6 years 1 month ago #22836

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

  • Posts: 124
  • Thank you received: 28
Hi Jasem,

attached a log from the XML transfer

Michel

File Attachment:

File Name: indixml.tx...2-01.zip
File Size:12 KB
Last edit: 6 years 1 month ago by Michael.
6 years 1 month ago #22837
Attachments:

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

I see one setNumberVector for CCD_EXPOSURE:
<setNumberVector device="CCD Simulator" name="CCD_EXPOSURE" state="Idle" timeout="60" timestamp="2018-02-01T20:09:10">
    <oneNumber name="CCD_EXPOSURE_VALUE">
0
    </oneNumber>
</setNumberVector>

The state is specified as "Idle" above.
The following user(s) said Thank You: Michael
6 years 1 month ago #22842

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

  • Posts: 124
  • Thank you received: 28
Hi Jasem,

got it, I lost it on my side during processing.

Michel
6 years 1 month ago #22853

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

Time to create page: 0.226 seconds