Don replied to the topic 'How to determine Device Type' in the forum. 3 years ago

Yes, that is the property I needed. Thanks!

Read More...

Don created a new topic ' How to determine Device Type' in the forum. 3 years ago

I've been working a bit on a pure Swift library that parses INDI messages. So I have been looking at the XML that is send over the socket. 
What I'm trying to do now is to determine the type of device (e.g. mount, focusser, filter wheel, CCD, ...) from the information I get from the INDI server.
I hoped that there would be an attribute that would indicate the device type. But there does not seem to be one. So I guess, I need to determine the device type from the propertyVectors I get from the device.

Is there any standard set of properties that are used for different device types?
And, do all device drivers use the same propertyVector name for the same concept (such as EQUATORIAL_EOD_COORD for equatorial coordinates)? Or do different drivers use different names for the same concept?

Many thanks,
Don
 

Read More...

I've been able to get it working. Unfortunately I don't really know what the problem was. There was a timing issue but I don't think that is the whole story. Anyway, I can now send the <getProperties version="1.7"> string and get the appropriate response back in software.
Thanks for thinking with me.

Read More...

I seem to be able to connect with nc:

$ nc pizero.local 7624 -vz
nc -vz pizero.local 7624
nc: connectx to pizero.local port 7624 (tcp) failed: Connection refused
nc: connectx to pizero.local port 7624 (tcp) failed: Connection refused
Connection to pizero.local port 7624 [tcp/indi] succeeded!

As you can see, the connection is first refused twice and succeeds the third time.
If I try to connect from software, the connection gets refused (TCP error 61).

Read More...

Yes, I was able to do all that. My problem is that I cannot connect using sockets from my own program.
I get a permission denied error back so that might mean that the port is not open. But then why am I able to connect using kStars?
I assume that no authentication is needed?

Thanks

Read More...

Hi,

I'm trying to connect to a INDIServer that runs on my Raspberry pi zero W on the default port from software (Swift on Mac OS).
Unfortunately I am not that familiar with socket programming so my question might be somewhat basic.
What kind of socket (or what kind of protocol) do I need to connect to the INDI server. I've tried TCP and HTTP sockets, but they do not seem to work. I get a permission denied error. At first I'm just trying to send <getProperties version="1.7"/> to the server.

I am able to connect to the server from kStars running on my Mac.

Thanks,
Don

Read More...