×

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

Bi-monthly release with minor bug fixes and improvements

indi_sx_ccd *2?

  • Posts: 33
  • Thank you received: 4

indi_sx_ccd *2? was created by Krzysztof

Hello
I am trying to figure out how to connect two SX Lodestar x2 (One is mono and second is Colour) cameras and can not find any information about it beside the one that indi_sx_ccd driver should cover both at once.
Both cameras work separately without any problems, but if I connect both at once only one is visible through indi.
I have been trying "the FIFO way"+rename as was described in the topic with 2*SBIG but still no success.
I'm using raspberry pi 2 for indiserver and as clients:
- Indi Control Panel (OS X)
- AstroImager (OS X)
- Ekos VM (Virtualbox on OS X)
- iINDI (iOS)
none of the clients can see 2nd camera, nor can i see any problem in indiserver logs.
I must be doing something wrong, any clues how this can be achieved?

Thanks in advance
Chris
8 years 2 months ago #6725

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

Replied by Jasem Mutlaq on topic indi_sx_ccd *2?

Where are you starting the drivers? What is Ekos VM used for?
8 years 2 months ago #6728

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

  • Posts: 33
  • Thank you received: 4

Replied by Krzysztof on topic indi_sx_ccd *2?

Indiserver is on raspberry pi. It is started during boot with script. At the beginning I have used direct driver starting with single command line like this
indiserver -v indi_sx_ccd
But yesterday I have also tried method which You have suggested in topic with 2*SBIG cameras which looks in my case like this
mkfifo /tmp/INDIFIFO
 indiserver -v -f /tmp/INDIFIFO
echo 'start indi_sx_ccd' > /tmp/INDIFIFO
echo 'start indi_sx_ccd -n "SX CCD LodeStar C"' > /tmp/INDIFIFO
"Ekos VM" - I have used it as a client, Kstars+Ekos.
8 years 2 months ago #6730

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

  • Posts: 193
  • Thank you received: 46

Replied by Gerry Rozema on topic indi_sx_ccd *2?

I'm not set up to test right now, but, from what I've seen in the more recent sx drivers, they auto-detect camera types etc, based on vid/pid. What I'm wondering out loud, is if the problem is because it's not correctly handling the case of two cameras with the same id? And possibly working on the assumption there will only ever be one camera of each type on the system ?
8 years 2 months ago #6735

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

Replied by Jasem Mutlaq on topic indi_sx_ccd *2?

Chris you don't need to do it like SBIG since SBIG driver can only run ONE camera, but the SX driver can operate multiple cameras. Therefore, when you run indi_sx_ccd it is sufficient to operate the two cameras. First of all, make sure you camera is detected (run lsusb) and then run sx_ccd_test
sx_ccd_test

Post the output here.
8 years 2 months ago #6736

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

  • Posts: 33
  • Thank you received: 4

Replied by Krzysztof on topic indi_sx_ccd *2?

lsusb results - both Lodestar are visible
pi@pi:~ $ lsusb
Bus 001 Device 006: ID 1278:0507 Starlight Xpress Lodestar autoguider
Bus 001 Device 011: ID 148f:7601 Ralink Technology, Corp. 
Bus 001 Device 009: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 008: ID 134a:9024  
Bus 001 Device 007: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 005: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 004: ID 1278:0507 Starlight Xpress Lodestar autoguider
Bus 001 Device 010: ID 1278:0920 Starlight Xpress 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sx_ccd_test results
pi@pi:~ $ sx_ccd_test 
sx_ccd_test version 1.8
 
sxList: 'LodeStar' [0x1278, 0x507] found
sxList: 'LodeStar' [0x1278, 0x507] found
sxList() -> 2
 
testing LodeStar -----------------------------------
 
sxOpen: libusb_open -> OK
sxOpen: libusb_get_config_descriptor -> OK
sxOpen: libusb_claim_interface(1) -> OK
sxOpen() -> 1
 
sxGetCameraModel: libusb_control_transfer -> OK
sxGetCameraModel: libusb_control_transfer -> OK
sxGetCameraModel: INTERLACED MONO model 6
sxGetCameraModel() -> 70
 
sxGetCameraParams: libusb_control_transfer -> OK
sxGetCameraParams: libusb_control_transfer -> OK
sxGetCameraParams: chip size: 752 x 290 x 16, pixel size: 8.60 x 16.60, matrix type: fff
sxGetCameraParams: capabilities: STAR2K
sxGetCameraParams: serial ports: 51
sxGetCameraParams(..., 0,...) -> 1
 
sxSetTimer: libusb_control_transfer -> OK
sxSetTimer(900) -> 1
 
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer() -> 900
 
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer() -> 0
 
sxClearPixels: libusb_control_transfer -> OK
sxClearPixels(..., 0) -> 1
 
sxLatchPixels: libusb_control_transfer -> OK
sxLatchPixels(..., 0, ...) -> 1
 
sxReadPixels: libusb_control_transfer -> OK
sxReadPixels() -> 1
 
1530 1532 1503 1532 1498 1501 1522 1525 1512 1510 
1555 1516 1522 1522 1522 1499 1517 1512 1523 1505 
1530 1497 1476 1533 1545 1508 1525 1524 1494 1520 
1531 1544 1464 1532 1528 1532 1517 1516 1514 1533 
1531 1513 1540 1511 1531 1515 1541 1536 1506 1515 
1532 1505 1516 1540 1485 1532 1525 1522 1497 1513 
1520 1526 1554 1540 1498 1513 1532 1503 1512 1523 
1539 1534 1510 1502 1511 1507 1522 1512 1519 1530 
1548 1519 1520 1529 1546 1538 1489 1532 1507 1545 
1531 1518 1539 1500 1508 1520 1513 1521 1516 1500 
 
sxClose: libusb_close
sxClose() 
 
testing LodeStar -----------------------------------
 
sxOpen: libusb_open -> OK
sxOpen: libusb_get_config_descriptor -> OK
sxOpen: libusb_claim_interface(1) -> OK
sxOpen() -> 1
 
sxGetCameraModel: libusb_control_transfer -> OK
sxGetCameraModel: libusb_control_transfer -> OK
sxGetCameraModel: INTERLACED MONO model 6
sxGetCameraModel() -> 70
 
sxGetCameraParams: libusb_control_transfer -> OK
sxGetCameraParams: libusb_control_transfer -> OK
sxGetCameraParams: chip size: 752 x 290 x 16, pixel size: 8.60 x 16.60, matrix type: fff
sxGetCameraParams: capabilities: STAR2K
sxGetCameraParams: serial ports: 223
sxGetCameraParams(..., 0,...) -> 1
 
sxSetTimer: libusb_control_transfer -> OK
sxSetTimer(900) -> 1
 
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer() -> 900
 
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer: libusb_control_transfer -> OK
sxGetTimer() -> 0
 
sxClearPixels: libusb_control_transfer -> OK
sxClearPixels(..., 0) -> 1
 
sxLatchPixels: libusb_control_transfer -> OK
sxLatchPixels(..., 0, ...) -> 1
 
sxReadPixels: libusb_control_transfer -> OK
sxReadPixels() -> 1
 
1182 1163 1193 1199 1186 1182 1159 1156 1164 1206 
1179 1180 1189 1187 1180 1166 1171 1165 1168 1179 
1189 1199 1187 1189 1178 1160 1168 1178 1172 1153 
1208 1186 1160 1194 1151 1171 1194 1190 1148 1167 
1182 1204 1194 1188 1182 1199 1154 1182 1179 1152 
1187 1212 1173 1186 1169 1179 1220 1166 1193 1168 
1188 1188 1187 1175 1190 1196 1191 1197 1141 1158 
1195 1181 1174 1197 1189 1176 1167 1162 1175 1164 
1175 1182 1159 1157 1169 1174 1170 1199 1140 1158 
1153 1159 1165 1196 1175 1186 1182 1207 1182 1192 
 
sxClose: libusb_close
sxClose() 
isn't it testing the same camera twice?
sxGetCameraModel: INTERLACED MONO model 6
8 years 2 months ago #6738

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

  • Posts: 33
  • Thank you received: 4

Replied by Krzysztof on topic indi_sx_ccd *2?

I tried again sx_ccd_test with only Colour Lodestar connected and again it was reported in test as "sxGetCameraModel: INTERLACED MONO model 6".
8 years 2 months ago #6739

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

  • Posts: 193
  • Thank you received: 46

Replied by Gerry Rozema on topic indi_sx_ccd *2?

color and mono lodestar are the same camera, the only difference, they put a chip with bayer filters in one, and without in the other.

I suspect the issue is something to do with two 'identical' cameras (they are identical electrically) not resolving between the two correctly. It'll be a few days before I can set up a test, but I do have two sxv-h9 cameras here, so, should be able to replicate this issue using those.
8 years 2 months ago #6741

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

  • Posts: 193
  • Thank you received: 46

Replied by Gerry Rozema on topic indi_sx_ccd *2?

Thinking about this some more, brings up a dumb question. When you run the sx driver (one instance) and connect to the indi server, does it show you two lodestar cameras ? If it shows you two lodestar cameras when you connect, then it is likely working correctly, but not differentiating between color and mono in the name it shows you.
8 years 2 months ago #6742

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

  • Posts: 712
  • Thank you received: 174

Replied by Peter Polakovic on topic indi_sx_ccd *2?

I'm afraid this driver can handle multiple cameras, but not multiple cameras of the same type (VID/PID). I know what is the problem and will look at it... Peter
8 years 2 months ago #6743

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

  • Posts: 33
  • Thank you received: 4

Replied by Krzysztof on topic indi_sx_ccd *2?

Gerryr
This is exactly the problem, when You connect to indi server there is only one camera.
Last edit: 8 years 2 months ago by Krzysztof.
8 years 2 months ago #6744
Attachments:

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

  • Posts: 712
  • Thank you received: 174

Replied by Peter Polakovic on topic indi_sx_ccd *2?

The problem is, the even if two cameras with the same VID/PID are detected, they have the same name and they can't be distinguished over INDI protocol. I'll change it in the way, that the first camera will be named "Lodestar", the second one "Lodestar #2" etc. This should solve the problem.
8 years 2 months ago #6745

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

Time to create page: 1.027 seconds