Connecting to Multiple Cameras via Sony Remote Camera API - camera

Using Sony Remote Camera SDK 2.1.2
I am not using any mobile devices to talk to my Sony cameras
I am using a Ubuntu, C++ and a router to access my Sony cameras
My Sony cameras WORK for one API call, they provide a response to the Sony Camera Remote API call "startLiveview" but that is the only Sony Camera Remote API call that the Sony cameras will respond to, I have tried "startLivewviewWithSize", "getSupportedLiveviewSize", "getLivewviewSize", and "getAvailableAppList", "getApplicationInfo", none of these API calls get a response from either of my Sony Cameras, in general, there is one exception see below
I have tried all these calls with only one Sony Camera on.
The exception: when I will actually get responses from the Sony Cameras. If I call "getAvailableAppList", this will cause something to happen to the Sony Camera, and I will start to get responses from it but only when the camera is in Wifi Live Preview mode
Now the Scenario:
I have two Sony HDR-AZ1 cameras, I have them both set to "Perform Live Streaming":
Currently, I am able to capture the Livepreview stream, recording it, using VLC PLayer and a Netgear Router where I assign static IP addresses to the cameras:
I have assigned the Sony Cameras in my LAN settings in my Netgear Router:
#define SONY_CAMERA_1 #"http://192.168.178.13:8080/sony/camera"
#define SONY_CAMERA_2 #"http://192.168.178.14:8080/sony/camera"
So I can capture the Liveview stream from two cameras because of the static IP addresses I have assigned with my router.
The Livepreview stream is always streaming, no API calls are sent to the camera, the static assigned IP addresses allow me to capture the stream using VLC Player to record the stream:
Now I am trying to figure out if I can use the Sony Remote Camera API with my static IP addresses to talk to multiple cameras. I have read online that it is possible and that it is not possible, yet I haven't found a clear statement on the fact one way or the other.
This Stackoverflow article would imply, via the last sentence of Sony's #Marlin-SONY's answer that it is possible, using the Sony Remote Camera API: Is there a way to send multiple wifi camera a signal to take a picture at the same time?
But Simon Wood's answer and code, along with other articles convey that multiple connection via Sony Remote Camera API is still a bit of an elusive unsolved issue.
With my static IP addresses, assigned at the router, I expect that I can do the following call:
http://192.168.178.13:8080/sony/camera
strCmd = "{"
"\"method\" : \"getApplicationInfo\","
"\"params\" : [],"
"\"id\" : 1,"
"\"version\" : \"1.0\""
"}".toJSON;
and get a response, but I never get a response, not matter what Wifi mode the camera is set to.
I assume I will need to switch the WiFi mode on the Sony HDR-AZ1 cameras to either just "WiFi" or "Wifi Multi Connection" instead of the "WiFi Perform Live Streaming" I currently have them set to be but even that is not clearly documented anywhere that I can find.
Can I connect to multiple cameras via the Sony Remote Camera API, I assume the answer is yes but my cameras are not acting as Wireless Access Points, do they still receive all documented Sony Camera Remote API calls when the the cameras are in some flavor of Wifi with static IP addresses assigned to them via my router?
What WiFi mode do my cameras need to be in to work with the Sony Remote Camera API? 1)Wifi, 2 Wifi Multi Connection (This seems to be only for the Sony Remote Control product) or 3) Wifi Livepreview?
Do I need to use my router to assign static IP addresses or can I use SSDP to find the cameras?

Have you tried looking at the CameraRemoteSampleApp sample code inside the Camera Remote SDK?
https://developer.sony.com/downloads/all/sony-camera-remote-api-beta-sdk/
There are examples of how to get the IP address for the cameras for both Android and iOS.
Edit: To answer your questions above the Sony Camera Remote API does not support connecting to multiple cameras from a single phone or via a router. It only supports the API over a direct WiFi connection 1:1 between a phone and a camera.

Not a direct answer for you, but if you'd like to play I had attempted detecting multiple cameras (but don't have appropriate hardware to test) in this project:
https://github.com/Bloodevil/sony_camera_api
The script 'src/examples/scan_for_cameras.py' will attempt to find all cameras bonded to local network/machine.
I'd be real interested in finding out whether it actually works ;-)
Cheers,
Simon.

Related

Sony Camera Remote API SDK for Bluetooth

I am wondering if it's possible to use the Sony Sony Camera Remote API beta SDK / AddOn SDK / Smart Extension API to control action cameras functionality by my application side via BlueTooth (no Wi-Fi).
My goal is to write an extension which will mainly:
Mandatory: start and stop video saving on camera internal memory
Optional: , insert allarms, set video acquisition parameters, ecc.
Does anyone have:
the information if this SDK is the right choice to control this type of Sony device
if it's possible to reach my described goal with it or if there are any impossibilities
other related information or special requirements for controlling Sony cameras via bluetooth.
Thanks
Unfortunately you will only be able to use Wifi to control cameras with the camera remote API.

Use IP camera with OPEN CV without internet connection (direct connection to pc)

I am sorry, this might not be the correct platform to ask this kind of question but I couldn't think of any other place .
I for one of my project I need to capture some video footage from an outdoor camera using open cv. Actually, its a part of a bigger project where another signal triggers the camera. Since the camera will be located outside, I am looking for weather proof night vision enabled USB cameras that I can easily control via OPENCV. However I cannot find any descent USB camera and most of the websites show IP cameras. My problem is that the installation will be at a site where there is no internet so I cannot use internet. Can anybody please suggest if and how these IP cameras can be connected to the PC and be controlled via OPEN CV or else suggest some websites where I can get descent outdoor USB IR cameras.
I have also tried the NOIR Raspi camera but the quality is not very good and I think the range will also not be very good. Moreover running OPEN CV on RpI is very slow even for simple video recording.
Please refer to that thread for how to use IP cameras with open CV. I didn't try it personally, but a simple google search got me that. http://answers.opencv.org/question/133/how-do-i-access-an-ip-camera/
To access an IP camera is very simple, you just need this line:
cv2.VideoCapture("rstp://ipaddress:port/blahbla")
Now, if you dont have internet the IP camera as the PI should be on the same network, you can have a wireless router with no internet.
If you dont have a wireless router you can create a hotspot on your PI so you can connect the Camera directly to the PI, alot of IP cameras support hotspot so you can connect your pi to them.

Sony Camera Remote API available over USB on new models?

While Sony teases new camera models to customers (UMC-R10C, UMC-S3C) and mentions both API access and USB connectivity (rather than wifi) - the Sony Camera Remote API currently only mentions wifi. Is there any information on how to use those upcoming cameras? Some 'selected' developers are integrating them already (see: http://diydrones.com/profiles/blogs/sony-3dr-announce-new-enterprise-camera-for-solo) but independent developers are left in the dark.
Will the API be the same as the current Camera Remote API?
What kind of USB connection will it have. Just a USB network interface?
+1 on question/request. A lot of DIY'ers are interested in (buying and) controlling Sony cameras via USB. WiFi in 'noisy' environments is problematic.

Sony, Camera: interface

Good Evening,
I'm starting the develop of an App with the Action Cam FDR-X1000, and I have 2 questions about the capabilities of the system:
- can I manage the camera (using Camera Remote API) by the usb interface instead the Wifi?
- using the wifi interface, if I'm operating with the camera by, for example, a smartwatch, can I connect a smartphone to the same camera and send commands to retreive stored images, etc?
Thank you for the attention
Andrea Carapezzi
To answer your questions.
You will not be able to communicate with the camera using the camera API over usb
You will be able to connect your camera to a smartphone and get images from the camera using the camera remote API. You can visit the Camera remote API landing page to find out more: https://developer.sony.com/develop/cameras/

Camera Remote API : Camera + iPad + PC?

I'm currently studying the Development Guide given with the Sony Camera Remote API beta SDK, and what I've understood so far, is that in order to send and receive messages between a camera and a mobile device, the smartphone or tablet should be connected through Wifi to the camera, which acts as an access point.
Actually, what I'd like to do after downloading a picture on the mobile device from the camera, is to pass it to a PC so that I will be able to print it and use it for other purposes. This process should be completely transparent and automatic for the final user.
Thus, my problem is that I need the mobile device to be connected, through Wifi, to both camera and PC.
The solutions I have in mind are :
Make the mobile device, and the PC, connect to the camera access point, so that they can be located on the same network.
Is this possible? I mean, can the Sony camera handle more than one client when acting as an access point? If yes, can I have a fixed IP for mobile device and PC so that I can easily make them exchange data?
Use a simple wifi router and make the camera, mobile device, and PC connect to this router.
Without acting as an access point (i.e. simple network client), can the camera be used with the remote control function?
If you guys see any other options, I'd be glad to read them !
Thanks,
Bertrand
Unfortunately, neither of your solutions would be supported. Only one device can be connected to the camera AP at a time, and the camera itself has to act as the access point (certain models support connecting to an access point from the camera but the Camera Remote API is not supported in this case).
If you don't need the mobile device to have access to the pictures, your best bet may be to directly connect the PC to the Camera and transfer the images using the API. The API is REST based so can be used on any platform.