Helge replied to the topic 'Update port or baud rate' in the forum. 3 weeks ago

Hi Jasem,

Many thanks for the explanation and for providing the mentioned Skeleton drivers!

In my reference code for the Pololu stepper controller, there are a couple of configurations defined, for instance:

www.pololu.com/docs/0J71/12.5

// Turn off any options that might interfere with our ability to send and
// receive raw binary bytes.
options.c_iflag &= ~(INLCR | IGNCR | ICRNL | IXON | IXOFF);
options.c_oflag &= ~(ONLCR | OCRNL);
options.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);

// Set up timeouts: Calls to read() will return as soon as there is
// at least one byte available or when 100 ms has passed.
options.c_cc[VTIME] = 1;
options.c_cc[VMIN] = 0;

Are similar settings also initiated in the course of establishing the connection (upon pressing the connect button), or do I have to take of that in the driver myself?

Best, Helge

Read More...

Helge replied to the topic 'Update port or baud rate' in the forum. 3 weeks ago

Hi Paul,

Congrats on the ASCOM driver - would be curious to learn more about your project at some stage!

Thanks for pointing me to the github libraries. I found here in line 242 and following what I was looking for, especially line 255 which seems to be the one opening the port.

github.com/indilib/indi/blob/master/libi...nplugins/ttybase.cpp

But how does it work? When „handshake“ is called, what is the „chain of events“ that the above lines of code are executed? I am missing the kind of conceptual link. I have already been reading some tutorials about c++ programming and have some basic ideas about the concept of classes, but this is beyond my skills, but would be very keen to understand the logic!

I also looked at some other drivers, like onstep, smartfocus, nstep and can see that they all use the handshake - in that sense they are similar.

Best, Helge

Read More...

Helge replied to the topic 'Update port or baud rate' in the forum. 3 weeks ago

Hi Paul,

I actually tried already whether it can be addressed by sending the „energize“ command. I wonder if it might have been wrong to send this command within the „handshake“ function, in-between the {} brackets?

Still wonder where in the code the port is actually opened, if this is not taking place during the handshake, how does the driver know the value for PortFD, where are the options set, as it happens within the Pololu code example - or is it technically not required. Probably I am ignoring something very basic.

Unfortunately I have no experience with ASCOM, so I cannot help. Amazing to here about the difference in speed, depending on OS. Hope you soon find a solution!

Best, Helge

Read More...

Helge replied to the topic 'Update port or baud rate' in the forum. 3 weeks ago

Hi, in principle, the focuser works as it is supposed to, but upon connection, I am having difficulties to get the stepper going (in the Ticgui I am getting an error message, which says that the stepper has been de-energized because of a “safe start violation error“. Once clicking on the resume button, it is all working.

I started to compare the code example on the Pololu website, to compare it to my driver. Thanks to the incredible support of Paul, I am now leveraging on the INDI API. Practically, there is a function called „handshake“, which I assumes opens up the serial port. Unfortunately, I do not find anything in the documentation what is exactly happening code-wise, for instance is something like this implemented, or any options set, or is there e.g. a tcflush command applied?
fd = open(device, O_RDWR | O_NOCTTY);

Many thanks in advance for any support!

Helge

Read More...

Helge replied to the topic 'Wireless Access Point Setup for Raspberry Pi 3 B+ Ubuntu MATE' in the forum. 3 weeks ago

Hi Steve,

I went thru this a few months ago, when setting up my miniPC running on Ubuntu 18.04.

The solution I found is described here see post #32430:

www.indilib.org/forum/general/4259-setti...ntu-18-04-64bit.html

Good luck!

Helge

Read More...

Helge replied to the topic 'Sharing Mini PC find, ideal for embedded INDI/KStars' in the forum. 4 weeks ago

I have this one, stable and fast, especially thanks to the USB 3.0 I receive images from the cam in 1-2 seconds, instead of 20 seconds with the Pi. Also can run KStars / Ekos on the mini PC and access via realVNC. This is to me the better option in case for some reason the connection between client and host gets interrupted, - I can just reconnect.

www.csl-computer.com/shop/shop_content.php?conID=408

I am sorry that this website seems to be available in German only, but the main features are internationally readable.

Read More...

Helge created a new topic ' How to back up my Ubuntu PC?' in the forum. 1 month ago

If I may have a more general question on how to back up my system. After weeks of getting my system on Ubuntu 18.04 up and running, I am increasingly worried that I could accidentally ruin the installation.

I have a mini PC, the operating system is on a eMMC kind of drive. On top, I plugged on a ssd drive with 64 GB which in theory I could also use to save the back up.

What is the safest way to create a back up, from which I can restore the system as it is? For the Pi I was simply creating an image for the sd card, but I am not sure how that works for a pc?

Best, Helge

Read More...

Helge replied to the topic 'Something wrong with GPSD configuration' in the forum. 1 month ago

All fine, ultimately got a „fix“. Looks like all the settings were fine. To figure out, I was walking around in the neighborhood with parts of my equipment, and a bit further away from buildings, I got the desired „fix“. Probably people were wondering, what the strange guy is doing! :-)

Read More...

Hi, in case it helps, at the bottom you find a procedure I found here on the forum (TSECKLER) some time ago:

github.com/HelgeMK/TicFocuserBT

Good luck! Helge

Read More...

Helge replied to the topic 'Something wrong with GPSD configuration' in the forum. 1 month ago

Many thanks for sharing, still no luck. Will keep on trying!

Read More...

Helge replied to the topic 'Something wrong with GPSD configuration' in the forum. 1 month ago

Dear Radek,

in a way, things seem improving, at least I can see the time...but still no position data...(i.e. no fix)

Attached, please find the output when entering the command as suggested, in addition what I see on gpsmon.

One thing I still wonder about: the gpsd file stored under /etc/default : what should be included? I commented out (with #) those lines that initiate to start the GPSD daemon upon boot as well as the sentence on USB hotplugging. Is that right? Maybe this has been causing the blocking of the port?

Read More...