×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

USB-Focus-V3 connexion problem

  • Posts: 22
  • Thank you received: 0
I am my new USB-Focus-V3.
I create on EKOS a new profile with only CCD simulator and my USB-Focus-V3.
Using EKOS I start INDI and obtain image USB-Foc-001 (No connexion of the focuser)
I go to Tab Connexion ( image USB-Foc-002)
In the tab Connexion I click on : System Ports, Scan Ports and Enabled (Auto search) ( image USB-Foc-003),
I go on tab Controle Principal and Clic on Connecter image USB-Foc-004 image USB-Foc-005 ).

I don't obtain the connexion.

What must I do ?

Philippe
4 years 9 months ago #39999

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

  • Posts: 210
  • Thank you received: 104
The correct port is probably /dev/ttyACM0 but a common issue with this device is ModemManager think it is a modem and immediately take exclusive control on it, so INDI cannot open the port.

The solution is to remove ModemManager (you probably not use a serial modem for a long time):
sudo apt remove modemmanager

BTW the web page for this focuser www.indilib.org/devices/focusers/usb-focus-v3.html is seriously outdated, it still point to the obsolete Cloudmakers driver and the only useful information is in a review by Han last year.
How is it possible to update this page?
The following user(s) said Thank You: Jasem Mutlaq, Revellat
4 years 9 months ago #40013

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

Patrick, you can now edit and publish documents on the website, so you can go ahead and update the documentation. I already did , but it would be great if you or any other user can share screenshots for each tab and fill the rest of the driver documentation in as well.
The following user(s) said Thank You: Patrick Chevalley, Revellat
4 years 9 months ago #40016

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

  • Posts: 22
  • Thank you received: 0
Thank You. As you wrote I enter the command sudo apt remove modemmanager and after I can connect the focuser easily.

For me the problem is solved. It will be important for the other user to have an updated documentation, but how to do this?.

Philippe.
4 years 9 months ago #40036

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

  • Posts: 210
  • Thank you received: 104
Thank you Jasem.
I will add information and screen shot as soon I recover my home internet line that was broken by a thunderstorm today. At the moment I use a slow mobile phone and this is very inconvenient.

Philippe, I will update the documentation, no problem.
Now it is connected it must work fine. I use it for auto-focus every clear night.
In the case you get error message about incomplete command or value you can solve them by increasing Option/Polling period form 500 to 1000.
The following user(s) said Thank You: Revellat
4 years 9 months ago #40038

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

  • Posts: 210
  • Thank you received: 104
I have updated the doc.
Please tell me if you see other point that can be useful. I am so used to this focuser now that maybe I miss something.
The following user(s) said Thank You: Jasem Mutlaq, Jarno Paananen
4 years 9 months ago #40052

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

Thanks!! That looks pretty good so far!
4 years 9 months ago #40053

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

  • Posts: 472
  • Thank you received: 165
One useful addition to the udev-rule is also create a symlink in case there are also other devices using ttyACM*, mine is:

SUBSYSTEM=="tty", ATTRS{product}=="USB_Focus", SYMLINK+="focuser", ENV{ID_MM_DEVICE_IGNORE}="1"

so it's always /dev/focuser
4 years 9 months ago #40058

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

  • Posts: 145
  • Thank you received: 7

Replied by Lars on topic USB-Focus-V3 connexion problem

Hi.
I also try to instal USB-focuser,

I tried the suggested command in terminal:

sudo apt remove modemmanager

But it was interupted and I was told to set it up in manuell mode:

sudo dpkg --configure -a

I gave that command and a lot of things happened.

Still didn't get it to connect to USB-focus

I think it's connected to /dev/ttyUSB01 (or shall it be USB1 ?)

When I scan for ports I get this:

2020-02-27T23:15:28: [INFO] Scan complete. Found 1 port(s).
2020-02-27T23:15:20: [ERROR] Failed to connect to port (/dev/ttyUSB01). Error: Port failure Error: No such file or directory. Check if device is connected to this port.
2020-02-27T23:14:37: [INFO] Error retrieving data from USBFocusV3, please ensure controller is powered and the port is correct.
2020-02-27T23:14:37: [ERROR] No valid resync response.
2020-02-27T23:14:34: [INFO] Retry 6...
2020-02-27T23:14:31: [INFO] Retry 5...
2020-02-27T23:14:28: [INFO] Retry 4...
2020-02-27T23:14:25: [INFO] Retry 3...
2020-02-27T23:14:22: [INFO] Retry 2...
2020-02-27T23:14:19: [INFO] Retry 1...
2020-02-27T23:14:19: [INFO] Error retrieving data from USBFocusV3, trying resync...

It sugest System Ports /dev/ttyACM0

I try that to but didn't work either.

When I give usb-devices in terminal I see that it is connected to port01.

I'm almost new to Raspberry, I tried it two years ago, then I had KStar installed in Raspberry, but the it overloaded Raspberry. Now I have KStar installed on a client with Windows10. I have installed Astroberry in the Raspberry which to be the correct way to go, or ?

Linux is a bit confusing for me :-), Windows man.

By the way, in my old computer system have the USB-focus running in a Astro-server with Windows8, all working correct. But the USB-focus had the port number 12 in my Window system, I tried that to in the Raspberry, and then I tried all port numbers from 0 to 24.

I changing to Raspberry because I want to lower the power and get it more compact, I really want it to work.

/Lars
4 years 1 month ago #50208

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

  • Posts: 210
  • Thank you received: 104
The port is /dev/ttyACM0 , the USBfocus never connect as ttyUSB.

Try this command to show the process that can lock the port:
sudo lsof /dev/ttyACM0

Note it can be /dev/ttyACM1 if you unplug and replug.
To be sure, just after you plug, type dmesg and look for the last messages.

Patrick
4 years 1 month ago #50210

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

  • Posts: 145
  • Thank you received: 7

Replied by Lars on topic USB-Focus-V3 connexion problem

Hi,
Thanks for a quick reply.

It looks like I don't have the command Isof installd in my Astroberry. But I have ls and I tried that:

Before installed the USB cable to USB-focus:

astroberry@astroberry:~ $ ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyAMA0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyprintk
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58 /dev/ttyS0
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61

After I have installed the USB cable to USB-focus:

astroberry@astroberry:~ $ ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyACM0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyAMA0
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58 /dev/ttyprintk
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59 /dev/ttyS0
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61

The ttyACM0 has appered.

Great now I got a connection ! Thanks a lot !

Still some problem, it looks to have problem to read the temperature:

2020-02-28T11:47:09: [ERROR] Unknown error: focuser temperature value ()
2020-02-28T11:47:09: [WARNING] Error writing command FTMPRO: Write Error: Input/output error.
2020-02-28T11:47:09: [WARNING] Error writing command FTMPRO: Write Error: Input/output error.
2020-02-28T11:47:09: [WARNING] Error writing command FTMPRO: Write Error: Input/output error.
2020-02-28T11:47:09: [WARNING] Error writing command FTMPRO: Write Error: Input/output error.
2020-02-28T11:47:09: [WARNING] Error writing command FTMPRO: Write Error: Input/output error.
2020-02-28T11:47:09: [WARNING] Error writing command FTMPRO: Write Error: Input/output error.
2020-02-28T11:47:09: [ERROR] Unknown error: focuser position value ()

But still a big progress.

/Lars
4 years 1 month ago #50213

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

  • Posts: 210
  • Thank you received: 104
Check baud rate is 9600.

If it still not work, in the Option tab enable Debug then Driver Debug to log file to get more information.
4 years 4 weeks ago #50219

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

Time to create page: 0.633 seconds