×

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

Bi-monthly release with minor bug fixes and improvements

Connect multiple SBIG CCDs

  • Posts: 5
  • Thank you received: 0
Hi together, I hope, someone can help me with my problem:
(I use: Linux Mint 19.1, Intel x86, PyIndi)

I have two SBig CCDs: a STXL-6303 and a STF-8300. One should be at a spectrograph and the other one is for guiding.
How do I set up the indiserver properly, so that I can speak to both? I tried to use:
mkfifo /tmp/indififo
indiserver -p 7624 -v -f /tmp/indififo &
echo start indi_sbig_ccd -n \"STF-8300\" > /tmp/indififo
echo start indi_sbig_ccd -n \"STXL-6303\" > /tmp/indififo
and then connect to the indiserver using python and pyindi:
spec_indiclient.setServer("localhost", 7624)
gd_indiclient.setServer("localhost", 7624)
dev_spec = spec_indiclient.getDevice("STF-8300")
dev_gd = gd_indiclient.getDevice("STXL-6303")
spec_connect = dev_spec.getSwitch("CONNECTION")
gd_connect = dev_gd.getSwitch("CONNECTION")

But this let me connect only to the first camera. Even when I first try connect to the STXL, the connection is made to the STF.
The output on the console is:

FIFO: start indi_sbig_ccd -n "STF-8300"
With name: STF-8300
FIFO: Starting driver indi_sbig_ccd
2019-09-02T11:25:20: Driver indi_sbig_ccd: pid=6702 rfd=4 wfd=7 efd=8
2019-09-02T11:25:20: Client 5: new arrival from 127.0.0.1:58124 - welcome!
2019-09-02T11:25:22: Driver indi_sbig_ccd: OpenDriver: CC_OPEN_DRIVER successfull
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on Telescope Simulator.GEOGRAPHIC_COORD
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on Focuser Simulator.ABS_ROTATOR_ANGLE
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on CCD Simulator.FILTER_SLOT
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on CCD Simulator.FILTER_NAME
2019-09-02T11:25:22: Driver indi_sbig_ccd: snooping on SQM.SKY_QUALITY
new device STF-8300

and:

FIFO: start indi_sbig_ccd -n "STXL-6303"
With name: STXL-6303
FIFO: Starting driver indi_sbig_ccd
2019-09-02T11:25:24: Driver indi_sbig_ccd: pid=6707 rfd=6 wfd=11 efd=12
2019-09-02T11:25:24: Client 9: new arrival from 127.0.0.1:58126 - welcome!
new device STF-8300
2019-09-02T11:25:26: Driver indi_sbig_ccd: OpenDriver: CC_OPEN_DRIVER successfull
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on Telescope Simulator.GEOGRAPHIC_COORD
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on Focuser Simulator.ABS_ROTATOR_ANGLE
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on CCD Simulator.FILTER_SLOT
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on CCD Simulator.FILTER_NAME
2019-09-02T11:25:26: Driver indi_sbig_ccd: snooping on SQM.SKY_QUALITY
new device STXL-6303
new device STXL-6303


and the second time I don't get the connection switch.

With KStars and Ekos I can connect to both, if I select port USB1 for the STF and port USB2 for the STXL.

So, how can I tell the indiclient/server, that it shall connect to the USB2 device?

Thanks in advance
Daniel
4 years 7 months ago #42803

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

I'm not versed in pyINDI, but maybe try to use one client object instead of two? Because each client object would receive the two devices and then you just get to choose which one you want to talk to.. if my understand is correct.
4 years 7 months ago #42809

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

  • Posts: 5
  • Thank you received: 0
Thanks for your answer, but as far as I understood from the SBig info page (www.indilib.org/devices/cameras/sbig-ccd.html, bottom) the indi_sbig_ccd driver supports only one camera per driver:
[cite: "The SBIG driver only support one-camera-per-driver, so if you have more than one SBIG camera, you need to start a dedicated instance to each camera."]
I still tried it, but as I expected, it did not work either.
It shows the same error, so i think, it looks at the same USB port. (In KStars USB1).

Any other suggestions?
Thanks,
Daniel
4 years 7 months ago #42818

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

Yes, that's correct. But this is not what I was suggested. I was suggesting using one pyINDI client to connect to the server running the two SBIG cameras. Maybe this is a bug in pyINDI.. can you use indi_setprop to connect each one individually?
4 years 7 months ago #42832

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

  • Posts: 5
  • Thank you received: 0
Oh, okay.
That can probably be what I need. My problem now is that:
indi_setprop STXL-6303.DEVICE_PORT_TYPE.USB 2=On
does not work, since there is a whitespace between USB and 2. How do I set a property like this?

Thanks again!
Daniel
4 years 7 months ago #42838

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

How about this?
indi_setprop "STXL-6303.DEVICE_PORT_TYPE.USB 2=On"
4 years 7 months ago #42841

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

  • Posts: 5
  • Thank you received: 0
I tried this, but unfortunately indi does not accept this. I still get:
Malformed assignment: USB
Purpose: set one or more writable INDI properties
1.8.0-tgz
...
(And the same with "\" before space.)
4 years 7 months ago #42847

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

You're correct, indi_setprop fails with this. I just updated it in GIT so please recompile INDI and test with the updated version.
The following user(s) said Thank You: Craig, Paulchen Panther
4 years 7 months ago #42947

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

  • Posts: 5
  • Thank you received: 0
Thanks a lot!

It now works!
4 years 7 months ago #43004

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

Time to create page: 0.685 seconds