Ricoh iOS Camera SDK error Can not find cameras

I’m using RICOH THETA Z1. I have downloaded one SDK from Ricoh website.
https://api.ricoh/downloads/
Visit the link and under the package section you would find the " [RICOH Camera Wireless SDK for iOS]" link. I’m using that SDK.

I’ve connected camera wifi and ping the 192.168.1.1 on safari browser, then I open 192.168.1.1/osc/info and I got some json result.
We are doing only iOS development.

Yes in the error logs it says 192.168.0.1 But I didn’t find that IP address in the code. I don’t know about the Client Mode authentication, I’m simply connecting the camera wifi and then try to connect to wifi.

Please let me know Do I need to download other SDK for “RICOH THETA Z1”.

Use this one.

I think you are using the SDK for a different camera. Many people have this problem as the web site could be organized better.

The API documentation is here:
Notice of website closure

1 Like

@craig Thank you so much for your help. I’ll download this sdk and test it on my end. I hope this time it would work.

1 Like

Feel free to continue to ask questions. The Z1 is a good camera. The documentation is fairly good. There are some minor bugs in the settings sometimes when you set multiple settings at the same time. You need to wait for the camera status to be idle before you send the next command. The main issue people face is that they forget to check the camera status for “readiness” between commands. There is an API command to check if the camera is idle.

2 Likes

@craig Thanks for your help, I’m able to connect to the camera and I’m also able to download the images as well.
There is only one issue which I’m facing, I’m getting lag on live view of camera in SDK. Could you please help me here to get rid of this issue.

Thanks
Maksud

This problem has not been reported with the Z1 before. However, the firmware may have changed.

Check if you have an EOFException on the frame and then delay 0.5 second if there as an EOFException and run the getLivePreview command again.

The frame format is motionJPEG, described in the document below.

theta_sc2_get_live_preview_2020_08_24.pdf - Google Drive

If you are not seeing an EOFException in the debug console, post again.

Another reference to the freezing frame

Question about getLivePreview by THETA SC2 on Android - #15 by tamy

Hi Craig,

Thanks for your response, I’m using below code, The same code was also there on SDK. I have install the app from sdk as well but I’m facing the lag on live streaming.

httpConnection.startLiveView { (frameData:Data?) in
            self.toggleCameraStatusLabel(isHidden: true)
            DispatchQueue.main.async {
                if frameData != nil {
                   self.imgMotionView.image = UIImage(data: frameData!)
                }
            }
        }

StartLiveView method is returning the Data and I’m converting the data into the image and assigning it to the UIImageView. but ended with lag. Please help me if there is any other way to convert motion jpeg from data.

Thanks

Just to confirm, the frame is getting stuck for a few seconds and then continues? Or, is it stuck on a frame and does not continue with the motion?

It stuck 2-3 seconds then continues, again it stuck 2-3 seconds then continue. it is happening repeatedly.

I would like to add one more thing, The same code is working fine on simulator. I have run the app in simulator and connect to the camera. I was able to get the live feeds without any lag.

Thanks for this additional information. We’re going to need to ask RICOH about this. Can you let me know:

  • iPhone model
  • iOS version you are using for testing
  • if you tried both 2.4GHz and 5GHz and the problem is the same

Thanks for your response,

iPhone - XR (It can be reproducible on any device)
iOS Version : 14.0.1
Yes I tried on both GHz and the problem is same.

Even I am able to reproduce the issue with SDK as well.

I have also notice that “httpConnection.startLiveView” method is consuming 100% CPU time. which is causing the issue. I have removed all the code inside this method just receiving the Data as a response but it is consuming 125% of CPU time.

Could you please provide us the direct live streaming view so that we can use that url in webview iOS Swift.

Hi, thank you for this additional information.

Here’s the status:

  • @jcasman and I have a meeting with RICOH on Thursday. We will organize and relay the information on to them
  • @jcasman has a Mac and an iPhone and will try to replicate this problem
  • unfortunately, I do not have a Mac, but I am trying to borrow one. the problem is that I need to install 30GB of Xcode on someone else’s Mac and I’m not sure they will be happy with that situation. I have an iPhone that I can use for testing.
  • i’ll test the SDK on Android, which is not immediately helpful, but could help to identify the problem indirectly.

Thanks Craig,

This issue is the highest priority for us. Please us to fix this as early as possible. We have a customer demo. We have to show the POC.

Regards
Maksud

I am testing this currently. I am posting my initial results.

  • Running on physical device iPhone 12, using iOS 14.7.1
  • Using ricohapi/theta-api2.1-ios-sdk
  • Connected by Wi-Fi to THETA Z1, using firmware 2.00.1

Video appears to be smooth. It does not appear to stick every 2-3 seconds as described. I’ll post a video of my test soon. I’ll send an email to get more information from you on the problem you are experiencing.

Is the 100% CPU utilization on the Z1 CPU or the iPhone CPU?

Thanks for your response,

I’m also using the same SDK but my device is XR, and iOS version is 14.0.1. The SDK is very laggy even I’m not able to scroll the images easily. That is not an issue We have fixed it at our end. but the only issue is live streaming. It would better if you can schedule a meeting with me today if it is possible.

iPhone CPU utilization.

Jesse used iOS 14.7.1 in his test that worked.

I bought a MacBook Air yesterday for the test at the local Apple store, but now I need to buy an USB-C to USB-A adapter to connect the physical device iPhone. I ordered the adapter online.

@jcasman has the livePreview working on iOS 14.7.1 with Z1 firmware 2.00.1. He’s trying to set up a meeting with you to collect more information on your setup.