Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
[2018-08-30T20:44:30.539 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Model: D3200 "
[2018-08-30T20:44:30.539 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Finding DSUSB 0x134A, 0x9021 ... "
[2018-08-30T20:44:30.539 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Connected to DSUSB! "
[2018-08-30T20:44:30.539 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] RC: 1 - Info Byte: 0X30 "
[2018-08-30T20:44:30.541 EDT INFO ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[INFO] Connected to DSUSB "
[2018-08-30T20:44:30.542 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] GPhoto initialized. "
[2018-08-30T20:44:30.546 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Blub-stop thread enabled. "
[2018-08-30T20:44:30.547 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Capture target is SD Card. "
[2018-08-30T20:44:30.552 EDT INFO ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[INFO] Nikon DSLR DSC D3200 0 is online. "
DSUSBDriver
gphoto->dsusb[code] field should be set. When I try to take an exposure, these logs are puzzling:
[code]
[2018-08-30T20:45:04.278 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Opening remote serial shutter port: DSUSB ... "
[2018-08-30T20:45:04.278 EDT DEBG ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[DEBUG] Failed to open serial port: DSUSB "
[2018-08-30T20:45:04.282 EDT INFO ][ org.kde.kstars.indi] - Nikon DSLR DSC D3200 0 : "[ERROR] Error starting exposure "
gphoto_driver.cpp
gphoto->dsusb
// If bulb port is specified, let's open it
if (gphoto->dsusb)
{
DEBUGDEVICE(device, INDI::Logger::DBG_DEBUG, "Using DSUSB to open shutter...");
gphoto->dsusb->openShutter();
}
else if (gphoto->bulb_port[0])
{
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Opening remote serial shutter port: %s ...",
gphoto->bulb_port);
gphoto->bulb_fd = open(gphoto->bulb_port, O_RDWR, O_NONBLOCK);
if (gphoto->bulb_fd < 0)
{
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Failed to open serial port: %s", gphoto->bulb_port);
pthread_mutex_unlock(&gphoto->mutex);
return -1;
}
ioctl(gphoto->bulb_fd, TIOCMBIS, &RTS_flag);
}
Please Log in or Create an account to join the conversation.
ATTR{idVendor}=="134a" ATTR{idProduct}=="9021" GROUP="users", MODE="0666" SYMLINK+="dsusb"
Please Log in or Create an account to join the conversation.
gdb --eval-command="set follow-fork-mode child" --args indiserver -v indi_nikon_ccd
start
b gphoto_driver.cpp:1580
b gphoto_driver.cpp:1112
Please Log in or Create an account to join the conversation.
diff --git a/3rdparty/indi-gphoto/gphoto_driver.cpp b/3rdparty/indi-gphoto/gphoto_driver.cpp
index 57471bd3..b43c400d 100644
--- a/3rdparty/indi-gphoto/gphoto_driver.cpp
+++ b/3rdparty/indi-gphoto/gphoto_driver.cpp
@@ -606,6 +606,10 @@ static void *stop_bulb(void *arg)
{
//shut off bulb mode
DEBUGDEVICE(device, INDI::Logger::DBG_DEBUG, "Closing shutter");
+ if (gphoto->dsusb)
+ {
+ gphoto->dsusb->closeShutter();
+ }
if (gphoto->bulb_widget)
{
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Using widget:%s", gphoto->bulb_widget->name);
@@ -619,10 +623,6 @@ static void *stop_bulb(void *arg)
gphoto_set_widget_num(gphoto, gphoto->bulb_widget, FALSE);
}
}
- else if (gphoto->dsusb)
- {
- gphoto->dsusb->closeShutter();
- }
else
{
ioctl(gphoto->bulb_fd, TIOCMBIC, &RTS_flag);
@@ -1195,7 +1195,7 @@ int gphoto_start_exposure(gphoto_driver *gphoto, uint32_t exptime_usec, int mirr
return -1;
// If bulb port is specified, a serial shutter control is required to start the exposure. Treat this as a bulb exposure.
- if (gphoto->bulb_port[0])
+ if (gphoto->bulb_port[0] && !gphoto->dsusb)
{
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Opening remote serial shutter port: %s ...", gphoto->bulb_port);
gphoto->bulb_fd = open(gphoto->bulb_port, O_RDWR, O_NONBLOCK);
Please Log in or Create an account to join the conversation.