Bug 152453 - kstars can connect but not control lx90 using kubuntu gutsy
Summary: kstars can connect but not control lx90 using kubuntu gutsy
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 11:19 UTC by Carl Knight
Modified: 2007-11-20 07:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch to fix menu-to-command mapping (1.21 KB, patch)
2007-11-20 07:40 UTC, Jasem Mutlaq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Knight 2007-11-17 11:19:23 UTC
Version:           1.2.5 (using KDE 3.5.8, Kubuntu (gutsy) 4:3.5.8-0ubuntu3.1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.22-14-generic

This is the text of my kubuntu forums post, please note that I believe the issue is most likely kernel (some difference in the pl2303 driver used in kubuntu feisty and gutsy), or else some other fundamental difference between kubuntu feisty fawn and gutsy gibbon.

Text of original kubuntu form post:

There is some fundamental breakage between feisty and gutsy, let me explain:

I use kstars to control my telescope. This uses the Meade standard cable set, which includes a pl2303 USB->serial adapter.

If I boot feisty, kstars will drive the telescope just fine using the pl2303.  Cool

If I boot gutsy, kstars will read firmware data from the Meade Autostar handset and get basic firmware data, but it will not slew the telescope or send other commands to the telescope.  Sad

I have a symlink /dev/telescope I set up in my udev rules, this is correct each time, it points happily to what ever /dev/ttyUSB... the pl2303 driver has made the actual pl2303 serial adapter. Permissions and groups are fine (if not how could kstars read the firmware data anyway). i.e. I am a member of dialout, and dialout has rw on the relevant ttyUSB... device.

Log files reveal nothing abnormal unless kstars is doing some logging that I don't know about.

More specifically, here is a list of what can and can't be done with kstars under gutsy with the pl2303 USB->serial adapter:

1. Start lx90 service from device manager. Device manager log looks normal.
2. Goto the star chart, right click, select lx90/connect - does not connect.
3. Goto the INDI control panel, click on connect, connects, reads back firmware, site, etc.
4. Goto the star chart, right click, lx90 shows as connected now. Issue commands to slew, sync, etc. Nothing happens.
5. Select centre and track crosshair, nothing happens, manually instruct kstars to centre the object the telescope is pointed at, voila, there are the crosshairs.

In case anyone is speed reading this post, let me emphasise again that if I run kstars under feisty, everything works fine.

Are there any known issues? Is this a problem with the pl2303 driver, or kstars?

Thanks.
Comment 1 Carl Knight 2007-11-18 12:09:38 UTC
UPDATE: I tried an older pl2303 driver (2.16.20.16) with my 2.16.22.14 current kernel, no difference, behaviour is still broken. I have also tried renaming my kstarsrc and setting up from scratch, and a complete reinstall of kstars with no success.
Comment 2 Jasem Mutlaq 2007-11-18 21:43:34 UTC
Carl, can you try entering the RA/DEC values from INDI control panel manually and see if the telescope moves to the target?
Comment 3 Jasem Mutlaq 2007-11-19 19:51:48 UTC
I can confirm this bug, there is nothing wrong with your USB to serial adapter, it's a problem with menu-to-command translation. This it already fixed in KDE 4, will fix it in the KDE 3.x branch.
Comment 4 Jasem Mutlaq 2007-11-20 07:40:16 UTC
Created attachment 22129 [details]
Patch to fix menu-to-command mapping
Comment 5 Jasem Mutlaq 2007-11-20 07:43:40 UTC
Please save the attachment below as kstars.patch, and copy it to kdeedu/kstars/kstars/, then using konsole, go to kdeedu/kstars/kstars and type:

patch -p0 < kstars.patch

Then make then make install, and the problem should be fixed!