×

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

Bi-monthly release with minor bug fixes and improvements

Ekos/Indi+GPhoto cannot load too long "shutter release port" from configuration

  • Posts: 2
  • Thank you received: 0
Hi,

I encountered some minor bug that I report here. To control my old EOS 350d I use Ekos with the GPhoto CCD indi driver and a usb->serial adapter. The linux device associated to the adapter has a quite lengthy name "/dev/serial/by-id/usb-FTDI_Pierro_Astro_EOS_Remote_Controler_FTS1J0V3-if00-port0". The driver works fine when I use this value as "shutter release port" value. The problem arise when I try to save the configuration. The value is saved as is in the xml configuration file,c.f. the file attached below. But when I try to relad the configuration (on a fresh start of Kstars/Ekos/Indi for instance) the shutter release port value is truncated and some "weird" caracters are added. It looks as if there was some kind of bufferoverflow when reading the the port value from the configuration, as this does not happen with shorter port values (/dev/ttyUSB0 works just fine for instance).

Steps to reproduce:

1) Open Kstars/Ekos
2) Launch a Indi profile with a GPhoto camera
3) Add a too long name for instance /dev/serial/by-id/usb-FTDI_Pierro_Astro_EOS_Remote_Controler_FTS1J0V3-if00-port0
4) Save the configuration
5) Stop and restart the server to reload the configuration

This was found using Kstars 3.6.6, Indi 2.0.2 (with protocol 1.7), gphoto2 2.5.27 on a x86_64 machine with Ubuntu 22.04 as OS.

That's not blocking per se, as there are workarounds:
- One can still redefine the correct value every time one boots,
- Or one could also use the shorter /dev/ttyUSBX (usually /dev/ttyUSB0) to which the serial device is linked (but this can be tricky if more than one usb/serial adapter is used in the setup as in this case there are more than one /dev/ttyUSBX, and the number depends on the physical devices startup sequence)

But these workaround defeats the purpose of a configuration, if ones must redefine values everytime :)

Sincerly,
Florian
9 months 3 weeks ago #93811
Attachments:

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

  • Posts: 84
  • Thank you received: 28
A cleaner workaround is to create a symbolic link to your port, eg:
sudo ln -s /dev/serial/by-id/usb-FTDI_Pierro_Astro_EOS_Remote_Controler_FTS1J0V3-if00-port0 /dev/EOS

...and then use that in the configuration.
The following user(s) said Thank You: Florian Gautier
9 months 3 weeks ago #93814

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

This must be some locale issue since I can't replicate the issue on a US English system (using the exact port name you have above).
The following user(s) said Thank You: Florian Gautier
9 months 3 weeks ago #93821

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

  • Posts: 2
  • Thank you received: 0
Hi,

@Jasem thanks I'll investigate more on my side, since for me changing the locale did not change the way Ekos loads the configuration. I must have something a bit off with my install.

@Ed thanks for the nicer workaround !
9 months 3 weeks ago #93828

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

Time to create page: 0.684 seconds