Welcome, Guest
Username: Password: Remember me
20 Aug 2017
INDI development team is happy to announce the release of INDI Library v1.5.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: TCP client/server communication Indi driver and another program

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17179

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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

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

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17180

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?

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17184

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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
Attachments:

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

Last Edit: by loiclej.

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17185

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
The attached files
Attachments:

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

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17191

Raspberry number 1 must send RA and DEC numeric values to Indi driver.


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?

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17193

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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.

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

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17194

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17196

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).

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17202

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Thank you knro !
We will try tomorrow

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

Last Edit: by loiclej.

TCP client/server communication Indi driver and another program 2 months 2 weeks ago #17203

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Thank you Gonzothegreat for this information !

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

Last Edit: by loiclej.

TCP client/server communication Indi driver and another program 2 months 1 week ago #17210

  • loiclej
  • loiclej's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Thank you for your help !

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

  • Page:
  • 1
Time to create page: 0.446 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