Comment 9 for bug 596167

Revision history for this message
Neil Maron (neil-maron) wrote : Re: [Bug 596167] Re: TelescopeControl: Bad serial port names on Windows

Good news. The patch worked this time. I did notice the other bug that the
scope was being removed from the list but I didn't know if that was just a
feature. It'll be good to have it all running. Thank you. I'll keep you
posted on any other "features". Nice work.
--Neil

On Sun, Jun 20, 2010 at 8:28 AM, Peter Mousley <email address hidden>wrote:

> On 20/06/2010 17:13, Bogdan Marinov wrote:
> > I have uploaded a new version of the patch to the same place. It should
> > work now.
> >
> >
> You can imagine my surprise when it didn't work... After some
> frustration I realised I'd applied the original patch :(
> New patch okay. (Again, that is only with the built-in server and only
> on XP.)
>
> Did find another bug though...
>
> If the scope is set to auto connect at start up and the connection fails
> (serial port not available for example), the scope is removed from the
> list of available scopes. It then needs to be re-created.
>
> Attached patch seems to fix it (see comments in patch). I don't know if
> there are any other side effects but I'll leave it to you think about.
>
> Peter
>
>
> ** Attachment added: "fix-scope-auto-connect.patch"
> http://launchpadlibrarian.net/50635423/fix-scope-auto-connect.patch
>
> --
> TelescopeControl: Bad serial port names on Windows
> https://bugs.launchpad.net/bugs/596167
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Stellarium: New
>
> Bug description:
> Telescope plugin has an error when opening COM5-COM99. An extra ":" is
> appended to the device name causing it to fail unless you artificially
> rename the COM port to have the ":" in the windows name.
>
> Sample log:
>
> 2010-06-18T23:16:47
> Unsupported Windows version (I'm running this under Windows 7)
> Compiled with GCC 4.4.0
> Qt runtime version: 4.6.2
> Qt compilation version: 4.6.2
> Addressing mode: 32-bit
> Total memory: 1013 MB (unreliable)
> Total virtual memory: 2047 MB (unreliable)
> Physical memory in use: 68%
> Processor speed: 1596 MHz
> Processor name: Intel(R) Atom(TM) CPU N270 @ 1.60GHz
> Processor speed: 1596 MHz
> Processor name: Intel(R) Atom(TM) CPU N270 @ 1.60GHz
> C:\Program Files\Stellarium\stellarium.exe
> -------------------------------------------------------
> [ This is Stellarium 0.10.5 - http://www.stellarium.org ]
> [ Copyright (C) 2000-2010 Fabien Chereau et al ]
> -------------------------------------------------------
> Writing log file to: "C:/Users/Neil1/AppData/Roaming/Stellarium/log.txt"
> File search paths:
> 0 . "C:\Users\Neil1\AppData\Roaming\Stellarium"
> 1 . "."
> Attempting to use an existing older config file.
> Config file is: "C:\Users\Neil1\AppData\Roaming\Stellarium/config.ini"
> WARNING StelFileMgr::setScreenshotDir dir is not writable:
> "C:/Users/Neil1/Desktop"
> WARNING: problem while setting screenshot from config file setting:
> NOT_VALID
> Qt GL paint engine is: "OpenGL"
> Cache directory is:
> "C:\Users\Neil1\AppData\Local\stellarium\stellarium\cache"
> Sky language is "en"
> Application language is "en"
> Loading Solar System data ...
> Loaded 38 / 38 planet orbits
> Loading star data ...
> "Loading "./stars/default/stars_0_0v0_1.cat": 0_0v0_1; 5013"
> "Loading "./stars/default/stars_1_0v0_1.cat": 1_0v0_1; 21999"
> "Loading "./stars/default/stars_2_0v0_1.cat": 2_0v0_1; 151416"
> "Loading "./stars/default/stars_3_1v0_0.cat": 3_1v0_0; 434064"
> "Loading "C:\Users\Neil1\AppData\Roaming\Stellarium/stars/default/
> stars_4_1v0_0.cat": 4_1v0_0; 1725497"
> "Loading "C:\Users\Neil1\AppData\Roaming\Stellarium/stars/default/
> stars_5_2v0_0.cat": 5_2v0_0; 7669011"
> "Loading "C:\Users\Neil1\AppData\Roaming\Stellarium/stars/default/
> stars_6_2v0_0.cat": 6_2v0_0; 26615233"
> "Loading "C:\Users\Neil1\AppData\Roaming\Stellarium/stars/default/
> stars_7_2v0_0.cat": 7_2v0_0; 57826266"
> Finished loading star catalogue data, max_geodesic_level: 7
> navigation/preset_sky_time is a double - treating as jday: 2.45151e+06
> Loaded 10051 NGC records
> Loading NGC name data ...
> Loaded 222 / 222 NGC name records successfully
> Loaded 88 / 88 constellation records successfully for culture "western"
> Loaded 85 / 85 constellation art records successfully for culture "western"
> Loaded 89 / 89 constellation names
> Loading constellation boundary data ...
> Loaded 782 constellation boundary segments
> Loading star names from "./skycultures/western/star_names.fab"
> Loaded 230 / 230 common star names
> Loading star names from "./stars/default/name.fab"
> Loaded 3215 / 4359 scientific star names
> Creating GUI ...
> Loaded plugin "TelescopeControl" .
> TelescopeControl: No telescope server directory has been found.
> TelescopeControl: Only embedded telescope servers are available.
> TelescopeControl: Loaded successfully 1 telescopes.
> initString: "PICO:TelescopeServerLx200:COM19:500000"
> Creating telescope "PICO:TelescopeServerLx200:COM19:500000" ;
> name/type/params: "PICO" "TelescopeServerLx200" "COM19:500000"
> TelescopeClientDirectLx200 paramaters: port, time_delay: "COM19" 500000
> ERROR creating TelescopeClientDirectLx200: cannot open serial device
> "\\.\COM19:" <---The extra ":" is appended here.
> TelescopeClient::create(): Unable to create a telescope client.
> Unloaded plugin "TelescopeControl" .
> Downloaded 0 files (0 kbytes) in a session of 28.99 sec (average of 0 kB/s
> + 0 files from cache (0 kB)).
>
>
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/stellarium/+bug/596167/+subscribe
>