Add a hack for Stellarium Mobile Plus time synchronisation - #125
Open
im-0 wants to merge 1 commit into
Open
Conversation
Stellarium Mobile Plus for Android (paid app, includes telescope control features) shows "Time: incorrect" in red when connected to OnStepX over Bluetooth even if automatic time sync is enabled in the app. App logs have a hint for a root cause: ... #:SC08/15/26# => TRX timeout Warning, started command with RX buffer not empty discarding RX buffer content: 49 Could not set telescope time ... By trial and error I found that Stellarium waits for '#' after '1'. Probably this is for interoperability with other implementations of LX200 that send '#'-terminated strings after '1' on success. The fix is to simply send '1' as a string response in a case of a successful change of date. I tested this with: * Stellarium Mobile Plus (obviously) * SmartWebServer Note that in a case of a daylight saving time and if time was previously set by Stellarium Mobile Plus, it shows wrong UTC Offset (off by one) but correct UT and LST. Seems the only problem here is that UTC Offset needs to be changed manually to be able to set new correct date/time from the web interface. * SmartHandController * INDIGO 3 Fixes: https://onstep.groups.io/g/main/topic/100216132
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stellarium Mobile Plus for Android (paid app, includes telescope control features) shows "Time: incorrect" in red when connected to OnStepX over Bluetooth even if automatic time sync is enabled in the app.
App logs have a hint for a root cause:
By trial and error I found that Stellarium waits for '#' after '1'. Probably this is for interoperability with other implementations of LX200 that send '#'-terminated strings after '1' on success.
The fix is to simply send '1' as a string response in a case of a successful change of date.
I tested this with:
Note that in a case of a daylight saving time and if time was previously set by Stellarium Mobile Plus, it shows wrong UTC Offset (off by one) but correct UT and LST. Seems the only problem here is that UTC Offset needs to be changed manually to be able to set new correct date/time from the web interface.
Fixes: https://onstep.groups.io/g/main/topic/100216132