I understand, @craig.
I can just let @jcasman know what I’m doing by DMing or some other way, right?
But what kind of content should I send? I don’t know if I can send just the content to @jcasman because it might confuse him.
Would the following be sufficient?
Greetings
Brief self-introductions @craig asked me to introduce what I’m doing.
Contents(what I’m doing)
I’m waiting for your reply.
By the way, will the URL be posted here when the document is completed or published?
Translated from Japanese by DeepL
Is it @craig or @jcasman who says it’s okay to speak Japanese?
This is what it looked like when I tried it in my environment. Is it the same for all of you?
What I can see from this table is that, for now, it’s safe to use “ptpcam -R 0x101c,0,0,1”.
私の環境で試したところこんな感じになりました。みなさんも一緒ですか?
この表からわかることは、とりあえず、「ptpcam -R 0x101c,0,0,1」を使っておけば安泰ということですね。
Is there anyone can give me a complete guide of how to do API over USB Cable for Z1, as I am not a developer so it is kinda hard for me to understand the process. I want to try to do a factory reset to my Z1 using API, maybe it would fix the problems, as my Z1 won’t boot and keep getting error during the boot process.
As far as I know, there is no end-user application that controls the camera settings over the USB cable. People primarily use the USB API for custom robotics, surveillance and drone applications. Usually, they don’t put the application out since they use the application as part of another product.
You can try holding down the power and Wi-Fi buttons on your Z1 down for 18 seconds.
If you’re still stuck, you can use this testing app for Z1 that we built for internal use.
I’m glad if you can answer more than one questionnaire, rather than just choosing one from multiple options.
It would be even better if you could include Japanese as well. Translation is possible, of course, but we want to avoid fluctuation in the translation.
I have several updates to the USB API information at the site below. Most importantly, I have an example of how to turn on the THETA from a power off state using a Jetson Nano to send a USB power signal to the camera. Previously, I had only documented how to wake the camera up from sleep, put it to sleep or power off the camera.
I think the technique of powering on the camera from power off might be useful for robotics systems where the robot and associated power supply are off for a week. In this circumstance, having the camera be in sleep mode and then waking it up may not be sufficient.
This could also be useful for situations where the camera is remote and the area has suffered a power outage, eventually leading to the camera running out of battery and turning off. In that case, the technique described in the documentation may help to get the camera back to a powered on state that can then communicate using the USB API.
Different topic regarding Python bindings for USB API
I’m having problems using the Python bindings to gphoto2. Have you had more success, especially with setting the camera mode from still image to live streaming?
I have been using this example, but have not been able to use the full API.
I’ve started the build a test GUI using Dart with Flutter widgets and GTK on Linux. At the moment, I can just change between still image and live streaming with the buttons. I have many of the other commands built out, just not connected to buttons. At the moment, I’m using ptpcam behind the buttons. This makes it easier to manage the scripts I am building to test more of the camera USB API.
Hi,
Thanks alot for the updates. I have a setup where I want to control multiple 360 cameras from a raspberry pi. I was wondering if its possible using ptpcam. I tried connecting RICOH Z and RICOH V to my laptop and used ptpcam -i to check attached devices but its only able to show Z and when I disconnect Z It shows me V. I was wondering if I connect lets say 3 or 4 cameras to a RPI and try to get pictures from them how could it be done.
I tested on x86 as that was what I was working on at the moment. I can test on other devices, but it may take time. I’m assuming that you just need to specify the --dev and that you’re fine. If you’re still having a problem, please post again.
Test Environment
Ubuntu 20.04 on x86
libptp and ptpcam. compiled from source with patches. v 2-1.2.0 (assuming you have this working. If not please post again)
$ ptpcam --dev=041 --set-property=0x5013 --val=0x8005
Camera: RICOH THETA V (bus 0, dev 41)
'Still Capture Mode' is set to: [Normal]
Changing property value to 0x8005 [(null)] succeeded.
craig@cube:~$
$ ptpcam --dev=042 --set-property=0x5013 --val=0x8005
Camera: RICOH THETA Z1 (bus 0, dev 42)
'Still Capture Mode' is set to: [Normal]
Changing property value to 0x8005 [(null)] succeeded.
At this stage, I now have two cameras streaming into the same devices. I need to do more tests to manipulate both streams.
however, if your application is handing the stream and image processing already, then you should be good to go.
Other Ways to Grab Device ID
You can also grab the device ID with lsusb or libusb.
Walkthrough of compiling libptp and ptpcam on Raspian 10 buster using Raspberry Pi 3
Example uses libusb-compat with links to relevant GitHub repos our SourceForge downloads
Overview of options to use THETA USB API from the camera, including using subprocess or process from different languages such as Python and Dart. The example above uses Dart and Flutter on a Raspberry Pi 3 to send API commands to a THETA Z1 using the USB cable.
Added new section on using Raspberry Pi to turn on THETA from power off state. Previous technique only explained how to use an NVIDIA Jetson to turn on THETA. You can likely use an x86 computer, but it is more expensive.
Hello i have a RICOH THETA V camera and i am trying to use it through the USB API. I have a problem when i put it on sleep mode, i cannot “wake” it up, the commands of ptpcam are “working” but the camera cannot recover from sleep mode. When the second command runs (which is to wake up the camera), the LED on the side lights green, then blue, then green and it turns off again. Thank you.
My firmware version is 3.70.1, I am using Linux natively, Ubuntu 18.04. Also I tried many different scenarios I let it sleep for over 3-4 minutes, tried waking it up immediately after putting it in sleep mode etc.,
craig@craig-desktop:~$ ptpcam --info
Camera information
==================
Model: RICOH THETA V
manufacturer: Ricoh Company, Ltd.
serial number: '00105377'
device version: 3.70.1
extension ID: 0x00000006
extension description: (null)
extension version: 0x006e
craig@craig-desktop:~$ ptpcam --info
Camera information
==================
Model: RICOH THETA V
manufacturer: Ricoh Company, Ltd.
serial number: '00105377'
device version: 3.70.1
extension ID: 0x00000006
extension description: (null)
extension version: 0x006e
craig@craig-desktop:~$ ptpcam --set-property=0xD80E --val=1
Camera: RICOH THETA V
'UNKNOWN' is set to: 0
Changing property value to 1 [(null)] succeeded.
craig@craig-desktop:~$ ptpcam --set-property=0xD80E --val=0
Camera: RICOH THETA V
'UNKNOWN' is set to: 1
Changing property value to 0 [(null)] succeeded.
Result: Did not wake up.
retry test with Z1 - woke up
craig@craig-desktop:~$ ptpcam --info
Camera information
==================
Model: RICOH THETA Z1
manufacturer: Ricoh Company, Ltd.
serial number: '10010104'
device version: 2.00.1
extension ID: 0x00000006
extension description: (null)
extension version: 0x006e
craig@craig-desktop:~$ ptpcam --set-property=0xD80E --val=1
Camera: RICOH THETA Z1
'UNKNOWN' is set to: 0
Changing property value to 1 [(null)] succeeded.
craig@craig-desktop:~$ ptpcam --set-property=0xD80E --val=0
Camera: RICOH THETA Z1
'UNKNOWN' is set to: 1
Changing property value to 0 [(null)] succeeded.
craig@craig-desktop:~$
I recently started using a ThetaV also for robotics with live streaming (as a virtual pan and tilt unit). For the the real system automation and integration I just can not afford to push buttons so I scraped down ptpcam from libptp2 and thus started to build a c++ thetaV API using ptp… it is coarse and early stage, but I am happy to share the code. I can changes modes, streaming works fine,
Just one issue, when it comes to waking up the device I have the same issue as above. Neither with with my code nor with ptpcam as above it works.
My observation, we had 2 thetas in the lab and before programming, I am 99% sure it worked with ptpcam on a theta where I did not upgrade the firmware… Then later I did and when coding I could not make it work ever again.
Can anyone confirm or try with a theta V that does not have 3.70.1 (I think the working version was bought in 2018 and not upgraded)
I hope this helps and someone knows?
It would be really cool to use the low latency live streaming in remote operated robots as “pan and tilt unit without moving parts”