×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

ScopeDome

  • Posts: 472
  • Thank you received: 165

Replied by Jarno Paananen on topic ScopeDome

Some details would help, do you have the older USBCard 2.1 or newer Arduino based controller? Do you use USB or ethernet connection? Have you set the card type, port and baud rate correctly (9600 for Arduino card, 115200 for USBCard 2.1) before connecting? Also if you can enable debug logging in Ekos and post the snippet on connection would clarify things if those don't help.
Last edit: 1 year 2 months ago by Jarno Paananen.
1 year 2 months ago #89323

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Thank you for your reply.
I am using linux UBUNTU 22.04
This is ARDUINO with 9600
I sent you the logs
Very often when the scopedome connects, immidiatly after it deconnects
When I arrive to connect it, it is working very well.
Thank you
The following user(s) said Thank You: Jarno Paananen
1 year 2 months ago #89324
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 472
  • Thank you received: 165

Replied by Jarno Paananen on topic ScopeDome

Thanks, that shows the issue, the driver crashes for an error in the base library:

[2022-12-31T22:24:21.884 CET DEBG ][ org.kde.kstars.indi] - INDI Server: "2022-12-31T21:24:21: Driver indi_scopedome_dome: Impossible ISState 81"

This is probably an uninitialized variable coming from somewhere (the valid values are 0 and 1), which would be easy to find with a debugger and breakpoint at the error print in sstateStr function in indidevapi.c. If you can do that if would help a lot, but I can try to pinpoint the source as well. If you could enable driver debug logs as well, it might help narrow it down. My own dome has the older USBCard 2.1 controller so it's better tested, but I have the Arduino controller at hand too, though not connected to actual dome.
1 year 2 months ago #89325

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Thank you,
Wherecan I find "sstateStr" and "indidevapi.c"
I am not a specialist in linux !
1 year 2 months ago #89326

Please Log in or Create an account to join the conversation.

  • Posts: 472
  • Thank you received: 165

Replied by Jarno Paananen on topic ScopeDome

If you have compiled INDI yourself and/or have the source, then indidevapi.c is in libs/indicore directory and sstateStr function is part of that file, error print is on line 682 in current head git version. Running indiserver under debugger is a bit complicated due to multiple processes being involved, Ekosdebugger utility helps a bit with that. But I have a first intuition where the problem might be, have to add some more initialization code.
1 year 2 months ago #89328

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

I have not compile indi by myself, I follow the method of the site "indilib.org" ->get indi -> ubuntu
Tomorrow I will try to see the indi source.
So now I wish you a happy new year
Thank you very much
1 year 2 months ago #89330

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Good morning,
Thank you very much,, now the scopedome is connecting very easily
But now, eqmod and AAGcloudwatcher don't want to connect
I am very sorry about this.
1 year 2 months ago #89339

Please Log in or Create an account to join the conversation.

  • Posts: 472
  • Thank you received: 165

Replied by Jarno Paananen on topic ScopeDome

It might be that the serial port assignments have changed, Linux seems to assign /dev/ttyUSB devices randomly every reboot so it's better to bind them to unique names either with udev rules or by using the Ekos serial port assistant. In my case my EQDir adapter and ScopeDome controller both use the same FTDI USB-serial chip and have to be identified by their serial numbers. For example I have in /etc/udev/rules.d/99-indi.rules file lines such as this for my EQDir adapter:

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A700Q6JZ", SYMLINK+="mount"

which creates a symlink /dev/mount which I then use as port in EQMod driver. You can get the correct values for your devices with "lsusb -v" command and create separate rules for your mount, cloudwatcher and scopedome and they don't get mixed up.
1 year 2 months ago #89342

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Thank you, I will look at this and I will inform you .
I hope this will function
Thank you very much for your answers
1 year 2 months ago #89343

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Sorry but EDMOD does not connect, it disappears as soon as it is connected

I have these ports :
ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 janv. 1 20:05 usb-Arduino__www.arduino.cc__0042_95032303837351D04142-if00 -> ../../ttyACM1 : SCOPEDOME
lrwxrwxrwx 1 root root 13 janv. 1 20:05 usb-FTDI_FT232R_USB_UART_A10K713T-if00-port0 -> ../../ttyUSB0 : EQMOD
lrwxrwxrwx 1 root root 13 janv. 1 20:05 usb-Pegasus_Astro_UPBv2_revD_UPB277HPKB-if00-port0 -> ../../ttyUSB1 PEGASUS UPB
lrwxrwxrwx 1 root root 13 janv. 1 20:05 usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 -> ../../ttyUSB2 : AAG CloudWatcher
lrwxrwxrwx 1 root root 13 janv. 1 20:05 usb-u-blox_AG_-_www.u-blox.com_u-blox_7_-_GPS_GNSS_Receiver-if00 -> ../../ttyACM0 : GPSD
So I am trying to connect the EQMOD with ttyUSB0 as it is noted above
I am always verifing these ports when connecting the items
1 year 2 months ago #89344

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Plea

File Attachment:

File Name: log_22-27-41.txt
File Size:42 KB
se find in attachment the log file of EQMOD
1 year 2 months ago #89346
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1

Replied by sylvie on topic ScopeDome

Hello ,
I reinstall KUBUNTU 22.04 and indi, etc...on the laptop and now the EQMOD is connected but the scopedome 2m is very hard to connect
So everything is connected on the first attempt except the scope dome and after 4 or 5 attempts (sometimes more !) finely it is connecting.
but very often I have the errors :
: [ERROR] Error writing command: Write Error: Input/output error. Cmd: moveDome=CCW:6
: [ERROR] Error writing command: Write Error: Input/output error. Cmd: getStatus
So I have to disconnect and reconnect the scopedome and often I don't arrive to reconnect it.

Thank you
1 year 2 months ago #89390

Please Log in or Create an account to join the conversation.

Time to create page: 1.397 seconds