Bug 501023 - Ekos Universal Roll off Roof driver initializing slower input driver
Summary: Ekos Universal Roll off Roof driver initializing slower input driver
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.7.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-03 19:56 UTC by txgibson
Modified: 2025-03-27 05:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 3.7.6
Sentry Crash Report:


Attachments
log file (407.87 KB, text/plain)
2025-03-03 19:56 UTC, txgibson
Details
log_15-29-12.txt (45.18 KB, text/plain)
2025-03-05 20:47 UTC, txgibson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description txgibson 2025-03-03 19:56:53 UTC
Created attachment 179083 [details]
log file

SUMMARY
Using an Arduino test driver for the Universal Rolloff (UROR) driver.
The roof is closed. The Arduino driver indicators are correct, the UROR driver shows both fully opened and fully closed at the same time. log_1.txt

The input driver causes debug warning errors in the UROR driver during initialization.
The errors come from  UniversalRORClient::syncFullyOpenedState() The input device has not yet completed its connection code when the UROR driver attempts the sync. The device is set but it is not connected.

Removing the syncIndexes() call in the UROR Connect routine avoids both calls during the UROR's connection. The UROR ISNewText code will subsequently call syncIndexes outside of the Connect. syncFullyOpenedState continues the debug error logging until the input driver gets connected.  The UROR's status indicators are correct. Subsequent roof open/close actions are tracked okay. log_2.txt.


STEPS TO REPRODUCE
1. Add 1/2 second delay in one of the input driver's connect code?
2. I can provide the driver and perhaps some Arduino stub code
3. 

OBSERVED RESULT
Driver not displaying state of the roof

EXPECTED RESULT
Universal and input driver showing same status.

SOFTWARE/OS VERSIONS
Ekos

ADDITIONAL INFORMATION
Comment 1 Jasem Mutlaq 2025-03-05 19:46:21 UTC
This is not a KStars issue, it's an INDI driver issue.

At any rate, the driver is updated, please pull from GIT and rebuild again and let me know how it goes.
Comment 2 txgibson 2025-03-05 20:47:42 UTC
Created attachment 179156 [details]
log_15-29-12.txt

It looks good, no warnings & open/close is indicated when roof is moved
Thank you.

On Wed, 2025-03-05 at 19:46 +0000, Jasem Mutlaq wrote:

> https://bugs.kde.org/show_bug.cgi?id=501023
>
> --- Comment #1 from Jasem Mutlaq <mutlaqja@ikarustech.com> ---
> This is not a KStars issue, it's an INDI driver issue.
>
> At any rate, the driver is updated, please pull from GIT and rebuild again and
> let me know how it goes.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Jasem Mutlaq 2025-03-27 05:57:57 UTC
Should be fixed by next INDI release