Changes in Camera Remote SDK connection status¶
The table below shows the connection status of the Camera Remote SDK, using some cases of connection and disconnection between the Camera Remote SDK and the camera as examples.
No.
User operation
Physical(USB)
Camera Remote SDK
Connection status with the camera
DeviceHandle | Camera communication thread
Main Loop(*1)
Sub Loop(*2)
Case 1 Connect/Disconnect transition
1
Connect the camera to the PC
Disconnected -> Connected
-
-
-
2
Call Connect() function
Connected
Disconnected -> Connected
✓ (generate)
run
run
stop
3
Call Disconnect() function
Connected
Connected -> Disconnected
✓
stop
stop
stop
4
Call ReleaseDevice() function
Connected
-
-(removed)
-(removed)
Case2 Physical disconnect and recovery transition
1
Connect the camera to the PC
Disconnected -> Connected
-
-
-
2
Call Connect() function
Connected
Disconnected -> Connected
✓ (generate)
run
run
stop
3
Remove the USB cable
Connected -> Disconnected
Connected -> Reconnecting
✓
run
stop
run
4
Reconnect the USB cable
Disconnected -> Connected
Reconnecting -> Connected
✓
run
run
stop
Case3 Physical disconnect and timeout transition
1
Connect the camera to the PC
Disconnected -> Connected
-
-
-
2
Call Connect() function
Connected
Disconnected -> Connected
✓ (generate)
run
run
stop
3
Remove the USB cable
Connected -> Disconnected
Connected -> Reconnecting
✓
run
stop
run
4
5 minutes passed
Disconnected
Reconnecting -> Disconnected
✓
stop
stop
stop
Note : If CrReconnecting_OFF is specified for the fourth parameter of the Connect(), automatic reconnection will not be performed in all cases.