Bug 392148 - No connection for a MicroTouch focuser
Summary: No connection for a MicroTouch focuser
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 2.9.3
Platform: Other macOS
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-21 20:20 UTC by Jean-Claude
Modified: 2018-09-03 10:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
MicroTouch focuser (245.44 KB, image/png)
2018-03-21 20:20 UTC, Jean-Claude
Details
Resource busy (443.62 KB, image/jpeg)
2018-03-31 15:43 UTC, Jean-Claude
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude 2018-03-21 20:20:38 UTC
Created attachment 111542 [details]
MicroTouch focuser

I followed the "StellarMate Tutorials - Part 4" to assign permanent designations to my serial-to-USB adapters (scope Celestron GPS + dome MaxDome II) and my MicroTouch focuser.
I only succeeded to map the focuser, not the scope and the dome.
However, now, I cannot connect my focuser directly to KStars anymore.
I checked that the baud rate was correct (19200).
My setup works because I can connect the scope, the dome and the focuser to TheSkyX.
I started a de novo installation of KStars (I trashed the app KStars and the folder /Application Support/kstars) : but the problem was still present and I couldn't connect the focuser (see the attached screenshot).
Do you have any idea ?
Comment 1 Jasem Mutlaq 2018-03-22 06:40:22 UTC
The permanent designations is for when devices are connected to StellarMate, not directly to your Mac as shown in your screenshots. So this changes nothing if you connect directly, the mapping is only used when you use StellarMate.
Comment 2 Jean-Claude 2018-03-22 17:37:19 UTC
(In reply to Jasem Mutlaq from comment #1)
I understood this point.
But then why I cannot connect my focuser to KStars when the StellarMate is turned off ?
I think that my problem started after my trial to give a permanent designation to my gear.
Before this trial I could connect my gear to KStars as I connect my gear NOW to TheSkyX (meaning that the setup is functional).
Comment 3 Jean-Claude 2018-03-28 13:39:38 UTC
I am sorry to insist but I'm still wondering why my Microtouch focuser doesn't connect to KStars. 
I tried KStars v.2.8.9, v.2.9.2, v.2.9.3 installed on a freshly installed disk containing nothing else than the system High Sierra and KStars.
My setup is working because I connect the focuser without problem to TheSkyX, to Nebulosity4 and to MicroTouch Focus.
My setup includes 3 serial-to-USB connectors :
Celestron GPS:		/dev/cu.usbserial-A104WRIX
MaxDomeII:		/dev/cu.usbserial-A904PUNX
MicroTouch:		/dev/cu.SLAB_USBtoUART
KStars doesn't detect the port /dev/cu.SLAB_USBtoUART.
Why is this ???
Thanks for any help.
Comment 4 Jasem Mutlaq 2018-03-28 17:46:20 UTC
I have no idea. You might want to post this in INDI forum and see if any Mac users have any ideas about this specific adapter. I presumed you installed all the drivers necessary for it?
Comment 5 Jean-Claude 2018-03-28 19:33:57 UTC
Yes, the necessary driver has been installed because the focuser can communicate with the other softwares (TheSkyX, Nebulosity4, MicroTouch Focus).
Moreover I used this focuser with KStars/ Ekos AutoFocus without problem.
I am really troubled.
Comment 6 Jasem Mutlaq 2018-03-29 10:12:59 UTC
You tried these software on the Mac or another platform? If on Mac, are you sure they're ALL shutdown when you try to communicate with it in KStars? This could be an instance where another App is still holding the connection open.
Comment 7 Jean-Claude 2018-03-29 10:40:21 UTC
Jasem, that's surely what happens because KStars says : "Resource busy. Check if device is connected to this port"
But why this doesn't happen when I'm connecting the focuser to other softwares ?
Also, I installed a macOS system and KStars on a brand new disk (no other software). And I still couldn't connect the focuser to KStars.
I'll try again. Thanks for the reply.
Comment 8 Jean-Claude 2018-03-31 15:43:28 UTC
Created attachment 111756 [details]
Resource busy

Here I attached only the focuser to my computer .
It says "Resource busy" but nothing else is running.
Comment 9 Jasem Mutlaq 2018-04-01 06:37:28 UTC
I suggest you take this problem to INDI forum and see if other Mac users can suggest something to resolve it.
Comment 10 TallFurryMan 2018-09-03 10:49:32 UTC
Resolved by PR https://github.com/indilib/indi/issues/672, this is an INDI issue.

"
Fixes #672 as the driver was limited to int16_t when reading position where it should have been uint16_t

https://github.com/indilib/indi/commit/d6b040f44739965e52962cc098de682fe2bd140f
"