×

INDI Library v1.9.5 Released (08 Mar 2022)

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

INDI for Java still alive?

  • Posts: 5
  • Thank you received: 1
Hi,

my name is Andreas and I am new to this forum.

A while ago I have built my own mount controller based on a RaspberryPi and an Arduino Due.
I have already written an ASCOM driver for it and it works fine. Now I would like to write an INDI driver for my controller.
As I am an experienced Java developer I would like to do that in Java. So I looked at the INDI for Java website and the corresponding Sourceforge repository. It looks as if there has not been much activity recently. Has this project come to halt? Does it still make sense to use it or would it be better to use the standard C/C++ approach?

I have downloaded the distribution 1.5 and tried to start the server (via the i4j-server-interactive script) but when I tried to connect to it from CdC I get the following message:

Debugger failed to attach: handshake failed - received ><getProperties< - expected >JDWP-Handshake<

Any input would be appreciated.

Best regards
Andreas
4 years 11 months ago #17229

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

Please use the official INDI library (C++ based) to develop any new drivers.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
4 years 11 months ago #17231

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

  • Posts: 5
  • Thank you received: 1
Hi Jasem,

does your answer mean that INDI for Java is dead?
That would be a shame, because it seems perfect for a platform independent approach.

Best regards
Andreas
4 years 11 months ago #17233

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

  • Posts: 314
  • Thank you received: 94

Replied by Oleg on topic INDI for Java still alive?

Hi Andreas,
is you the author of Regime?
www.andreasroerig.de/
You can try my open project Astronomy Linux
4 years 11 months ago #17234

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

  • Posts: 5
  • Thank you received: 1
Hi Oleg,

Yes I am the author of Regim.

Regards
Andreas
4 years 11 months ago #17235

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


I can't comment on the status of INDI for Java, you have to contact its author. If you need any help in the official implementation, let me know.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
4 years 11 months ago #17236

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

  • Posts: 144
  • Thank you received: 8
I fully agree, I believe that JAVA and Python integrations into KStars are important and should be supported. If there is a bug, it should be repaired.
4 years 11 months ago #17254

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

  • Posts: 5
  • Thank you received: 1
Hi,

ok, I was playing a bit around and it seems that the issue is related to the documentation.
I am now able to start an INDI server and load the telescope simulation driver with the following command from within the lib directory:
java -jar i4j-server-main-1.50-SNAPSHOT.jar -ji4j-driver-telescope-1.50-SNAPSHOT.jar

After that I was able to connect to the Server from within CdC and perform goto actions.
That is good news so now I can start to write my driver in Java.

Best regards
Andreas
The following user(s) said Thank You: Dan Holler
4 years 11 months ago #17258

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

  • Posts: 1941
  • Thank you received: 416
I started looking into this as well but I keep on getting the same exception and I don't know how to solve this despite my considerable Java knowledge (if I may say so myself). I am using Java 8 u151 and when I execute exactly that same command I get
i4j-all-in-one-1.50-SNAPSHOT/lib $> java -jar i4j-server-main-1.50-SNAPSHOT.jar -ji4j-driver-telescope-1.50-SNAPSHOT.jar
INDI for Java Basic Server initializing...
14:45:09.741 [main] INFO  o.i.i4j.server.main.INDIBasicServer - command print: INDI for Java Basic Server initializing...
Exception in thread "main" java.lang.IllegalStateException: no server access available
	at org.indilib.i4j.server.api.INDIServerAccessLookup.indiServerAccess(INDIServerAccessLookup.java:66)
	at org.indilib.i4j.server.main.INDIBasicServer.<init>(INDIBasicServer.java:86)
	at org.indilib.i4j.server.main.INDIBasicServer.main(INDIBasicServer.java:121)

Any idea what may be causing this?
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
4 years 3 months ago #22810

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

  • Posts: 1941
  • Thank you received: 416
Never mind, I contacted the i4j developers and asked for help with this.
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
4 years 3 months ago #22822

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

Time to create page: 0.831 seconds