We developed plugins based on MIP SDK, but cannot query Object DB for cameras with HTTPS connection.

Good day!

We have finalized our Plugin that works on both Server (Event Server) and Smart Client. It works for cameras that add to the recording server under ONVIF protocol without encrypted. The plugin is able to query Object DB and displayed the result on Smart Client (w/ videos, and our object DB). However, if I add the camera via HTTPS only (without root certificate insert) by ONVIF Protocol. I can only get the videos and existing ONVIF metadata, but the MIP SDK commands didn’t work and our object DB cannot be queried from Smart Client through Event Server to the camera.

Did the MIP SDK work for HTTPS only? Any conditions for that?

BR,

Betty

Please show the code you use to the query the camera from the Event Server and which fails when the camera is HTTPS.

Hi ​Bo Ellegård Andersen,

We try to use the Restful API:

/VCA/Data/DB/ObjectMeta?StartTime=1559530607&EndTime=1559530607&Info=14

of the camera through the event server.

Ideally, it should work as non-HTTPS only:

We also provide the communication package for you. Hope these files are useful.

The IP: 10.42.1.194 is not limited to using HTTPS only.

The IP: 10.42.2.34 is limited to using HTTPS only.

The Event & recording server IP is: 10.42.1.188

just in case the HTTPS communication pack is not attached succesfully.

Dear Bo Ellegård Andersen,

We used the DriverCommand of MIP SDK to get ObjectDB from camera side. Under HTTPS, the DriverResponse will receive “ERROR: Custom command failed.”

We are wondering that the ONVIF Hardware Driver doesn’t support to send the commands under HTTPS.

Here’s the command that we are using.

DriverCommandCSharp

----------------------------------------

private void GetObjectMeta(Item camera, DateTimeOffset startTime, DateTimeOffset endTime)

{

DriverCommandData command = new DriverCommandData()

{

SyncObject = camera,

Command = "GET:VCA/Data/DB/ObjectMeta",

Parameter = String.Format("StartTime={0}&EndTime={1}&Info=62", startTime.ToUnixTimeSeconds(), endTime.ToUnixTimeSeconds())

};

try {

EnvironmentManager.Instance.PostMessage(

  new Message(MessageId.Control.DriverCommand, command), camera.FQID);

}

catch {

}

}

​---------------------------------

Would you support to check this part? Thank you!

BR,

Betty Sung

I will ask Milestone Development for an evaluation. Quick questions: What version is the XProtect server? What version is the device driver pack used?

Hi Bo Ellegård Andersen,

The version we used is as below:

XProtect Corporate version: 2022R3

ONVIF Conformant Device version: DevicePack: 12.5c, Device Pack, Build: 12.4a.694

Dear Milestone Team,

Are there any news on the HTTPS by MIP SDK?

BR,

Betty

We have asked Milestone Development for further investigation but there is no update from them. Let us get back to you when we get a news from them.

The Milestone Driver Developers came up with a fix. We need your help. We kindly ask if you can test and confirm that the fix works. When we have a confirmation the fix can be included in future device packs.

https://download.milestonesys.com\MIPSDK\Beta\DP_ONVIF_HTTPS\MilestoneXProtectVMSDriverInstaller126b2303.exe

In order to test install the driver device pack on the Recording Server and see that DriverCommand will work (in both HTTP and HTTPS).

Hi Bo Ellegård Andersen,

Thank you for the solution. It works for both HTTP and HTTPS only and 2022R2 & 2022R3 Corporations.

Will this version be officially released on which Device Pack?

Br,

Betty

Thank you for the testing and feedback.

The fix will be released officially with Device Pack 12.7.

If you have an urgent need you can use the driver you tested untill the formal release of Device Pack 12.7.