Welcome, Guest
Username: Password: Remember me
27 Feb 2017
INDI development team is happy to announce the release of INDI Library v1.4.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers. Several improvements and enhancements are included in this release including native support for Cygwin and MacOS platforms in addition to Linux, BSD, and Windows (Client only).
Read More...
  • Page:
  • 1

TOPIC: PyIndi/C++ client, how to send text/text vector to indi server

PyIndi/C++ client, how to send text/text vector to indi server 2 weeks 23 hours ago #17828

Dear all,
I am trying to setup a python script to acquire multiple images from my Canon DSLR EOS350D.
I am able to get images in bulb mode through a usb cable on ttyUSB0 using the gui included in kstars.
However, I cannot find in the PyIndi client or C++ command to send this kind of information.

There are still many things that I don't understand about indi drivers, I would be really happy if someone could tell me a bit more about those property/text/ ??? from indi/3rdparty/indi-gphoto/gphoto_ccd.cpp:

IUFillText(&mPortT[0], "PORT", "Port", "");
IUFillTextVector(&PortTP, mPortT, NARRAY(mPortT), getDeviceName(), "DEVICE_PORT", "Shutter Release",
MAIN_CONTROL_TAB, IP_RW, 0, IPS_IDLE);

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

PyIndi/C++ client, how to send text/text vector to indi server 1 week 3 days ago #17928

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

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

Last Edit: by dolguldur.
  • Page:
  • 1
Time to create page: 0.350 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!

Gallery

Replica

Why INDI

Replica