×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Baader Diamond Steeldrive not working

  • Posts: 35
  • Thank you received: 6
Hi Jasem

Ok, now I found the solution :lol:

You get me looking in just the right direction. The driver which linux (Ubuntu) is loading per default, was the CDC-ACM driver, which is wrong... I discovered this after your latest post.

When I read through the Readme.txt for the EXAR driver I found the solution :-)
Last edit: 8 years 1 month ago by Anders Lange.
8 years 1 month ago #7203

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

  • Posts: 983
  • Thank you received: 375
Hi Chris
These lines can make life easier for may of us using power hungry devices, such as CCDs

<code>max_usb_current=1</code>
to this file
<code>/boot/config.txt </code>

Apparently using this config in your raspberry might limit the need for using powered usb hubs. In my case I was able to run Atik TItan without a powered usb hub for the first time in my life. Thanks a lot!
The following user(s) said Thank You: Krzysztof
8 years 1 month ago #7208

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

  • Posts: 365
  • Thank you received: 32
I'm also interested in buying a Steeltrack focuser, did you have to have the remote control unit as well to be able to control it? And which driver exactly is used now?
7 years 9 months ago #9231

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

  • Posts: 35
  • Thank you received: 6
HI Supernov

No, you don't have to have the controlbox! But if you don't have/use it, you definitely need to ensure that you use a powered USB hub capable of delivering at least 1 Amp of current, otherwise the focus-motor won't have enough torque, to move a heavy load.
I use a powered, 7-port, D-Link USB hub, and a Y-USB Cable so the Focus-motor can draw power from 2 ports in the hub to ensure it gets enough power.

With regards to the driver, Both Ubuntu and Ubuntu-Mate (I use the latter on the Raspberry Pi-II I use to control my rig with) by default loads the CDC-ACM driver when the focus-motor is attached. This is the wrong driver! The correct one is the xr_usb_serial_common.

In order to get this to work on my Raspberry Pi-II with Ubuntu-Mate I needed to compile the xr_usb_serial_common driver my-self.
To do this I had to follow these steps:
## Step-1: Update to latest kernel and get kernel headers
$ sudo rpi-update
## Step-2: Install kernel headers to enable building kernel modules
## 	(http://www.ploxiln.net/rpi_kernel_modules.html)
 
 
$ export FIRMWARE_REV=`cat /boot/.firmware_revision`
 
$ export KERNEL_REV=`curl -L https://github.com/Hexxeh/rpi-firmware/raw/${FIRMWARE_REV}/git_hash`
 
$ curl -L https://github.com/Hexxeh/rpi-firmware/raw/${FIRMWARE_REV}/Module7.symvers >Module7.symvers
 
$ curl -L https://github.com/raspberrypi/linux/archive/${KERNEL_REV}.tar.gz >rpi-linux.tar.gz
 
$ sudo -s
[sudo] password ...:
$ cd /usr/src
$ mkdir rpi-linux
$ cd rpi-linux
$ tar --strip-components 1 -xf ${HOME}/rpi-linux.tar.gz
$ ls
arch     CREDITS        drivers   include  Kbuild   lib          mm      REPORTING-BUGS  security  usr
block    crypto         firmware  init     Kconfig  MAINTAINERS  net     samples         sound     virt
COPYING  Documentation  fs        ipc      kernel   Makefile     README  scripts         tools
 
$ modprobe configs
$ gunzip -c /proc/config.gz >.config
$ cp $HOME/Module7.symvers Module.symvers
 
$ make modules_prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
... a minute or two ...
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sortextable
 
$ ln -sv /usr/src/rpi-linux /lib/modules/$(uname -r)/build
?‘/lib/modules/4.1.18-v7+/build?’ -> ?‘/usr/src/rpi-linux?’
## Step-3: Prevent Ubuntu Mate from loading the cdc-acm driver at boot
 
$ sudo nano /etc/modprobe.d/blaclist.conf
 
add the following lines to the bottom of the file:
 
# The CDC-ACM driver prevents the ex_usb_serial_common driver from loading
blacklist cdc-acm
## Step-4: Force Ubuntu Mate to load the EXAR driver at boot
 
$ sudo nano /etc/modules
 
add the following the a new line in the file
 
xr_usb_serial_common
 
copy the module to a suiteable folder in the "`uname -r`/kernel/drivers"
 
$ cd /lib/modules/`uname -r`/kernel/drivers/usb/serial/
$ sudo cp /usr/src/xr_usb_serial_common/xr_usb_serial_common.ko .
The following user(s) said Thank You: Jasem Mutlaq, Vincent Groenewold
Last edit: 7 years 9 months ago by Anders Lange.
7 years 9 months ago #9235

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

Regular users won't be able to do that. Do we need to patch the kernel to make it load this driver for the focuser?
7 years 9 months ago #9240

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

  • Posts: 35
  • Thank you received: 6
I think that would be a very good idea! I have no clue how to do that myself however, so I hope you would be ready to make the fix....
7 years 9 months ago #9247

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

  • Posts: 365
  • Thank you received: 32
Is this already in development? I can most likely do what is described here (many many thanks for that!) but if not needed anymore, that would be nice to know. I have it in order right now. ;)
7 years 8 months ago #9678

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

  • Posts: 365
  • Thank you received: 32
Hi Anders,

Thanks again for the script! I followed a lot of it, but this line fails:
$ ln -sv /usr/src/rpi-linux /lib/modules/$(uname -r)/build
?‘/lib/modules/4.1.18-v7+/build?’ -> ?‘/usr/src/rpi-linux?’

I think the version put in there depends on my update? Which is 4.4.19. And it says that there's no such directory called ‘/usr/src/rpi-linux?’. If I remove the ' marks and question marks, it says /usr/src/rpi-linux is a directory. Obviously. :)

There also is no /usr/src/xr_usb_serial_common which may be related to the above?
Last edit: 7 years 7 months ago by Vincent Groenewold.
7 years 7 months ago #10020

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

  • Posts: 35
  • Thank you received: 6
Hi Supernov

Sorry for not answering your email/message, I've been very busy at work the last couple of days.

It's been a while since I used the "scipts", but if I recall correctly, only the lines preceeded by a $ should actually be executed. All other lines are the expected output, as I saw at the time I ran the "scripts". So I would expect the kernel modules to have a slightly newer/higher version number at this time.

Hope this helps, if not please write again.
7 years 7 months ago #10034

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

  • Posts: 365
  • Thank you received: 32
No worries! I'm very busy as well, so totally understandable. :) Glad you have this posted!

So, that line after the ln symbolic link, isn't the output. But at least the link was created succesfully. However, there's no /usr/src/xr_usb_serial_common so I can't copy it either. I don't see it being created really, where in the script should that happen?

Thanks a lot!
7 years 7 months ago #10036

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

  • Posts: 35
  • Thank you received: 6
Hi Supernov

I'm very sorry, I just discovered that I forgot to descripe the perhaps most important step in the process: compiling the actual driver!
All these steps, are only done in order to make it possible to build the driver from the source, on the Raspberry Pi.

So after Step-3, but before running the commands in Step-4, you should compile the Exar driver.
You can download the source from here: EXAR Serial Common driver

After you downloaded the source, extract and store the files in the following directory:
/usr/src/xr_usb_serial_common

The run Make in the above mentioned directory.

Now you should be able to complete the commands in Step-4.

If you experience any issues, please have a close look at the ReadMe file accompanying the EXAR source files, and if doubt you are welcome the write me again :-)

Best regards
Anders Lange
The following user(s) said Thank You: Vincent Groenewold
7 years 7 months ago #10037

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

  • Posts: 365
  • Thank you received: 32
I figured something like that was missing. ;) Thanks a lot for your help man, really appreciated!
7 years 7 months ago #10038

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

Time to create page: 0.353 seconds