×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

API for Rust

  • Posts: 9
  • Thank you received: 0

API for Rust was created by Denis

Hi,
I didn't find any rust-API for indi. I need functionality to control the camera (cooling and shooting) and I'm looking for advice on using indi from Rust. I have several ways to do this.
First, I can connect to indi via tcp and send XMLs. Second, I can write wrappers to c API. What way is easier?
2 weeks 2 days ago #88172

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

Replied by Jasem Mutlaq on topic API for Rust

Probably the 2nd method is easier. I have no experience in RUST so can't comment on how challenging that may be.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
2 weeks 2 days ago #88178

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

  • Posts: 213
  • Thank you received: 118

Replied by Rick Bassham on topic API for Rust

I haven't used Rust, but I wrote some libraries in Go to interface with indi. I haven't updated them in a while, but they should still be good. Might be a good way to at least see it implemented in another language other than C++.

github.com/goastro
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
2 weeks 19 hours ago #88228

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

  • Posts: 9
  • Thank you received: 0

Replied by Denis on topic API for Rust

Thanks for source code examples! I will try to write pure-rust API. Is it possible to see real XML data sent between EKos and Indi? I think examples of XML will make it easier to understand how Indi works
1 week 6 days ago #88249

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

  • Posts: 200
  • Thank you received: 45

Replied by nou on topic API for Rust

Run "indiserver -v indi_simulator_ccd indi_simulator_telescope" set new profile in ekos with remote address 127.0.0.5 and then run wireshark on localhost to snoop any messages.

Don't leave localhost in as address because then it seems use socket pipe and wireshark doesn't capture it.
Last edit: 1 week 6 days ago by nou.
1 week 6 days ago #88253

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

  • Posts: 9
  • Thank you received: 0

Replied by Denis on topic API for Rust

Thanks! But I already thought about sniffing of TCP. I was hoping that Indi could log communication with clients to a file
1 week 6 days ago #88256

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

  • Posts: 434
  • Thank you received: 156

Replied by Jarno Paananen on topic API for Rust

Adding -vvv to indiserver command line shows the full xml messages as well.
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 week 6 days ago #88265

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

  • Posts: 9
  • Thank you received: 0

Replied by Denis on topic API for Rust

This is what I was looking for. Thanks!
1 week 6 days ago #88283

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

  • Posts: 9
  • Thank you received: 0

Replied by Denis on topic API for Rust

Indi response consists of multiple XMLs. How to find out which XML is the latest one?

For this indilib.org/develop/developer-manual/106...ent-development.html how to understand
<deftextvector ...
is the last one?
1 week 1 day ago #88471

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

Time to create page: 0.993 seconds