Jat replied to the topic 'Sbig ST7E - Invalid sbiglpt0 port' in the forum. 8 years ago

According to a litle research and the SBIG forum, the SBIG INDI driver is based on the SBIG universal driver, which doesn't support the parallel port anymore.

Thank you,
Tamás

Read More...

Jat replied to the topic 'Sbig ST7E - Invalid sbiglpt0 port' in the forum. 8 years ago

I have tried to connect ST7E parallel port with SBIG driver, but I have got the following error message: Device not found.
I have tied sbiglpt0, sbiglpt1...
The libsbigudrv0 and libsbigudrv2 packages are installed.
I use LUbuntu
I have /dev/parport0, and I created a link /dev/lpt0, but it was not working.
How can I connect to ST7E via parallell port?

Thank you,
Tamás

Read More...

Jat replied to the topic 'gPhoto symbol problem' in the forum. 8 years ago

Is it happend again?
After update, we are not able to use CCD Simulator.

The similar symbol problem.

Thank you,
Tamás

Read More...

Jat replied to the topic 'INDI4Java' in the forum. 8 years ago

If I use URL.setURLStreamHandlerFactory(new INDIURLStreamHandlerFactory());, I have an other exception.

This code is usefull: static { INDIURLStreamHandlerFactory.init(); } (based on Remote Observatory)

Thank you,
Jat

Read More...

Jat replied to the topic 'INDI4Java' in the forum. 8 years ago

It was working.

Thank you very much!
Jat

Read More...

Jat replied to the topic 'INDI4Java' in the forum. 8 years ago

7264 is working also.
I have tried it with Android client, and it was working.

Thank you,
Jat

Read More...

Jat replied to the topic 'INDI4Java' in the forum. 8 years ago

My code is:

import java.io.IOException;
import java.util.Date;
import java.util.HashMap;

import org.indilib.i4j.client.INDIDevice;
import org.indilib.i4j.client.INDIProperty;
import org.indilib.i4j.client.INDIServerConnection;
import org.indilib.i4j.client.INDIServerConnectionListener;
import org.indilib.i4j.client.INDIDeviceListener;
import org.indilib.i4j.client.INDIPropertyListener;


public class IndiClient implements INDIServerConnectionListener, INDIDeviceListener, INDIPropertyListener
{
private INDIServerConnection connection;

public IndiClient()
{
String host = "localhost";
int port = 7264;

connection = new INDIServerConnection(host, port);
/*
connection.addINDIServerConnectionListener(this);

try {
connection.connect();
connection.askForDevices(); // Ask for all the devices.
} catch (IOException e) {
System.out.println("Nem lehet kapcsoldni a szerverhez.");
System.exit(-1);

}

*/
}


@Override
public void connectionLost(INDIServerConnection arg0) {
// TODO Auto-generated method stub

}

@Override
public void newDevice(INDIServerConnection arg0, INDIDevice arg1) {
// TODO Auto-generated method stub

}

@Override
public void newMessage(INDIServerConnection arg0, Date arg1, String arg2) {
// TODO Auto-generated method stub

}

@Override
public void removeDevice(INDIServerConnection arg0, INDIDevice arg1) {
// TODO Auto-generated method stub

}


@Override
public void propertyChanged(INDIProperty<?> arg0) {
// TODO Auto-generated method stub

}


@Override
public void messageChanged(INDIDevice arg0) {
// TODO Auto-generated method stub

}


@Override
public void newProperty(INDIDevice arg0, INDIProperty<?> arg1) {
// TODO Auto-generated method stub

}


@Override
public void removeProperty(INDIDevice arg0, INDIProperty<?> arg1) {
// TODO Auto-generated method stub

}




}


The exception:

Exception in thread "main" java.lang.IllegalArgumentException: illegal indi url
at org.indilib.i4j.client.INDIServerConnection.<init>(INDIServerConnection.java:119)
at IndiClient.<init>(IndiClient.java:22)
at Main.main(Main.java:6)
Caused by: java.net.MalformedURLException: unknown protocol: indi
at java.net.URL.<init>(URL.java:414)
at java.net.URL.<init>(URL.java:303)
at org.indilib.i4j.client.INDIServerConnection.<init>(INDIServerConnection.java:117)
... 2 more


Thank you very much!

Read More...

Jat replied to the topic 'INDI4Java' in the forum. 8 years ago

When I try to connect INDI Server, I have got this fault:

java.net.MalformedURLException: unknown protocol: indi

What should be wrong?

Thank you,
Jat

Read More...

Jat replied to the topic 'INDI4Java' in the forum. 8 years ago

No, I'm not.

Read More...

Jat created a new topic ' INDI4Java' in the forum. 8 years ago

I try to write a client with INDI4Java. I have checked the tutorials and the IPARCOS-master also, but I have a problem to import INDI libary.
I use Eclipse. I have tried to import all *.jar from i4j-all-in-one-1.50-SNAPSHOT, but it could'nt help.

How can I import INDI4Java libary? And is there any other examples?

Thank you,
Tamás

Read More...