As far as I understand, drivers save and load configuration from XML files named after their own driver names.
Is there a way to have two drivers load two different configuration files? As an illustation, I have one CCD on /dev/dmx21 and another on /dev/c210, I'd like two drivers to show up, with respective configurations loaded. I think I could create a second chained INDI server on another user account, but this seems a bit overkill.
If not possible, what would be the best way to implement this in the code? Adding an option to load a XML config and retaining it for saving later on?
For drivers running in INDI server FIFO, you can always pass the configuration file.Alternatively, you can set INDICONFIG environment variable before starting the driver and it will be used to load the config.
However if I start two V4L2 CCD drivers, I end up with only one in Ekos, which is duplicating all actions as there are actually two processes listening on the line. Furthermore, the XML configuration file doesn't embed the device path, thus both drivers attempt to control the default file "/dev/video0".
Is there something I can do to improve that? Any ideas that were implemented elsewhere before I dig in?
-Eric
2017-05-01T16:01:49: Failed to start streaming.
2017-05-01T16:01:49: V4L2 base failed starting capture (VIDIOC_STREAMON error 16, Device or resource busy)2017-05-01T16:01:13: World Coordinate System is enabled. CCD rotation must be set either manually or by solving the image before proceeding to capture any frames, otherwise the WCS information may be invalid.
2017-05-01T16:01:13: World Coordinate System is enabled. CCD rotation must be set either manually or by solving the image before proceeding to capture any frames, otherwise the WCS information may be invalid.
2017-05-01T16:01:11: Device configuration applied.
2017-05-01T16:01:11: Upload settings set to client only.
2017-05-01T16:01:11: Loading device configuration...
2017-05-01T16:01:11: Device configuration applied.
2017-05-01T16:01:11: Upload settings set to client only.
2017-05-01T16:01:11: Loading device configuration...
2017-05-01T16:01:11: Found intial Input "Camera 1", Format "8-bit Greyscale", Size 640x480, Frame interval 1/30s
2017-05-01T16:01:11: V4L2 CCD Device is online. Initializing properties.
2017-05-01T16:01:11: Found intial Input "Camera 1", Format "8-bit Greyscale", Size 640x480, Frame interval 1/30s
2017-05-01T16:01:11: V4L2 CCD Device is online. Initializing properties.
Two V4L2 CCD drivers start (on /dev/video0) outputting logs in the same console panel, and streaming request fails on one of them, as could be expected.