Update wit logs on my problem:
Hi everybody,
First of all, thank you for this client, it is exactly what I needed for my experiments, being able to script everything, especially the CCD acquisition.
Unfortunately, I have trouble understanding how the indi client works, and how the python/c++ wrapper shoud be used.
Here is my specific usecase: I want to control a DSLR that uses an external serial shutter. This works when using the gui from kstars.
Unfortunately, I don't understand how I should set up the serial shutter port through PyIndi client.
The driver code that sends the text I want to modify looks like that:
IUFillText(&mPortT[0], "PORT", "Port", "");
IUFillTextVector(&PortTP, mPortT, NARRAY(mPortT), getDeviceName(), "DEVICE_PORT", "Shutter Release", MAIN_CONTROL_TAB, IP_RW, 0, IPS_IDLE);
And the Indi logs when I set the valuethrought the Gui look like that:
2017-07-17T17:09:31: Client 0: read <newTextVector device='Canon DSLR Digital Rebel XT (normal mode)' name='DEVICE_PORT'>
2017-07-17T17:09:31: Driver indi_canon_ccd: queuing responsible for <newTextVector device='Canon DSLR Digital Rebel XT (normal mode)' name='DEVICE_PORT'>
2017-07-17T17:09:31: Driver indi_canon_ccd: sending <newTextVector device="Canon DSLR Digital Rebel XT
2017-07-17T17:09:31: Driver indi_canon_ccd: read <setTextVector device='Canon DSLR Digital Rebel XT (normal mode)' name='DEVICE_PORT'>
2017-07-17T17:09:31: Client 0: queuing <setTextVector device='Canon DSLR Digital Rebel XT (normal mode)' name='DEVICE_PORT'>
2017-07-17T17:09:31: Client 0: sending <setTextVector device="Canon DSLR Digital Rebel XT
It looks like the client is sending a new text, ie (setTextVector), this is why, I tried the following code in my client:
self.sendNewText(Canon DSLR Digital Rebel XT (normal mode),"DEVICE_PORT","Shutter Release","/dev/ttyUSB0")
Unfortunately, the above line result in the following error:
No IText 'Shutter Release' in Canon DSLR Digital Rebel XT (normal mode).DEVICE_PORT
I would be extremely happy to know more about Indi, and the PyIndi client, to interact with this middleware in the general case.
Thank you in advance for your help