×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Microtouch focuser refuses to connect : Resource busy

  • Posts: 209
  • Thank you received: 33
Since a few days, my Microtouch focuser refuses to connect to all softwares using the INDI protocol (KStars, INDI Control Panel, AstroLive).
Conversely other softwares not using the INDI protocol (TheSkyX, Nebulosity4, MicroTouch Focus 1.1) still connect perfectly.
Thus the connection problem I'm encountering is not a faulty setup.
The reported INDI error says : "Error: Port failure Error: Resource busy. Check if device is connected to this port"
I am using KStars v. 2.9.7 on a Mac and before everything was working fine on the usual port /dev/cu.SLAB_USBtoUART.
Any idea ?
5 years 8 months ago #28062
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
I'm not an OSX user, but I believe you can execute "lsof /dev/cu.SLAB_USBtoUART" in a terminal to see which process/es is/are owning the port.

-Eric
The following user(s) said Thank You: Jasem Mutlaq
5 years 8 months ago #28074

Please Log in or Create an account to join the conversation.

  • Posts: 209
  • Thank you received: 33
Thanks Eric, but it doesn't seem to work in Terminal (and in my hands).
The idea is good : some process keeps the port for itself preventing KStars to access it.
5 years 8 months ago #28077

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
Mmmh would you care to elaborate on "not working"? What is the output?

Usually I disable the autoscan feature once the name of the device is known, because some drivers may grab a port and not run sufficient handshakes to validate they are talking to the expected device.

Check other driver tabs, to see if one of them used that port unexpectedly.

-Eric
5 years 8 months ago #28078

Please Log in or Create an account to join the conversation.

  • Posts: 209
  • Thank you received: 33
In Terminal the output is this :
MacBookProJCJ:~ JCJ$ lsof /dev/cu.SLAB_USBtoUART
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
indi_micr 668 JCJ 3u CHR 21,11 0t4 673 /dev/cu.SLAB_USBtoUART
MacBookProJCJ:~ JCJ$

In KStars v.2.9.7 I just created a profile containing only the Microtouch focuser and a CCD.
The focuser is directly connected to the computer.

******* Here is what is reported in the status bar :
2018-07-31T13:15:21: [ERROR] Failed to connect to port (/dev/cu.SLAB_USBtoUART). Error: Port failure Error: Resource busy. Check if device is connected to this port.
2018-07-31T13:15:07: [INFO] Error retreiving data from Microtouch, please ensure Microtouch controller is powered and the port is correct.

******* Attached log file "log_15-12-51"

Thanks for your help
5 years 8 months ago #28079
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
The command says that the port is used by the Microtouch driver. Indeed. I wonder if it is the same issue as I have on my Moonlite.

Could you try the following:
1. Disable the auto search feature
2. Set the correct port name
3. Save the configuration
4. Disconnect and stop INDI from Ekos
5. Start and connect INDI from Ekos
6. Check the Microtouch panel console, it should only display the first communication error (that is, no autosearch). Connect button should have a red light.
7. Click connect in the INDI panel.

Proceed with these steps, and tell me what you configure at step 2 and what you observe on steps 6 and 7.

-Eric
Last edit: 5 years 8 months ago by Eric.
5 years 8 months ago #28085

Please Log in or Create an account to join the conversation.

  • Posts: 209
  • Thank you received: 33

The focuser was functioning perfectly the last time (ten days ago)

At one stage (when launching Ekos) a dialog said that an INDI instance was already running, and if I wanted to close it : I said YES.
I also click on the checkbox : don't show this dialog again.
This was maybe a mistake because my problem comes from this other INDI instance always running ?
What do you think ?
5 years 8 months ago #28087
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
Possibly there is an indiserver still running in the background, but that should be solved by a reboot of your computer. I can't really help more precisely on OSX. Unless you know how "ps" and "kill" work and are able to find the process identifier of the offending indiserver, if any.

You didn't detail what happened for the various steps I proposed? From what I see, your Ekos is not connecting devices automatically when starting INDI right? There's only one error line in the console, that's different from what you described earlier...

-Eric
5 years 8 months ago #28092

Please Log in or Create an account to join the conversation.

  • Posts: 209
  • Thank you received: 33
I did write my comment on each step after your query.
On Step 2 : The port name was the correct one originally
On Step 6 + 7 : There was a red button on Step 6, and an error was reported on Step 7

After a restart, nothing changed and the problem was still there.

In the KStars Preferences I clicked on the "Restore default" button but this didn't solve anything.
5 years 8 months ago #28093

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
Oops I'm so sorry, the quote block was folded in my phone interface! Thanks for the comments!

What does "lsof /dev/cu.SLAB_USBtoUART" outputs when kstars is closed and you're relatively sure no indiserver is running in the background? From the first message that appears in the panel console, I'd expect the device to be free.

Meanwhile I'm checking for a change in the serial connector in INDI.

-Eric
5 years 8 months ago #28094

Please Log in or Create an account to join the conversation.

  • Posts: 209
  • Thank you received: 33
No problem, Eric.

When KStars is not running and I run "lsof /dev/cu.SLAB_USBtoUART" in the Terminal, I get this :
iMac27:~ JCJ$ lsof /dev/cu.SLAB_USBtoUART
and when KStars is running, I get this :
iMac27:~ JCJ$ lsof /dev/cu.SLAB_USBtoUART
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
indi_micr 2285 JCJ 3u CHR 21,7 0t4 709 /dev/cu.SLAB_USBtoUART

I am trying to reinstall KStars on a brand new macOS X to see if I can connect.
If I can't, then the INDI driver is faulty.
What do you bet ?

Regards,
5 years 8 months ago #28099

Please Log in or Create an account to join the conversation.

  • Posts: 209
  • Thank you received: 33
Bingo ! On a brand new macOS disk, I get exactly the same error : the Microtouch focuser can't connect.
It seems now to me that the fault is on the INDI driver side.
5 years 8 months ago #28101

Please Log in or Create an account to join the conversation.

Time to create page: 0.253 seconds