GithubHelp home page GithubHelp logo

Comments (14)

jpaana avatar jpaana commented on August 25, 2024

I doubt it very much that JMI focuser would be compatible with USB_FocusV3 and I don't know where Stellarmate gets that from. Maybe they use similar microcontrollers and USB ids, but USB_FocusV3 has their own vendor id and not SparkFun which is a popular Arduino-style DYI board.

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

Here is a snippet from the Stellarmate Dashboard for the JMI Motofocus Plus.
431545407_3364107193886782_330812099521225675_n

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

Is there anything that can be done with how Stellarmate is recognizing the JMI Motofocus Plus as USBFocusV3, or are you able to properly identify the JMI Motofocus Plus and create a proper driver to have it correctly recognized by Indi. Thank you.

from indi.

jpaana avatar jpaana commented on August 25, 2024

All those ids are different than what USB_FocusV3 uses so it looks like an error in the StellarMate info, not just accidental ID overlap. I don't know if there's a driver for JMI Motorfocus Plus, but creating one would be fairly straight forward if the protocol is documented. Obviously having a device to test with would help too. However there seems to be a JMI SmartFocus driver which might be worth trying as well. If you have Windows drivers for the device, it would also be possible snoop the traffic for protocol info like I did for USB_FocusV3 originally.

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

from indi.

jpaana avatar jpaana commented on August 25, 2024

I took a closer look at what kind of device you actually have and it seems to be a so called relative focuser and not absolute focuser so that rules out the SmartFocus driver even they are from the same manufacturer. So it would require writing a new driver, but that is fairly simple based on one of the similar drivers we already have like nFocus, but requires info about the serial protocol so the commands and responses would match.

I couldn't find any documentation on that so it would require capturing the serial port traffic starting from connecting with the Windows program and using all the necessary features and document all the steps so they can be correlated with the serial traffic. Like: connect - move focuser inwards - move focuser outwards - change some setting - and so on. I did that with the USB_FocusV3 and it was quite straight forward to reverse engineer the protocol that way and your focuser has even less functionality and hopefully complexity. For Windows there are some free programs that can capture serial port traffic quite easily. Easiest is probably PortMon (https://learn.microsoft.com/en-us/sysinternals/downloads/portmon).

If you can provide such a capture, I can take a look and probably make the driver fairly easily, but can't test it without the device obviously. If you have compilation environment yourself, you could then compile the driver yourself, but I can also provide x86_64 binary or maybe Jasem as he's the main StellarMate guy. That said, I have no affiliation with StellarMate, I'm just a volunteer like most INDI developers so no promises or commitments, but it seems easy enough that I should have time to do it fairly quickly as I have done quite a few drivers already. And thanks to open source I can do mostly a copy & paste with some search & replace from an existing driver :)

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

Hi Jarno. I'm considering mailing you the JMI MotoFocus Plus for you to develop the driver. Is this possible if I pay all the shipping fees?

from indi.

jpaana avatar jpaana commented on August 25, 2024

That's probably not necessary, and would be quite a hassle with customs etc. unless you live in EU. I can go through the steps required for capturing the serial traffic from Windows or we can setup a remote session with TeamViewer or similar, assuming we can find a common time :) I live in UTC+2 (soon UTC+3 due to DST).

I haven't used PortMon for a while and had some issues getting it to run with my Windows 11 machine, but got https://freeserialanalyzer.com/ to work. It can dump the traffic to window and also to some kind of replay log file.

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

from indi.

jpaana avatar jpaana commented on August 25, 2024

It shouldn't make a difference if the controlling software is ASCOM driver or a standalone program, serial communication with the device should be the same. I think (not sure) that ASCOM expects focuser to be an absolute one, ie. being controlled with absolute step counts and being able to recall the exact position. A relative focuser is kind of control for the buttons so it just moves in and out and is controlled by time (and possibly speed) so it's not as accurate to control as an absolute one. Autofocusing is easier with absolute focuser, but I have a vague recollection that Ekos also has some support for relative focusers with the one-pass linear algorithm.

Seems PortMon requires a 32-bit Windows version which explains why it didn't work with my Windows 11 anymore. I had used it back in the day with a Windows XP machine and there it worked fine. But the Device Monitoring Studio I linked above worked fine. It's quite limited in free functionality and nags about paid features, but should be enough for this case as we don't need any fancy protocol decoders or such.

from indi.

liquiduniverse avatar liquiduniverse commented on August 25, 2024

from indi.

github-actions avatar github-actions commented on August 25, 2024

This issue has been inactive for 60 days and is being marked as stale.

from indi.

github-actions avatar github-actions commented on August 25, 2024

This issue has been closed due to inactivity.

from indi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.