Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
sudo apt-get update && sudo apt-get -y dist-upgrade
Please Log in or Create an account to join the conversation.
INFO 1.717737 sec : Session log file /home/indi/.indi/logs/2017-04-06/indi_gphoto_ccd/indi_gphoto_ccd_08:55:47.log
DEBUG 1.717863 sec : Requested CCD Frame is ( 0, 0) (1280 x 1024)
DEBUG 1.717980 sec : Configuration successfully loaded.
DEBUG 49.394974 sec : Configuration successfully saved.
DEBUG 128.150412 sec : Requested CCD Frame is ( 0, 0) (1280 x 1024)
DEBUG 128.150659 sec : Starting exposure (exptime: 10 secs, mirror lock: 0)
DEBUG 128.150668 sec : Mutex locked
DEBUG 128.150678 sec : Setting radio/menu widget iso: 12 (1600)
DEBUG 128.151090 sec : Setting new configuration OK.
DEBUG 128.151097 sec : Setting radio/menu widget capturetarget: 1 (Memory card)
DEBUG 128.151502 sec : Setting new configuration OK.
DEBUG 128.151511 sec : Opening remote serial shutter port: /dev/ttyUSB0 ...
DEBUG 128.186711 sec : Exposure started
INFO 128.186763 sec : Starting 10 sec exposure
DEBUG 128.186851 sec : Time left: 10000
DEBUG 129.188004 sec : Capture in progress. Time left 8
DEBUG 130.188518 sec : Capture in progress. Time left 7
DEBUG 131.188943 sec : Capture in progress. Time left 6
DEBUG 132.189482 sec : Capture in progress. Time left 5
DEBUG 133.187289 sec : Time left: 5000
DEBUG 133.190141 sec : Capture in progress. Time left 4
DEBUG 134.190774 sec : Capture in progress. Time left 3
DEBUG 135.191230 sec : Capture in progress. Time left 2
DEBUG 136.191552 sec : Capture in progress. Time left 1
DEBUG 137.191726 sec : Reading exposure...
DEBUG 138.187600 sec : Time left: 0
DEBUG 138.187875 sec : Closing shutter
DEBUG 138.201891 sec : Exposure complete
DEBUG 138.238931 sec : Unknown event.
DEBUG 138.248839 sec : Unknown event.
DEBUG 139.306103 sec : File added event completed.
DEBUG 139.309869 sec : gp_file_new_from_fd result: 0
DEBUG 139.310466 sec : Downloading //capt0000.nef
DEBUG 139.326264 sec : Downloading result: 0
DEBUG 139.330065 sec : Downloaded 0x0 (preview 0x0)
DEBUG 139.330695 sec : Deleting.
DEBUG 139.333426 sec : Retval: 0
DEBUG 139.333519 sec : Setting radio/menu widget iso: 12 (1600)
DEBUG 139.334654 sec : Setting new configuration OK.
DEBUG 139.334971 sec : Setting radio/menu widget shutterspeed2: 52 (Bulb)
DEBUG 139.337848 sec : Setting new configuration OK.
INFO 139.338006 sec : Exposure done, downloading image...
DEBUG 139.933404 sec : read_libraw: raw_width: 4992 top_margin 0 left_margin 0 first_visible_pixel 0
DEBUG 139.938071 sec : read_libraw: rawdata.sizes.width: 4948 rawdata.sizes.height 3280 memsize 32458880 bayer_pattern RGGB
DEBUG 139.965855 sec : read_libraw: memsize (32458880) naxis (2) w (4948) h (3280) bpp (16) pattern (RGGB)
DEBUG 140.048863 sec : Uploading file. Ext: fits, Size: 32463360, sendImage? Yes, saveImage? No
DEBUG 140.337609 sec : Upload complete
DEBUG 267.857280 sec : Requested CCD Frame is ( 0, 0) (1280 x 1024)
DEBUG 267.857502 sec : Starting exposure (exptime: 10 secs, mirror lock: 0)
DEBUG 267.857513 sec : Mutex locked
DEBUG 267.857523 sec : Setting radio/menu widget iso: 12 (1600)
DEBUG 267.858004 sec : Setting new configuration OK.
DEBUG 267.858012 sec : Setting radio/menu widget capturetarget: 1 (Memory card)
DEBUG 267.858642 sec : Setting new configuration OK.
DEBUG 267.858658 sec : Opening remote serial shutter port: /dev/ttyUSB0 ...
DEBUG 267.888008 sec : Exposure started
INFO 267.888071 sec : Starting 10 sec exposure
DEBUG 267.888109 sec : Time left: 10000
DEBUG 268.888485 sec : Capture in progress. Time left 8
DEBUG 269.889110 sec : Capture in progress. Time left 7
DEBUG 270.889697 sec : Capture in progress. Time left 6
DEBUG 271.890181 sec : Capture in progress. Time left 5
DEBUG 272.888282 sec : Time left: 5000
DEBUG 272.891587 sec : Capture in progress. Time left 4
DEBUG 273.892451 sec : Capture in progress. Time left 3
DEBUG 274.893035 sec : Capture in progress. Time left 2
DEBUG 275.893437 sec : Capture in progress. Time left 1
DEBUG 276.894489 sec : Reading exposure...
DEBUG 277.888473 sec : Time left: 0
DEBUG 277.888529 sec : Closing shutter
DEBUG 277.903207 sec : Exposure complete
DEBUG 279.172557 sec : File added event completed.
DEBUG 279.172633 sec : gp_file_new_from_fd result: 0
DEBUG 279.172656 sec : Downloading //capt0001.nef
DEBUG 279.204945 sec : Downloading result: 0
DEBUG 279.205633 sec : Downloaded 0x0 (preview 0x0)
DEBUG 279.205692 sec : Deleting.
DEBUG 279.205736 sec : Retval: 0
DEBUG 279.205785 sec : Setting radio/menu widget iso: 12 (1600)
DEBUG 279.206321 sec : Setting new configuration OK.
DEBUG 279.207508 sec : Setting radio/menu widget shutterspeed2: 52 (Bulb)
DEBUG 279.208062 sec : Setting new configuration OK.
INFO 279.208141 sec : Exposure done, downloading image...
DEBUG 280.041903 sec : read_libraw: raw_width: 4992 top_margin 0 left_margin 0 first_visible_pixel 0
DEBUG 280.048865 sec : read_libraw: rawdata.sizes.width: 4948 rawdata.sizes.height 3280 memsize 32458880 bayer_pattern RGGB
DEBUG 280.071662 sec : read_libraw: memsize (32458880) naxis (2) w (4948) h (3280) bpp (16) pattern (RGGB)
DEBUG 280.085379 sec : Subframing...
DEBUG 280.098898 sec : Uploading file. Ext: fits, Size: 2626560, sendImage? Yes, saveImage? No
DEBUG 280.164340 sec : Upload complete
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.
import serial
ser = serial.Serial()
ser.port = 'COM3'
ser.open()
ser.setRTS(True)
ser.setRTS(False)
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.
/*====================================================================================================*/
/* Program to access the RTS,of a Serial Port(ttyS* or ttyUSB0) using ioctl() system call. */
/* */
/*====================================================================================================*/
/* */
/* If your are using FT232 based USB to Serial Converter all the pins are inverted internally */
/* Modem Pins of FT232 based Serial Port -> ~RTS,,~DTR. */
/* SETTING the Pins will make it LOW,while CLEARING the Pins will make it HIGH. */
/*----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------*/
/* Compiler/IDE : gcc 4.6.3 */
/* Library : */
/* Commands : gcc -o rts rts.c */
/* OS : Linux(x86) (Linux Mint 13 Maya/Ubuntu 14.04)(Linux Kernel 3.x.x) */
/* Programmer : Rahul.S */
/* Date : 27-December-2014 */
/*====================================================================================================*/
/*====================================================================================================*/
/* Running the executable */
/* ---------------------------------------------------------------------------------------------------*/
/* 1) Compile the serialport_read.c file using gcc on the terminal (without quotes) */
/* */
/* " gcc -o rts rts.c " */
/* */
/* 2) Linux will not allow you to access the serial port from user space,you have to be root.So use */
/* "sudo" command to execute the compiled binary as super user. */
/* */
/* "sudo ./rts" */
/* */
/*====================================================================================================*/
/*====================================================================================================*/
/* Sellecting the Serial port Number on Linux */
/* ---------------------------------------------------------------------------------------------------*/
/* /dev/ttyUSBx - when using USB to Serial Converter, where x can be 0,1,2...etc */
/* /dev/ttySx - for PC hardware based Serial ports, where x can be 0,1,2...etc */
/*====================================================================================================*/
/*==================================*/
/* MODEM bits */
/*------------------- --------------*/
/* TIOCM_DTR --- DTR Line */
/* TIOCM_RTS --- RTS Line */
/*==================================*/
#include <stdio.h>
#include <fcntl.h> /* File Control Definitions */
#include <termios.h> /* POSIX Terminal Control Definitions */
#include <unistd.h> /* UNIX Standard Definitions */
#include <errno.h> /* ERROR Number Definitions */
#include <sys/ioctl.h> /* ioctl() */
void main(void)
{
int fd; /*File Descriptor*/
printf("\n +--------------------------------------------+");
printf("\n | Program to Control RTS pins of Serial Port |");
printf("\n +--------------------------------------------+");
/*------------------ Opening the Serial port ------------------*/
/* Change /dev/ttyUSB0 to the one corresponding to your system */
fd = open("/dev/ttyUSB0",O_RDWR | O_NOCTTY ); /* ttyUSB0 is the FT232 based USB2SERIAL Converter */
/* O_RDWR Read/Write access to serial port */
/* O_NOCTTY - No terminal will control the process */
/* Blocking Mode */
if(fd == -1) /* Error Checking */
printf("\n Error! in Opening ttyUSB0 ");
else
printf("\n ttyUSB0 Opened Successfully \n");
/*--------- Controlling the RTS pins of Serial Port --------*/
int RTS_flag;
RTS_flag = TIOCM_RTS; /* Modem Constant for RTS pin */
/*--------------------- Controlling the RTS pin using ioctl() system call ---------------------*/
/* setting RTS = 1,~RTS = 0 */
ioctl(fd,TIOCMBIS,&RTS_flag); /* fd -file descriptor pointing to the opened Serial port */
/* TIOCMBIS - Set the bit corrosponding to RTS_flag */
printf("\n Setting RTS = 1,~RTS = 0 ");
printf("\n\n Press any Key...");
getchar();
/* setting RTS = 0,~RTS = 1 */
ioctl(fd,TIOCMBIC,&RTS_flag); /* fd -file descriptor pointing to the opened Serial port */
/* TIOCMBIC - Clear the bit corrosponding to RTS_flag */
printf("\n Setting RTS = 0,~RTS = 1 ");
printf("\n\n Press any Key...");
getchar();
close(fd); /* Close the Opened Serial Port */
printf("\n +--------------------------------------------+\n\n");
}
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.