×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Driver OnStep (LX200 like) for INDI

  • Posts: 144
  • Thank you received: 7
I've never tried with a network cable, I'll try next week and see what happens.
Thanks.
Ettore
1 year 2 months ago #90486

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

  • Posts: 452
  • Thank you received: 71
Good luck,

keep in touch
1 year 2 months ago #90487

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

  • Posts: 144
  • Thank you received: 7
Sure.
Ettore
1 year 2 months ago #90488

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

  • Posts: 23
  • Thank you received: 2
Hello,

I have noticed INDI uses weather temperature for focusing control even though you have a separate telescope temperature sensor.
My OnStep web server shows those two different values in a right way - telescope temperature in the focuser section.
Also the ASCOM OnStep focuser driver seems to pass the right value.
Would it be possible to have it in INDI as well? Many thanks in advance.

Best regards,
Wieslaw
The following user(s) said Thank You: Alan Archer
1 year 1 month ago #90867

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

  • Posts: 452
  • Thank you received: 71
Hi,

There is a weather tab in Onstep where temperature is displayed but I think it is the value of the BME280 sensor.
The values of the Auxiliary are all displayed in the Output tab if configured.
In principle everything is possible but for developing the specific needs one need the specific hardware, so I need to know what exactly your config is to understand and investigate.

Regards
1 year 1 month ago #90868

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

  • Posts: 23
  • Thank you received: 2
Hi Alain,

Thank you for your prompt response.
I wouldn't request any special stuff - my DS18B20 sensor is a standard for telescope temperature, I guess.

// FOCUSER TEMPERATURE
see onstep.groups.io/g/developer/wiki/Configuration_Rotator_Focuser
#define FOCUSER_TEMPERATURE DS18B20 // OFF, THERMISTOR or n. Where n is the ds18b20 s/n for focuser temp.

I have one MaxESP3 with BME280 weather sensor and DS18B20 telescope temp sensor and a custom board equipped with DS18B20 .

For both it would be great to havre the telescope temperature value in INDI.

If I could be of any help, let me know, please.
But unfortunately I have little experience with coding...

Best regards,
Wieslaw
Last edit: 1 year 1 month ago by Wieslaw Stawiski.
1 year 1 month ago #90870

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

  • Posts: 452
  • Thank you received: 71
Ok I see.

is this related to your question? indilib.org/forum/wish-list/11484-adding...ion-on-focusers.html
When I said specific I didn't mean something very special, just what type of hardware you have (sorry for my Frenglish :-)

I will have to set-up such a config, don't have a bme280 by hands ...
I hope my BluePill will accept the options , I am really at top of the available memory with my current config ...
At a first glance I would say you should find these values in the weather tab.
But I don't know is Ekos is aware of those values ...
As soon I can have a correct set-up ready I will check.
After I need to understand how Ekos is supposed to manage this stuff.
Last edit: 1 year 1 month ago by Alain Zwingelstein.
1 year 1 month ago #90872

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

  • Posts: 23
  • Thank you received: 2

Your English is just perfect, no worries :)

It is somehow related,
but for the focuser temperature compensation you can use either weather sensor (BME280) or telescope temp sensor (DS18B20) data.
My problem is that there is no way for the latter to be used, no matter if a weather sensor is present.

The expected behaviour: when there is a telescope temperature sensor, in the focuser context its data should be used.
(falling back to the weather sensor temp data, when there is no telescope temp sensor at hand would be also great).

When you like me to do some testing, just reach out to me. :)

Attachment not found



When there is no weather sensor the temperature value is nan.
Expected behaviour: when there is a telescope temp sensor its temperature value should be used in the focuser context.
1 year 1 month ago #90876

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

  • Posts: 452
  • Thank you received: 71
Right now there is nothing in Indi that provides this functionality.
The Focuser interface does not include temperature.
Most probably it should be implemented in the driver and provide an option to the user to use or not the compensation and may be the choice for for sensor to use.
But since it is not implemented at Ekos level (may be I am wrong, needs to be checked deeper) it would be difficult to avoid compensation during shooting but this should not occur since temperature is not a quick changing parameter.

OK I will start to look about this topic but it will take some time I have some other eggs on my fire next weeks ...
1 year 1 month ago #90878

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

  • Posts: 161
  • Thank you received: 39
Doublechecking what Alain said, since there's a proposal in the thread, to confirm there's no way to have the focuser interface output temperature.

I've created a branch here

github.com/james-lan/indi/tree/focus_temperature

This should report it in the weather interface, but it won't be the main temperature. It would be possible to test it, and see if it was a good thing. (I'm very suspicious, I haven't touched the code in a while, and it compiled without error the first time.) If you can test that, we can at least report it and I can see about adding a button to swap it.

OnStep (maybe X only?), If I recall correctly also does the temperature compensation automatically. (Or can) I need to double check that statement, and I probably need to get some new hardware to test...
1 year 1 month ago #90885

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

  • Posts: 452
  • Thank you received: 71
James,

thanks for the input. I will have a look as soon as possible. You're right, OnStepX has something like compensation but I don't know how to interface it with Indi.
One of the focusers I was looking at is this project www.indilib.org/focusers/myfocuser-pro-2.html which is very interesting.
I think at least we should have in the focuser tab:
- Enable/Disable T° compensation
- Selection of Sensor (BME vs DS1820/Thermistor)
- T° Coefficient considering the compensation linear α = xx * 10-n * K-1 different for each telescope configuration
- Display for actual Temperature (but already in Weather tab for bme280 T°

And also consider OnStep and OnStepX ...
...
a lot of work I guess :-)

I found this in both OnStep and OnStepX
// :FC#       Get focuser temperature compensation coefficient in microns per °C)
    //            Return: n.n#
    // :FC[sn.n]# Set focuser temperature compensation coefficient in microns per °C (+ moves out as temperature falls)
    //            Return: 0 on failure
    //                    1 on success
    // :Fc#       Get focuser temperature compensation enable status
    //            Return: 0 if disabled
    //                    1 if enabled
    // :Fc[n]#    Enable/disable focuser temperature compensation where [n] = 0 or 1
    //            Return: 0 on failure
    //                    1 on success
    // :FD#       Get focuser temperature compensation deadband amount (in steps or microns)
    //            Return: n#
    // :FD[n]#    Set focuser temperature compensation deadband amount (in steps or microns)
    //            Return: 0 on failure
    //                    1 on success
    // :Fe#       Get focuser temperature differential
    //            Returns: n# temperature in deg. C
    // :Ft#       Get focuser temperature
    //            Returns: n# temperature in deg. C

So it seems selection of which T° is used is done in OnStep and compensation too.
Last edit: 1 year 1 month ago by Alain Zwingelstein.
1 year 1 month ago #90897

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

  • Posts: 452
  • Thank you received: 71
James,

After little check in OnStep / OnStepX code it seems that:
- :Ft returns either 10°C if no T° sensor present, bme280 T° if weather is enabled and Focuser T° is a sensor is configured
- OnStep considers 10°C if no sensor is present
- there is no way to select the temperature sensor for compensation
- compensation is effectively done by the OnStep firmware so no need to care about the control
- there are only three configurable variables to be set for T° compensation to work
--- Enable/disable T° compensation with :Fc1# or :Fc0# command (and Fc# to get status)
--- T° compensation alpha in µm/°C with :FCsn.n# (and :FC# to get setpoint)
--- T° deadband (hysteresys) with :FDn# (and FD# to get setpoint)

So displaying temperature in Focus tab, allowing user to enable/disable T° compensation and setting values for deadband and T° coefficient is feasible without a lot of headache, just a matter of having and OnStep with both sensors on it.
I ordered a bme280 just now so some days should be here.
1 year 1 month ago #90917

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

Time to create page: 0.819 seconds