Wolfgang Birkfellner replied to the topic 'OnFocus and SkySafari' in the forum. 1 month ago

hi!
as said before, i did not encounter that problem with Linux...
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'OnFocus and SkySafari' in the forum. 1 month ago

Hi as far as the windows protocol is concerned, i have not tried it. there is one issue - i do not use the temperature sensor,and i do not use the display. if you do, there might be a problem because the temperature sensor is connected to A4 in the original sketch, which is also a I2C pin for the display. i changed that to A0, but as said, i do not use the display or the sensor. i can send you my modified sketch. this works fine with EKOS ...
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'OnFocus and SkySafari' in the forum. 1 month ago

Hi! Only trìed ekos ... how can i help? Lg wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'Connect stepper driver via USB' in the forum. 1 month ago

hi!
yes. the microcontroller on that board communicates via USB and drives the stepper :)
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'OnFocus and SkySafari' in the forum. 1 month ago

hi!
well, you need an arduino nano and a A4988 driver basically - here is the page i referred to: hansastro.github.io/Focuser/

this sketch works fine with INDI. I also made a PCB for that focuser - see attachment.
yours wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'Connect stepper driver via USB' in the forum. 1 month ago

hi!
the stepper is not driven by messages, it is driven by 5V on/off pulses at a certain update rate. this you cannot send via USB.
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'Connect stepper driver via USB' in the forum. 2 months ago

hi!
the pi is preemptive. it is possible that it does not send pulses for a certain amount of time to the stepper. at that point the stepper stops. no big issue for a focuser. driving a stepper with USB directly is no good idea. USB sends 64 byte chunks ... a puls signal is hard to convey that way. the hansastro code is great, btw ...
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'SkySafari Support for INDI' in the forum. 2 months ago

hI!
in my previous screenshot you see that the servers shuts donw - this is the effect of my brutal countermeasure.this screenshot now is the traffic if i don't shutdown on server side; this is a server that is setup the way W. R.Stevens taught us: bind - listen - accept - recv/send and so on: the first two packets are the connect request (SYN) from SSafari (192.168.4.12) and the accept from the server (192.168.4.1); what follows is a little chitchat, and then (packets 8 and 9) - BLAM (SSafari closes the connection with a FIN). 1.3 ms later it begs for a new connect (packet 9) ... the socket on the server side is, however, dead at that point in time, it was half closed ....

... took me 1.5 weeks to figure this out ...
yours wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'SkySafari Support for INDI' in the forum. 2 months ago

SkySafari 6

Read More...

Wolfgang Birkfellner replied to the topic 'SkySafari Support for INDI' in the forum. 2 months ago

hi!
this i cannot say - however, look at the traffic:
SSafari (192.168.4.12) sends a request (SYN) and is accepted by the server (192.168.4.1)
SSafari sends an LX command (:GR#) in this case
Server responds
SSafari ACKnowledges and does a FIN signal
the remainder is the result of my reaction as i shutdown socket (that is the RST)
SSafari sends another SYN and is, in this case accepted again.

If I don't do this, SSafari sends a FIN and a millisecond later a SYN request comes in. in this case, no RST takes place. I do not claim to be the worlds greatest programmer or expert on TCP/IP, but to this looks as if they kill the client on their side after each write. QTCPServer sockets "tolerate" this, I do not know why yet. BSD standard sockets react on that FIN signal ...
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'SkySafari Support for INDI' in the forum. 2 months ago

Hi! I found the problem. Sky Safari closes the socket after each write and tries to reconnect. If you don't take care of this on the other side, the socket is dead for further reads. This is in my opinion a bug in SkySafari - or they tried to "flush" the socket with the close command. a workaround is to set the server socket to reuse the port (SO_REUSEADDR) and to set it to immediate shutdown (using SO_LINGER with 0s grace period). If the server closes the receiving socket using "shutdown" and "close", and starts accepting incoming connections immediately after each "write" to SkySafari, it works somehow ...
yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'OnFocus and SkySafari' in the forum. 2 months ago

hi!
i adopted an arduino sketsh from hansastro.io and made a small PCB - this one drives now my feathertouch, and the Lacerta OctoFoc and a Moonlite Focuser of colleagues - works like a charm with INDI ... do you want to take a look at that stuff?

yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'SkySafari Support for INDI' in the forum. 2 months ago

Hi!
sorry for bringing up an old topic - but I wrote a LX200 client (that works with KStars, CdC and so on), and I encounter the same problem. When connecting via SkySafari 6 on an android device, connection is established, :GR# is received, a reply is being sent and then the socket (i use standard C++ and the classical socket mechanism). After that send, the socket goes into an "Bad Address" state and further requests are being ignored. Could that be the problem? And does anyone have an idea how this can be solved?

BTW, it works with QTCPServer seockets, which is even more mysterious to me ...

yours
wolfgang

Read More...

.... and now - with cases including a dark shutter for the 7" touchscreen :)
yours
wolfi

Read More...

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!