Welcome, Guest. Please login or register.

Username: Password:

Author Topic: Initialisation problems  (Read 4471 times)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Initialisation problems
« on: August 30, 2017, 22:37:38 »

hi (again)

still debugging my arduino mega2560 hardware on linux/ubuntu config, using kstars/indilib with eqmod driver.
I've noticed two problems, i'm not sure if it's software relative or not...

1- on connection, intilialisation takes ages (20/30 seconds)
i've removed something on arduino board ("T1") to make sure everything is powered trough main power supply and not usb bus.
Problem is still the same. (it might be indi driver, but there no such behaviour with my EQ6 mount)

2- once connected, when i switch sideral tracking on, my RA motor doesn't move (but makes noise...)
then i make a quick slew, and then sideral tracking is OK
It might also be my stepper driver setup, i don't know...

Any help would -again- be appreciated...
Gilles.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Initialisation problems
« Reply #1 on: August 31, 2017, 18:27:05 »

I'll need to play with indilib again - they've made a few changes since I last tried it.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #2 on: August 31, 2017, 20:43:44 »

yes, indilib is moving a lot, and ... fast !
i'm still investigating, but no idea atm

About connection lag, i'm quite sure it's related to my arduino board, wich is one of these cheapo's found on eBay.
I'll try on windows if i can.

Logged

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #3 on: September 23, 2017, 23:12:37 »

some news about this, i've tried a few things

"Long connection" problem :
I've burned latest Atmega bootloader, with no luck.
it takes still ~10/20 sec to open serial communication.

"First tracking" problem :
this went away with TMC2100 drivers...
don't know why...

New "third problem" :
With this sequence :
1-unpark => ok
2-sideral tracking on => ok
3-slew somewhere => mount moves somewhere
4-park => return to home & park => ok
5-unpark => ok
6-sideral tracking on (again, yes) => KO :
RA motor starts to slew while it shouldn't... it should only start to sideral rate
I havn't this problem when playing on windows with Ascom
BUT EQ6 with EQMOD on linux doesn't do that either...
i'm lost here, even to find where the problem could be.
AstroEQ firmware ? Indi EQMOD driver ?

is there any other guy playing with such a setup ?
(linux/Indi+AstroEQ/Mega version)

Gilles.


Logged

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #4 on: September 24, 2017, 00:00:41 »

I think i've found somthing, it needs more tests, but :
Code: [Select]
sudo setserial /dev/ttyACM0 low_latency
=> initial lag connection is gone
=> unpark problem also !
 :)
Need more tests, but it's promising
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Initialisation problems
« Reply #5 on: September 26, 2017, 09:04:31 »

Let me know how it goes.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #6 on: September 26, 2017, 12:47:53 »

Hi
So far, the previous trick solved everything
But i need to test for real, weather near Paris is bad atm...

I'm very curious of my hack of tmc2100 driver, they are really smooth and quite
(very very quite : i believed first they were not running !)

Gilles.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Initialisation problems
« Reply #7 on: October 16, 2017, 22:57:51 »

Hi Gilles,

I've updated the AstroEQ firmware to include full support (theoretically) for the TMC2100.

I haven't got the drivers to hand so was wondering if you could you try the beta version for me?

The beta can be downloaded here: https://www.astroeq.co.uk/forum/index.php/topic,228.0.html

Kind Regards,
Tom.
« Last Edit: October 16, 2017, 23:07:06 by TCWORLD »
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #8 on: October 19, 2017, 12:38:52 »

great news !
(sorry for late answer)
i'll try that ASAP
Thank you
Gilles.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Initialisation problems
« Reply #9 on: October 19, 2017, 14:07:41 »

I've just uploaded a new beta version which should have gotten to the root cause of most of the issues you were facing with INDILib.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #10 on: October 19, 2017, 20:39:10 »

Ok, many good things here !
Initial connection problem is gone
first tracking is ok
no more unwanted moves...
Need more testing, but this is really much better with indi, thank you
(have to wait for clouds to leave...)

About TMC2100 : i'll answer on other topic

Gilles.
Logged

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: Initialisation problems
« Reply #11 on: February 20, 2018, 22:14:15 »

... back to this :
The initial track problem is still there, but i've (almost) solved the problem of initialization lag
I've soldered a 10uF capacitor between RST & +5V to avoid reset when a serial connection arrives
It might be not enough, i think i'll try other (greater) values...
Gilles.
BTW : TMC2100 are great
Logged