×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Connect multiple SBIG CCDs

1 week 6 days ago
pPanther
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Connect multiple SBIG CCDs #42803
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

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

1 week 6 days ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Connect multiple SBIG CCDs #42809
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.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 6 days ago
pPanther
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Connect multiple SBIG CCDs #42818
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

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

1 week 5 days ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Connect multiple SBIG CCDs #42832
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?

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 5 days ago
pPanther
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Connect multiple SBIG CCDs #42838
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

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

1 week 5 days ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Connect multiple SBIG CCDs #42841
How about this?
indi_setprop "STXL-6303.DEVICE_PORT_TYPE.USB 2=On"

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 5 days ago
pPanther
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Connect multiple SBIG CCDs #42847
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.)

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

1 week 3 days ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Connect multiple SBIG CCDs #42947
You're correct, indi_setprop fails with this. I just updated it in GIT so please recompile INDI and test with the updated version.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You pug916, pPanther

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

1 week 2 days ago
pPanther
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Connect multiple SBIG CCDs #43004
Thanks a lot!

It now works!

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

Time to create page: 0.640 seconds