Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: Lacerta MGEN support?

Lacerta MGEN support? 1 year 1 month ago #15057

Dear Eric,

thanks for all the effort you put into this! It would be great to be able to use the MGEN in the ekos environment. Let me know if I can help with my setup.

Best wishes
Stephan

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

Lacerta MGEN support? 1 year 1 month ago #15589

Hello,

I pushed my proposal as github.com/indilib/indi/pull/187

To build this driver, set 3rd party driver option "WITH_MGEN" to On and run a cmake build.
Check documentation in the pull request, this driver requires libftdi1 to work. An example of udev rule to unbind a device is provided in source folder.
In case of issue, raise the log to level "debug", reproduce the problem and open a ticket with the log attached on github.com/TallFurryMan/indi/issues if the driver is not merged in master yet, or discuss it here.

I'll happily answer any question you have. I certainly didn't get everything right in this first attempt.
-Eric
The following user(s) said Thank You: Pepe.Lombris

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

Lacerta MGEN support? 1 year 4 weeks ago #15743

Hi Eric,

this is great news, thank you! I'll try to install the driver and see how it works with my MGEN.

Cheers
Stephan

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

Lacerta MGEN support? 6 months 2 days ago #20405

Hi,

I have only now realized that the INDI 1.5 library comes with a "New Lacerta MGen driver". Is that the one refereced to in this thread? Has anyone tried it yet?

Best regards
Stephan

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

Re:Lacerta MGEN support? 6 months 2 days ago #20406

Hello,

I certainly do :)

Right now it functions as a remote control, with which you can navigate and configure your guiding. What is missing dearly is a how-to, but to summarize:
- Connect the MGen controller to the computer running indiserver with a USB cable.
- Use/adapt the provided udev rules to make sure the device is properly named in /dev. As the device is using a FTDI chip, there might be mismatches and mixups.
- Add 'indi_mgen_autoguider' to the list of drivers started by your indiserver.
- I don't remember if Ekos is providing an entry in the profile drop-down, but when INDI is started there, the MGen driver should appear in its own tab.
- Don't connect the MGen driver, but change the default device path and save your configuration.
- Start the MGen driver, the device should turn on automatically, and a few logs should appear in the MGen tab.
- Go to tab "Remote UI", and enable the remote view. Frames will pop up in the FITS viewer, and you may navigate in the interface using the buttons in the same panel.

Depending on the speed of your network connection, you may raise the frame rate, but be aware that too many frames will kill something, either Ekos or the connection (though it's been a while since I tested the robustness). With wifi I keep this to 1/2 frame per second.

Once configured, calibrated, started, you disable the remote ui, your scope is now guiding. Also always check which CCD Ekos is trying to request frames for. You do not want the MGen frames to show up instead of your light frames :)

Because this is so nice but also so frustrating (you will probably have this feeling too while using the driver), I'm currently implementing the PHD2 protocol in the driver. This will allow the user to start and stop guiding via Ekos instead of manually.


-Eric
The following user(s) said Thank You: Pepe.Lombris

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

Re:Lacerta MGEN support? 6 months 1 day ago #20418

DearEric,
this is great news! Thank you for all the effort you put into this project! I hope IÄll soon find the time to try the driver. How do I "use/adapt the provided udev rules"?

Please let me know if I can help beta testing the new driver (with PHD2 protocol).

Cheers
Stephan

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

Re:Lacerta MGEN support? 6 months 1 day ago #20421

When connected, the device will appear as /dev/ttyUSB1 for instance. The number at the end of the device name marks the order in which the device was connected/detected amongst others. Thus if you have only one device which connects this way, or if you always connect your different devices in the same order, you can configure the INDI driver to use /dev/ttyUSB1 once for all.

Problems appear when you boot a system with all devices already connected. In that situation you don't know which name will be used for which device.

Udev sort of solves this issue, by giving specific names to devices identified by specific properties: manufacturer/product ID, or serial number, etc. Definitions are written in "rules files".

For MGen, I provide one such file in the source tree (3rdparty/indi-mgen/80-LacertaMgen.rules). If you happen to have multiple USB devices working as serial adapters, check this out, it's easy to read (but difficult to write). If you only have one such device, don't bother, check the name of the connected /dev device and try the connection out directly.

-Eric

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

Re:Lacerta MGEN support? 6 months 17 hours ago #20432

Sorry, I made a mistake in my previous post: because the device requires libftdi1, you NEED the kernel to unbind it first before you may access it with INDI.

Therefore the udev rules are required to be present in /etc/udev/rules.d to be able to connect the device.

I'll fix the driver config so that the file is copied there when the installation proceeds. In the meantime, you will need to copy 88-LacertaMGen.rules to /etc/udev/rules.d manually (with root privileges).

-Eric

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

Last Edit: by TallFurryMan.

Re:Lacerta MGEN support? 3 months 2 weeks ago #22331

Hi!

I am searching for hours about information on how to get the mgen running under kstars AND how to download, install and use it on my kde Linux Distro-Astro distribution laptop.I have absolutely no idea about linux and installed this special "distro-astro" linux system on an old laptop to learn bout kstars, ekos and linux as well.
It would be very kind of you to tell me in short steps how to download and install your driver.

cheers
TCM

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

Re:Lacerta MGEN support? 3 months 1 week ago #22362

Hello,

Thanks for your interest in this driver. In its current state, the driver "only" provides a remote user interface to the MGen LCD pad. Is this what you are looking for?

-Eric
The following user(s) said Thank You: the.cakemaker

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

Re:Lacerta MGEN support? 3 months 1 week ago #22364

TallFurryMan wrote: Hello,

Thanks for your interest in this driver. In its current state, the driver "only" provides a remote user interface to the MGen LCD pad. Is this what you are looking for?

-Eric


Hi!

Yes for now it would be Ok for me, since i have to go out to my setup for focusing anyway, and i am in „Testing conditions“



Gesendet von iPhone mit Tapatalk

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

Re:Lacerta MGEN support? 3 months 1 week ago #22379

OK. You need two things: a USB connection to the MGen pad, and an INDI server with driver indi_mgenauotoguider compiled in installed to your local setup.

I could give you high-level directions, but as no one except me did actually test the driver, I'd recommend you understand each step :)

When you connect your MGen via USB, it should be recognized automatically by your OS. You can use the terminal command "dmesg" before and after connecting to check what the system detected, or just check the changes in folder "/dev".

The difficult step is to have the MGen recognized by your local setup *as a FTDI unbound device*, and I don't expect it to be by default. To achieve this you need a special "udev rules" file on the computer the MGen is connected to, that I made available at " github.com/indilib/indi/blob/master/3rdp...80-LacertaMgen.rules ". You need to download and store this file at "/etc/udev/rules.d", then reboot that computer.

As this is a privileged location, you will probably need to use the terminal command "sudo cp" to copy the rules file there. Tell me if you need help at that point.

The next step is to start the driver with your indiserver. Do this as you would for other devices. Even if no device is recognized, you should have the driver panel available when you start Ekos/Kstars.

From then on, check under which name your MGen is recognized when you connect it, and provide this device name in the driver panel. This should be "/dev/usb.mgen", as can be read from the rules file. You can then connect the driver.

At this point, in the panel "Remote UI", you should be able to start a remote session with your MGen device.

Tell me how it goes, so that I may fix things or improve the configuration (which needs it!).

-Eric
The following user(s) said Thank You: the.cakemaker

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

Last Edit: by TallFurryMan.
Time to create page: 0.208 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica