×

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

Bi-monthly release with minor bug fixes and improvements

Indi support for Meade LS (Autostar III) series

  • Posts: 17
  • Thank you received: 0
Hi!
I am not Linux geek. Please see the attached picture. Don't know what to do.
7 years 10 months ago #8510
Attachments:
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
Sorry. I was too brief. On the second look at your logs I have noticed that the cdc_acm serial driver is actually trying to talk to the device but fails. So my previous idea was wrong. I think that Jasem's guess that the cdc_acm driver needs to be patched to support this usb-serial chip. Unfortunately without knowing what is really inside this seems to be next to impossible.
7 years 10 months ago #8511
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
If you still want to get the scope working under Linux we can try to sniff the USB traffic of the windows driver to figure out how to talk to the device. Yo would need to install a USB snooper under windows and record the initial sequence when the scope is connected. I can guide you with this if you decide to do it. Are you primarily windows or Linux user?
7 years 10 months ago #8514
The topic has been locked.
  • Posts: 17
  • Thank you received: 0
Hi Jochym!
Many thanks for your help. I really am interested to control this telescope under linux Kstars. I am primarily a Windows user, but have 3-4 months experience of using linux ubuntu. I have Raspberry pi3 loaded ubuntu mate 16.04LTS, installed kstars-bleeding. I have connected the telescope in the windows8.1 machine and ran Cartes de ciel planetarium software and used usb analyzer to monitor the telescope port. Please download the USBlyzer software capture log from this google drive link:

drive.google.com/file/d/0ByntE7ZqdSzoTTZ...WDg/view?usp=sharing

It's a html exported file. download and open it with browser.

Thanks.
7 years 10 months ago #8515
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
This is interesting - what operations have you performed during the monitoring? This will help me decipher the conversation.
7 years 10 months ago #8517
The topic has been locked.
  • Posts: 17
  • Thank you received: 0
I open the USBlyzer software. Connected the telescope usb cable. Then it appears into the usb list of the software. I selected ETX LS Telescope at COM4 and select start capturing. Then the software started logging. I opened Cartes de ciel planetarium software, opened the control panel and press connect button to connect the telescope with the software. Then I give the telescope a command to slew to Alpha Aris star. Then stopped capturing and export the log.
7 years 10 months ago #8518
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
Good. Thanks. I was hoping for such short action. It looks like the part we need to decipher is actually quite short. Just a few initial commands.
Would it be possible for you to boot linux and get us output of

lsusb -v -d 04cc:0000

This will help identify the enpoints of the device
7 years 10 months ago #8519
The topic has been locked.
  • Posts: 17
  • Thank you received: 0
Please find the attached screen shots.
7 years 10 months ago #8520
Attachments:
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
Thanks. To test my next idea we need to modify the driver a little.
Prepare your system to build a custom module.
You need to install:
linux-headers
build-essential
linux-source 
(technically you do not need the last one, but it is the simplest way to get the files)

Extract the kernel source somewhere (we only need two files from there)
get the cdc-acm.c and dcd-acm.h files from the drivers/usb/class directory in the kernel tree and copy to some working directory (e.g. src/meade-serial/ in your home directory).
Put the following code in the file: Makefile in the same directory:
obj-m := cdc-acm.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
There must be tab before $(MAKE) in last line.
next run make in this directory. This should build cdc-acm.ko module.
run:
sudo modprobe -r cdc-acm
sudo insmod cdc-acm.ko
and check the logs (it should load but fail exactly the same - we did not change anything yet). Get back here and I will tell you what to change next.
Good luck!
The following user(s) said Thank You: Evgeniy
Last edit: 7 years 10 months ago by Paweł. Reason: Typo
7 years 10 months ago #8522
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
Now for the modifications. They are actually simple.
Find the line in cdc-acm.c containig (around line 1760):
        { USB_DEVICE(0x2912, 0x0001), /* ATOL FPrint */
        .driver_info = CLEAR_HALT_CONDITIONS,
        },
and insert following code below:
        { USB_DEVICE(0x04cc, 0x0000), /* Meade LS telescope */
        .driver_info = NO_UNION_NORMAL,
        },
 
just before comment about Nokia S60.

Save the file run
make
again and then run:
sudo modprobe -r cdc-acm
sudo insmod cdc-acm.ko

Disconnect and connect the scope afterwards and check the logs.
Last edit: 7 years 10 months ago by Paweł. Reason: line numeber in the file
7 years 10 months ago #8524
The topic has been locked.
  • Posts: 29
  • Thank you received: 2
Hi,
Did the problem get solved ?
6 years 11 months ago #15897
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
No. s21xt never got back to me.
6 years 11 months ago #15903
The topic has been locked.
Time to create page: 0.770 seconds