×

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

Bi-monthly release with minor bug fixes and improvements

indi_sx_ccd not working

  • Posts: 19
  • Thank you received: 0

indi_sx_ccd not working was created by SB

Hello;

I have installed INDI and I am able to work perfectly with a sbig camera.

Now I want to use a CoStar camera. However, when I write in the console:
indiserver indi_sx_ccd

does not work. The response is:
2016-09-16T12:46:26: startup: indiserver indi_sx_ccd

but nothing more. In the case of SBIG, the response is:
2016-09-16T12:53:01: startup: indiserver indi_sbig_ccd
2016-09-16T12:53:03: Driver indi_sbig_ccd: OpenDriver: CC_OPEN_DRIVER successful

So I am not able to capture any image with the CoStar camera. The same occur with Ekos. It seem to conect well with the driver, but it take an infinite time to take a photograph.
I(I have PyIndi installed, but i do not think it is affecting INDI)

Any idea please?
7 years 7 months ago #10279

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

  • Posts: 712
  • Thank you received: 174
Can you try to run sx_ccd_test and lsusb commands? Peter
7 years 7 months ago #10282

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic indi_sx_ccd not working

(SBIG works perfectly in Virtualbox)
s@s-VirtualBox:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1278:0517 Starlight Xpress CoStar
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
s@s-VirtualBox:~$ indiserver sx_ccd_test
2016-09-16T15:01:52: startup: indiserver sx_ccd_test 
2016-09-16T15:01:52: Driver sx_ccd_test: sxList: 'CoStar' #1 [0x1278, 0x517] found
2016-09-16T15:01:52: Driver sx_ccd_test: sxOpen: libusb_open -> OK
2016-09-16T15:01:52: Driver sx_ccd_test: sxOpen: libusb_get_config_descriptor -> OK
2016-09-16T15:01:52: Driver sx_ccd_test: sxOpen: libusb_claim_interface(1) -> OK
2016-09-16T15:01:54: Driver sx_ccd_test: sxGetCameraModel: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:01:56: Driver sx_ccd_test: sxGetCameraParams: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:01:58: Driver sx_ccd_test: sxSetTimer: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:02:00: Driver sx_ccd_test: sxGetTimer: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:02:02: Driver sx_ccd_test: sxClearPixels: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:02:04: Driver sx_ccd_test: sxLatchPixels: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:02:14: Driver sx_ccd_test: sxReadPixels: libusb_control_transfer -> LIBUSB_ERROR_TIMEOUT
2016-09-16T15:02:14: Driver sx_ccd_test: sxClose: libusb_close
2016-09-16T15:02:14: Driver sx_ccd_test: stderr EOF
2016-09-16T15:02:14: Driver sx_ccd_test: restart #1
2016-09-16T15:02:14: Driver sx_ccd_test: sxList: 'CoStar' #1 [0x1278, 0x517] found
... and from here to the infinity
7 years 7 months ago #10283

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

  • Posts: 712
  • Thank you received: 174
It seems, that camera is detected, but doesn't communicate at all. I suppose it is VirtualBox problem, we had this kind of issues before. Can you try native Linux or at least some other virtualisation software? Peter
7 years 6 months ago #10284

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic indi_sx_ccd not working

I tried a native debian for two hours, but I was unable to install correctly indi in debian.
I also tried in other different virtualbox with ubuntu and the same occurred:
SBIG works fine, CoStar does not work.
On monday I will try again to install on a debian machine for test if "indiserver indi_sx_ccd" is working or not.
7 years 6 months ago #10288

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic indi_sx_ccd not working

Hello again;

This weekend i tried with a friend's computer which has fedora as native operative system. The result was the same:
when i tried
indiserver indi_sx_ccd
it said:
startup: indiserver indi_sx_ccd
and nothing more occurred.
However, when I tried to initialize the sbig driver, it worked.
Any idea about how to solve this?
7 years 6 months ago #10310

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic indi_sx_ccd not working

Another date;
when starting this camera from ekos, the INDI Control Panel says:
2016-09-19T16:26:00: Device configuration applied. 
2016-09-19T16:26:00: Error: Invalid range for X. Valid range is from 0 to -1. Requested value is 0 
2016-09-19T16:26:00: Upload settings set to client only. 
2016-09-19T16:26:00: Loading device configuration...
but i can not figure how to change that X range, since it seem that does not correspond to any buttom in ekos
7 years 6 months ago #10311

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

  • Posts: 712
  • Thank you received: 174

Well, output is OK, nothing more should occur on the command line :)

But again, try sx_ccd_test first (just this, no indiserver) and if it will not work, driver will not work as well and it makes no sense to start Ekos. I can't say what's wrong, maybe camera is broken, maybe cable. Does it work under windows?
7 years 6 months ago #10312

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic indi_sx_ccd not working

Thank you for your response;
I will try to solve it and if I arrive to a solution, I will write it here.
Last edit: 7 years 6 months ago by SB.
7 years 6 months ago #10323

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

  • Posts: 712
  • Thank you received: 174
Thank you and let us know. Peter
7 years 6 months ago #10328

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic indi_sx_ccd not working

Sorry again;

I identify the problem. It is related with the timming between messages in the usb. Maybe 1)it can not be fixed due to the use of virtualbox or 2)maybe it can be fixed by increasing the timeout of the communication.
To test the second hypothesis I am trying to modify the "indi-sx" file, located in the "3rdparty" folder. In lines 114 and 115, it say:
#define BULK_COMMAND_TIMEOUT        200
#define BULK_DATA_TIMEOUT           1000
and I want to write:
#define BULK_COMMAND_TIMEOUT        300000
#define BULK_DATA_TIMEOUT           300000

However, the mode I instaled INDI is through:
sudo apt-add-repository ppa:mutlaqja/ppa
sudo apt-get update
sudo apt-get install indi-full

For example, in the SBIG file (remember that SBIG driver works fine in virtual box), the (I think) equivalent line says:
define MAX_THREAD_WAIT     300000
which is much higher than in the case of sx

Any idea of how can I compile INDI with that modification in that file?
Last edit: 7 years 6 months ago by SB.
7 years 6 months ago #10330

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

  • Posts: 712
  • Thank you received: 174
Hi, you don't need to make a driver, just sx_ccd_test. Try

cmake .
make sx_ccd_test

You omitted one zero in both numbers, there is actually 2 second timeout for command and 10 second for bulk download. This is plenty of time even for 16MPx SX-36 full frame download (tested). These 2,000 and 10,000 in SX driver are in miliseconds (libusb timeout) and 300,000 in SBIG driver is in microseconds (usleep delay) and means something different, you can't compare it.

In your particular case (sx_ccd_test execution) libusb_bulk_transfer in sxGetCameraModel (line 338) with 10 second timeout failed (libusb_control_transfer in the log is typo, my fault). There is no chance, that longer value can help, there is some other issue. If you want to try something, comment out the content of sxGetCameraModel() function (lines 328-348), maybe this command is not supported in this camera for some reason (we had this issue with sxGetFirmwareVersion before).

What software do you use on Windows and are you sure, that camera firmware is not reflashed to work with this software?
What libusb version do you have on your linux? Is camera connected to USB 2.0 or USB 3.0 port? Is there some hub involved and is it powered?

Peter
7 years 6 months ago #10331

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

Time to create page: 0.787 seconds