×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

TCP client/server communication Indi driver and another program

  • Posts: 8
  • Thank you received: 0
Hello

I use SimpleScope tutorial two Indi Driver.

RA and DEC will be calculated by another program. I should want the Indi driver to be the TCP client and the another program to be the TCP server.

I should want to use zeromq TCP client/server. For linking, it's necessary to write -lzmq in the command line.

Is it possible to create the Indi driver using zmq dynamic library ? How to add -lzmq option ?

Thank you
Loic
6 years 9 months ago #17179

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

I'm not sure what you're trying to do. You want to control a mount by sending RA/DE from another program? What mount?
6 years 9 months ago #17180

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

  • Posts: 8
  • Thank you received: 0
Thank you for your answer.

We only want to read the position of a telescop. Not to drive it.

RA and DEC are calculated by a Python program, reading barcodes on pictures. Files attached show two examples of pictures.

The picture is taken by a camera on a Raspberry Pi 3.

On Raspberry number 1 (Ubuntu Mate), we installed KStars, Indi Server, Indi driver, and the Python program which measures RA.
On Raspberry number 2, we installed the Python program which measures DEC.
Python program number 2 sends DEC value to Python program number 1. This is ok. So Python program number 1 has RA and DEC numeric values.
Raspberry number 1 must send RA and DEC numeric values to Indi driver. We decided to implement a TCP communication between the C++ Indi driver and the Python program. A simple way to implement TCP communication consists in using zeromq dynamic library.

Is it possible to build Indi driver including zeromq library ?

Sincerely
Loic
Last edit: 6 years 9 months ago by Loic Le Joncour.
6 years 9 months ago #17184
Attachments:

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

  • Posts: 8
  • Thank you received: 0
6 years 9 months ago #17185
Attachments:

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


This is what I do not understand. If you do not intend to drive the mount, then why are sending RA/DE values to INDI driver? What will INDI driver do with RA/DE values?
6 years 9 months ago #17191

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

  • Posts: 8
  • Thank you received: 0
The mount is manually moved. We need to know RA and DE current values at any time during pointing.

The goal is to display RA and DE current values in KStars. So we can compare current values and target values to achieve the pointing.
6 years 9 months ago #17193

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

  • Posts: 2247
  • Thank you received: 223
6 years 9 months ago #17194

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

Ok in that case you can link to any libraries. It's done in CMakeLists.txt. You need to make an INDI driver like those in 3rd party (check EQMod for an example), and then simply add your library to target_link_libraries. You probably want to find if there is FindZeroMQ.cmake file out there that detects the library on the system. If it doesn't exist, then create your own (find others in cmake_modules subdirectory).
6 years 9 months ago #17196

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

  • Posts: 8
  • Thank you received: 0
Thank you knro !
We will try tomorrow
Last edit: 6 years 9 months ago by Loic Le Joncour.
6 years 9 months ago #17202

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

  • Posts: 8
  • Thank you received: 0
Thank you Gonzothegreat for this information !
Last edit: 6 years 9 months ago by Loic Le Joncour.
6 years 9 months ago #17203

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

  • Posts: 8
  • Thank you received: 0
6 years 9 months ago #17210

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

Time to create page: 0.294 seconds