Disable RICOH THETA power off with API and offDelay


#1

Tutorial to use RICOH THETA S API v2.1 to set offDelay. This will prevent the camera from turning off automatically.


#2

Hi is it the same funktion as to turn off Sleep Mode
in the Settings ?


#3

Nice find. Thanks for sharing that. There is a setting for sleepDelay and for offDelay in the API. I thought that they were different, but I am not sure.

This is what it says for offDelay

Standby time (sec.) until the power automatically turns OFF.

This is what it says for sleepDelay

Standby time (sec.) until sleep.

So, is sleep the same as off? What’s the difference? Maybe in sleep, the application can still wake up the camera? I notice that there is a boot time for the camera. Maybe the boot time is faster when it wakes from sleep? Or, it’s possible that sleep and off are the same.

there is information in the online manual here.

Automatically Turning Off the Camera Power When the Camera is Not in Use

If no operations are performed for a further 5 minutes after the camera enters the sleep mode, the power turns off (for example, if 3 minutes are set, the power turns off after 8 minutes).

The documentation is unclear. If I disable sleep, does it mean that the camera never turns off? I should try this.

I think there must be some difference between sleep and off. However, I do not know what it is.


#4

We can do the same thing over USB cli using libptp and ptpcam,

ptpcam --set-property=0xd802 --val=0

https://developers.theta360.com/en/docs/v2/usb_reference/property/auto_power_off_delay.html


#5

@orikoon, thanks for the tip. Are you building a cool project that uses the USB API. I’d love to hear about it. Can you start and stop the video ptpcam? I’ve had some problems stopping the video with ptpcam on Raspberry Pi jessie. If you have it working, can you let me know your OS, version of OS, and version of ptpcam you are using.

Appreciate any help you can provide. I tried to get ptpcam working to stop video recording, but I have not been successful.


#6

@orikoon, thanks for the tip. Are you building a cool project that uses the USB API. I’d love to hear about it. Can you start and stop the video ptpcam? I’ve had some problems stopping the video with ptpcam on Raspberry Pi jessie. If you have it working, can you let me know your OS, version of OS, and version of ptpcam you are using.

I’m using Ubuntu 14.10 and libptp2 1.2.0. Actually, my project does not use the video features but I tested the following command and it worked nicely.

First, To set video mode :

ptpcam --set-property=0x5013 --val=0x8002

And start shooting :

ptpcam -R 0x101C

Finally, stop shooting :

ptpcam -R 0x1018,0xFFFFFFFF

I hope this may help you!

https://developers.theta360.com/en/docs/v2/usb_reference/operation/initiate_open_capture.html
https://developers.theta360.com/en/docs/v2/usb_reference/operation/terminate_open_capture.html


RICOH THETA API Over USB Cable - (S, V, SC models)
#7

Thank you, it does help. You’re the man!