×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Indi support for Meade LS (Autostar III) series

  • 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!
P.
The following user(s) said Thank You: Evgeniy
Last edit: 6 years 4 months ago by Paweł. Reason: Typo
6 years 4 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.
P.
Last edit: 6 years 4 months ago by Paweł. Reason: line numeber in the file
6 years 4 months ago #8524
The topic has been locked.
  • Posts: 29
  • Thank you received: 2
Hi,
Did the problem get solved ?
5 years 6 months ago #15897
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
No. s21xt never got back to me.
P.
5 years 6 months ago #15903
The topic has been locked.
  • Posts: 3
  • Thank you received: 0
I have MEADE LS 6 for 5 years. I will happily continue.
4 years 7 months ago #23775
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
Do you have the same problem?
P.
4 years 4 months ago #26242
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
I mean do you want to work on making the mount talking to indi?
This will involve compiling your own serial drivers for the kernel and at least moderate poking around the linux system. Are you up for this?
And we may end empty-handed for our efforts...
P.
4 years 4 months ago #26243
The topic has been locked.
  • Posts: 17
  • Thank you received: 0
Hello! I am not expert in Linux. I think if you write a detail procedure of writing serial driver for the kernel (for newbie in linux/raspberry pi) will be helpful for future experimenters. I am now operating it with Cartes du Ciel in windows and it is running nice! I don't want to do experiment with this anymore!

Thank you for your help.
4 years 4 months ago #26244
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
Good for you s21xt!
I figured it was not worth it for you. I was talking to jpatka - to make sure he is up for it.
The actual modification is quite simple but to apply it you need to perform few steps.
Do you have ubuntu or debian system you can use for this work?
If not which linux distro are you most comfortable with?
P.
4 years 4 months ago #26245
The topic has been locked.
  • Posts: 3
  • Thank you received: 0
Yes. Im have the same problem.
I think it's worth trying to do it.
4 years 4 months ago #26246
The topic has been locked.
  • Posts: 200
  • Thank you received: 57
What about my other questions
system you can use? preferably debian/ubuntu?
how familiar are you with linux? (how many years?)
I just want to keep the conversation on most effective level.
I actually think it may be just a serial driver problem, and after fixing this it may just start working^TM ;)
P.
4 years 4 months ago #26247
The topic has been locked.
  • Posts: 3
  • Thank you received: 0
I know 20 years of linux. But I'm not strong. I work on it. Debian or Ubuntu is ok. I started with Mandriva, SUSE. Now only Debian and Ubuntu.
4 years 4 months ago #26248
The topic has been locked.
Time to create page: 0.804 seconds