Bug 463749 - GPhoto CCD shutter release string too short
Summary: GPhoto CCD shutter release string too short
Status: REPORTED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.6.2
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-02 20:34 UTC by thomas.mackenhauer
Modified: 2023-01-02 20:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thomas.mackenhauer 2023-01-02 20:34:16 UTC
SUMMARY
Please extend the maximum length of the string that is used for the Shutter release in the driver GPhoto CCD. This string can’t be saved /dev/serial/by-id/usb-FTDI_USB__-__Serial_Converter_FTVQ0UZN-if00-port0. Problem is that the last part (7 characters) of the string is cut of when saving.


STEPS TO REPRODUCE
1.  In the Indi control panel select tab GPhoto and hit disconnect 
2. Select tab Main Control
3. Set the Shutter release parameter to /dev/serial/by-id/usb-FTDI_USB__-__Serial_Converter_FTVQ0UZN-if00-port0
4. Now it looks like is is correctly set
5. Go to options tab and hit save
6. Close
7. Disconnect and restart entire system
8. Start the profile
9. Check the Shutter release setting 

OBSERVED RESULT
After step 9. Shutter release is set to /dev/serial/by-id/usb-FTDI_USB__-__Serial_Converter_FTVQ0UZN-if0
Missing the last 7 characters.

EXPECTED RESULT
Shutter release should be /dev/serial/by-id/usb-FTDI_USB__-__Serial_Converter_FTVQ0UZN-if00-port0

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: Stellarmate 1.7.4
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
My normal setup is a stellarmate on a RPI3 and Kstars running on a Windows PC. But when using the Kstars installed on the stellarmate under Linux I see the same issue.

Using FTDI USB-Serial converter to control Nikon DSLR vi the shutter connector. In some cases if I use Shutter = /dev/ttyUSB0 the shutter doesn’t “fire” . I found out that this problem is because sometimes the FTDI USB-serial chip is assigned randomly to either /dev/ttyUSB1 or /dev/ttyUSB0. In which case I have to disable the Gphoto CCD driver and reconfigure the shutter setting to the other value /dev/ttyUSB0 or /dev/ttyUSB1 and then it works fine. I have tried to solve this by using the reference /dev/serial/by-id/usb-FTDI_USB__-__Serial_Converter_FTVQ0UZN-if00-port0 instead which should not change. However the last part of the string is cut off when saving it. Which results in a wrong reference to the FTDI converter.