Eric Vickery replied to the topic 'TCP / UDP connections' in the forum. 2 weeks ago

jaimea wrote: Thanks, hope you had a great Thanksgiving!

Yes, the ::connect is definitely doing something (it's called also for UDP), but as far as I know this should only set the default destination address:port.

In fact I'm able to send, and my equipment receives, packets using the standard tty_write... But I totally fail to receive. I was expecting / hoping to see a "bind" or "recvfrom" in your code B) ... no luck. So for me the mystery is how you are able to receive from the mount. But your code is nice and clear and I can't find the answer.

I still have a few things to try, eventually will manage to have this working, I hope.

Thanks for your time!

jaime


Glad to try and help. Unfortunately I am out of ideas.

Read More...

Eric Vickery replied to the topic 'TCP / UDP connections' in the forum. 2 weeks ago

jaimea wrote: After digging a bit I still don't get how you manage to receive messages using the standard tty_read functions - as far as I know a bind or recvfrom is required, and I find none!

In my tests, using the code "as is", I can get data sent to destination, but nothing received.

Enlightenment, pleaseeee?

(I must say I'm a bit surprised of finding gemini specific code in the indicom files - I can understand sometimes there's no other way, though)

Thanks


Sorry for the delayed response. The Thanksgiving holiday kept me busy.

I think the ::connect() call on line 140 in connectiontcp.cpp handles the bind if the socket type is STREAM. Other than that sockets works basically the same whether it is a STREAM or DATA_GRAM socket.

I didn't really want to put Gemini specific code in indicom.c but I didn't want to duplicate all the tty code either. So I decided that a bit of Gemini specific code in indicom.c was the lesser of two evils.

Read More...

Jasem Mutlaq thanked Eric Vickery in topic TCP / UDP connections 3 weeks ago
Eric Vickery replied to the topic 'TCP / UDP connections' in the forum. 3 weeks ago

I am the one who added UDP support. It is used in the Gemini telescope driver.

The UDP support was not designed to be a server or to do broadcast messages, just as an alternate way to connect other than TCP.

Read More...

Eric Vickery replied to the topic 'Losmandy Gemini 2 stops responding to slew commands' in the forum. 3 weeks ago

I think it may have to do with the Western GoTo Limit. Like Jasem said the software causes a meridian flip by issuing a goto with the same coordinates. What I think is happening is that if the mount has not crossed (or gotten close to) the Western GoTo Limit then the mount won't flip. I do not have a complete understanding of exactly how this setting works but if you haven't you should join the Gemini Yahoo group. There are many Gemini experts on that group that could explain the settings much better than I can.

Read More...

Eric Vickery replied to the topic 'Focusing Question' in the forum. 3 weeks ago

knro wrote: It's in the code:

if (fabs(targetPosition - initialFocuserAbsPosition) > maxTravelIN->value())

So it checks against current position vs initial position at all times to make sure it is within range.

There is documentation in INDI site, but here is a more up-to-date one: stellarmate.com/support/ekos/focus.html


Your link explained it great. The only issue I have that is not answered in the documentation is why does it make such large adjustments. I will take a look in the code and see if I can understand what is happening.

Read More...

Eric Vickery thanked Jasem Mutlaq in topic Focusing Question 3 weeks ago
Eric Vickery replied to the topic 'Losmandy Gemini 2 stops responding to slew commands' in the forum. 3 weeks ago

knro wrote: Ekos doesn't do meridian flip per se. When the mount cross the meridian and Ekos wants to "flip it", it simply issues a new GOTO command to the _same_ coords the mount is already tracking. Mounts (depending on their settings) would then automatically perform the meridian flip.


That is the way I understand that the Gemini systems works as well. I think there are some settings in the Gemini that control how far past the meridian it will track before it flips.

Most of the targets I have been imaging since I got the mount are close enough to the meridian that my mount will tend to start out pointing west and looking "back" past the meridian to the east so no flip is necessary during the session.

Read More...

Eric Vickery replied to the topic 'Focusing Question' in the forum. 3 weeks ago

knro wrote: You can limit how much it moves by adjust the Max Travel value. You can select a different algorithm to see if you can get better results.


Does Max Travel mean the max the focuser can travel each movement or the total it can travel during the entire focusing sequence?

I have tried different algorithms with the same results.

Is there any documentation on how each setting works? Or maybe a video?

Read More...

Eric Vickery thanked Jasem Mutlaq in topic Focusing Question 3 weeks ago
Eric Vickery replied to the topic 'Losmandy Gemini 2 stops responding to slew commands' in the forum. 3 weeks ago

I didn't do anything specific in the Gemini driver code to handle a meridian flip. I think the meridian flip is handle deeper in ekos/indi.

I have seen a few messages like the one you mention but it never seemed to cause me any trouble so I didn't track it down further.

Read More...

Eric Vickery created a new topic ' Focusing Question' in the forum. 3 weeks ago

When I use the focus module I notice a couple of strange things. It could very well be that I don't know how to use it correctly (have some settings wrong).
Usually when the focus is complete the HFR is slightly larger than when it started.
On some occasions during the focusing it will make a big movement which takes it way out of focus. Usually it corrects itself on the next movement but I am wondering why it makes these big movements.

Maybe if someone could point me to some explanation of the what all the settings do that would help me get everything correct.

Read More...

Eric Vickery replied to the topic 'Problem Compiling on MacOS' in the forum. 3 weeks ago

rlancaste wrote: Ok, I got phonon to build using the homebrew based qt for the cmake build. KStars builds fine after that.

Use the options build-kstars.sh -ciq and it will work.

Not sure why phonon would not build using the regular qt package yet, but the home-brew one works for now, so thats fine.


I finally got it to compile with having to use the homebrew qt. But I had to install many of the KF5 modules by hand because the script would end up failing to build some of the modules because it couldn't find one of the requirements. This could have been initially caused by phonon not compiling which lead to a cascade of issues but I'm not sure. I don't really want to delete KF5 and see if the issue is fixed because I can finally build kstars again and that is what matters to me.

Read More...

Eric Vickery replied to the topic 'Ability To Setup Sequences Without INDI Running' in the forum. 4 weeks ago

I had not thought about trying to make the simulator mimic my camera, that would be much easier than freezing to death ;)

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!