Wolfgang Birkfellner replied to the topic 'Re:Bug in handling the :MS# command in LX200 Basic' in the forum. 4 days ago

Hi!
So I shall locate the error and take are of this, and then issue a pull request? ok ...
yours wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'Re:Bug in handling the :MS# command in LX200 Basic' in the forum. 1 week ago

hi!
erm ... i am not familiar with the abbreviation “PR”. There is a workaround since most programs i have tried do not give a ... about the :MS# response, so if it is omitted, at least sky safari, cdc and kstars work fine. but it should be fixed as it is really in the LX200 protocol ...
yours wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'How to improve RA Guiding' in the forum. 1 week ago

hi!
well, in my opinion EKOS guiding would be fine IF there would be an aggressiveness factor for RA and Dec ...
yours
wolfi

Read More...

Wolfgang Birkfellner created a new topic ' Bug in handling the :MS# command in LX200 Basic' in the forum. 2 weeks ago

hello!
after working on my telescope controller TSC for a while, I finally came back to solving an issue that bugged me for a while. I had/have the following problem.

  • when connecting to the controller via LX200 Basic, all works fine
  • when issuing a Slew command, the command is carried out but the position display in kstars is wrecked

after playing around in my code, I think i found the reason; "Slew" issues three commands, the desired position Sr and Sd, and a "Slew possible" command, :MS#.
Sr and Sd await a response, 1 if the coordinate is reasonable or 0 otherwise. I respond with "1" to each of these commands. Now here is the strange thing. INDI should
  • send Sr ... and wait for the answer
  • send Sd ... and wait for the answer
  • send MS and wait for the answer

well, it does not; it sends Sd and MS as one command and apparently, does not expect two replies. as a result, the declination string and the RA string are read in the wrong order, and declination and RA are exchanged - which leads to a totally chaotic display, of course.

if i do not reply to :MS# as required in the LX200 protocol, everything is fine ...
yours
wolfi

Read More...

Wolfgang Birkfellner created a new topic ' Odd behaviour in LX 200 basic when slewing' in the forum. 4 months ago

hi!
I am working on a new version of my telescope driver, TSC, and i discovered an odd behaviour when connecting via LX200 basic to the controller. usually, position is requested by the separate LX200 commands - :GR# and :GD# - and the controller repsonds and everything is displayed nicely in kstars. BUT if i initiate a slew via kstars, kstars/INDI starts sending :GR#:GD# as a single string. usually i can cope with this as other programs like cdc do the same - BUT here, the position hops all over the place in kstars. funny enough, it is not reported in the wrong fashion but apparently INDI interprets the response string in an erratic fashion. i can cope with this on the controller side, but it is irritating and apprently, sending a separate right ascension and decliniation string is not being resolved by INDI the way it should be.

so here is my question: what kind of response does INDI expect when sending a composite LX200 command. and why does it do that after all?

yours
wolfi

Read More...

Wolfgang Birkfellner replied to the topic 'OnFocus and SkySafari' in the forum. 10 months 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. 10 months 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. 10 months 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. 10 months 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. 10 months 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. 10 months 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. 10 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. 10 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. 10 months ago

SkySafari 6

Read More...